:root {
  color-scheme: dark;
  --bg: #090a0f;
  --surface: #12131a;
  --surface-2: #1a1b24;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f3f5;
  --muted: #bdb4ba;
  --pink: #be185d;
  --gold: #d7a857;
  --accent-soft: #ffb2c1;
  --text-muted: #8e8490;
  --danger: #ff6b6b;
  --ok: #7bd88f;
  --brand-icon-image: url("/assets/generated/gpt-image-2-brand-icon-v2.webp");
  --hero-image: url("/assets/generated/gpt-image-2-video-hero.png");
  --role-cover-a: url("/assets/generated/gpt-image-2-light-board.png");
  --role-cover-b: url("/assets/generated/gpt-image-2-create-dark.jpg");
  --role-cover-c: url("/assets/generated/gpt-image-2-create-mid.jpg");
  --role-cover-d: url("/assets/generated/gpt-image-2-create-light.jpg");
  --h5-phone-width: 420px;
  --h5-chat-font: 15px;
  --h5-chat-user-font: 14px;
  --h5-chat-line: 1.72;
  --theme-panel-rgb: 255 255 255;
  --theme-card-rgb: 255 255 255;
  --theme-button-rgb: 255 255 255;
  --theme-accent-rgb: 233 75 115;
  --theme-global-panel-alpha: 0.154;
  --theme-phone-alpha: 0.672;
  --theme-button-bg-alpha: 0.246;
  --theme-card-bg-alpha: 0.152;
  --theme-active-button-alpha: 0.779;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(115deg, rgba(233, 75, 115, 0.12), transparent 34%),
    linear-gradient(160deg, transparent 54%, rgba(233, 75, 115, 0.08) 72%, transparent 100%),
    linear-gradient(140deg, #090a0f 0%, #101119 54%, #130d13 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: auto -10vw 0;
  z-index: -1;
  height: 46vh;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 24% 70%, rgba(233, 75, 115, 0.22), transparent 34%),
    radial-gradient(ellipse at 66% 82%, rgba(215, 168, 87, 0.12), transparent 38%),
    linear-gradient(105deg, transparent 0 18%, rgba(233, 75, 115, 0.22) 42%, transparent 78%);
  filter: blur(24px);
  opacity: 0.72;
  transform: rotate(-4deg);
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

[data-admin-route-aliases] {
  position: fixed;
  inset: 0 auto auto 0;
  pointer-events: none;
}

.preview-home {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.preview-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.preview-brand,
.preview-nav nav,
.preview-actions,
.preview-proof,
.phone-chip-row,
.phone-bottom-nav,
.boundary-links {
  display: flex;
  align-items: center;
}

.preview-brand {
  gap: 12px;
  text-decoration: none;
}

.preview-brand-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(9, 10, 15, 0.03), rgba(9, 10, 15, 0.28)),
    var(--brand-icon-image) center / cover no-repeat,
    linear-gradient(145deg, var(--pink), #5b142b 72%);
  box-shadow: 0 0 28px rgba(233, 75, 115, 0.38);
}

.preview-brand strong,
.preview-brand em {
  display: block;
  line-height: 1.35;
  white-space: nowrap;
}

.preview-brand strong {
  font-size: 16px;
}

.preview-brand em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.preview-nav nav {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.preview-nav nav a {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}

.preview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 450px);
  gap: 28px;
  align-items: center;
  min-height: calc(100dvh - 92px);
  padding: 34px 0 22px;
}

.preview-copy {
  display: grid;
  gap: 20px;
}

.preview-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.preview-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: 0;
}

.preview-copy > p:not(.preview-kicker) {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.preview-actions {
  gap: 10px;
  flex-wrap: wrap;
}

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

.preview-proof article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  padding: 14px;
}

.preview-proof span,
.preview-proof strong,
.preview-proof em {
  display: block;
}

.preview-proof span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.preview-proof strong {
  margin-top: 6px;
  font-size: 19px;
  line-height: 1.2;
}

.preview-proof em {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.55;
}

.preview-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 650px;
}

.preview-orbit {
  position: absolute;
  inset: 24px -16px 0;
  border-radius: 40px;
  background:
    radial-gradient(circle at 58% 18%, rgba(255, 210, 225, 0.3), transparent 18%),
    radial-gradient(circle at 24% 44%, rgba(233, 75, 115, 0.22), transparent 26%),
    linear-gradient(155deg, rgba(233, 75, 115, 0.18), rgba(215, 168, 87, 0.1) 38%, transparent 66%);
  filter: blur(3px);
  opacity: 0.88;
}

.preview-phone {
  position: relative;
  z-index: 1;
  width: min(100%, 386px);
  min-height: 640px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 18%),
    #0d0e14;
  padding: 16px;
  box-shadow:
    inset 0 0 0 5px rgba(255, 255, 255, 0.035),
    0 34px 90px rgba(0, 0, 0, 0.46);
}

.preview-phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(247, 243, 245, 0.9);
  font-size: 12px;
  padding: 4px 8px 12px;
}

.phone-visual {
  min-height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(180deg, transparent 35%, rgba(9, 10, 15, 0.78)),
    var(--hero-image) center / cover no-repeat;
  box-shadow: inset 0 -50px 80px rgba(0, 0, 0, 0.3);
}

.phone-search {
  margin-top: 14px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 13px;
}

.phone-chip-row {
  gap: 8px;
  margin-top: 12px;
  overflow: hidden;
}

.phone-chip-row span {
  flex: 0 0 auto;
  min-height: 30px;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--muted);
  font-size: 12px;
}

.phone-chip-row .is-active {
  background: var(--pink);
  color: #fff;
  font-weight: 700;
}

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

.phone-role-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #1a1b24, #101119);
  padding: 10px;
}

.role-cover {
  display: block;
  min-height: 126px;
  border-radius: 14px;
  background: center / cover no-repeat;
}

.role-cover-a {
  background-image: var(--role-cover-a);
}

.role-cover-b {
  background-image: var(--role-cover-b);
}

.phone-role-grid strong,
.phone-role-grid em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-role-grid strong {
  margin-top: 9px;
  font-size: 14px;
}

.phone-role-grid em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.phone-bottom-nav {
  justify-content: space-between;
  gap: 6px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(18, 19, 26, 0.9);
  padding: 8px;
}

.phone-bottom-nav a {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 14px;
  padding: 9px 4px;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
  font-size: 12px;
}

.phone-bottom-nav .create {
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(233, 75, 115, 0.32);
}

.preview-sections {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 16px;
  margin-top: 20px;
}

.route-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(26, 27, 36, 0.92), rgba(12, 13, 19, 0.92));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  padding: 22px;
}

.route-card h2 {
  margin: 6px 0 10px;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.18;
}

.route-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
}

.route-chat {
  display: grid;
  grid-template-columns: minmax(160px, 0.64fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  grid-row: span 2;
}

.route-image {
  display: block;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, transparent 42%, rgba(9, 10, 15, 0.82)),
    var(--role-cover-c) center / cover no-repeat;
}

.route-support {
  background:
    linear-gradient(135deg, rgba(233, 75, 115, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(26, 27, 36, 0.94), rgba(12, 13, 19, 0.94));
}

.route-promo {
  background:
    linear-gradient(135deg, rgba(215, 168, 87, 0.13), transparent 42%),
    linear-gradient(180deg, rgba(26, 27, 36, 0.94), rgba(12, 13, 19, 0.94));
}

.route-boundary {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.route-boundary h2 {
  min-width: 120px;
}

.route-boundary p {
  max-width: 620px;
  margin: 0;
}

.boundary-links {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.boundary-links a {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 24px;
}

.admin-only-chip {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  padding: 9px 13px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 64% 35%, #ffd4de 0 9%, transparent 10%),
    radial-gradient(circle at 48% 50%, var(--pink) 0 42%, #8f315c 43% 100%);
  box-shadow: 0 0 28px rgba(233, 75, 115, 0.36);
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a,
.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  font-size: 14px;
}

.button.primary {
  border-color: transparent;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(233, 75, 115, 0.28);
}

.static-api-disabled,
.disabled-api-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  cursor: not-allowed;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  padding: 9px 12px;
  text-align: center;
}

.hero,
.grid,
.status-grid {
  display: grid;
  gap: 16px;
}

.hero {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(26, 27, 36, 0.92), rgba(12, 13, 19, 0.92));
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.panel h1,
.panel h2,
.panel h3 {
  margin: 0 0 12px;
  line-height: 1.2;
}

.panel h1 {
  font-size: clamp(28px, 3.2vw, 44px);
}

.panel p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.api-path {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.preview {
  overflow: hidden;
  padding: 0;
}

.preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(215, 168, 87, 0.15);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.badge.ok {
  background: rgba(123, 216, 143, 0.14);
  color: var(--ok);
}

.badge.blocked {
  background: rgba(255, 107, 107, 0.14);
  color: var(--danger);
}

.list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
}

.field input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #0d0e14;
  color: var(--text);
}

.notice {
  border-left: 3px solid var(--pink);
  padding: 12px 14px;
  background: rgba(233, 75, 115, 0.09);
  color: var(--muted);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

.mobile-first-note {
  display: none;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.hero-kpis strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
}

.hero-kpis span {
  color: var(--muted);
  font-size: 12px;
}

.direction-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.direction-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(233, 75, 115, 0.1), transparent 34%),
    linear-gradient(180deg, #12131a, #090a0f);
  padding: 14px;
}

.direction-card.wide {
  grid-column: 1 / -1;
}

.direction-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: #ff9aaa;
  font-weight: 700;
}

.phone-frame {
  width: min(100%, 260px);
  min-height: 430px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), transparent 18%),
    #0d0e14;
  padding: 16px 14px 14px;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.035), 0 26px 60px rgba(0, 0, 0, 0.32);
}

.phone-head,
.phone-tabs,
.bottom-nav,
.quick-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-head {
  justify-content: space-between;
  margin-bottom: 14px;
}

.phone-title {
  font-size: 18px;
  font-weight: 700;
}

.icon-dot {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(233, 75, 115, 0.14);
  color: #ff9aaa;
}

.search-line {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  margin-bottom: 12px;
}

.phone-tabs {
  overflow: hidden;
  margin-bottom: 12px;
}

.chip {
  flex: 0 0 auto;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
}

.chip.active {
  background: var(--pink);
  color: #fff;
}

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

.role-card {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(247, 187, 197, 0.28), transparent 42%),
    linear-gradient(180deg, #1a1b24, #0f1017);
  padding: 10px;
}

.role-card:nth-child(2),
.role-card:nth-child(4) {
  background:
    linear-gradient(145deg, rgba(233, 75, 115, 0.24), transparent 44%),
    linear-gradient(180deg, #21161d, #0f1017);
}

.role-avatar {
  display: grid;
  height: 76px;
  place-items: center;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 154, 170, 0.24), transparent 48%),
    linear-gradient(90deg, #222631, #101118);
  color: #ffd7df;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

.role-card-name,
.role-card-meta {
  min-width: 0;
  overflow-wrap: anywhere;
}

.role-card-name {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.role-card-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  margin-top: 4px;
}

.warm-role-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(233, 75, 115, 0.26);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(233, 75, 115, 0.18), transparent 58%),
    rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.warm-role-card h3,
.warm-role-card p {
  margin: 0;
}

.warm-role-card h3 {
  font-size: 16px;
}

.warm-role-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-tags span {
  min-height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffb2c1;
  padding: 4px 8px;
  font-size: 11px;
}

.role-detail-lines {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.role-detail-lines span {
  min-width: 0;
  border-left: 2px solid rgba(233, 75, 115, 0.52);
  border-radius: 8px;
  background: rgba(9, 10, 15, 0.42);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  padding: 6px 8px;
}

.role-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.role-detail-actions span {
  display: grid;
  min-height: 32px;
  place-items: center;
  border-radius: 10px;
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.role-detail-actions span:first-child {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.repository-note {
  border-radius: 10px;
  background: rgba(9, 10, 15, 0.38);
  color: #c9c0c8;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  padding: 7px 8px;
}

.payment-result-shell {
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
}

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

.pay-state-card {
  display: grid;
  align-content: start;
  min-height: 164px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  padding: 14px;
}

.pay-state-card .badge {
  justify-self: start;
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

.pay-state-card.is-current {
  border-color: rgba(215, 168, 87, 0.36);
  background: rgba(215, 168, 87, 0.08);
}

.pay-state-card.blocked {
  border-color: rgba(255, 107, 107, 0.28);
  background: rgba(255, 107, 107, 0.07);
}

.pay-state-card h2 {
  margin: 10px 0 8px;
  font-size: 18px;
}

.pay-state-card p,
.direction-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  overflow-wrap: anywhere;
}

.gate-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.gate-list span {
  border-radius: 10px;
  background: rgba(9, 10, 15, 0.48);
  color: #ffb2c1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  padding: 8px;
}

.payment-result-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.payment-result-summary span {
  display: grid;
  grid-template-columns: minmax(74px, 0.34fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(9, 10, 15, 0.42);
  color: #f0dce5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  padding: 7px 8px;
}

.payment-result-summary strong {
  color: #ffb2c1;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.skeleton-line {
  height: 8px;
  width: 72%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.skeleton-line.short {
  width: 44%;
  margin-top: 7px;
}

.bottom-nav {
  justify-content: space-around;
  min-height: 48px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.bottom-nav .create {
  display: grid;
  place-items: center;
  width: 48px;
  height: 34px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
}

.chat-hero {
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.avatar-glow {
  width: 78px;
  height: 78px;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 36%, #ffd7df 0 8%, transparent 9%),
    linear-gradient(145deg, #332a35, #0f1017);
  box-shadow: 0 0 36px rgba(233, 75, 115, 0.42);
}

.chat-context-preview {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(233, 75, 115, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  padding: 11px;
}

.chat-context-preview h3 {
  margin: 0;
  font-size: 15px;
}

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

.context-grid span {
  min-width: 0;
  border-radius: 8px;
  background: rgba(9, 10, 15, 0.42);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  padding: 6px 7px;
}

.memory-control-preview {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(215, 168, 87, 0.22);
  border-radius: 14px;
  background: rgba(215, 168, 87, 0.07);
  padding: 11px;
}

.memory-control-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.memory-control-preview div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.memory-control-preview div span {
  display: grid;
  min-height: 28px;
  place-items: center;
  border-radius: 8px;
  background: rgba(9, 10, 15, 0.44);
  color: #f5d08a;
  font-size: 11px;
  font-weight: 700;
}

.novel-dialogue-preview {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(233, 75, 115, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 247, 250, 0.98), rgba(255, 242, 247, 0.96));
  color: #30282e;
  padding: 10px;
}

.novel-chat-head {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: #3b3037;
  font-size: 12px;
}

.novel-chat-head strong,
.novel-chat-head span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.avatar-mini {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #e94b73, #7d2d50);
  color: #fff;
  font-weight: 800;
}

.novel-user-bubble {
  justify-self: end;
  max-width: 78%;
  border: 1px solid rgba(150, 92, 112, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  color: #4a3d45;
  font-size: var(--h5-chat-user-font);
  line-height: 1.5;
  overflow-wrap: anywhere;
  padding: 8px 10px;
}

.novel-dialogue-card {
  border: 1px solid rgba(150, 92, 112, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  padding: 12px;
}

.novel-dialogue-card p {
  margin: 0 0 10px;
  color: #312a30;
  font-size: var(--h5-chat-font);
  line-height: var(--h5-chat-line);
  overflow-wrap: anywhere;
}

.novel-assistant-bubble {
  border-left: 2px solid rgba(233, 75, 115, 0.36);
  padding-left: 10px;
  white-space: pre-line;
}

.novel-dialogue-card p:last-of-type {
  margin-bottom: 0;
}

.novel-state-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.novel-state-strip span {
  min-width: 0;
  border-radius: 8px;
  background: rgba(233, 75, 115, 0.08);
  color: #76505d;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  padding: 6px 7px;
}

.inline-flow-status {
  display: none !important;
}

.role-comment-panel[data-comment-available="false"] [data-role-comment-status] {
  display: block !important;
  margin: 12px 0 0;
  border: 1px solid rgba(233, 75, 115, 0.2);
  border-radius: 12px;
  background: rgba(233, 75, 115, 0.06);
  color: #76505d;
  font-size: 12px;
  line-height: 1.55;
  padding: 10px 12px;
}

.h5-action-toast {
  position: fixed;
  z-index: 86;
  right: max(16px, calc((100vw - 430px) / 2 + 16px));
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  left: max(16px, calc((100vw - 430px) / 2 + 16px));
  max-width: 398px;
  margin: 0 auto;
  border: 1px solid rgba(233, 75, 115, 0.36);
  border-radius: 14px;
  background: rgba(19, 17, 23, 0.96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
  color: #f7f3f5;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  padding: 11px 14px;
  text-align: center;
}

.h5-action-toast[hidden] {
  display: none;
}

.h5-customer-status-panel,
.admin-acceptance-strip {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(17, 18, 28, 0.72);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
}

.h5-customer-status-panel {
  padding: 22px;
}

.admin-acceptance-drawer {
  max-width: 1280px;
  margin: 0 auto 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(17, 18, 28, 0.72);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
}

.admin-acceptance-drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  cursor: pointer;
  list-style: none;
  padding: 13px 16px;
}

.admin-acceptance-drawer summary::-webkit-details-marker {
  display: none;
}

.admin-acceptance-drawer summary::after {
  content: "展开";
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 850;
  padding: 6px 10px;
}

.admin-acceptance-drawer[open] summary::after {
  content: "收起";
}

.admin-acceptance-drawer summary strong {
  display: block;
  color: #fff;
  font-size: 15px;
}

.admin-acceptance-drawer summary span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.5;
}

.admin-acceptance-drawer .admin-acceptance-strip {
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 12px;
}

.h5-customer-status-panel h2 {
  margin: 4px 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.h5-customer-status-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.h5-customer-status-grid,
.admin-acceptance-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.h5-customer-status-grid article,
.admin-acceptance-strip article {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.h5-customer-status-grid span,
.admin-acceptance-strip span {
  display: block;
  color: rgba(255, 214, 148, 0.86);
  font-size: 12px;
  margin-bottom: 6px;
}

.h5-customer-status-grid strong,
.admin-acceptance-strip strong {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-acceptance-strip em {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.66);
  font-style: normal;
  font-size: 12px;
  line-height: 1.45;
}

.h5-customer-status-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 18px;
}

.admin-acceptance-strip {
  padding: 12px;
}

.chat-privacy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.chat-privacy-row button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.access-gate-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid rgba(215, 168, 87, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(215, 168, 87, 0.12), rgba(233, 75, 115, 0.08));
  padding: 12px;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.access-gate-panel.is-exhausted {
  border-color: rgba(233, 75, 115, 0.58);
  background:
    radial-gradient(circle at 94% 6%, rgba(233, 75, 115, 0.28), transparent 98px),
    linear-gradient(135deg, rgba(233, 75, 115, 0.16), rgba(215, 168, 87, 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 34px rgba(233, 75, 115, 0.12);
}

.access-gate-panel > div:first-child {
  display: grid;
  gap: 4px;
}

.access-gate-panel span,
.access-gate-panel em,
.access-gate-panel p {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
  margin: 0;
  overflow-wrap: anywhere;
}

.access-gate-panel strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.trial-login-field {
  display: grid;
  gap: 5px;
}

.trial-login-field small {
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.trial-login-field input {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(12, 13, 19, 0.88);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  padding: 7px 9px;
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(12, 13, 19, 0.58);
  padding: 5px;
}

.auth-mode-switch button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.auth-mode-switch button.active {
  background: var(--pink);
  color: #fff;
}

.auth-mode-panel {
  display: grid;
  gap: 14px;
}

.auth-register-step {
  display: grid;
  gap: 14px;
}

.auth-register-step[hidden],
.auth-form-status[hidden] {
  display: none !important;
}

.auth-referral-details {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.auth-referral-details .trial-login-field {
  margin-top: 10px;
}

.auth-register-final-actions {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
}

.access-action-row.auth-register-final-actions button.secondary {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.auth-form-status,
.core-operation-note {
  display: grid;
  gap: 4px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(12, 13, 19, 0.68);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  padding: 10px 12px;
}

.auth-form-status[data-tone="error"] {
  border-color: rgba(255, 112, 140, 0.7);
  background: rgba(116, 20, 49, 0.32);
  color: #ffd6df;
}

.auth-form-status[data-tone="success"] {
  border-color: rgba(104, 211, 153, 0.5);
  background: rgba(25, 92, 69, 0.28);
  color: #c8f7df;
}

.core-operation-note strong {
  color: var(--text);
  font-size: 13px;
}

.core-operation-note span {
  color: var(--muted);
}

.auth-mode-panel[hidden] {
  display: none !important;
}

.verification-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.verification-code-row button {
  min-height: 36px;
  border: 1px solid rgba(233, 75, 115, 0.42);
  border-radius: 10px;
  background: rgba(233, 75, 115, 0.14);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 0 10px;
  white-space: nowrap;
}

.context-memory-panel {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  border: 1px solid rgba(233, 75, 115, 0.18);
  border-radius: 14px;
  background: rgba(26, 27, 36, 0.72);
  padding: 11px;
  color: var(--text);
}

.context-memory-panel > div,
.context-memory-panel label {
  display: grid;
  gap: 4px;
}

.context-memory-panel span,
.context-memory-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.context-memory-panel strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.context-memory-panel select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(12, 13, 19, 0.92);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  padding: 7px 9px;
}

.access-action-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.access-action-row.single-action {
  grid-template-columns: minmax(0, 1fr);
}

.access-action-row button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  padding: 8px 6px;
  overflow-wrap: anywhere;
}

.access-action-row button:first-child,
.access-action-row button:nth-child(2) {
  background: var(--pink);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.novel-system-bubble {
  border: 1px solid rgba(215, 168, 87, 0.24);
  border-radius: 14px;
  background: rgba(215, 168, 87, 0.1);
  color: #f8dfac;
  font-size: var(--h5-chat-user-font);
  line-height: 1.6;
  padding: 10px 12px;
  overflow-wrap: anywhere;
}

.high-freedom-note {
  margin: 10px 2px 0;
  border: 1px solid rgba(233, 75, 115, 0.2);
  border-radius: 12px;
  background: rgba(233, 75, 115, 0.075);
  color: #ffb2c1;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  padding: 8px 10px;
}

.relationship-strip {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  border: 1px solid rgba(215, 168, 87, 0.22);
  border-radius: 13px;
  background: rgba(215, 168, 87, 0.08);
  padding: 9px;
}

.relationship-strip span,
.relationship-strip strong,
.relationship-strip em {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.relationship-strip span {
  color: #8a5d68;
  font-size: 11px;
  font-weight: 850;
}

.relationship-strip strong {
  color: #4e2f3a;
  font-size: 13px;
}

.relationship-strip em {
  color: #76505d;
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
}

.preference-preview-section {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.preference-preview-board {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: stretch;
}

.settings-phone-surface {
  border: 1px solid rgba(233, 75, 115, 0.2);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 250, 252, 0.98), rgba(255, 241, 247, 0.97)),
    #fff8fb;
  color: #2f2930;
  padding: 18px;
  box-shadow: 0 22px 52px rgba(233, 75, 115, 0.14);
}

.settings-preview-head {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 20px;
  color: #2d2730;
  font-size: 24px;
  font-weight: 800;
}

.settings-preview-head span,
.settings-preview-head a {
  font-size: 30px;
  line-height: 1;
}

.settings-preview-head a {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

.settings-card {
  border: 1px solid rgba(137, 87, 105, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.56);
  padding: 18px;
}

.settings-card h3,
.settings-card p {
  margin: 0;
}

.settings-card h3 {
  color: #2b252c;
  font-size: 22px;
  line-height: 1.25;
}

.settings-card p {
  margin-top: 8px;
  color: #756b72;
  font-size: 14px;
  line-height: 1.6;
}

.settings-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  border: 1px solid rgba(137, 87, 105, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  padding: 13px 14px;
}

.setting-row span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.setting-row strong {
  color: #272129;
  font-size: 17px;
  line-height: 1.25;
}

.setting-row small {
  color: #70676f;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.toggle {
  position: relative;
  width: 56px;
  height: 32px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #efd3df;
  cursor: default;
}

.toggle::after {
  position: absolute;
  top: 5px;
  left: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #be5a86;
  content: "";
  transition: transform 0.16s ease;
}

.toggle.is-on::after {
  transform: translateX(22px);
}

.setting-link em {
  color: #6d6168;
  font-style: normal;
  font-size: 15px;
  white-space: nowrap;
}

.preference-boundary {
  align-self: stretch;
}

.entitlement-preview {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 107, 107, 0.24);
  border-radius: 14px;
  background: rgba(255, 107, 107, 0.07);
  padding: 11px;
}

.entitlement-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.bubble {
  max-width: 82%;
  border-radius: 18px;
  padding: 13px 14px;
  background: var(--surface-2);
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.bubble.me {
  justify-self: end;
  background: linear-gradient(135deg, #e94b73, #b83d62);
  color: #fff;
}

.composer {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  padding: 6px 8px 6px 14px;
  color: var(--muted);
}

.composer input {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.composer input::placeholder {
  color: var(--muted);
}

.send {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  margin-left: auto;
  cursor: pointer;
}

.member-stack {
  display: grid;
  gap: 12px;
}

.member-card {
  min-height: 94px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(120deg, rgba(215, 168, 87, 0.28), transparent 62%),
    #151219;
  padding: 14px;
}

.member-card.pink {
  background:
    linear-gradient(120deg, rgba(233, 75, 115, 0.3), transparent 62%),
    #171018;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.benefits span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: #ffb2c1;
}

.admin-preview {
  min-height: 430px;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0e1117;
  padding: 14px;
}

.direction-card.wide .admin-preview {
  min-height: 260px;
}

.admin-side {
  display: grid;
  align-content: start;
  gap: 10px;
  border-right: 1px solid var(--line);
  padding-right: 12px;
}

.admin-side span {
  min-height: 28px;
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--muted);
  font-size: 12px;
}

.admin-side span.active {
  background: rgba(233, 75, 115, 0.2);
  color: #ff9aaa;
}

.admin-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.filter-row,
.table-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.6fr;
  gap: 10px;
}

.filter-row span,
.table-row span {
  min-height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.table-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.role-workshop-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  min-width: 0;
}

.role-workshop-row strong,
.role-workshop-row span,
.role-workshop-row em {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.role-workshop-row span {
  color: var(--muted);
}

.role-workshop-row em {
  justify-self: start;
  border-radius: 999px;
  background: rgba(215, 168, 87, 0.14);
  color: var(--gold);
  padding: 5px 8px;
  font-style: normal;
}

.drawer {
  align-self: end;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #151922;
  padding: 14px;
}

.drawer .button {
  width: 100%;
  margin-top: 12px;
}

.launch-flow,
.delivery-gate {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

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

.flow-step {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(140deg, rgba(215, 168, 87, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(20, 22, 31, 0.96), rgba(10, 11, 17, 0.96));
  padding: 16px;
}

.flow-step.is-current {
  border-color: rgba(123, 216, 143, 0.32);
  background:
    linear-gradient(140deg, rgba(123, 216, 143, 0.13), transparent 45%),
    linear-gradient(180deg, rgba(20, 22, 31, 0.96), rgba(10, 11, 17, 0.96));
}

.flow-step.blocked {
  border-color: rgba(255, 107, 107, 0.24);
  background:
    linear-gradient(140deg, rgba(255, 107, 107, 0.1), transparent 44%),
    linear-gradient(180deg, rgba(20, 22, 31, 0.96), rgba(10, 11, 17, 0.96));
}

.flow-step > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffb2c1;
  font-size: 12px;
  font-weight: 800;
}

.flow-step h3,
.flow-step p {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.flow-step h3 {
  font-size: 16px;
  line-height: 1.25;
}

.flow-step p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.flow-step a {
  align-self: end;
  min-width: 0;
  color: #ffb2c1;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.review-workbench {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.section-heading {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.section-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(300px, 1.2fr) minmax(260px, 0.9fr);
  gap: 14px;
}

.review-queue,
.review-detail,
.publish-gate {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 22, 31, 0.96), rgba(10, 11, 17, 0.96));
  padding: 16px;
}

.review-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
  margin-bottom: 12px;
}

.review-toolbar strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.review-toolbar span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 12px;
  padding: 5px 8px;
}

.review-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  padding: 10px 0;
}

.review-row.is-selected {
  border-color: rgba(233, 75, 115, 0.3);
  border-radius: 10px;
  background: rgba(233, 75, 115, 0.08);
  padding: 10px;
}

.review-row strong,
.review-row p,
.review-row em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.review-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.review-row em {
  border-radius: 999px;
  background: rgba(215, 168, 87, 0.14);
  color: var(--gold);
  font-size: 12px;
  font-style: normal;
  padding: 5px 8px;
}

.review-row em.warning {
  background: rgba(255, 107, 107, 0.14);
  color: var(--danger);
}

.review-meta {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.review-meta div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.review-meta dt,
.review-meta dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.review-meta dt {
  color: #ff9aaa;
  font-size: 12px;
  font-weight: 700;
}

.review-meta dd {
  color: var(--muted);
  font-size: 12px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.action-pill {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  padding: 6px;
}

.action-pill.approve {
  background: rgba(123, 216, 143, 0.14);
  color: var(--ok);
}

.action-pill.reject {
  background: rgba(255, 107, 107, 0.14);
  color: var(--danger);
}

.gate-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0 0 14px;
  list-style: none;
}

.gate-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.gate-list span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(233, 75, 115, 0.18);
  color: #ff9aaa;
  font-size: 12px;
  font-weight: 800;
}

.gate-list p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .topbar,
  .hero {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }

  .grid,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .direction-board {
    order: 1;
    grid-template-columns: 1fr;
  }

  .direction-card.wide {
    grid-column: auto;
  }

  .h5-customer-status-grid,
  .admin-acceptance-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .h5-customer-status-panel {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    order: 2;
    min-height: auto;
  }

  .hero-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-copy h1 {
    font-size: 28px;
    line-height: 1.16;
  }

  .hero-copy > div:first-child > p:not(.mobile-first-note) {
    display: none;
  }

  .hero-copy .notice {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.55;
  }

  .mobile-first-note {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
  }

  .direction-card {
    padding: 12px;
  }

  .phone-frame {
    width: min(100%, 286px);
  }

  .warm-role-card,
  .repository-note {
    font-size: 10px;
  }

  .admin-preview {
    grid-template-columns: 1fr;
  }

  .admin-side {
    grid-template-columns: repeat(3, 1fr);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 12px;
  }

  .role-workshop-row {
    grid-template-columns: 1fr;
  }

  .flow-board,
  .preference-preview-board,
  .payment-result-board,
  .review-layout,
  .review-meta div,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .review-row {
    grid-template-columns: 1fr;
  }

  .preview img {
    min-height: 260px;
  }

  .settings-phone-surface {
    padding: 14px;
  }

  .settings-card {
    padding: 14px;
  }

  .setting-row {
    gap: 10px;
    padding: 12px;
  }

  .novel-state-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .preview-home {
    width: min(100% - 24px, 520px);
    padding-bottom: 34px;
  }

  .preview-nav {
    align-items: center;
    min-height: 0;
    padding-top: 8px;
  }

  .preview-nav nav {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .preview-nav nav::-webkit-scrollbar {
    display: none;
  }

  .preview-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: auto;
    padding: 16px 0 12px;
  }

  .preview-copy {
    gap: 13px;
  }

  .preview-copy h1 {
    font-size: clamp(32px, 10vw, 44px);
    line-height: 1.06;
  }

  .preview-copy > p:not(.preview-kicker) {
    font-size: 14px;
    line-height: 1.62;
  }

  .preview-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .preview-actions::-webkit-scrollbar {
    display: none;
  }

  .preview-actions .button {
    flex: 0 0 auto;
    min-height: 42px;
  }

  .preview-proof {
    display: none;
  }

  .preview-stage {
    min-height: auto;
  }

  .preview-orbit {
    inset: 0 -10px;
  }

  .preview-phone {
    width: min(100%, 390px);
    min-height: 560px;
  }

  .preview-sections,
  .route-chat {
    grid-template-columns: 1fr;
  }

  .route-chat {
    grid-row: auto;
  }

  .route-image {
    min-height: 260px;
  }

  .route-boundary {
    align-items: flex-start;
    flex-direction: column;
  }

  .boundary-links {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .preview-home {
    width: calc(100% - 20px);
    padding-top: 8px;
  }

  .preview-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .preview-brand {
    gap: 9px;
  }

  .preview-brand strong {
    font-size: 15px;
  }

  .preview-brand em {
    font-size: 11px;
  }

  .preview-nav nav a {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .preview-copy {
    gap: 12px;
  }

  .preview-copy h1 {
    font-size: clamp(28px, 9vw, 36px);
  }

  .preview-kicker {
    font-size: 12px;
  }

  .preview-actions .button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 13px;
  }

  .preview-phone {
    border-radius: 28px;
    padding: 13px;
    min-height: 520px;
  }

  .phone-visual {
    min-height: 138px;
    border-radius: 20px;
  }

  .phone-role-grid {
    gap: 10px;
  }

  .role-cover {
    min-height: 92px;
  }

  .phone-bottom-nav {
    gap: 4px;
    padding: 7px;
  }

  .phone-bottom-nav a {
    padding: 8px 2px;
    font-size: 11px;
  }

  .route-card {
    padding: 18px;
    border-radius: 18px;
  }
}

.delivery-app-home {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 16px 0 56px;
}

.delivery-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
}

.delivery-brand,
.delivery-topbar nav,
.delivery-actions,
.delivery-paths,
.delivery-chip-row,
.delivery-bottom-nav,
.delivery-link-row {
  display: flex;
  align-items: center;
}

.delivery-brand {
  gap: 12px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.delivery-brand-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(9, 10, 15, 0.03), rgba(9, 10, 15, 0.28)),
    var(--brand-icon-image) center / cover no-repeat,
    linear-gradient(145deg, var(--pink), #5b142b 72%);
  box-shadow: 0 0 28px rgba(233, 75, 115, 0.36);
}

.delivery-brand strong,
.delivery-brand em {
  display: block;
  overflow: hidden;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-brand strong {
  font-size: 16px;
}

.delivery-brand em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.delivery-topbar nav {
  gap: 8px;
  justify-content: flex-end;
  min-width: 0;
}

.delivery-topbar nav a,
.delivery-link-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}

.delivery-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 34px;
  align-items: center;
  min-height: calc(100dvh - 88px);
  padding: 24px 0 26px;
}

.delivery-copy {
  display: grid;
  gap: 18px;
}

.delivery-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 750;
}

.delivery-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: 1.04;
  letter-spacing: 0;
}

.delivery-copy > p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.delivery-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.delivery-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}

.delivery-button.primary {
  border-color: rgba(233, 75, 115, 0.78);
  background: var(--pink);
  color: #fff;
  box-shadow: 0 18px 42px rgba(233, 75, 115, 0.3);
}

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

.delivery-paths article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 82% 18%, rgba(233, 75, 115, 0.14), transparent 40px),
    rgba(255, 255, 255, 0.045);
  padding: 14px;
}

.delivery-paths span,
.delivery-paths strong,
.delivery-paths em {
  display: block;
}

.delivery-paths span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.delivery-paths strong {
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.25;
}

.delivery-paths em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.55;
}

.delivery-phone {
  position: relative;
  width: min(100%, 408px);
  min-height: 782px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background:
    radial-gradient(circle at 92% 6%, rgba(233, 75, 115, 0.28), transparent 170px),
    radial-gradient(circle at 18% 40%, rgba(233, 75, 115, 0.16), transparent 150px),
    #090a0f;
  box-shadow:
    inset 0 0 0 5px rgba(255, 255, 255, 0.035),
    0 34px 96px rgba(0, 0, 0, 0.48);
  padding: 18px;
}

.delivery-phone::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(9, 10, 15, 0.9), rgba(9, 10, 15, 0.66)),
    var(--role-cover-a) center top / 178% auto no-repeat,
    radial-gradient(circle at 84% 7%, rgba(255, 255, 255, 0.72) 0 5px, transparent 6px),
    radial-gradient(circle at 78% 9%, rgba(233, 75, 115, 0.66) 0 34px, transparent 35px),
    linear-gradient(145deg, transparent 0 58%, rgba(233, 75, 115, 0.11) 82%, transparent 100%);
  opacity: 0.84;
}

.delivery-phone > * {
  position: relative;
}

.delivery-phone-status,
.delivery-screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.delivery-phone-status {
  padding: 2px 10px 18px;
  color: rgba(247, 243, 245, 0.94);
  font-size: 12px;
  font-weight: 800;
}

.delivery-screen-head p,
.delivery-screen-head h2 {
  margin: 0;
}

.delivery-screen-head p {
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 800;
}

.delivery-screen-head h2 {
  max-width: 280px;
  font-size: 25px;
  line-height: 1.22;
}

.delivery-orb {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background:
    radial-gradient(circle at 65% 36%, #ffe3ed 0 18%, transparent 20%),
    radial-gradient(circle at 43% 54%, var(--pink) 0 42%, transparent 44%),
    #381523;
  box-shadow: 0 0 24px rgba(233, 75, 115, 0.36);
}

.delivery-story-row {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 10px;
  margin-top: 18px;
}

.delivery-story-row article {
  min-height: 96px;
  border: 1px solid rgba(233, 75, 115, 0.5);
  border-radius: 16px;
  background:
    radial-gradient(circle at 84% 18%, rgba(233, 75, 115, 0.35), transparent 42px),
    rgba(26, 27, 36, 0.86);
  padding: 12px;
}

.delivery-story-row article.gold {
  border-color: rgba(215, 168, 87, 0.52);
  background:
    radial-gradient(circle at 82% 20%, rgba(215, 168, 87, 0.34), transparent 42px),
    rgba(26, 27, 36, 0.86);
}

.delivery-story-row span,
.delivery-story-row strong,
.delivery-story-row em {
  display: block;
}

.delivery-story-row span,
.delivery-story-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
}

.delivery-story-row strong {
  margin: 5px 0;
  font-size: 14px;
  line-height: 1.35;
}

.delivery-search {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.delivery-search span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.delivery-search input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.delivery-chip-row {
  gap: 8px;
  margin: 14px 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.delivery-chip-row::-webkit-scrollbar {
  display: none;
}

.delivery-chip-row span,
.delivery-chip-row button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
}

.delivery-chip-row span.active,
.delivery-chip-row button.active {
  background: var(--pink);
  color: #fff;
  font-weight: 800;
}

.delivery-chip-row button:focus-visible {
  border-radius: 999px;
  outline: 2px solid rgba(255, 224, 234, 0.92);
  outline-offset: 2px;
}

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

.delivery-role-grid article {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%),
    rgba(18, 19, 26, 0.94);
  padding: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.delivery-role-grid article.is-selected {
  border-color: rgba(233, 75, 115, 0.72);
  box-shadow:
    0 0 0 1px rgba(233, 75, 115, 0.16),
    0 12px 28px rgba(233, 75, 115, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.delivery-role-media {
  height: 142px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(13, 14, 20, 0), rgba(13, 14, 20, 0.28)),
    var(--role-cover-a) center 38% / cover no-repeat,
    #161720;
  box-shadow: inset 0 -22px 34px rgba(0, 0, 0, 0.2);
}

.delivery-role-media.media-b {
  background:
    linear-gradient(180deg, rgba(13, 14, 20, 0.02), rgba(13, 14, 20, 0.3)),
    var(--role-cover-b) center 31% / cover no-repeat,
    #11131a;
}

.delivery-role-media.media-c {
  background:
    linear-gradient(180deg, rgba(13, 14, 20, 0.02), rgba(13, 14, 20, 0.3)),
    var(--role-cover-c) center 38% / cover no-repeat,
    #12151b;
}

.delivery-role-media.media-d {
  background:
    linear-gradient(180deg, rgba(13, 14, 20, 0.02), rgba(13, 14, 20, 0.3)),
    var(--role-cover-d) center 32% / cover no-repeat,
    #171018;
}

.delivery-role-media.is-custom-upload,
.role-detail-cover.is-custom-upload,
.create-preview-hero.is-custom-upload,
.create-upload-preview.is-custom-upload {
  background:
    linear-gradient(180deg, rgba(13, 14, 20, 0.02), rgba(13, 14, 20, 0.32)),
    var(--custom-role-cover) center / cover no-repeat,
    #171018;
}

.embedded-role-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
  padding-bottom: 92px;
}

.embedded-role-grid article {
  display: flex;
  min-height: 248px;
  aspect-ratio: 0.72;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 22px;
  padding: 14px;
  background: #11131a;
}

.embedded-role-grid article::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 6, 10, 0.16) 0%, rgba(5, 6, 10, 0.2) 34%, rgba(5, 6, 10, 0.9) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.36), transparent 62%);
}

.embedded-role-grid .delivery-role-media {
  position: absolute;
  inset: 0;
  height: 100%;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
}

.delivery-role-grid article > span {
  position: absolute;
  top: 14px;
  left: 14px;
  max-width: calc(100% - 28px);
  overflow: hidden;
  border: 1px solid rgba(233, 75, 115, 0.62);
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(8, 9, 14, 0.66);
  color: #ffd9e2;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.embedded-role-grid article > span {
  z-index: 2;
  max-width: calc(100% - 92px);
  border: 0;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font-size: 13px;
}

.delivery-role-grid strong,
.delivery-role-grid p,
.delivery-role-grid em,
.delivery-role-grid a {
  display: block;
}

.delivery-role-grid strong {
  margin: 10px 2px 4px;
  font-size: 15px;
}

.embedded-role-grid strong,
.embedded-role-grid p,
.embedded-role-grid em {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.embedded-role-grid strong {
  margin: 0 0 6px;
  font-size: 21px;
  line-height: 1.18;
}

.delivery-role-grid p {
  min-height: 38px;
  margin: 0 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.embedded-role-grid p {
  min-height: 0;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.45;
}

.delivery-role-grid em {
  margin: 9px 2px 0;
  color: var(--text-muted, #7d7480);
  font-size: 11px;
  font-style: normal;
}

.embedded-role-grid em {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  max-width: 104px;
  overflow: visible;
  margin: 0;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.delivery-role-grid a {
  margin-top: 10px;
  border: 1px solid rgba(233, 75, 115, 0.72);
  border-radius: 12px;
  padding: 9px 8px;
  background: rgba(233, 75, 115, 0.26);
  color: #ffdce6;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  scroll-margin-bottom: 118px;
}

.embedded-role-grid a {
  position: absolute;
  inset: 0;
  z-index: 4;
  margin: 0;
  border: 0;
  border-radius: inherit;
  padding: 0;
  overflow: hidden;
  background: transparent;
  color: transparent;
  text-indent: -999px;
}

.my-role-phone .phone-head a {
  color: #ffdce6;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}

.mobile-product-page[data-active-layer="roles"] .my-role-cards-screen .screen-phone {
  padding-bottom: 88px;
}

.my-role-intro-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(233, 75, 115, 0.08)),
    rgba(255, 255, 255, 0.04);
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.my-role-intro-card strong,
.my-role-intro-card small {
  display: block;
}

.my-role-intro-card strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1.12;
}

.my-role-intro-card small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.my-role-search {
  margin-top: 14px;
}

.my-role-filter-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 14px 0 16px;
  flex-wrap: wrap;
}

.my-role-filter-row button {
  min-width: 74px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  padding: 10px 16px;
}

.my-role-filter-row button.active {
  border-color: rgba(233, 75, 115, 0.72);
  background: rgba(233, 75, 115, 0.2);
  color: #fff;
}

.my-role-empty-state {
  border: 1px dashed rgba(233, 75, 115, 0.42);
  border-radius: 22px;
  background: rgba(233, 75, 115, 0.08);
  padding: 22px 18px;
  text-align: center;
}

.my-role-empty-state strong,
.my-role-empty-state p,
.my-role-empty-state a,
.my-role-empty-state button,
.my-role-empty-state small {
  display: block;
}

.my-role-empty-state strong {
  color: var(--text);
  font-size: 18px;
}

.my-role-empty-state p {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.my-role-empty-state small {
  margin: 0 0 12px;
  color: rgba(247, 243, 245, 0.78);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.my-role-empty-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: 220px;
  margin: 0 auto;
}

.my-role-empty-state a,
.my-role-empty-state button {
  display: inline-flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(233, 75, 115, 0.5);
  border-radius: 999px;
  background: rgba(233, 75, 115, 0.14);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 10px 16px;
  text-decoration: none;
}

.my-role-empty-state a {
  border-color: rgba(233, 75, 115, 0.88);
  background: var(--pink);
}

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

.my-role-card-grid > .my-role-card-shell:only-child {
  grid-column: 1 / -1;
  width: min(100%, 420px);
}

.my-role-card-grid a {
  position: relative;
  display: flex;
  min-height: 246px;
  aspect-ratio: 0.72;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: #11131a;
  color: #fff;
  padding: 14px;
  text-decoration: none;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.my-role-card-grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 6, 10, 0.12) 0%, rgba(5, 6, 10, 0.2) 34%, rgba(5, 6, 10, 0.88) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.32), transparent 62%);
}

.my-role-card-media {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(13, 14, 20, 0.02), rgba(13, 14, 20, 0.3)),
    var(--role-cover-d) center 32% / cover no-repeat,
    #171018;
}

.my-role-card-media.media-a {
  background:
    linear-gradient(180deg, rgba(13, 14, 20, 0.02), rgba(13, 14, 20, 0.3)),
    var(--role-cover-a) center 38% / cover no-repeat,
    #161720;
}

.my-role-card-media.media-b {
  background:
    linear-gradient(180deg, rgba(13, 14, 20, 0.02), rgba(13, 14, 20, 0.3)),
    var(--role-cover-b) center 31% / cover no-repeat,
    #11131a;
}

.my-role-card-media.media-c {
  background:
    linear-gradient(180deg, rgba(13, 14, 20, 0.02), rgba(13, 14, 20, 0.3)),
    var(--role-cover-c) center 38% / cover no-repeat,
    #12151b;
}

.my-role-card-media.is-custom-upload {
  background:
    linear-gradient(180deg, rgba(13, 14, 20, 0.02), rgba(13, 14, 20, 0.32)),
    var(--custom-role-cover) center / cover no-repeat,
    #171018;
}

.my-role-card-grid span,
.my-role-card-grid em,
.my-role-card-grid strong,
.my-role-card-grid p,
.my-role-card-tags {
  position: relative;
  z-index: 2;
}

.my-role-card-grid span,
.my-role-card-grid em {
  position: absolute;
  top: 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  padding: 5px 9px;
}

.my-role-card-grid span {
  left: 14px;
  max-width: calc(100% - 82px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-role-card-grid em {
  right: 14px;
}

.my-role-card-grid strong {
  margin: 0 0 7px;
  color: #fff;
  font-size: 21px;
  line-height: 1.16;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.my-role-card-grid p {
  display: -webkit-box;
  min-height: 38px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.my-role-card-tags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.my-role-card-tags i {
  max-width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  padding: 5px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-bottom-nav {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  justify-content: space-between;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(13, 14, 20, 0.94);
  padding: 8px;
  box-shadow: 0 -18px 36px rgba(0, 0, 0, 0.32);
}

.delivery-bottom-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  border-radius: 14px;
  padding: 0 3px;
  color: var(--muted);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
}

.delivery-bottom-nav a.create {
  background: var(--pink);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(233, 75, 115, 0.34);
}

.delivery-topbar nav a.active,
.delivery-actions .delivery-button.active,
.delivery-bottom-nav a.active {
  border-color: rgba(233, 75, 115, 0.78);
  background: rgba(233, 75, 115, 0.24);
  color: #fff;
  font-weight: 900;
}

.delivery-bottom-nav a.create.active {
  background: var(--pink);
}

.app-layer-bottom-nav {
  position: fixed;
  right: auto;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 20;
  width: min(520px, calc(100% - 20px));
  margin: 0;
  transform: translateX(-50%);
}

.delivery-feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 16px;
  margin-top: 18px;
}

.delivery-feature-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 86% 14%, rgba(233, 75, 115, 0.14), transparent 120px),
    linear-gradient(180deg, rgba(26, 27, 36, 0.94), rgba(12, 13, 19, 0.94));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  padding: 22px;
}

.delivery-feature-card h2 {
  margin: 6px 0 10px;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.18;
}

.delivery-feature-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
}

.delivery-feature-card.novel {
  display: grid;
  grid-row: span 2;
  grid-template-columns: minmax(160px, 0.64fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.delivery-feature-image {
  display: block;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, transparent 42%, rgba(9, 10, 15, 0.82)),
    var(--role-cover-c) center / cover no-repeat;
}

.delivery-feature-card.boundary {
  grid-column: 1 / -1;
}

.delivery-link-row {
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .delivery-app-home {
    width: min(100% - 20px, 520px);
    padding-top: 10px;
  }

  .delivery-topbar {
    align-items: center;
  }

  .delivery-topbar nav {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .delivery-topbar nav::-webkit-scrollbar {
    display: none;
  }

  .delivery-hero,
  .delivery-feature-band,
  .delivery-feature-card.novel {
    grid-template-columns: 1fr;
  }

  .delivery-hero {
    gap: 18px;
    min-height: auto;
    padding-top: 12px;
  }

  .delivery-copy {
    gap: 13px;
  }

  .delivery-copy h1 {
    font-size: clamp(31px, 9.5vw, 42px);
  }

  .delivery-copy > p {
    font-size: 14px;
    line-height: 1.62;
  }

  .delivery-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .delivery-actions::-webkit-scrollbar {
    display: none;
  }

  .delivery-actions .delivery-button {
    flex: 0 0 auto;
  }

  .delivery-paths {
    display: none;
  }

  .h5-customer-status-panel,
  .admin-acceptance-strip {
    width: min(100% - 24px, 1160px);
    margin-bottom: 20px;
  }

  .h5-customer-status-grid,
  .admin-acceptance-strip {
    grid-template-columns: 1fr;
  }

  .delivery-phone {
    order: -1;
    width: min(100%, 390px);
    min-height: 748px;
    margin: 0 auto;
  }

  .delivery-copy {
    order: 1;
  }
}

@media (max-width: 430px) {
  .delivery-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .delivery-brand {
    gap: 9px;
  }

  .delivery-brand strong {
    font-size: 15px;
  }

  .delivery-brand em {
    font-size: 11px;
  }

  .delivery-topbar nav a {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .delivery-screen-head h2 {
    font-size: 23px;
  }

  .delivery-phone {
    min-height: 724px;
    border-radius: 30px;
    padding: 14px;
  }

  .delivery-role-media {
    height: 136px;
  }

  .delivery-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 112px;
  }

  .embedded-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-bottom: 122px;
  }

  .embedded-role-grid article {
    min-height: 232px;
    padding: 12px;
  }

  .embedded-role-grid strong {
    font-size: 19px;
  }

  .embedded-role-grid p {
    margin-bottom: 18px;
    font-size: 12px;
  }

  .novel-state-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .delivery-bottom-nav {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 7px;
  }
}

.delivery-bottom-nav.app-layer-bottom-nav {
  right: auto;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 50%;
}

.mobile-product-page {
  width: min(1180px, calc(100% - 28px));
  max-width: 100%;
  margin: 0 auto;
  overflow-x: clip;
  padding: 16px 0 104px;
}

.mobile-product-page:not(.is-authenticated) {
  min-height: 100dvh;
  display: grid;
  align-items: center;
}

.mobile-product-page:not(.is-authenticated) > :not(.mobile-login-wall) {
  display: none !important;
}

.mobile-product-page.is-authenticated .mobile-login-wall {
  display: none !important;
}

.auth-checking-status,
.auth-checking-retry {
  display: none;
}

.auth-checking-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.mobile-product-page.is-auth-checking .mobile-login-card > :not(.auth-checking-status, .auth-checking-retry) {
  display: none !important;
}

.mobile-product-page.is-auth-checking .auth-checking-status,
.mobile-product-page.is-auth-checking .auth-checking-retry {
  display: block;
}

.mobile-login-wall {
  width: min(100%, 480px);
  margin: 0 auto;
}

.mobile-login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.mobile-login-brand span:last-child {
  display: grid;
  gap: 3px;
}

.mobile-login-brand strong {
  color: var(--text);
  font-size: 18px;
}

.mobile-login-brand em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.mobile-login-card {
  display: grid;
  gap: 15px;
  border: 1px solid rgba(233, 75, 115, 0.34);
  border-radius: 24px;
  padding: 24px;
  background:
    radial-gradient(circle at 90% 0%, rgba(233, 75, 115, 0.26), transparent 170px),
    radial-gradient(circle at 8% 28%, rgba(215, 168, 87, 0.12), transparent 180px),
    rgba(15, 16, 24, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 28px 80px rgba(0, 0, 0, 0.42);
}

.mobile-login-card h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
}

.mobile-login-card > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.mobile-product-page [data-mobile-layer][hidden] {
  display: none !important;
}

.mobile-product-topbar {
  margin-bottom: 18px;
}

.mobile-product-hero {
  display: block;
  min-height: auto;
}

.mobile-hero-copy {
  display: grid;
  gap: 18px;
}

.mobile-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 5.5vw, 70px);
  line-height: 1.05;
  letter-spacing: 0;
}

.mobile-hero-copy p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.app-showcase,
.screen-phone {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background:
    radial-gradient(circle at 88% 6%, rgba(233, 75, 115, 0.3), transparent 170px),
    radial-gradient(circle at 14% 40%, rgba(215, 168, 87, 0.13), transparent 180px),
    #090a0f;
  box-shadow:
    inset 0 0 0 5px rgba(255, 255, 255, 0.035),
    0 34px 96px rgba(0, 0, 0, 0.42);
}

.app-showcase {
  width: min(100%, 410px);
  min-height: 760px;
  overflow: clip;
  margin: 0 auto;
  padding: 14px;
}

.role-catalog-controls {
  position: sticky;
  top: 8px;
  z-index: 12;
  display: grid;
  gap: 8px;
  margin: 0;
  border: 0;
  border-radius: 20px;
  padding: 0;
  background: rgba(9, 10, 15, 0.94);
  box-shadow: none;
}

.role-catalog-controls .app-search,
.role-catalog-controls .role-filter-panel {
  margin: 0;
}

.app-showcase .app-search {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.app-showcase .app-search span {
  display: none;
}

.app-showcase .app-search input {
  min-height: 42px;
  border-radius: 15px;
  padding-left: 15px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.app-showcase .delivery-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow: visible;
}

.app-showcase .role-filter-panel .delivery-chip-row {
  flex-wrap: nowrap;
  gap: 7px;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.app-showcase .role-filter-panel .delivery-chip-row::-webkit-scrollbar {
  display: none;
}

.role-filter-panel {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  height: max-content;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.role-filter-group {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  height: max-content;
  gap: 7px;
  min-width: 0;
}

.role-filter-system-rows {
  display: grid;
  grid-template-rows: repeat(2, max-content);
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.role-user-filter-group {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(233, 75, 115, 0.22);
  padding-top: 7px;
}

.role-user-filter-group[hidden] {
  display: none;
}

.role-filter-group-title {
  color: rgba(247, 243, 245, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.role-user-filter-group .role-filter-group-title {
  color: var(--accent-soft);
}

.app-showcase .delivery-chip-row button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.07);
}

.app-showcase .role-filter-panel .delivery-chip-row button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 10px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.app-showcase .role-filter-panel .delivery-chip-row button.active {
  border-color: rgba(255, 227, 235, 0.42);
  background: var(--pink);
  color: #fff;
  font-weight: 900;
}

.app-showcase .role-filter-panel .delivery-chip-row button:focus-visible {
  border-radius: 999px;
  outline: 2px solid rgba(255, 224, 234, 0.92);
  outline-offset: 2px;
}

.app-showcase .user-role-filter-row button {
  border-color: rgba(233, 75, 115, 0.24);
  background: rgba(233, 75, 115, 0.08);
}

.app-showcase .embedded-role-grid {
  padding-bottom: 0;
}

.role-catalog-pagination {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 16px 0 12px;
  text-align: center;
}

.role-catalog-pagination p {
  margin: 0;
  color: rgba(247, 243, 245, 0.7);
  font-size: 12px;
  font-weight: 750;
}

.role-catalog-pagination button,
.role-back-to-top {
  min-height: 44px;
  border: 1px solid rgba(233, 75, 115, 0.48);
  border-radius: 999px;
  background: rgba(23, 17, 25, 0.94);
  color: #ffe6ed;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.role-catalog-pagination button {
  min-width: 170px;
  padding: 10px 18px;
}

.role-load-sentinel {
  display: block;
  width: 1px;
  height: 1px;
}

.role-back-to-top {
  position: fixed;
  right: max(18px, calc((100vw - 410px) / 2 + 18px));
  bottom: calc(max(10px, env(safe-area-inset-bottom)) + 76px);
  z-index: 22;
  padding: 9px 15px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

.role-back-to-top:focus-visible,
.role-catalog-pagination button:focus-visible {
  outline: 3px solid rgba(255, 220, 230, 0.9);
  outline-offset: 3px;
}

.app-showcase::before,
.screen-phone::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(9, 10, 15, 0.86), rgba(9, 10, 15, 0.64)),
    var(--role-cover-a) center top / 172% auto no-repeat;
  opacity: 0.72;
}

.app-showcase > *,
.screen-phone > * {
  position: relative;
}

.app-showcase > .role-catalog-controls {
  position: sticky;
}

.app-showcase > .role-back-to-top {
  position: fixed;
}

.app-statusbar,
.app-profile-row,
.phone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.role-detail-menu {
  position: relative;
}

.role-detail-menu summary {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.role-detail-menu summary::-webkit-details-marker {
  display: none;
}

.role-detail-menu summary i {
  font-size: 22px;
}

.role-detail-menu > div {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  display: grid;
  width: 144px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(18, 15, 22, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.44);
}

.role-detail-menu button {
  min-height: 46px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-align: left;
  padding: 10px 16px;
}

.role-detail-menu button:last-child {
  border-bottom: 0;
  color: #ff9caf;
}

.role-delete-dialog {
  width: min(calc(100% - 32px), 390px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: #17131b;
  color: var(--text);
  padding: 0;
}

.role-delete-dialog::backdrop {
  background: rgba(4, 5, 8, 0.76);
}

.role-delete-dialog form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.role-delete-dialog strong,
.role-delete-dialog p,
.role-delete-dialog small {
  margin: 0;
}

.role-delete-dialog p,
.role-delete-dialog small {
  color: var(--muted);
  line-height: 1.6;
}

.role-delete-dialog form > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.role-delete-dialog button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-weight: 850;
}

.role-delete-dialog [data-role-delete-confirm] {
  border-color: rgba(233, 75, 115, 0.5);
  background: rgba(233, 75, 115, 0.18);
  color: #ffdce5;
}

.app-statusbar {
  padding: 2px 10px 18px;
  color: rgba(247, 243, 245, 0.94);
  font-size: 12px;
  font-weight: 800;
}

.app-profile-row span,
.app-story-card span,
.screen-pill {
  display: inline-flex;
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 850;
}

.app-profile-row h2,
.app-story-card strong,
.screen-section h2,
.chat-cover-strip h2,
.settings-card h2 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0;
}

.app-profile-row h2 {
  max-width: 270px;
  margin-top: 4px;
  font-size: 18px;
}

.app-avatar-mark {
  display: inline-grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(233, 75, 115, 0.34), rgba(70, 28, 50, 0.72));
  color: #ffe8ef;
  box-shadow: 0 0 28px rgba(233, 75, 115, 0.34);
  font-size: 21px;
}

.app-profile-row .app-avatar-mark {
  color: #ffe8ef;
  font-size: 21px;
}

.app-avatar-mark i {
  line-height: 1;
}

.app-story-card {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  border: 1px solid rgba(233, 75, 115, 0.52);
  border-radius: 20px;
  background:
    linear-gradient(180deg, transparent 18%, rgba(8, 9, 14, 0.8)),
    var(--role-cover-c) center 23% / cover no-repeat;
  min-height: 178px;
  align-content: end;
  padding: 16px;
}

.app-story-card strong {
  font-size: 20px;
}

.app-story-card p {
  margin: 0;
  color: rgba(247, 243, 245, 0.76);
  font-size: 13px;
  line-height: 1.6;
}

.app-story-card a {
  width: max-content;
  border-radius: 12px;
  background: var(--pink);
  color: #fff;
  padding: 9px 13px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}

.quick-scale-card {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  border: 1px solid rgba(215, 168, 87, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 18%, rgba(215, 168, 87, 0.2), transparent 86px),
    rgba(18, 19, 26, 0.86);
  padding: 12px;
}

.quick-scale-card span,
.quick-scale-card strong,
.quick-scale-card p,
.quick-scale-card a {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.quick-scale-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
}

.quick-scale-card strong {
  font-size: 15px;
  line-height: 1.3;
}

.quick-scale-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.quick-scale-card a {
  width: max-content;
  border-radius: 11px;
  background: rgba(233, 75, 115, 0.24);
  color: #ffdce6;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  padding: 8px 10px;
}

.app-search {
  margin-top: 16px;
}

.mobile-screen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.mobile-product-page[data-active-layer="home"]:has(#role-detail-preview:not([hidden])),
.mobile-product-page[data-active-layer="roles"]:has(#role-detail-preview:not([hidden])) {
  width: min(100%, 980px);
  padding-top: 0;
}

.mobile-product-page[data-active-layer="home"]:has(#role-detail-preview:not([hidden])) .mobile-product-topbar,
.mobile-product-page[data-active-layer="home"]:has(#role-detail-preview:not([hidden])) .app-layer-bottom-nav,
.mobile-product-page[data-active-layer="roles"]:has(#role-detail-preview:not([hidden])) .mobile-product-topbar,
.mobile-product-page[data-active-layer="roles"]:has(#role-detail-preview:not([hidden])) .app-layer-bottom-nav {
  display: none;
}

.mobile-product-page[data-active-layer="home"]:has(#role-detail-preview:not([hidden])) .mobile-screen-grid,
.mobile-product-page[data-active-layer="roles"]:has(#role-detail-preview:not([hidden])) .mobile-screen-grid {
  display: block;
  margin-top: 0;
}

.mobile-product-page[data-active-layer="home"]:has(#role-detail-preview:not([hidden])) .role-detail-screen,
.mobile-product-page[data-active-layer="roles"]:has(#role-detail-preview:not([hidden])) .role-detail-screen {
  max-width: 100%;
}

.mobile-product-page[data-active-layer="home"]:has(#role-detail-preview:not([hidden])) .role-detail-screen .screen-phone,
.mobile-product-page[data-active-layer="roles"]:has(#role-detail-preview:not([hidden])) .role-detail-screen .screen-phone {
  width: 100%;
  min-height: 100dvh;
  margin: 0 auto;
  border-radius: 0;
  border-color: rgba(233, 75, 115, 0.22);
  box-shadow: none;
}

.role-detail-route-head {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: -16px -16px 12px;
  padding: 16px;
  min-height: 62px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 10, 15, 0.9);
  backdrop-filter: blur(18px);
}

.role-detail-route-head a,
.role-detail-route-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: rgba(247, 243, 245, 0.94);
}

.customer-test-console {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.customer-test-console article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 86% 12%, rgba(233, 75, 115, 0.16), transparent 108px),
    linear-gradient(180deg, rgba(26, 27, 36, 0.94), rgba(12, 13, 19, 0.94));
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.22);
  padding: 18px;
}

.customer-test-console span,
.customer-test-console h2,
.customer-test-console p,
.customer-test-console a,
.customer-test-console em {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.customer-test-console span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
}

.customer-test-console h2 {
  margin: 8px 0 8px;
  font-size: 21px;
  line-height: 1.2;
}

.customer-test-console p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.customer-test-console a {
  width: max-content;
  max-width: 100%;
  margin-top: 13px;
  border-radius: 12px;
  background: rgba(233, 75, 115, 0.22);
  color: #ffdce6;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
  padding: 9px 11px;
}

.customer-test-console em {
  margin-top: 12px;
  border: 1px solid rgba(215, 168, 87, 0.24);
  border-radius: 12px;
  background: rgba(215, 168, 87, 0.08);
  color: #f2cf8e;
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
  padding: 8px 10px;
}

.mobile-screen-card {
  min-width: 0;
}

.screen-phone {
  min-height: 620px;
  padding: 16px;
}

.phone-head {
  min-height: 38px;
  color: rgba(247, 243, 245, 0.92);
  font-size: 14px;
}

.phone-head strong {
  font-size: 17px;
}

.screen-section > h1 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.2;
}

.phone-head a {
  position: relative;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

.phone-head .phone-head-action {
  position: relative;
  z-index: 4;
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(233, 75, 115, 0.2);
}

.phone-head .phone-head-action:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

.role-detail-cover,
.create-preview-hero {
  min-height: 218px;
  margin: 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(180deg, transparent 28%, rgba(8, 9, 14, 0.82)),
    var(--role-cover-a) center 12% / cover no-repeat;
}

.role-detail-cover.media-a {
  background:
    linear-gradient(180deg, transparent 24%, rgba(8, 9, 14, 0.72)),
    var(--role-cover-a) center 36% / cover no-repeat;
}

.role-detail-cover.media-b {
  background:
    linear-gradient(180deg, transparent 24%, rgba(8, 9, 14, 0.74)),
    var(--role-cover-b) center 30% / cover no-repeat;
}

.role-detail-cover.media-c {
  background:
    linear-gradient(180deg, transparent 24%, rgba(8, 9, 14, 0.74)),
    var(--role-cover-c) center 36% / cover no-repeat;
}

.role-detail-cover.media-d {
  background:
    linear-gradient(180deg, transparent 24%, rgba(8, 9, 14, 0.72)),
    var(--role-cover-d) center 31% / cover no-repeat;
}

.role-detail-cover.is-custom-upload {
  background:
    linear-gradient(180deg, transparent 24%, rgba(8, 9, 14, 0.72)),
    var(--custom-role-cover) center / cover no-repeat,
    #171018;
}

.chat-message-phone {
  min-height: 620px;
  background:
    radial-gradient(circle at 50% -18%, rgba(233, 75, 115, 0.1), transparent 168px),
    linear-gradient(180deg, rgba(31, 32, 39, 0.96), rgba(27, 28, 34, 0.98));
}

.chat-list-head {
  grid-template-columns: 48px minmax(0, 1fr) 72px;
  min-height: 58px;
  margin-bottom: 16px;
}

.chat-list-head strong {
  text-align: center;
  font-size: 21px;
  letter-spacing: 0;
}

.chat-head-icon,
.chat-head-actions i {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(9, 10, 15, 0.04), rgba(9, 10, 15, 0.34)),
    var(--brand-icon-image) center / cover no-repeat;
  box-shadow: 0 0 18px rgba(233, 75, 115, 0.24);
}

.chat-head-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.chat-head-actions i {
  width: 24px;
  height: 24px;
  opacity: 0.82;
}

.chat-thread-list {
  display: grid;
  gap: 0;
}

.chat-list-screen > .chat-announcement-banner {
  width: min(100%, var(--h5-phone-width));
  max-width: 100%;
  min-width: 0;
  margin: 0 auto 12px;
}

.chat-announcement-banner {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  margin: 0 0 10px;
  border: 1px solid rgba(233, 75, 115, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 8%, rgba(233, 75, 115, 0.2), transparent 72px),
    rgba(233, 75, 115, 0.08);
  min-height: 0;
  padding: 0;
}

.chat-announcement-banner[hidden] {
  display: none !important;
}

.chat-announcement-banner span,
.chat-announcement-banner strong,
.chat-announcement-banner p {
  display: block;
  min-width: 0;
  margin: 0;
}

.chat-announcement-toggle {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  gap: 8px;
  align-items: center;
  border: 0;
  border-radius: inherit;
  padding: 11px 14px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.chat-announcement-toggle > strong {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.chat-announcement-toggle > i {
  color: rgba(247, 243, 245, 0.72);
  font-size: 18px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 160ms ease;
}

.chat-announcement-toggle[aria-expanded="true"] > i {
  transform: rotate(180deg);
}

.chat-announcement-content {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  background: rgba(5, 6, 10, 0.7);
  padding: 18px;
  backdrop-filter: blur(8px);
}

.chat-announcement-content[hidden] {
  display: none !important;
}

body.chat-announcement-open {
  overflow: hidden;
}

.chat-announcement-sheet {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(100%, 520px);
  max-height: min(78vh, 720px);
  max-height: min(78dvh, 720px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  background:
    radial-gradient(circle at 84% 4%, rgba(233, 75, 115, 0.22), transparent 180px),
    linear-gradient(180deg, rgba(29, 25, 34, 0.99), rgba(11, 12, 18, 0.99));
  box-shadow: 0 -28px 90px rgba(0, 0, 0, 0.58);
  padding: 8px 18px 22px;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.chat-announcement-sheet-handle {
  display: grid;
  width: 100%;
  min-height: 32px;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: ns-resize;
  touch-action: none;
}

.chat-announcement-sheet-handle span {
  width: 54px;
  height: 5px;
  border-radius: 999px;
  background: rgba(247, 243, 245, 0.46);
}

.chat-announcement-sheet > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 2px 14px;
}

.chat-announcement-sheet > header > span {
  color: var(--text);
  font-size: 23px;
  font-weight: 900;
}

.chat-announcement-sheet > header button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-size: 22px;
}

.chat-announcement-sheet-list {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  margin-top: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 2px;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.chat-announcement-sheet-list > article {
  min-width: 0;
  border: 1px solid rgba(233, 75, 115, 0.24);
  border-radius: 22px;
  background: rgba(233, 75, 115, 0.1);
  padding: 18px;
}

.chat-announcement-sheet-list > article > span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 850;
}

.chat-announcement-sheet strong,
.chat-announcement-sheet p {
  display: block;
  min-width: 0;
  max-height: none;
  margin: 0;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-line-clamp: unset;
}

.chat-announcement-sheet strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1.35;
}

.chat-announcement-sheet p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.chat-announcement-banner span {
  color: var(--accent-soft);
  font-size: 15px;
  font-weight: 900;
}

.chat-announcement-banner strong {
  margin-top: 3px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
}

.chat-announcement-banner p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chat-announcement-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  min-width: 0;
  margin-top: 16px;
}

.chat-announcement-actions a,
.chat-announcement-actions button {
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(247, 243, 245, 0.9);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 430px) {
  .chat-announcement-banner {
    min-height: 0;
    border-radius: 18px;
    padding: 0;
  }

  .chat-announcement-content {
    padding: 0;
  }

  .chat-announcement-sheet {
    width: 100%;
    max-height: 82vh;
    max-height: min(82dvh, calc(100dvh - max(12px, env(safe-area-inset-top))));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 28px 28px 0 0;
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }

  .chat-announcement-actions a,
  .chat-announcement-actions button {
    min-height: 40px;
    padding-inline: 12px;
  }

  .chat-announcement-banner span {
    font-size: 15px;
  }

  .chat-announcement-banner strong {
    font-size: 16px;
  }

  .chat-announcement-banner p {
    font-size: 13px;
  }

  .chat-announcement-banner p {
    margin-top: 3px;
  }

  .chat-list-head {
    min-height: 46px;
    margin-bottom: 8px;
  }

  .chat-record-toolbar {
    margin-bottom: 4px;
    border-radius: 14px;
    padding: 7px;
  }

  .chat-record-toolbar button {
    padding: 6px 8px;
  }
}

.chat-record-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, auto);
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px;
}

.chat-record-toolbar span {
  min-width: 0;
  color: rgba(247, 243, 245, 0.9);
  font-size: 13px;
  font-weight: 850;
}

.chat-record-toolbar button,
.chat-thread-delete {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(247, 243, 245, 0.9);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  padding: 8px 10px;
}

.chat-thread-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 62px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.chat-thread-link {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.chat-thread-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-thread-select input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chat-thread-select span {
  display: block;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.chat-thread-select input:checked + span {
  border-color: rgba(233, 75, 115, 0.86);
  background: radial-gradient(circle at 50% 50%, #e94b73 0 45%, rgba(233, 75, 115, 0.2) 48% 100%);
}

.chat-thread-avatar {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, transparent 20%, rgba(8, 9, 14, 0.24)),
    var(--role-cover-a) center 34% / cover no-repeat;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.chat-thread-avatar.media-b {
  background:
    linear-gradient(180deg, transparent 20%, rgba(8, 9, 14, 0.24)),
    var(--role-cover-b) center 28% / cover no-repeat;
}

.chat-thread-avatar.media-c {
  background:
    linear-gradient(180deg, transparent 20%, rgba(8, 9, 14, 0.24)),
    var(--role-cover-c) center 34% / cover no-repeat;
}

.chat-thread-avatar.media-d {
  background:
    linear-gradient(180deg, transparent 20%, rgba(8, 9, 14, 0.24)),
    var(--role-cover-d) center 30% / cover no-repeat;
}

.chat-thread-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.chat-thread-main strong,
.chat-thread-main em,
.chat-thread-link time {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-thread-main strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.15;
}

.chat-thread-main em {
  color: rgba(232, 225, 230, 0.66);
  font-size: 12px;
  font-style: normal;
  line-height: 1.25;
}

.chat-thread-link time {
  align-self: center;
  color: rgba(232, 225, 230, 0.66);
  font-size: 11px;
}

.chat-thread-delete {
  color: #ffdce6;
  padding: 6px 8px;
}

.chat-detail-actions {
  display: inline-flex;
  flex: 0 1 auto;
  min-width: 0;
  gap: 6px;
}

.chat-detail-actions button,
.quick-command-panel button,
.chat-settings-drawer button,
.chat-message-select-bar button {
  min-height: 32px;
  border: 1px solid rgba(233, 75, 115, 0.34);
  border-radius: 999px;
  background: rgba(233, 75, 115, 0.1);
  color: #ffdce6;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  padding: 7px 9px;
}

.chat-detail-actions button[aria-pressed="true"],
.chat-settings-drawer button.active {
  border-color: rgba(255, 225, 233, 0.74);
  background: rgba(233, 75, 115, 0.32);
  color: #fff;
}

.chat-settings-drawer {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  border: 1px solid rgba(233, 75, 115, 0.24);
  border-radius: 18px;
  background: rgba(233, 75, 115, 0.08);
  padding: 12px;
}

.chat-settings-drawer[hidden] {
  display: none;
}

.chat-settings-head,
.chat-message-select-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, auto);
  align-items: center;
  gap: 8px;
}

.chat-settings-head {
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
}

.chat-settings-head strong,
.chat-message-select-bar span {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
}

.chat-settings-head span {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.chat-maintenance-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  padding: 9px;
}

.chat-maintenance-panel > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.chat-maintenance-panel > div span {
  color: var(--muted);
  font-size: 10px;
}

.chat-maintenance-panel > div strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-maintenance-panel button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.chat-setting-grid,
.chat-param-grid,
.quick-command-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.chat-param-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  padding: 8px;
}

.chat-param-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.chat-param-grid input {
  min-width: 0;
  width: 100%;
  color: var(--text);
}

.chat-message-select-bar {
  margin-bottom: 10px;
  border: 1px solid rgba(233, 75, 115, 0.24);
  border-radius: 14px;
  background: rgba(233, 75, 115, 0.08);
  padding: 8px;
}

.chat-message-select-bar[hidden] {
  display: none;
}

.chat-message-select {
  display: none;
  float: left;
  margin: 1px 8px 4px 0;
}

.chat-message-select input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chat-message-select span {
  display: block;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(233, 75, 115, 0.46);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.chat-message-select input:checked + span {
  border-color: rgba(233, 75, 115, 0.9);
  background: radial-gradient(circle at 50% 50%, #e94b73 0 45%, rgba(233, 75, 115, 0.12) 48% 100%);
}

.is-message-selecting .chat-message-select {
  display: inline-flex;
}

.quick-command-panel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.quick-command-panel button {
  min-height: 34px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  white-space: normal;
  overflow-wrap: anywhere;
}

.quick-command-panel button:first-child {
  grid-column: 1 / -1;
  border-color: rgba(215, 168, 87, 0.44);
  background: rgba(215, 168, 87, 0.1);
  color: #ffe4ad;
}

.create-preview-hero {
  background:
    linear-gradient(180deg, transparent 24%, rgba(8, 9, 14, 0.82)),
    var(--role-cover-d) center 18% / cover no-repeat;
}

.screen-section,
.chat-cover-strip,
.member-balance {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(18, 19, 26, 0.9);
  padding: 16px;
}

.screen-section h2,
.chat-cover-strip h2,
.settings-card h2 {
  margin-top: 8px;
  font-size: 24px;
}

.screen-section p,
.chat-cover-strip p,
.settings-card p,
.screen-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.role-facts,
.reward-timeline,
.support-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.role-facts span,
.reward-timeline span,
.support-list a,
.support-list button {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(247, 243, 245, 0.88);
  padding: 10px;
  font-size: 12px;
  line-height: 1.55;
  text-decoration: none;
}

.support-list button {
  width: 100%;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.support-list button.active {
  border-color: rgba(233, 75, 115, 0.72);
  background: rgba(233, 75, 115, 0.18);
  box-shadow: 0 0 0 2px rgba(233, 75, 115, 0.08);
}

.role-author-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  padding: 10px;
}

.role-author-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(233, 75, 115, 0.92), rgba(215, 168, 87, 0.72));
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.role-author-card span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.role-author-card strong,
.role-author-card em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.role-author-card strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.role-author-card em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
}

.role-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.role-metrics span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(247, 243, 245, 0.84);
  font-size: 11px;
  line-height: 1.35;
  padding: 7px 10px;
}

.role-social-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.role-social-actions button {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(247, 243, 245, 0.9);
  font-size: 12px;
  font-weight: 800;
}

.role-social-actions button.active {
  border-color: rgba(233, 75, 115, 0.65);
  background: rgba(233, 75, 115, 0.18);
  color: #ffd3dd;
}

.checkin-card {
  display: grid;
  gap: 16px;
  margin: 14px 0;
  border: 1px solid rgba(92, 115, 151, 0.42);
  border-radius: 16px;
  background: #172033;
  padding: 16px;
}

.checkin-card-summary > span {
  color: #fb7185;
  font-size: 12px;
  font-weight: 800;
}

.checkin-card-summary > strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.35;
}

.checkin-card-summary > p {
  margin: 5px 0 0;
  color: #9db0cb;
  font-size: 12px;
  line-height: 1.55;
}

.checkin-days {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.checkin-day-card {
  position: relative;
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 106px;
  border: 1px solid rgba(92, 115, 151, 0.45);
  border-radius: 12px;
  background: #111a2c;
  color: #9db0cb;
  text-align: center;
  padding: 10px 4px 8px;
}

.checkin-day-card i {
  color: #f59e0b;
  font-size: 24px;
  line-height: 1;
}

.checkin-day-card:nth-child(1) i { color: #fb7185; }
.checkin-day-card:nth-child(2) i { color: #22d3ee; }
.checkin-day-card:nth-child(3) i { color: #a78bfa; }
.checkin-day-card:nth-child(4) i { color: #facc15; }
.checkin-day-card:nth-child(5) i { color: #38bdf8; }
.checkin-day-card:nth-child(6) i { color: #f472b6; }
.checkin-day-card:nth-child(7) i { color: #facc15; }

.checkin-day-card span,
.checkin-day-card small {
  color: #9db0cb;
  font-size: 11px;
  font-style: normal;
}

.checkin-day-card strong {
  color: #f472b6;
  font-size: 16px;
  line-height: 1.2;
}

.checkin-day-card strong em {
  font-style: normal;
}

.checkin-day-card.grand {
  border-color: rgba(234, 179, 8, 0.75);
  background: #3b2d19;
}

.checkin-day-card.grand > b {
  position: absolute;
  top: -7px;
  right: -4px;
  border-radius: 999px;
  background: #eab308;
  color: #2d2108;
  font-size: 9px;
  line-height: 1;
  padding: 5px 8px;
}

.checkin-day-card.is-done,
.checkin-day-card.is-next {
  border-color: #fb4f82;
  box-shadow: inset 0 0 0 1px rgba(251, 79, 130, 0.28);
}

.checkin-day-card.is-done::after,
.checkin-day-card.is-next::after {
  position: absolute;
  bottom: 6px;
  right: 7px;
  color: #fb7185;
  font-family: remixicon;
  font-size: 13px;
  content: "\eb7b";
}

.checkin-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.checkin-actions button,
.checkin-actions a {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.checkin-actions button:disabled {
  cursor: not-allowed;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 243, 245, 0.72);
}

.checkin-actions a {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 243, 245, 0.9);
}

.role-detail-block {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.role-detail-block h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.role-detail-block p {
  margin: 0;
  color: rgba(247, 243, 245, 0.82);
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.role-detail-more {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.role-detail-more > summary {
  min-height: 44px;
  cursor: pointer;
  color: rgba(247, 243, 245, 0.9);
  font-size: 13px;
  font-weight: 850;
  padding: 12px 14px;
}

.role-detail-more[open] {
  padding: 0 14px 14px;
}

.role-detail-more[open] > summary {
  margin-inline: -14px;
  border-bottom: 1px solid var(--line);
  padding-inline: 28px;
}

.role-core-list {
  display: grid;
  gap: 9px;
}

.role-core-list > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  padding: 10px;
}

.role-core-list span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(233, 75, 115, 0.16);
  color: #ffc2cf;
  font-size: 13px;
  font-weight: 900;
}

.role-detail-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: rgba(247, 243, 245, 0.82);
  font-size: 12px;
  line-height: 1.62;
}

.role-detail-list li {
  padding-left: 2px;
  overflow-wrap: anywhere;
}

.role-comment-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(14, 13, 19, .72);
  padding: 14px;
}

.role-comment-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.role-comment-head h3 { margin: 0; color: var(--text); font-size: 15px; }
.role-comment-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.role-comment-head strong { color: #ffc2cf; font-size: 12px; white-space: nowrap; }
.role-comment-panel form { display: grid; gap: 8px; }
.role-comment-panel textarea {
  width: 100%; resize: vertical; min-height: 78px; max-height: 180px; box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.055);
  color: var(--text); padding: 11px 12px; font: inherit; line-height: 1.55;
}
.role-comment-panel form > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.role-comment-panel form small { color: var(--muted); }
.role-comment-panel form button { border: 0; border-radius: 12px; background: var(--accent); color: #fff; min-height: 38px; padding: 0 16px; font-weight: 900; }
.role-comment-panel form button:disabled { opacity: .58; cursor: not-allowed; }
.role-comment-list, .role-comment-own [data-role-comment-own-list] { display: grid; gap: 9px; }
.role-comment-item { display: grid; gap: 6px; border-radius: 14px; background: rgba(255,255,255,.05); padding: 10px 12px; }
.role-comment-item header { display: flex; justify-content: space-between; gap: 10px; }
.role-comment-item strong { color: var(--text); font-size: 12px; }
.role-comment-item time, .role-comment-item em { color: var(--muted); font-size: 10px; font-style: normal; }
.role-comment-item p { margin: 0; color: rgba(247,243,245,.86); font-size: 12px; line-height: 1.62; white-space: pre-wrap; overflow-wrap: anywhere; }
.role-comment-own { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.role-comment-own > strong { color: #ffd67a; font-size: 12px; }

.role-relation-block {
  border: 1px solid rgba(215, 168, 87, 0.2);
  border-radius: 14px;
  background: rgba(215, 168, 87, 0.075);
  padding: 12px;
}

.role-relation-block strong {
  color: #f7d896;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.screen-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.screen-actions a,
.screen-link-button,
.create-toggle-row button,
.price-grid button {
  border: 1px solid rgba(233, 75, 115, 0.65);
  border-radius: 14px;
  background: rgba(233, 75, 115, 0.23);
  color: #ffe1e9;
  padding: 11px 8px;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}

.screen-link-button {
  display: block;
  margin-top: 10px;
}

.safety-simulation-panel {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  border: 1px solid rgba(255, 107, 107, 0.22);
  border-radius: 16px;
  background: rgba(255, 107, 107, 0.07);
  padding: 12px;
}

.safety-simulation-panel > span {
  color: #ffb2c1;
  font-size: 12px;
  font-weight: 850;
}

.safety-simulation-panel div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.safety-simulation-panel button {
  min-height: 34px;
  border: 1px solid rgba(255, 107, 107, 0.32);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: #ffe1e9;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  padding: 7px;
}

.safety-simulation-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.chat-cover-strip {
  min-height: 170px;
  display: grid;
  align-content: end;
  margin: 12px 0;
  background:
    linear-gradient(180deg, rgba(9, 10, 15, 0.18), rgba(9, 10, 15, 0.84)),
    var(--role-cover-c) center / cover no-repeat;
}

.tone-test-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  border: 1px solid rgba(233, 75, 115, 0.28);
  border-radius: 18px;
  background: rgba(233, 75, 115, 0.09);
  padding: 12px;
  margin-bottom: 12px;
}

.tone-test-panel div {
  display: grid;
  gap: 4px;
}

.tone-test-panel span {
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 850;
}

.tone-test-panel strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.tone-test-panel button {
  min-height: 34px;
  border: 1px solid rgba(233, 75, 115, 0.46);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: #ffe1e9;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.tone-test-panel button.active {
  border-color: rgba(255, 225, 233, 0.76);
  background: rgba(233, 75, 115, 0.34);
  color: #fff;
}

.chat-settings-drawer .tone-test-panel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chat-settings-drawer .tone-test-panel > div {
  grid-column: 1 / -1;
}

.novel-user-bubble {
  width: fit-content;
  max-width: 88%;
  margin-left: auto !important;
  border-radius: 18px 18px 4px 18px;
  background: var(--pink);
  color: #fff;
  padding: 10px 12px;
}

.create-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid rgba(233, 75, 115, 0.5);
  border-radius: 16px;
  background: rgba(233, 75, 115, 0.14);
  padding: 12px;
}

.create-toggle-row span {
  color: var(--text);
  font-weight: 850;
}

.create-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 10px;
  margin-top: 12px;
}

.create-action-row button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffe1e9;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  padding: 10px 12px;
}

.create-action-row button.primary,
.create-action-row button.is-pressed {
  border-color: rgba(233, 75, 115, 0.78);
  background: var(--pink);
  color: #fff;
}

.create-mode-grid,
.create-step-tabs,
.create-tag-row,
.create-preset-row,
.model-budget-row,
.member-tabs,
.mini-tabs,
.model-category-tabs,
.support-tab-row,
.theme-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.create-mode-grid button,
.create-step-tabs button,
.create-tag-row button,
.create-preset-row button,
.model-budget-row button,
.member-tabs button,
.mini-tabs button,
.model-category-tabs button,
.support-tab-row button,
.theme-switcher button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  padding: 8px 11px;
}

.create-mode-grid button.active,
.create-step-tabs button.active,
.create-tag-row button.active,
.create-preset-row button.active,
.model-budget-row button.active,
.member-tabs button.active,
.mini-tabs button.active,
.model-category-tabs button.active,
.support-tab-row button.active,
.theme-switcher button.active {
  border-color: rgba(233, 75, 115, 0.72);
  background: var(--pink);
  color: #fff;
}

.create-step-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.create-step-tabs button {
  border-radius: 14px;
  min-width: 0;
  white-space: normal;
}

.create-panel {
  margin-top: 12px;
}

.create-tag-row,
.create-preset-row,
.model-budget-row,
.create-variable-list {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
}

.create-tag-row > span,
.create-preset-row > span,
.model-budget-row > span,
.create-variable-list > span {
  flex: 0 0 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.create-preset-row button {
  text-align: left;
}

.create-variable-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.create-opening-tools {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.create-opening-tools button {
  justify-self: start;
  min-height: 34px;
  border: 1px solid rgba(233, 75, 115, 0.42);
  border-radius: 999px;
  background: rgba(233, 75, 115, 0.1);
  color: #ffd8e2;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  padding: 9px 11px;
}

.create-opening-tools span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.create-variable-list em {
  border: 1px solid rgba(233, 75, 115, 0.32);
  border-radius: 999px;
  background: rgba(233, 75, 115, 0.1);
  color: #ffd8e2;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  padding: 6px 9px;
}

.create-toggle-row-compact {
  margin-top: 0;
}

.create-upload-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
}

.create-upload-preview {
  min-height: 104px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(13, 14, 20, 0), rgba(13, 14, 20, 0.34)),
    var(--role-cover-d) center 24% / cover no-repeat,
    #171018;
}

.create-upload-copy {
  min-width: 0;
}

.create-upload-copy strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.create-upload-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.create-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.create-upload-actions input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.support-attachment-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.support-attachment-row input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.support-attachment-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.create-upload-button,
.create-upload-actions button {
  min-height: 34px;
  border: 1px solid rgba(233, 75, 115, 0.42);
  border-radius: 999px;
  background: rgba(233, 75, 115, 0.1);
  color: #ffd8e2;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  padding: 9px 11px;
}

.model-slider-row {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.model-slider-row span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.model-slider-row em {
  color: var(--text);
  font-style: normal;
}

.model-slider-row input[type="range"] {
  accent-color: var(--pink);
  width: 100%;
}

.compact-field,
.cdk-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.compact-field span,
.cdk-form label,
.theme-switcher > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.compact-field select,
.compact-field input,
.compact-field textarea,
.cdk-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
  outline: 0;
  padding: 10px 11px;
}

.compact-field textarea {
  resize: none;
}

.compact-field.is-error span {
  color: #ff9aaa;
}

.compact-field.is-required span::after {
  content: " 必填";
  color: #ff9aaa;
  font-weight: 900;
}

.compact-field.is-error select,
.compact-field.is-error input,
.compact-field.is-error textarea {
  border-color: rgba(255, 107, 107, 0.76);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.08);
}

.compact-field option {
  background: #171821;
  color: var(--text);
}

.is-hidden {
  display: none !important;
}

.settings-phone-surface.screen-phone {
  background:
    radial-gradient(circle at 88% 6%, rgba(233, 75, 115, 0.23), transparent 170px),
    #0b0c12;
}

.member-balance {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  background:
    radial-gradient(circle at 84% 12%, rgba(215, 168, 87, 0.25), transparent 110px),
    rgba(18, 19, 26, 0.92);
}

.member-balance span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
}

.member-balance strong {
  font-size: 48px;
  line-height: 1;
}

.member-balance p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.price-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.price-grid button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  text-align: left;
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
  cursor: pointer;
}

.price-grid button strong {
  text-align: right;
}

.price-grid button em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
}

.cdk-form {
  border: 1px solid rgba(215, 168, 87, 0.32);
  border-radius: 16px;
  background: rgba(215, 168, 87, 0.09);
  padding: 12px;
}

.cdk-form button {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--gold);
  color: #1b1205;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.member-record-list,
.model-current-card,
.invite-share-card,
.support-message-empty {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  padding: 12px;
}

.member-record-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.member-record-list strong,
.model-current-card strong,
.invite-share-card strong,
.support-message-empty strong {
  color: var(--text);
  font-size: 14px;
}

.member-record-list span,
.model-current-card span,
.model-current-card small,
.member-record-list p,
.invite-share-card p,
.support-message-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.profile-secondary-action,
.invite-share-card button {
  justify-self: start;
  min-height: 36px;
  border: 1px solid rgba(233, 75, 115, 0.42);
  border-radius: 999px;
  background: rgba(233, 75, 115, 0.1);
  color: #ffd8e2;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 12px;
}

.community-card-list,
.profile-menu-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.community-card-list article {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.community-card-list article:hover {
  border-color: rgba(233, 75, 115, 0.45);
  background: rgba(233, 75, 115, 0.1);
  transform: translateY(-1px);
}

.community-card-list article > a {
  display: grid;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}

.community-card-list article > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.community-card-list article > div a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.community-card-list article > div a:first-child {
  border-color: rgba(233, 75, 115, 0.6);
  background: rgba(233, 75, 115, 0.18);
}

.community-card-list strong,
.community-card-list span,
.community-card-list em {
  overflow-wrap: anywhere;
}

.community-card-list strong {
  color: var(--text);
}

.community-card-list span,
.community-card-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.profile-menu-list {
  gap: 12px;
}

.profile-identity-card,
.profile-wallet-overview {
  display: grid;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
  padding: 14px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.account-history-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.account-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  padding: 11px 12px;
}

.account-history-row > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.account-history-row strong,
.account-history-row span {
  display: block;
  overflow-wrap: anywhere;
}

.account-history-row strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.account-history-row span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.account-history-row em {
  color: #5fe5b1;
  font-size: 16px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.account-history-row.is-debit em {
  color: #ff9fbc;
}

.order-history-row em {
  color: #f2c477;
}

.account-history-empty {
  margin: 0;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  padding: 15px;
  text-align: center;
}

.profile-identity-card {
  margin-top: 14px;
  text-align: center;
}

.profile-identity-card > div {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.profile-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(9, 10, 15, 0.02), rgba(9, 10, 15, 0.3)),
    var(--brand-icon-image) center / cover no-repeat,
    linear-gradient(135deg, rgba(233, 75, 115, 0.94), rgba(215, 168, 87, 0.72));
  color: #fff;
  font-size: 26px;
  font-weight: 950;
  box-shadow: 0 18px 38px rgba(233, 75, 115, 0.22);
}

.profile-avatar-image {
  color: transparent;
  font-size: 0;
}

.profile-identity-card strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1.2;
}

.profile-identity-card p,
.profile-identity-card small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.profile-review-summary {
  max-width: 100%;
  color: rgba(247, 206, 217, 0.86) !important;
}

.profile-persona-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
}

.profile-persona-summary span {
  min-height: 28px;
  border: 1px solid rgba(233, 75, 115, 0.18);
  border-radius: 999px;
  background: rgba(233, 75, 115, 0.1);
  color: rgba(247, 243, 245, 0.8);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 8px 10px;
}

.profile-edit-open,
.profile-edit-actions button,
.profile-edit-head button {
  min-height: 38px;
  border: 1px solid rgba(233, 75, 115, 0.34);
  border-radius: 999px;
  background: rgba(233, 75, 115, 0.14);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 8px 14px;
}

.profile-edit-open {
  margin-top: 4px;
}

.profile-edit-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid rgba(233, 75, 115, 0.24);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.profile-edit-panel[hidden] {
  display: none;
}

.profile-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-edit-head strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}

.profile-edit-head button {
  width: 38px;
  padding: 0;
}

.profile-avatar-editor {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(233, 75, 115, 0.18);
  border-radius: 18px;
  background: rgba(10, 11, 17, 0.36);
  padding: 12px;
}

.profile-avatar-editor > div {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.profile-avatar-editor strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
}

.profile-avatar-editor small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.profile-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-avatar-actions label,
.profile-avatar-actions button {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 12px;
}

.profile-avatar-actions input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.profile-avatar-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.profile-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(82px, 0.58fr);
  gap: 10px;
}

.profile-edit-panel label {
  display: grid;
  gap: 7px;
  color: rgba(247, 243, 245, 0.84);
  font-size: 12px;
  font-weight: 850;
}

.profile-edit-panel input,
.profile-edit-panel select,
.profile-edit-panel textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(10, 11, 17, 0.55);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
  padding: 11px 12px;
}

.profile-edit-panel textarea {
  min-height: 92px;
  resize: vertical;
}

.profile-choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-choice-row button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(247, 243, 245, 0.82);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.profile-choice-row button.active {
  border-color: rgba(233, 75, 115, 0.46);
  background: rgba(233, 75, 115, 0.22);
  color: var(--text);
}

.profile-edit-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-edit-actions button[type="submit"] {
  background: linear-gradient(135deg, rgba(233, 75, 115, 0.92), rgba(233, 75, 115, 0.62));
  color: #fff;
}

.profile-wallet-overview {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  margin-top: 14px;
}

.profile-wallet-overview strong {
  display: block;
  color: var(--text);
  font-size: 26px;
  line-height: 1.05;
}

.profile-wallet-overview small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.profile-menu-list a,
.profile-menu-list button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
  padding: 10px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.profile-menu-list button {
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.profile-menu-list a:active,
.profile-menu-list a:hover,
.profile-menu-list button:active,
.profile-menu-list button:hover {
  border-color: rgba(233, 75, 115, 0.35);
  background: rgba(233, 75, 115, 0.12);
}

.profile-menu-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(233, 75, 115, 0.18), rgba(215, 168, 87, 0.07)),
    rgba(233, 75, 115, 0.12);
  color: transparent;
  font-size: 0;
  font-weight: 950;
}

.profile-menu-list strong,
.profile-menu-list small {
  display: block;
  overflow-wrap: anywhere;
}

.profile-menu-list strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.profile-menu-list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.profile-menu-list em {
  color: rgba(247, 243, 245, 0.62);
  font-size: 28px;
  font-style: normal;
  line-height: 1;
}

.profile-detail-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.profile-detail-list a,
.profile-detail-list button {
  display: grid;
  gap: 4px;
  min-height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 13px;
  text-align: left;
  text-decoration: none;
}

.profile-detail-list button[hidden] {
  display: none;
}

.profile-detail-list button {
  cursor: pointer;
  font: inherit;
}

.profile-detail-list a:hover,
.profile-detail-list button:hover,
.profile-detail-list button.active {
  border-color: rgba(233, 75, 115, 0.45);
  background: rgba(233, 75, 115, 0.12);
}

.profile-detail-list strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.3;
}

.profile-detail-list small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.profile-detail-screen .settings-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 12px;
  text-align: left;
}

.profile-detail-screen .settings-list button span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.profile-detail-screen .settings-list button.active {
  border-color: rgba(233, 75, 115, 0.38);
  background: rgba(233, 75, 115, 0.12);
}

.profile-detail-screen .settings-list button.active span {
  color: rgba(247, 213, 224, 0.92);
}

.detailed-settings-list {
  gap: 8px;
}

.theme-settings-grid,
.theme-slider-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.theme-settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-settings-grid button,
.theme-slider-list label {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font: inherit;
  padding: 10px;
}

.theme-settings-grid button {
  display: grid;
  gap: 4px;
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.theme-settings-grid button span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.theme-slider-list label {
  display: grid;
  gap: 8px;
}

.theme-slider-list label span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.theme-slider-list em {
  color: var(--text);
  font-style: normal;
}

.theme-slider-list input {
  accent-color: var(--pink);
  width: 100%;
}

.support-tab-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-tab-row button {
  min-width: 0;
  white-space: normal;
}

.support-mini-form select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: 0;
  padding: 10px 11px;
}

.support-list a strong,
.support-list a span,
.support-list button strong,
.support-list button span {
  display: block;
}

.support-list a strong,
.support-list button strong {
  margin-bottom: 2px;
  font-size: 14px;
}

.support-list a span,
.support-list button span {
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.promotion-copy-box {
  margin-top: 14px;
  border: 1px solid rgba(215, 168, 87, 0.45);
  border-radius: 18px;
  background: rgba(215, 168, 87, 0.12);
  color: rgba(247, 243, 245, 0.92);
  padding: 14px;
  line-height: 1.72;
}

.runtime-line-list,
.runtime-retry-actions {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.runtime-line-list button,
.runtime-retry-actions button,
.runtime-retry-actions a {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(247, 243, 245, 0.92);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  padding: 9px 11px;
  text-align: left;
  text-decoration: none;
}

.runtime-line-list button {
  display: grid;
  gap: 3px;
}

.runtime-line-list button.active,
.runtime-line-list button:hover,
.runtime-retry-actions button:hover,
.runtime-retry-actions a:hover {
  border-color: rgba(255, 94, 148, 0.55);
  background: rgba(255, 94, 148, 0.15);
}

.runtime-line-list button span {
  color: var(--muted);
  font-size: 11px;
}

.runtime-retry-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-mini-form,
.promotion-link-form {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.invite-action-row,
.invite-reward-summary {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.invite-action-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.invite-action-row button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(247, 243, 245, 0.92);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  padding: 9px 12px;
}

.invite-action-row button:hover {
  border-color: rgba(255, 94, 148, 0.55);
  background: rgba(255, 94, 148, 0.18);
  color: var(--text);
}

.invite-reward-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.invite-reward-summary span {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid rgba(255, 94, 148, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  padding: 8px 10px;
  text-align: center;
}

.invite-reward-summary strong,
.invite-reward-summary small {
  display: block;
}

.invite-reward-summary strong {
  color: rgba(247, 243, 245, 0.94);
  font-size: 12px;
  font-weight: 900;
}

.invite-reward-summary small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.invite-record-card {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  padding: 13px;
}

.invite-record-card div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.invite-record-card strong {
  color: var(--text);
  font-size: 14px;
}

.invite-record-card time,
.invite-record-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.support-mini-form label,
.promotion-link-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.support-mini-form textarea,
.support-mini-form input,
.promotion-link-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
  outline: 0;
  padding: 10px 11px;
}

.support-mini-form textarea {
  resize: vertical;
}

.support-contact-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px;
}

.support-contact-row select,
.support-contact-row input {
  min-height: 42px;
}

.support-privacy-note {
  margin: -2px 0 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.support-mini-form button,
.promotion-link-form button {
  min-height: 38px;
  border: 1px solid rgba(233, 75, 115, 0.58);
  border-radius: 12px;
  background: rgba(233, 75, 115, 0.2);
  color: #ffe1e9;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.promotion-link-form div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.phone-head-action {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  padding: 4px 0;
}

.phone-head-action:hover,
.phone-head-action:focus-visible {
  color: var(--text);
  outline: 2px solid rgba(233, 75, 115, 0.48);
  outline-offset: 4px;
}

.promotion-rule-card {
  display: grid;
  gap: 13px;
  margin-top: 16px;
  border: 1px solid rgba(233, 75, 115, 0.28);
  border-radius: 18px;
  background: rgba(12, 13, 21, 0.56);
  padding: 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.promotion-rule-card.is-focused {
  border-color: rgba(233, 75, 115, 0.86);
  box-shadow: 0 0 0 3px rgba(233, 75, 115, 0.16);
}

.promotion-rule-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.promotion-rule-card > header span {
  display: block;
  color: #f59ab7;
  font-size: 11px;
  font-weight: 850;
}

.promotion-rule-card > header h3 {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.38;
}

.promotion-rule-card > header > i {
  color: #f59ab7;
  font-size: 22px;
}

.promotion-first-review-rule,
.promotion-second-review-rule {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.promotion-first-review-rule > strong,
.promotion-second-review-rule > strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
}

.promotion-first-review-rule > strong i,
.promotion-second-review-rule > strong i {
  color: #f59ab7;
  font-size: 16px;
}

.promotion-first-review-rule > p,
.promotion-second-review-rule > p,
.promotion-rule-notes,
.promotion-rule-source {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.promotion-rule-table {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.promotion-rule-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 0.72fr);
  min-height: 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.promotion-rule-table-row:first-child,
.promotion-rule-table-row.head + div > .promotion-rule-table-row:first-child {
  border-top: 0;
}

.promotion-rule-table-row > * {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 8px 10px;
}

.promotion-rule-table-row > :last-child {
  justify-content: flex-end;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  color: #f7a7bf;
  text-align: right;
}

.promotion-rule-table-row.head {
  border-top: 0;
  background: rgba(233, 75, 115, 0.1);
  color: var(--text);
  font-size: 11px;
  font-weight: 850;
}

.promotion-rule-table-row:not(.head) {
  color: rgba(247, 243, 245, 0.86);
  font-size: 11px;
}

.promotion-rule-unlimited {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: #f3c779 !important;
}

.promotion-rule-unlimited i { margin-top: 2px; }

.promotion-rule-notes {
  display: grid;
  gap: 5px;
  padding-left: 18px;
}

.promotion-rule-source {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

.theme-light-preview .promotion-rule-card,
.theme-pure-preview .promotion-rule-card {
  border-color: rgba(185, 116, 135, 0.28);
  background: rgba(255, 255, 255, 0.88);
}

.theme-light-preview .promotion-first-review-rule,
.theme-light-preview .promotion-second-review-rule,
.theme-pure-preview .promotion-first-review-rule,
.theme-pure-preview .promotion-second-review-rule {
  border-color: rgba(185, 116, 135, 0.2);
  background: rgba(247, 240, 243, 0.84);
}

.theme-light-preview .promotion-rule-table,
.theme-pure-preview .promotion-rule-table,
.theme-light-preview .promotion-rule-table-row,
.theme-pure-preview .promotion-rule-table-row,
.theme-light-preview .promotion-rule-table-row > :last-child,
.theme-pure-preview .promotion-rule-table-row > :last-child {
  border-color: rgba(185, 116, 135, 0.2);
}

.mobile-boundary-note {
  margin-top: 22px;
}

.link-flow-check {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  border: 1px solid rgba(215, 168, 87, 0.24);
  border-radius: 16px;
  background: rgba(215, 168, 87, 0.075);
  padding: 14px;
}

.link-flow-check > span {
  color: #f2cf8e;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.link-flow-check div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.link-flow-check em {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  padding: 7px 9px;
}

.theme-light-preview.mobile-product-page,
.theme-light-preview {
  color-scheme: light;
  --bg: #fff8f7;
  --surface: #fffdfd;
  --surface-2: #fff3f6;
  --panel: #ffffff;
  --panel2: #fff0f2;
  --text: #231f23;
  --muted: #776c72;
  --line: rgba(185, 116, 135, 0.28);
  --accent-soft: #d72d5b;
  --gold: #9a6b1f;
  --text-muted: #827078;
  background:
    radial-gradient(circle at 18% 0%, rgba(233, 109, 134, 0.22), transparent 260px),
    linear-gradient(180deg, #fff9fb 0%, #fff4f7 48%, #fffdfd 100%),
    #fff8f7;
  color: #231f23;
}

.theme-light-preview::before {
  background:
    radial-gradient(ellipse at 24% 70%, rgba(233, 75, 115, 0.12), transparent 34%),
    radial-gradient(ellipse at 66% 82%, rgba(215, 168, 87, 0.09), transparent 38%);
  filter: blur(18px);
  opacity: 0.34;
}

.theme-light-preview .screen-phone,
.theme-light-preview .app-showcase,
.theme-light-preview .delivery-feature-card,
.theme-light-preview .customer-test-console article {
  background:
    radial-gradient(circle at 88% 4%, rgba(233, 109, 134, 0.14), transparent 150px),
    linear-gradient(180deg, rgba(255, 252, 253, 0.98), rgba(255, 245, 248, 0.96));
  border-color: rgba(172, 104, 123, 0.3);
  color: #231f23;
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.72),
    0 22px 70px rgba(144, 76, 99, 0.16);
}

.theme-light-preview .screen-phone::before,
.theme-light-preview .app-showcase::before {
  background:
    linear-gradient(180deg, rgba(255, 250, 252, 0.88), rgba(255, 246, 249, 0.92)),
    var(--role-cover-d) center 18% / cover no-repeat;
  opacity: 1;
}

.theme-light-preview .screen-phone > *,
.theme-light-preview .app-showcase > * {
  color: var(--text);
}

.theme-light-preview .role-catalog-controls,
.theme-pure-preview .role-catalog-controls {
  background: rgba(255, 252, 253, 0.94);
  box-shadow: none;
}

.theme-light-preview .role-catalog-pagination p,
.theme-pure-preview .role-catalog-pagination p {
  color: #6f6269;
}

.theme-light-preview .role-catalog-pagination button,
.theme-light-preview .role-back-to-top,
.theme-pure-preview .role-catalog-pagination button,
.theme-pure-preview .role-back-to-top {
  border-color: rgba(215, 45, 91, 0.34);
  background: rgba(255, 252, 253, 0.96);
  color: #7a1838;
  box-shadow: 0 12px 28px rgba(144, 76, 99, 0.16);
}

.theme-light-preview .phone-head {
  color: #2b2026;
}

.theme-light-preview .phone-head a,
.theme-light-preview .phone-head span {
  color: #5f5058;
}

.theme-light-preview .screen-section,
.theme-light-preview .member-balance,
.theme-light-preview .chat-cover-strip,
.theme-light-preview .profile-identity-card,
.theme-light-preview .profile-wallet-overview,
.theme-light-preview .profile-menu-list a,
.theme-light-preview .profile-menu-list button,
.theme-light-preview .profile-detail-list a,
.theme-light-preview .profile-detail-list button,
.theme-light-preview .profile-edit-panel,
.theme-light-preview .profile-avatar-editor,
.theme-light-preview .settings-list button,
.theme-light-preview .theme-switcher,
.theme-light-preview .model-category-tabs button,
.theme-light-preview .support-tab-row button,
.theme-light-preview .theme-settings-grid button,
.theme-light-preview .theme-slider-list label,
.theme-light-preview .member-record-list,
.theme-light-preview .model-current-card,
.theme-light-preview .invite-share-card,
.theme-light-preview .support-message-empty,
.theme-light-preview .invite-action-row button,
.theme-light-preview .invite-reward-summary span,
.theme-light-preview .invite-record-card,
.theme-light-preview .create-tag-row,
.theme-light-preview .create-preset-row,
.theme-light-preview .model-budget-row,
.theme-light-preview .create-variable-list {
  border-color: rgba(185, 116, 135, 0.26);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.theme-light-preview .screen-section h2,
.theme-light-preview .member-balance strong,
.theme-light-preview .profile-menu-list strong,
.theme-light-preview .profile-detail-list strong,
.theme-light-preview .invite-reward-summary strong,
.theme-light-preview .invite-record-card strong,
.theme-light-preview .member-record-list strong,
.theme-light-preview .model-current-card strong,
.theme-light-preview .invite-share-card strong,
.theme-light-preview .support-message-empty strong,
.theme-light-preview .settings-list strong {
  color: #211a1f;
}

.theme-light-preview .screen-section p,
.theme-light-preview .profile-menu-list small,
.theme-light-preview .profile-detail-list small,
.theme-light-preview .settings-list small,
.theme-light-preview .invite-reward-summary small,
.theme-light-preview .invite-record-card time,
.theme-light-preview .invite-record-card p,
.theme-light-preview .member-record-list span,
.theme-light-preview .member-record-list p,
.theme-light-preview .model-current-card span,
.theme-light-preview .model-current-card small,
.theme-light-preview .invite-share-card p,
.theme-light-preview .support-message-empty p,
.theme-light-preview .theme-settings-grid button span,
.theme-light-preview .theme-slider-list label span,
.theme-light-preview .member-balance p {
  color: #6f6269;
}

.theme-light-preview .screen-pill,
.theme-light-preview .theme-switcher > span {
  color: #d72d5b;
}

.theme-light-preview .theme-switcher button,
.theme-light-preview .create-mode-grid button,
.theme-light-preview .mini-tabs button,
.theme-light-preview .member-tabs button,
.theme-light-preview .model-budget-row button,
.theme-light-preview .model-category-tabs button,
.theme-light-preview .support-tab-row button,
.theme-light-preview .profile-secondary-action,
.theme-light-preview .invite-share-card button,
.theme-light-preview .profile-edit-open,
.theme-light-preview .profile-edit-actions button,
.theme-light-preview .profile-choice-row button,
.theme-light-preview .profile-edit-head button {
  border-color: rgba(185, 116, 135, 0.28);
  background: #fffafb;
  color: #463940;
}

.theme-light-preview .theme-switcher button.active,
.theme-light-preview .create-mode-grid button.active,
.theme-light-preview .mini-tabs button.active,
.theme-light-preview .member-tabs button.active,
.theme-light-preview .model-budget-row button.active,
.theme-light-preview .model-category-tabs button.active,
.theme-light-preview .support-tab-row button.active,
.theme-light-preview .profile-choice-row button.active {
  border-color: rgba(233, 75, 115, 0.7);
  background: var(--pink);
  color: #fff;
}

.theme-light-preview .profile-edit-panel input,
.theme-light-preview .profile-edit-panel select,
.theme-light-preview .profile-edit-panel textarea {
  border-color: rgba(185, 116, 135, 0.26);
  background: rgba(255, 255, 255, 0.92);
  color: #231f23;
}

.theme-light-preview .h5-action-toast {
  border-color: rgba(185, 116, 135, 0.32);
  background: rgba(255, 255, 255, 0.97);
  color: #231f23;
}

.theme-light-preview .delivery-bottom-nav {
  border-color: rgba(185, 116, 135, 0.28);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 -18px 36px rgba(144, 76, 99, 0.14);
}

.theme-light-preview .delivery-bottom-nav a {
  color: #6f6269;
}

.theme-light-preview .delivery-bottom-nav a.active {
  border-color: rgba(233, 75, 115, 0.4);
  background: rgba(233, 75, 115, 0.16);
  color: #7a1838;
}

.theme-light-preview .delivery-bottom-nav a.create,
.theme-light-preview .delivery-bottom-nav a.create.active {
  background: var(--pink);
  color: #fff;
}

.theme-light-preview .delivery-topbar nav a {
  border-color: rgba(185, 116, 135, 0.26);
  background: rgba(255, 255, 255, 0.66);
  color: #6c5f66;
}

.theme-light-preview .delivery-topbar nav a.active {
  border-color: rgba(233, 75, 115, 0.66);
  background: rgba(233, 75, 115, 0.18);
  color: #8a1b41;
}

.theme-pink-preview.mobile-product-page,
.theme-pink-preview {
  color-scheme: dark;
  --bg: #1a0c16;
  --surface: #24111c;
  --surface-2: #301524;
  --text: #fff4f7;
  --muted: #e4bdca;
  --line: rgba(255, 202, 216, 0.22);
  --pink: #ff5c8b;
  --gold: #f0b760;
  --accent-soft: #ffc7d7;
  --text-muted: #d8aebc;
  --theme-panel-rgb: 255 205 224;
  --theme-card-rgb: 255 218 230;
  --theme-button-rgb: 255 181 207;
  --theme-accent-rgb: 255 92 139;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 92, 139, 0.22), transparent 250px),
    radial-gradient(circle at 88% 80%, rgba(240, 183, 96, 0.13), transparent 280px),
    linear-gradient(180deg, #1a0c16 0%, #2b1021 58%, #43162c 100%);
  color: var(--text);
}

.theme-pink-preview::before {
  background:
    radial-gradient(ellipse at 18% 68%, rgba(255, 92, 139, 0.28), transparent 36%),
    radial-gradient(ellipse at 72% 80%, rgba(240, 183, 96, 0.14), transparent 38%);
  opacity: 0.76;
}

.theme-pure-preview.mobile-product-page,
.theme-pure-preview {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f7fb;
  --text: #16171c;
  --muted: #5f6470;
  --line: rgba(28, 31, 38, 0.16);
  --pink: #e94b73;
  --gold: #9a6b1f;
  --accent-soft: #c22554;
  --text-muted: #6d7280;
  --theme-panel-rgb: 255 255 255;
  --theme-card-rgb: 255 255 255;
  --theme-button-rgb: 245 247 251;
  --theme-accent-rgb: 233 75 115;
  background:
    linear-gradient(180deg, #ffffff 0%, #f6f7fb 62%, #ffffff 100%),
    #ffffff;
  color: var(--text);
}

.theme-pure-preview::before {
  background:
    radial-gradient(ellipse at 22% 72%, rgba(233, 75, 115, 0.08), transparent 34%),
    radial-gradient(ellipse at 72% 82%, rgba(70, 86, 112, 0.06), transparent 38%);
  filter: blur(18px);
  opacity: 0.5;
}

.theme-pink-preview .screen-phone,
.theme-pure-preview .screen-phone {
  background:
    radial-gradient(circle at 88% 4%, rgb(var(--theme-accent-rgb) / 0.12), transparent 150px),
    rgb(var(--theme-panel-rgb) / var(--theme-phone-alpha));
  border-color: var(--line);
}

.theme-pink-preview .screen-phone::before,
.theme-pure-preview .screen-phone::before {
  background:
    linear-gradient(180deg, rgb(var(--theme-panel-rgb) / 0.7), rgb(var(--theme-panel-rgb) / 0.82)),
    var(--role-cover-d) center 18% / cover no-repeat;
  opacity: 1;
}

.theme-pink-preview .screen-phone > *,
.theme-pure-preview .screen-phone > *,
.theme-pink-preview .app-showcase > *,
.theme-pure-preview .app-showcase > * {
  color: var(--text);
}

.theme-pure-preview .phone-head,
.theme-pure-preview .screen-section h2,
.theme-pure-preview .profile-menu-list strong,
.theme-pure-preview .profile-detail-list strong,
.theme-pure-preview .model-current-card strong,
.theme-pure-preview .settings-list strong {
  color: var(--text);
}

.theme-pure-preview .phone-head a,
.theme-pure-preview .phone-head span,
.theme-pure-preview .screen-section p,
.theme-pure-preview .profile-menu-list small,
.theme-pure-preview .profile-detail-list small,
.theme-pure-preview .settings-list small,
.theme-pure-preview .theme-settings-grid button span,
.theme-pure-preview .theme-slider-list label span {
  color: var(--muted);
}

.theme-pink-preview .screen-pill,
.theme-pure-preview .screen-pill,
.theme-pink-preview .theme-switcher > span,
.theme-pure-preview .theme-switcher > span {
  color: rgb(var(--theme-accent-rgb) / 1);
}

.mobile-product-page .screen-section {
  background: rgb(var(--theme-panel-rgb) / var(--theme-global-panel-alpha));
}

.mobile-product-page .profile-identity-card,
.mobile-product-page .profile-wallet-overview,
.mobile-product-page .profile-menu-list a,
.mobile-product-page .profile-menu-list button,
.mobile-product-page .profile-detail-list a,
.mobile-product-page .profile-detail-list button,
.mobile-product-page .profile-edit-panel,
.mobile-product-page .settings-list button,
.mobile-product-page .theme-switcher,
.mobile-product-page .theme-slider-list label,
.mobile-product-page .member-record-list,
.mobile-product-page .model-current-card,
.mobile-product-page .invite-share-card,
.mobile-product-page .support-message-empty,
.mobile-product-page .invite-reward-summary span,
.mobile-product-page .invite-record-card {
  background: rgb(var(--theme-card-rgb) / var(--theme-card-bg-alpha));
}

.mobile-product-page .theme-switcher button,
.mobile-product-page .theme-settings-grid button,
.mobile-product-page .model-category-tabs button,
.mobile-product-page .support-tab-row button,
.mobile-product-page .profile-secondary-action,
.mobile-product-page .invite-share-card button,
.mobile-product-page .profile-edit-open,
.mobile-product-page .profile-edit-actions button,
.mobile-product-page .profile-choice-row button {
  background: rgb(var(--theme-button-rgb) / var(--theme-button-bg-alpha));
}

.mobile-product-page .theme-switcher button.active,
.mobile-product-page .model-category-tabs button.active,
.mobile-product-page .support-tab-row button.active,
.mobile-product-page .profile-choice-row button.active {
  background: rgb(var(--theme-accent-rgb) / var(--theme-active-button-alpha));
  color: #fff;
}

.admin-ops-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 0%, rgba(43, 197, 255, 0.08), transparent 360px),
    radial-gradient(circle at 10% 0%, rgba(233, 75, 115, 0.16), transparent 300px),
    var(--bg);
  color: var(--text);
  padding: 0;
}

.admin-ops-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 260px minmax(260px, 420px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(12, 14, 25, 0.94);
  backdrop-filter: blur(16px);
  padding: 8px 24px 8px 16px;
}

.admin-ops-hero {
  display: none;
}

.admin-global-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  max-width: 420px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  padding: 0 12px;
}

.admin-global-search span {
  font-size: 18px;
  line-height: 1;
}

.admin-global-search input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: 0;
}

.admin-topbar-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.admin-icon-button,
.admin-notify-button,
.admin-profile-menu summary {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 820;
}

.admin-icon-button {
  padding: 8px 12px;
}

.admin-notify-button {
  position: relative;
  width: 36px;
  padding: 0;
}

.admin-notify-button::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #f05b93;
  box-shadow: 0 0 0 3px rgba(240, 91, 147, 0.16);
}

.admin-profile-menu {
  position: relative;
}

.admin-profile-menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 4px 9px 4px 5px;
}

.admin-profile-menu summary::-webkit-details-marker {
  display: none;
}

.admin-profile-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e94b73, #7c5cff);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.admin-profile-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  display: grid;
  min-width: 190px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(22, 26, 40, 0.98);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.admin-profile-menu-panel a,
.admin-profile-menu-panel button {
  min-height: 42px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  padding: 10px 13px;
  text-align: left;
  text-decoration: none;
}

.admin-profile-menu-panel a:first-child {
  border-top: 0;
}

.admin-profile-menu-panel a:hover,
.admin-profile-menu-panel button:hover {
  background: rgba(233, 75, 115, 0.16);
  color: var(--text);
}

.admin-login-card,
.admin-metric-grid article,
.admin-ops-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(18, 19, 26, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.admin-login-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.admin-login-card h1,
.admin-login-card p {
  margin: 0;
}

.admin-login-card h1 {
  font-size: 32px;
  line-height: 1.16;
}

.admin-login-card p {
  color: var(--muted);
  line-height: 1.7;
}

.admin-login-form {
  display: grid;
  gap: 9px;
}

.admin-login-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-login-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font: inherit;
  outline: 0;
  padding: 10px 12px;
}

.admin-login-form button,
.admin-panel-head button,
.admin-link-button {
  min-height: 40px;
  border: 1px solid var(--admin-action-pink-border, rgba(233, 75, 115, 0.62));
  border-radius: 8px;
  background: var(--admin-action-pink, var(--pink));
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  padding: 10px 14px;
  text-decoration: none;
}

.admin-action-row {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-action-row button {
  border-color: var(--admin-action-pink-border, rgba(233, 75, 115, 0.62));
  background: var(--admin-action-pink, var(--pink));
  color: #fff;
}

.admin-action-row button:nth-child(2) {
  border-color: rgba(242, 184, 75, 0.52);
  background: rgba(242, 184, 75, 0.14);
  color: #ffd88b;
}

.admin-upload-card,
.admin-review-detail-card {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  border: 1px solid rgba(233, 75, 115, 0.24);
  border-radius: 8px;
  background: rgba(233, 75, 115, 0.08);
  padding: 14px;
}

.admin-upload-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.admin-upload-card select,
.admin-upload-card input {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(9, 10, 16, 0.92);
  color: #fff;
  padding: 9px 10px;
}

.admin-upload-card button {
  min-height: 40px;
  border: 1px solid var(--admin-action-pink-border, rgba(233, 75, 115, 0.62));
  border-radius: 8px;
  background: var(--admin-action-pink, var(--pink));
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.admin-review-detail-card strong {
  color: #fff;
}

.admin-review-detail-card p {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-review-detail-card p span {
  color: rgba(255, 255, 255, 0.68);
}

.admin-review-detail-card p em {
  color: #fff;
  font-style: normal;
  overflow-wrap: anywhere;
}

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

.admin-metric-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.admin-metric-grid span,
.admin-metric-grid em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.admin-metric-grid strong {
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.admin-enterprise-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
  width: 100%;
  min-height: calc(100vh - 58px);
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: rgba(7, 9, 17, 0.92);
  box-shadow: none;
}

.admin-ops-page {
  --admin-action-pink: #be185d;
  --admin-action-pink-border: rgba(190, 24, 93, 0.72);
  --admin-action-danger: #b91c1c;
}

.admin-ops-page [data-payment-refund-select] {
  border-color: var(--admin-action-pink-border);
  background: var(--admin-action-pink);
  color: #fff;
}

.admin-enterprise-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  height: calc(100vh - 58px);
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 16, 29, 0.98);
  padding: 14px 12px 18px;
}

.admin-sidebar-profile {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 4px 14px;
}

.admin-sidebar-profile strong,
.admin-sidebar-profile span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-sidebar-profile strong {
  font-size: 15px;
}

.admin-sidebar-profile span {
  color: var(--muted);
  font-size: 12px;
}

.admin-menu-group {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-menu-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  border-radius: 6px;
  color: var(--gold);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  list-style: none;
  padding: 9px 8px;
  user-select: none;
}

.admin-menu-group summary::-webkit-details-marker {
  display: none;
}

.admin-menu-group summary::after {
  content: "›";
  color: rgba(255, 255, 255, 0.56);
  font-size: 15px;
  line-height: 1;
  transition: transform 160ms ease;
}

.admin-menu-group[open] summary {
  background: rgba(233, 75, 115, 0.12);
  color: var(--text);
}

.admin-menu-group[open] summary::after {
  transform: rotate(90deg);
}

.admin-menu-items {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 2px 0 4px 8px;
}

.admin-menu-group a {
  min-width: 0;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  overflow-wrap: anywhere;
  padding: 8px 10px;
  text-decoration: none;
}

.admin-menu-group a.active,
.admin-menu-group a:hover {
  background: rgba(233, 75, 115, 0.18);
  color: var(--text);
}

.admin-enterprise-main {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 26px 24px 34px;
}

.admin-enterprise-topline,
.admin-toolbar-actions,
.admin-tab-strip,
.admin-filter-actions,
.admin-pagination,
.admin-enterprise-row div {
  display: flex;
  align-items: center;
}

.admin-enterprise-topline {
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.admin-dashboard-title {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-dashboard-title h1,
.admin-dashboard-title p {
  margin: 0;
}

.admin-dashboard-title h1 {
  font-size: 27px;
  line-height: 1.15;
}

.admin-dashboard-title p {
  color: var(--muted);
  font-size: 13px;
}

.admin-tab-strip,
.admin-toolbar-actions,
.admin-filter-actions,
.admin-pagination,
.admin-enterprise-row div {
  flex-wrap: wrap;
  gap: 8px;
}

.admin-tab-strip button,
.admin-toolbar-actions button,
.admin-filter-actions button,
.admin-pagination button,
.admin-enterprise-row button {
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 820;
  padding: 6px 10px;
}

.admin-tab-strip button.active,
.admin-filter-actions button:first-child,
.admin-toolbar-actions button:first-child {
  border-color: rgba(233, 75, 115, 0.55);
  background: rgba(233, 75, 115, 0.18);
  color: #ffd2dc;
}

.admin-enterprise-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
}

.admin-enterprise-stats article,
.admin-filter-card,
.admin-enterprise-table {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-enterprise-stats article {
  display: grid;
  gap: 9px;
  min-height: 128px;
  padding: 18px;
}

.admin-kpi-card {
  position: relative;
  overflow: hidden;
}

.admin-kpi-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.74;
  pointer-events: none;
}

.admin-kpi-card.violet::before {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.24), transparent 70%);
}

.admin-kpi-card.teal::before {
  background: linear-gradient(135deg, rgba(19, 184, 166, 0.22), transparent 70%);
}

.admin-kpi-card.rose::before {
  background: linear-gradient(135deg, rgba(233, 75, 115, 0.22), transparent 70%);
}

.admin-kpi-card.orange::before {
  background: linear-gradient(135deg, rgba(255, 137, 49, 0.2), transparent 70%);
}

.admin-kpi-card.blue::before {
  background: linear-gradient(135deg, rgba(43, 197, 255, 0.2), transparent 70%);
}

.admin-kpi-card > * {
  position: relative;
}

.admin-enterprise-stats span,
.admin-enterprise-stats em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.admin-enterprise-stats strong {
  font-size: 28px;
  line-height: 1;
}

.admin-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.95fr);
  gap: 18px;
}

.admin-chart-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
  min-height: 304px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(14, 17, 30, 0.9);
  padding: 22px;
}

.admin-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-chart-head h2,
.admin-chart-head p {
  margin: 0;
}

.admin-chart-head h2 {
  font-size: 18px;
}

.admin-chart-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.admin-chart-head > strong {
  flex: 0 0 auto;
  color: #ffd782;
  font-size: 13px;
}

.admin-hour-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  min-height: 210px;
  padding-top: 22px;
}

.admin-hour-chart span {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px;
  min-width: 0;
  height: 210px;
}

.admin-hour-chart b {
  display: block;
  min-height: 8px;
  height: var(--bar, 18%);
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, #f04f9c 0%, #8f5cff 100%);
  box-shadow: 0 10px 26px rgba(233, 75, 115, 0.18);
}

.admin-hour-chart em {
  color: #cbd5e1;
  font-size: 11px;
  font-style: normal;
  text-align: center;
  white-space: nowrap;
}

.admin-token-donut {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 136px;
  height: 136px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(14, 17, 30, 0.96) 0 46%, transparent 47%),
    conic-gradient(#13b8a6 0 72%, #e94b73 72% 86%, rgba(255, 255, 255, 0.22) 86% 100%);
}

.admin-token-donut strong,
.admin-token-donut span {
  grid-area: 1 / 1;
}

.admin-token-donut strong {
  margin-top: -10px;
  font-size: 22px;
}

.admin-token-donut span {
  margin-top: 34px;
  color: var(--muted);
  font-size: 12px;
}

.admin-token-legend {
  display: grid;
  gap: 10px;
}

.admin-token-legend p {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-token-legend strong,
.admin-token-legend em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-token-legend strong {
  color: var(--text);
  font-weight: 760;
}

.admin-token-legend em {
  font-style: normal;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.dot.teal {
  background: #13b8a6;
}

.dot.rose {
  background: #e94b73;
}

.dot.muted {
  background: rgba(255, 255, 255, 0.34);
}

.admin-live-source {
  margin: -2px 0 0;
  border: 1px solid rgba(242, 184, 75, 0.22);
  border-radius: 8px;
  background: rgba(242, 184, 75, 0.08);
  color: #ffd782;
  font-size: 12px;
  line-height: 1.55;
  padding: 9px 11px;
}

.admin-filter-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
}

.admin-filter-card label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-filter-card input,
.admin-filter-card select {
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(8, 9, 14, 0.82);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: 0;
  padding: 6px 9px;
}

.admin-enterprise-table {
  display: grid;
  overflow: hidden;
}

.admin-enterprise-row {
  display: grid;
  grid-template-columns: 0.72fr 1.4fr 0.9fr 0.78fr 1fr 1.1fr;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 9px 12px;
}

.admin-enterprise-row:first-child {
  border-top: 0;
}

.admin-enterprise-row.head {
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-enterprise-row span,
.admin-enterprise-row strong,
.admin-enterprise-row em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-enterprise-row strong {
  font-size: 13px;
}

.admin-enterprise-row span {
  color: var(--muted);
  font-size: 12px;
}

.admin-enterprise-row em {
  width: fit-content;
  border-radius: 999px;
  background: rgba(76, 203, 138, 0.14);
  color: #8ff0bd;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  padding: 5px 8px;
}

.admin-enterprise-row em.warning {
  background: rgba(242, 184, 75, 0.14);
  color: #ffd88b;
}

.admin-enterprise-row em.danger {
  background: rgba(255, 107, 107, 0.14);
  color: #ff9c9c;
}

.admin-pagination {
  justify-content: flex-end;
  color: var(--muted);
  font-size: 12px;
}

.admin-pagination strong {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(233, 75, 115, 0.2);
  color: var(--text);
}

.admin-action-log {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(233, 75, 115, 0.22);
  border-radius: 8px;
  background: rgba(233, 75, 115, 0.07);
  padding: 12px;
}

.admin-action-log strong {
  font-size: 13px;
}

.admin-action-log ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-action-log li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.admin-ops-page.admin-routed:not(.admin-detail-mode) .admin-ops-layout {
  display: none;
}

.admin-ops-page.admin-detail-mode .admin-ops-hero,
.admin-ops-page.admin-detail-mode .admin-enterprise-shell,
.admin-ops-page.admin-detail-mode .admin-acceptance-drawer {
  display: none;
}

.admin-ops-page.admin-detail-mode .admin-ops-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
}

.admin-ops-page.admin-detail-mode .admin-ops-side {
  display: grid;
}

.admin-ops-page.admin-detail-mode .admin-ops-main {
  margin: 0;
  max-width: none;
}

.admin-ops-panel[hidden] {
  display: none !important;
}

.admin-detail-backbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(233, 75, 115, 0.18);
  border-radius: 8px;
  background: rgba(233, 75, 115, 0.08);
  padding: 10px 12px;
}

.admin-detail-backbar a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 7px;
  color: #ffd2dc;
  font-weight: 850;
  text-decoration: none;
}

.admin-detail-backbar span {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin-ops-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
}

.admin-ops-side {
  position: sticky;
  top: 16px;
  align-self: start;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(18, 19, 26, 0.86);
  padding: 10px;
}

.admin-ops-side a {
  display: block;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 12px;
  text-decoration: none;
}

.admin-ops-side a.active,
.admin-ops-side a:hover {
  background: rgba(233, 75, 115, 0.2);
  color: var(--text);
}

.admin-ops-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.admin-ops-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-panel-head h2,
.admin-panel-head h3,
.admin-config-columns h3 {
  margin: 0;
}

.admin-panel-head h2 {
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.3;
}

.admin-table {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
}

.admin-table-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 0.72fr;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
}

.admin-table-row:first-child {
  border-top: 0;
}

.admin-table-row.head {
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-table-row span,
.admin-table-row em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-table-row em {
  width: fit-content;
  border-radius: 999px;
  background: rgba(76, 203, 138, 0.14);
  color: #8ff0bd;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  padding: 6px 9px;
}

.admin-table-row em.warning,
.admin-boundary-note,
.badge.blocked {
  background: rgba(242, 184, 75, 0.14);
  color: #ffd88b;
}

.admin-theme-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-theme-summary-grid article {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.admin-theme-summary-grid span,
.admin-theme-summary-grid em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.admin-theme-summary-grid strong {
  display: block;
  margin: 5px 0 4px;
  color: #fff;
  font-size: 24px;
  line-height: 1.05;
}

.admin-row-link-button {
  min-height: 34px;
  border: 1px solid rgba(233, 75, 115, 0.5);
  border-radius: 8px;
  background: rgba(233, 75, 115, 0.14);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.admin-row-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.admin-row-action-group .admin-row-link-button {
  min-height: 30px;
  padding: 0 8px;
  font-size: 11px;
}

.style-seed-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.style-seed-grid span,
.style-seed-grid button {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  padding: 8px 10px;
}

.style-seed-grid .requires-age {
  border-color: rgba(242, 184, 75, 0.45);
  color: #ffd88b;
}

.style-seed-grid button.is-default {
  border-color: rgba(43, 197, 255, 0.58);
  background: rgba(43, 197, 255, 0.16);
  color: #b8f2ff;
}

.style-seed-grid button.is-disabled {
  opacity: 0.58;
}

.style-seed-grid button:hover,
.style-seed-grid button:focus-visible,
.admin-row-link-button:hover,
.admin-row-link-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.52);
  box-shadow: 0 0 0 3px rgba(233, 75, 115, 0.16);
  outline: 0;
}

.admin-review-detail-card.is-active {
  border-color: rgba(43, 197, 255, 0.48);
  background: rgba(43, 197, 255, 0.08);
}

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

.admin-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
  gap: 12px;
}

.admin-form-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-form-grid label.span-2 {
  grid-column: 1 / -1;
}

.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(8, 9, 14, 0.82);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: 0;
  padding: 10px 12px;
}

.admin-form-grid textarea {
  resize: vertical;
  line-height: 1.55;
}

.admin-compact-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-compact-status-grid article {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.admin-compact-status-grid h3 {
  margin: 0;
  font-size: 15px;
}

.admin-compact-status-grid p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.admin-lite-module {
  gap: 12px;
  background: rgba(12, 15, 27, 0.94);
}

.admin-lite-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-lite-metrics article {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 13px;
}

.admin-lite-metrics span,
.admin-lite-metrics em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.admin-lite-metrics strong {
  display: block;
  margin: 6px 0 4px;
  color: #fff;
  font-size: 25px;
  line-height: 1;
}

.admin-lite-filter,
.admin-promotion-submit {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
}

.admin-lite-filter {
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  align-items: end;
}

.admin-promotion-submit {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
}

.admin-lite-filter label,
.admin-promotion-submit label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-lite-filter input,
.admin-promotion-submit input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(8, 9, 14, 0.82);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: 0;
  padding: 8px 10px;
}

.admin-lite-filter > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.admin-lite-filter button,
.admin-promotion-submit button {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 820;
  padding: 7px 10px;
}

.admin-lite-filter button.active,
.admin-promotion-submit button:first-child {
  border-color: rgba(43, 197, 255, 0.54);
  background: rgba(43, 197, 255, 0.16);
  color: #aeeeff;
}

.admin-promotion-submit button:last-child {
  border-color: rgba(233, 75, 115, 0.55);
  background: rgba(233, 75, 115, 0.2);
  color: #ffd2dc;
}

.admin-status-line {
  margin: 0;
  border: 1px solid rgba(76, 203, 138, 0.2);
  border-radius: 8px;
  background: rgba(76, 203, 138, 0.08);
  color: #aef1cb;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
  padding: 10px 12px;
}

.admin-rule-drawer {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.admin-rule-drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
}

.admin-rule-drawer summary::-webkit-details-marker {
  display: none;
}

.admin-rule-drawer summary strong {
  color: var(--text);
  font-size: 14px;
}

.admin-rule-drawer summary span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.admin-rule-drawer summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 900;
}

.admin-rule-drawer[open] summary::after {
  content: "-";
}

.admin-rule-drawer > .admin-compact-status-grid,
.admin-rule-drawer > .admin-config-columns,
.admin-rule-drawer > .admin-cost-control {
  padding: 0 12px 12px;
}

.admin-config-columns.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-config-columns article {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 14px;
}

.admin-config-columns p,
.admin-boundary-note {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-boundary-note {
  border-radius: 8px;
  padding: 12px;
}

.admin-policy-list {
  display: grid;
  gap: 8px;
  margin: 0;
  border: 1px solid rgba(242, 184, 75, 0.18);
  border-radius: 8px;
  background: rgba(242, 184, 75, 0.07);
  color: var(--muted);
  line-height: 1.55;
  padding: 12px 14px 12px 28px;
}

.admin-policy-list li {
  padding-left: 2px;
}

.admin-cost-control {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(120px, 0.35fr) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 14px;
}

.admin-cost-control h3,
.admin-cost-control p {
  margin: 0;
}

.admin-cost-control p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.admin-cost-control label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-cost-control input {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font: inherit;
  font-weight: 850;
  outline: 0;
  padding: 9px 10px;
}

.admin-action-status {
  margin: 4px 0 0;
}

@media (min-width: 981px) {
  .admin-ops-topbar[data-admin-desktop-topbar] {
    grid-template-columns: minmax(0, 1fr) 280px 230px;
  }

  .admin-ops-page {
    min-height: 100vh;
    padding: 0;
    background: #0f172a;
    color: #f8fafc;
  }

  .admin-ops-hero {
    display: none;
  }

  .admin-ops-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 252px;
    z-index: 44;
    display: grid;
    width: auto;
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 0.52fr) auto;
    gap: 18px;
    min-height: 70px;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0;
    background: #1e293b;
    box-shadow: none;
    padding: 10px 24px;
  }

  .admin-ops-topbar .delivery-brand {
    opacity: 0;
    pointer-events: none;
  }

  .admin-global-search {
    max-width: 360px;
    min-height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    background: #334155;
    color: #cbd5e1;
  }

  .admin-global-search input {
    color: #f8fafc;
  }

  .admin-icon-button,
  .admin-notify-button,
  .admin-profile-menu summary {
    border-color: rgba(148, 163, 184, 0.22);
    background: #334155;
    color: #f8fafc;
  }

  .admin-enterprise-shell,
  .admin-ops-page.admin-detail-mode .admin-ops-layout {
    grid-template-columns: 252px minmax(0, 1fr);
    min-height: 100vh;
    width: 100%;
    max-width: none;
    margin: 0;
    gap: 0;
    background: #0f172a;
  }

  .admin-enterprise-sidebar,
  .admin-ops-page.admin-detail-mode .admin-ops-side {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 48;
    width: 252px;
    height: 100vh;
    border: 0;
    border-right: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 0;
    background: #1f2937;
    box-shadow: none;
    padding: 16px 12px;
  }

  .admin-sidebar-profile {
    min-height: 54px;
    border-bottom-color: rgba(148, 163, 184, 0.16);
    padding: 8px 8px 16px;
  }

  .admin-sidebar-profile strong {
    color: #f8fafc;
    font-size: 17px;
    font-weight: 900;
  }

  .admin-sidebar-profile span {
    color: #94a3b8;
  }

  .admin-menu-group summary {
    min-height: 42px;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 14px;
    padding: 10px 12px;
  }

  .admin-menu-group[open] summary,
  .admin-menu-group summary:hover {
    background: linear-gradient(135deg, #6d5dfc, #a855f7);
    color: #fff;
    box-shadow: 0 10px 26px rgba(124, 92, 255, 0.28);
  }

  .admin-menu-items {
    padding: 5px 0 6px 18px;
  }

  .admin-menu-group a {
    min-height: 36px;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 14px;
  }

  .admin-menu-group a.active,
  .admin-menu-group a:hover {
    background: rgba(99, 102, 241, 0.18);
    color: #c4b5fd;
  }

  .admin-enterprise-main,
  .admin-ops-page.admin-detail-mode .admin-ops-main {
    grid-column: 2;
    gap: 24px;
    padding: 92px 28px 42px;
  }

  .admin-ops-page.admin-detail-mode .admin-ops-main {
    max-width: none;
    margin: 0;
  }

  .admin-enterprise-stats article {
    min-height: 124px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.16);
  }

  .admin-enterprise-stats span,
  .admin-enterprise-stats em {
    color: #64748b;
  }

  .admin-enterprise-stats strong {
    color: #0f172a;
  }

  .admin-chart-panel.admin-chart-panel-wide {
    min-height: 380px;
    border: 0;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.16);
  }

  .admin-chart-panel.admin-chart-panel-wide .admin-hour-chart b {
    background: #7c83f7;
    box-shadow: none;
  }

  .admin-chart-panel.admin-chart-panel-wide .admin-hour-chart em,
  .admin-chart-panel.admin-chart-panel-wide .admin-chart-head p {
    color: #64748b;
  }

  .admin-chart-panel.admin-chart-panel-wide .admin-chart-head > strong {
    color: #8a5a00;
  }
}

.admin-ops-panel,
.admin-filter-card,
.admin-enterprise-table,
.admin-chart-panel,
.admin-upload-card,
.admin-lite-filter,
.admin-promotion-submit,
.admin-cost-control,
.admin-rule-drawer,
.admin-config-columns article,
.admin-compact-status-grid article,
.admin-lite-metrics article,
.admin-theme-summary-grid article {
  border-color: rgba(148, 163, 184, 0.18);
  background-color: #1f2937;
}

.admin-review-alert {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 18px;
  align-items: center;
  border: 1px solid rgba(245, 158, 11, 0.78);
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.08);
  color: #fbbf24;
  padding: 16px 18px;
}

.admin-review-alert.image-alert {
  border-color: rgba(236, 72, 153, 0.72);
  background: rgba(236, 72, 153, 0.08);
  color: #f472b6;
}

.admin-review-alert strong,
.admin-review-alert p {
  margin: 0;
}

.admin-review-alert p {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
}

.admin-review-alert button {
  grid-row: 1 / span 2;
  grid-column: 2;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: #f59e0b;
  color: #111827;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 9px 15px;
}

.admin-review-alert.image-alert button {
  background: var(--admin-action-pink, #be185d);
  color: #fff;
}

.admin-system-role-builder {
  border-color: rgba(124, 92, 255, 0.36);
  background: #1f2937;
}

.admin-system-role-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
}

.admin-system-role-steps button,
.admin-system-role-budget button,
.admin-system-role-toggle button {
  min-height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: #111827;
  color: #cbd5e1;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.admin-system-role-steps button.active,
.admin-system-role-budget button.active,
.admin-system-role-toggle button[aria-pressed="true"] {
  border-color: rgba(124, 92, 255, 0.76);
  background: #6d4de8;
  color: #fff;
  box-shadow: 0 8px 20px rgba(109, 77, 232, 0.2);
}

.admin-builder-copy {
  display: grid;
  gap: 8px;
}

.admin-builder-copy strong {
  font-size: 20px;
}

.admin-builder-copy p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.6;
}

.admin-system-role-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 18px;
  align-items: stretch;
}

.admin-system-role-panels {
  min-width: 0;
}

.admin-system-role-panels [hidden] {
  display: none !important;
}

.admin-system-role-model-grid .span-2,
.admin-system-role-variable-list.span-2,
.admin-system-role-budget.span-2,
.admin-system-role-toggle.span-2,
.admin-system-role-model-note {
  grid-column: 1 / -1;
}

.admin-system-role-variable-list,
.admin-system-role-budget,
.admin-system-role-toggle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-system-role-variable-list {
  padding: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  color: #cbd5e1;
}

.admin-system-role-variable-list em {
  border-radius: 999px;
  background: rgba(109, 77, 232, 0.16);
  color: #c4b5fd;
  font-style: normal;
  padding: 5px 9px;
}

.admin-system-role-budget > span {
  flex: 0 0 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-system-role-budget button {
  flex: 1 1 132px;
  padding: 8px 10px;
}

.admin-system-role-toggle {
  justify-content: space-between;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.62);
}

.admin-system-role-toggle div {
  display: grid;
  gap: 4px;
}

.admin-system-role-toggle small,
.admin-system-role-model-note {
  margin: 0;
  color: #94a3b8;
  line-height: 1.55;
}

.admin-system-role-toggle button {
  min-width: 88px;
  padding: 8px 12px;
}

.admin-system-role-preview {
  display: grid;
  overflow: hidden;
  align-self: start;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: #111827;
}

.admin-role-card-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 164px;
  background: linear-gradient(135deg, #667eea, #22c1c3);
  color: #fff;
  font-size: 42px;
  font-weight: 1000;
}

.admin-role-card-media span {
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.admin-role-card-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.admin-role-card-body p,
.admin-role-card-body small {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.55;
}

.admin-system-role-preview-model {
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #c4b5fd !important;
}

.admin-role-card-body div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-role-card-body em,
.admin-role-card-status {
  width: fit-content;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.18);
  color: #c4b5fd;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  padding: 5px 8px;
}

.admin-community-role-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.admin-community-role-grid article {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  grid-template-areas:
    "cover title"
    "cover owner"
    "cover identifiers"
    "cover description"
    "cover tags"
    "cover timeline"
    "cover review"
    "cover action"
    "cover footer";
  column-gap: 16px;
  align-items: start;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: #1f2937;
  padding: 10px 12px 10px 10px;
}

.admin-community-role-grid [data-community-role-card][hidden],
.admin-community-role-grid [data-community-role-no-results][hidden],
.admin-table [data-user-reference-row][hidden],
.admin-table [data-user-search-empty][hidden],
.admin-table [data-points-reference-row][hidden],
.admin-table .admin-table-row[hidden] {
  display: none !important;
}

.admin-community-cover {
  grid-area: cover;
  position: relative;
  display: grid;
  place-items: center;
  align-self: stretch;
  min-height: 154px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  font-size: 38px;
  font-weight: 1000;
}

.admin-community-cover.cover-blue {
  background: linear-gradient(135deg, #7086ff, #3b82f6);
}

.admin-community-cover.cover-cyan {
  background: linear-gradient(135deg, #4ba3f4, #06b6d4);
}

.admin-community-cover.cover-teal {
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
}

.admin-community-cover em {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  background: #fbbf24;
  color: #111827;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  padding: 4px 8px;
}

.admin-community-cover em.rejected {
  background: var(--admin-action-danger, #b91c1c);
  color: #fff;
}

.admin-community-role-grid strong,
.admin-community-role-grid p,
.admin-community-role-grid footer {
  margin-right: 0;
  margin-left: 0;
}

.admin-community-role-grid strong {
  grid-area: title;
  display: block;
  margin-top: 2px;
  font-size: 15px;
}

.admin-community-role-grid p {
  margin-top: 4px;
  margin-bottom: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
}

.admin-community-role-grid .admin-role-card-category {
  color: #94a3b8;
  font-size: 11px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-community-role-grid .admin-role-card-owner {
  grid-area: owner;
}

.admin-community-role-grid .admin-role-card-identifiers {
  grid-area: identifiers;
}

.admin-community-role-grid .admin-role-card-timeline {
  grid-area: timeline;
  margin-top: 6px;
}

.admin-community-role-grid .admin-role-card-description {
  grid-area: description;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: #e2e8f0;
}

.admin-community-role-grid .admin-role-card-tags {
  grid-area: tags;
  margin-top: 7px;
}

.admin-community-role-grid .admin-role-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-community-role-grid .admin-role-card-tags span {
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.2);
  color: #c4b5fd;
  font-size: 12px;
  padding: 4px 7px;
}

.admin-community-role-grid article.admin-empty-card {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "title"
    "description";
  min-height: 120px;
  place-content: center;
  padding: 24px;
  text-align: center;
}

.admin-community-role-grid footer {
  grid-area: footer;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 7px;
  padding: 8px 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.admin-community-role-grid .admin-role-card-review-note {
  grid-area: review;
  margin-top: 7px;
  border-radius: 7px;
  background: rgba(185, 28, 28, 0.14);
  color: #fecaca;
  padding: 6px 8px;
}

.admin-community-role-grid .admin-role-card-action-status {
  grid-area: action;
  margin-top: 7px;
  border-radius: 7px;
  background: rgba(99, 102, 241, 0.14);
  color: #c7d2fe;
  padding: 6px 8px;
}

.admin-community-role-grid .admin-role-card-action-status[hidden],
.admin-community-role-grid .admin-role-card-review-note[hidden] {
  display: none;
}

.admin-community-role-grid small {
  color: #94a3b8;
  margin-right: auto;
}

.admin-community-role-grid button,
.admin-row-link-button {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
}

.admin-community-role-grid button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.admin-community-role-grid button:first-of-type,
.admin-row-link-button:first-child {
  background: rgba(99, 102, 241, 0.16);
  color: #c4b5fd;
}

.admin-row-link-button.danger,
.admin-community-role-grid button[data-admin-action="role-reject"] {
  background: var(--admin-action-danger, #b91c1c);
  color: #fff;
}

.admin-row-action-group .admin-row-link-button[data-role-review-action] {
  background: var(--admin-action-pink, #be185d);
  color: #fff;
}

.admin-row-action-group .admin-row-link-button[data-role-review-action="reject"],
.admin-row-action-group .admin-row-link-button[data-role-review-action="unpublish"] {
  background: var(--admin-action-danger, #b91c1c);
  color: #fff;
}

.admin-image-review-table .admin-row-action-group .admin-row-link-button:nth-child(n+2) {
  background: var(--admin-action-pink, #be185d);
  color: #fff;
}

.admin-image-review-table .admin-row-action-group .admin-row-link-button.danger {
  background: var(--admin-action-danger, #b91c1c);
  color: #fff;
}

.admin-action-row button[data-admin-action="role-reject"],
.admin-action-row button[data-admin-action="profile-review-reject"],
.admin-action-row button[data-admin-action="role-image-reject"] {
  border-color: rgba(185, 28, 28, 0.72);
  background: var(--admin-action-danger, #b91c1c);
  color: #fff;
}

.admin-table-row small {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
}

.admin-image-thumb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: #475569;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 900;
}

.admin-user-kpis,
.admin-monitor-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.admin-user-kpis article,
.admin-monitor-kpis article,
.admin-monitor-chart {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: #1f2937;
  padding: 18px;
}

.admin-user-kpis article {
  background: #fff;
  color: #0f172a;
}

.admin-user-kpis span,
.admin-user-kpis em,
.admin-monitor-kpis span,
.admin-monitor-kpis em {
  display: block;
  color: #94a3b8;
  font-size: 13px;
  font-style: normal;
}

.admin-user-kpis article span,
.admin-user-kpis article em {
  color: #64748b;
}

.admin-user-kpis strong,
.admin-monitor-kpis strong {
  display: block;
  margin: 16px 0 4px;
  font-size: 30px;
  line-height: 1;
}

.admin-list-toolbar,
.admin-model-periods {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.admin-list-toolbar {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.admin-list-toolbar label {
  display: grid;
  gap: 6px;
  min-width: min(100%, 290px);
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.admin-list-toolbar input {
  min-height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #0f172a;
  background: #fff;
  caret-color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  font: inherit;
  padding: 8px 12px;
}

.admin-list-toolbar input::placeholder {
  color: #64748b;
  opacity: 1;
  -webkit-text-fill-color: #64748b;
}

.admin-search-empty {
  grid-template-columns: 1fr !important;
  color: #94a3b8;
  text-align: center;
}

.admin-entity-dialog {
  width: min(720px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  border: 0;
  background: transparent;
  color: #f8fafc;
  padding: 0;
}

.admin-entity-dialog[data-role-detail-dialog] {
  width: min(980px, calc(100vw - 32px));
}

.admin-entity-dialog::backdrop {
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(3px);
}

.admin-entity-dialog-card {
  display: grid;
  gap: 16px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background: #1f2937;
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.55);
  padding: 22px;
}

.admin-entity-dialog-card > header,
.admin-entity-dialog-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-entity-dialog-card > header h3,
.admin-entity-dialog-card > header small {
  display: block;
  margin: 0;
}

.admin-entity-dialog-card > header button,
.admin-entity-dialog-card > footer button {
  min-height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 9px;
  background: #334155;
  color: #f8fafc;
  cursor: pointer;
  padding: 8px 14px;
}

.admin-entity-dialog-card > footer button[type="submit"] {
  border-color: transparent;
  background: #c9155d;
}

.admin-entity-form-grid,
.admin-role-detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-entity-form-grid .span-2 {
  grid-column: 1 / -1;
}

.admin-entity-form-grid label,
.admin-role-detail-content > div,
.admin-role-detail-content > section {
  display: grid;
  gap: 6px;
}

.admin-entity-form-grid label[hidden] {
  display: none !important;
}

.admin-entity-form-grid label > span,
.admin-role-detail-content dt {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
}

.admin-entity-form-grid input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #64748b;
  border-radius: 9px;
  background: #334155;
  color: #fff;
  caret-color: #fff;
  font: inherit;
  padding: 9px 11px;
  -webkit-text-fill-color: #fff;
}

.admin-role-detail-content > div,
.admin-role-detail-content > section {
  align-content: start;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.42);
  padding: 11px;
}

.admin-role-detail-content dd,
.admin-role-detail-content h4,
.admin-role-detail-content p {
  margin: 0;
}

.admin-role-detail-content h4 {
  color: #cbd5e1;
  font-size: 12px;
}

.admin-role-detail-content dd,
.admin-role-detail-content p {
  color: #f8fafc;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-role-detail-dialog-card {
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  padding-bottom: max(22px, env(safe-area-inset-bottom));
}

.admin-user-detail-dialog-card {
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  padding-bottom: max(22px, env(safe-area-inset-bottom));
}

.admin-user-detail-content {
  display: grid;
  gap: 14px;
  overflow: auto;
  overscroll-behavior: contain;
}

.admin-user-detail-summary {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(201, 21, 93, 0.38);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(201, 21, 93, 0.16), rgba(15, 23, 42, 0.64));
  padding: 14px;
}

.admin-user-detail-summary strong {
  color: #fff;
  font-size: 20px;
}

.admin-user-detail-summary span,
.admin-user-detail-summary small {
  color: #cbd5e1;
  overflow-wrap: anywhere;
}

.admin-user-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-user-detail-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.5);
  padding: 11px;
}

.admin-user-detail-field span {
  color: #94a3b8;
  font-size: 12px;
}

.admin-user-detail-field strong {
  color: #f8fafc;
  overflow-wrap: anywhere;
}

.admin-user-detail-dialog-card > footer {
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-user-detail-dialog-card > footer > p {
  flex: 1;
  margin: 0;
  color: #cbd5e1;
  font-size: 12px;
}

.admin-user-detail-dialog-card > footer > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-role-card-timeline {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
}

.admin-role-detail-dialog-card > header {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-role-detail-content {
  overflow: auto;
  align-content: start;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.admin-role-detail-hero,
.admin-role-detail-group {
  grid-column: 1 / -1;
}

.admin-role-detail-content > .admin-role-detail-hero {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  border-color: rgba(201, 21, 93, 0.34);
  background: linear-gradient(135deg, rgba(201, 21, 93, 0.16), rgba(15, 23, 42, 0.64));
  padding: 14px;
}

.admin-role-detail-cover {
  grid-area: auto;
  min-height: 238px;
  aspect-ratio: 4 / 5;
  align-self: start;
}

.admin-role-detail-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
  min-width: 0;
}

.admin-role-detail-hero-copy h3,
.admin-role-detail-hero-copy p {
  margin: 0;
}

.admin-role-detail-hero-copy h3 {
  color: #fff;
  font-size: clamp(22px, 2.5vw, 32px);
}

.admin-role-detail-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(251, 191, 36, 0.5);
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.14);
  color: #fde68a;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 10px;
}

.admin-role-detail-status.status-published {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
}

.admin-role-detail-status.status-rejected,
.admin-role-detail-status.status-unpublished {
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(248, 113, 113, 0.14);
  color: #fecaca;
}

.admin-role-detail-identifiers {
  color: #cbd5e1 !important;
  font-size: 12px;
}

.admin-role-detail-intro {
  max-width: 68ch;
  color: #e2e8f0 !important;
}

.admin-role-detail-content > .admin-role-detail-group {
  display: grid;
  gap: 12px;
  background: rgba(15, 23, 42, 0.5);
  padding: 14px;
}

.admin-role-detail-group > h3,
.admin-role-detail-group > summary {
  margin: 0;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 900;
}

.admin-role-detail-group > summary {
  cursor: pointer;
}

.admin-role-detail-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-role-detail-field {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 9px;
  background: rgba(30, 41, 59, 0.78);
  padding: 10px;
}

.admin-role-detail-field.span-2 {
  grid-column: 1 / -1;
}

.admin-role-detail-footer {
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-role-detail-footer > p {
  flex: 1;
  margin: 0;
  color: #cbd5e1;
  font-size: 12px;
}

.admin-role-detail-footer > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-entity-dialog-card > footer button.primary {
  border-color: transparent;
  background: #c9155d;
}

.admin-entity-dialog-card > footer button.danger {
  border-color: rgba(248, 113, 113, 0.48);
  background: rgba(153, 27, 27, 0.72);
}

.admin-filter-result {
  margin: -4px 0 0;
  color: #94a3b8;
  font-size: 12px;
}

@media (max-width: 640px) {
  .admin-entity-form-grid,
  .admin-role-detail-content {
    grid-template-columns: 1fr;
  }

  .admin-entity-form-grid .span-2 {
    grid-column: auto;
  }

  .admin-role-detail-content > .admin-role-detail-hero,
  .admin-role-detail-fields,
  .admin-user-detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-role-detail-cover {
    width: min(100%, 280px);
    min-height: 0;
    margin: 0 auto;
  }

  .admin-role-detail-field.span-2 {
    grid-column: auto;
  }

  .admin-role-detail-footer {
    align-items: stretch !important;
    flex-direction: column;
  }

  .admin-role-detail-footer > div,
  .admin-role-detail-footer > div > button,
  .admin-user-detail-dialog-card > footer > div,
  .admin-user-detail-dialog-card > footer > div > button {
    width: 100%;
  }

  .admin-user-detail-dialog-card > footer {
    align-items: stretch;
    flex-direction: column;
  }
}

.admin-list-toolbar div,
.admin-model-periods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-list-toolbar button,
.admin-model-periods button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 8px 14px;
}

.admin-list-toolbar button.active,
.admin-model-periods button.active {
  background: #6d5dfc;
  color: #fff;
}

.admin-monitor-chart {
  display: grid;
  gap: 18px;
}

.admin-hour-chart.compact {
  min-height: 210px;
}

.admin-hour-chart.compact span {
  height: 210px;
}

.admin-monitor-kpis.system article em {
  overflow: hidden;
  height: 7px;
  margin-top: 16px;
  border-radius: 999px;
  background: #334155;
}

.admin-monitor-kpis.system article em i,
.admin-health-bar i {
  display: block;
  width: var(--value, 40%);
  height: 100%;
  border-radius: inherit;
  background: #f59e0b;
}

.admin-monitor-kpis.system article:nth-child(4) em i,
.admin-health-bar i {
  background: #22c55e;
}

.admin-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: #22c55e;
}

.admin-health-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #cbd5e1;
}

.admin-health-bar i {
  width: 80px;
  height: 8px;
  background: #22c55e;
}

.mobile-product-page button,
.mobile-product-page a,
.screen-phone button,
.screen-phone a,
.app-showcase button,
.app-showcase a {
  min-height: 44px;
}

.mobile-product-page .send {
  width: 44px;
  height: 44px;
}

.mobile-product-page .tone-test-panel button,
.mobile-product-page .safety-simulation-panel button,
.mobile-product-page .create-mode-grid button,
  .mobile-product-page .create-step-tabs button,
  .mobile-product-page .create-tag-row button,
  .mobile-product-page .create-preset-row button,
  .mobile-product-page .create-opening-tools button,
  .mobile-product-page .model-budget-row button,
.mobile-product-page .member-tabs button,
.mobile-product-page .mini-tabs button,
.mobile-product-page .theme-switcher button,
.mobile-product-page .delivery-topbar nav a {
  min-height: 44px;
}

@media (max-width: 980px) {
  .admin-ops-page {
    padding: 16px 12px 34px;
  }

  .admin-ops-topbar {
    position: static;
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
  }

  .admin-ops-topbar .delivery-brand {
    width: 100%;
  }

  .admin-ops-topbar nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .admin-enterprise-shell,
  .admin-ops-layout,
  .admin-compact-status-grid,
  .admin-config-columns,
  .admin-config-columns.two,
  .admin-form-grid,
  .admin-theme-summary-grid,
  .admin-lite-metrics,
  .admin-lite-filter,
  .admin-promotion-submit,
  .admin-cost-control,
  .admin-chart-grid {
    grid-template-columns: 1fr;
  }

  .admin-global-search {
    max-width: none;
  }

  .admin-topbar-tools {
    justify-content: space-between;
  }

  .admin-profile-menu-panel {
    right: auto;
    left: 0;
  }

  .admin-enterprise-shell {
    min-height: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
  }

  .admin-enterprise-sidebar {
    position: static;
    height: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .admin-enterprise-topline,
  .admin-filter-card,
  .admin-enterprise-stats {
    grid-template-columns: 1fr;
  }

  .admin-enterprise-main {
    padding: 14px;
  }

  .admin-chart-panel {
    min-height: 260px;
    padding: 16px;
  }

  .admin-chart-head {
    display: grid;
  }

  .admin-hour-chart {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    min-height: 190px;
  }

  .admin-system-role-layout,
  .admin-community-role-grid,
  .admin-user-kpis,
  .admin-monitor-kpis {
    grid-template-columns: 1fr;
  }

  .admin-system-role-steps {
    grid-template-columns: 1fr;
  }

  .admin-review-alert {
    grid-template-columns: 1fr;
  }

  .admin-review-alert button {
    grid-row: auto;
    grid-column: auto;
    justify-self: start;
  }

  .admin-list-toolbar {
    display: grid;
    background: rgba(255, 255, 255, 0.045);
  }

  .admin-hour-chart span {
    height: 150px;
  }

  .admin-enterprise-topline {
    display: grid;
  }

  .admin-enterprise-table {
    overflow-x: auto;
  }

  .admin-enterprise-row {
    min-width: 900px;
  }

  .admin-ops-side {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .admin-ops-page.admin-detail-mode .admin-ops-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
  }

  .admin-ops-page.admin-detail-mode .admin-ops-side {
    position: sticky;
    top: 8px;
    z-index: 5;
    align-items: stretch;
    display: flex;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  .admin-ops-page.admin-detail-mode .admin-sidebar-profile {
    flex: 0 0 156px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 0;
    padding: 2px 12px 2px 4px;
  }

  .admin-ops-page.admin-detail-mode .admin-menu-group {
    flex: 0 0 128px;
  }

  .admin-ops-page.admin-detail-mode .admin-ops-main {
    width: 100%;
    min-width: 0;
  }

  .admin-ops-side a {
    white-space: nowrap;
  }

  .admin-panel-head {
    display: grid;
  }

  .admin-table {
    overflow-x: auto;
  }

  .admin-table-row {
    min-width: 680px;
  }
}

/* 2026-07-10：客户后台素材 22 画面逐页还原。 */
.admin-ops-main > .admin-ops-panel[hidden] {
  display: none !important;
}

.admin-ops-main > .admin-ops-panel {
  contain: layout paint;
}

body.admin-dialog-open .admin-ops-main > .admin-ops-panel:has(.admin-system-role-dialog:not([hidden])) {
  contain: none;
}

#role-review-preview,
#role-image-review-preview,
#announcement-admin-preview,
#trial-user-ops-preview,
#order-admin-preview,
#support-admin-preview,
#promotion-admin-preview,
#model-admin-preview,
#system-monitor-preview {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.admin-reference-supporting {
  display: none !important;
}

.admin-panel-head[data-admin-role-surface="system"] {
  align-items: end;
}

.admin-system-role-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.admin-system-role-gallery > article {
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: #1f2937;
}

.admin-system-role-cover {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 88px;
  color: #fff;
}

.admin-system-role-cover > img,
.admin-community-cover > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

.admin-system-role-cover > span,
.admin-community-cover > span {
  z-index: 1;
}

.admin-system-role-cover:has(> img) > span,
.admin-community-cover:has(> img) > span {
  opacity: 0;
}

.admin-system-role-cover > em,
.admin-system-role-cover > b,
.admin-community-cover > em,
.admin-cover-fallback-label {
  z-index: 2;
}

.admin-community-cover::after,
.admin-system-role-cover::after {
  position: absolute;
  inset: 48% 0 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.58));
  content: "";
  pointer-events: none;
}

.admin-cover-fallback-label {
  position: absolute;
  right: 8px;
  bottom: 7px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.78);
  color: #e2e8f0;
  font-size: 10px;
  padding: 4px 7px;
}

.admin-image-thumb {
  position: relative;
  overflow: hidden;
}

.admin-image-thumb > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-image-thumb.has-image > i {
  display: none;
}

.admin-image-thumb.is-unavailable::after {
  position: absolute;
  right: 2px;
  bottom: 2px;
  border-radius: 4px;
  background: rgba(2, 6, 23, 0.8);
  color: #fbbf24;
  font-size: 8px;
  line-height: 1;
  padding: 3px;
  content: "无原图";
}

.admin-system-role-cover.pink { background: linear-gradient(135deg, #ec5da2, #f43f5e); }
.admin-system-role-cover.orange { background: linear-gradient(135deg, #fbbf24, #f97316); }
.admin-system-role-cover.cyan { background: linear-gradient(135deg, #60a5fa, #06b6d4); }
.admin-system-role-cover.purple { background: linear-gradient(135deg, #c084fc, #7c3aed); }
.admin-system-role-cover.green { background: linear-gradient(135deg, #4ade80, #10b981); }

.admin-system-role-cover > span {
  font-size: 34px;
  font-weight: 900;
}

.admin-system-role-cover > em,
.admin-system-role-cover > b {
  position: absolute;
  top: 9px;
  border-radius: 6px;
  font-size: 11px;
  font-style: normal;
  padding: 4px 7px;
}

.admin-system-role-cover > em {
  right: 62px;
  background: #fde047;
  color: #713f12;
}

.admin-system-role-cover > b {
  right: 8px;
  background: rgba(16, 185, 129, 0.88);
  color: #d1fae5;
}

.admin-system-role-card-body {
  display: grid;
  gap: 5px;
  padding: 10px;
}

.admin-system-role-card-body > strong {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.admin-system-role-card-body > strong small,
.admin-system-role-card-body > strong small i {
  color: #f59e0b;
}

.admin-system-role-card-body > p {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
}

.admin-system-role-card-body .admin-role-card-category {
  color: #a5b4fc;
  font-size: 11px;
}

.admin-system-role-card-body .admin-role-card-description {
  display: -webkit-box;
  overflow: hidden;
  min-height: 34px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #cbd5e1;
  line-height: 1.45;
}

.admin-system-role-card-body > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-system-role-card-body > div span {
  border-radius: 5px;
  background: rgba(79, 70, 229, 0.2);
  color: #a5b4fc;
  font-size: 11px;
  padding: 3px 6px;
}

.admin-system-role-counts {
  padding: 5px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.admin-system-role-card-body footer {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-system-role-card-body footer button {
  min-width: 32px;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: #334155;
  color: #cbd5e1;
  cursor: pointer;
}

.admin-system-role-card-body footer button:first-child {
  margin-right: auto;
  background: transparent;
  color: #818cf8;
}

.admin-system-role-card-body footer button.warning { color: #fb923c; }
.admin-system-role-card-body footer button.danger { color: #fb7185; }

.admin-system-role-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.76);
  padding: 20px;
}

.admin-system-role-dialog[hidden] {
  display: none !important;
}

dialog.admin-system-role-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  box-sizing: border-box;
  margin: 0;
  border: 0;
  color: #f8fafc;
}

dialog.admin-system-role-dialog:not([open]) {
  display: none;
}

dialog.admin-system-role-dialog::backdrop {
  background: transparent;
}

.admin-system-role-dialog-card {
  width: min(648px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: #1f2937;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.55);
}

.admin-system-role-dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: #1f2937;
  padding: 0 22px;
}

.admin-system-role-dialog-head h3 { margin: 0; font-size: 20px; }
.admin-system-role-dialog-head button { border: 0; background: transparent; color: #94a3b8; font-size: 23px; cursor: pointer; }
.admin-system-role-dialog[data-cdk-detail-dialog] .admin-system-role-dialog-card { width: min(680px, 100%); }
.admin-system-role-dialog[data-cdk-detail-dialog] [data-cdk-detail-body] { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px 22px; }
.admin-system-role-dialog[data-cdk-detail-dialog] [data-cdk-detail-body] h4,
.admin-system-role-dialog[data-cdk-detail-dialog] [data-cdk-detail-body] p { margin: 0; }
.admin-system-role-dialog[data-cdk-detail-dialog] [data-cdk-detail-body] p { margin-top: 7px; overflow-wrap: anywhere; }
.admin-system-role-dialog[data-cdk-detail-dialog] > .admin-system-role-dialog-card > .admin-action-row { padding: 0 22px 22px; }
.admin-system-role-modal-card { border: 0; border-radius: 0; padding: 20px 22px 22px; }
.admin-system-role-modal-card .admin-builder-copy,
.admin-system-role-modal-card .admin-system-role-preview { display: none; }
.admin-system-role-modal-card .admin-system-role-layout { grid-template-columns: 1fr; }
.admin-system-role-modal-card .admin-form-grid { grid-template-columns: 1fr; }
.admin-system-role-modal-card .admin-form-grid .span-2 { grid-column: auto; }
.admin-system-role-modal-card .admin-system-role-steps { margin-bottom: 12px; }

.admin-community-role-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  order: -1;
}

.admin-community-role-toolbar label,
.admin-feedback-toolbar label,
.admin-recharge-query-toolbar label,
.admin-announcement-toolbar > label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
  min-height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  background: #334155;
  color: #94a3b8;
  padding: 0 12px;
}

.admin-community-role-toolbar input,
.admin-feedback-toolbar input,
.admin-recharge-query-toolbar input,
.admin-announcement-toolbar input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #f8fafc;
  outline: 0;
}

#role-review-preview [data-admin-role-surface="community"].admin-lite-metrics,
#role-review-preview [data-admin-role-surface="community"].admin-lite-filter,
#role-review-preview [data-admin-role-surface="community"].admin-table,
#role-review-preview [data-admin-role-surface="community"].admin-rule-drawer {
  display: none !important;
}

#role-review-preview [data-admin-role-surface="community"].admin-review-detail-card:not(.is-active) {
  display: none;
}

#role-review-preview [data-admin-role-surface="community"].admin-review-detail-card.is-active {
  display: grid;
}

.admin-image-review-table .admin-table-row {
  grid-template-columns: 82px 1fr 1.05fr 0.85fr 0.78fr 1fr 0.8fr;
  min-width: 850px;
}

.admin-image-thumb i { font-size: 24px; }
.admin-table-row em.danger,
.admin-points-detail-table .danger { color: #f87171; }
.admin-table-row .green,
.admin-points-detail-table .green { color: #34d399; }

.admin-announcement-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 12px;
  align-items: start;
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px;
}

.admin-announcement-toolbar > label {
  border-color: #dbe2ea;
  background: #fff;
}

.admin-announcement-toolbar input { color: #334155; }
.admin-announcement-toolbar details { position: relative; }
.admin-announcement-toolbar summary {
  min-height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  padding: 11px 18px;
}
.admin-announcement-toolbar summary::-webkit-details-marker { display: none; }
.admin-announcement-compose-panel {
  position: absolute;
  top: 50px;
  right: 0;
  z-index: 5;
  width: min(620px, calc(100vw - 310px));
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: #1f2937;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.42);
  padding: 18px;
}

.admin-announcement-list {
  display: grid;
  gap: 14px;
}

.admin-announcement-list > article {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 132px;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  padding: 24px 92px 20px 24px;
}

.admin-announcement-list > [data-announcement-card][hidden] {
  display: none;
}

.admin-announcement-list article > div:first-child { display: flex; align-items: center; gap: 10px; }
.admin-announcement-list h3,
.admin-announcement-list p { margin: 0; }
.admin-announcement-list h3 { font-size: 18px; }
.admin-announcement-list p { color: #475569; }
.admin-announcement-list em { border-radius: 6px; font-size: 11px; font-style: normal; padding: 4px 8px; }
.admin-announcement-list em.activity { background: #fce7f3; color: #9d174d; }
.admin-announcement-list em.update { background: #dbeafe; color: #1e40af; }
.admin-announcement-list em.notice { background: #fef3c7; color: #92400e; }
.admin-announcement-list em.draft { background: #e2e8f0; color: #334155; }
.admin-announcement-list footer { display: flex; gap: 22px; color: #64748b; font-size: 12px; }
.admin-announcement-actions { position: absolute; top: 24px; right: 20px; display: flex; gap: 8px; }
.admin-announcement-actions button { border: 0; background: transparent; color: #64748b; font-size: 18px; cursor: pointer; }

.admin-user-table .admin-table-row {
  grid-template-columns: 1.2fr 0.75fr 0.65fr 0.85fr 0.9fr 0.65fr 0.95fr;
  min-width: 900px;
}

.admin-recharge-query-toolbar,
.admin-feedback-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  background: #1f2937;
  padding: 16px;
}

.admin-recharge-query-toolbar button,
.admin-feedback-toolbar button {
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  background: transparent;
  color: #f8fafc;
  padding: 0 16px;
}

.admin-recharge-query-toolbar button.active {
  border-color: #818cf8;
  background: rgba(99, 102, 241, 0.16);
}

.admin-recharge-filter-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(129, 140, 248, 0.45);
  border-radius: 12px;
  background: #1f2937;
  padding: 16px;
}

.admin-recharge-filter-panel[hidden] { display: none !important; }
.admin-recharge-filter-panel label { display: grid; gap: 7px; min-width: 260px; color: #cbd5e1; font-weight: 700; }
.admin-recharge-filter-panel select {
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 9px;
  background: #334155;
  color: #f8fafc;
  padding: 0 12px;
}
.admin-recharge-filter-actions { display: flex; gap: 10px; }
.admin-recharge-filter-actions button {
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 9px;
  background: transparent;
  color: #f8fafc;
  font-weight: 800;
  padding: 0 16px;
  cursor: pointer;
}
.admin-recharge-filter-actions button.primary { border-color: #be185d; background: #be185d; }

.admin-recharge-query-table .admin-table-row {
  grid-template-columns: 1.25fr 1fr 0.85fr 0.9fr 0.9fr 1fr 0.65fr;
  min-width: 860px;
}
.admin-recharge-query-table small { display: block; color: #94a3b8; }
.admin-reference-ops-details { border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 10px; background: #1f2937; }
.admin-reference-ops-details > summary { cursor: pointer; padding: 14px 16px; }
.admin-reference-ops-details > :not(summary) { margin: 14px 16px; }

.admin-feedback-card-list { display: grid; gap: 16px; }
.admin-feedback-card-list > article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  background: #1f2937;
  padding: 22px;
}
.admin-feedback-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg,#818cf8,#c084fc); color: #fff; }
.admin-feedback-content { display: grid; gap: 7px; }
.admin-feedback-content header { display: flex; gap: 8px; align-items: center; }
.admin-feedback-content header small { color: #94a3b8; font-weight: 500; }
.admin-feedback-content header em { border-radius: 5px; background: #dbeafe; color: #2563eb; font-size: 11px; font-style: normal; padding: 3px 6px; }
.admin-feedback-content header em.danger { background: #fee2e2; color: #dc2626; }
.admin-feedback-content h3,
.admin-feedback-content p { margin: 0; }
.admin-feedback-content p { color: #cbd5e1; }
.admin-feedback-content .admin-feedback-contact { color: #f8d7a2; overflow-wrap: anywhere; }
.admin-feedback-content time { color: #94a3b8; font-size: 11px; }
.admin-feedback-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
}
.admin-feedback-attachment {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: min(320px, 100%);
  min-height: 72px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
  padding: 7px;
  text-align: left;
}
.admin-feedback-attachment img {
  width: 72px;
  height: 58px;
  border-radius: 7px;
  background: #0f172a;
  object-fit: cover;
}
.admin-feedback-attachment span { display: grid; gap: 4px; min-width: 0; }
.admin-feedback-attachment strong,
.admin-feedback-attachment small { overflow-wrap: anywhere; }
.admin-feedback-attachment small { color: #94a3b8; }
.admin-feedback-attachment.is-unavailable { cursor: not-allowed; opacity: .72; }
.admin-feedback-reply-attachments { padding: 0 22px; }
.admin-feedback-reply-attachments[hidden] { display: none; }
.admin-feedback-official { margin-top: 8px; border-radius: 10px; background: rgba(79,70,229,.14); color: #a5b4fc; padding: 13px; }
.admin-feedback-actions { display: flex; align-items: start; gap: 10px; }
.admin-feedback-actions em { border-radius: 999px; font-size: 11px; font-style: normal; padding: 7px 10px; }
.admin-feedback-actions em.pending { background: #fef3c7; color: #d97706; }
.admin-feedback-actions em.processing { background: #dbeafe; color: #2563eb; }
.admin-feedback-actions em.done { background: #dcfce7; color: #16a34a; }
.admin-feedback-actions button { min-height: 42px; border: 0; border-radius: 10px; background: #6366f1; color: #fff; padding: 0 15px; }

.admin-promotion-reference-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.admin-promotion-reference-kpis article { display: grid; gap: 8px; min-height: 122px; border-radius: 14px; color: #fff; padding: 20px; }
.admin-promotion-reference-kpis article.purple { background: linear-gradient(135deg,#6366f1,#9333ea); }
.admin-promotion-reference-kpis article.orange { background: linear-gradient(135deg,#f59e0b,#f97316); }
.admin-promotion-reference-kpis article.green { background: linear-gradient(135deg,#22c55e,#10b981); }
.admin-promotion-reference-kpis article.pink { background: linear-gradient(135deg,#ec4899,#f43f5e); }
.admin-promotion-reference-kpis i { font-size: 24px; }
.admin-promotion-reference-kpis strong { font-size: 24px; }
.admin-promotion-reference-tabs { display: flex; width: fit-content; gap: 4px; border: 1px solid rgba(148,163,184,.24); border-radius: 12px; background: #1f2937; padding: 7px; }
.admin-promotion-reference-tabs button { min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: #cbd5e1; padding: 0 18px; }
.admin-promotion-reference-tabs button.active { background: linear-gradient(135deg,#6366f1,#a855f7); color: #fff; }
.admin-promotion-reference-panel { display: grid; gap: 18px; }
.admin-promotion-reference-panel[hidden] { display: none !important; }
.admin-promotion-reference-panel .admin-promotion-submit,
.admin-promotion-reference-panel .admin-rule-drawer { display: none; }
.admin-promotion-reference-panel .admin-lite-filter { display: grid; }
.admin-promotion-copy-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.admin-promotion-copy-grid article { display: grid; gap: 14px; min-height: 220px; border: 1px solid rgba(148,163,184,.22); border-radius: 14px; background: #1f2937; padding: 20px; }
.admin-promotion-copy-grid header { display: grid; gap: 10px; }
.admin-promotion-copy-grid header span { display: flex; gap: 8px; }
.admin-promotion-copy-grid header em,
.admin-promotion-copy-grid header b { border-radius: 5px; font-size: 11px; font-style: normal; padding: 4px 7px; }
.admin-promotion-copy-grid header em { background: #ec4899; color: #fff; }
.admin-promotion-copy-grid header em.orange { background: #f97316; }
.admin-promotion-copy-grid header em.amber { background: #f59e0b; }
.admin-promotion-copy-grid header b { background: rgba(34,197,94,.14); color: #4ade80; }
.admin-promotion-copy-grid header b.off { background: rgba(148,163,184,.14); color: #94a3b8; }
.admin-promotion-copy-grid p { margin: 0; color: #cbd5e1; line-height: 1.6; }
.admin-promotion-copy-grid footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; border-top: 1px solid rgba(148,163,184,.18); padding-top: 14px; color: #94a3b8; }
.admin-promotion-copy-grid footer div { display: flex; gap: 8px; }
.admin-promotion-copy-grid footer button { border: 0; background: transparent; color: #94a3b8; font-size: 18px; }
.admin-promotion-rule-card { border: 1px solid rgba(148,163,184,.22); border-radius: 14px; background: #1f2937; padding: 24px; }
.admin-promotion-rule-card h3 { margin: 0; }
.admin-promotion-rule-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.admin-promotion-rule-head p { margin: 7px 0 0; color: #94a3b8; line-height: 1.55; }
.admin-promotion-rule-head > span { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; background: rgba(34,197,94,.13); color: #4ade80; font-size: 11px; padding: 7px 10px; white-space: nowrap; }
.admin-promotion-rule-stage { display: grid; gap: 16px; border-top: 1px solid rgba(148,163,184,.2); padding: 20px 0; }
.admin-promotion-rule-stage-title { display: flex; align-items: flex-start; gap: 12px; }
.admin-promotion-rule-stage-title > i { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(139,92,246,.17); color: #c4b5fd; font-size: 18px; }
.admin-promotion-rule-stage-title h4 { margin: 0; color: #f8fafc; font-size: 16px; }
.admin-promotion-rule-stage-title p { margin: 5px 0 0; color: #94a3b8; font-size: 12px; line-height: 1.55; }
.admin-promotion-rule-fields { display: grid; gap: 14px; }
.admin-promotion-rule-fields.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.admin-promotion-rule-fields.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.admin-promotion-rule-fields label { display: grid; gap: 7px; color: #cbd5e1; font-size: 12px; font-weight: 760; }
.admin-promotion-rule-fields input { width: 100%; min-height: 42px; border: 1px solid #536176; border-radius: 8px; background: #3a465a; color: #f8fafc; padding: 0 12px; }
.admin-promotion-tier-editor { overflow: hidden; border: 1px solid rgba(148,163,184,.24); border-radius: 12px; }
.admin-promotion-tier-row { display: grid; grid-template-columns: minmax(150px,1fr) minmax(130px,.72fr) minmax(130px,.82fr); align-items: center; min-height: 52px; border-top: 1px solid rgba(148,163,184,.18); color: #cbd5e1; padding: 8px 14px; }
.admin-promotion-tier-row:first-child { border-top: 0; }
.admin-promotion-tier-row.head { min-height: 42px; background: #192235; color: #f8fafc; font-size: 11px; font-weight: 850; }
.admin-promotion-tier-row input { width: 100%; max-width: 150px; min-height: 36px; border: 1px solid #536176; border-radius: 7px; background: #3a465a; color: #f8fafc; padding: 0 10px; }
.admin-promotion-tier-row.step label { display: flex; align-items: center; gap: 7px; color: #cbd5e1; }
.admin-promotion-tier-preview { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; }
.admin-promotion-tier-preview span { display: grid; gap: 5px; min-height: 68px; place-content: center; border: 1px solid rgba(139,92,246,.24); border-radius: 10px; background: rgba(139,92,246,.08); padding: 9px; text-align: center; }
.admin-promotion-tier-preview small { color: #a5b4fc; }
.admin-promotion-tier-preview strong { color: #f472b6; }
.admin-promotion-rule-warning { display: flex; align-items: flex-start; gap: 8px; margin: 0; border: 1px solid rgba(245,158,11,.28); border-radius: 10px; background: rgba(245,158,11,.08); color: #fcd34d; font-size: 11px; line-height: 1.55; padding: 11px 12px; }
.admin-promotion-rule-card fieldset { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 0; padding: 0; }
.admin-promotion-rule-card legend { width: 100%; margin-bottom: 8px; color: #cbd5e1; }
.admin-promotion-rule-card fieldset button { min-height: 34px; border: 0; border-radius: 999px; background: #334155; color: #cbd5e1; padding: 0 13px; }
.admin-promotion-rule-card fieldset button.active { background: #7c3aed; color: #fff; }
.admin-promotion-rule-card footer { display: flex; justify-content: flex-end; border-top: 1px solid rgba(148,163,184,.2); padding-top: 20px; }
.admin-promotion-rule-card footer button { min-height: 42px; border: 0; border-radius: 9px; background: #be185d; color: #fff; font-weight: 850; padding: 0 18px; }
.admin-promotion-empty { display: grid; grid-column: 1 / -1; place-items: center; gap: 6px; min-height: 180px; color: #94a3b8; text-align: center; }
.admin-promotion-empty i { color: #64748b; font-size: 30px; }
.admin-promotion-empty strong { color: #cbd5e1; }
.admin-promotion-like-input { width: 64px; min-height: 31px; border: 1px solid #536176; border-radius: 7px; background: #334155; color: #f8fafc; padding: 0 7px; }
.admin-review-done { color: #4ade80; font-size: 11px; }
.admin-review-muted { color: #94a3b8; font-size: 11px; }
.admin-promotion-video-table button:disabled { cursor: not-allowed; opacity: .48; }

.admin-model-periods { align-items: center; }
.admin-model-periods::after { content: ""; flex: 1; }
.admin-monitor-kpis article { position: relative; padding-left: 70px; }
.admin-monitor-kpis article::before { position: absolute; top: 18px; left: 18px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(99,102,241,.18); color: #a5b4fc; font-family: remixicon; font-size: 22px; content: "\efdb"; }
.admin-monitor-kpis article:nth-child(2)::before { background: rgba(14,165,233,.18); color: #38bdf8; content: "\eb9e"; }
.admin-monitor-kpis article:nth-child(3)::before { background: rgba(245,158,11,.18); color: #fbbf24; content: "\f20f"; }
.admin-monitor-kpis article:nth-child(4)::before { background: rgba(244,63,94,.18); color: #fb7185; content: "\eca1"; }
.admin-table-title { margin: 0; padding: 18px 20px; border-bottom: 1px solid rgba(148,163,184,.2); }

@media (max-width: 1120px) {
  .admin-system-role-gallery { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
  .admin-promotion-copy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .admin-system-role-gallery,
  .admin-promotion-reference-kpis,
  .admin-promotion-copy-grid { grid-template-columns: 1fr; }
  .admin-community-role-toolbar,
  .admin-recharge-query-toolbar,
  .admin-feedback-toolbar,
  .admin-recharge-filter-panel { align-items: stretch; flex-direction: column; }
  .admin-community-role-toolbar label,
  .admin-feedback-toolbar label,
  .admin-recharge-query-toolbar label,
  .admin-announcement-toolbar > label { min-width: 0; }
  .admin-announcement-toolbar { grid-template-columns: 1fr; }
  .admin-announcement-compose-panel { position: static; width: 100%; margin-top: 10px; }
  .admin-recharge-filter-panel label { min-width: 0; }
  .admin-recharge-filter-actions { justify-content: flex-end; }
  .admin-feedback-card-list > article { grid-template-columns: 42px 1fr; }
  .admin-feedback-actions { grid-column: 2; }
  .admin-promotion-rule-head { flex-direction: column; }
  .admin-promotion-rule-fields.three,
  .admin-promotion-rule-fields.two,
  .admin-promotion-tier-preview { grid-template-columns: 1fr; }
  .admin-promotion-tier-row { grid-template-columns: 1fr; gap: 7px; }
  .admin-promotion-tier-row.head { display: none; }
}

@media (max-width: 680px) {
  .admin-system-role-dialog[data-cdk-detail-dialog] [data-cdk-detail-body] { grid-template-columns: 1fr; }
  .admin-community-role-grid article {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "cover"
      "title"
      "owner"
      "identifiers"
      "description"
      "tags"
      "timeline"
      "review"
      "action"
      "footer";
    gap: 0;
    padding: 10px;
  }

  .admin-community-cover {
    min-height: 118px;
    margin-bottom: 10px !important;
  }
}

/* Customer reference P0 surfaces: home, points, tiers, CDK, settings and monitoring. */
.admin-reference-home,
.admin-reference-surface {
  gap: 24px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.admin-reference-page-title,
.admin-reference-trend-head,
.admin-settings-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-reference-page-title h2 {
  margin: 10px 0 0;
  font-size: 24px;
  line-height: 1.25;
}

.admin-reference-page-title p,
.admin-reference-trend-head p,
.admin-settings-card-head p {
  margin: 4px 0 0;
  color: #94a3b8;
}

.admin-reference-trend-head p {
  color: #64748b;
}

.admin-reference-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 13px;
}

.admin-reference-breadcrumb b {
  color: #fefeff;
}

.admin-reference-page-title > button,
.admin-reference-toolbar > button,
.admin-settings-card-head > button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: #be185d;
  color: #fff;
  font-weight: 850;
  padding: 0 18px;
}

.admin-reference-page-title > button i,
.admin-reference-toolbar > button i,
.admin-settings-card-head > button i {
  margin-right: 6px;
}

.admin-reference-page-title > button.admin-reference-secondary {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #fff;
  color: #334155;
}

.admin-reference-kpi-grid,
.admin-cdk-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.admin-reference-kpi-grid article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px 14px;
  align-items: center;
  min-height: 168px;
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  padding: 24px;
}

.admin-reference-kpi-grid article > i {
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eef2ff;
  color: #6366f1;
  font-size: 24px;
}

.admin-reference-kpi-grid article > i.purple { background: #faf5ff; color: #a855f7; }
.admin-reference-kpi-grid article > i.amber { background: #fffbeb; color: #f59e0b; }
.admin-reference-kpi-grid article > i.green { background: #ecfdf5; color: #10b981; }

.admin-reference-kpi-grid span,
.admin-reference-kpi-grid em {
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}

.admin-reference-kpi-grid strong {
  font-size: 28px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.admin-reference-trend-card {
  min-height: 430px;
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  padding: 28px;
}

.admin-reference-trend-head h3 {
  margin: 0;
  font-size: 20px;
}

.admin-reference-segment {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-reference-segment button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 800;
  padding: 0 16px;
}

.admin-reference-segment button.active {
  background: #4f46e5;
  color: #fff;
}

.admin-reference-line-chart {
  position: relative;
  display: grid;
  grid-template-rows: minmax(280px, 1fr) auto;
  min-height: 330px;
  margin-top: 18px;
  overflow: hidden;
}

.admin-reference-chart-grid,
.admin-reference-chart-bars {
  position: absolute;
  inset: 0 0 42px;
}

.admin-reference-chart-grid {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
}

.admin-reference-chart-grid i {
  border-bottom: 1px solid #e2e8f0;
}

.admin-reference-chart-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 30px;
  align-items: end;
  padding: 0 34px;
}

.admin-reference-chart-bars span {
  height: var(--point);
  border-radius: 8px 8px 2px 2px;
  background: #6366f1;
  opacity: 0.84;
}

.admin-reference-chart-labels {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

.admin-reference-inline-status {
  margin: 0;
  border: 1px solid rgba(215, 168, 87, 0.28);
  border-radius: 8px;
  background: rgba(215, 168, 87, 0.1);
  color: #f6d88e;
  font-size: 12px;
  line-height: 1.6;
  padding: 10px 12px;
}

.admin-reference-trend-card .admin-reference-inline-status {
  margin-top: 12px;
  color: #475569;
}

.admin-reference-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 14px;
  background: #fff;
  padding: 18px;
}

.admin-reference-toolbar > label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 280px;
  min-height: 42px;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  color: #94a3b8;
  padding: 0 12px;
}

.admin-reference-toolbar input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #334155;
  outline: 0;
}

.admin-reference-toolbar .admin-reference-segment {
  margin-left: auto;
}

.admin-reference-compensation {
  display: grid;
  grid-template-columns: 150px 150px minmax(260px, 1fr);
  gap: 12px;
  align-items: end;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: #1f2937;
  padding: 16px;
}

.admin-reference-compensation[hidden] {
  display: none;
}

.admin-reference-compensation .admin-action-row {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.admin-reference-compensation label,
.admin-settings-field {
  display: grid;
  gap: 6px;
  color: #cbd5e1;
  font-size: 12px;
}

.admin-reference-compensation input,
.admin-settings-field input,
.admin-settings-field select {
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: #334155;
  color: #fff;
  padding: 0 12px;
}

.admin-reference-compensation p {
  grid-column: 1 / -1;
  margin: 0;
  color: #94a3b8;
}

.admin-points-detail-table .admin-table-row {
  grid-template-columns: 0.72fr 1fr 0.72fr 0.78fr 0.8fr 1.25fr 0.9fr 0.65fr;
  min-width: 920px;
}

.admin-points-detail-table .admin-table-row strong {
  color: #34d399;
}

.admin-points-detail-table button,
.admin-cdk-management-table button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: rgba(233, 75, 115, 0.16);
  color: #fda4af;
  font-weight: 800;
}

.admin-recharge-section {
  display: grid;
  gap: 14px;
}

.admin-recharge-section > h3 {
  margin: 0;
  font-size: 16px;
}

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

[data-recharge-tier-card] {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-content: start;
  gap: 8px 12px;
  min-height: 210px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: #1f2937;
  padding: 22px;
}

[data-recharge-tier-card] > i {
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #dbeafe;
  color: #2563eb;
  font-size: 22px;
}

[data-recharge-tier-card] > em {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  padding: 3px 8px;
}

[data-recharge-tier-card] h4,
[data-recharge-tier-card] p {
  margin: 0;
}

[data-recharge-tier-card] strong {
  color: #8b5cf6;
  font-size: 25px;
}

[data-recharge-tier-card] p {
  grid-column: 1 / -1;
  color: #cbd5e1;
  line-height: 1.7;
}

[data-recharge-tier-card] p b {
  color: #f59e0b;
}

[data-recharge-tier-card] footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 14px;
}

[data-recharge-tier-card].is-disabled {
  border-color: rgba(148, 163, 184, 0.32);
  background: #172031;
}

[data-recharge-tier-card].is-disabled::after {
  content: "已停用";
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  background: #475569;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  padding: 4px 8px;
}

[data-billing-products-drawer] > button[data-admin-action="payment"] {
  background: #b80f52;
}

[role="switch"][data-recharge-tier-toggle],
[role="switch"][data-settings-toggle] {
  position: relative;
  width: 46px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: #475569;
  padding: 3px;
}

[role="switch"][aria-checked="true"] {
  background: #6366f1;
}

[role="switch"] > span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 150ms ease;
}

[role="switch"][aria-checked="true"] > span {
  transform: translateX(20px);
}

[data-recharge-tier-edit] {
  border: 0;
  background: transparent !important;
  color: #94a3b8;
  font-size: 18px;
}

.admin-cdk-kpi-grid article {
  position: relative;
  min-height: 118px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: #1f2937;
  padding: 22px;
}

.admin-cdk-kpi-grid span,
.admin-cdk-kpi-grid strong {
  display: block;
}

.admin-cdk-kpi-grid span {
  color: #94a3b8;
}

.admin-cdk-kpi-grid strong {
  margin-top: 12px;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}

.admin-cdk-kpi-grid i {
  position: absolute;
  top: 30px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #8b5cf6;
  color: #fff;
  font-size: 21px;
}

.admin-cdk-kpi-grid i.green { background: #10b981; }
.admin-cdk-kpi-grid i.amber { background: #f59e0b; }
.admin-cdk-kpi-grid i.rose { background: #ef4444; }

.admin-cdk-management-table .admin-table-row {
  grid-template-columns: 1.15fr 0.62fr 0.8fr 1.1fr 0.9fr 0.72fr 0.6fr;
  min-width: 840px;
}

.admin-system-settings-card {
  display: grid;
  gap: 0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: #1f2937;
  padding: 22px;
}

.admin-system-settings-card > h3 {
  margin: 0 0 18px;
}

.admin-system-settings-card h3 i {
  margin-right: 8px;
}

.admin-system-settings-card h3 i.amber { color: #f59e0b; }
.admin-system-settings-card h3 i.purple { color: #a855f7; }
.admin-system-settings-card h3 i.green { color: #34d399; }
.admin-system-settings-card h3 i.rose { color: #fb7185; }

.admin-settings-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.admin-settings-row:first-of-type {
  border-top: 0;
}

.admin-settings-row > div {
  flex: 1;
  min-width: 0;
}

.admin-settings-row strong,
.admin-settings-row p {
  display: block;
  margin: 0;
}

.admin-settings-row p {
  margin-top: 5px;
  color: #94a3b8;
}

.admin-settings-row label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-settings-row input {
  width: 96px;
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 9px;
  background: #334155;
  color: #fff;
  text-align: center;
}

.admin-system-settings-card[data-system-settings-ai] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-system-settings-card[data-system-settings-ai] h3 {
  grid-column: 1 / -1;
}

.admin-checkin-settings {
  gap: 18px;
}

.admin-checkin-reward-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.admin-checkin-reward-grid article {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 150px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: #172033;
  text-align: center;
  padding: 12px 8px;
}

.admin-checkin-reward-grid article i {
  color: #f59e0b;
  font-size: 27px;
}

.admin-checkin-reward-grid article:nth-child(1) i { color: #fb7185; }
.admin-checkin-reward-grid article:nth-child(2) i { color: #22d3ee; }
.admin-checkin-reward-grid article:nth-child(3) i { color: #a78bfa; }
.admin-checkin-reward-grid article:nth-child(4) i { color: #facc15; }
.admin-checkin-reward-grid article:nth-child(5) i { color: #38bdf8; }
.admin-checkin-reward-grid article:nth-child(6) i { color: #f472b6; }
.admin-checkin-reward-grid article:nth-child(7) i { color: #facc15; }

.admin-checkin-reward-grid article span,
.admin-checkin-reward-grid article em,
.admin-checkin-reward-grid article strong {
  display: block;
}

.admin-checkin-reward-grid article span,
.admin-checkin-reward-grid article em {
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
}

.admin-checkin-reward-grid article strong {
  color: #f472b6;
  font-size: 20px;
}

.admin-checkin-reward-grid article strong span {
  display: inline;
  color: inherit;
  font-size: inherit;
}

.admin-checkin-reward-grid article input[data-checkin-admin-points] {
  width: min(96px, 100%);
  min-height: 38px;
  border: 1px solid rgba(244, 114, 182, 0.7);
  border-radius: 9px;
  background: #0f172a;
  color: #f8fafc;
  font: inherit;
  font-weight: 800;
  text-align: center;
  padding: 6px 8px;
}

.admin-checkin-reward-grid article input[data-checkin-admin-points][hidden] {
  display: none;
}

.admin-checkin-reward-grid article.grand {
  border-color: rgba(234, 179, 8, 0.7);
  background: #3b2d19;
}

.admin-checkin-reward-grid article.grand b {
  position: absolute;
  top: -8px;
  right: -4px;
  border-radius: 999px;
  background: #eab308;
  color: #3b2d19;
  font-size: 11px;
  padding: 3px 8px;
}

.admin-system-table .admin-table-row {
  grid-template-columns: minmax(150px, 1.25fr) minmax(90px, 0.8fr) minmax(90px, 0.8fr) minmax(90px, 0.8fr) minmax(90px, 0.8fr) minmax(180px, 1.2fr);
  min-width: 780px;
}

.admin-monitor-kpis.system article {
  position: relative;
  padding-left: 68px;
}

.admin-monitor-kpis.system .admin-monitor-icon {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.14);
  color: #818cf8;
  font-size: 20px;
}

.admin-monitor-kpis.system .admin-monitor-icon.purple { background: rgba(168, 85, 247, 0.13); color: #c084fc; }
.admin-monitor-kpis.system .admin-monitor-icon.amber { background: rgba(245, 158, 11, 0.13); color: #fbbf24; }
.admin-monitor-kpis.system .admin-monitor-icon.green { background: rgba(16, 185, 129, 0.13); color: #34d399; }

.admin-service-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.admin-service-name > i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.18);
  color: #a78bfa;
  font-size: 16px;
}

.admin-model-table .admin-table-row {
  grid-template-columns: minmax(180px, 1.2fr) repeat(5, minmax(90px, 0.8fr));
  min-width: 760px;
}

.admin-model-balance-table {
  overflow-x: auto;
}

.admin-model-balance-table .admin-table-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding: 16px 20px;
}

.admin-model-balance-table .admin-table-title-row .admin-table-title {
  border: 0;
  padding: 0;
}

.admin-model-balance-table .admin-table-title-row p {
  margin: 5px 0 0;
  color: #94a3b8;
}

.admin-model-balance-table .admin-table-title-row button {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: #be185d;
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
  padding: 0 15px;
}

.admin-model-balance-table .admin-table-row {
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(120px, 0.8fr) minmax(150px, 1fr) minmax(90px, 0.6fr) minmax(260px, 1.6fr);
  min-width: 980px;
}

.admin-system-table,
.admin-model-table,
.admin-points-detail-table,
.admin-cdk-management-table {
  overflow-x: auto;
}

@media (max-width: 1120px) {
  .admin-reference-kpi-grid,
  .admin-cdk-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .admin-checkin-reward-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .admin-reference-page-title,
  .admin-reference-trend-head,
  .admin-settings-card-head,
  .admin-reference-toolbar,
  .admin-settings-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-reference-kpi-grid,
  .admin-cdk-kpi-grid,
  .admin-recharge-tier-grid,
  .admin-system-settings-card[data-system-settings-ai] {
    grid-template-columns: 1fr;
  }

  .admin-reference-kpi-grid article {
    min-height: 128px;
    padding: 18px;
  }

  .admin-reference-toolbar > label {
    min-width: 0;
  }

  .admin-reference-toolbar .admin-reference-segment {
    flex-wrap: wrap;
    margin-left: 0;
  }

  .admin-reference-compensation {
    grid-template-columns: 1fr;
  }

  .admin-reference-line-chart {
    min-height: 260px;
  }

  .admin-reference-chart-bars {
    gap: 8px;
    padding: 0 8px;
  }

  .admin-checkin-reward-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  :root {
    --h5-phone-width: 430px;
    --h5-chat-font: 17px;
    --h5-chat-user-font: 16px;
    --h5-chat-line: 1.7;
  }

  .mobile-product-page {
    width: min(100% - 20px, 520px);
    padding-top: 10px;
  }

  .mobile-product-hero,
  .mobile-screen-grid,
  .customer-test-console {
    grid-template-columns: 1fr;
  }

  .mobile-product-hero {
    min-height: auto;
    gap: 18px;
  }

  .app-showcase {
    order: -1;
    width: min(100%, 390px);
    min-height: 748px;
    margin: 0 auto;
  }

  .mobile-hero-copy {
    gap: 13px;
  }

  .mobile-hero-copy h1 {
    font-size: clamp(31px, 9.5vw, 42px);
  }

  .mobile-hero-copy p {
    font-size: 14px;
    line-height: 1.62;
  }

  .screen-phone {
    width: min(100%, var(--h5-phone-width));
    margin: 0 auto;
  }
}

@media (max-width: 430px) {
  :root {
    --h5-chat-font: 17px;
    --h5-chat-user-font: 16px;
    --h5-chat-line: 1.68;
  }

  .mobile-product-topbar {
    gap: 7px;
    min-height: 52px;
    margin-bottom: 10px;
  }

  .mobile-product-topbar .delivery-brand {
    flex: 0 0 104px;
    gap: 7px;
  }

  .mobile-product-topbar .delivery-brand-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .mobile-product-topbar .delivery-brand strong {
    font-size: 14px;
  }

  .mobile-product-topbar .delivery-brand em {
    font-size: 9px;
  }

  .mobile-product-topbar nav {
    flex: 1 1 auto;
    gap: 3px;
    justify-content: space-between;
    overflow: visible;
  }

  .mobile-product-topbar nav a {
    min-width: 0;
    min-height: 30px;
    padding: 6px 7px;
    font-size: 11px;
  }

  .app-showcase,
  .screen-phone {
    border-radius: 30px;
    padding: 14px;
  }

  .app-showcase {
    min-height: 724px;
  }

  .app-profile-row h2 {
    font-size: 18px;
  }

  .app-story-card {
    min-height: 150px;
  }

  .screen-phone {
    min-height: 590px;
  }
}

/* 2026-07-10：客户参考图单一常驻侧栏。禁止折叠、双侧栏切换和路由滚动。 */
html:has(.admin-ops-page),
body:has(> .admin-ops-page) {
  background-color: #0f172a;
}

.admin-ops-page {
  min-height: 100vh;
  background: #0f172a;
}

.admin-enterprise-sidebar[data-admin-reference-sidebar] {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 252px;
  min-width: 252px;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-right: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0;
  background: #1e293b;
  box-shadow: none;
  padding: 0;
}

.admin-sidebar-brand {
  display: flex;
  flex: 0 0 62px;
  align-items: center;
  gap: 11px;
  min-width: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  color: #f8fafc;
  padding: 0 18px;
}

.admin-sidebar-brand strong {
  min-width: 0;
  overflow: hidden;
  color: #f8fafc;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar-nav {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px 12px 8px;
  scrollbar-color: rgba(148, 163, 184, 0.34) transparent;
  scrollbar-width: thin;
}

.admin-menu-section {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.admin-menu-section-title,
.admin-menu-link,
.admin-sidebar-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  color: #d7deea;
  font-size: 14px;
  font-weight: 560;
  line-height: 1.3;
  text-decoration: none;
}

.admin-menu-section-title,
.admin-menu-link {
  padding: 8px 12px;
}

.admin-menu-section-title {
  color: #eef2f8;
  cursor: default;
}

.admin-menu-link {
  cursor: pointer;
}

.admin-menu-link.is-child {
  min-height: 34px;
  color: #aebbd0;
  padding: 7px 12px 7px 28px;
}

.admin-menu-icon {
  flex: 0 0 18px;
  width: 18px;
  color: #cbd5e1;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.admin-menu-chevron {
  margin-left: auto;
  color: #aeb9c9;
  font-size: 17px;
}

.admin-menu-link span,
.admin-menu-section-title span,
.admin-sidebar-footer span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-menu-link:hover,
.admin-menu-link:focus-visible {
  background: rgba(99, 102, 241, 0.13);
  color: #fff;
  outline: 0;
}

.admin-menu-link.active {
  background: linear-gradient(135deg, #7061f3 0%, #a44ef5 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(112, 81, 238, 0.26);
  font-weight: 680;
}

.admin-menu-link.active .admin-menu-icon,
.admin-menu-link:hover .admin-menu-icon,
.admin-menu-link:focus-visible .admin-menu-icon {
  color: currentColor;
}

.admin-sidebar-footer {
  flex: 0 0 48px;
  margin: 0 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0;
  padding: 6px 12px 0;
}

.admin-sidebar-footer:hover,
.admin-sidebar-footer:focus-visible {
  color: #fff;
  outline: 0;
}

.admin-notify-button {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.admin-notify-button i {
  font-size: 18px;
  line-height: 1;
}

.admin-ops-page .admin-icon-button {
  border-color: rgba(190, 24, 93, 0.82);
  background: #be185d;
  color: #fff;
}

.admin-ops-side {
  display: none !important;
}

.admin-ops-page.admin-detail-mode .admin-ops-hero,
.admin-ops-page.admin-detail-mode .admin-acceptance-drawer,
.admin-ops-page.admin-detail-mode .admin-enterprise-main {
  display: none !important;
}

.admin-ops-page.admin-detail-mode .admin-enterprise-shell {
  display: block;
  width: 0;
  height: 0;
  min-height: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.admin-ops-page.admin-detail-mode .admin-ops-layout,
.admin-ops-layout {
  display: block;
  width: calc(100% - 252px);
  max-width: none;
  min-height: 100vh;
  margin: 0 0 0 252px;
  background: #0f172a;
}

.admin-ops-page.admin-detail-mode .admin-ops-main,
.admin-ops-main {
  display: grid;
  width: 100%;
  max-width: none;
  min-width: 0;
  gap: 18px;
  margin: 0;
  padding: 92px 28px 42px;
}

.admin-ops-main > .admin-ops-panel {
  display: none;
}

.admin-ops-main > #ops-control-preview,
.admin-ops-main > .admin-ops-panel.is-route-active,
.admin-ops-main > .admin-ops-panel:target {
  display: grid;
}

.admin-ops-main:has(> .admin-ops-panel:target) > #ops-control-preview:not(:target) {
  display: none;
}

.admin-ops-main > .admin-ops-panel[hidden] {
  display: none !important;
}

[data-admin-role-surface][hidden] {
  display: none !important;
}

@media (min-width: 981px) {
  .admin-enterprise-sidebar[data-admin-reference-sidebar] {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 48;
  }

  .admin-ops-topbar[data-admin-desktop-topbar] {
    position: fixed;
    top: 0;
    right: 0;
    left: 252px;
    z-index: 44;
  }
}

@media (max-width: 980px) {
  .admin-ops-page {
    padding: 0 0 28px;
  }

  .admin-ops-topbar[data-admin-desktop-topbar] {
    width: auto;
    margin: 10px;
  }

  .admin-ops-page.admin-detail-mode .admin-enterprise-shell {
    display: block;
    width: 100%;
    height: auto;
  }

  .admin-enterprise-sidebar[data-admin-reference-sidebar] {
    position: static;
    width: 100%;
    min-width: 0;
    height: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  }

  .admin-sidebar-nav {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .admin-ops-page.admin-detail-mode .admin-ops-layout,
  .admin-ops-layout {
    width: 100%;
    min-height: 0;
    margin: 0;
  }

  .admin-ops-page.admin-detail-mode .admin-ops-main,
  .admin-ops-main {
    padding: 16px 10px 28px;
  }
}

/* 客户素材同视口复核后的最终覆盖：保持 981px 以上桌面信息密度。 */
@media (min-width: 981px) {
  .admin-reference-kpi-grid,
  .admin-user-kpis,
  .admin-monitor-kpis,
  .admin-promotion-reference-kpis,
  .admin-cdk-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-system-role-gallery { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .admin-promotion-copy-grid,
  .admin-recharge-tier-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-checkin-reward-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

.admin-sidebar-brand > i {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #6d5dfc, #a855f7);
  color: #fff;
  font-size: 19px;
}

.admin-ops-page .admin-icon-button,
.admin-ops-page .admin-toolbar-actions button,
.admin-ops-page .admin-reference-page-title > button {
  white-space: nowrap;
}

.admin-ops-page .admin-icon-button {
  min-width: 62px;
  padding-right: 10px;
  padding-left: 10px;
}

.admin-system-role-modal-card input,
.admin-system-role-modal-card select,
.admin-system-role-modal-card textarea,
.admin-promotion-rule-card input {
  border-color: #536176;
  background: #3a465a;
  color: #f8fafc;
}

.admin-system-role-modal-card input[type="file"] {
  padding: 10px 12px;
}

.admin-image-review-table .admin-table-row,
.admin-user-table .admin-table-row,
.admin-recharge-query-table .admin-table-row,
.admin-points-detail-table .admin-table-row,
.admin-cdk-management-table .admin-table-row,
.admin-promotion-video-table .admin-table-row {
  min-width: 0;
  column-gap: 8px;
  font-size: 12px;
}

.admin-image-review-table .admin-table-row {
  grid-template-columns: 64px 0.9fr 1fr 0.82fr 0.74fr 0.95fr 74px;
}

.admin-user-table .admin-table-row {
  grid-template-columns: 1.15fr 0.72fr 0.58fr 0.75fr 0.84fr 0.66fr 88px;
}

.admin-recharge-query-table .admin-table-row {
  grid-template-columns: 1.15fr 0.95fr 0.8fr 0.75fr 0.82fr 0.95fr 0.65fr;
}

.admin-points-detail-table .admin-table-row {
  grid-template-columns: 0.64fr 0.88fr 0.64fr 0.7fr 0.72fr 1.18fr 0.86fr 56px;
}

.admin-cdk-management-table .admin-table-row {
  grid-template-columns: 1.2fr 0.5fr 0.7fr 1.16fr 0.78fr 0.6fr 62px;
}

.admin-cdk-code-cell {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-cdk-code-cell > span,
.admin-cdk-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.admin-cdk-code-cell strong {
  width: fit-content;
  border-radius: 5px;
  background: #334155;
  color: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  padding: 5px 8px;
}

.admin-cdk-code-cell small {
  color: #64748b;
  font-size: 10px;
}

.admin-cdk-code-cell button,
.admin-cdk-actions button {
  display: grid;
  place-items: center;
  width: 27px;
  min-height: 27px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  padding: 0;
}

.admin-cdk-code-cell button:hover,
.admin-cdk-actions button:hover,
.admin-cdk-code-cell button:focus-visible,
.admin-cdk-actions button:focus-visible {
  background: rgba(139, 92, 246, 0.14);
  color: #a78bfa;
  outline: 2px solid rgba(139, 92, 246, 0.35);
}

.admin-cdk-progress {
  display: grid;
  gap: 7px;
}

.admin-cdk-progress > span b { color: #7c3aed; }

.admin-cdk-progress > i {
  display: block;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #334155;
}

.admin-cdk-progress > i b {
  display: block;
  width: 24%;
  height: 100%;
  border-radius: inherit;
  background: #8b5cf6;
}

.admin-promotion-video-table .admin-table-row {
  grid-template-columns: 0.62fr 0.78fr 1.15fr 0.75fr 0.66fr 0.58fr 0.9fr 74px;
}

.admin-promotion-video-table small { display: block; margin-top: 4px; color: #94a3b8; }
.admin-promotion-video-table em { width: fit-content; border-radius: 5px; background: rgba(236,72,153,.18); color: #f9a8d4; font-style: normal; padding: 3px 6px; }
.admin-promotion-video-table em.orange { background: rgba(249,115,22,.2); color: #fdba74; }
.admin-promotion-video-table em.amber { background: rgba(245,158,11,.2); color: #fcd34d; }
.admin-promotion-video-table button { min-height: 31px; border: 0; border-radius: 7px; background: rgba(34,197,94,.14); color: #4ade80; font-size: 11px; padding: 4px 8px; }
.admin-promotion-video-table button.danger { background: rgba(239,68,68,.14); color: #f87171; }

#trial-user-ops-preview [data-trial-user-ops-summary],
#trial-user-ops-preview [data-account-session-status],
#trial-user-ops-preview [data-user-auth-preflight-status] {
  display: none;
}

.admin-user-kpis article {
  position: relative;
  padding-left: 70px;
}

.admin-user-kpis article > i,
.admin-monitor-kpis article > i {
  position: absolute;
  top: 20px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef2ff;
  color: #6366f1;
  font-size: 21px;
}

.admin-user-kpis article > i.amber { background: #fff7dc; color: #f59e0b; }
.admin-user-kpis article > i.green { background: #dcfce7; color: #22c55e; }
.admin-user-kpis article > i.rose { background: #ffe4e6; color: #ef4444; }

.admin-monitor-kpis article::before { content: none !important; }
.admin-monitor-kpis article > i { background: rgba(99,102,241,.18); color: #a5b4fc; }
.admin-monitor-kpis article:nth-child(2) > i { background: rgba(14,165,233,.18); color: #38bdf8; }
.admin-monitor-kpis article:nth-child(3) > i { background: rgba(245,158,11,.18); color: #fbbf24; }
.admin-monitor-kpis article:nth-child(4) > i { background: rgba(244,63,94,.18); color: #fb7185; }

.admin-monitor-chart .admin-hour-chart b {
  background: #7c83f7;
  box-shadow: none;
}

.admin-checkin-reward-grid article {
  min-height: 128px;
}

.admin-reference-kpi-grid article {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px 12px;
  min-height: 170px;
  padding: 18px 16px;
}

.admin-reference-kpi-grid article > i {
  grid-row: auto;
}

.admin-reference-kpi-grid strong,
.admin-reference-kpi-grid em {
  grid-column: 1 / -1;
}

.admin-reference-kpi-grid strong {
  white-space: nowrap;
}

.admin-profile-menu summary {
  min-width: 96px;
}

.admin-community-role-toolbar {
  order: initial;
}

.admin-panel-head[data-admin-role-surface="community"] .admin-action-row {
  display: none;
}

.admin-system-role-card-body footer {
  gap: 4px;
}

.admin-system-role-card-body footer button {
  min-width: 28px;
  min-height: 30px;
  padding: 4px;
}

.admin-system-role-card-body footer button:first-child {
  width: 58px;
  font-size: 11px;
}

.admin-user-table .admin-table-row {
  grid-template-columns: 1.1fr 0.68fr 0.55fr 0.7fr 0.8fr 0.62fr 104px;
}

.admin-user-table .admin-row-action-group {
  flex-wrap: nowrap;
  gap: 4px;
}

.admin-user-table .admin-row-action-group button {
  min-width: 28px;
  min-height: 28px;
  padding: 4px;
}

.admin-system-role-modal-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-system-role-modal-card .admin-system-role-layout { order: 1; }
.admin-system-role-modal-card .admin-system-role-advanced-switch { order: 2; }
.admin-system-role-modal-card .admin-action-row { order: 3; justify-content: flex-end; }
.admin-system-role-modal-card > p { order: 4; display: none; }
.admin-system-role-modal-card:has(.admin-system-role-advanced-switch[open]) .admin-system-role-advanced-switch { order: 0; }

.admin-system-role-advanced-switch > summary {
  width: fit-content;
  cursor: pointer;
  color: #a5b4fc;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.admin-system-role-advanced-switch > summary::-webkit-details-marker { display: none; }
.admin-system-role-advanced-switch .admin-system-role-steps { margin-top: 12px; }

.admin-system-role-modal-card [data-system-role-builder-panel="basic"] {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-system-role-modal-card [data-system-role-builder-panel="basic"][hidden] { display: none !important; }
.admin-system-role-modal-card [data-system-role-builder-panel="basic"] label:has([data-system-role-draft-name]) { order: 1; }
.admin-system-role-modal-card [data-system-role-builder-panel="basic"] label:has([data-system-role-draft-category]) { order: 2; }
.admin-system-role-modal-card [data-system-role-builder-panel="basic"] label:has([data-system-role-draft-intro]) { order: 3; }
.admin-system-role-modal-card [data-system-role-builder-panel="basic"] label:has([data-system-role-draft-tags]) { order: 4; }
.admin-system-role-modal-card [data-system-role-builder-panel="basic"] .admin-system-role-file { order: 5; }
.admin-system-role-modal-card [data-system-role-builder-panel="basic"] .admin-system-role-age-field { order: 6; }
.admin-system-role-modal-card [data-system-role-builder-panel="basic"] .admin-system-role-scene-field { order: 7; }
.admin-system-role-modal-card .admin-system-role-age-field,
.admin-system-role-modal-card .admin-system-role-scene-field { display: none; }
.admin-system-role-modal-card:has(.admin-system-role-advanced-switch[open]) .admin-system-role-age-field,
.admin-system-role-modal-card:has(.admin-system-role-advanced-switch[open]) .admin-system-role-scene-field { display: grid; }

.admin-system-role-file {
  position: relative;
  min-height: 82px;
  cursor: pointer;
  padding-top: 24px;
}

.admin-system-role-file > span {
  position: absolute;
  top: 0;
  left: 0;
}

.admin-system-role-file input {
  position: absolute;
  inset: 24px 0 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.admin-system-role-file b {
  display: grid;
  place-items: center;
  min-height: 58px;
  border: 1px dashed #64748b;
  border-radius: 10px;
  background: #3a465a;
  color: #cbd5e1;
  font-weight: 600;
}

.admin-system-role-modal-card .admin-action-row button:first-child {
  border-color: transparent;
  background: transparent;
  color: #e2e8f0;
}

.admin-panel-head[data-admin-role-surface="community"] { order: -2; }
.admin-community-role-toolbar { order: -1; }

#model-admin-preview .admin-model-table { order: 1; }
#model-admin-preview .admin-config-columns,
#model-admin-preview .admin-cost-control { order: 2; }
#model-admin-preview .admin-boundary-note { order: 3; }

[data-recharge-tier-card] footer > div {
  display: flex;
  gap: 10px;
  align-items: center;
}

[data-recharge-tier-card] footer [data-recharge-tier-edit],
[data-recharge-tier-card] footer [data-recharge-tier-delete] {
  border: 0;
  background: transparent !important;
  color: #94a3b8;
  font-size: 17px;
  padding: 4px;
}

.admin-system-role-modal-card .admin-action-row button:last-child {
  border: 0;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
}

.admin-review-mode-tabs {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: -54px 0 24px auto;
}

.admin-review-mode-tabs button,
.admin-comment-review button {
  border: 1px solid #3a4961;
  border-radius: 10px;
  background: #182338;
  color: #dbe5f4;
  min-height: 40px;
  padding: 0 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin-review-mode-tabs button.active,
.admin-comment-review-filters > button,
.admin-comment-review-card footer button:last-child {
  border-color: #c2185b;
  background: #c2185b;
  color: #fff;
}

.admin-review-mode-tabs span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  font-size: 12px;
}

.admin-comment-review {
  display: grid;
  gap: 16px;
}

.admin-comment-review[hidden] { display: none !important; }

.admin-comment-review-summary,
.admin-comment-review-filters,
.admin-comment-review-batch,
.admin-comment-review-card {
  border: 1px solid #2b3a53;
  border-radius: 14px;
  background: #111c30;
}

.admin-comment-review-summary,
.admin-comment-review-batch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}

.admin-comment-review-summary strong { font-size: 20px; }
.admin-comment-review-summary p { margin: 6px 0 0; color: #9eabc1; }
.admin-comment-review-summary > span { color: #b9c5d8; white-space: nowrap; }

.admin-comment-review-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(170px, .7fr) minmax(260px, 1fr) 140px;
  gap: 14px;
  padding: 16px;
}

.admin-comment-review-filters label { display: grid; gap: 7px; color: #9eabc1; font-size: 13px; }
.admin-comment-review-filters input,
.admin-comment-review-filters select {
  width: 100%; min-height: 42px; border: 1px solid #3a4961; border-radius: 9px;
  background: #0b1324; color: #eef3fb; padding: 0 12px; font: inherit;
}
.admin-comment-review-filters > button { align-self: end; }

.admin-comment-review-batch > div { display: flex; gap: 10px; }
.admin-comment-review-batch button[data-comment-review-batch="delete"],
.admin-comment-review-card footer button[data-comment-review-action="delete"] { border-color: #8b1f3d; background: #8b1f3d; color: #fff; }
.admin-comment-review-batch button[data-comment-review-batch="reject"] { border-color: #8d6b22; color: #ffd978; }

.admin-comment-review-list { display: grid; gap: 12px; }
.admin-comment-review-card { padding: 16px 18px; }
.admin-comment-review-card header { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.admin-comment-review-card header > div { display: grid; gap: 4px; }
.admin-comment-review-card header span { color: #93a1b8; font-size: 13px; }
.admin-comment-review-card header em { border-radius: 999px; padding: 5px 10px; background: #4a3c19; color: #ffd978; font-style: normal; }
.admin-comment-review-card header em.success { background: #123f36; color: #85f0c9; }
.admin-comment-review-card header em.danger { background: #4c2030; color: #ff9fbc; }
.admin-comment-review-body { margin: 14px 0 12px; color: #f3f6fb; font-size: 16px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-comment-review-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-comment-review-meta span { border-radius: 999px; background: #202e45; color: #b7c4d7; padding: 5px 9px; font-size: 12px; }
.admin-comment-review-ai { margin: 12px 0 0; border-left: 3px solid #6e7890; padding-left: 10px; color: #aab6c9; }
.admin-comment-review-card footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.admin-comment-review-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }

@media (max-width: 760px) {
  .admin-review-mode-tabs { margin: 0 0 16px; justify-content: stretch; }
  .admin-review-mode-tabs button { flex: 1; }
  .admin-comment-review-summary,
  .admin-comment-review-batch { align-items: stretch; flex-direction: column; }
  .admin-comment-review-filters { grid-template-columns: 1fr; }
  .admin-comment-review-batch > div { display: grid; grid-template-columns: 1fr 1fr 1fr; width: 100%; }
  .admin-comment-review-batch button { padding: 0 8px; }
  .admin-comment-review-card header { grid-template-columns: auto 1fr; }
  .admin-comment-review-card header > em { grid-column: 2; justify-self: start; }
  .admin-comment-review-card footer { display: grid; grid-template-columns: 1fr 1fr 1fr; }
}

.admin-refund-workflow-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, .22);
}

.runtime-environment-banner {
  position: sticky;
  top: 0;
  z-index: 10000;
  box-sizing: border-box;
  width: 100%;
  border-bottom: 1px solid #f7c948;
  background: #332602;
  color: #fff4bd;
  padding: 9px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  pointer-events: none;
}
.admin-refund-workflow-panel > div:first-child p { margin: 6px 0 14px; color: #9eabc1; }
.admin-refund-workflow-card {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(180px, 1fr) minmax(210px, 1fr) minmax(240px, 1.4fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  margin-top: 10px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 12px;
  background: rgba(15, 23, 42, .58);
}
.admin-refund-workflow-card p { margin: 0; }
.admin-refund-workflow-card .admin-status-line { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .admin-refund-workflow-card { grid-template-columns: 1fr; }
}

/* 2026-07-23 customer journey simplification */
.home-own-role-shelf {
  display: grid;
  gap: 10px;
  margin: 14px 0 4px;
  border: 1px solid rgba(233, 75, 115, 0.28);
  border-radius: 18px;
  background: rgba(20, 21, 29, 0.78);
  padding: 12px;
}

.home-own-role-shelf[hidden],
.role-comment-panel form[hidden],
.role-comment-list[hidden],
.create-step-tabs[hidden] {
  display: none !important;
}

.home-own-role-shelf > header,
.home-own-role-shelf > header > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-own-role-shelf > header {
  justify-content: space-between;
}

.home-own-role-shelf > header > div {
  display: grid;
  gap: 2px;
}

.home-own-role-shelf > header span {
  color: var(--accent-soft);
  font-size: 11px;
  font-weight: 850;
}

.home-own-role-shelf > header strong {
  color: var(--text);
  font-size: 15px;
}

.home-own-role-shelf > header a {
  min-height: 34px;
  border-radius: 999px;
  background: rgba(233, 75, 115, 0.12);
  color: #ffdce6;
  font-size: 12px;
  font-weight: 850;
  padding: 8px 11px;
  text-decoration: none;
}

.home-own-role-list {
  display: grid;
  grid-auto-columns: minmax(142px, 0.72fr);
  grid-auto-flow: column;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.home-own-role-list::-webkit-scrollbar {
  display: none;
}

.home-own-role-list > a {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 7px;
  text-decoration: none;
}

.home-own-role-media,
.chat-role-avatar {
  display: block;
  overflow: hidden;
  background-position: center 28%;
  background-repeat: no-repeat;
  background-size: cover;
}

.home-own-role-media.media-a,
.chat-role-avatar.media-a { background-image: var(--role-cover-a); }
.home-own-role-media.media-b,
.chat-role-avatar.media-b { background-image: var(--role-cover-b); }
.home-own-role-media.media-c,
.chat-role-avatar.media-c { background-image: var(--role-cover-c); }
.home-own-role-media.media-d,
.chat-role-avatar.media-d { background-image: var(--role-cover-d); }
.home-own-role-media.is-custom-upload,
.chat-role-avatar.is-custom-upload {
  background-image:
    linear-gradient(180deg, transparent 42%, rgba(8, 9, 14, 0.32)),
    var(--custom-role-cover);
}

.home-own-role-media {
  width: 50px;
  height: 50px;
  border-radius: 11px;
}

.home-own-role-list > a > span:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.home-own-role-list strong,
.home-own-role-list em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-own-role-list strong {
  font-size: 13px;
}

.home-own-role-list em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.delivery-bottom-nav a.create:not(.active) {
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-weight: 700;
}

.profile-menu-icon {
  overflow: visible;
  background: rgba(233, 75, 115, 0.12);
  color: #ffb5ca;
  font-size: 20px;
}

.profile-menu-icon::before {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.profile-menu-icon.icon-checkin { color: #ffd978; }
.profile-menu-icon.icon-support { color: #91d8ff; }
.profile-menu-icon.icon-settings { color: #c8b5ff; }
.profile-menu-icon.icon-logout { color: #ff9fb8; }

.create-screen[data-create-mode-active="simple"] .create-advanced-field {
  display: none;
}

.novel-chat-route-head {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: 36px 40px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 64px;
  margin: -16px -16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 10, 15, 0.92);
  padding: 10px 12px;
  backdrop-filter: blur(18px);
}

.novel-chat-route-head > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
}

.chat-role-avatar {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background-color: #191a22;
  transition: opacity 160ms ease, filter 160ms ease;
}

.is-role-media-loading {
  filter: saturate(0.82);
  opacity: 0.82;
}

.is-role-media-ready {
  filter: none;
  opacity: 1;
}

.chat-role-heading {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.chat-role-heading strong,
.chat-role-heading em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-chat-status][hidden] {
  display: none !important;
}

.chat-role-heading strong {
  color: var(--text);
  font-size: 15px;
}

.chat-role-heading em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.chat-detail-actions button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  font-size: 16px;
}

.chat-story-details {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  padding: 7px 10px;
}

.chat-story-details summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  color: #76505d;
  cursor: pointer;
  font-size: 11px;
  list-style: none;
}

.chat-story-details summary::-webkit-details-marker {
  display: none;
}

.chat-story-details summary strong {
  color: #9b3156;
  font-size: 12px;
}

.chat-story-details[open] summary i {
  transform: rotate(180deg);
}

.chat-story-details .novel-state-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mobile-product-page[data-active-target="novel-dialogue-preview"] {
  width: min(100%, 760px);
  min-height: 100dvh;
  padding: 0;
}

.mobile-product-page[data-active-target="novel-dialogue-preview"] .mobile-product-topbar,
.mobile-product-page[data-active-target="novel-dialogue-preview"] .mobile-product-hero,
.mobile-product-page[data-active-target="novel-dialogue-preview"] .h5-customer-status-panel,
.mobile-product-page[data-active-target="novel-dialogue-preview"] .app-layer-bottom-nav {
  display: none !important;
}

.mobile-product-page[data-active-target="novel-dialogue-preview"] .mobile-screen-grid {
  display: block;
  margin: 0;
}

.mobile-product-page[data-active-target="novel-dialogue-preview"] .chat-screen,
.mobile-product-page[data-active-target="novel-dialogue-preview"] .chat-screen .screen-phone {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.mobile-product-page[data-active-target="novel-dialogue-preview"] .chat-screen .screen-phone {
  display: flex;
  flex-direction: column;
  overflow: visible;
  padding-bottom: calc(94px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(8, 9, 14, 0.34), rgba(8, 9, 14, 0.82) 72%, #090a0f 100%),
    var(--role-cover-c) center 18% / cover no-repeat,
    #090a0f;
}

.mobile-product-page[data-active-target="novel-dialogue-preview"] .chat-screen .screen-phone.media-a {
  background-image:
    linear-gradient(180deg, rgba(8, 9, 14, 0.34), rgba(8, 9, 14, 0.82) 72%, #090a0f 100%),
    var(--role-cover-a);
}

.mobile-product-page[data-active-target="novel-dialogue-preview"] .chat-screen .screen-phone.media-b {
  background-image:
    linear-gradient(180deg, rgba(8, 9, 14, 0.34), rgba(8, 9, 14, 0.82) 72%, #090a0f 100%),
    var(--role-cover-b);
}

.mobile-product-page[data-active-target="novel-dialogue-preview"] .chat-screen .screen-phone.media-d {
  background-image:
    linear-gradient(180deg, rgba(8, 9, 14, 0.34), rgba(8, 9, 14, 0.82) 72%, #090a0f 100%),
    var(--role-cover-d);
}

.mobile-product-page[data-active-target="novel-dialogue-preview"] .chat-screen .screen-phone.is-custom-upload {
  background-image:
    linear-gradient(180deg, rgba(8, 9, 14, 0.34), rgba(8, 9, 14, 0.82) 72%, #090a0f 100%),
    var(--custom-role-cover);
}

.mobile-product-page[data-active-target="novel-dialogue-preview"] .novel-dialogue-card {
  flex: 1 1 auto;
  min-height: 58dvh;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(12, 13, 19, 0.54);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.mobile-product-page[data-active-target="novel-dialogue-preview"] .novel-dialogue-card p {
  color: rgba(255, 255, 255, 0.92);
}

.mobile-product-page[data-active-target="novel-dialogue-preview"] .novel-assistant-bubble {
  border-left-color: rgba(255, 130, 169, 0.72);
}

.mobile-product-page[data-active-target="novel-dialogue-preview"] .chat-story-details summary,
.mobile-product-page[data-active-target="novel-dialogue-preview"] .chat-story-details summary strong {
  color: rgba(255, 214, 226, 0.86);
}

.mobile-product-page[data-active-target="novel-dialogue-preview"] .chat-story-details .novel-state-strip span,
.mobile-product-page[data-active-target="novel-dialogue-preview"] .relationship-strip {
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.74);
}

.mobile-product-page[data-active-target="novel-dialogue-preview"] .composer {
  position: fixed;
  right: max(12px, calc((100vw - 736px) / 2));
  bottom: max(12px, env(safe-area-inset-bottom));
  left: max(12px, calc((100vw - 736px) / 2));
  z-index: 10;
  margin: 0;
  border: 1px solid rgba(233, 75, 115, 0.32);
  background: rgba(18, 19, 26, 0.96);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

@media (max-width: 520px) {
  .novel-chat-route-head {
    grid-template-columns: 34px 38px minmax(0, 1fr) auto;
    gap: 6px;
  }

  .chat-detail-actions {
    gap: 3px;
  }

  .chat-detail-actions button {
    width: 32px;
    min-width: 32px;
  }

  .chat-maintenance-panel {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .chat-maintenance-panel > button:last-child {
    grid-column: 2;
  }

  .mobile-product-page[data-active-target="novel-dialogue-preview"] .composer {
    right: 10px;
    left: 10px;
  }
}

/* 2026-07-23 marketing rebuild and responsive H5 prototype */
.marketing-home {
  width: min(1240px, calc(100% - 40px));
  padding-bottom: 72px;
}

.marketing-topbar {
  min-height: 76px;
}

.marketing-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  padding: 0 18px;
  text-decoration: none;
}

.marketing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(540px, 1.14fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
  min-height: calc(100dvh - 94px);
  padding: 24px 0 44px;
}

.marketing-hero-copy {
  display: grid;
  justify-items: start;
  gap: 18px;
}

.marketing-hero-copy h1 {
  max-width: 680px;
  margin: 0;
  color: var(--text);
  font-size: clamp(44px, 4.6vw, 62px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

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

.marketing-hero-copy > p:not(.delivery-kicker) {
  max-width: 530px;
  margin: 0;
  color: rgba(232, 225, 230, 0.72);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.7;
}

.marketing-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marketing-proof-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(246, 238, 242, 0.82);
  font-size: 12px;
  font-weight: 750;
  padding: 7px 11px;
}

.marketing-proof-list i {
  color: var(--accent-soft);
  font-size: 15px;
}

.marketing-primary-action {
  min-height: 52px;
  border-radius: 16px;
  padding-inline: 22px;
  font-size: 15px;
}

.marketing-role-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 4%, rgba(233, 75, 115, 0.22), transparent 220px),
    linear-gradient(160deg, rgba(26, 22, 30, 0.96), rgba(10, 11, 17, 0.98));
  box-shadow: 0 34px 96px rgba(0, 0, 0, 0.36);
  padding: 18px;
}

.marketing-stage-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.marketing-stage-head > div {
  display: grid;
  gap: 4px;
}

.marketing-stage-head span {
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 850;
}

.marketing-stage-head strong {
  max-width: 390px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.3;
}

.marketing-stage-head a {
  flex: 0 0 auto;
  color: rgba(255, 225, 233, 0.78);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

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

.marketing-role-grid article {
  min-height: 220px;
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}

.marketing-role-grid article::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 18%, rgba(7, 8, 12, 0.24) 46%, rgba(7, 8, 12, 0.94) 100%);
}

.marketing-role-grid .delivery-role-media {
  position: absolute;
  inset: 0;
  height: 100%;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
}

.marketing-role-grid article > span,
.marketing-role-grid strong,
.marketing-role-grid p,
.marketing-role-grid em {
  position: relative;
  z-index: 2;
}

.marketing-role-grid article > span {
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  background: rgba(8, 9, 14, 0.58);
}

.marketing-role-grid strong {
  margin: 0 0 5px;
  color: #fff;
  font-size: 21px;
  line-height: 1.2;
}

.marketing-role-grid p {
  min-height: 0;
  margin: 0 0 22px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  display: -webkit-box;
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.marketing-role-grid em {
  position: absolute;
  right: 12px;
  bottom: 12px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.marketing-role-grid a {
  position: absolute;
  inset: 0;
  z-index: 4;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: transparent;
  text-indent: -9999px;
}

.marketing-role-unavailable {
  grid-column: 1 / -1;
  aspect-ratio: auto !important;
  min-height: 220px !important;
  align-content: center;
  justify-content: center !important;
  text-align: center;
}

.marketing-role-unavailable::after {
  display: none;
}

.marketing-role-unavailable strong,
.marketing-role-unavailable p,
.marketing-role-unavailable a {
  position: static;
}

.marketing-role-unavailable a {
  display: inline-flex;
  width: max-content;
  margin: 12px auto 0;
  padding: 10px 14px;
  background: var(--pink);
  color: #fff;
  text-indent: 0;
}

.marketing-journey {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.55fr);
  gap: 30px 72px;
  align-items: start;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 54px;
}

.marketing-journey header {
  display: grid;
  gap: 10px;
}

.marketing-journey h2 {
  max-width: 360px;
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
}

.marketing-journey ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.marketing-journey li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
}

.marketing-journey li:first-child {
  border-top: 0;
  padding-top: 0;
}

.marketing-journey li > span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  padding-top: 4px;
}

.marketing-journey li div {
  display: grid;
  gap: 7px;
}

.marketing-journey li strong {
  color: var(--text);
  font-size: 23px;
}

.marketing-journey li p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.marketing-secondary-action {
  grid-column: 2;
  width: max-content;
  margin-top: -14px;
}

.app-desktop-nav {
  display: none;
}

.h5-customer-status-panel {
  display: none !important;
}

.tone-test-panel[hidden],
.access-gate-panel[hidden],
.context-memory-panel[hidden] {
  display: none !important;
}

.catalog-titlebar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.catalog-titlebar h1 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.15;
}

.catalog-titlebar a {
  color: rgba(255, 220, 230, 0.78);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.catalog-title-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-title-actions button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 229, 236, 0.82);
  cursor: pointer;
  font: inherit;
  font-size: 17px;
}

.catalog-title-actions button:hover,
.catalog-title-actions button:focus-visible {
  border-color: rgba(233, 75, 115, 0.54);
  background: rgba(233, 75, 115, 0.14);
  color: #fff;
  outline: 2px solid rgba(255, 183, 203, 0.72);
  outline-offset: 2px;
}

.catalog-title-actions button[aria-busy="true"] i {
  animation: role-catalog-refresh-spin 720ms linear infinite;
}

@keyframes role-catalog-refresh-spin {
  to { transform: rotate(360deg); }
}

.embedded-role-grid article[data-role-origin="owned"] {
  border-color: rgba(255, 160, 190, 0.52);
  box-shadow: 0 16px 40px rgba(188, 41, 89, 0.2);
}

.embedded-role-grid article[data-role-origin="owned"] > span,
.embedded-role-grid article[data-role-origin="community"] > span {
  border-color: rgba(255, 174, 198, 0.5);
  background: rgba(48, 12, 28, 0.86);
  color: #ffe3eb;
}

.my-role-sync-status:empty,
.create-submit-status:empty {
  display: none;
}

.role-more-filters {
  display: grid;
  min-width: 0;
}

.role-more-filters summary {
  width: max-content;
  color: rgba(247, 243, 245, 0.66);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  list-style: none;
  padding: 3px 2px;
}

.role-more-filters summary::-webkit-details-marker {
  display: none;
}

.role-more-filters[open] summary {
  color: var(--accent-soft);
}

.role-more-filters .delivery-chip-row {
  margin-top: 6px !important;
}

.chat-list-more {
  position: relative;
}

.chat-list-more summary {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  font-size: 20px;
  list-style: none;
}

.chat-list-more summary::-webkit-details-marker {
  display: none;
}

.chat-list-more > div {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  display: grid;
  width: 146px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(15, 16, 23, 0.98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

.chat-list-more button {
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  padding: 10px 14px;
}

.chat-list-status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.chat-list-status:empty {
  display: none;
}

.mobile-login-lead {
  font-size: 14px;
}

.login-quiet-status {
  min-height: 0;
  margin: 0;
  color: rgba(232, 225, 230, 0.56);
  font-size: 11px;
  line-height: 1.5;
}

.auth-help-details {
  color: var(--muted);
  font-size: 12px;
}

.auth-help-details summary {
  width: max-content;
  cursor: pointer;
  color: rgba(255, 220, 230, 0.7);
  font-weight: 800;
}

.auth-help-details p {
  margin: 8px 0 0;
  line-height: 1.6;
}

.create-intro-copy {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.profile-avatar {
  background: linear-gradient(145deg, rgba(233, 75, 115, 0.24), rgba(35, 24, 39, 0.94));
}

.profile-avatar i {
  color: rgba(255, 225, 234, 0.82);
  font-size: 30px;
}

.profile-avatar.is-custom-upload i {
  display: none;
}

.profile-avatar-image {
  color: inherit;
  font-size: inherit;
}

.profile-persona-summary:empty {
  display: none;
}

.profile-persona-summary:not(:has(span:not([hidden]))) {
  display: none;
}

.profile-identity-card > div {
  grid-template-columns: 70px minmax(0, 1fr) auto;
  justify-items: start;
  text-align: left;
}

.profile-identity-card .profile-avatar {
  grid-column: 1;
  grid-row: 1 / span 5;
}

.profile-identity-card [data-account-display-name],
.profile-identity-card [data-account-profile-meta],
.profile-identity-card .profile-persona-summary,
.profile-identity-card [data-profile-bio-summary],
.profile-identity-card [data-profile-review-summary] {
  grid-column: 2;
}

.profile-identity-card .profile-edit-open {
  grid-column: 3;
  grid-row: 1 / span 3;
  align-self: center;
}

.my-role-empty-state [data-my-role-account-hint],
.my-role-empty-actions button {
  display: none;
}

@media (max-width: 899px) {
  .marketing-home {
    width: min(100% - 28px, 720px);
  }

  .marketing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 42px 0 54px;
  }

  .marketing-hero-copy {
    max-width: 680px;
  }

  .marketing-role-stage {
    width: 100%;
  }

  .marketing-journey {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .marketing-secondary-action {
    grid-column: 1;
    margin-top: 0;
  }

  .mobile-product-page.is-authenticated {
    width: min(100% - 20px, 840px);
    padding-top: 10px;
  }

  .mobile-product-topbar {
    display: none;
  }

  .app-showcase {
    width: 100%;
    min-height: auto;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .app-showcase::before {
    display: none;
  }

  .role-catalog-controls {
    top: 0;
    border-radius: 18px;
    padding: 4px 0 8px;
  }

  .app-showcase .embedded-role-grid {
    margin-top: 10px;
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .mobile-screen-grid {
    margin-top: 0;
  }

  .app-layer-bottom-nav {
    width: min(calc(100% - 20px), 620px);
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 599px) {
  .marketing-home {
    width: min(100% - 24px, 430px);
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: 44px;
  }

  .marketing-topbar {
    min-height: 62px;
  }

  .marketing-topbar .delivery-brand em {
    display: none;
  }

  .marketing-hero {
    gap: 38px;
    padding: 34px 0 48px;
  }

  .marketing-hero-copy {
    gap: 18px;
  }

  .marketing-hero-copy h1 {
    font-size: clamp(38px, 11.5vw, 52px);
  }

  .marketing-hero-copy h1 span {
    display: inline;
  }

  .marketing-hero-copy h1 span + span::before {
    content: "，";
  }

  .marketing-proof-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .marketing-proof-list li {
    width: max-content;
  }

  .marketing-role-stage {
    border-radius: 24px;
    padding: 12px;
  }

  .marketing-stage-head {
    align-items: start;
    margin-bottom: 12px;
  }

  .marketing-stage-head strong {
    font-size: 17px;
  }

  .marketing-role-grid {
    gap: 9px;
  }

  .marketing-role-grid article {
    min-height: 238px;
    aspect-ratio: 0.76;
    border-radius: 16px;
    padding: 10px;
  }

  .marketing-role-grid strong {
    font-size: 17px;
  }

  .marketing-role-grid p {
    margin-bottom: 20px;
    font-size: 11px;
  }

  .marketing-journey {
    padding-top: 42px;
  }

  .marketing-journey li {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }

  .mobile-product-page:not(.is-authenticated) {
    width: 100%;
    min-height: 100svh;
    min-height: 100dvh;
    padding: max(14px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  }

  .mobile-login-wall {
    width: 100%;
  }

  .mobile-login-brand {
    margin-bottom: 12px;
  }

  .mobile-login-card {
    gap: 12px;
    border-radius: 22px;
    padding: 18px;
  }

  .mobile-login-card h1 {
    font-size: 28px;
  }

  .mobile-login-card .trial-login-field {
    gap: 6px;
  }

  .mobile-login-card input {
    min-height: 48px;
    font-size: 16px;
  }

  .mobile-product-page.is-authenticated {
    width: 100%;
    padding: max(10px, env(safe-area-inset-top)) 10px calc(88px + env(safe-area-inset-bottom));
  }

  .catalog-titlebar {
    margin: 2px 2px 10px;
  }

  .catalog-titlebar h1 {
    font-size: 22px;
  }

  .app-showcase .app-search {
    border: 0;
    padding: 0;
    background: transparent;
  }

  .app-showcase .app-search input {
    min-height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 16px;
  }

  .role-filter-panel {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
  }

  .app-showcase .role-filter-panel .delivery-chip-row button {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 12px;
  }

  .embedded-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .embedded-role-grid article {
    min-height: 244px;
    aspect-ratio: 0.7;
    border-radius: 18px;
    padding: 11px;
  }

  .embedded-role-grid strong {
    overflow: hidden;
    margin-bottom: 5px;
    display: -webkit-box;
    font-size: 17px;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .embedded-role-grid p {
    margin-bottom: 22px;
    overflow: hidden;
    display: -webkit-box;
    font-size: 11px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .embedded-role-grid em {
    top: auto;
    right: 11px;
    bottom: 10px;
    max-width: calc(100% - 22px);
    overflow: visible;
    padding: 0;
    background: transparent;
    font-size: 10px;
  }

  .embedded-role-grid article > span {
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    padding: 4px 7px;
    font-size: 10px;
  }

  .home-own-role-shelf {
    margin-top: 10px;
  }

  .chat-message-phone,
  .my-role-phone,
  .profile-screen .screen-phone,
  .create-screen .screen-phone {
    width: 100%;
    min-height: calc(100dvh - 112px);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .profile-screen .screen-section,
  .create-screen .screen-section {
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }

  .chat-message-phone::before,
  .my-role-phone::before,
  .profile-screen .screen-phone::before,
  .create-screen .screen-phone::before {
    display: none;
  }

  .chat-list-screen > .chat-announcement-banner {
    width: 100%;
  }

  .profile-identity-card {
    margin-top: 2px;
    padding: 12px;
  }

  .profile-identity-card > div {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    justify-items: start;
    text-align: left;
  }

  .profile-avatar {
    grid-row: 1 / span 4;
    width: 54px;
    height: 54px;
  }

  .profile-identity-card strong {
    font-size: 18px;
  }

  .profile-persona-summary {
    justify-content: flex-start;
  }

  .profile-edit-open {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    min-height: 34px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .profile-menu-list {
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
  }

  .profile-menu-list a,
  .profile-menu-list button {
    min-height: 58px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: none;
  }

  .profile-menu-list > :last-child {
    border-bottom: 0;
  }

  .my-role-intro-card {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    border-radius: 18px;
    padding: 12px;
  }

  .my-role-intro-card strong {
    font-size: 19px;
  }

  .my-role-intro-card small {
    font-size: 11px;
  }

  .my-role-empty-state {
    padding: 20px 14px;
  }

  .my-role-empty-actions button[data-my-role-refresh],
  .my-role-empty-actions button[data-my-role-login-switch],
  .my-role-empty-state [data-my-role-account-hint] {
    display: none;
  }

  .app-layer-bottom-nav {
    bottom: 0;
    width: 100%;
    max-width: none;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0;
    padding: 8px 8px max(10px, env(safe-area-inset-bottom));
  }

  .app-layer-bottom-nav a {
    min-width: 0;
    min-height: 44px;
    padding: 8px 4px;
    font-size: 11px;
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .mobile-product-page.is-authenticated {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

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

  .embedded-role-grid article {
    min-height: 290px;
  }

  .screen-phone {
    width: 100%;
    max-width: none;
  }
}

@media (min-width: 900px) {
  .mobile-product-page.is-authenticated {
    position: relative;
    width: min(1440px, calc(100% - 32px));
    min-height: 100dvh;
    padding: 22px 22px 48px 206px;
  }

  .mobile-product-topbar,
  .app-layer-bottom-nav {
    display: none !important;
  }

  .app-desktop-nav {
    position: fixed;
    top: 20px;
    bottom: 20px;
    left: max(20px, calc((100vw - 1440px) / 2 + 20px));
    z-index: 30;
    display: flex;
    width: 164px;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background: rgba(12, 13, 19, 0.88);
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
    padding: 14px 10px;
    backdrop-filter: blur(20px);
  }

  .app-desktop-brand {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    color: var(--text);
    padding: 4px;
    text-decoration: none;
  }

  .app-desktop-brand .delivery-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .app-desktop-brand > span:last-child {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .app-desktop-brand strong,
  .app-desktop-brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-desktop-brand strong {
    font-size: 14px;
  }

  .app-desktop-brand small {
    color: var(--muted);
    font-size: 10px;
  }

  .app-desktop-nav > div {
    display: grid;
    gap: 6px;
    margin: auto 0;
  }

  .app-desktop-nav > div a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 44px;
    border-radius: 12px;
    color: rgba(232, 225, 230, 0.68);
    font-size: 13px;
    font-weight: 800;
    padding: 8px 10px;
    text-decoration: none;
  }

  .app-desktop-nav > div a i {
    font-size: 18px;
  }

  .app-desktop-nav > div a.active {
    background: rgba(233, 75, 115, 0.16);
    color: #ffe8ef;
  }

  .mobile-product-hero {
    width: 100%;
  }

  .app-showcase {
    width: 100%;
    min-height: auto;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .app-showcase::before {
    display: none;
  }

  .catalog-titlebar {
    margin-bottom: 16px;
  }

  .catalog-titlebar h1 {
    font-size: 30px;
  }

  .role-catalog-controls {
    top: 14px;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
    gap: 12px;
    align-items: start;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 13, 19, 0.88);
    padding: 10px;
    backdrop-filter: blur(18px);
  }

  .role-filter-system-rows {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: none;
    align-items: center;
  }

  .role-more-filters {
    align-content: center;
  }

  .role-more-filters[open] {
    grid-column: 1 / -1;
  }

  .embedded-role-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
    margin-top: 18px;
    padding-bottom: 0;
  }

  .embedded-role-grid article {
    min-height: 330px;
    aspect-ratio: 0.72;
  }

  .mobile-screen-grid {
    display: block;
    margin-top: 0;
  }

  .screen-phone {
    width: 100%;
    max-width: none;
    min-height: calc(100dvh - 70px);
    margin: 0;
    border-radius: 24px;
  }

  .chat-message-phone {
    max-width: 900px;
  }

  .profile-screen .screen-phone,
  .my-role-cards-screen .screen-phone {
    max-width: 880px;
  }

  .create-screen .screen-phone {
    max-width: 1040px;
  }

  .my-role-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-identity-card {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

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

  .mobile-product-page[data-active-target="novel-dialogue-preview"] {
    width: min(1440px, calc(100% - 32px));
    padding: 22px 22px 48px 206px;
  }

  .mobile-product-page[data-active-target="novel-dialogue-preview"] .app-desktop-nav {
    display: flex !important;
  }

  .mobile-product-page[data-active-target="novel-dialogue-preview"] .chat-screen,
  .mobile-product-page[data-active-target="novel-dialogue-preview"] .chat-screen .screen-phone {
    max-width: 980px;
    min-height: calc(100dvh - 44px);
    border-radius: 24px;
  }

  .mobile-product-page[data-active-target="novel-dialogue-preview"] .composer {
    position: sticky;
    right: auto;
    bottom: 16px;
    left: auto;
    width: 100%;
    margin-top: auto;
  }
}

@media (min-width: 1240px) {
  .embedded-role-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .marketing-home *,
  .mobile-product-page * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* 2026-07-24 cinematic marketing reset */
.marketing-home {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.marketing-cinematic-hero {
  --marketing-role-cover: url("/assets/generated/gpt-image-2-create-light.jpg");
  position: relative;
  isolation: isolate;
  min-height: max(680px, calc(100svh - 56px));
  overflow: hidden;
  background: #08090e;
  color: #fff;
}

.marketing-hero-image {
  position: absolute;
  z-index: -3;
  inset: 0 0 0 36%;
  background-image: var(--marketing-role-cover);
  background-position: center 26%;
  background-size: cover;
  filter: brightness(1.16) saturate(0.92) contrast(1.01);
  transform: scale(1.015);
  transform-origin: 100% 50%;
  transition: background-image 220ms ease, opacity 220ms ease;
}

.marketing-hero-scrim {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, #08090e 0%, rgba(8, 9, 14, 0.98) 28%, rgba(8, 9, 14, 0.4) 53%, rgba(8, 9, 14, 0.02) 100%),
    linear-gradient(0deg, rgba(8, 9, 14, 0.76) 0%, transparent 19%, rgba(8, 9, 14, 0.16) 100%);
}

.marketing-cinematic-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 74%, rgba(214, 25, 91, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 24%);
}

.marketing-cinematic-hero .marketing-topbar {
  position: relative;
  z-index: 5;
  width: min(1320px, calc(100% - 64px));
  min-height: 84px;
  margin: 0 auto;
  border: 0;
  background: transparent;
}

.marketing-cinematic-hero .marketing-login-link {
  min-height: 44px;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(8, 9, 14, 0.34);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.marketing-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: start;
  gap: 19px;
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
  padding-top: clamp(92px, 13vh, 132px);
}

.marketing-hero-content > * {
  max-width: 620px;
}

.marketing-hero-content .delivery-kicker {
  color: #ffbdcf;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.marketing-hero-content h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(46px, 4.35vw, 64px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.marketing-hero-content h1 span {
  display: block;
}

.marketing-hero-whisper {
  position: absolute;
  z-index: 3;
  top: clamp(310px, 42vh, 410px);
  right: max(48px, calc((100vw - 1320px) / 2 + 40px));
  width: min(330px, 24vw);
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 24px 24px 8px 24px;
  background: rgba(247, 243, 240, 0.84);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
  color: #17171b;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.5;
  padding: 15px 18px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.marketing-hero-whisper span {
  display: block;
  margin-bottom: 5px;
  color: #a9164c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.marketing-hero-content > p:not(.delivery-kicker) {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
  line-height: 1.7;
}

.marketing-hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 4px;
}

.marketing-primary-action {
  min-height: 52px;
  border-radius: 999px;
  box-shadow: 0 16px 54px rgba(214, 25, 91, 0.28);
  padding-inline: 23px;
}

.marketing-text-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 780;
  text-decoration: none;
}

.marketing-role-switcher {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.6fr);
  align-items: start;
  gap: clamp(28px, 4vw, 54px);
  min-height: 460px;
  background: #0d0e14;
  color: #fff;
  padding: 88px max(32px, calc((100vw - 1240px) / 2)) 96px;
}

.marketing-switcher-copy {
  display: grid;
  gap: 14px;
  padding-top: 6px;
}

.marketing-switcher-copy span {
  color: #ffabc3;
  font-size: 12px;
  font-weight: 900;
}

.marketing-switcher-copy h2 {
  max-width: 370px;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 3.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.marketing-switcher-copy p {
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  line-height: 1.65;
}

.marketing-switcher-copy a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  color: #ffb4c9;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.marketing-role-rail.marketing-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.marketing-role-rail.marketing-role-grid article {
  position: relative;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 0.86;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
  padding: 0;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.marketing-role-rail.marketing-role-grid article::after {
  display: none;
}

.marketing-role-rail.marketing-role-grid article:is(:hover, :focus-within, .is-selected) {
  border-color: rgba(255, 151, 180, 0.72);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.marketing-role-rail a {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  height: 100%;
  color: #fff;
  text-decoration: none;
  text-indent: 0;
  padding: 10px;
}

.marketing-role-thumb {
  --marketing-role-cover: none;
  width: 100%;
  height: auto;
  aspect-ratio: 0.92;
  border-radius: 17px;
  background: #181922 center / cover no-repeat;
  background-image: var(--marketing-role-cover);
}

.marketing-role-thumb-copy {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 0 4px 5px;
}

.marketing-role-thumb-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketing-role-thumb-copy em {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketing-role-rail .marketing-role-unavailable {
  grid-column: 1 / -1;
  min-height: 70px !important;
  border-style: dashed !important;
  text-align: left;
}

.marketing-story {
  background: #f3efe9;
  color: #17171b;
  padding: 118px max(28px, calc((100vw - 1240px) / 2)) 132px;
}

.marketing-story-intro {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto 74px;
  text-align: center;
}

.marketing-story-intro .delivery-kicker {
  color: #a9164c;
}

.marketing-story-intro h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.marketing-story-intro > p:not(.delivery-kicker) {
  max-width: 620px;
  margin: 0;
  color: rgba(23, 23, 27, 0.65);
  font-size: 17px;
  line-height: 1.7;
}

.marketing-story-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  align-items: stretch;
  min-height: 520px;
  overflow: hidden;
  border-radius: 38px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(32, 22, 28, 0.09);
}

.marketing-story-panel + .marketing-story-panel {
  margin-top: 28px;
}

.marketing-story-panel > div:not(.marketing-story-visual, .marketing-dialogue-moment) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(38px, 6vw, 76px);
}

.marketing-story-panel > div > span {
  color: #aa164d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.marketing-story-panel h3 {
  max-width: 520px;
  margin: 17px 0 20px;
  font-size: clamp(34px, 3.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.marketing-story-panel p {
  max-width: 520px;
  margin: 0;
  color: rgba(23, 23, 27, 0.62);
  font-size: 16px;
  line-height: 1.75;
}

.marketing-story-panel a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 30px;
  color: #84123c;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.marketing-story-visual {
  --marketing-role-cover: none;
  min-height: 420px;
  background: #17171b center 18% / cover no-repeat;
  background-image:
    linear-gradient(180deg, transparent 62%, rgba(12, 12, 15, 0.2)),
    var(--marketing-role-cover);
}

.story-chat {
  grid-template-columns: minmax(380px, 0.9fr) minmax(0, 1.1fr);
  background: #19151c;
  color: #fff;
}

.story-chat > div:not(.marketing-dialogue-moment) {
  order: 1;
}

.story-chat > div > span {
  color: #ffabc3;
}

.story-chat p {
  color: rgba(255, 255, 255, 0.62);
}

.story-chat a {
  color: #ffb4c9;
}

.marketing-dialogue-moment {
  order: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  min-height: 420px;
  background:
    radial-gradient(circle at 76% 18%, rgba(242, 70, 124, 0.23), transparent 34%),
    linear-gradient(135deg, #341628, #18131c);
  padding: clamp(42px, 6vw, 78px);
}

.marketing-dialogue-moment i {
  color: #ff9bb8;
  font-size: 38px;
}

.marketing-dialogue-moment blockquote {
  max-width: 600px;
  margin: 0;
  font-size: clamp(30px, 3.2vw, 47px);
  font-weight: 850;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.marketing-dialogue-moment span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 800;
}

.marketing-final-cta {
  display: grid;
  justify-items: center;
  gap: 20px;
  min-height: 520px;
  place-content: center;
  background:
    radial-gradient(circle at 50% 120%, rgba(232, 52, 112, 0.36), transparent 46%),
    #090a0f;
  color: #fff;
  text-align: center;
  padding: 84px 24px;
}

.marketing-final-cta p {
  margin: 0;
  color: #ffabc3;
  font-size: 13px;
  font-weight: 900;
}

.marketing-final-cta h2 {
  margin: 0;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.marketing-final-cta a {
  min-height: 54px;
  border-radius: 999px;
  padding-inline: 28px;
}

@media (max-width: 899px) {
  .marketing-cinematic-hero {
    min-height: 900px;
  }

  .marketing-hero-image {
    inset: 0;
    background-position: 62% 16%;
    opacity: 0.86;
    filter: brightness(1.3) saturate(0.94) contrast(1);
  }

  .marketing-hero-scrim {
    background:
      linear-gradient(180deg, rgba(8, 9, 14, 0.1), rgba(8, 9, 14, 0.16) 34%, rgba(8, 9, 14, 0.76) 60%, #08090e 84%),
      linear-gradient(90deg, rgba(8, 9, 14, 0.92) 0%, rgba(8, 9, 14, 0.36) 34%, transparent 74%);
  }

  .marketing-cinematic-hero .marketing-topbar,
  .marketing-hero-content {
    width: min(100% - 36px, 760px);
  }

  .marketing-hero-content {
    padding-top: 400px;
  }

  .marketing-hero-content h1 {
    max-width: 680px;
    font-size: clamp(48px, 9vw, 68px);
  }

  .marketing-hero-whisper {
    top: 150px;
    right: 24px;
    width: min(330px, calc(100% - 48px));
  }

  .marketing-role-switcher {
    position: relative;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 72px 24px 78px;
  }

  .marketing-switcher-copy {
    max-width: 620px;
  }

  .marketing-role-rail.marketing-role-grid article {
    min-width: 0;
    min-height: 0;
    aspect-ratio: 0.78;
  }

  .marketing-story {
    padding: 88px 20px 96px;
  }

  .marketing-story-panel,
  .story-chat {
    grid-template-columns: 1fr;
  }

  .story-chat > div:not(.marketing-dialogue-moment) {
    order: 2;
  }

  .marketing-dialogue-moment {
    order: 1;
  }
}

@media (max-width: 599px) {
  .marketing-cinematic-hero {
    min-height: 820px;
  }

  .marketing-cinematic-hero .marketing-topbar {
    width: calc(100% - 28px);
    min-height: 68px;
  }

  .marketing-cinematic-hero .delivery-brand em {
    display: none;
  }

  .marketing-cinematic-hero .marketing-login-link {
    min-height: 40px;
    padding-inline: 13px;
  }

  .marketing-hero-content {
    width: calc(100% - 32px);
    gap: 15px;
    padding-top: 350px;
  }

  .marketing-hero-content h1 {
    font-size: clamp(40px, 11.5vw, 53px);
    line-height: 1.01;
  }

  .marketing-hero-whisper {
    top: 96px;
    right: 14px;
    width: min(272px, calc(100% - 28px));
    border-radius: 20px 20px 7px 20px;
    font-size: 13px;
    padding: 12px 14px;
  }

  .marketing-hero-content > p:not(.delivery-kicker) {
    font-size: 15px;
    line-height: 1.62;
  }

  .marketing-hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .marketing-role-switcher {
    padding: 60px 16px 68px;
  }

  .marketing-role-rail.marketing-role-grid {
    grid-auto-columns: minmax(230px, 76vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }

  .marketing-role-rail.marketing-role-grid article {
    min-height: 330px;
    scroll-snap-align: start;
  }

  .marketing-role-rail a {
    gap: 10px;
    padding: 9px;
  }

  .marketing-role-thumb {
    width: 100%;
    height: auto;
    border-radius: 16px;
  }

  .marketing-story-intro {
    margin-bottom: 46px;
  }

  .marketing-story-intro h2 {
    font-size: 40px;
  }

  .marketing-story-panel {
    min-height: 0;
    border-radius: 27px;
  }

  .marketing-story-panel > div:not(.marketing-story-visual, .marketing-dialogue-moment) {
    padding: 34px 26px 40px;
  }

  .marketing-story-panel h3 {
    font-size: 33px;
  }

  .marketing-story-visual,
  .marketing-dialogue-moment {
    min-height: 360px;
  }

  .marketing-dialogue-moment {
    padding: 36px 26px;
  }

  .marketing-dialogue-moment blockquote {
    font-size: 31px;
  }

  .marketing-final-cta {
    min-height: 430px;
  }
}

@media (orientation: landscape) and (max-width: 899px) and (max-height: 520px) {
  .marketing-cinematic-hero {
    min-height: max(360px, 100svh);
  }

  .marketing-hero-image {
    inset: 0 0 0 48%;
    background-position: center 22%;
    opacity: 0.92;
  }

  .marketing-hero-scrim {
    background:
      linear-gradient(90deg, #08090e 0%, rgba(8, 9, 14, 0.98) 39%, rgba(8, 9, 14, 0.36) 64%, rgba(8, 9, 14, 0.02) 100%),
      linear-gradient(0deg, rgba(8, 9, 14, 0.58), transparent 32%);
  }

  .marketing-cinematic-hero .marketing-topbar {
    width: calc(100% - 32px);
    min-height: 56px;
  }

  .marketing-cinematic-hero .delivery-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .marketing-cinematic-hero .delivery-brand em {
    display: none;
  }

  .marketing-cinematic-hero .marketing-login-link {
    min-height: 36px;
    padding-inline: 12px;
  }

  .marketing-hero-content {
    width: calc(100% - 32px);
    gap: 7px;
    padding-top: 7px;
  }

  .marketing-hero-content > * {
    max-width: 48%;
  }

  .marketing-hero-content .delivery-kicker {
    font-size: 10px;
  }

  .marketing-hero-content h1 {
    font-size: clamp(28px, 4.4vw, 34px);
    line-height: 1;
  }

  .marketing-hero-content > p:not(.delivery-kicker) {
    font-size: 12px;
    line-height: 1.4;
  }

  .marketing-hero-actions {
    margin-top: 0;
  }

  .marketing-primary-action {
    min-height: 38px;
    font-size: 12px;
    padding-inline: 16px;
  }

  .marketing-hero-whisper {
    top: auto;
    right: 16px;
    bottom: 16px;
    width: min(290px, 42%);
    border-radius: 18px 18px 6px 18px;
    font-size: 11px;
    padding: 10px 12px;
  }

  .marketing-hero-whisper span {
    margin-bottom: 2px;
    font-size: 9px;
  }

  .mobile-product-page.is-authenticated {
    width: 100%;
    padding: 6px 8px calc(62px + env(safe-area-inset-bottom));
  }

  .catalog-titlebar {
    margin: 0 2px 4px;
  }

  .catalog-titlebar h1 {
    font-size: 18px;
  }

  .role-catalog-controls {
    grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
    align-items: center;
    gap: 6px;
    padding: 3px 0 5px;
  }

  .app-showcase .app-search {
    border-radius: 14px;
    padding: 4px;
  }

  .app-showcase .app-search input {
    min-height: 36px;
    border-radius: 11px;
    font-size: 13px;
  }

  .role-filter-panel {
    border-radius: 14px;
    padding: 4px;
  }

  .role-filter-system-rows {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: none;
    align-items: center;
    gap: 4px;
  }

  .app-showcase .role-filter-panel .delivery-chip-row button {
    min-height: 28px;
    padding: 5px 9px;
  }

  .role-more-filters summary {
    padding: 4px 2px;
  }

  .app-showcase .embedded-role-grid {
    margin-top: 6px;
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }

  .app-layer-bottom-nav {
    bottom: 0;
    padding: 4px;
  }

  .app-layer-bottom-nav a {
    min-height: 38px;
    padding-block: 5px;
  }

  .create-screen .screen-phone,
  .my-role-cards-screen .screen-phone,
  .profile-screen .screen-phone {
    min-height: calc(100dvh - 62px);
    padding: 8px;
  }

  .create-screen .phone-head,
  .my-role-cards-screen .phone-head,
  .profile-screen .phone-head {
    min-height: 32px;
  }

  .create-screen .phone-head strong,
  .my-role-cards-screen .phone-head strong,
  .profile-screen .phone-head strong {
    font-size: 15px;
  }

  .create-preview-hero {
    display: none;
  }

  .create-screen .screen-section,
  .my-role-cards-screen .screen-section,
  .profile-screen .screen-section {
    border-radius: 16px;
    padding: 10px;
  }

  .create-screen .screen-section > h2,
  .create-screen .create-intro-copy {
    display: none;
  }

  .my-role-intro-card {
    display: none;
  }

  .my-role-search {
    margin-top: 0;
  }

  .my-role-search > span {
    display: none;
  }

  .my-role-search input {
    min-height: 36px;
  }

  .my-role-filter-row {
    margin: 6px 0 8px;
  }

  .my-role-filter-row button {
    min-height: 32px;
    padding: 5px 12px;
  }

  .my-role-empty-state {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(132px, 0.34fr);
    gap: 2px 12px;
    align-items: center;
    padding: 10px 12px;
    text-align: left;
  }

  .my-role-empty-state strong,
  .my-role-empty-state p {
    grid-column: 1;
  }

  .my-role-empty-state p {
    margin: 2px 0 0;
  }

  .my-role-empty-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .my-role-empty-state a {
    min-height: 36px;
    padding: 7px 12px;
  }

  .profile-identity-card {
    margin-top: 0;
    padding: 8px;
  }

  .profile-identity-card > div {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 4px 8px;
  }

  .profile-identity-card .profile-avatar {
    width: 48px;
    height: 48px;
  }

  .profile-identity-card strong {
    font-size: 18px;
  }

  .profile-identity-card .profile-edit-open {
    min-height: 32px;
    padding: 5px 9px;
    font-size: 11px;
  }

  .profile-wallet-overview,
  .profile-menu-list a,
  .profile-menu-list button {
    min-height: 50px;
  }
}
