:root {
  --bg: #090c0a;
  --panel: #111711;
  --surface: #1a251f;
  --surface-2: #223129;
  --text: #eef0e2;
  --muted: #9eae9f;
  --border: rgba(255, 255, 255, 0.12);
  --leaf: #3dc75f;
  --gold: #f5a32e;
  --plum: #8561c7;
  --red: #ff5b5b;
  --blue: #6cb7ff;
  --home-media-width: 722px;
  --home-action-rail-width: 68px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(61, 199, 95, 0.16), transparent 34rem),
    linear-gradient(135deg, #090c0a 0%, #0f1f16 45%, #080a09 100%);
  color: var(--text);
}

@media (display-mode: standalone) {
  body {
    background-attachment: fixed;
  }
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 16px;
  border-right: 1px solid var(--border);
  background: rgba(9, 12, 10, 0.82);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.brand-title {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--leaf);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}

.brand-subtitle,
.eyebrow,
.meta,
.pill,
.small {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav button,
.icon-button,
.ghost-button,
.primary-button,
.chip,
.tab-button {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  min-height: 38px;
}

.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 10px;
  text-align: left;
  font-size: 0.94rem;
  font-weight: 850;
}

.nav-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}

.nav-icon-studio {
  position: relative;
  color: var(--leaf);
  font-size: 0;
}

.nav-icon-studio::before {
  content: "";
  width: 19px;
  height: 14px;
  border: 3px solid currentColor;
  border-radius: 4px;
  box-sizing: border-box;
}

.nav-icon-studio::after {
  content: "";
  position: absolute;
  right: 3px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 0;
  border-left: 8px solid currentColor;
}

.nav button.active {
  border-color: rgba(61, 199, 95, 0.45);
  background: rgba(61, 199, 95, 0.16);
  color: var(--leaf);
}

.wallet {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.support-button {
  border-color: rgba(214, 190, 109, 0.42);
  color: var(--gold);
}

.support-button:hover {
  border-color: rgba(214, 190, 109, 0.7);
  background: rgba(214, 190, 109, 0.12);
}

.topbar-wallet {
  display: grid;
  grid-template-columns: repeat(2, minmax(72px, 1fr)) minmax(68px, auto);
  gap: 7px;
  align-items: end;
  padding: 8px;
  font-size: 0.84rem;
}

.topbar-wallet-slot {
  justify-self: end;
  width: min(260px, 100%);
}

.route-home .topbar-wallet-slot {
  width: min(260px, 100%);
}

.route-home .topbar-wallet {
  width: 100%;
  max-width: 260px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 23, 17, 0.78);
}

.wallet-currency {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
}

.wallet-currency span {
  max-width: 100%;
  overflow: hidden;
  color: rgba(233, 237, 223, 0.86);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-pill {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(61, 199, 95, 0.5);
  border-radius: 999px;
  background: rgba(61, 199, 95, 0.12);
  color: var(--leaf);
  font-weight: 900;
  cursor: pointer;
}

.wallet-pill.buds {
  border-color: rgba(174, 128, 255, 0.5);
  background: rgba(174, 128, 255, 0.12);
  color: #d4bcff;
}

.topbar-support {
  justify-self: end;
  align-self: end;
  min-height: 30px;
  padding: 5px 9px;
  font-size: 0.82rem;
}

.route-home .topbar {
  grid-template-columns: minmax(0, 826px) minmax(0, 260px);
  max-width: 1220px;
  justify-content: start;
  margin-inline: auto;
}

.route-home .topbar.no-search {
  display: none;
}

.main-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1220px;
  margin: -4px auto 14px;
}

.main-notice {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
}

@media (max-width: 760px) {
  .search-context-panel {
    grid-template-columns: 1fr;
  }

  .search-result-chips {
    justify-content: flex-start;
  }

  .search-context-panel .compact-button {
    justify-self: start;
  }

  .people-discovery-strip {
    grid-template-columns: 1fr;
  }

  .people-grid {
    grid-template-columns: 1fr;
  }
}

.compact-button {
  min-height: 32px;
  padding: 6px 10px;
}

.balance-row,
.stat-row,
.channel-row,
.toolbar,
.card-footer,
.modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.profile-link-row strong {
  display: block;
  color: var(--text);
  font-size: 1.04rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-link-row .meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.balance-row,
.mini-panel {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.main {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 760px) auto;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto 14px;
  max-width: 1220px;
}

.search {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

input[type="file"].search {
  min-height: 44px;
  height: auto;
  padding: 7px 10px;
  line-height: 1.25;
  cursor: pointer;
  color-scheme: dark;
}

input[type="file"].search::file-selector-button {
  min-height: 30px;
  margin-right: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(61, 199, 95, 0.42);
  border-radius: 8px;
  background: rgba(61, 199, 95, 0.16);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

input[type="file"].search::-webkit-file-upload-button {
  min-height: 30px;
  margin-right: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(61, 199, 95, 0.42);
  border-radius: 8px;
  background: rgba(61, 199, 95, 0.16);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

input[type="file"].search.native-file-input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0.01;
  pointer-events: none;
}

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

.file-picker-button {
  min-height: 38px;
}

.file-picker-name {
  min-width: 0;
  color: var(--muted);
  font-size: 0.84rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-context-panel {
  max-width: 1220px;
  margin: -4px auto 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(61, 199, 95, 0.24);
  border-radius: 8px;
  background: rgba(16, 32, 21, 0.78);
}

.search-context-panel strong {
  display: block;
  color: var(--text);
}

.search-result-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.search-result-chip {
  gap: 6px;
  color: var(--text);
}

.search-result-chip strong {
  color: var(--leaf);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.view {
  max-width: 1220px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  color: var(--leaf);
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.92;
}

h2 {
  font-size: 1.65rem;
}

h3 {
  font-size: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.creator-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.people-page {
  max-width: 1180px;
  margin-inline: auto;
}

.people-header {
  margin-bottom: 12px;
}

.people-discovery-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.people-discovery-metric {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.people-discovery-metric strong {
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
}

.people-discovery-metric span {
  color: var(--leaf);
  font-weight: 900;
}

.people-discovery-metric small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.people-toolbar {
  margin-bottom: 12px;
}

.people-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.hero {
  min-height: 430px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(9, 12, 10, 0.12), rgba(9, 12, 10, 0.92)),
    var(--hero-image),
    linear-gradient(135deg, #21432b, #151b18 70%);
  background-size: cover;
  background-position: center;
  margin-bottom: 20px;
  overflow: hidden;
}

.hero-content {
  max-width: 680px;
  display: grid;
  gap: 14px;
}

.card,
.detail-panel,
.modal {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 23, 17, 0.92);
  overflow: hidden;
}

.card {
  min-width: 0;
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  align-items: end;
  padding: 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.74)),
    var(--thumb-image),
    linear-gradient(135deg, rgba(61, 199, 95, 0.34), rgba(133, 97, 199, 0.24));
  background-size: cover;
  background-position: center;
}

.thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.thumb .badge-row {
  position: relative;
  z-index: 1;
}

.thumb.live {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78)),
    var(--thumb-image),
    linear-gradient(135deg, rgba(255, 91, 91, 0.32), rgba(245, 163, 46, 0.22));
}

.card-body {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.card-footer {
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.card-footer .ghost-button,
.card-footer .primary-button {
  min-height: 40px;
  padding-inline: 12px;
}

.social-member-card {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 136px;
}

.member-card-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px 11px 5px;
}

.member-card-avatar-button {
  width: max-content;
  height: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.member-card-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.member-card-main .profile-link-row {
  min-width: 0;
  display: grid;
  gap: 2px;
  justify-items: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.member-card-main .profile-link-row strong,
.member-card-main .profile-link-row .meta {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-card-main .profile-link-row strong {
  font-size: 0.94rem;
  line-height: 1.1;
}

.member-card-main .profile-link-row .meta {
  font-size: 0.72rem;
  line-height: 1.15;
}

.member-card-bio {
  min-height: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 0.78rem;
  line-height: 1.25;
}

.member-card-badges {
  min-height: 0;
  gap: 5px;
}

.member-card-badges .badge {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-card-badges .pill {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 7px;
  font-size: 0.72rem;
}

.member-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 0;
}

.member-stat {
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.member-stat strong,
.member-stat small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-stat strong {
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.1;
}

.member-stat small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.member-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 11px 10px 64px;
}

.member-card-actions .compact-button,
.member-card-actions .primary-button,
.member-card-actions .ghost-button {
  min-width: 0;
  min-height: 27px;
  padding: 4px 9px;
  justify-content: center;
  font-size: 0.7rem;
  border-radius: 8px;
}

.member-card-actions .primary-button {
  background: var(--leaf);
  color: #06110b;
}

.member-card-actions .amber-action {
  color: var(--gold);
  background: rgba(245, 163, 46, 0.18);
  border-color: rgba(245, 163, 46, 0.32);
}

.member-card-actions .follow-action {
  color: var(--leaf);
  border-color: rgba(61, 199, 95, 0.34);
  background: rgba(61, 199, 95, 0.08);
}

.member-card-actions .icon-button.safety-button,
.icon-button.safety-button {
  color: #ffd6d6;
  background: rgba(255, 91, 91, 0.14);
  border-color: rgba(255, 91, 91, 0.38);
}

.member-card-actions .icon-button.safety-button {
  width: 30px;
  height: 30px;
  min-height: 30px;
}

.center-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.media-card-actions {
  justify-content: flex-start;
  gap: 8px;
}

.live-stream-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.stream-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 360px;
}

.stream-card .thumb {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.stream-card.is-live {
  border-color: rgba(255, 91, 91, 0.32);
  box-shadow: inset 0 3px 0 rgba(255, 91, 91, 0.78);
}

.stream-card .card-body {
  align-content: start;
}

.stream-card-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}

.stream-card-heading h3 {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stream-card-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid rgba(133, 97, 199, 0.42);
  border-radius: 999px;
  color: var(--plum);
  background: rgba(133, 97, 199, 0.12);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.stream-card-status.live {
  color: #ffd6d6;
  border-color: rgba(255, 91, 91, 0.42);
  background: rgba(255, 91, 91, 0.14);
}

.stream-card-creator {
  min-width: 0;
}

.stream-card-creator > div {
  min-width: 0;
}

.stream-card-creator strong,
.stream-card-creator .meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stream-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.stream-card-metrics span {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stream-card .media-card-actions {
  margin-top: auto;
}

.stream-card .media-action {
  min-height: 34px;
  padding: 6px 9px;
}

.badge-row,
.actions,
.chips,
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill,
.chip {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.fan-standing-pill {
  gap: 5px;
  padding-left: 5px;
}

.fan-standing-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.fan-standing-icon.compact {
  width: 17px;
  height: 17px;
}

.pill-button {
  min-height: 0;
  cursor: pointer;
  font: inherit;
}

.pill-button:hover,
.pill-button:focus-visible {
  border-color: rgba(184, 145, 255, 0.75);
  background: rgba(184, 145, 255, 0.16);
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.relationship-link-pill {
  gap: 4px;
  padding-right: 6px;
}

.relationship-link-pill span[aria-hidden="true"] {
  color: var(--leaf);
  font-size: 0.9em;
  line-height: 1;
}

.pill.leaf {
  color: var(--leaf);
  border-color: rgba(61, 199, 95, 0.34);
}

.pill.gold {
  color: var(--gold);
  border-color: rgba(245, 163, 46, 0.35);
}

.pill.red {
  color: var(--red);
  border-color: rgba(255, 91, 91, 0.38);
}

.pill.plum {
  color: #b99dff;
  border-color: rgba(133, 97, 199, 0.44);
}

.primary-button {
  border-color: rgba(61, 199, 95, 0.44);
  background: var(--leaf);
  color: #061008;
  font-weight: 800;
  padding: 9px 13px;
}

.primary-button.danger-button {
  background: var(--red);
  border-color: var(--red);
  color: #1a0909;
}

.ghost-button,
.icon-button,
.tab-button {
  padding: 9px 12px;
}

.danger-button {
  border-color: rgba(255, 91, 91, 0.48);
  color: #ffd6d6;
}

.ghost-button.active,
.tab-button.active {
  color: var(--leaf);
  background: rgba(61, 199, 95, 0.14);
  border-color: rgba(61, 199, 95, 0.44);
}

.icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
}

.media-action-button {
  width: 44px;
  height: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 900;
}

.icon-button.saved {
  color: var(--gold);
  border-color: rgba(245, 163, 46, 0.44);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.85fr);
  gap: 18px;
}

.player {
  aspect-ratio: var(--media-aspect-ratio, 16 / 9);
  width: 100%;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7)),
    var(--thumb-image),
    linear-gradient(135deg, #1e3c28, #161716);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.pending-player {
  background:
    linear-gradient(180deg, rgba(8, 15, 10, 0.78), rgba(8, 15, 10, 0.96)),
    linear-gradient(135deg, rgba(61, 199, 95, 0.16), rgba(245, 163, 46, 0.1));
}

.media-player {
  background: #050706;
  overflow: hidden;
}

.smoke-ring-target {
  position: relative;
  cursor: default;
  touch-action: manipulation;
}

.smoke-ring-target:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.smoke-ring-hit-zone {
  position: absolute;
  inset: 0 0 58px;
  z-index: 3;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.smoke-ring-hit-zone:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -6px;
}

.media-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #050706;
}

.video-contain-player {
  width: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9 !important;
  display: block !important;
  background: #050706 !important;
}

.video-contain-player video {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: contain !important;
  background: #050706 !important;
}

.broadcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.broadcast-preview {
  display: grid;
  gap: 8px;
}

.broadcast-preview video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #050706;
  object-fit: cover;
}

.live-host-preview video {
  min-height: 320px;
}

.live-host-preview {
  position: relative;
}

.live-host-metrics,
.live-viewer-metrics {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.live-host-metrics {
  top: 14px;
  left: 14px;
}

.live-viewer-metrics {
  top: 58px;
  left: 14px;
}

.live-host-metrics span,
.live-viewer-metrics span {
  padding: 7px 10px;
  border: 1px solid rgba(233, 237, 223, 0.16);
  border-radius: 999px;
  background: rgba(5, 7, 6, 0.62);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.76rem;
}

.live-subscriber-countdown {
  position: absolute;
  z-index: 5;
  top: 64px;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  padding: 9px 14px;
  border: 0;
  border-radius: 0;
  background: var(--gold);
  color: #171007;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.live-subscriber-countdown.viewer {
  top: 98px;
}

.live-subscriber-countdown.actionable {
  cursor: pointer;
}

.live-subscriber-countdown.actionable:hover,
.live-subscriber-countdown.actionable:focus-visible {
  filter: brightness(1.08);
  outline: 2px solid #fff;
  outline-offset: -2px;
}

.live-subscriber-countdown span {
  margin-left: 10px;
  font-size: 0.72rem;
}

.live-audience-control {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(5, 7, 6, 0.36);
}

.live-audience-control > div {
  display: grid;
  gap: 2px;
  margin-right: auto;
}

.live-audience-control span {
  color: var(--muted);
  font-size: 0.75rem;
}

.live-audience-control .active {
  border-color: var(--leaf);
  color: var(--leaf);
}

.live-audience-control .active.gold {
  border-color: var(--gold);
  color: var(--gold);
}

.broadcast-countdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: radial-gradient(circle, rgba(5, 7, 6, 0.08), rgba(5, 7, 6, 0.32));
}

.broadcast-countdown-overlay span {
  display: grid;
  place-items: center;
  width: clamp(112px, 24vw, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(61, 199, 98, 0.8);
  background: rgba(5, 7, 6, 0.72);
  color: var(--leaf);
  font-family: var(--mono);
  font-size: clamp(56px, 12vw, 92px);
  font-weight: 800;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.46), 0 0 36px rgba(61, 199, 98, 0.22);
}

.live-stage-surface {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  overflow: hidden;
  background: #050706;
}

.live-stage-surface video {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: block;
  background: #050706;
  object-fit: contain;
}

.feed-media .live-stage-surface {
  height: 100%;
  min-height: 0;
  max-height: 430px;
  border-radius: 8px 8px 0 0;
}

.feed-media .live-stage-surface video {
  min-height: 0;
  max-height: 430px;
}

.home-reel-media > .live-stage-surface {
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: none;
  aspect-ratio: auto;
}

.home-reel-media > .live-stage-surface video {
  min-height: 100%;
  max-height: none;
}

.live-stage-surface .live-stage-status {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(233, 237, 223, 0.16);
  border-radius: 999px;
  background: rgba(5, 7, 6, 0.66);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.live-stage-surface > .primary-button {
  position: absolute;
  right: 14px;
  bottom: 14px;
}

.live-viewer-control {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.live-viewer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(233, 237, 223, 0.16);
  border-radius: 999px;
  background: rgba(5, 7, 6, 0.48);
  color: white;
  cursor: pointer;
}

.live-viewer-control.open .live-viewer-pill {
  background: rgba(61, 199, 98, 0.46);
}

.live-viewer-pill strong {
  font-family: var(--mono);
  font-size: 0.82rem;
}

.live-viewer-tray {
  width: min(244px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid rgba(233, 237, 223, 0.12);
  border-radius: 22px;
  background: rgba(5, 7, 6, 0.68);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  color: white;
}

.live-viewer-tray-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  font-size: 0.82rem;
}

.live-viewer-tray-head span {
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.live-viewer-row {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.live-viewer-avatar {
  width: 54px;
  flex: 0 0 54px;
  display: grid;
  justify-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
}

.live-viewer-avatar:disabled {
  cursor: default;
  opacity: 0.68;
}

.live-viewer-avatar .avatar {
  width: 38px;
  height: 38px;
}

.live-viewer-avatar span {
  max-width: 54px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.62rem;
  font-weight: 800;
}

.live-stage-surface.detail {
  min-height: 520px;
}

.live-detail-chat-overlay {
  position: absolute;
  left: 18px;
  right: 96px;
  bottom: 14px;
  z-index: 3;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.live-detail-chat-window {
  width: min(560px, 100%);
  max-height: min(34vh, 310px);
  overflow: auto;
  display: grid;
  align-content: end;
  gap: 8px;
  padding-top: 34px;
  padding-right: 4px;
  mask-image: linear-gradient(to bottom, transparent 0, black 34px, black 100%);
}

.live-overlay-chat-message {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: baseline;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  color: white;
  font-weight: 800;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.92);
}

.live-overlay-chat-user {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--leaf);
  font-size: 0.82rem;
}

.live-overlay-chat-text {
  color: white;
  line-height: 1.25;
}

.live-overlay-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.92);
}

.live-chat-hide-button,
.live-chat-show-button {
  pointer-events: auto;
  justify-self: end;
  min-height: 30px;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(5, 7, 6, 0.42);
  color: white;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.78);
  cursor: pointer;
}

.live-chat-show-button {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
}

.live-detail-composer {
  pointer-events: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: min(620px, 100%);
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.live-detail-composer input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #111;
  font-weight: 700;
}

.live-detail-composer input:focus {
  outline: none;
}

.live-stage-surface.profile {
  min-height: 360px;
  border: 1px solid rgba(233, 237, 223, 0.14);
  border-radius: 8px;
}

.live-stage-surface.profile video {
  min-height: 360px;
}

.audio-meter-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.audio-meter {
  --audio-level: 0%;
  --meter-color: rgba(61, 199, 95, 0.9);
  height: 10px;
  border: 1px solid rgba(61, 199, 95, 0.36);
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--meter-color) 0 var(--audio-level), rgba(255, 255, 255, 0.08) var(--audio-level) 100%);
  overflow: hidden;
}

.audio-meter[data-audio-quality="silent"],
.audio-meter[data-audio-quality="quiet"] {
  --meter-color: rgba(158, 174, 159, 0.85);
  border-color: rgba(158, 174, 159, 0.35);
}

.audio-meter[data-audio-quality="hot"] {
  --meter-color: rgba(245, 163, 46, 0.95);
  border-color: rgba(245, 163, 46, 0.5);
}

.audio-meter[data-audio-quality="clip"] {
  --meter-color: rgba(255, 91, 91, 0.95);
  border-color: rgba(255, 91, 91, 0.58);
}

.audio-scale {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.2;
}

.hls-player {
  position: relative;
}

.media-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.media-status span {
  color: var(--muted);
}

.smoke-ring-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.smoke-ring-burst {
  position: absolute;
  width: 38px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 0 0 7px rgba(255, 255, 255, 0.08),
    0 0 22px rgba(245, 163, 46, 0.24);
  transform: translate(-50%, -50%) rotate(-10deg);
  animation: smoke-ring-rise 1.45s ease-out forwards;
}

.smoke-ring-burst::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.42);
  filter: blur(0.5px);
}

@keyframes smoke-ring-rise {
  from {
    opacity: 0.95;
    transform: translate(-50%, -50%) translate(0, 0) scale(0.72) rotate(-10deg);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--smoke-ring-drift, 0), -150px) scale(1.55) rotate(14deg);
  }
}

.joint-award-burst {
  position: fixed;
  left: 50%;
  top: 46%;
  z-index: 1000;
  display: grid;
  gap: 8px;
  place-items: center;
  padding: 18px 24px;
  border: 1px solid rgba(245, 163, 46, 0.5);
  border-radius: 28px;
  background: rgba(0, 10, 5, 0.58);
  color: #fff;
  font-weight: 900;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.88);
  animation: joint-award-pop 2.25s ease-out forwards;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.joint-award-burst strong {
  color: var(--leaf);
  font-size: 3rem;
  line-height: 0.9;
  text-shadow: 0 0 24px rgba(54, 207, 100, 0.72);
  transform: rotate(-12deg);
}

@keyframes joint-award-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.72); }
  14% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
  72% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -54%) scale(0.92); }
}

.smoke-ring-panel {
  display: grid;
  gap: 10px;
}

.smoke-ring-progress {
  --smoke-ring-progress: 0%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.smoke-ring-progress span {
  display: block;
  width: var(--smoke-ring-progress);
  min-width: 7px;
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--leaf), var(--gold));
}

.leaderboard-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.leaderboard-list {
  display: grid;
  gap: 8px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.leaderboard-row > strong {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.leaderboard-person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 7px;
  align-items: center;
  min-width: 0;
}

.leaderboard-person .meta {
  grid-column: 2;
}

.leaderboard-person span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-score {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.leaderboard-score span {
  color: var(--muted);
  font-size: 0.72rem;
}

.audio-player {
  padding: 18px;
}

.media-fallback {
  width: min(520px, calc(100% - 32px));
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  color: var(--text);
  padding: 18px;
}

.media-fallback h2 {
  font-size: 1.35rem;
}

.media-fallback audio {
  width: min(420px, 100%);
}

.play-ring {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(61, 199, 95, 0.9);
  color: #061008;
  font-size: 1.9rem;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.38);
}

.detail-panel {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.avatar {
  --avatar-ring: rgba(238, 242, 224, 0.24);
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #061008;
  background: var(--avatar-ring);
  font-weight: 900;
  overflow: visible;
  padding: 3px;
  box-shadow: 0 0 0 1px rgba(238, 242, 224, 0.12);
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--leaf), var(--gold));
}

.avatar.live {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

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

.profile-summary-card {
  min-height: 100%;
}

.profile-overview-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: stretch;
}

.profile-summary {
  display: flex;
  gap: 16px;
  align-items: center;
}

.profile-overview-copy {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.profile-overview-copy h2,
.profile-overview-copy p {
  margin: 0;
}

.profile-overview-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1;
}

.profile-overview-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.profile-overview-stat {
  min-width: 0;
  display: grid;
  gap: 3px;
  align-content: start;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.profile-overview-stat strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: 1.05rem;
}

.profile-overview-stat span {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
}

.profile-overview-stat small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.profile-hub-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(8, 18, 12, 0.94);
  backdrop-filter: blur(14px);
}

.profile-hub-tabs button {
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.profile-hub-tabs button.active,
.profile-hub-tabs button:hover,
.profile-hub-tabs button:focus-visible {
  background: rgba(61, 199, 95, 0.18);
  color: var(--leaf);
}

.profile-hub-panel {
  display: none;
}

.profile-hub-panel.active {
  display: grid;
  gap: 14px;
}

.profile-hub-panel > section {
  margin-top: 0;
}

.profile-account-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(240px, 0.8fr);
  gap: 12px;
  align-items: stretch;
}

.profile-basics-card {
  gap: 12px;
}

.profile-basics-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.profile-basics-main h3,
.profile-basics-main p {
  margin: 0;
}

.profile-basics-main h3 {
  font-size: 1.25rem;
}

.profile-content-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.profile-content-intro h3,
.profile-content-intro p {
  margin: 0;
}

.profile-content-intro h3 {
  font-size: 1rem;
}

.account-session-card {
  align-content: start;
}

.profile-avatar.large {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  font-size: 1.5rem;
}

.public-profile-page {
  max-width: 1120px;
  margin-inline: auto;
}

.public-profile-hero {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.social-profile-hero {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(61, 199, 95, 0.12), rgba(255, 255, 255, 0.03) 38%, rgba(255, 255, 255, 0.02)),
    rgba(17, 23, 17, 0.86);
}

.public-profile-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.public-profile-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.public-profile-avatar .avatar {
  width: 76px;
  height: 76px;
  font-size: 1.45rem;
}

.public-profile-copy {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.public-profile-copy h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1;
}

.public-profile-badges {
  gap: 6px;
}

.public-profile-bio {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.public-profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-stat-pill {
  display: inline-grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 2px;
  min-width: 74px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

button.profile-stat-pill {
  cursor: pointer;
}

button.profile-stat-pill:hover,
button.profile-stat-pill:focus-visible {
  border-color: rgba(174, 132, 255, 0.55);
  background: rgba(174, 132, 255, 0.12);
}

.profile-stat-pill strong {
  font-size: 1rem;
  color: var(--text);
}

.profile-stat-pill span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.public-profile-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.public-profile-actions .ghost-button,
.public-profile-actions .primary-button,
.public-profile-actions .danger-button {
  min-height: 32px;
  padding: 6px 11px;
}

.public-profile-live-panel {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.profile-lane-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 23, 17, 0.76);
}

.profile-lane-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.profile-lane-tabs button.active {
  background: rgba(61, 199, 95, 0.18);
  color: var(--leaf);
}

.profile-lane-tabs button:hover,
.profile-lane-tabs button:focus-visible {
  background: rgba(61, 199, 95, 0.16);
  color: var(--leaf);
}

.profile-lane-tabs span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

@media (max-width: 640px) {
  .profile-overview-panel {
    grid-template-columns: 1fr;
  }

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

  .profile-account-grid,
  .profile-basics-main {
    grid-template-columns: 1fr;
  }

  .profile-account-grid {
    display: grid;
  }

  .profile-basics-main {
    display: grid;
  }

  .creator-hub {
    grid-template-columns: 1fr;
  }

  .creator-control-stats,
  .creator-hub-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-profile-summary {
    grid-template-columns: 1fr;
  }

  .public-profile-copy h1 {
    font-size: 2rem;
  }

  .public-profile-actions .ghost-button,
  .public-profile-actions .primary-button,
  .public-profile-actions .danger-button {
    flex: 1 1 104px;
  }

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

  .profile-lane-card {
    max-width: none;
  }

  .profile-lane-thumb {
    min-height: 172px;
  }

  .shared-activity-grid {
    grid-template-columns: 1fr;
  }
}

.profile-border-option {
  cursor: pointer;
}

.profile-border-option input {
  accent-color: var(--leaf);
  margin-right: 8px;
}

.profile-border-palette {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.profile-border-color-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 10px;
  align-items: center;
}

.profile-border-color-input {
  width: 56px;
  height: 44px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
}

.compact-select {
  min-height: 42px;
  padding: 8px 12px;
  font-size: 0.98rem;
}

.required-mark {
  margin-left: 6px;
  color: var(--leaf);
  font-size: 0.76rem;
  font-weight: 800;
}

.channel-row {
  align-items: center;
}

.feed-stack {
  display: grid;
  gap: 18px;
  width: min(100%, 760px);
}

.continue-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.continue-row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.continue-row h3 {
  margin: 5px 0;
}

.continue-row .actions {
  justify-content: flex-end;
}

.feed-item {
  display: grid;
  gap: 0;
  width: 100%;
  max-width: 760px;
  margin-bottom: 18px;
}

.feed-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 430px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: #050706;
}

.feed-media .player {
  border: 0;
  border-radius: 0;
  width: 100%;
  height: 100%;
  max-height: 430px;
}

.feed-media .media-player,
.feed-media .video-contain-player {
  aspect-ratio: 16 / 9 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 430px;
}

.feed-media video {
  max-height: 430px;
}

.feed-media-poster {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: 430px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  min-height: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(9, 12, 10, 0.08), rgba(9, 12, 10, 0.76)),
    var(--hero-image),
    linear-gradient(135deg, #21432b, #151b18 70%);
  background-size: cover;
  background-position: center;
  color: var(--text);
  cursor: pointer;
}

.feed-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
}

.feed-copy {
  max-width: 620px;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.feed-copy h2 {
  margin: 8px 0 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.feed-copy p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.feed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 230px;
}

.home-experience-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.home-watch-feed {
  display: grid;
  gap: 18px;
  width: 100%;
  height: min(78vh, 780px);
  height: min(78dvh, 780px);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
  scroll-padding-block: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.home-watch-feed::-webkit-scrollbar {
  display: none;
}

.home-feed-coach {
  width: min(100%, var(--home-media-width));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(61, 199, 95, 0.3);
  border-radius: 8px;
  background: rgba(19, 45, 28, 0.82);
  color: rgba(238, 240, 226, 0.86);
  font-size: 0.8rem;
  line-height: 1.35;
}

.home-reel-card {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 10px;
  align-items: end;
  scroll-margin-top: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.home-reel-media {
  position: relative;
  min-height: min(78vh, 780px);
  height: min(78vh, 780px);
  min-height: min(78dvh, 780px);
  height: min(78dvh, 780px);
  overflow: hidden;
  border: 1px solid rgba(233, 237, 223, 0.16);
  border-radius: 8px;
  background: #050706;
}

.home-reel-card.is-live .home-reel-media {
  border-color: rgba(255, 91, 91, 0.34);
  box-shadow:
    inset 0 3px 0 rgba(255, 91, 91, 0.78),
    0 0 0 1px rgba(255, 91, 91, 0.06);
}

.home-reel-media > .player,
.home-reel-media > .media-player,
.home-reel-media > .video-contain-player,
.home-reel-media > .home-reel-poster {
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: none;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
}

.home-reel-media video {
  width: 100% !important;
  height: 100% !important;
  max-height: none;
  object-fit: contain;
  background: #050706;
}

.home-reel-poster {
  display: grid;
  place-items: center;
  border: 0;
  background:
    linear-gradient(180deg, rgba(4, 6, 5, 0.1), rgba(4, 6, 5, 0.56)),
    var(--hero-image),
    linear-gradient(135deg, rgba(61, 199, 95, 0.24), rgba(245, 163, 46, 0.12));
  background-size: cover;
  background-position: center;
  color: var(--text);
  cursor: pointer;
}

.home-reel-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 6, 5, 0), rgba(4, 6, 5, 0.78) 58%, rgba(4, 6, 5, 0.94));
}

.home-reel-card.is-live .home-reel-gradient {
  background:
    linear-gradient(180deg, rgba(4, 6, 5, 0), rgba(4, 6, 5, 0.72) 48%, rgba(4, 6, 5, 0.96)),
    radial-gradient(circle at 20% 100%, rgba(255, 91, 91, 0.22), transparent 34%);
}

.home-reel-copy {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 8px;
  min-width: 0;
  z-index: 2;
}

.home-reel-card.comments-open .home-reel-copy,
.home-reel-card.likers-open .home-reel-copy {
  right: min(500px, calc(100% - 130px));
}

.home-reel-copy h2 {
  font-family: var(--sans);
  font-size: 1.08rem;
  line-height: 1.1;
  margin: 0;
  color: var(--text);
}

.home-reel-copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(233, 237, 223, 0.82);
  font-size: 0.92rem;
  line-height: 1.28;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-reel-copy p.expanded {
  display: block;
  max-height: min(28vh, 210px);
  overflow: auto;
  -webkit-line-clamp: unset;
}

.home-description-toggle {
  width: fit-content;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 900;
}

.home-like-burst {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
}

.home-like-burst span {
  grid-area: 1 / 1;
  color: var(--leaf);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.5rem, 12vw, 8rem);
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.55));
  transform: scale(0.45) rotate(-16deg);
}

.home-like-burst span:last-child {
  color: var(--gold);
  transform: translate(26%, -18%) scale(0.28) rotate(18deg);
}

.home-like-burst.active {
  animation: homeLikeBurst 620ms ease-out both;
}

@keyframes homeLikeBurst {
  0% { opacity: 0; transform: scale(0.72); }
  24% { opacity: 1; transform: scale(1.05); }
  72% { opacity: 0.92; transform: scale(1); }
  100% { opacity: 0; transform: translateY(-18px) scale(1.12); }
}

.home-feed-scrubber {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 5px;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  opacity: 0.78;
  transition: opacity 180ms ease;
}

.home-feed-scrubber:focus-within,
.home-feed-scrubber:hover {
  opacity: 1;
}

.home-feed-scrubber input {
  width: 100%;
  height: 18px;
  margin: 0;
  accent-color: var(--leaf);
}

.home-feed-scrubber output {
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(5, 8, 6, 0.72);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.62rem;
  white-space: nowrap;
}

.home-feed-sentinel {
  min-height: 76px;
  align-content: center;
  scroll-snap-align: none;
}

.home-feed-loading-indicator {
  display: none;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(238, 240, 226, 0.18);
  border-top-color: var(--leaf);
  border-radius: 50%;
}

.home-feed-sentinel.auto-loading .home-feed-loading-indicator {
  display: block;
  animation: homeFeedLoadingSpin 800ms linear infinite;
}

.home-feed-sentinel.auto-loading [data-show-more-home-feed] {
  display: none;
}

@keyframes homeFeedLoadingSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .home-feed-sentinel.auto-loading .home-feed-loading-indicator {
    animation: none;
    border-color: var(--leaf);
  }
}

.caption-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(133, 97, 199, 0.34);
  border-radius: 8px;
  background: rgba(133, 97, 199, 0.07);
}

.caption-editor legend {
  padding: 0 6px;
  color: var(--text);
  font-weight: 900;
}

.danger-check {
  color: var(--red);
}

.feed-option-list {
  display: grid;
  gap: 8px;
}

.danger-command {
  border-color: rgba(255, 91, 91, 0.38);
}

.home-live-strip {
  max-width: min(100%, 560px);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: rgba(233, 237, 223, 0.86);
  font-size: 0.74rem;
  font-weight: 800;
}

.home-live-strip > span:not(.home-live-progress) {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border: 1px solid rgba(233, 237, 223, 0.14);
  border-radius: 999px;
  background: rgba(5, 8, 6, 0.52);
}

.home-live-dot {
  gap: 5px;
  color: #ffd6d6;
  border-color: rgba(255, 91, 91, 0.42) !important;
  background: rgba(255, 91, 91, 0.18) !important;
  text-transform: uppercase;
}

.home-live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 rgba(255, 91, 91, 0.52);
  animation: homeLivePulse 1.6s ease-out infinite;
}

.home-live-progress {
  width: 86px;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.home-live-progress i {
  display: block;
  width: var(--smoke-ring-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--leaf));
}

@keyframes homeLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 91, 91, 0.52); }
  100% { box-shadow: 0 0 0 8px rgba(255, 91, 91, 0); }
}

.home-creator-button {
  width: fit-content;
  max-width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.home-creator-button span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.home-creator-button strong,
.home-creator-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-creator-button small {
  color: rgba(233, 237, 223, 0.68);
  font-size: 0.76rem;
}

.home-reel-actions {
  position: static;
  z-index: 3;
  display: grid;
  gap: 6px;
  width: 52px;
  align-self: end;
  margin-bottom: 16px;
}

.home-reel-action {
  min-height: 46px;
  padding: 4px 2px;
  display: grid;
  justify-items: center;
  gap: 2px;
  border: 1px solid rgba(233, 237, 223, 0.1);
  border-radius: 999px;
  background: rgba(5, 8, 6, 0.46);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.home-reel-action-group {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.home-reel-action span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--leaf);
  font-weight: 900;
}

.home-reel-action small {
  max-width: 46px;
  overflow: hidden;
  color: rgba(233, 237, 223, 0.78);
  font-size: 0.57rem;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-reel-action em {
  color: rgba(233, 237, 223, 0.7);
  font-family: var(--mono);
  font-size: 0.56rem;
  font-style: normal;
  line-height: 1;
}

.home-reel-count-link {
  min-width: 24px;
  min-height: 18px;
  padding: 2px 6px;
  border: 1px solid rgba(233, 237, 223, 0.14);
  border-radius: 999px;
  background: rgba(5, 8, 6, 0.6);
  color: rgba(233, 237, 223, 0.82);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.58rem;
  line-height: 1;
}

.home-reel-count-link:hover,
.home-reel-count-link:focus-visible {
  border-color: rgba(61, 199, 95, 0.5);
  color: var(--leaf);
}

.home-reel-action.active span,
.home-reel-action.primary span {
  background: var(--leaf);
  color: #07100a;
}

.home-reel-action.active,
.home-reel-action.primary {
  border-color: rgba(61, 199, 95, 0.36);
  background: rgba(61, 199, 95, 0.12);
}

.home-likers-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  display: grid;
  align-content: start;
  gap: 10px;
  width: min(390px, calc(100% - 112px));
  padding: 12px;
  overflow: auto;
  border: 1px solid rgba(233, 237, 223, 0.18);
  border-radius: 8px;
  background: rgba(7, 16, 10, 0.94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.home-likers-panel .member-list-row {
  grid-template-columns: auto minmax(0, 1fr);
}

.home-likers-panel .member-list-row .actions {
  grid-column: 2;
  justify-content: start;
}

.compact-button {
  min-height: 32px;
  padding: 6px 10px;
}

.home-note-shell {
  min-height: min(64vh, 620px);
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(233, 237, 223, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(61, 199, 95, 0.14), rgba(245, 163, 46, 0.08)),
    rgba(17, 23, 17, 0.92);
}

.home-note-reel.pinned .home-note-shell {
  border-color: rgba(245, 163, 46, 0.35);
}

.home-note-identity {
  display: flex;
  gap: 12px;
  align-items: center;
}

.home-note-identity h2 {
  margin: 5px 0 0;
  font-size: 1.35rem;
}

.home-note-reel-text {
  color: var(--text);
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.22;
}

.home-note-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-context-rail {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 12px;
}

.home-side-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 23, 17, 0.78);
}

.side-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.home-side-list {
  display: grid;
  gap: 8px;
}

.home-side-row {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(233, 237, 223, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.home-side-row.static {
  grid-template-columns: auto minmax(0, 1fr) auto;
  cursor: default;
}

.home-side-row span:not(.mini-thumb):not(.avatar) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.home-side-row strong,
.home-side-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-side-row small {
  color: var(--muted);
}

.chat-list {
  display: grid;
  gap: 10px;
  max-height: 270px;
  overflow: auto;
  padding-right: 4px;
}

.chat-message {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.chat-timestamp {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.pinned-chat-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.pinned-chat-message {
  border-color: rgba(245, 163, 46, 0.45);
  background: rgba(245, 163, 46, 0.1);
}

.comment-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.comment-actions .ghost-button {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 0.76rem;
}

.block-user-panel .actions {
  justify-content: flex-start;
}

.comments-panel {
  display: grid;
  gap: 12px;
}

.comments-panel .page-header {
  margin-bottom: 0;
  align-items: center;
}

.comments-list {
  max-height: 230px;
}

.home-inline-comments {
  position: absolute;
  top: 0;
  right: 68px;
  bottom: 0;
  z-index: 4;
  width: min(410px, calc(100% - 108px));
  max-height: none;
  padding: 14px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  border: 0;
  border-left: 1px solid rgba(233, 237, 223, 0.16);
  border-radius: 0;
  background: rgba(8, 12, 9, 0.94);
  box-shadow: -16px 0 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.home-inline-comments::after {
  display: none;
}

.home-comments-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.home-comments-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.home-comments-list {
  min-height: 120px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  padding-right: 2px;
}

.home-comment-composer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(233, 237, 223, 0.1);
}

.home-comment-composer .avatar {
  width: 34px;
  height: 34px;
  font-size: 0.74rem;
}

.home-comment-composer input {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.home-comments-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.up-next-panel {
  display: grid;
  gap: 12px;
}

.up-next-panel .page-header {
  margin-bottom: 0;
  align-items: center;
}

.up-next-list {
  display: grid;
  gap: 10px;
}

.recommendation-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.recommendation-row strong,
.recommendation-row .meta {
  display: block;
}

.recommendation-row strong {
  margin-bottom: 4px;
}

.mini-thumb {
  aspect-ratio: 16 / 9;
  min-width: 0;
  display: grid;
  align-items: end;
  padding: 7px;
  border-radius: 6px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78)),
    var(--thumb-image),
    linear-gradient(135deg, rgba(61, 199, 95, 0.32), rgba(133, 97, 199, 0.24));
  background-size: cover;
  background-position: center;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 800;
}

.mini-thumb.live {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78)),
    var(--thumb-image),
    linear-gradient(135deg, rgba(255, 91, 91, 0.32), rgba(245, 163, 46, 0.22));
}

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

.composer input {
  min-width: 0;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
}

.gift {
  text-align: left;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.gift strong {
  display: block;
}

.creator-hub {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  gap: 16px;
  align-items: start;
}

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

.creator-hub-main h1 {
  margin: 0;
}

.creator-hub-stats {
  align-self: stretch;
}

.fan-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(61, 199, 95, 0.26);
  border-radius: 8px;
  background: rgba(61, 199, 95, 0.055);
}

.fan-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.fan-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
}

.supporter-missions-panel {
  background:
    linear-gradient(135deg, rgba(61, 199, 95, 0.075), rgba(245, 163, 46, 0.055)),
    rgba(0, 0, 0, 0.1);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.compact-mission-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: stretch;
}

.compact-missions .mission-card {
  min-height: 0;
}

.featured-mission-card {
  min-height: 0;
}

.compact-mission-list {
  display: grid;
  gap: 8px;
}

.compact-mission-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
}

.compact-mission-row strong,
.compact-mission-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-mission-row small {
  margin-top: 3px;
  color: var(--muted);
}

.mission-card {
  min-height: 190px;
}

.mission-card .ghost-button {
  align-self: end;
}

.fan-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.fan-progress span {
  display: block;
  height: 100%;
  min-width: 8px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--leaf));
}

.compact-progress {
  max-width: 360px;
  margin-top: 10px;
}

.fan-standing-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
  gap: 14px;
  align-items: center;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid rgba(245, 163, 46, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(245, 163, 46, 0.09), rgba(61, 199, 95, 0.055)),
    rgba(255, 255, 255, 0.025);
}

.fan-standing-current {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.fan-standing-current .fan-standing-icon {
  width: 54px;
  height: 54px;
}

.fan-standing-current h3 {
  margin: 0 0 4px;
}

.fan-standing-next {
  display: grid;
  gap: 8px;
}

.fan-score-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.fan-score-breakdown span {
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
}

.fan-score-breakdown strong {
  color: var(--gold);
}

.fan-standing-ladder {
  display: grid;
  grid-template-columns: repeat(5, minmax(112px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.fan-standing-tier {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.032);
  opacity: 0.72;
}

.fan-standing-tier.earned {
  opacity: 1;
  border-color: rgba(245, 163, 46, 0.28);
  background: rgba(245, 163, 46, 0.055);
}

.fan-standing-tier.current {
  box-shadow: inset 0 0 0 1px rgba(245, 163, 46, 0.34);
}

.fan-standing-tier .fan-standing-icon {
  width: 34px;
  height: 34px;
}

.fan-standing-tier strong,
.fan-standing-tier span,
.fan-standing-tier p {
  display: block;
}

.fan-standing-tier strong {
  font-size: 0.82rem;
  line-height: 1.15;
}

.fan-standing-tier span {
  margin-top: 3px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
}

.fan-standing-tier p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.fan-standing-row {
  align-items: center;
}

.fan-tier-summary {
  min-height: 24px;
}

.fan-tier-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.fan-tier-guide-item {
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.fan-tier-guide-item span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.tier-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-message[class*="fan-standing-"] {
  border-left: 3px solid var(--leaf);
  padding-left: 9px;
  background: rgba(61, 199, 95, 0.06);
}

.chat-message.fan-standing-regular {
  border-left-color: var(--gold);
  background: rgba(245, 163, 46, 0.08);
}

.chat-message.fan-standing-inner_circle {
  border-left-color: var(--plum);
  background: rgba(133, 97, 199, 0.1);
}

.chat-message.fan-standing-certified {
  border-left-color: var(--gold);
  background: rgba(245, 163, 46, 0.12);
  box-shadow: inset 0 0 0 1px rgba(245, 163, 46, 0.18);
}

.chat-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
}

.fan-badge-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.fan-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid rgba(245, 163, 46, 0.32);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
}

.fan-badge.pass,
.fan-badge.standing {
  color: var(--gold);
  border-color: rgba(245, 163, 46, 0.38);
  background: rgba(245, 163, 46, 0.08);
}

.fan-badge.fan,
.fan-badge.casual {
  color: var(--leaf);
  border-color: rgba(61, 199, 95, 0.34);
  background: rgba(61, 199, 95, 0.08);
}

.fan-badge.moderator {
  color: #b99dff;
  border-color: rgba(133, 97, 199, 0.44);
  background: rgba(133, 97, 199, 0.1);
}

.notice {
  color: var(--gold);
}

.empty {
  padding: 32px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
}

.empty-state {
  padding: 24px;
  border: 1px dashed rgba(233, 237, 223, 0.2);
  border-radius: 8px;
  background: rgba(17, 23, 17, 0.72);
  display: grid;
  gap: 12px;
}

.empty-state strong {
  color: var(--text);
  font-size: 1.05rem;
}

.empty-state .actions {
  margin-top: 2px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.64);
}

.modal {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.modal-header {
  justify-content: space-between;
}

.create-choice-actions {
  display: grid;
  gap: 10px;
}

.field-label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.textarea {
  min-height: 118px;
  padding-top: 12px;
  resize: vertical;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.profile-media-section {
  margin-top: 18px;
}

.social-profile-lane {
  display: none;
  padding-top: 2px;
}

.social-profile-lane.active {
  display: grid;
}

.profile-media-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 10px;
  margin-bottom: 10px;
}

.profile-media-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.profile-media-header .meta {
  margin: 2px 0 0;
}

.profile-media-section .grid,
.profile-media-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 280px));
  gap: 14px;
  justify-content: start;
  align-items: start;
}

.profile-media-section .card,
.profile-media-grid > .card {
  width: 100%;
  max-width: 280px;
}

.profile-media-section .thumb,
.profile-media-grid .thumb {
  aspect-ratio: auto;
  height: 158px;
  min-height: 0;
  max-height: 158px;
}

.profile-media-section .card-body,
.profile-media-grid .card-body {
  gap: 8px;
}

.profile-media-section .card-body h3,
.profile-media-grid .card-body h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.profile-media-section .channel-row,
.profile-media-grid .channel-row {
  min-width: 0;
}

.profile-media-section .channel-row strong,
.profile-media-section .channel-row .meta,
.profile-media-grid .channel-row strong,
.profile-media-grid .channel-row .meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-media-section .media-card-actions,
.profile-media-grid .media-card-actions {
  flex-wrap: wrap;
}

.profile-lane-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 176px));
  gap: 12px;
  justify-content: start;
  align-items: stretch;
}

.profile-lane-card {
  width: 100%;
  max-width: 176px;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.profile-lane-card:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
}

.profile-lane-card:hover {
  border-color: rgba(61, 199, 95, 0.5);
}

.profile-lane-thumb {
  position: relative;
  display: grid;
  place-items: end start;
  aspect-ratio: 9 / 13;
  height: auto;
  min-height: 190px;
  background:
    linear-gradient(180deg, rgba(5, 7, 6, 0.04), rgba(5, 7, 6, 0.72)),
    var(--thumb-image),
    linear-gradient(135deg, #21432b, #151b18 70%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.profile-lane-thumb.live {
  background:
    linear-gradient(180deg, rgba(5, 7, 6, 0.04), rgba(5, 7, 6, 0.72)),
    var(--thumb-image),
    linear-gradient(135deg, #421f2b, #151b18 70%);
}

.profile-lane-thumb .thumb-img {
  z-index: 0;
}

.profile-lane-play {
  position: relative;
  z-index: 1;
  margin: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(5, 7, 6, 0.76);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
}

.profile-lane-copy {
  display: grid;
  gap: 6px;
  padding: 9px;
}

.profile-lane-copy strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.92rem;
  line-height: 1.15;
}

.profile-lane-copy .meta,
.profile-lane-copy p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shared-activity-card p {
  margin: 0;
}

.shared-activity-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 300px));
}

.shared-activity-card {
  max-width: 300px;
  cursor: default;
}

.shared-activity-card .meta {
  line-height: 1.35;
}

.shared-media-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 2px;
}

.shared-media-open {
  width: fit-content;
}

.session-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.session-banner > div:first-child {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.session-banner .actions {
  justify-content: flex-end;
}

.remote-guidance {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(61, 199, 95, 0.22);
  border-radius: 8px;
  background: rgba(61, 199, 95, 0.07);
}

.remote-guidance.warning {
  border-color: rgba(245, 163, 46, 0.32);
  background: rgba(245, 163, 46, 0.08);
}

.remote-guidance.compact {
  padding: 10px 12px;
}

.pending-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.pending-action > div:first-child {
  display: grid;
  gap: 7px;
}

.file-mode-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.file-mode-banner > div:first-child {
  display: grid;
  gap: 7px;
}

.accounting-exceptions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.accounting-exceptions > div:first-child {
  display: grid;
  gap: 7px;
}

.auth-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.account-access-form {
  display: grid;
  gap: 14px;
}

.auth-feedback {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid rgba(61, 199, 95, 0.28);
  border-radius: 8px;
  background: rgba(61, 199, 95, 0.06);
}

.auth-feedback.warning {
  border-color: rgba(245, 163, 46, 0.36);
  background: rgba(245, 163, 46, 0.09);
}

.remote-diagnostics {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.remote-diagnostics .balance-row {
  padding: 0;
  border: 0;
  background: transparent;
  justify-content: space-between;
}

.backend-coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.backend-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid rgba(61, 199, 95, 0.28);
  border-radius: 8px;
  background: rgba(61, 199, 95, 0.06);
}

.backend-summary-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.backend-coverage-card {
  display: grid;
  gap: 10px;
  align-content: space-between;
  min-height: 104px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.diagnostic-item {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}

.diagnostic-item span,
.diagnostic-item strong {
  display: block;
}

.diagnostic-item span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.diagnostic-item strong {
  overflow-wrap: anywhere;
  font-size: 0.86rem;
}

.contract-warning-list {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.contract-warning-list .meta {
  display: flex;
  align-items: flex-start;
}

.contract-warning-list .meta::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  border-radius: 50%;
  background: rgba(245, 163, 46, 0.18);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
}

.content-readiness-list {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(133, 97, 199, 0.24);
  border-radius: 8px;
  background: rgba(133, 97, 199, 0.06);
}

.content-readiness-list strong {
  font-size: 0.92rem;
}

.readiness-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(245, 163, 46, 0.24);
  border-radius: 8px;
  background: rgba(245, 163, 46, 0.06);
}

.readiness-panel .balance-row {
  padding: 0;
  border: 0;
  background: transparent;
}

.commerce-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(133, 97, 199, 0.26);
  border-radius: 8px;
  background: rgba(133, 97, 199, 0.055);
}

.commerce-panel .balance-row {
  padding: 0;
  border: 0;
  background: transparent;
}

.commerce-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.commerce-card {
  display: grid;
  gap: 10px;
  align-content: space-between;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}

.checkout-pack {
  width: 100%;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.checkout-pack:hover {
  border-color: rgba(61, 199, 95, 0.42);
  background: rgba(61, 199, 95, 0.08);
}

.checkout-pack:disabled {
  cursor: progress;
  opacity: 0.78;
}

.checkout-status {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 800;
}

.manual-test-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(245, 163, 46, 0.32);
  border-radius: 8px;
  background: rgba(245, 163, 46, 0.08);
}

.manual-test-panel p {
  margin-top: 6px;
}

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

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.community-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

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

.moderator-picker {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
}

.moderator-picker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(238, 242, 224, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.moderator-picker-person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.moderator-picker-person .avatar {
  width: 42px;
  height: 42px;
}

.moderator-picker-person strong,
.moderator-picker-person .meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-list {
  gap: 8px;
}

.compact-relationship-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px 10px;
}

.compact-relationship-row.no-actions {
  grid-template-columns: 1fr;
}

.relationship-link {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.relationship-link:hover .relationship-identity strong,
.relationship-link:hover .relationship-identity .meta {
  color: var(--leaf);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.relationship-person {
  min-width: 0;
  gap: 8px;
}

.relationship-person .avatar {
  width: 34px;
  height: 34px;
}

.relationship-identity {
  min-width: 0;
  width: min(14rem, 100%);
  max-width: 100%;
}

.compact-relationship-row.no-actions .relationship-identity {
  width: min(20rem, 100%);
}

.relationship-identity strong,
.relationship-identity .meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.relationship-identity strong {
  font-size: 0.86rem;
  line-height: 1.08;
}

.relationship-identity .meta {
  font-size: 0.72rem;
  line-height: 1.1;
}

.compact-relationship-row .actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
}

.compact-relationship-row .compact-button {
  min-height: 34px;
  padding-inline: 9px;
}

.compact-relationship-row .relationship-unfollow {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 0.78rem;
}

.moderator-row {
  align-items: center;
}

.moderation-action-row {
  border-color: rgba(245, 163, 46, 0.24);
}

.studio-hero {
  margin-bottom: 16px;
}

.creator-studio-view {
  display: grid;
  gap: 16px;
}

.studio-command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.studio-command {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 16px;
  text-align: left;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 23, 17, 0.9);
  cursor: pointer;
}

.studio-command.primary {
  border-color: rgba(61, 199, 95, 0.54);
  background: rgba(61, 199, 95, 0.16);
}

.studio-command strong {
  font-size: 1.2rem;
}

.studio-command span {
  color: var(--muted);
}

.studio-workbench {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  align-items: start;
}

.studio-library-panel summary {
  cursor: pointer;
  font-family: var(--display-font);
  font-size: 1.35rem;
  font-weight: 800;
}

.creator-control-hero,
.creator-hub {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: start;
}

.creator-control-hero {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.creator-control-hero h2,
.creator-hub-title h1 {
  margin: 0;
}

.creator-hub-title h1 {
  line-height: 0.95;
}

.creator-control-hero .channel-row,
.creator-hub-title {
  min-width: 0;
}

.creator-control-hero .channel-row > div,
.creator-hub-title > div {
  min-width: 0;
}

.creator-control-hero .meta,
.creator-hub-title .meta {
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-control-stats,
.creator-hub-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.metric-grid.compact {
  margin-bottom: 14px;
}

.metric-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.metric-card-button {
  width: 100%;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.metric-card-button:hover,
.metric-card-button:focus-visible {
  border-color: rgba(61, 199, 95, 0.55);
  background: rgba(61, 199, 95, 0.1);
}

.metric-card strong {
  color: var(--leaf);
  font-size: 1.5rem;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.dashboard-actions {
  margin-bottom: 18px;
}

.feature-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(61, 204, 107, 0.12), rgba(245, 163, 46, 0.08), rgba(255, 255, 255, 0.04));
}

.feature-panel h2 {
  margin: 8px 0 6px;
}

.home-view {
  width: min(100%, calc(var(--home-media-width) + var(--home-action-rail-width)));
  max-width: calc(var(--home-media-width) + var(--home-action-rail-width));
  display: grid;
  gap: 14px;
  justify-items: stretch;
}

.home-floating-wallet {
  position: fixed;
  top: max(16px, env(safe-area-inset-top, 0px));
  right: max(24px, env(safe-area-inset-right, 0px));
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(2, minmax(72px, 1fr));
  gap: 7px;
  width: min(194px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 23, 17, 0.82);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.home-feed-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: min(100%, var(--home-media-width));
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(61, 199, 95, 0.12), rgba(17, 23, 17, 0.74) 44%, rgba(17, 23, 17, 0.84)),
    rgba(17, 23, 17, 0.72);
}

.home-feed-header.has-live {
  border-color: rgba(255, 91, 91, 0.3);
}

.home-feed-header h1 {
  margin: 4px 0 0;
  font-size: 1.28rem;
  line-height: 1;
}

.home-feed-tabs {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.home-feed-tabs .tab-button {
  min-height: 34px;
  padding: 7px 12px;
}

.home-today-actions {
  justify-content: flex-end;
  margin: 0;
}

.home-today-actions button {
  white-space: nowrap;
}

.member-composer {
  display: grid;
  gap: 10px;
  width: min(100%, 760px);
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 23, 17, 0.76);
}

.home-context-rail .member-composer {
  width: 100%;
}

.member-composer-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.member-composer-form .avatar {
  width: 42px;
  height: 42px;
  margin-top: 2px;
}

.member-composer-form textarea {
  width: 100%;
  min-height: 44px;
  max-height: 220px;
  padding: 11px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 1rem;
  line-height: 1.35;
  resize: none;
  overflow-y: auto;
  overflow-wrap: anywhere;
}

.member-composer-form button {
  grid-column: 2;
  justify-self: end;
}

.member-composer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.room-note-list {
  display: grid;
  gap: 10px;
}

.room-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  width: 100%;
  min-height: 156px;
  max-height: 430px;
  padding: 12px;
  border: 1px solid rgba(233, 237, 223, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.room-note.pinned {
  border-color: rgba(245, 163, 46, 0.48);
  background:
    linear-gradient(180deg, rgba(245, 163, 46, 0.11), rgba(61, 199, 95, 0.035) 42%, rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.pinned-note-ribbon {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -2px -2px 2px;
  padding: 7px 9px;
  border: 1px solid rgba(245, 163, 46, 0.28);
  border-radius: 7px;
  color: var(--gold);
  background: rgba(245, 163, 46, 0.08);
  font-size: 0.78rem;
  font-weight: 850;
}

.pinned-note-ribbon span:last-child {
  color: var(--muted);
  font-weight: 700;
}

.room-note.editing {
  min-width: min(100%, 460px);
}

.room-note.expanded {
  max-height: none;
  overflow: visible;
}

.room-note-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.room-note-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.room-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.room-note-actions .compact-button {
  padding: 5px 8px;
  font-size: 0.78rem;
}

.room-note-edit-form {
  display: grid;
  gap: 8px;
}

.room-note-edit-form textarea {
  width: 100%;
  min-height: 44px;
  max-height: 220px;
  padding: 11px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 1rem;
  line-height: 1.35;
  resize: none;
  overflow-y: auto;
  overflow-wrap: anywhere;
}

.room-note-edit-form .actions {
  justify-content: flex-end;
}

.room-note .avatar {
  width: 34px;
  height: 34px;
}

.room-note p,
.room-note-text {
  margin: 2px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.room-note-text {
  max-height: 260px;
  overflow: hidden;
}

.room-note-text.collapsed {
  max-height: 8.2em;
}

.room-note-expand {
  justify-self: start;
  min-height: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--leaf);
  font-weight: 800;
}

.room-note-social,
.room-reply-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.room-note-social .compact-button.active {
  color: var(--leaf);
  border-color: rgba(61, 199, 95, 0.44);
  background: rgba(61, 199, 95, 0.12);
}

.notification-layout {
  display: grid;
  gap: 14px;
}

.notification-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.notification-summary h2 {
  margin: 2px 0 4px;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

.notification-summary .actions {
  justify-content: flex-end;
}

.notification-status {
  grid-column: 1 / -1;
  color: var(--gold);
  font-weight: 800;
}

.notification-save-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid #3dc75f;
  border-radius: 8px;
  color: #eafbea;
  background: rgba(61, 199, 95, 0.22);
  font-weight: 800;
}

.notification-save-inline span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #051109;
  background: #3dc75f;
  font-weight: 900;
}

.notification-preferences {
  display: grid;
  gap: 14px;
}

.notification-toggle {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.notification-toggle input {
  width: 22px;
  height: 22px;
  accent-color: var(--leaf);
}

.notification-list {
  display: grid;
  gap: 10px;
}

.notification-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  min-height: 110px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.notification-card.unread {
  border-color: rgba(61, 199, 95, 0.42);
  background: rgba(61, 199, 95, 0.09);
  box-shadow: inset 3px 0 0 rgba(61, 199, 95, 0.82);
}

.notification-card .avatar {
  width: 40px;
  height: 40px;
}

.notification-copy {
  display: grid;
  gap: 8px;
}

.notification-copy p {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notification-icon {
  --avatar-ring: rgba(61, 199, 95, 0.42);
}

.notification-icon .avatar-inner {
  font-size: 0.78rem;
  letter-spacing: 0;
}

@media (max-width: 680px) {
  .notification-summary {
    grid-template-columns: 1fr;
  }

  .notification-summary .actions {
    justify-content: stretch;
  }

  .notification-summary .actions > * {
    flex: 1 1 0;
  }
}

.reaction-control {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.reaction-control::before {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  bottom: 100%;
  height: 14px;
}

.reaction-tray {
  position: absolute;
  left: 0;
  bottom: calc(100% + 2px);
  z-index: 4;
  display: flex;
  gap: 7px;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(9, 12, 10, 0.96);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.reaction-control:hover .reaction-tray,
.reaction-control:focus-within .reaction-tray {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reaction-control.tray-dismissed .reaction-tray {
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
}

.reaction-button {
  min-width: 42px;
  height: 42px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 1.35rem;
}

.reaction-button span {
  display: inline-block;
  transition: transform 0.12s ease;
}

.reaction-button:hover span,
.reaction-button:focus-visible span {
  transform: translateY(-2px) scale(1.14);
}

.weed-leaf-icon {
  position: relative;
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  transform-origin: center 70%;
}

.weed-leaf-icon i {
  position: absolute;
  left: 50%;
  bottom: 16%;
  width: 0.28em;
  height: 0.82em;
  border-radius: 999px 999px 120px 120px;
  background: linear-gradient(180deg, #6df58e, var(--leaf));
  transform-origin: 50% 90%;
  box-shadow: inset 0 -0.08em 0 rgba(0, 0, 0, 0.12);
}

.weed-leaf-icon i:nth-child(1) {
  transform: translateX(-50%) rotate(0deg);
}

.weed-leaf-icon i:nth-child(2) {
  transform: translateX(-50%) rotate(-30deg);
}

.weed-leaf-icon i:nth-child(3) {
  transform: translateX(-50%) rotate(30deg);
}

.weed-leaf-icon i:nth-child(4) {
  height: 0.68em;
  transform: translateX(-50%) rotate(-58deg);
}

.weed-leaf-icon i:nth-child(5) {
  height: 0.68em;
  transform: translateX(-50%) rotate(58deg);
}

.reaction-button.active {
  color: var(--leaf);
  border-color: rgba(61, 199, 95, 0.5);
  background: rgba(61, 199, 95, 0.16);
}

.reaction-button small,
.reaction-summary {
  font-size: 0.74rem;
  color: var(--muted);
}

.reaction-summary {
  align-self: center;
  padding: 5px 0;
}

.room-replies {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.room-reply {
  padding: 8px 10px;
  border-left: 2px solid rgba(61, 199, 95, 0.35);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.035);
}

.room-reply p {
  margin: 2px 0 0;
  white-space: pre-wrap;
}

.room-reply-form input {
  flex: 1 1 190px;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.community-impact-panel {
  background: rgba(17, 23, 17, 0.72);
}

.member-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.member-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.member-chip .avatar {
  width: 30px;
  height: 30px;
  font-size: 0.74rem;
}

@media (max-width: 760px) {
  .main-status-row {
    align-items: stretch;
    flex-direction: column;
  }

  .home-feed-header,
  .home-feed-header.has-live {
    grid-template-columns: 1fr;
    position: sticky;
    top: 8px;
    z-index: 8;
  }

  .home-today-actions {
    justify-content: flex-start;
  }

  .member-composer-form {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .member-composer-form button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .room-note-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .room-note-actions,
  .room-note-edit-form .actions {
    justify-content: flex-start;
  }

  .reaction-tray {
    max-width: min(92vw, 360px);
    flex-wrap: wrap;
    border-radius: 18px;
  }
}

.wallet-credit,
.wallet-spend {
  justify-self: end;
  white-space: nowrap;
}

.wallet-credit {
  color: var(--leaf);
}

.wallet-spend {
  color: var(--gold);
}

.studio-list {
  display: grid;
  gap: 10px;
}

.action-plan {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.action-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.action-card .ghost-button {
  justify-self: start;
}

.studio-toolbar {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.setting-block {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.danger-zone,
.danger-modal {
  border-color: rgba(255, 91, 91, 0.36);
}

.setting-block h3 {
  margin: 0 0 4px;
}

.payout-setup-grid {
  align-items: start;
}

.payout-setup-form {
  gap: 14px;
}

.payout-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.payout-form-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.payout-form-grid label > span {
  font: 800 0.82rem var(--mono);
  color: var(--muted);
}

.payout-setup-form .meta,
.payout-setup-form .notice {
  overflow-wrap: anywhere;
}

.payout-complete-card {
  gap: 14px;
}

.payout-complete-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.payout-complete-grid .metric-card strong,
.payout-complete-grid .metric-card span {
  overflow-wrap: anywhere;
}

.install-banner {
  margin-bottom: 12px;
}

.home-top-install {
  width: min(100%, var(--home-media-width));
  max-width: var(--home-media-width);
  margin: 0;
}

.slim-install-banner {
  width: 100%;
  min-height: 0;
  padding: 9px 12px;
}

.slim-install-banner > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.slim-install-banner .actions {
  gap: 8px;
}

.install-page {
  display: grid;
  gap: 18px;
}

.install-banner,
.install-primary {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.install-banner > *,
.install-primary > * {
  min-width: 0;
}

.install-banner .actions,
.install-primary .actions {
  justify-content: flex-end;
}

.install-icon-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.install-icon-lockup > div {
  min-width: 0;
}

.install-icon-lockup img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.install-link-preview {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.install-platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 18px;
}

.install-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

.install-grid > .install-primary {
  grid-column: 1 / -1;
  min-width: 0;
}

.install-grid > .install-primary .install-icon-lockup {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
}

.install-grid > .install-primary .actions {
  justify-content: flex-start;
}

.install-platform-card {
  align-content: start;
  gap: 16px;
}

.install-platform-card .badge {
  width: fit-content;
  margin-bottom: 10px;
}

.install-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--text);
}

.install-steps li::marker {
  color: var(--leaf);
  font-weight: 800;
}

.blocked-user-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legal-view {
  max-width: 980px;
}

.legal-standalone {
  padding: 24px;
}

.legal-header {
  align-items: start;
}

.legal-intro {
  padding: 18px;
  margin-bottom: 16px;
}

.legal-stack {
  display: grid;
  gap: 14px;
}

.legal-section {
  padding: 20px;
  display: grid;
  gap: 12px;
}

.legal-section h2 {
  color: var(--leaf);
  font-size: 1.35rem;
}

.legal-section h3 {
  color: var(--text);
  margin-top: 4px;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  line-height: 1.55;
}

.legal-section ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.faq-section {
  gap: 16px;
}

.faq-item {
  display: grid;
  gap: 6px;
}

.faq-item h3 {
  color: var(--text);
}

.support-section a {
  color: var(--leaf);
  font-weight: 800;
}

.support-view .support-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.support-hero strong {
  color: var(--text);
  font-size: 1.2rem;
}

.support-hero p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.support-donation-button[disabled] {
  cursor: not-allowed;
  opacity: 0.62;
}

.terms-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-gate-inner {
  width: min(100%, 620px);
  display: grid;
  gap: 24px;
  justify-items: center;
}

.auth-logo {
  width: min(78vw, 360px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 42px;
  border: 1px solid rgba(61, 199, 95, 0.28);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.38), 0 0 56px rgba(61, 199, 95, 0.18);
}

.auth-heading {
  text-align: center;
  display: grid;
  gap: 14px;
}

.auth-heading h1 {
  color: var(--text);
}

.auth-heading p {
  max-width: 540px;
  color: var(--muted);
  font-size: clamp(1.25rem, 4vw, 1.8rem);
  font-weight: 800;
  line-height: 1.25;
}

.auth-card {
  width: 100%;
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(17, 23, 17, 0.92);
}

.auth-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-mode-toggle button {
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  color: var(--text);
  background: transparent;
  font-weight: 800;
}

.auth-mode-toggle button.active {
  background: rgba(255, 255, 255, 0.34);
}

.auth-input {
  min-height: 64px;
  border-radius: 14px;
  font-size: 1.1rem;
}

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

.password-field .auth-input {
  min-width: 0;
}

.password-requirements {
  display: grid;
  gap: 6px;
}

.password-requirement {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.password-requirement span {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.password-requirement.met {
  color: var(--text);
}

.password-requirement.met span {
  color: var(--leaf);
}

.auth-submit {
  min-height: 72px;
  border-radius: 999px;
  font-size: 1.2rem;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--gold);
  font-weight: 900;
  min-height: 32px;
}

.auth-legal-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.auth-help {
  color: var(--muted);
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.35;
}

.terms-gate-panel {
  width: min(100%, 680px);
  padding: 24px;
  display: grid;
  gap: 18px;
}

.terms-gate-panel h1 {
  font-size: clamp(2.2rem, 8vw, 4.2rem);
}

.terms-summary {
  color: var(--muted);
  line-height: 1.45;
}

.terms-rule-list {
  display: grid;
  gap: 12px;
}

.terms-rule {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(245, 163, 46, 0.28);
  border-radius: 8px;
  background: rgba(245, 163, 46, 0.08);
}

.terms-rule span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(245, 163, 46, 0.16);
  color: var(--gold);
  font-weight: 900;
}

.terms-rule p {
  color: var(--text);
  line-height: 1.42;
}

.terms-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  font-weight: 800;
}

.terms-checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--leaf);
  flex: 0 0 auto;
}

.pwa-check-list {
  display: grid;
  gap: 8px;
}

.pwa-check-item {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.pwa-check-item.ready {
  border-color: rgba(61, 199, 95, 0.26);
}

.pwa-check-item.review {
  border-color: rgba(245, 163, 46, 0.3);
}

.pwa-check-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.upload-status-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(61, 199, 95, 0.28);
  border-radius: 8px;
  background: rgba(61, 199, 95, 0.07);
  color: var(--text);
}

.upload-step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.upload-step-list span {
  min-height: 32px;
  display: grid;
  place-items: center;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.upload-step-list span.done {
  border-color: rgba(61, 199, 95, 0.35);
  background: rgba(61, 199, 95, 0.1);
  color: var(--leaf);
}

.upload-step-list span.active {
  border-color: rgba(245, 163, 46, 0.48);
  background: rgba(245, 163, 46, 0.12);
  color: var(--gold);
}

.upload-status-panel[hidden] {
  display: none;
}

.upload-status-panel progress {
  width: 100%;
  height: 10px;
  accent-color: var(--leaf);
}

.review-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.review-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.studio-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 23, 17, 0.82);
}

.step-list {
  display: grid;
  gap: 10px;
}

.step-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.step-item.current {
  border-color: rgba(245, 163, 46, 0.42);
  background: rgba(245, 163, 46, 0.09);
}

.mobile-tabs {
  display: none;
}

.section-destination-tabs {
  position: sticky;
  top: 10px;
  z-index: 8;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(96px, max-content);
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 14px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(9, 12, 10, 0.86);
  backdrop-filter: blur(16px);
}

.section-destination-tabs .tab-button {
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
}

.direct-compose-panel .studio-toolbar {
  margin: 0;
}

.direct-conversation-row {
  cursor: pointer;
}

.direct-conversation-row.unread {
  border-color: rgba(245, 163, 46, 0.42);
  background: rgba(245, 163, 46, 0.075);
}

.direct-message-preview {
  display: -webkit-box;
  max-width: 720px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.direct-message-list {
  display: grid;
  gap: 10px;
  max-height: min(62vh, 720px);
  overflow: auto;
  padding-right: 4px;
}

.direct-message-bubble {
  position: relative;
  width: min(76%, 680px);
  padding: 12px 46px 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.direct-message-options {
  position: absolute;
  top: 5px;
  right: 7px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
}

.direct-message-options:hover,
.direct-message-options:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.modal-action-list {
  display: grid;
  gap: 8px;
}

.modal-action-list .ghost-button {
  width: 100%;
  justify-content: flex-start;
}

.direct-message-bubble.mine {
  justify-self: end;
  border-color: rgba(61, 199, 95, 0.38);
  background: rgba(61, 199, 95, 0.14);
}

.direct-message-bubble.theirs {
  justify-self: start;
}

.direct-message-meta {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

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

.direct-message-form textarea {
  width: 100%;
  min-height: 96px;
  max-height: 180px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(61, 199, 95, 0.32);
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
  resize: none;
  overflow: hidden;
  caret-color: var(--leaf);
  line-height: 1.45;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.direct-message-form textarea:focus {
  outline: none;
  border-color: rgba(61, 199, 95, 0.75);
  box-shadow: 0 0 0 3px rgba(61, 199, 95, 0.14);
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .sidebar .nav,
  .wallet {
    display: none;
  }

  .main {
    padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 16px;
  }

  .main:has(.live-detail-view) {
    padding: 0 0 calc(78px + env(safe-area-inset-bottom, 0px));
  }

  .live-detail-view {
    gap: 0;
  }

  .live-detail-view > div:first-child {
    display: grid;
    gap: 12px;
  }

  .live-detail-view > div:first-child > .player:first-child {
    width: 100vw;
    min-height: calc(100dvh - 78px - env(safe-area-inset-bottom, 0px));
    aspect-ratio: auto;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .live-detail-view > div:first-child > .player:first-child video {
    object-fit: cover;
  }

  .video-detail-view > div:first-child > .player:first-child {
    width: 100%;
    min-height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }

  .video-detail-view > div:first-child > .player:first-child video {
    object-fit: contain;
  }

  .topbar,
  .page-header,
  .session-banner,
  .pending-action,
  .file-mode-banner,
  .accounting-exceptions,
  .split,
  .review-row,
  .action-card,
  .studio-row,
  .continue-row,
  .feed-layout,
  .install-banner,
  .install-primary,
  .install-platform-grid,
  .backend-summary,
  .creator-hub,
  .compact-mission-layout,
  .fan-standing-overview,
  .manual-test-panel {
    grid-template-columns: 1fr;
    display: grid;
  }

  .topbar-wallet-slot,
  .route-home .topbar-wallet-slot {
    justify-self: stretch;
    width: min(260px, 100%);
  }

  .fan-standing-ladder {
    grid-template-columns: 1fr;
  }

  .leaderboard-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .leaderboard-score {
    grid-column: 2;
    justify-items: start;
  }

  .install-banner .actions,
  .install-primary .actions {
    justify-content: flex-start;
  }

  .backend-summary-counts {
    justify-content: flex-start;
  }

  .continue-row .ghost-button {
    justify-self: start;
  }

  .session-banner .actions {
    justify-content: flex-start;
  }

  .feed-actions {
    justify-items: start;
    grid-auto-flow: column;
    overflow: auto;
    max-width: 100%;
  }

  .feed-card-body {
    grid-template-columns: 1fr;
  }

  .feed-actions {
    justify-content: flex-start;
  }

  .home-experience-grid {
    grid-template-columns: 1fr;
  }

  .home-floating-wallet {
    position: static;
    width: min(100%, 220px);
    justify-self: end;
    margin-bottom: 2px;
  }

  .home-context-rail {
    position: static;
    order: -1;
  }

  .home-side-panel {
    display: none;
  }

  .home-reel-media {
    min-height: calc(100vh - 190px);
    height: calc(100vh - 190px);
  }

  .home-reel-copy {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .home-reel-copy h2 {
    font-size: 1.02rem;
  }

  .home-reel-copy p {
    -webkit-line-clamp: 2;
  }

  .home-live-strip {
    gap: 5px;
    font-size: 0.68rem;
  }

  .home-live-strip > span:not(.home-live-progress) {
    min-height: 22px;
    padding: 3px 6px;
  }

  .home-live-progress {
    width: 68px;
  }

  .home-reel-actions {
    width: 52px;
    gap: 6px;
    margin-bottom: 12px;
  }

  .home-reel-action {
    min-height: 46px;
    padding: 4px 2px;
  }

  .home-reel-action span {
    width: 26px;
    height: 26px;
  }

  .home-reel-action small {
    max-width: 46px;
    font-size: 0.58rem;
  }

  .home-reel-card.comments-open .home-reel-copy {
    right: 12px;
    bottom: min(46vh, 340px);
  }

  .home-inline-comments {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: min(48vh, 380px);
    padding: 12px;
    border-left: 0;
    border-top: 1px solid rgba(233, 237, 223, 0.16);
    border-radius: 8px 8px 0 0;
  }

  .home-inline-comments::after {
    display: none;
  }

  .home-comment-composer {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .home-comment-composer .avatar {
    display: none;
  }

  .home-note-shell {
    min-height: calc(100vh - 220px);
    padding: 18px;
  }

  .hero {
    min-height: 370px;
  }

  .mobile-tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
    background: rgba(9, 12, 10, 0.9);
    backdrop-filter: blur(18px);
  }

  .mobile-tabs button {
    min-width: 0;
    min-height: 48px;
    padding: 7px 3px;
    font-size: 0.68rem;
    line-height: 1.15;
  }

  .mobile-tabs .tab-button {
    display: grid;
    place-items: center;
    gap: 3px;
  }

  .mobile-tabs .tab-button .nav-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 9px;
    font-size: 1.4rem;
    line-height: 1;
  }

  .mobile-tabs .tab-button small {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-tabs .mobile-create-button {
    color: var(--leaf);
  }

  .mobile-tabs .mobile-create-button .nav-icon {
    width: 52px;
    height: 38px;
    min-width: 52px;
    min-height: 38px;
    border-radius: 999px;
    background: var(--leaf);
    color: #050805;
    font-size: 0;
    box-shadow: 0 10px 24px rgba(61, 199, 95, 0.25);
  }

  .mobile-tabs .mobile-create-button .nav-icon::before {
    width: 21px;
    height: 16px;
  }

  .mobile-tabs .mobile-create-button .nav-icon::after {
    right: 6px;
  }

  .pwa-check-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .direct-compose-panel .studio-toolbar,
  .direct-message-form {
    grid-template-columns: 1fr;
  }

  .direct-message-bubble {
    width: min(92%, 680px);
  }
}
