@import url("/packages/design-tokens/tokens.css");


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

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

.boot-error {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: start;
  gap: 10px;
  padding: 32px;
  color: var(--text);
  background: var(--ink-950);
}

.boot-error strong {
  font-size: 24px;
}

.boot-error p {
  color: var(--text-soft);
}

.surface-user {
  min-height: 100vh;
  color: var(--text);
  background: var(--ink-950);
}

.surface-admin {
  min-height: 100vh;
  color: var(--admin-ink);
  background: var(--admin-bg);
}

.user-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 30px;
  background: rgba(6, 16, 30, 0.94);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(16px);
}

.brand-button,
.nav-button,
.icon-button,
.sport-item,
.event-cover,
.back-button,
.text-button,
.mini-icon-button,
.team-list-item,
.send-button,
.admin-icon-btn,
.admin-action,
.admin-link,
.modal-close {
  border: 0;
}

.brand-button {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.brand-button strong,
.brand-button small,
.admin-brand strong,
.admin-brand small {
  display: block;
}

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

.brand-button small {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 11px;
}

.brand-symbol {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: var(--violet);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  box-shadow: 0 0 24px rgba(119, 88, 255, 0.34);
  font-size: 15px;
  font-weight: 900;
}

.user-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  color: var(--text-soft);
  background: transparent;
  border-radius: 7px;
  font-weight: 700;
}

.nav-button:hover,
.nav-button.active {
  color: #fff;
  background: var(--ink-800);
}

.nav-button.active svg {
  color: var(--violet-2);
}

.topbar-actions,
.admin-topbar > div,
.view-controls,
.action-row,
.spotlight-actions,
.publish-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.mini-icon-button,
.admin-icon-btn,
.modal-close {
  position: relative;
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--text-soft);
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}

.icon-button:hover,
.icon-button.active {
  color: #fff;
  border-color: rgba(119, 88, 255, 0.64);
}

.notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: var(--coral);
  border: 2px solid var(--ink-800);
  border-radius: 50%;
}

.admin-switch,
.button,
.admin-primary,
.back-to-user {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.admin-switch {
  color: var(--text);
  background: var(--ink-850);
  border: 1px solid var(--line-dark);
}

.user-main {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 72px;
}

.app-heading,
.section-heading,
.admin-page-heading,
.form-section-title,
.profile-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.app-heading {
  margin-bottom: 22px;
}

.compact-heading {
  align-items: center;
}

.app-heading h1,
.profile-header h1 {
  margin-bottom: 7px;
  font-size: 34px;
  line-height: 1.15;
}

.app-heading p,
.profile-header p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.location-line,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.search-box,
.admin-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-box {
  width: min(430px, 40vw);
  min-height: 46px;
  padding: 0 14px;
  color: var(--text-soft);
  background: var(--ink-850);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}

.search-box input,
.admin-search input {
  width: 100%;
  color: inherit;
  background: transparent;
  border: 0;
  outline: 0;
}

.search-box input::placeholder {
  color: #76849d;
}

.search-box button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: var(--violet);
  border: 0;
  border-radius: 6px;
}

.search-result-note {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 12px;
}

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

.spotlight {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #101a2b;
  border: 1px solid rgba(119, 88, 255, 0.42);
  border-radius: 8px;
  box-shadow: var(--shadow-dark), 0 0 46px rgba(119, 88, 255, 0.16);
}

.spotlight > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-overlay,
.event-detail-overlay {
  position: absolute;
  inset: 0;
}

.spotlight-overlay {
  background: linear-gradient(90deg, rgba(3, 9, 18, 0.78) 0%, rgba(3, 9, 18, 0.42) 46%, rgba(3, 9, 18, 0.12) 100%);
}

.event-detail-overlay {
  background: rgba(3, 9, 18, 0.61);
}

.spotlight-content {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  padding: 70px 48px 110px;
}

.spotlight-content h2 {
  margin-bottom: 10px;
  font-size: 54px;
  line-height: 1.05;
}

.spotlight-content p {
  margin-bottom: 24px;
  color: #d9e0f0;
  font-size: 17px;
}

.carousel-spotlight > img {
  animation: carousel-image-in 420ms ease both;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.carousel-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: rgba(6, 16, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.carousel-arrow svg {
  width: 17px;
  height: 17px;
}

.carousel-dots {
  display: flex;
  gap: 7px;
}

.carousel-dots button {
  width: 22px;
  height: 4px;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
  border: 0;
  border-radius: 2px;
}

.carousel-dots button.active {
  width: 36px;
  background: #fff;
}

@keyframes carousel-image-in {
  from { opacity: 0.7; transform: scale(1.015); }
  to { opacity: 1; transform: scale(1); }
}

.neon-tag,
.heat-badge,
.outline-tag,
.status-pill,
.admin-status,
.risk-level {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 850;
}

.neon-tag {
  margin-bottom: 16px;
  color: #fff;
  background: var(--violet);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 22px rgba(119, 88, 255, 0.38);
}

.neon-tag svg,
.heat-badge svg {
  width: 13px;
  height: 13px;
}

.button {
  position: relative;
  overflow: hidden;
  color: var(--text);
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
  isolation: isolate;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 200ms ease, filter 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(155, 108, 255, 0.68);
}

.button.primary {
  color: #fff;
  background: var(--violet);
  border-color: var(--violet);
  box-shadow: 0 0 22px rgba(119, 88, 255, 0.3);
}

.surface-user .button.primary {
  background:
    linear-gradient(112deg, #435cff 0%, #7650ff 34%, #b54fe6 66%, #ff4d7d 100%) padding-box,
    linear-gradient(90deg, #50e6ff, #7b62ff, #ff66aa, #ffd166, #50e6ff) border-box;
  background-size: 100% 100%, 260% 100%;
  border: 1px solid transparent;
  box-shadow: 0 7px 20px rgba(74, 88, 255, 0.25), 0 0 12px rgba(100, 225, 255, 0.18);
  animation: gfr-button-border-flow 5s linear infinite;
}

.surface-user .button.primary::before {
  position: absolute;
  inset: 1px;
  z-index: -1;
  content: "";
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16), transparent 34%, rgba(255, 255, 255, 0.08));
  border-radius: 6px;
  pointer-events: none;
}

.surface-user .button.primary::after {
  position: absolute;
  top: -60%;
  left: -35%;
  width: 28%;
  height: 220%;
  content: "";
  background: rgba(255, 255, 255, 0.28);
  filter: blur(7px);
  opacity: 0;
  pointer-events: none;
  transform: rotate(18deg) translateX(-180%);
}

.surface-user .button.primary:hover {
  border-color: transparent;
  box-shadow: 0 9px 26px rgba(90, 83, 255, 0.38), 0 0 22px rgba(82, 225, 255, 0.28), 0 0 34px rgba(255, 83, 164, 0.18);
  filter: saturate(1.12) brightness(1.06);
  transform: translateY(-2px);
}

.surface-user .button.primary:hover::after {
  opacity: 1;
  animation: gfr-button-shine 720ms ease-out both;
}

.surface-user .button.primary:active {
  box-shadow: 0 3px 12px rgba(75, 83, 255, 0.28), 0 0 12px rgba(82, 225, 255, 0.18);
  filter: saturate(1.04) brightness(0.98);
  transform: translateY(1px) scale(0.985);
}

.surface-user .button.secondary:hover,
.surface-user .button.glass:hover {
  box-shadow: 0 6px 18px rgba(54, 130, 255, 0.18), 0 0 14px rgba(75, 208, 255, 0.12);
}

.surface-user .button:disabled {
  box-shadow: none;
  cursor: not-allowed;
  filter: grayscale(0.25) opacity(0.58);
  transform: none;
  animation: none;
}

@keyframes gfr-button-border-flow {
  to { background-position: 0 0, 260% 0; }
}

@keyframes gfr-button-shine {
  from { transform: rotate(18deg) translateX(-180%); }
  to { transform: rotate(18deg) translateX(620%); }
}

.button.secondary {
  color: #fff;
  background: #2b4fa4;
  border-color: #3f66c0;
}

.button.glass {
  background: rgba(9, 21, 40, 0.72);
  border-color: rgba(216, 225, 244, 0.28);
}

.button.pay-button {
  color: #fff;
  background: #1aad5b;
  border-color: #39d47b;
}

.button.success-button {
  color: #d9fff0;
  background: rgba(69, 213, 146, 0.18);
  border-color: rgba(69, 213, 146, 0.38);
}

.wide {
  width: 100%;
}

.spotlight-metrics {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 8px;
}

.spotlight-metrics span {
  padding: 12px;
  color: var(--text-soft);
  background: rgba(6, 16, 30, 0.84);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  font-size: 11px;
}

.spotlight-metrics strong {
  display: block;
  margin-bottom: 3px;
  color: #fff;
  font-size: 19px;
}

.sport-shortcuts {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 38px;
}

.sport-item {
  display: grid;
  min-width: 0;
  gap: 7px;
  justify-items: center;
  padding: 10px 4px;
  color: var(--text-soft);
  background: transparent;
  border-radius: 8px;
  font-size: 12px;
}

.sport-item:hover {
  color: #fff;
  background: var(--ink-850);
}

.sport-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
  border-radius: 50%;
}

.sport-icon.coral,
.achievement-icon.coral {
  color: var(--coral);
  box-shadow: 0 0 18px rgba(255, 98, 111, 0.3);
}

.sport-icon.amber,
.achievement-icon.amber {
  color: var(--amber);
  box-shadow: 0 0 18px rgba(242, 173, 76, 0.28);
}

.sport-icon.cyan,
.achievement-icon.cyan {
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(55, 215, 239, 0.26);
}

.sport-icon.green,
.achievement-icon.green {
  color: var(--green);
}

.sport-icon.pink,
.achievement-icon.pink {
  color: var(--pink);
}

.sport-icon.violet,
.achievement-icon.violet {
  color: var(--violet-2);
}

.content-section {
  margin-top: 34px;
}

.section-heading {
  margin-bottom: 15px;
}

.section-heading h2,
.detail-section h2,
.form-section h2,
.signup-summary h2,
.payment-summary h2,
.team-sidebar h2,
.admin-panel h2 {
  margin-bottom: 4px;
  font-size: 22px;
}

.text-button,
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 0;
  color: var(--text-soft);
  background: transparent;
  font-weight: 750;
}

.text-button:hover,
.back-button:hover {
  color: #fff;
}

.back-button {
  margin-bottom: 18px;
}

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

.event-card,
.partner-card,
.achievement-grid article {
  overflow: hidden;
  background: var(--ink-850);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.event-card:hover,
.partner-card:hover {
  border-color: rgba(119, 88, 255, 0.58);
}

.event-cover {
  position: relative;
  width: 100%;
  height: 192px;
  padding: 0;
  background: var(--ink-800);
}

.event-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(5, 12, 24, 0.22);
}

.heat-badge,
.event-city {
  position: absolute;
  z-index: 2;
  top: 12px;
}

.heat-badge {
  left: 12px;
  color: #fff;
  background: rgba(8, 17, 33, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.heat-badge.coral { color: #ffdbe0; border-color: rgba(255, 98, 111, 0.56); }
.heat-badge.pink { color: #ffd8ed; border-color: rgba(237, 79, 154, 0.58); }
.heat-badge.violet { color: #e5deff; border-color: rgba(155, 108, 255, 0.66); }
.heat-badge.amber { color: #ffe7bd; border-color: rgba(242, 173, 76, 0.58); }
.heat-badge.cyan { color: #ccf8ff; border-color: rgba(55, 215, 239, 0.58); }

.event-city {
  right: 12px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(8, 17, 33, 0.72);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.event-card-body {
  padding: 16px;
}

.event-card-body h3 {
  margin-bottom: 7px;
  font-size: 18px;
}

.event-card-body p {
  margin-bottom: 14px;
  color: var(--text-soft);
  font-size: 13px;
}

.event-meta,
.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.event-meta {
  margin-bottom: 9px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
}

.event-card-footer strong {
  color: #fff;
  font-size: 17px;
}

.mini-icon-button {
  width: 34px;
  height: 34px;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  gap: 15px;
  margin-top: 34px;
}

.two-column-section.single-column {
  grid-template-columns: 1fr;
}

.activity-feed,
.passport-mini,
.match-console,
.safety-strip,
.city-radar,
.detail-section,
.signup-summary,
.form-section,
.payment-summary,
.order-detail,
.team-invite,
.team-list,
.chat-panel,
.team-sidebar,
.publish-form,
.passport-hero,
.charity-meter,
.ranking-panel,
.profile-header,
.profile-metrics,
.profile-list,
.order-list,
.ledger-list,
.settings-list,
.success-state {
  background: var(--ink-850);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}

.activity-feed,
.passport-mini,
.match-console,
.safety-strip,
.city-radar,
.detail-section,
.signup-summary,
.form-section,
.payment-summary,
.order-detail,
.team-invite,
.team-sidebar,
.publish-form,
.passport-hero,
.charity-meter,
.ranking-panel,
.profile-header,
.profile-metrics,
.success-state {
  padding: 20px;
}

.activity-row,
.profile-list article,
.ledger-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-dark);
}

.activity-row:last-child,
.profile-list article:last-child,
.ledger-list article:last-child {
  border-bottom: 0;
}

.activity-row p,
.profile-list p,
.ledger-list p,
.passport-mini p,
.charity-meter p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 12px;
}

.avatar {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--violet);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.avatar.large {
  width: 56px;
  height: 56px;
  font-size: 18px;
}

.avatar.xl {
  width: 76px;
  height: 76px;
  font-size: 25px;
  box-shadow: 0 0 28px rgba(119, 88, 255, 0.34);
}

.capacity {
  color: var(--cyan);
  font-weight: 850;
}

.passport-score,
.summary-price {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 12px;
}

.passport-score strong,
.summary-price strong,
.charity-meter > strong {
  font-size: 30px;
}

.passport-score span,
.summary-price span {
  color: var(--text-soft);
  font-size: 11px;
}

.progress-track,
.fund-progress {
  height: 7px;
  overflow: hidden;
  background: rgba(152, 170, 203, 0.16);
  border-radius: 999px;
}

.progress-track span,
.fund-progress span {
  display: block;
  height: 100%;
  background: var(--violet);
}

.passport-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.passport-stats span,
.passport-counts span,
.profile-metrics span {
  color: var(--text-soft);
  text-align: center;
  font-size: 11px;
}

.passport-stats strong,
.passport-counts strong,
.profile-metrics strong {
  display: block;
  margin-bottom: 3px;
  color: #fff;
  font-size: 20px;
}

.muted-light {
  color: var(--text-soft);
  font-size: 12px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.segmented {
  display: flex;
  gap: 3px;
  padding: 4px;
  border-radius: 8px;
}

.dark-segmented {
  background: var(--ink-850);
  border: 1px solid var(--line-dark);
}

.segmented button {
  min-height: 36px;
  padding: 0 13px;
  color: var(--text-soft);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-weight: 750;
}

.segmented button.active {
  color: #fff;
  background: var(--violet);
}

.compact-select {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  color: var(--text-soft);
  background: var(--ink-850);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  font-size: 12px;
}

.compact-select select {
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
}

.compact-select option {
  color: #111;
}

.city-radar {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  min-height: 148px;
}

.city-radar h2 {
  margin-bottom: 5px;
}

.city-radar p {
  margin-bottom: 0;
  color: var(--text-soft);
}

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

.city-points button {
  display: grid;
  min-height: 78px;
  align-content: center;
  justify-items: center;
  gap: 4px;
  color: #fff;
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}

.city-points button > span {
  width: 12px;
  height: 12px;
  background: var(--cyan);
  border: 3px solid rgba(55, 215, 239, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--cyan);
}

.city-points small {
  color: var(--text-soft);
}

.event-detail-hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(119, 88, 255, 0.38);
  border-radius: 8px;
}

.event-detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-detail-content {
  position: absolute;
  z-index: 2;
  left: 32px;
  right: 32px;
  bottom: 28px;
}

.event-detail-content h1 {
  margin: 14px 0 8px;
  font-size: 42px;
}

.event-detail-content p {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #dce5f4;
}

.tag-row,
.security-row,
.partner-tags,
.match-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row .heat-badge {
  position: static;
}

.tag-row .neon-tag {
  margin-bottom: 0;
}

.avatar-stack {
  display: flex;
  align-items: center;
  margin-top: 15px;
}

.avatar-stack > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin-right: -6px;
  color: #fff;
  background: var(--violet);
  border: 2px solid var(--ink-950);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

.avatar-stack small {
  margin-left: 14px;
  color: var(--text-soft);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 16px;
  margin-top: 16px;
}

.detail-main,
.registration-form-stack {
  display: grid;
  gap: 14px;
}

.detail-section p,
.signup-summary li,
.form-section-title p,
.payment-note,
.team-sidebar p,
.publish-form p {
  color: var(--text-soft);
  line-height: 1.65;
}

.outline-tag {
  color: #dce5ff;
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
}

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

.timeline > div {
  padding: 13px;
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}

.timeline span {
  display: block;
  margin-bottom: 8px;
  color: var(--violet-2);
  font-weight: 900;
}

.timeline strong {
  font-size: 12px;
}

.group-options {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.group-option {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 15px;
  color: var(--text);
  text-align: left;
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}

.group-option.active {
  border-color: var(--violet-2);
  box-shadow: inset 0 0 0 1px var(--violet-2), 0 0 20px rgba(119, 88, 255, 0.12);
}

.group-option strong,
.group-option small {
  display: block;
}

.group-option small {
  margin-top: 5px;
  color: var(--text-soft);
}

.group-option b {
  color: #fff;
  font-size: 18px;
}

.security-row {
  margin-top: 14px;
}

.security-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #dbe6fb;
  font-size: 12px;
}

.event-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}

.event-trust-strip > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 82px;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--ink-850);
}

.event-trust-strip svg {
  width: 22px;
  height: 22px;
  color: var(--cyan);
}

.event-trust-strip strong,
.event-trust-strip small {
  display: block;
}

.event-trust-strip small {
  margin-top: 4px;
  color: var(--text-soft);
  line-height: 1.35;
}

.mobile-registration-bar {
  display: none;
}

.signup-summary,
.payment-summary {
  position: sticky;
  top: 88px;
  align-self: start;
}

.signup-summary ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  color: var(--text-soft);
}

.signup-summary .button + .button {
  margin-top: 9px;
}

.registration-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: min(430px, 100%);
}

.registration-steps span {
  padding: 9px 5px;
  color: #75849e;
  text-align: center;
  background: var(--ink-850);
  border-bottom: 2px solid var(--line-dark);
  font-size: 11px;
}

.registration-steps .done,
.registration-steps .active {
  color: #fff;
  border-color: var(--violet);
}

.registration-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.55fr);
  gap: 16px;
}

.form-section-title {
  justify-content: flex-start;
  align-items: center;
}

.form-section-title > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: var(--violet);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.form-section-title p {
  margin-bottom: 0;
  font-size: 12px;
}

.mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 15px 0;
}

.mode-selector.single-mode {
  grid-template-columns: 1fr;
}

.mode-tile {
  display: grid;
  min-height: 112px;
  align-content: center;
  gap: 7px;
  padding: 14px;
  color: var(--text);
  text-align: left;
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}

.mode-tile.active {
  border-color: var(--violet-2);
  box-shadow: inset 0 0 0 1px var(--violet-2);
}

.mode-tile small {
  color: var(--text-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 15px;
}

.form-span-2 {
  grid-column: 1 / -1;
}

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

.field-label {
  display: grid;
  gap: 7px;
  margin-top: 13px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 750;
}

.field-label > small,
.field-hint {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
}

.field-hint {
  line-height: 1.6;
}

.field-label input,
.field-label select,
.field-label textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text);
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  outline: 0;
}

.field-label textarea {
  min-height: 110px;
  padding-top: 12px;
  resize: vertical;
}

.field-label input:focus,
.field-label select:focus,
.field-label textarea:focus {
  border-color: var(--violet-2);
  box-shadow: 0 0 0 3px rgba(119, 88, 255, 0.13);
}

.field-label option {
  color: #111;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 12px;
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--violet);
}

.update-preference {
  margin-top: 20px;
}

.agreement-stack {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-dark);
}

.agreement-stack .check-row {
  margin-top: 0;
}

.payment-event {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  margin: 17px 0;
}

.payment-event img {
  width: 68px;
  height: 56px;
  object-fit: cover;
  border-radius: 7px;
}

.payment-event strong,
.payment-event span {
  display: block;
}

.payment-event span {
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 12px;
}

.payment-summary dl {
  display: grid;
  gap: 11px;
  margin: 18px 0;
}

.payment-summary dl > div,
.total-row,
.countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.payment-summary dt {
  color: var(--text-soft);
}

.payment-summary dd {
  margin: 0;
  font-weight: 800;
}

.total-row {
  padding: 16px 0;
  border-top: 1px solid var(--line-dark);
}

.total-row strong {
  color: var(--coral);
  font-size: 27px;
}

.payment-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 11px;
}

.success-state {
  max-width: 720px;
  margin: 0 auto 18px;
  text-align: center;
}

.success-icon {
  display: inline-grid;
  width: 62px;
  height: 62px;
  place-items: center;
  margin-bottom: 14px;
  color: #052719;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(69, 213, 146, 0.3);
}

.success-icon svg {
  width: 28px;
  height: 28px;
}

.success-state h1 {
  margin-bottom: 7px;
  font-size: 34px;
}

.success-state p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
}

.ticket-body {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 16px 0;
  padding: 14px;
  background: var(--ink-800);
  border: 1px dashed rgba(151, 172, 207, 0.4);
  border-radius: 8px;
}

.ticket-body img {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: 7px;
}

.ticket-body p {
  color: var(--text-soft);
}

.ticket-code {
  padding: 15px;
  color: var(--cyan);
  text-align: center;
  background: var(--ink-950);
  border: 1px solid rgba(55, 215, 239, 0.32);
  border-radius: 7px;
  font-family: monospace;
  font-size: 17px;
  font-weight: 900;
}

.team-invite {
  text-align: center;
}

.team-ring,
.donut {
  display: grid;
  width: 140px;
  height: 140px;
  place-items: center;
  align-content: center;
  margin: 18px auto;
  background: var(--ink-800);
  border: 8px solid var(--violet);
  border-right-color: var(--pink);
  border-radius: 50%;
  box-shadow: 0 0 32px rgba(119, 88, 255, 0.22);
}

.team-ring strong {
  font-size: 30px;
}

.team-ring span {
  color: var(--text-soft);
  font-size: 11px;
}

.team-invite p {
  color: var(--text-soft);
  line-height: 1.65;
}

.match-console {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  min-height: 150px;
  margin-bottom: 18px;
}

.match-console > div:first-child {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 13px;
  align-items: center;
}

.match-console > div:first-child p {
  grid-column: 2;
  margin: 0;
  color: var(--text-soft);
}

.pulse-core {
  display: grid;
  grid-row: span 2;
  width: 72px;
  height: 72px;
  place-items: center;
  color: var(--cyan);
  background: var(--ink-950);
  border: 1px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(55, 215, 239, 0.24);
}

.pulse-core svg {
  width: 28px;
  height: 28px;
}

.match-filters {
  justify-content: flex-end;
}

.match-filters span,
.partner-tags span {
  padding: 7px 9px;
  color: #d6e1f3;
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  font-size: 11px;
}

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

.partner-card {
  padding: 17px;
}

.partner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.partner-card h3 {
  margin: 15px 0 4px;
}

.partner-card > p {
  color: var(--text-soft);
  font-size: 12px;
}

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

.partner-action-row .button.glass {
  min-width: 68px;
}

.match-score {
  color: var(--cyan);
  font-size: 24px;
  font-weight: 900;
  text-align: right;
}

.match-score small {
  display: block;
  color: var(--text-soft);
  font-size: 10px;
}

.partner-tags {
  display: grid;
  gap: 7px;
  margin: 15px 0;
}

.safety-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 17px;
}

.safety-strip > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--green);
  background: rgba(69, 213, 146, 0.1);
  border-radius: 8px;
}

.safety-strip p {
  margin: 3px 0 0;
  color: var(--text-soft);
  font-size: 12px;
}

.team-chat-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr) 270px;
  gap: 12px;
  min-height: 650px;
}

.team-list {
  overflow: hidden;
  align-self: stretch;
}

.team-list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  color: var(--text);
  text-align: left;
  background: transparent;
  border-bottom: 1px solid var(--line-dark);
}

.team-list-item.active {
  background: var(--ink-800);
  box-shadow: inset 3px 0 var(--violet);
}

.team-list-item strong,
.team-list-item small {
  display: block;
}

.team-list-item small {
  margin-top: 4px;
  color: var(--text-soft);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--amber);
  border-radius: 50%;
}

.status-dot.online {
  background: var(--green);
}

.chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  overflow: hidden;
}

.chat-panel > header {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 17px;
  border-bottom: 1px solid var(--line-dark);
}

.chat-panel header h2,
.chat-panel header p {
  margin-bottom: 0;
}

.chat-panel header p {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 11px;
}

.chat-messages {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 0;
  overflow: auto;
  padding: 22px 18px;
}

.chat-message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  width: min(75%, 520px);
}

.chat-message.mine {
  justify-self: end;
}

.chat-message.mine > div {
  order: -1;
}

.chat-message small {
  color: var(--text-soft);
  font-size: 10px;
}

.chat-message p {
  width: fit-content;
  margin: 5px 0 0;
  padding: 10px 12px;
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}

.chat-message.mine p {
  margin-left: auto;
  background: rgba(119, 88, 255, 0.25);
  border-color: rgba(119, 88, 255, 0.5);
}

.file-message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  max-width: 380px;
  padding: 12px;
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}

.file-message > svg {
  color: var(--coral);
}

.file-message strong,
.file-message small {
  display: block;
}

.file-message small {
  margin-top: 4px;
  color: var(--text-soft);
}

.chat-composer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line-dark);
}

.chat-composer input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--text);
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  outline: 0;
}

.send-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--violet);
  border-radius: 8px;
}

.team-sidebar {
  align-self: stretch;
}

.team-sidebar h3 {
  margin-top: 23px;
}

.team-settings-panel {
  margin-top: 18px;
  padding-top: 4px;
  border-top: 1px solid var(--line-dark);
}

.team-settings-panel p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-dark);
}

.team-settings-panel p span {
  color: var(--text-soft);
  font-size: 10px;
}

.team-settings-panel p strong {
  font-size: 12px;
}

.countdown {
  margin: 12px 0 18px;
  padding: 12px 0;
  color: var(--text-soft);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.countdown strong {
  color: var(--coral);
  font-family: monospace;
  font-size: 16px;
}

.publish-form {
  max-width: 900px;
}

.publish-form .form-section {
  padding: 0;
  background: transparent;
  border: 0;
}

.publish-form .form-section + .form-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
}

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

.publish-type input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.publish-type > span {
  display: grid;
  min-height: 94px;
  align-content: center;
  gap: 8px;
  padding: 12px;
  color: var(--text-soft);
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  cursor: pointer;
}

.publish-type input:checked + span {
  color: #fff;
  border-color: var(--violet-2);
  box-shadow: inset 0 0 0 1px var(--violet-2);
}

.publish-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.growth-tabs,
.profile-tabs {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 17px;
}

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

.passport-profile {
  display: flex;
  align-items: center;
  gap: 15px;
}

.passport-profile h2 {
  margin-bottom: 5px;
}

.passport-profile p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.passport-emblem {
  position: relative;
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  color: var(--pink);
  background: var(--ink-800);
  border: 2px solid var(--pink);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(237, 79, 154, 0.28);
}

.passport-emblem svg {
  width: 56px;
  height: 56px;
}

.passport-emblem span {
  position: absolute;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.passport-counts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
}

.city-stamp-grid,
.achievement-grid,
.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.city-stamp {
  display: grid;
  min-height: 70px;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: #6e7e97;
  background: var(--ink-850);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  font-size: 12px;
}

.city-stamp.lit {
  color: var(--cyan);
  border-color: rgba(55, 215, 239, 0.42);
}

.charity-meter {
  align-self: stretch;
}

.charity-meter small {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
}

.growth-identity-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(240px, 1.1fr) minmax(300px, 1.2fr);
  gap: 20px;
  align-items: center;
  margin: 16px 0;
  padding: 20px;
  background: linear-gradient(115deg, rgba(255, 77, 46, 0.17), rgba(55, 215, 239, 0.08) 58%, rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 115, 82, 0.32);
  border-radius: 8px;
}

.growth-level-mark,
.growth-level-mark > span {
  display: flex;
  align-items: center;
}

.growth-level-mark {
  gap: 14px;
}

.growth-level-mark > span {
  width: 58px;
  height: 58px;
  justify-content: center;
  color: #fff;
  background: var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(255, 91, 87, 0.28);
}

.growth-level-mark svg {
  width: 28px;
  height: 28px;
}

.growth-level-mark small,
.growth-score-block span,
.growth-score-grid small {
  color: var(--text-soft);
}

.growth-level-mark strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
}

.growth-score-block > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.growth-score-block strong {
  color: var(--amber);
  font-size: 30px;
}

.growth-score-block strong small {
  margin-left: 3px;
  color: var(--text-soft);
  font-size: 13px;
}

.growth-score-block p {
  margin: 7px 0 0;
  color: var(--text-soft);
  font-size: 12px;
}

.growth-progress {
  overflow: hidden;
  height: 7px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.growth-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--amber));
  border-radius: inherit;
}

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

.growth-score-grid span {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: 7px;
}

.growth-score-grid b {
  font-size: 22px;
}

.growth-score-grid small {
  font-size: 10px;
}

.city-puzzle-dashboard {
  display: grid;
  gap: 16px;
}

.city-puzzle-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 24px;
  align-items: center;
  padding: 24px;
  background: linear-gradient(112deg, rgba(255, 77, 46, 0.2), rgba(245, 158, 11, 0.08) 44%, rgba(55, 215, 239, 0.1));
  border: 1px solid rgba(255, 115, 82, 0.34);
  border-radius: 8px;
}

.city-puzzle-hero h2,
.city-puzzle-sidebar h3 {
  margin: 4px 0 7px;
}

.city-puzzle-hero p {
  margin: 0;
  color: var(--text-soft);
}

.city-puzzle-score {
  display: grid;
  justify-items: end;
}

.city-puzzle-score strong {
  color: var(--amber);
  font-size: 42px;
  line-height: 1;
}

.city-puzzle-score strong small {
  color: var(--text-soft);
  font-size: 16px;
}

.city-puzzle-score span,
.city-puzzle-hero footer,
.city-map-disclaimer {
  color: var(--text-soft);
  font-size: 12px;
}

.city-puzzle-progress {
  grid-column: 1 / -1;
  overflow: hidden;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.city-puzzle-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--cyan));
  border-radius: inherit;
  transition: width 350ms ease;
}

.city-puzzle-hero footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.city-puzzle-hero footer span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.city-puzzle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 16px;
  align-items: start;
}

.city-puzzle-board,
.city-puzzle-sidebar section {
  padding: 20px;
  background: var(--ink-850);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}

.city-puzzle-region + .city-puzzle-region {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
}

.city-puzzle-region > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.city-puzzle-region > header span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--cyan);
  font-size: 12px;
}

.city-puzzle-region > header svg {
  width: 14px;
  height: 14px;
}

.city-puzzle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 7px;
}

.city-puzzle-piece {
  display: grid;
  min-width: 0;
  aspect-ratio: 1.16;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 15px 11px;
  color: #6f7d91;
  background: #101a29;
  border: 0;
  clip-path: polygon(0 0, 36% 0, 36% 7%, 43% 14%, 57% 14%, 64% 7%, 64% 0, 100% 0, 100% 36%, 93% 36%, 86% 43%, 86% 57%, 93% 64%, 100% 64%, 100% 100%, 64% 100%, 64% 93%, 57% 86%, 43% 86%, 36% 93%, 36% 100%, 0 100%, 0 64%, 7% 64%, 14% 57%, 14% 43%, 7% 36%, 0 36%);
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, color 160ms ease;
}

.city-puzzle-piece:hover,
.city-puzzle-piece:focus-visible {
  color: #b8c5d7;
  filter: brightness(1.2);
  transform: translateY(-2px);
}

.city-puzzle-piece.unlocked {
  color: #fff;
  background: linear-gradient(145deg, #ff4d2e, #f59e0b 58%, #2aadc5);
  filter: drop-shadow(0 6px 12px rgba(255, 77, 46, 0.18));
}

.city-puzzle-piece > span,
.city-puzzle-piece svg {
  width: 18px;
  height: 18px;
}

.city-puzzle-piece strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 12px;
  letter-spacing: 0;
}

.city-puzzle-piece small {
  font-size: 9px;
  opacity: 0.78;
}

.city-map-disclaimer {
  margin: 18px 0 0;
  line-height: 1.6;
}

.city-puzzle-sidebar {
  display: grid;
  gap: 12px;
}

.city-milestone,
.city-next-event {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 11px 0;
  color: var(--text-soft);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
}

.city-milestone:last-child,
.city-next-event:last-child {
  border-bottom: 0;
}

.city-milestone > span,
.city-next-event > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: var(--ink-800);
  border-radius: 50%;
}

.city-milestone.unlocked {
  color: var(--amber);
}

.city-milestone strong,
.city-next-event strong,
.city-milestone small,
.city-next-event small {
  display: block;
}

.city-milestone strong,
.city-next-event strong {
  color: #fff;
}

.city-milestone small,
.city-next-event small {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 10px;
}

.city-next-event {
  cursor: pointer;
}

.city-next-event:hover strong {
  color: var(--cyan);
}

.profile-level-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  width: fit-content;
  margin-top: 9px;
  padding: 6px 9px;
  color: #ffe7c0;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 6px;
  font-size: 11px;
}

.profile-level-chip svg {
  width: 14px;
  height: 14px;
}

.poster-studio {
  margin: 18px 0;
  padding: 20px;
  background: var(--ink-900);
  border: 1px solid rgba(55, 215, 239, 0.28);
  border-radius: 8px;
}

.poster-studio-head,
.poster-studio-grid,
.poster-photo-upload span,
.poster-template,
.poster-result-picker label,
.poster-share-actions {
  display: flex;
}

.poster-studio-head {
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.poster-studio-head h2 {
  margin: 5px 0 7px;
  font-size: 22px;
}

.poster-studio-head p,
.poster-preview-shell > small {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
}

.auth-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  grid-template-rows: auto 1fr;
  gap: 32px;
  overflow: hidden;
  padding: 28px clamp(24px, 5vw, 72px) 44px;
  color: #fff;
  background: #09111c;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(4, 10, 18, 0.36), rgba(4, 10, 18, 0.72) 58%, rgba(4, 10, 18, 0.96)), url("/assets/carousel/gfr-guangzhou-functional-fitness.jpg");
  background-size: cover;
  background-position: center;
}

.auth-brand,
.auth-intro,
.auth-panel {
  position: relative;
  z-index: 1;
}

.auth-brand {
  display: flex;
  grid-column: 1 / -1;
  gap: 12px;
  align-items: center;
}

.auth-brand > span:last-child {
  display: grid;
  gap: 3px;
}

.auth-brand small {
  color: rgba(255, 255, 255, 0.64);
}

.auth-intro {
  align-self: end;
  max-width: 680px;
  padding-bottom: 54px;
}

.auth-intro h1 {
  max-width: 620px;
  margin: 10px 0 14px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.08;
  letter-spacing: 0;
}

.auth-intro > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 17px;
}

.auth-intro > div {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.auth-intro > div span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(5, 13, 23, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  font-size: 12px;
}

.auth-intro svg {
  width: 15px;
  height: 15px;
  color: var(--cyan);
}

.auth-panel {
  align-self: center;
  padding: 28px;
  background: rgba(10, 19, 31, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.auth-panel-head h2 {
  margin: 5px 0 4px;
  font-size: 28px;
}

.auth-panel-head p {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
}

.auth-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 22px 0 18px;
}

.auth-account-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 20px;
}

.auth-methods button {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
}

.auth-methods svg {
  width: 16px;
  height: 16px;
}

.auth-wechat-box,
.auth-qr-loading {
  display: grid;
  min-height: 330px;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}

.auth-wechat-box > p,
.auth-qr-loading small,
.auth-phone-form > small {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
}

.mock-qr-wrap {
  position: relative;
  padding: 12px;
  background: #fff;
  border-radius: 7px;
}

.mock-qr-wrap > b {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 3px 5px;
  color: #fff;
  background: #e5484d;
  border-radius: 4px;
  font-size: 9px;
}

.mock-qr {
  display: grid;
  width: 196px;
  height: 196px;
  grid-template-columns: repeat(15, 1fr);
  grid-template-rows: repeat(15, 1fr);
  gap: 1px;
  background: #fff;
}

.mock-qr i {
  background: #fff;
}

.mock-qr i.on {
  background: #141b24;
}

.wechat-button {
  color: #fff;
  background: #07c160;
}

.wechat-button:hover {
  background: #06ad56;
}

.wechat-login-container,
.wechat-login-container iframe {
  width: 300px;
  min-height: 300px;
  border: 0;
}

.auth-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: auth-spin 0.8s linear infinite;
}

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

.auth-phone-form {
  display: grid;
  min-height: 330px;
  align-content: center;
  gap: 16px;
}

.auth-register-form {
  min-height: 440px;
  gap: 12px;
}

.auth-password-policy {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.5;
}

.auth-password-policy svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--cyan);
}

.auth-phone-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 2px;
}

.auth-password-row input {
  padding-left: 12px;
}

.auth-phone-row,
.auth-code-row {
  display: flex;
  align-items: center;
  margin-top: 7px;
  background: var(--ink-850);
  border: 1px solid var(--line-dark);
  border-radius: 7px;
}

.auth-phone-row:focus-within,
.auth-code-row:focus-within {
  border-color: var(--cyan);
}

.auth-phone-row > span {
  padding: 0 12px;
  color: var(--text-soft);
  border-right: 1px solid var(--line-dark);
}

.auth-phone-row input,
.auth-code-row input {
  min-width: 0;
  flex: 1;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
}

.auth-code-row button {
  min-width: 104px;
  padding: 0 12px;
  color: var(--cyan);
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line-dark);
}

.auth-terms {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.5;
}

.auth-terms input {
  margin-top: 2px;
}

.auth-message {
  margin: 10px 0 0;
  padding: 8px 10px;
  color: #ffe1a6;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 6px;
  font-size: 11px;
}

.auth-security-note {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 12px;
  color: #8290a5;
  font-size: 10px;
}

.auth-security-note svg {
  width: 13px;
  height: 13px;
}

.poster-studio-grid {
  gap: 18px;
  align-items: start;
  margin-top: 20px;
}

.poster-controls {
  display: grid;
  flex: 1;
  gap: 16px;
}

.poster-photo-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.poster-photo-upload span {
  min-height: 74px;
  gap: 8px;
  align-items: center;
  padding: 14px;
  color: var(--cyan);
  background: rgba(55, 215, 239, 0.07);
  border: 1px dashed rgba(55, 215, 239, 0.4);
  border-radius: 8px;
  cursor: pointer;
}

.poster-photo-upload svg {
  width: 24px;
  height: 24px;
}

.poster-photo-upload small {
  margin-left: auto;
  color: var(--text-soft);
}

.field-caption,
.poster-result-picker legend {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 12px;
}

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

.poster-template {
  min-height: 74px;
  gap: 9px;
  align-items: center;
  padding: 10px;
  color: var(--text-main);
  text-align: left;
  background: var(--ink-850);
  border: 1px solid var(--line-dark);
  border-radius: 7px;
}

.poster-template.active {
  border-color: var(--coral);
  box-shadow: 0 0 0 1px rgba(255, 91, 87, 0.18);
}

.poster-template span {
  display: grid;
  gap: 4px;
}

.poster-template small {
  color: var(--text-soft);
  font-size: 9px;
}

.template-swatch {
  width: 25px;
  height: 42px;
  flex: 0 0 25px;
  border-radius: 4px;
}

.template-swatch.energy { background: linear-gradient(#ff4d2e 0 24%, #111 24%); }
.template-swatch.city { background: linear-gradient(#37d7ef 0 24%, #07111f 24%); }
.template-swatch.minimal { background: linear-gradient(#ff4d2e 0 24%, #f4f5f7 24%); }

.poster-result-picker {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.poster-result-picker label {
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: var(--ink-850);
  border: 1px solid var(--line-dark);
  border-radius: 7px;
}

.poster-result-picker span {
  display: grid;
  gap: 3px;
}

.poster-result-picker small {
  color: var(--text-soft);
}

.poster-preview-shell {
  width: min(38vw, 390px);
  position: sticky;
  top: 82px;
}

.poster-preview-shell > img,
.poster-preview-empty {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
}

.poster-preview-shell > img {
  display: block;
  object-fit: cover;
  border: 1px solid var(--line-dark);
}

.poster-preview-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  overflow: hidden;
  color: var(--text-soft);
  background: repeating-linear-gradient(135deg, var(--ink-850), var(--ink-850) 14px, var(--ink-800) 14px, var(--ink-800) 28px);
  border: 1px dashed var(--line-dark);
}

.poster-preview-empty > img {
  width: 100%;
  height: 100%;
  grid-area: 1 / 1 / -1 / -1;
  object-fit: cover;
  opacity: 0.48;
}

.poster-preview-empty svg {
  width: 42px;
  height: 42px;
}

.poster-preview-empty p {
  margin: 0;
  font-size: 11px;
}

.poster-share-actions {
  gap: 8px;
  margin-top: 10px;
}

.poster-preview-shell > small {
  display: block;
  margin-top: 9px;
  line-height: 1.6;
}

.result-list,
.profile-list,
.ledger-list,
.order-list {
  display: grid;
  gap: 10px;
}

.result-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  background: var(--ink-850);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}

.result-list p,
.result-list strong {
  margin: 0;
}

.result-list p {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 11px;
}

.result-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--amber);
  background: var(--ink-800);
  border-radius: 8px;
}

.status-pill {
  color: var(--text-soft);
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
}

.status-pill.success {
  color: #b9f6d9;
  background: rgba(69, 213, 146, 0.12);
  border-color: rgba(69, 213, 146, 0.32);
}

.status-pill.pb {
  color: #ffe6b8;
  background: rgba(242, 173, 76, 0.13);
  border-color: rgba(242, 173, 76, 0.32);
}

.status-pill.muted {
  color: #a3afc2;
}

.achievement-grid article {
  display: grid;
  min-height: 170px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 18px;
}

.achievement-icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  background: var(--ink-800);
  border: 1px solid currentColor;
  border-radius: 50%;
}

.achievement-icon svg {
  width: 30px;
  height: 30px;
}

.achievement-grid small {
  color: var(--text-soft);
}

.ranking-panel {
  max-width: 760px;
  margin: 0 auto;
}

.ranking-view-tabs {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 14px;
}

.event-ranking-panel {
  width: 100%;
}

.event-ranking-panel .rank-row.me {
  margin: 0 -10px;
  padding-right: 10px;
  padding-left: 10px;
  background: rgba(119, 88, 255, 0.1);
  border-color: rgba(119, 88, 255, 0.32);
}

.ranking-panel header,
.rank-row {
  display: grid;
  grid-template-columns: 36px auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.ranking-panel header {
  grid-template-columns: 1fr auto;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-dark);
}

.rank-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-dark);
}

.rank-row > b {
  color: var(--amber);
  font-size: 20px;
}

.rank-row > span:last-child {
  color: var(--cyan);
}

.friend-ranking {
  display: grid;
  gap: 14px;
}

.ranking-summary,
.my-rank-card,
.ranking-rules {
  background: var(--ink-850);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}

.ranking-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
}

.ranking-summary h2 {
  margin: 4px 0 6px;
}

.ranking-summary p,
.ranking-rules p,
.ranking-rules > small {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.points-wallet {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0 10px;
  align-items: center;
  min-width: 220px;
  padding: 13px;
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 7px;
}

.points-wallet > span {
  grid-row: 1 / 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--amber);
  background: rgba(245, 158, 11, 0.14);
  border-radius: 50%;
}

.points-wallet small,
.points-wallet strong {
  display: block;
}

.points-wallet strong {
  color: var(--amber);
  font-size: 25px;
}

.points-wallet em {
  grid-column: 1 / -1;
  margin-top: 7px;
  color: var(--text-soft);
  font-size: 10px;
  font-style: normal;
}

.rank-rise-ticker {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 12px 16px;
  color: #fff;
  background: linear-gradient(100deg, rgba(255, 77, 46, 0.22), rgba(119, 88, 255, 0.18), rgba(55, 215, 239, 0.12));
  border: 1px solid rgba(255, 115, 82, 0.35);
  border-radius: 8px;
  overflow: hidden;
}

.rank-rise-ticker.quiet {
  border-color: var(--line-dark);
}

.rank-rise-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  color: #fff;
  background: var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255, 77, 46, 0.28);
}

.rank-rise-ticker small,
.rank-rise-ticker strong {
  display: block;
}

.rank-rise-ticker small {
  margin-bottom: 4px;
  color: var(--text-soft);
}

.my-rank-card {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(130px, .7fr) minmax(130px, .7fr);
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
}

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

.my-rank-card small {
  margin-bottom: 4px;
  color: var(--text-soft);
}

.my-rank-card strong {
  font-size: 22px;
}

.points-gain {
  color: var(--amber);
}

.rank-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: fit-content;
  color: var(--text-soft);
  font-size: 11px;
  font-style: normal;
}

.rank-delta.up {
  color: #4ae39a;
}

.rank-delta.down {
  color: #ff7c83;
}

.rank-delta svg {
  width: 14px;
  height: 14px;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 14px;
  align-items: start;
}

.friend-rank-list {
  width: 100%;
  max-width: none;
  margin: 0;
}

.friend-rank-list .rank-row {
  grid-template-columns: 34px auto minmax(0, 1fr) auto 34px;
  padding: 12px 9px;
}

.friend-rank-list .rank-row.me {
  background: rgba(119, 88, 255, 0.1);
  border-color: rgba(119, 88, 255, 0.32);
}

.friend-rank-list .rank-row > div strong,
.friend-rank-list .rank-row > div small,
.friend-rank-list .rank-row > span small {
  display: block;
}

.friend-rank-list .rank-row > div small,
.friend-rank-list .rank-row > span small {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 9px;
}

.friend-rank-list .rank-row > span:nth-last-child(2) {
  color: var(--cyan);
  text-align: right;
}

.ranking-rules {
  padding: 18px;
}

.ranking-rules h3 {
  margin: 4px 0 7px;
}

.ranking-rules > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line-dark);
  font-size: 12px;
}

.ranking-rules > div strong {
  color: var(--amber);
}

.ranking-rules > small {
  display: block;
  margin-top: 12px;
  font-size: 10px;
}

.profile-header {
  align-items: center;
  justify-content: flex-start;
}

.profile-header > div {
  flex: 1;
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.order-list article {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px;
  background: var(--ink-850);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}

.order-list img {
  width: 120px;
  height: 74px;
  object-fit: cover;
  border-radius: 7px;
}

.order-list p,
.order-list span {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 11px;
}

.order-list > article > div:last-child {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.settings-list {
  overflow: hidden;
}

.settings-list button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
}

.settings-list button:last-child {
  border-bottom: 0;
}

.settings-detail {
  max-width: 760px;
}

.settings-detail > h2 {
  margin-top: 22px;
}

.settings-detail > p {
  color: var(--text-soft);
  line-height: 1.7;
}

.member-password-form {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin-top: 18px;
}

.member-password-form .field-label {
  margin-top: 0;
}

.password-policy,
.security-tip {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 12px;
  color: var(--text-soft);
  background: var(--ink-850);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
}

.password-policy svg,
.security-tip svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.security-tip.success {
  color: var(--green);
  border-color: rgba(45, 212, 191, 0.35);
}

.session-list,
.notification-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.session-list article,
.notification-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px;
  background: var(--ink-850);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}

.session-list p,
.notification-list p,
.notification-list small {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 11px;
}

.notification-list article {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.notification-list article.read {
  opacity: 0.72;
}

.preference-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-dark);
}

.preference-row strong,
.preference-row small {
  display: block;
}

.preference-row small {
  margin-top: 4px;
  color: var(--text-soft);
}

.preference-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--violet);
}

.mobile-nav {
  display: none;
}

.profile-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.compact-empty {
  grid-column: 1 / -1;
  min-height: 260px;
}

/* Admin */

.surface-admin {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100vh;
  overflow: auto;
  color: #d7e0ef;
  background: #10233f;
  border-right: 1px solid #243c5f;
}

.admin-brand {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-brand .brand-symbol {
  width: 38px;
  height: 38px;
  box-shadow: none;
}

.admin-brand strong {
  color: #fff;
}

.admin-brand small {
  margin-top: 3px;
  color: #91a5c2;
  font-size: 10px;
}

.admin-sidebar nav {
  min-height: 0;
  padding: 13px 10px;
  overflow-y: auto;
}

.admin-nav-group {
  display: grid;
  gap: 3px;
  margin-bottom: 15px;
}

.admin-nav-group > span {
  padding: 0 10px 5px;
  color: #7289a9;
  font-size: 10px;
  font-weight: 900;
}

.admin-nav-group button,
.back-to-user {
  display: flex;
  min-height: 39px;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  color: #aebdd3;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
}

.admin-nav-group button:hover,
.admin-nav-group button.active {
  color: #fff;
  background: #284b7c;
}

.admin-nav-group button.active {
  box-shadow: inset 3px 0 var(--violet-2);
}

.back-to-user {
  margin: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.admin-workspace {
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--admin-line);
  backdrop-filter: blur(12px);
}

.admin-search {
  width: min(460px, 50vw);
  min-height: 40px;
  padding: 0 12px;
  color: var(--admin-muted);
  background: #f5f8fc;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
}

.icon-button.light,
.admin-icon-btn {
  color: var(--admin-muted);
  background: #fff;
  border-color: var(--admin-line);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.admin-user .avatar {
  width: 34px;
  height: 34px;
  background: var(--admin-blue);
}

.admin-main {
  padding: 24px;
}

.admin-page-heading {
  align-items: center;
  margin-bottom: 18px;
}

.admin-page-heading > div > span {
  color: var(--admin-blue);
  font-size: 10px;
  font-weight: 900;
}

.admin-page-heading h1 {
  margin: 5px 0 4px;
  font-size: 26px;
}

.admin-page-heading p {
  margin-bottom: 0;
  color: var(--admin-muted);
  font-size: 12px;
}

.admin-primary {
  color: #fff;
  background: var(--admin-blue);
  border: 1px solid var(--admin-blue);
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.admin-metric,
.admin-panel,
.system-card {
  background: var(--admin-panel);
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  box-shadow: var(--shadow-light);
}

.admin-metric {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  padding: 16px;
}

.admin-metric::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  content: "";
  background: var(--admin-blue);
}

.admin-metric.violet::before { background: var(--violet); }
.admin-metric.green::before { background: #24a76a; }
.admin-metric.amber::before { background: #d89128; }
.admin-metric.pink::before { background: #d94d8e; }

.admin-metric > span {
  color: var(--admin-muted);
  font-size: 12px;
}

.admin-metric strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 24px;
}

.admin-metric small {
  color: #1da167;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 12px;
}

.admin-panel {
  min-width: 0;
  padding: 18px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-title h2 {
  margin-bottom: 3px;
  font-size: 17px;
}

.panel-title span {
  color: var(--admin-muted);
  font-size: 11px;
}

.legend {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  width: 8px;
  height: 8px;
  background: var(--admin-blue);
  border-radius: 50%;
}

.bar-chart {
  display: flex;
  height: 230px;
  align-items: end;
  gap: 8px;
  padding: 16px 4px 20px;
  border-bottom: 1px solid var(--admin-line);
}

.bar-chart > span {
  position: relative;
  flex: 1;
  min-width: 8px;
  background: #5a7df2;
  border-radius: 4px 4px 0 0;
}

.bar-chart > span:nth-child(3n) {
  background: var(--violet);
}

.bar-chart small {
  position: absolute;
  left: 50%;
  bottom: -18px;
  color: var(--admin-muted);
  font-size: 8px;
  transform: translateX(-50%);
}

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

.donut {
  width: 150px;
  height: 150px;
  color: var(--admin-ink);
  background: #fff;
  border-color: #5f78ee;
  border-right-color: #c8d3e8;
  box-shadow: none;
}

.donut strong {
  font-size: 29px;
}

.donut span {
  color: var(--admin-muted);
  font-size: 11px;
}

.donut-row dl {
  display: grid;
  gap: 13px;
}

.donut-row dl > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.donut-row dt {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--admin-muted);
}

.donut-row dd {
  margin: 0;
  font-weight: 800;
}

.violet-dot,
.green-dot,
.gray-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.violet-dot { background: var(--violet); }
.green-dot { background: #27b673; }
.gray-dot { background: #c9d2df; }

.fund-amount {
  display: block;
  margin: 8px 0 15px;
  color: var(--admin-blue);
  font-size: 30px;
}

.charity-overview .fund-progress span {
  background: var(--violet);
}

.charity-overview > small {
  display: block;
  margin-top: 8px;
  color: var(--admin-muted);
}

.live-feed > div:not(.panel-title) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--admin-line);
  font-size: 11px;
}

.live-feed > div:last-child {
  border-bottom: 0;
}

.live-feed small {
  color: var(--admin-muted);
}

.feed-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--admin-blue);
  background: #eef3ff;
  border-radius: 7px;
}

.feed-icon svg {
  width: 14px;
  height: 14px;
}

.admin-table-wrap {
  width: 100%;
  overflow: auto;
}

.admin-table-wrap table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.admin-table-wrap th,
.admin-table-wrap td {
  padding: 12px 11px;
  text-align: left;
  border-bottom: 1px solid var(--admin-line);
  vertical-align: middle;
}

.admin-table-wrap th {
  color: var(--admin-muted);
  background: #f8fafe;
  font-size: 11px;
}

.admin-table-wrap td {
  font-size: 12px;
}

.admin-table-wrap td strong,
.admin-table-wrap td small {
  display: block;
}

.admin-table-wrap td small {
  margin-top: 4px;
  color: var(--admin-muted);
}

.admin-status {
  color: #85621e;
  background: #fff4da;
  border: 1px solid #f0d693;
}

.admin-status.success {
  color: #18764e;
  background: #e3f8ed;
  border-color: #a9e7c9;
}

.admin-icon-btn {
  width: 32px;
  height: 32px;
  margin-right: 5px;
}

.admin-action,
.admin-link {
  min-height: 30px;
  padding: 0 8px;
  color: var(--admin-blue);
  background: transparent;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
}

.admin-action:hover {
  background: #edf3ff;
}

.admin-action.danger {
  color: #c93d4c;
}

.fund-project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  margin-bottom: 18px;
}

.fund-project > div:first-child {
  display: flex;
  justify-content: space-between;
}

.fund-project span,
.fund-project small,
.audit-note p {
  color: var(--admin-muted);
  font-size: 11px;
}

.fund-project .fund-progress {
  background: #e9eef6;
}

.fund-project .fund-progress span {
  background: #5b7df0;
}

.audit-note > span {
  color: var(--admin-muted);
  font-size: 11px;
}

.audit-note > strong {
  display: block;
  margin: 12px 0;
  color: #1c9d66;
  font-size: 22px;
}

.risk-level {
  color: #fff;
  background: #d74b5b;
}

.risk-level.level-中 {
  background: #d9922e;
}

.risk-level.level-低 {
  background: #4b78d2;
}

.funnel-panel {
  margin-bottom: 12px;
}

.funnel-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 90px;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
}

.funnel-row > span {
  color: var(--admin-muted);
  font-size: 12px;
}

.funnel-row > div {
  height: 18px;
  overflow: hidden;
  background: #edf1f7;
  border-radius: 4px;
}

.funnel-row i {
  display: block;
  height: 100%;
  background: #587af0;
}

.funnel-row:nth-child(3n) i {
  background: var(--violet);
}

.analytics-daily {
  display: flex;
  min-height: 220px;
  align-items: end;
  gap: 8px;
  padding-top: 18px;
  overflow-x: auto;
}

.analytics-daily > div {
  display: grid;
  min-width: 34px;
  height: 190px;
  grid-template-rows: 22px minmax(80px, 1fr) 22px;
  justify-items: center;
  align-items: end;
  gap: 5px;
}

.analytics-daily span,
.analytics-daily b {
  color: var(--admin-muted);
  font-size: 10px;
  white-space: nowrap;
}

.analytics-daily i {
  width: 18px;
  min-height: 4px;
  background: #587af0;
  border-radius: 3px 3px 0 0;
}

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

.system-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 13px;
  align-items: center;
  padding: 16px;
}

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

.system-card p {
  margin-top: 5px;
  color: var(--admin-muted);
  font-size: 11px;
}

.system-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--admin-blue);
  background: #eef3ff;
  border-radius: 8px;
}

.system-card > strong {
  color: #1d9c68;
  font-size: 12px;
}

.system-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  padding: 4px;
  background: #e9eef7;
  border-radius: 8px;
}

.system-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  color: var(--admin-muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
}

.system-tabs button.active {
  color: var(--admin-blue);
  background: #fff;
  box-shadow: 0 2px 8px rgba(33, 62, 110, 0.1);
}

.system-tabs svg,
.protected-account svg {
  width: 15px;
  height: 15px;
}

.operator-credential {
  position: relative;
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 18px 54px 18px 18px;
  color: #245a45;
  background: #e8f8ef;
  border: 1px solid #a8dec3;
  border-radius: 8px;
}

.operator-credential > div,
.operator-credential dl,
.operator-credential dl div,
.operator-credential dd {
  display: flex;
  align-items: center;
  gap: 12px;
}

.operator-credential h2,
.operator-credential p,
.operator-credential dl {
  margin: 0;
}

.operator-credential p,
.operator-credential dt {
  color: #527565;
  font-size: 12px;
}

.operator-credential dl {
  flex-wrap: wrap;
}

.operator-credential dl div {
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 6px;
}

.operator-credential code,
.admin-table-wrap code {
  font-size: 11px;
  word-break: break-all;
}

.operator-credential > .admin-icon-btn {
  position: absolute;
  top: 12px;
  right: 12px;
}

.protected-account {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1d7d58;
  font-size: 11px;
  font-weight: 800;
}

.admin-modal-dialog.operator-dialog {
  width: min(900px, 100%);
}

.admin-modal-dialog.admin-security-dialog {
  width: min(620px, 100%);
}

.admin-security-summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  color: #245a45;
  background: #eef8f3;
  border: 1px solid #b9decf;
  border-radius: 8px;
}

.admin-security-summary.optional {
  color: #375270;
  background: #f2f6fb;
  border-color: var(--admin-line);
}

.admin-security-summary svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.admin-security-summary strong,
.admin-security-summary p {
  display: block;
  margin: 0;
}

.admin-security-summary p {
  margin-top: 5px;
  color: var(--admin-muted);
  font-size: 13px;
  line-height: 1.65;
}

.admin-security-secret {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  background: #f5f8fc;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
}

.admin-security-secret code {
  font-size: 14px;
  word-break: break-all;
}

.admin-security-form {
  display: flex;
  align-items: end;
  gap: 12px;
}

.admin-security-form label {
  display: grid;
  flex: 1;
  gap: 7px;
  color: var(--admin-text);
  font-size: 12px;
  font-weight: 700;
}

.admin-security-form input {
  min-height: 42px;
  padding: 0 12px;
  color: var(--admin-text);
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 7px;
}

.permission-editor {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--admin-line);
}

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

.permission-groups fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
}

.permission-groups legend {
  padding: 0 6px;
  color: var(--admin-text);
  font-size: 12px;
  font-weight: 900;
}

.permission-groups label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
}

.permission-groups label:hover {
  background: #f4f7fc;
}

.permission-groups input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--admin-blue);
}

.permission-groups strong,
.permission-groups small {
  display: block;
}

.permission-groups strong {
  font-size: 12px;
}

.permission-groups small {
  margin-top: 3px;
  color: var(--admin-muted);
  font-size: 10px;
}

@media (max-width: 760px) {
  .permission-groups {
    grid-template-columns: 1fr;
  }

  .system-tabs,
  .operator-credential dl {
    align-items: stretch;
    flex-direction: column;
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 7, 14, 0.72);
}

.modal-dialog {
  position: relative;
  width: min(460px, 100%);
  padding: 26px;
  color: var(--text);
  text-align: center;
  background: var(--ink-850);
  border: 1px solid rgba(119, 88, 255, 0.5);
  border-radius: 8px;
  box-shadow: var(--shadow-dark);
}

.modal-dialog.light-dialog {
  color: var(--admin-ink);
  background: #fff;
  border-color: var(--admin-line);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
}

.light-dialog .modal-close {
  color: var(--admin-muted);
  background: #f3f6fa;
  border-color: var(--admin-line);
}

.modal-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin: 0 auto 15px;
  color: #fff;
  background: var(--violet);
  border-radius: 50%;
  box-shadow: 0 0 26px rgba(119, 88, 255, 0.32);
}

.modal-dialog p {
  color: var(--text-soft);
  line-height: 1.65;
}

.light-dialog p {
  color: var(--admin-muted);
}

.toast {
  position: fixed;
  z-index: 120;
  right: 22px;
  bottom: 22px;
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  max-width: min(390px, calc(100% - 32px));
  padding: 0 15px;
  color: #e7fff4;
  background: #14613f;
  border: 1px solid #3ac685;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
  font-weight: 750;
}

@media (max-width: 1120px) {
  .user-topbar {
    gap: 12px;
    padding: 0 18px;
  }

  .nav-button {
    padding: 0 8px;
  }

  .nav-button span {
    display: none;
  }

  .admin-switch span {
    display: none;
  }

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

  .team-chat-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .team-sidebar {
    grid-column: 1 / -1;
  }

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

@media (max-width: 900px) {
  .user-main {
    width: min(100% - 28px, 760px);
    padding-top: 18px;
    padding-bottom: 112px;
  }

  .user-topbar {
    position: static;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 64px;
  }

  .user-nav {
    display: none;
  }

  .admin-switch {
    width: 40px;
    padding: 0;
  }

  .mobile-nav {
    position: fixed;
    z-index: 50;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px;
    background: rgba(9, 21, 40, 0.96);
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
  }

  .mobile-nav button {
    display: grid;
    min-height: 52px;
    place-items: center;
    align-content: center;
    gap: 4px;
    color: var(--text-soft);
    background: transparent;
    border: 0;
    border-radius: 6px;
    font-size: 10px;
  }

  .mobile-nav button.active {
    color: #fff;
    background: var(--violet);
  }

  .mobile-nav svg {
    width: 17px;
    height: 17px;
  }

  .spotlight {
    min-height: 490px;
  }

  .spotlight-content {
    padding: 54px 28px 150px;
  }

  .spotlight-content h2 {
    font-size: 42px;
  }

  .spotlight-metrics {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

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

  .sport-shortcuts {
    grid-template-columns: repeat(4, 1fr);
  }

  .two-column-section,
  .detail-grid,
  .registration-layout,
  .order-layout {
    grid-template-columns: 1fr;
  }

  .signup-summary,
  .payment-summary {
    position: static;
  }

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

  .mobile-registration-bar {
    position: fixed;
    z-index: 49;
    right: 10px;
    bottom: 78px;
    left: 10px;
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px 8px 16px;
    background: rgba(9, 21, 40, 0.97);
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(16px);
  }

  .mobile-registration-bar small,
  .mobile-registration-bar strong {
    display: block;
  }

  .mobile-registration-bar small {
    color: var(--text-soft);
    font-size: 10px;
  }

  .mobile-registration-bar strong {
    margin-top: 2px;
    font-size: 18px;
  }

  .city-radar {
    grid-template-columns: 1fr;
  }

  .surface-admin {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .admin-sidebar {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .admin-brand {
    justify-content: center;
    padding: 0;
  }

  .admin-brand > div {
    display: none;
  }

  .admin-nav-group > span,
  .admin-nav-group button span,
  .back-to-user span {
    display: none;
  }

  .admin-nav-group button,
  .back-to-user {
    justify-content: center;
    padding: 0;
  }

  .admin-topbar,
  .admin-main {
    padding-right: 16px;
    padding-left: 16px;
  }

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

@media (max-width: 620px) {
  .user-topbar {
    padding: 0 14px;
  }

  .brand-button small {
    display: none;
  }

  .topbar-actions {
    gap: 6px;
  }

  .search-box {
    width: 100%;
  }

  .compact-heading,
  .app-heading,
  .admin-page-heading,
  .profile-header {
    align-items: stretch;
    flex-direction: column;
  }

  .app-heading h1,
  .profile-header h1 {
    font-size: 28px;
  }

  .spotlight {
    min-height: 520px;
  }

  .spotlight-content {
    padding: 44px 20px 190px;
  }

  .spotlight-content h2 {
    font-size: 35px;
  }

  .spotlight-metrics {
    grid-template-columns: 1fr;
  }

  .spotlight-metrics span {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .spotlight-metrics strong {
    margin: 0;
  }

  .event-grid,
  .partner-grid,
  .achievement-grid,
  .city-stamp-grid,
  .system-grid {
    grid-template-columns: 1fr;
  }

  .event-cover {
    height: 210px;
  }

  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .dark-segmented {
    width: 100%;
    overflow: auto;
  }

  .profile-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
  }

  .profile-tabs button {
    min-width: 0;
    padding: 0 4px;
    font-size: 11px;
    white-space: nowrap;
  }

  .segmented button {
    flex: 1 0 auto;
  }

  .compact-select {
    justify-content: space-between;
  }

  .city-points {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-detail-hero {
    min-height: 470px;
  }

  .event-detail-content {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .event-detail-content h1 {
    font-size: 31px;
  }

  .timeline,
  .publish-types {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid,
  .mode-selector {
    grid-template-columns: 1fr;
  }

  .registration-steps {
    grid-template-columns: repeat(4, minmax(70px, 1fr));
    width: 100%;
    overflow: auto;
  }

  .ticket-body {
    grid-template-columns: 1fr;
  }

  .ticket-body img {
    width: 100%;
    height: 160px;
  }

  .ticket-code {
    justify-self: stretch;
  }

  .match-console {
    grid-template-columns: 1fr;
  }

  .match-filters {
    justify-content: flex-start;
  }

  .safety-strip {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .safety-strip .text-button {
    grid-column: 2;
  }

  .team-chat-layout {
    grid-template-columns: 1fr;
  }

  .team-list {
    max-height: 230px;
    overflow: auto;
  }

  .chat-panel {
    min-height: 560px;
  }

  .chat-message {
    width: 92%;
  }

  .passport-hero {
    grid-template-columns: 1fr;
  }

  .passport-emblem {
    justify-self: center;
  }

  .passport-profile {
    align-items: flex-start;
  }

  .profile-metrics,
  .passport-counts {
    grid-template-columns: repeat(2, 1fr);
  }

  .order-list article {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .order-list img {
    width: 86px;
    height: 70px;
  }

  .order-list > article > div:last-child {
    grid-column: 2;
    justify-items: start;
  }

  .surface-admin {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .admin-sidebar .brand-symbol {
    width: 34px;
    height: 34px;
    font-size: 11px;
  }

  .admin-topbar {
    min-height: 58px;
  }

  .admin-search {
    width: min(260px, 60vw);
  }

  .admin-user strong {
    display: none;
  }

  .admin-main {
    padding: 14px 10px;
  }

  .admin-page-heading h1 {
    font-size: 23px;
  }

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

  .admin-metric {
    min-height: 96px;
  }

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

  .funnel-row {
    grid-template-columns: 82px minmax(100px, 1fr) 65px;
  }

  .toast {
    right: 16px;
    bottom: 82px;
    left: 16px;
  }
}

.carousel-settings-band {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--admin-line);
  border-bottom: 1px solid var(--admin-line);
}

.carousel-global-settings {
  grid-template-columns: minmax(180px, 1fr) auto auto auto auto;
}

.toggle-setting {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 700;
}

.toggle-setting input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-setting > span {
  position: relative;
  width: 38px;
  height: 22px;
  background: #d0d5dd;
  border-radius: 11px;
  transition: background 160ms ease;
}

.toggle-setting > span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.24);
  content: "";
  transition: transform 160ms ease;
}

.toggle-setting input:checked + span {
  background: var(--admin-blue);
}

.toggle-setting input:checked + span::after {
  transform: translateX(16px);
}

.toggle-setting input:focus-visible + span {
  outline: 2px solid var(--admin-blue);
  outline-offset: 2px;
}

.interval-setting {
  display: grid;
  grid-template-columns: auto 52px auto;
  align-items: center;
  gap: 6px;
  color: var(--admin-muted);
  font-size: 12px;
}

.interval-setting input {
  width: 52px;
  height: 36px;
  padding: 0 6px;
  color: var(--admin-text);
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 6px;
  text-align: center;
}

.carousel-settings-band span,
.carousel-settings-band strong {
  display: block;
}

.carousel-settings-band span {
  color: var(--admin-muted);
  font-size: 12px;
}

.carousel-settings-band strong {
  margin-top: 4px;
  font-size: 16px;
}

.number-stepper {
  display: grid;
  grid-template-columns: 36px 54px 36px;
  height: 36px;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 6px;
}

.number-stepper button,
.number-stepper input {
  min-width: 0;
  color: var(--admin-text);
  background: #fff;
  border: 0;
  text-align: center;
}

.number-stepper button:first-child { border-right: 1px solid var(--admin-line); }
.number-stepper button:last-child { border-left: 1px solid var(--admin-line); }
.number-stepper svg { width: 14px; height: 14px; }
.number-stepper input { appearance: textfield; font-weight: 800; }
.number-stepper input::-webkit-inner-spin-button { appearance: none; }

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

.carousel-editor {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  box-shadow: var(--shadow-light);
}

.carousel-editor-media {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: #e8ebf0;
}

.carousel-editor-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-editor-media .admin-status {
  position: absolute;
  top: 12px;
  right: 12px;
}

.carousel-editor-media .admin-status.scheduled {
  color: #7a2e0e;
  background: #ffead5;
}

.carousel-performance {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  color: #fff;
  background: rgba(16, 24, 40, 0.76);
  border-radius: 6px;
  backdrop-filter: blur(8px);
  font-size: 11px;
}

.carousel-performance strong {
  margin-left: auto;
  color: #7de2c4;
}

.carousel-editor-fields {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.carousel-editor-fields label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 700;
}

.carousel-editor-fields input,
.carousel-editor-fields select {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  color: var(--admin-text);
  background: #f8f9fb;
  border: 1px solid var(--admin-line);
  border-radius: 6px;
  font-size: 13px;
}

.carousel-editor-fields input[type="range"] {
  height: 28px;
  padding: 0;
  accent-color: var(--admin-blue);
}

.focal-value {
  min-height: 36px;
  padding: 10px;
  color: var(--admin-text) !important;
  background: #f8f9fb;
  border: 1px solid var(--admin-line);
  border-radius: 6px;
  font-size: 12px !important;
}

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

.carousel-editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 16px;
}

.carousel-editor-actions .admin-action {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--admin-line);
}

.carousel-editor-actions svg {
  width: 14px;
  height: 14px;
}

.upload-action {
  position: relative;
  cursor: pointer;
}

.upload-action input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

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

.ops-summary > div {
  min-height: 86px;
  padding: 14px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #f8f9fb;
}

.ops-summary span,
.ops-summary strong {
  display: block;
}

.ops-summary span {
  color: #667085;
  font-size: 12px;
}

.ops-summary strong {
  margin-top: 8px;
  color: #101828;
  font-size: 22px;
}

.empty-inline {
  padding: 24px 12px;
  color: #667085;
  text-align: center;
}

.surface-user .empty-inline {
  color: var(--text-soft);
}

.empty-state {
  display: grid;
  min-height: 420px;
  place-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.empty-state p {
  max-width: 420px;
  color: var(--text-soft);
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 160px auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--admin-line);
  border-bottom: 1px solid var(--admin-line);
}

[data-analytics-filter-form] {
  grid-template-columns: 120px minmax(220px, 1fr) 180px auto;
}

.admin-filter-bar label {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-filter-bar label svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--admin-muted);
}

.admin-filter-bar input,
.admin-filter-bar select,
.admin-form-grid input,
.admin-form-grid select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  color: var(--admin-text);
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 6px;
}

.admin-filter-bar label input {
  padding-left: 38px;
}

.admin-detail-panel,
.admin-editor-panel {
  margin-bottom: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--admin-line);
  border-bottom: 1px solid var(--admin-line);
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 16px 0;
  overflow: hidden;
  background: var(--admin-line);
  border: 1px solid var(--admin-line);
  border-radius: 8px;
}

.detail-facts > div {
  min-width: 0;
  padding: 14px;
  background: #fff;
}

.detail-facts span,
.detail-facts strong {
  display: block;
}

.detail-facts span {
  color: var(--admin-muted);
  font-size: 11px;
}

.detail-facts strong {
  margin-top: 5px;
  color: var(--admin-text);
  font-size: 18px;
}

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

.admin-detail-columns h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.admin-detail-columns p {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--admin-line);
  font-size: 12px;
}

.admin-detail-columns p span {
  color: var(--admin-muted);
  text-align: right;
}

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

.admin-form-grid label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 700;
}

.admin-form-grid label.wide {
  grid-column: 1 / -1;
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.admin-status.danger {
  color: #b42318;
  background: #fee4e2;
}

.admin-panel + .admin-panel {
  margin-top: 16px;
}

.benefit-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding: 24px;
  color: #f8fafc;
  background: #10233f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.benefit-hero h2,
.benefit-hero p {
  margin: 0;
}

.benefit-hero p {
  max-width: 720px;
  margin-top: 8px;
  color: #c8d5e8;
}

.benefit-hero-icon {
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  color: #fff;
  background: #ff4d2e;
  border-radius: 50%;
  place-items: center;
}

.benefit-hero-icon svg {
  width: 30px;
  height: 30px;
}

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

.benefit-type-grid article {
  display: flex;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.benefit-type-grid article > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  color: #ff7a62;
  background: rgba(255, 77, 46, 0.12);
  border-radius: 50%;
  place-items: center;
}

.benefit-type-grid strong,
.benefit-type-grid p,
.benefit-type-grid small {
  display: block;
}

.benefit-type-grid p {
  min-height: 40px;
  margin: 5px 0 8px;
  color: var(--text-soft);
  font-size: 12px;
}

.benefit-type-grid small {
  color: #ff8c78;
  font-weight: 700;
}

.benefit-application-list,
.special-benefit-form {
  margin-bottom: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.benefit-application-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.benefit-application-list article:last-child {
  border-bottom: 0;
}

.benefit-application-list p,
.benefit-application-list small {
  display: block;
  margin: 4px 0 0;
  color: var(--text-soft);
}

.credential-upload {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
  padding: 16px;
  cursor: pointer;
  background: rgba(51, 112, 255, 0.08);
  border: 1px dashed rgba(90, 139, 255, 0.58);
  border-radius: 8px;
}

.credential-upload > svg {
  width: 28px;
  height: 28px;
  color: #75a2ff;
}

.credential-upload span {
  display: grid;
  gap: 4px;
}

.credential-upload small {
  color: var(--text-soft);
}

.credential-upload input {
  max-width: 260px;
  margin-left: auto;
}

.benefit-discount-row dd {
  color: #18a058 !important;
}

.checkout-benefit-note {
  display: flex;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  color: #d7f6e7;
  background: rgba(24, 160, 88, 0.1);
  border: 1px solid rgba(24, 160, 88, 0.28);
  border-radius: 8px;
}

.checkout-benefit-note svg {
  width: 20px;
  flex: 0 0 20px;
}

.checkout-benefit-note span,
.checkout-benefit-note small {
  display: block;
}

.checkout-benefit-note small {
  margin-top: 3px;
  color: var(--text-soft);
}

.benefit-entry-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  padding: 10px 0;
  color: #82a9ff;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--admin-text);
  font-weight: 500;
}

.inline-check input {
  width: 18px;
  height: 18px;
}

.admin-table-wrap .admin-action svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}

.admin-row-actions {
  display: flex;
  min-width: 310px;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid transparent;
}

.admin-action.primary {
  color: #fff;
  background: var(--admin-blue);
  border-color: var(--admin-blue);
}

.admin-action.danger {
  border-color: #f1c8ce;
}

.admin-action:disabled {
  color: #9ba6b5;
  background: #f4f6f9;
  border-color: #e3e8ef;
  cursor: not-allowed;
}

.event-workflow-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  color: #385272;
  background: #f2f6fd;
  border: 1px solid #d9e4f4;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
}

.event-workflow-note svg {
  width: 17px;
  flex: 0 0 17px;
  margin-top: 1px;
  color: var(--admin-blue);
}

.event-workflow-note strong {
  margin-right: 8px;
  color: var(--admin-ink);
}

.event-workflow-note.warning {
  margin: 18px 0 0;
  color: #765415;
  background: #fff8e8;
  border-color: #f2dda5;
}

.admin-editor-backdrop {
  z-index: 130;
  overflow-y: auto;
  align-items: start;
}

.offering-edit-error {
  margin: 0 24px 16px;
}

.admin-modal-dialog {
  width: min(760px, 100%);
  margin: auto;
  color: var(--admin-text);
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(18, 36, 62, 0.24);
}

.admin-modal-dialog.inventory-dialog {
  width: min(940px, 100%);
}

.admin-modal-dialog.participant-dialog {
  width: min(880px, 100%);
}

.participant-dialog .admin-event-form-grid label small {
  color: var(--admin-muted);
  font-weight: 500;
}

.participant-dialog .participant-update-choice {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 9px;
}

.participant-dialog .participant-update-choice input {
  width: 17px;
  min-height: 17px;
  accent-color: var(--admin-blue);
}

.admin-modal-header,
.admin-modal-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
}

.admin-modal-header {
  border-bottom: 1px solid var(--admin-line);
}

.admin-modal-header span {
  color: var(--admin-blue);
  font-size: 10px;
  font-weight: 900;
}

.admin-modal-header h2 {
  margin: 4px 0;
  font-size: 22px;
}

.admin-modal-header p {
  margin: 0;
  color: var(--admin-muted);
  font-size: 12px;
  line-height: 1.6;
}

.admin-modal-body {
  padding: 22px;
}

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

.admin-event-form-grid label {
  display: grid;
  gap: 7px;
  color: #45566d;
  font-size: 12px;
  font-weight: 800;
}

.admin-event-form-grid label.wide {
  grid-column: 1 / -1;
}

.admin-event-form-grid input,
.admin-event-form-grid select,
.admin-event-form-grid textarea,
.inventory-row input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--admin-text);
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 6px;
  font: inherit;
}

.admin-event-form-grid textarea {
  resize: vertical;
}

.admin-modal-footer {
  align-items: center;
  color: var(--admin-muted);
  background: #f8fafe;
  border-top: 1px solid var(--admin-line);
  font-size: 11px;
}

.admin-modal-footer > span,
.admin-modal-footer > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-modal-footer svg {
  width: 15px;
}

.inventory-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 24px;
  overflow: hidden;
  background: var(--admin-line);
  border: 1px solid var(--admin-line);
  border-radius: 6px;
}

.inventory-summary div {
  display: grid;
  gap: 5px;
  padding: 14px;
  background: #f8fafe;
}

.inventory-summary span,
.inventory-numbers {
  color: var(--admin-muted);
  font-size: 11px;
}

.inventory-summary strong {
  font-size: 21px;
}

.inventory-list {
  margin-bottom: 22px;
}

.inventory-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto 110px auto;
  align-items: end;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--admin-line);
}

.inventory-row > div:first-child,
.inventory-row label {
  display: grid;
  gap: 5px;
}

.inventory-row > div:first-child span,
.inventory-row label {
  color: var(--admin-muted);
  font-size: 11px;
}

.inventory-numbers {
  display: flex;
  gap: 10px;
  padding-bottom: 11px;
  white-space: nowrap;
}

.inventory-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.inventory-row-actions .admin-icon-btn {
  flex: 0 0 32px;
  margin: 0;
}

.inventory-row-actions .admin-icon-btn.danger {
  color: var(--admin-danger, #c93d4c);
}

.offering-form {
  padding-top: 20px;
  border-top: 1px solid var(--admin-line);
}

.offering-form .admin-form-actions {
  margin-top: 16px;
}

@media (max-width: 980px) {
  .auth-page {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  }

  .auth-intro h1 {
    font-size: 42px;
  }
  .growth-identity-card {
    grid-template-columns: 1fr 1fr;
  }

  .growth-score-grid {
    grid-column: 1 / -1;
  }

  .city-puzzle-layout {
    grid-template-columns: 1fr;
  }

  .city-puzzle-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .my-rank-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poster-studio-grid {
    flex-direction: column;
  }

  .poster-preview-shell {
    width: min(100%, 430px);
    position: static;
    align-self: center;
  }
  .benefit-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .carousel-editor-grid {
    grid-template-columns: 1fr;
  }

  .carousel-global-settings {
    grid-template-columns: 1fr auto auto;
  }

  .carousel-global-settings > .admin-primary {
    grid-column: 3;
  }

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

@media (max-width: 620px) {
  .auth-page {
    display: block;
    padding: 18px 14px 28px;
  }

  .auth-backdrop {
    background-image: linear-gradient(rgba(4, 10, 18, 0.7), rgba(4, 10, 18, 0.96)), url("/assets/carousel/gfr-guangzhou-functional-fitness.jpg");
    background-position: 58% center;
  }

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

  .auth-intro {
    display: none;
  }

  .auth-panel {
    padding: 20px;
  }

  .auth-wechat-box,
  .auth-qr-loading,
  .auth-phone-form {
    min-height: 300px;
  }

  .auth-register-form {
    min-height: 0;
  }

  .mock-qr {
    width: 178px;
    height: 178px;
  }
  .growth-identity-card,
  .growth-score-grid,
  .poster-template-options {
    grid-template-columns: 1fr;
  }

  .growth-score-grid {
    grid-column: auto;
  }

  .city-puzzle-hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .city-puzzle-score {
    justify-items: start;
  }

  .city-puzzle-progress,
  .city-puzzle-hero footer {
    grid-column: auto;
  }

  .city-puzzle-hero footer,
  .city-puzzle-sidebar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .city-puzzle-hero footer .button {
    width: 100%;
  }

  .city-puzzle-board,
  .city-puzzle-sidebar section {
    padding: 14px;
  }

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

  .city-puzzle-piece {
    min-height: 76px;
  }

  .ranking-summary {
    display: grid;
  }

  .points-wallet {
    min-width: 0;
  }

  .rank-rise-ticker strong {
    font-size: 12px;
    line-height: 1.5;
  }

  .my-rank-card {
    grid-template-columns: 1fr 1fr;
    padding: 15px;
  }

  .friend-rank-list .rank-row {
    grid-template-columns: 27px 34px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .friend-rank-list .rank-row > span:nth-last-child(2) {
    display: none;
  }

  .friend-rank-list .rank-row > em {
    grid-column: 4;
  }

  .poster-studio {
    padding: 14px;
  }

  .poster-photo-upload span,
  .poster-share-actions {
    flex-wrap: wrap;
  }

  .poster-photo-upload small {
    width: 100%;
    margin-left: 32px;
  }
  .benefit-type-grid {
    grid-template-columns: 1fr;
  }

  .benefit-hero {
    align-items: flex-start;
    padding: 18px;
  }

  .benefit-hero-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .credential-upload {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .credential-upload input {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }
  .carousel-settings-band {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .carousel-global-settings > .admin-primary {
    grid-column: auto;
  }

  .number-stepper {
    width: 126px;
  }

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

  .carousel-editor-actions {
    flex-wrap: wrap;
  }

  .admin-filter-bar,
  .admin-form-grid,
  .admin-event-form-grid,
  .admin-detail-columns,
  .detail-facts {
    grid-template-columns: 1fr;
  }

  .admin-event-form-grid label.wide {
    grid-column: auto;
  }

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

  .inventory-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .inventory-numbers {
    padding-bottom: 0;
  }

  .inventory-row-actions {
    flex-wrap: wrap;
  }

  .admin-modal-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-filter-bar .admin-primary {
    width: 100%;
    justify-content: center;
  }

  .admin-detail-columns p {
    display: grid;
    gap: 4px;
  }

  .admin-detail-columns p span {
    text-align: left;
  }

  .carousel-spotlight {
    min-height: 600px;
  }

  .event-trust-strip {
    grid-template-columns: 1fr;
  }

  .profile-header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .profile-header-actions .button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
