* {
  box-sizing: border-box;
}

:root {
  --page-bg: linear-gradient(180deg, #d9eeff 0%, #c7dcff 42%, #edf4ff 100%);
  --card-bg: rgba(255, 255, 255, 0.88);
  --card-bg-strong: rgba(255, 255, 255, 0.96);
  --card-border: rgba(125, 152, 211, 0.14);
  --panel-shell: rgba(241, 248, 255, 0.94);
  --primary: #2e7cf6;
  --primary-strong: #1558d6;
  --accent: #ff8f3d;
  --accent-soft: rgba(255, 143, 61, 0.18);
  --danger: #c9484a;
  --text-main: #133056;
  --text-muted: #61789b;
  --text-secondary: #61789b;
  --text-tertiary: #8aa0c0;
  --shadow-soft: 0 18px 44px rgba(27, 78, 148, 0.12);
  --shadow-card: 0 16px 34px rgba(27, 78, 148, 0.1);
  --shadow-card-strong: 0 20px 42px rgba(27, 78, 148, 0.14);
  --drawer-scrim: rgba(19, 48, 86, 0.28);
  --radius-card: 24px;
  --radius-card-lg: 28px;
  --radius-pill: 999px;
}

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

body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--page-bg);
  color: var(--text-main);
}

body.account-page-body {
  min-height: 100vh;
}

body.drawer-open {
  overflow: hidden;
}

body.mini-program-modal-open {
  overflow: hidden;
}

body.account-page-body > .page,
body.rankings-page-body > .page {
  position: relative;
  padding-top: 92px;
}

body.selection-body > .selection-page {
  position: relative;
  padding-top: 120px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, rgba(223, 236, 255, 0.98) 0%, rgba(214, 228, 255, 0.86) 52%, rgba(248, 251, 255, 0.98) 100%);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 960px;
  margin: 0 auto;
}

.content-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 20px 28px;
}

.card-shell,
.hero-card,
.insight-panel,
.list-panel,
.selection-card,
.profile-panel,
.profile-panel__section,
.compare-page-body .card-shell,
.about-panel__hero-card,
.about-panel__links-card {
  border-radius: var(--radius-card-lg);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

.hero-card,
.insight-panel,
.profile-panel,
.selection-card,
.compare-page-body .compare-hero,
.rankings-hero,
.rankings-list-panel,
.rankings-side-panel,
.rankings-filters {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 248, 255, 0.93));
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: rgba(46, 124, 246, 0.08);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 60;
  width: min(100%, 960px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  padding: 20px 20px 14px;
  background: rgba(218, 236, 255, 0.76);
  border-bottom: 1px solid rgba(125, 152, 211, 0.12);
  box-shadow: 0 12px 28px rgba(27, 78, 148, 0.1);
  backdrop-filter: blur(14px);
}

.top-bar--home {
  padding-bottom: 14px;
}

.top-bar--account {
  padding-bottom: 14px;
}

.top-bar__meta--account {
  align-items: center;
}

.top-bar__primary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.menu-btn,
.reset-btn,
.switcher button,
.tab-bar button,
.primary-btn {
  border: none;
  cursor: pointer;
}

.menu-btn,
.reset-btn {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

.home-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(46, 124, 246, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 255, 0.94));
  color: var(--text-main);
  box-shadow: var(--shadow-card);
}

.home-menu-button:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(236, 245, 255, 0.96));
}

.home-menu-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(46, 124, 246, 0.14);
}

.home-menu-button__bars {
  display: grid;
  gap: 5px;
  transition: gap 0.18s ease;
}

.home-menu-button__bars span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.home-menu-button.is-open {
  background: linear-gradient(180deg, rgba(46, 124, 246, 0.12), rgba(21, 88, 214, 0.16));
  border-color: rgba(46, 124, 246, 0.22);
  color: var(--primary-strong);
}

.home-menu-button.is-open .home-menu-button__bars {
  gap: 0;
}

.home-menu-button.is-open .home-menu-button__bars span:nth-child(1) {
  transform: translateY(2px) rotate(45deg);
}

.home-menu-button.is-open .home-menu-button__bars span:nth-child(2) {
  opacity: 0;
}

.home-menu-button.is-open .home-menu-button__bars span:nth-child(3) {
  transform: translateY(-2px) rotate(-45deg);
}

.top-bar__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 1 420px;
  min-width: 0;
}

.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.78), transparent 32%),
    linear-gradient(180deg, #dfeeff 0%, #ccdefe 40%, #eff5ff 100%);
}

.auth-page {
  min-height: 100vh;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 56px;
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(320px, 520px);
  gap: 28px;
  align-items: stretch;
}

.auth-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(22, 88, 214, 0.94), rgba(58, 127, 247, 0.84));
  color: #f7fbff;
  box-shadow: 0 24px 48px rgba(21, 88, 214, 0.24);
  overflow: hidden;
}

.auth-hero::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.auth-hero .back-link {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

.auth-hero__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-hero__logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  padding: 6px;
  box-shadow: 0 14px 30px rgba(10, 42, 104, 0.24);
}

.auth-hero__brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-hero__brand-text strong {
  font-size: 16px;
  line-height: 1.2;
}

.auth-hero__brand-text span {
  font-size: 13px;
  color: rgba(247, 251, 255, 0.82);
}

.auth-hero .map-eyebrow {
  background: rgba(255, 255, 255, 0.18);
  color: #f7fbff;
}

.auth-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
}

.auth-description {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(247, 251, 255, 0.9);
}

.auth-hero__tips {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.auth-hero__tip {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
  line-height: 1.65;
}

.auth-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 28px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(125, 152, 211, 0.18);
  box-shadow: 0 20px 44px rgba(27, 78, 148, 0.12);
}

.auth-experience {
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(46, 124, 246, 0.08), rgba(255, 143, 61, 0.08));
  border: 1px solid rgba(46, 124, 246, 0.14);
}

.auth-experience__label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.auth-experience__value {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--primary-strong);
}

.auth-experience__helper {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-field span {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.auth-field input {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(125, 152, 211, 0.26);
  background: rgba(248, 251, 255, 0.95);
  padding: 0 16px;
  font-size: 16px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input:focus {
  border-color: rgba(46, 124, 246, 0.55);
  box-shadow: 0 0 0 4px rgba(46, 124, 246, 0.12);
}

.auth-field__hint {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
}

.auth-field--setting {
  gap: 10px;
  padding: 14px 16px 16px;
  border-radius: 20px;
  border: 1px solid rgba(46, 124, 246, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.auth-field--setting input,
.auth-field--setting textarea,
.auth-field--setting select {
  min-height: 52px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(241, 247, 255, 0.92));
}

.auth-field--setting textarea {
  min-height: 96px;
  resize: vertical;
  padding: 14px 16px;
  line-height: 1.65;
}

.auth-field--setting select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(125, 152, 211, 0.26);
  padding: 0 16px;
  font-size: 15px;
  color: var(--text-main);
  outline: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(46, 124, 246, 0.8) 50%),
    linear-gradient(135deg, rgba(46, 124, 246, 0.8) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.auth-field--setting input:focus,
.auth-field--setting textarea:focus,
.auth-field--setting select:focus {
  border-color: rgba(46, 124, 246, 0.55);
  box-shadow: 0 0 0 4px rgba(46, 124, 246, 0.12);
}

.auth-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.auth-actions .primary-btn,
.auth-actions .secondary-link {
  min-height: 46px;
}

.auth-status {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(233, 242, 255, 0.85);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.65;
}

.auth-status[data-tone="success"] {
  background: rgba(50, 160, 110, 0.14);
  color: #176241;
}

.auth-status[data-tone="danger"] {
  background: rgba(201, 72, 74, 0.12);
  color: #8b2d31;
}

.section-label--danger {
  color: var(--danger);
}

.map-panel {
  padding: 0 20px 20px;
}

.page--home {
  padding-bottom: 148px;
}

.map-placeholder {
  min-height: 420px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 35%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(218, 235, 255, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.72);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: stretch;
  gap: 22px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.map-copy {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.map-eyebrow {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-strong);
}

.map-title {
  margin-top: 14px;
  font-size: 36px;
  line-height: 1.15;
}

.map-description {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.map-highlight-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.china-tab-bar,
.scope-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(46, 124, 246, 0.08);
  box-shadow: 0 8px 24px rgba(46, 124, 246, 0.08);
}

.tab-button,
.scope-button {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.tab-button.active,
.scope-button.active {
  background: var(--primary);
  color: #fff;
}

.scope-reserved-note {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px dashed rgba(97, 120, 155, 0.28);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.map-visual {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.map-canvas {
  width: 100%;
  min-height: 420px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(233, 244, 255, 0.86)),
    var(--panel-shell);
  border: 1px solid rgba(46, 124, 246, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.map-state {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 28px;
}

.map-state-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-strong);
}

.map-state-description {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.map-state--error .map-state-title,
.map-state--danger .map-state-title {
  color: var(--danger);
}

.footprint-map-svg {
  display: block;
  width: 100%;
  height: auto;
}

.map-ocean {
  fill: url(#chinaOcean);
}

.footprint-map-svg--world .map-ocean {
  fill: #eef7ff;
}

.map-grid {
  fill: url(#chinaGrid);
}

.map-glow {
  fill: rgba(255, 255, 255, 0.72);
}

.map-glow--north {
  opacity: 0.84;
}

.map-glow--south {
  opacity: 0.44;
}

.map-caption-cluster text,
.map-footnote {
  fill: var(--text-muted);
}

.map-mode-pill {
  fill: rgba(255, 255, 255, 0.84);
  stroke: rgba(46, 124, 246, 0.14);
}

.map-mode-pill-label {
  font-size: 15px;
  font-weight: 700;
  text-anchor: middle;
  fill: var(--primary-strong);
}

.map-footnote {
  font-size: 14px;
}

.map-footnote--top {
  font-size: 15px;
  font-weight: 600;
}

.china-map-shell {
  isolation: isolate;
}

.china-region-outline {
  fill: rgba(46, 124, 246, 0.06);
  stroke: rgba(46, 124, 246, 0.08);
  stroke-width: 4;
}

.china-region-base {
  fill: rgba(255, 255, 255, 0.9);
  stroke: rgba(46, 124, 246, 0.18);
  stroke-width: 1.8;
  stroke-linejoin: round;
  transition: fill 180ms ease, stroke 180ms ease;
}

.china-region-fill {
  fill: #2e7cf6;
  pointer-events: none;
}

.china-region-node.is-highlighted .china-region-base {
  stroke: rgba(21, 88, 214, 0.36);
}

.china-region-label {
  fill: var(--text-main);
  font-size: 18px;
  font-weight: 700;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 3;
  stroke-linejoin: round;
}

.china-region-node.is-highlighted .china-region-label {
  fill: var(--primary-strong);
}

.china-region-node.is-compact .china-region-label {
  font-size: 14px;
  stroke-width: 2.4;
}

.china-region-badge circle {
  fill: var(--accent);
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 2;
}

.china-region-badge text {
  fill: #fff;
  font-size: 16px;
  font-weight: 700;
  text-anchor: middle;
}

.map-world-halo {
  fill: url(#worldGlow);
}

.world-continent-shell {
  fill: rgba(255, 255, 255, 0.74);
  stroke: rgba(46, 124, 246, 0.12);
  stroke-width: 2;
}

.world-continent.has-highlight .world-continent-shell {
  stroke: rgba(21, 88, 214, 0.26);
}

.world-continent-label,
.world-continent-meta {
  fill: var(--primary-strong);
  font-size: 18px;
  font-weight: 700;
}

.world-continent-meta {
  font-size: 15px;
}

.world-region-pill {
  fill: rgba(255, 255, 255, 0.9);
  stroke: rgba(46, 124, 246, 0.16);
  stroke-width: 1.5;
}

.world-region-node.is-highlighted .world-region-pill {
  fill: rgba(46, 124, 246, 0.18);
  stroke: rgba(21, 88, 214, 0.34);
}

.world-region-label {
  fill: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  text-anchor: middle;
}

.world-region-node.is-highlighted .world-region-label {
  fill: var(--primary-strong);
}

.world-placeholder-dot {
  fill: rgba(46, 124, 246, 0.14);
}

.world-connector {
  fill: none;
  stroke: rgba(46, 124, 246, 0.16);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 12 14;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(46, 124, 246, 0.14);
  border: 1px solid rgba(46, 124, 246, 0.18);
}

.legend-swatch--active {
  background: rgba(46, 124, 246, 0.9);
}

.legend-swatch--muted {
  background: rgba(97, 120, 155, 0.18);
  border-color: rgba(97, 120, 155, 0.22);
}

.map-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.map-chip,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(46, 124, 246, 0.14);
  padding: 10px 14px;
  box-shadow: 0 8px 20px rgba(46, 124, 246, 0.08);
}

.map-chip {
  color: var(--primary-strong);
}

.map-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.switcher {
  background: rgba(255, 255, 255, 0.95);
  padding: 6px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.switcher button,
.tab-bar button {
  background: transparent;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 18px;
}

.switcher button.is-reserved {
  color: var(--text-muted);
}

.switcher button.active,
.tab-bar button.active,
.primary-btn {
  background: var(--primary);
  color: #fff;
}

.switcher button.active.is-reserved {
  background: rgba(46, 124, 246, 0.16);
  color: var(--primary-strong);
}

.scope-note {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.drawer {
  margin-top: auto;
  background: #fff;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 16px 20px 28px;
  box-shadow: 0 -18px 40px rgba(27, 78, 148, 0.12);
}

.drawer-handle {
  width: 80px;
  height: 6px;
  border-radius: 999px;
  background: #d9dde8;
  margin: 0 auto 20px;
}

.tab-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-around;
  margin: 24px 0;
  font-size: 18px;
  gap: 16px;
}

.summary-row > div,
.reserved-metric-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.92));
  border-radius: var(--radius-card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
}

.summary-row > div {
  flex: 1;
  padding: 18px 20px;
}

.summary-row strong {
  color: var(--accent);
}

.reserved-metric-card {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.reserved-metric-card[hidden] {
  display: none;
}

.reserved-metric-label {
  font-size: 14px;
  color: var(--text-muted);
}

.reserved-metric-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-strong);
}

.reserved-metric-description {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.list-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.92));
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
}

.list-title {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--primary);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-list span.is-empty {
  color: var(--text-muted);
  background: #eef4fd;
  border-style: dashed;
  box-shadow: none;
}

.map-chip.is-empty,
.selected-tags span.is-empty {
  color: var(--text-muted);
  background: rgba(238, 244, 253, 0.92);
  border-style: dashed;
  box-shadow: none;
}

.status-text {
  min-height: 0;
  color: rgba(67, 93, 140, 0.88);
  font-size: 12px;
  line-height: 1.45;
}

.selection-feedback {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(46, 124, 246, 0.14);
  background: linear-gradient(180deg, rgba(244, 249, 255, 0.98), rgba(236, 244, 255, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.selection-feedback[hidden] {
  display: none;
}

.selection-feedback.is-error {
  background: rgba(255, 241, 242, 0.98);
  border-color: rgba(201, 72, 74, 0.24);
}

.selection-feedback-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-strong);
}

.selection-feedback.is-error .selection-feedback-title {
  color: var(--danger);
}

.selection-feedback-summary {
  color: var(--text-main);
  line-height: 1.6;
}

.selection-feedback-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px;
  border-radius: var(--radius-pill);
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(46, 124, 246, 0.96), rgba(21, 88, 214, 0.92));
  color: #fff;
  box-shadow: 0 14px 28px rgba(46, 124, 246, 0.24);
  text-decoration: none;
}

.primary-btn:hover:not([disabled]) {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(46, 124, 246, 0.28);
}

.primary-btn[disabled] {
  opacity: 0.6;
}

.selection-body {
  min-height: 100vh;
}

.selection-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 20px 112px;
}

.selection-hero,
.selection-card,
.selection-footer {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
}

.selection-hero {
  border-radius: 28px;
  padding: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-strong);
  text-decoration: none;
  font-weight: 600;
}

.back-link::before {
  content: '←';
}

.selection-title {
  margin: 14px 0 0;
  font-size: 32px;
  line-height: 1.15;
}

.selection-description {
  margin: 14px 0 0;
  max-width: 620px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.selection-summary-card {
  display: inline-flex;
  margin-top: 22px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary-strong);
  font-size: 18px;
  box-shadow: 0 8px 22px rgba(46, 124, 246, 0.08);
}

.selection-summary-card strong {
  margin: 0 6px;
  color: var(--accent);
}

.selection-toolbar-shell {
  position: sticky;
  top: 10px;
  z-index: 18;
  margin-top: 12px;
  padding: 8px;
  border-radius: 24px;
  border: 1px solid rgba(125, 152, 211, 0.16);
  background: rgba(246, 250, 255, 0.88);
  box-shadow: 0 14px 34px rgba(27, 78, 148, 0.1);
  backdrop-filter: blur(14px);
}

.selection-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 8px;
}

.selection-toolbar__group {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(46, 124, 246, 0.14);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.94), transparent 42%),
    linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(238, 246, 255, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 24px rgba(46, 124, 246, 0.07);
}

.selection-toolbar__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-strong);
}

.selection-toolbar__group--search .selection-toolbar__label::before,
.selection-toolbar__group--jump .selection-toolbar__label::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(46, 124, 246, 0.1);
  color: var(--primary-strong);
  font-size: 13px;
}

.selection-toolbar__group--search .selection-toolbar__label::before {
  content: '🔎';
}

.selection-toolbar__group--jump .selection-toolbar__label::before {
  content: '⌖';
}

.selection-toolbar__field {
  display: grid;
  gap: 8px;
}

.selection-toolbar__field input,
.selection-toolbar__field select {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 15px;
  border: 1px solid rgba(125, 152, 211, 0.24);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-main);
  font: inherit;
  box-shadow: 0 8px 20px rgba(46, 124, 246, 0.05);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.selection-toolbar__field input:focus,
.selection-toolbar__field select:focus {
  border-color: rgba(46, 124, 246, 0.5);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(46, 124, 246, 0.12), 0 12px 24px rgba(46, 124, 246, 0.08);
}

.selection-toolbar__search-row {
  display: block;
}

.selection-toolbar__input-wrap {
  position: relative;
  display: grid;
  align-items: center;
}

.selection-toolbar__input-wrap input {
  padding-right: 68px;
}

.selection-toolbar__clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  min-width: auto;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(46, 124, 246, 0.16);
  border-radius: 999px;
  background: rgba(46, 124, 246, 0.08);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 700;
}

.selection-toolbar__scope-toggle {
  flex-wrap: wrap;
}

.selection-toolbar__feedback {
  display: grid;
  gap: 4px;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.selection-toolbar__result-count {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(46, 124, 246, 0.08);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-strong);
}

.selected-tags {
  margin-top: 20px;
}

.selected-tag {
  color: var(--primary-strong);
}

.selection-card {
  margin-top: 16px;
  border-radius: 28px;
  padding: 16px;
}

.selection-guide-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.selection-guide-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
}

.selection-guide-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.selection-groups {
  display: grid;
  gap: 12px;
}

.selection-group {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(46, 124, 246, 0.12);
  border-radius: 20px;
  padding: 16px;
  transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.selection-group.is-targeted {
  border-color: rgba(46, 124, 246, 0.42);
  box-shadow: 0 16px 36px rgba(46, 124, 246, 0.16);
  transform: translateY(-1px);
}

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

.selection-group-title {
  font-size: 19px;
  color: var(--primary);
  font-weight: 700;
}

.selection-group-meta {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 14px;
}

.selection-group-actions {
  display: flex;
  gap: 8px;
}

.selection-group-actions button {
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(46, 124, 246, 0.1);
  color: var(--primary-strong);
  cursor: pointer;
  font-size: 14px;
}

.selection-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.selection-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid rgba(46, 124, 246, 0.12);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.selection-option.is-checked {
  background: rgba(46, 124, 246, 0.14);
  border-color: rgba(46, 124, 246, 0.4);
  transform: translateY(-1px);
}

.selection-option--persisted {
  background: rgba(239, 246, 255, 0.78);
  border-color: rgba(46, 124, 246, 0.16);
}

.selection-option--added {
  background: rgba(236, 253, 245, 0.94);
  border-color: rgba(28, 154, 114, 0.28);
}

.selection-option--removed {
  background: rgba(255, 241, 242, 0.94);
  border-color: rgba(201, 72, 74, 0.3);
}

.selection-option__name {
  min-width: 0;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.selection-option__state {
  justify-self: end;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(97, 120, 155, 0.1);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.selection-option--added .selection-option__state {
  background: rgba(28, 154, 114, 0.12);
  color: #147252;
}

.selection-option--removed .selection-option__state {
  background: rgba(201, 72, 74, 0.12);
  color: var(--danger);
}

.selection-option__danger {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(201, 72, 74, 0.2);
  border-radius: 999px;
  background: rgba(201, 72, 74, 0.08);
  color: var(--danger);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.selection-option--removed .selection-option__danger {
  border-color: rgba(46, 124, 246, 0.18);
  background: rgba(46, 124, 246, 0.08);
  color: var(--primary-strong);
}

.selection-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.selection-option input:disabled {
  cursor: default;
  opacity: 0.58;
}

.selection-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  border: 1px dashed rgba(46, 124, 246, 0.18);
}

.selection-footer {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 22;
  width: min(calc(100% - 40px), 920px);
  transform: translateX(-50%);
  margin-top: 20px;
  border-radius: 24px;
  padding: 10px 14px 12px;
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(125, 152, 211, 0.14);
  box-shadow: 0 14px 34px rgba(27, 78, 148, 0.12);
  backdrop-filter: blur(14px);
}

.selection-footer__status-wrap {
  display: flex;
  align-items: center;
  min-height: 0;
  padding: 0 4px;
}

.selection-footer__status-wrap .status-text {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  padding: 0;
}

.selection-footer__status-wrap .status-text:not(:empty) {
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(244, 248, 255, 0.94), rgba(237, 244, 255, 0.9));
  border: 1px solid rgba(125, 152, 211, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.selection-save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: min(320px, 100%);
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.selection-save-btn:hover {
  transform: translateY(-1px);
}

.selection-feedback.is-success {
  border-color: rgba(46, 124, 246, 0.18);
  background: linear-gradient(180deg, rgba(244, 250, 255, 0.98), rgba(231, 244, 255, 0.94));
}

.selection-feedback.is-celebrating {
  animation: selection-celebrate-in 0.56s ease, selection-celebrate-glow 1.2s ease-in-out infinite alternate;
}

.selection-feedback.is-celebrating::before {
  content: '✦';
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 18px;
  color: rgba(46, 124, 246, 0.8);
  animation: selection-sparkle 0.9s ease-in-out infinite;
}

@keyframes selection-celebrate-in {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes selection-celebrate-glow {
  0% {
    box-shadow: 0 16px 34px rgba(27, 78, 148, 0.12);
  }

  100% {
    box-shadow: 0 22px 44px rgba(46, 124, 246, 0.18);
  }
}

@keyframes selection-sparkle {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }

  50% {
    transform: translateY(-3px) scale(1.12);
    opacity: 1;
  }
}

.selection-back-to-top {
  position: fixed;
  right: max(24px, calc((100vw - 960px) / 2 + 28px));
  bottom: 152px;
  z-index: 24;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 88px;
  height: 46px;
  padding: 0 14px 0 12px;
  border: 1px solid rgba(46, 124, 246, 0.2);
  border-radius: 999px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.98), transparent 46%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 243, 255, 0.94));
  color: var(--primary-strong);
  box-shadow:
    0 16px 34px rgba(27, 78, 148, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.96);
  pointer-events: none;
  backdrop-filter: blur(14px);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.selection-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.selection-back-to-top__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(46, 124, 246, 0.96), rgba(21, 88, 214, 0.92));
  color: #fff;
  font-size: 17px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(46, 124, 246, 0.22);
}

.selection-back-to-top__text {
  color: var(--primary-strong);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.selection-back-to-top:hover {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 1), transparent 46%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(222, 238, 255, 0.96));
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 22px 42px rgba(27, 78, 148, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.selection-back-to-top:focus-visible {
  outline: none;
  box-shadow:
    0 18px 38px rgba(27, 78, 148, 0.18),
    0 0 0 4px rgba(46, 124, 246, 0.14);
}

.selection-actions {
  display: grid;
  gap: 12px;
}

.secondary-link {
  color: var(--primary-strong);
  text-align: center;
  text-decoration: none;
  font-weight: 600;
}

.reserved-panel {
  display: grid;
  gap: 16px;
}

.reserved-panel h2 {
  margin: 0;
  font-size: 24px;
  color: var(--primary-strong);
}

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

.insight-panel,
.list-panel {
  margin: 0 20px 20px;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.home-province-ranking-panel {
  padding: 18px 20px;
}

.province-ranking {
  display: grid;
  gap: 12px;
}

.province-ranking--outerless {
  gap: 10px;
}

.province-ranking__title {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text-main);
}

.province-ranking__card {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.94));
  border: 1px solid rgba(125, 152, 211, 0.14);
  box-shadow: 0 14px 28px rgba(27, 78, 148, 0.08);
}

.province-ranking--outerless .province-ranking__card {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.province-ranking__list {
  display: grid;
  gap: 12px;
}

.province-ranking--compact .province-ranking__list {
  gap: 10px;
}

.province-ranking__row {
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: rgba(247, 250, 255, 0.96);
}

.province-ranking--compact .province-ranking__row {
  padding: 12px 12px 10px;
  border-radius: 16px;
}

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

.province-ranking__badge {
  min-width: 42px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.province-ranking__badge.is-gold {
  background: #fef3c7;
  color: #b45309;
}

.province-ranking__badge.is-silver {
  background: #e2e8f0;
  color: #475569;
}

.province-ranking__badge.is-bronze {
  background: #ffedd5;
  color: #9a3412;
}

.province-ranking__name {
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: #102348;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.province-ranking--compact .province-ranking__name {
  font-size: 14px;
}

.province-ranking__metrics {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.province-ranking__metrics strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}

.province-ranking__metrics em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
}

.province-ranking--compact .province-ranking__metrics strong {
  font-size: 13px;
}

.province-ranking--compact .province-ranking__metrics em {
  font-size: 10px;
}

.province-ranking__bar-track {
  margin-top: 10px;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e8eef8;
  overflow: hidden;
}

.province-ranking--compact .province-ranking__bar-track {
  margin-top: 8px;
  height: 6px;
}

.province-ranking__bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #60a5fa 0%, #2563eb 100%);
}

.province-ranking__bar-fill.is-top {
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
}

.province-ranking__toggle {
  margin: 14px auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(46, 124, 246, 0.14);
  background: rgba(238, 244, 255, 0.96);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.province-ranking--compact .province-ranking__toggle {
  min-height: 30px;
  padding: 0 12px;
  font-size: 11px;
}

.profile-map-panel__ranking {
  margin-top: 8px;
}

@media (max-width: 720px) {
  .province-ranking__title {
    font-size: 20px;
  }

  .province-ranking__card {
    padding: 14px;
  }

  .province-ranking__row {
    padding: 12px 12px 10px;
  }

  .province-ranking__row-top {
    gap: 8px;
  }

  .province-ranking__badge {
    min-width: 38px;
    min-height: 24px;
    font-size: 11px;
  }

  .province-ranking__name {
    font-size: 14px;
  }

  .province-ranking__metrics {
    gap: 6px;
  }

  .province-ranking__metrics strong {
    font-size: 13px;
  }

  .province-ranking__metrics em {
    font-size: 10px;
  }
}

.home-seo-copy h2,
.home-faq h2 {
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 1.2;
}

.home-seo-copy p,
.home-faq p {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

.home-faq__items {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.home-faq__item {
  border-radius: 16px;
  border: 1px solid rgba(46, 124, 246, 0.14);
  background: rgba(255, 255, 255, 0.86);
  padding: 14px 16px;
}

.home-faq__item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-main);
}

.home-faq__item p {
  margin-top: 10px;
}

.insight-header,
.list-header,
.action-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.list-header h3,
.insight-header h2 {
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 1.2;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(21, 88, 214, 0.88);
}

.section-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1;
  color: var(--primary-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(228, 239, 255, 0.94));
  border: 1px solid rgba(46, 124, 246, 0.14);
  box-shadow: 0 10px 20px rgba(34, 95, 182, 0.12);
}

.section-icon--spark {
  color: #7b4dff;
  background: linear-gradient(180deg, rgba(248, 244, 255, 0.98), rgba(232, 226, 255, 0.96));
  border-color: rgba(123, 77, 255, 0.16);
}

.section-icon--rank {
  color: #2f67d8;
}

.section-icon--guide {
  color: #159b8a;
  background: linear-gradient(180deg, rgba(239, 252, 250, 0.98), rgba(221, 245, 240, 0.96));
  border-color: rgba(21, 155, 138, 0.18);
}

.section-icon--insight {
  color: #d06a1a;
  background: linear-gradient(180deg, rgba(255, 249, 239, 0.98), rgba(255, 237, 213, 0.96));
  border-color: rgba(208, 106, 26, 0.18);
}

.section-icon--list {
  color: #ff8a30;
  background: linear-gradient(180deg, rgba(255, 249, 241, 0.98), rgba(255, 236, 214, 0.96));
  border-color: rgba(255, 138, 48, 0.18);
}

.section-icon--lock,
.section-icon--account {
  color: #2f67d8;
}

.section-icon--edit {
  color: #8b57ff;
  background: linear-gradient(180deg, rgba(249, 244, 255, 0.98), rgba(237, 228, 255, 0.96));
  border-color: rgba(139, 87, 255, 0.18);
}

.section-icon--bind {
  color: #1c9a72;
  background: linear-gradient(180deg, rgba(241, 253, 248, 0.98), rgba(223, 245, 233, 0.96));
  border-color: rgba(28, 154, 114, 0.18);
}

.summary-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 14px;
  font-size: 18px;
}

.summary-metrics strong {
  color: var(--primary-strong);
}

.flash-message {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(46, 124, 246, 0.12);
  background: rgba(238, 244, 253, 0.96);
  color: var(--primary-strong);
  line-height: 1.6;
}

.action-row {
  margin-top: 16px;
  align-items: center;
}

.floating-primary-action {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 32;
  width: fit-content;
  max-width: calc(100% - 24px);
  transform: translateX(-50%);
  pointer-events: none;
}


.floating-primary-action[data-authenticated="false"] .primary-link--floating {
  animation-duration: 2.3s;
}

.primary-link--floating {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.46);
  min-width: 260px;
  min-height: 56px;
  padding: 0 24px;
  background: linear-gradient(135deg, #2e7cf6 0%, #1558d6 100%);
  box-shadow:
    0 16px 28px rgba(46, 124, 246, 0.28),
    0 0 0 6px rgba(46, 124, 246, 0.08);
  pointer-events: auto;
  animation: floatingCtaPulse 3s ease-in-out infinite;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-link--floating:hover {
  transform: translateY(-4px) scale(1.025);
  border-color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, #3f8cff 0%, #1f63e8 52%, #174ec4 100%);
  filter: saturate(1.12) brightness(1.04);
  box-shadow:
    0 24px 42px rgba(21, 88, 214, 0.36),
    0 0 0 8px rgba(46, 124, 246, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.primary-link--floating::before {
  content: '✦';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-size: 15px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.42);
  transform-origin: center;
  animation: floatingCtaSparkBreath 1.55s ease-in-out infinite;
}

.primary-link--floating::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.42) 48%, transparent 76%);
  transform: translateX(-160%);
  animation: floatingCtaShine 3.8s ease-in-out infinite;
  pointer-events: none;
}

.primary-link--floating:active {
  transform: translateY(-1px) scale(0.99);
}

.primary-link--floating:focus-visible {
  outline: none;
  box-shadow:
    0 20px 34px rgba(46, 124, 246, 0.3),
    0 0 0 8px rgba(46, 124, 246, 0.12);
}

@keyframes floatingCtaPulse {
  0%,
  100% {
    box-shadow:
      0 16px 28px rgba(46, 124, 246, 0.28),
      0 0 0 0 rgba(46, 124, 246, 0.2);
  }

  50% {
    box-shadow:
      0 20px 34px rgba(46, 124, 246, 0.34),
      0 0 0 10px rgba(46, 124, 246, 0);
  }
}

@keyframes floatingCtaSparkBreath {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.92) rotate(0deg);
    filter: brightness(0.96);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.34);
  }

  50% {
    opacity: 1;
    transform: scale(1.22) rotate(8deg);
    filter: brightness(1.35);
    text-shadow:
      0 0 10px rgba(255, 255, 255, 0.72),
      0 0 18px rgba(255, 255, 255, 0.44);
  }
}

@keyframes floatingCtaShine {
  0%,
  18% {
    transform: translateX(-160%);
  }

  34%,
  100% {
    transform: translateX(160%);
  }
}

.action-lead {
  margin: 14px 0 0;
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.6;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.primary-link {
  min-width: 240px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(46, 124, 246, 0.24);
}

.secondary-link {
  color: var(--primary-strong);
  background: rgba(46, 124, 246, 0.08);
}

.secondary-link--reserved {
  min-height: auto;
  padding: 0;
  color: var(--text-muted);
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  box-shadow: none;
}

.auth-entry,
.auth-card,
.selection-auth-card {
  position: relative;
  border: 1px solid rgba(125, 152, 211, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 248, 255, 0.9));
}

.auth-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 14px;
  width: min(100%, 420px);
  min-width: 0;
  margin-left: auto;
  border-radius: 22px;
  padding: 14px 16px;
  box-shadow: 0 14px 32px rgba(27, 78, 148, 0.1);
}

.auth-entry--header {
  width: min(100%, 320px);
  padding: 10px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px rgba(27, 78, 148, 0.08);
}

.selection-auth-card {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-top: 18px;
  border-radius: 22px;
  padding: 12px 14px;
  box-shadow: 0 14px 32px rgba(27, 78, 148, 0.1);
}

.auth-card {
  gap: 20px;
  border-radius: 30px;
  box-shadow: 0 22px 42px rgba(27, 78, 148, 0.12);
}

.auth-entry__body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.auth-entry__profile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.auth-entry__profile[role='link'] {
  cursor: pointer;
  padding: 6px 8px;
  margin: -6px -8px;
  border-radius: 18px;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.auth-entry__profile[role='link']:hover {
  background: rgba(46, 124, 246, 0.08);
  box-shadow: inset 0 0 0 1px rgba(46, 124, 246, 0.08);
  transform: translateY(-1px);
}

.auth-entry__profile[role='link']:focus-visible {
  outline: none;
  background: rgba(46, 124, 246, 0.1);
  box-shadow: 0 0 0 4px rgba(46, 124, 246, 0.14);
}

.auth-entry__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(46, 124, 246, 0.22);
  flex-shrink: 0;
}

.auth-entry__avatar--large {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  font-size: 24px;
}

.auth-entry__identity {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.auth-entry__identity strong {
  font-size: 14px;
  line-height: 1.35;
  color: var(--text-main);
}

.auth-entry__identity span {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-entry__status,
.selection-auth-card__status {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.auth-entry__status {
  max-width: none;
  min-width: 0;
}

.selection-auth-card__status {
  flex: 1 1 220px;
  min-width: 0;
}

.auth-entry__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  flex-shrink: 0;
}

.auth-entry .auth-entry__link,
.auth-entry .auth-entry__button,
.auth-entry .auth-entry__menu-trigger,
.selection-auth-card .secondary-link,
.auth-card .secondary-btn {
  border: 1px solid rgba(46, 124, 246, 0.16);
  background: linear-gradient(135deg, rgba(46, 124, 246, 0.12), rgba(46, 124, 246, 0.18));
  color: var(--primary-strong);
  box-shadow: none;
}

.auth-entry .auth-entry__link,
.auth-entry .auth-entry__button,
.auth-entry .auth-entry__menu-trigger,
.selection-auth-card .secondary-link {
  min-height: 40px;
  padding: 0 14px;
}

.auth-entry .auth-entry__button,
.auth-entry .auth-entry__menu-trigger,
.auth-card .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  cursor: pointer;
  font: inherit;
  flex-shrink: 0;
}

.auth-entry .auth-entry__menu-trigger {
  border-radius: 999px;
  color: var(--primary-strong);
  font-weight: 700;
  gap: 8px;
  padding-left: 16px;
  padding-right: 14px;
  white-space: nowrap;
}

.auth-entry .auth-entry__button {
  white-space: nowrap;
}

.auth-entry__menu {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.auth-entry__menu-caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.auth-entry__menu.is-open .auth-entry__menu-caret {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.auth-entry__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  gap: 4px;
  min-width: 188px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(125, 152, 211, 0.24);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px rgba(27, 78, 148, 0.14);
  z-index: 10;
  transform-origin: top right;
}

.auth-entry__dropdown-item {
  border: none;
  background: transparent;
  border-radius: 12px;
  min-height: 42px;
  padding: 10px 12px;
  text-align: left;
  color: var(--text-main);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.auth-entry__dropdown-item:hover,
.auth-entry__dropdown-item:focus-visible {
  background: rgba(46, 124, 246, 0.08);
  outline: none;
}

.auth-entry__dropdown-item--danger {
  color: var(--danger);
}

.auth-card .secondary-btn {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
}

.auth-entry .auth-entry__link:hover,
.auth-entry .auth-entry__button:hover,
.auth-entry .auth-entry__menu-trigger:hover,
.selection-auth-card .secondary-link:hover,
.auth-card .secondary-btn:hover {
  background: linear-gradient(135deg, rgba(46, 124, 246, 0.18), rgba(46, 124, 246, 0.24));
}

.auth-entry .auth-entry__link:focus-visible,
.auth-entry .auth-entry__button:focus-visible,
.auth-entry .auth-entry__menu-trigger:focus-visible,
.selection-auth-card .secondary-link:focus-visible,
.auth-card .secondary-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(46, 124, 246, 0.14);
}

.auth-entry .auth-entry__button[disabled],
.auth-entry .auth-entry__menu-trigger[disabled],
.auth-card .secondary-btn[disabled] {
  opacity: 0.65;
  cursor: default;
}

.auth-entry--authenticated {
  align-items: center;
}

.auth-entry--guest {
  min-width: min(100%, 320px);
}

.home-drawer {
  position: fixed;
  inset: 0;
  z-index: 35;
}

.home-drawer__scrim {
  position: absolute;
  inset: 0;
  border: none;
  background: var(--drawer-scrim);
  cursor: pointer;
}

.home-drawer__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: min(360px, calc(100vw - 28px));
  min-height: 100%;
  padding: 24px 20px 28px;
  border-right: 1px solid rgba(125, 152, 211, 0.18);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.96), transparent 34%),
    linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(239, 246, 255, 0.96));
  box-shadow: 18px 0 42px rgba(19, 48, 86, 0.18);
}

.home-drawer__panel:focus {
  outline: none;
}

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

.home-drawer__title {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1.2;
}

.home-drawer__close {
  border: 1px solid rgba(46, 124, 246, 0.14);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  background: rgba(46, 124, 246, 0.08);
  color: var(--primary-strong);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.home-drawer__close:hover {
  background: rgba(46, 124, 246, 0.14);
}

.home-drawer__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(46, 124, 246, 0.14);
}

.home-drawer__account {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 24px;
  border: 1px solid rgba(125, 152, 211, 0.18);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.home-drawer__account:hover,
.home-drawer__account:focus-visible {
  border-color: rgba(46, 124, 246, 0.24);
  box-shadow: 0 12px 26px rgba(27, 78, 148, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.64);
  outline: none;
}

.home-drawer__account-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.home-drawer__account-copy strong {
  font-size: 16px;
  line-height: 1.25;
}

.home-drawer__account-copy span {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

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

.home-drawer__nav-item,
.home-drawer__logout {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: var(--text-main);
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.home-drawer__nav-item:hover,
.home-drawer__logout:hover {
  background: rgba(46, 124, 246, 0.08);
}

.home-drawer__nav-item:focus-visible,
.home-drawer__logout:focus-visible,
.home-drawer__login-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(46, 124, 246, 0.14);
}

.home-drawer__nav-item--active {
  border-color: rgba(46, 124, 246, 0.14);
  background: linear-gradient(180deg, rgba(46, 124, 246, 0.12), rgba(46, 124, 246, 0.08));
  color: var(--primary-strong);
}

.home-drawer__footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.home-drawer__login-link {
  min-height: 44px;
  justify-content: flex-start;
  padding: 0 16px;
  border-radius: 18px;
  background: rgba(46, 124, 246, 0.08);
}

.home-drawer__logout {
  color: var(--danger);
  background: rgba(201, 72, 74, 0.08);
}

.home-drawer__logout:hover {
  background: rgba(201, 72, 74, 0.14);
}

.home-drawer__logout[disabled] {
  opacity: 0.55;
  cursor: default;
}

.home-drawer__footnote {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.profile-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 40;
}

.profile-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 48, 86, 0.28);
  backdrop-filter: blur(6px);
}

.profile-modal__card {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid rgba(125, 152, 211, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.95));
  box-shadow: 0 28px 64px rgba(20, 55, 108, 0.22);
}

.profile-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.profile-modal__header h2 {
  margin: 0;
}

.profile-modal__header > div {
  display: grid;
  gap: 8px;
}

.profile-modal__card--about {
  max-width: 660px;
}

.profile-modal__close {
  min-height: 38px;
}

.profile-modal__description {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.profile-modal__preview {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.profile-modal__preview strong {
  display: block;
  font-size: 16px;
  line-height: 1.3;
  color: var(--text-main);
}

.profile-modal__actions {
  margin-top: 0;
  justify-content: flex-end;
}

.profile-modal__actions .primary-btn {
  width: auto;
  min-width: 148px;
  padding: 0 24px;
  font-size: 16px;
  box-shadow: 0 12px 24px rgba(46, 124, 246, 0.24);
}

.profile-modal__actions .secondary-link {
  min-width: 116px;
}

.auth-meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(46, 124, 246, 0.1);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 700;
}

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

.profile-panel--page {
  margin-top: 20px;
}

.page-section {
  display: grid;
  gap: 12px;
}

.page-section--highlight {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(46, 124, 246, 0.14);
  background: linear-gradient(180deg, rgba(239, 247, 255, 0.96), rgba(248, 251, 255, 0.96));
}

.page-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.info-grid--meta {
  gap: 14px;
}

.page--account {
  max-width: 960px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, rgba(223, 236, 255, 0.98) 0%, rgba(214, 228, 255, 0.86) 52%, rgba(248, 251, 255, 0.98) 100%);
}

.content-shell--account {
  padding: 0 20px 40px;
}

.hero-card--account {
  margin-top: 8px;
  padding: 22px 24px;
  display: grid;
  gap: 10px;
}

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

.account-guide-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
}

.account-guide-card strong {
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-main);
}

.account-guide-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.account-visitor-banner {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(125, 152, 211, 0.18);
  box-shadow: var(--shadow-card);
}

.account-visitor-banner strong {
  font-size: 15px;
}

.account-visitor-banner p {
  margin: 0;
  color: var(--text-secondary);
}

.profile-page__actions {
  justify-content: flex-end;
}

.account-floating-save {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 0 14px;
  pointer-events: none;
}

.primary-btn--floating-save {
  width: min(920px, 100%);
  min-height: 54px;
  font-size: 18px;
  pointer-events: auto;
  box-shadow: 0 20px 38px rgba(27, 78, 148, 0.22);
}

.menu-btn--link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(125, 152, 211, 0.18);
  box-shadow: 0 10px 24px rgba(27, 78, 148, 0.08);
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.menu-btn--link:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(125, 152, 211, 0.26);
  box-shadow: 0 14px 28px rgba(27, 78, 148, 0.12);
}

.menu-btn--link:active {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 22px rgba(27, 78, 148, 0.1);
}

.menu-btn--link:focus-visible {
  outline: 2px solid rgba(46, 124, 246, 0.28);
  outline-offset: 2px;
}

.menu-btn__back {
  display: block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  transform: none;
}

.top-bar--account .top-bar__primary {
  gap: 10px;
}

.top-bar--account .brand-mark {
  min-width: 0;
}

.top-bar--account .brand-mark__text span {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .menu-btn__back {
    font-size: 20px;
  }

  .top-bar--account .brand-mark__text span {
    white-space: normal;
  }
}

.profile-panel__section {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(46, 124, 246, 0.1);
  background: rgba(248, 251, 255, 0.94);
}

.profile-panel__section--editable {
  background: linear-gradient(180deg, rgba(239, 247, 255, 0.96), rgba(248, 251, 255, 0.96));
  border-color: rgba(46, 124, 246, 0.14);
}

.profile-panel__section--guest {
  gap: 10px;
  background: linear-gradient(180deg, rgba(244, 249, 255, 0.96), rgba(250, 252, 255, 0.94));
}

.profile-panel__section--readonly {
  background: rgba(248, 251, 255, 0.9);
}

.profile-panel__section--danger {
  background: linear-gradient(180deg, rgba(255, 246, 246, 0.96), rgba(255, 251, 251, 0.94));
  border-color: rgba(201, 72, 74, 0.18);
}

.profile-panel__section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.profile-panel__section-head h3 {
  margin: 8px 0 0;
  font-size: 22px;
  line-height: 1.25;
}

.profile-panel__helper {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.profile-panel__form {
  display: grid;
  gap: 12px;
}

.profile-panel__form--settings {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-panel__field--wide {
  grid-column: 1 / -1;
}

/* ===== 紧凑头像触发区 ===== */
.avatar-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.avatar-field__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.avatar-field__trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(46, 124, 246, 0.14);
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(244,248,255,0.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.52);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  font: inherit;
  text-align: left;
  color: inherit;
}

.avatar-field__trigger:hover {
  border-color: rgba(46, 124, 246, 0.28);
  box-shadow: 0 4px 12px rgba(27, 78, 148, 0.06), inset 0 1px 0 rgba(255,255,255,0.52);
}

.avatar-field__trigger:focus-visible {
  outline: none;
  border-color: rgba(46, 124, 246, 0.42);
  box-shadow: 0 0 0 3px rgba(46, 124, 246, 0.12);
}

.avatar-field__info {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.avatar-field__info strong {
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-main);
}

.avatar-field__info span {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.avatar-field__arrow {
  font-size: 24px;
  color: var(--text-secondary);
  opacity: 0.5;
  line-height: 1;
}

/* ===== 头像编辑模态对话框 ===== */
.avatar-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.avatar-modal[hidden] {
  display: none;
}

.avatar-modal__scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 60, 0.32);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: avatarFadeIn 0.25s ease;
  z-index: -1;
}

.avatar-modal__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: min(90vh, 640px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f8faff, #f0f5ff);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(27, 78, 148, 0.18);
  animation: avatarScaleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.avatar-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
  flex-shrink: 0;
}

.avatar-modal__header h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  color: var(--text-main);
}

.avatar-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(125, 152, 211, 0.1);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.avatar-modal__close:hover {
  background: rgba(125, 152, 211, 0.18);
  color: var(--text-main);
}

.avatar-modal__close:focus-visible {
  outline: 2px solid rgba(46, 124, 246, 0.28);
  outline-offset: 2px;
}

/* 标签栏 */
.avatar-modal__tabs {
  display: flex;
  gap: 4px;
  padding: 16px 24px 0;
  flex-shrink: 0;
}

.avatar-modal__tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.avatar-modal__tab:hover {
  background: rgba(46, 124, 246, 0.06);
  color: var(--text-main);
}

.avatar-modal__tab.is-active {
  background: rgba(46, 124, 246, 0.1);
  color: var(--primary-strong);
}

.avatar-modal__tab:focus-visible {
  outline: 2px solid rgba(46, 124, 246, 0.28);
  outline-offset: -2px;
}

/* 内容区 */
.avatar-modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 24px;
  -webkit-overflow-scrolling: touch;
}

.avatar-modal__pane {
  display: none;
}

.avatar-modal__pane.is-active {
  display: block;
}

.avatar-modal__picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

/* 上传面板 */
.avatar-modal__upload {
  display: grid;
  gap: 16px;
}

.avatar-modal__upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 20px;
  border-radius: 20px;
  border: 2px dashed rgba(46, 124, 246, 0.18);
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.avatar-modal__upload-area:hover {
  border-color: rgba(46, 124, 246, 0.32);
  background: rgba(255, 255, 255, 0.8);
}

.avatar-modal__upload-icon {
  color: var(--primary-strong);
  opacity: 0.5;
  line-height: 1;
}

.avatar-modal__upload-text {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.avatar-modal__upload-hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.avatar-modal__upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 14px;
  cursor: pointer;
  margin-top: 4px;
}

.avatar-modal__upload-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.avatar-modal__upload-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(125,152,211,0.16);
  background: rgba(255,255,255,0.88);
}

.avatar-modal__upload-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.avatar-modal__upload-copy strong {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-main);
  word-break: break-word;
}

.avatar-modal__upload-copy span {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.avatar-modal__upload-actions {
  display: flex;
  gap: 10px;
}

.avatar-modal__action-btn {
  flex: 1;
  min-height: 44px;
  border-radius: 14px;
}

/* 底部 */
.avatar-modal__footer {
  display: flex;
  gap: 10px;
  padding: 16px 24px 20px;
  flex-shrink: 0;
  border-top: 1px solid rgba(125,152,211,0.1);
}

.avatar-modal__footer button {
  flex: 1;
  min-height: 46px;
  border-radius: 14px;
}

.avatar-modal__cancel {
  font-weight: 600;
}

.avatar-modal__confirm {
  font-weight: 700;
  font-size: 16px;
}

/* 动画 */
@keyframes avatarFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes avatarScaleIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ===== 内置头像选择器（模态框内） ===== */
.avatar-modal__picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.avatar-modal__picker .avatar-choice__swatch {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  border-radius: 16px;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(27, 78, 148, 0.10);
}

.avatar-choice__body strong {
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-main);
}

.avatar-modal__picker__empty {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(241, 246, 255, 0.92);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  grid-column: 1 / -1;
}

@media (max-width: 480px) {
  .avatar-modal__picker {
    grid-template-columns: repeat(3, 1fr);
  }
  .avatar-modal__panel {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
  }
  .avatar-modal__header {
    padding: 16px 18px 0;
  }
  .avatar-modal__tabs {
    padding: 14px 18px 0;
  }
  .avatar-modal__body {
    padding: 12px 18px;
  }
  .avatar-modal__footer {
    padding: 14px 18px 18px;
  }
}

.avatar-choice {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(125, 152, 211, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.92));
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.avatar-choice:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(46, 124, 246, 0.28);
  box-shadow: 0 12px 24px rgba(27, 78, 148, 0.08);
}

.avatar-choice:focus-visible {
  outline: none;
  border-color: rgba(46, 124, 246, 0.42);
  box-shadow: 0 0 0 3px rgba(46, 124, 246, 0.12);
}

.avatar-choice.is-selected {
  border-color: rgba(46, 124, 246, 0.42);
  box-shadow: 0 0 0 3px rgba(46, 124, 246, 0.12);
}

.avatar-choice:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.avatar-choice__swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  border-radius: 18px;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(27, 78, 148, 0.12);
}

.avatar-choice__body {
  display: grid;
  gap: 0;
}

.avatar-choice__body strong {
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-main);
}

.profile-panel__attribution {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}

.profile-panel__feedback {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
}

.profile-panel__feedback[hidden] {
  display: none;
}

.profile-panel__feedback-title {
  font-size: 14px;
  line-height: 1.4;
}

.profile-panel__feedback-message {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.profile-info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.profile-info-list--readonly .profile-info-list__item {
  min-height: 88px;
  align-content: start;
  border-color: rgba(125, 152, 211, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 255, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.profile-info-list__item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(125, 152, 211, 0.14);
  background: rgba(255, 255, 255, 0.86);
}

.profile-info-list__item span {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.profile-info-list__item strong {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-main);
  word-break: break-word;
}

.profile-panel__note {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.profile-panel__guest-action {
  justify-self: flex-start;
}

.profile-danger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(201, 72, 74, 0.16);
  background: rgba(255, 255, 255, 0.82);
}

.profile-danger-row__copy {
  display: grid;
  gap: 6px;
}

.profile-danger-row__copy strong {
  font-size: 15px;
  line-height: 1.4;
  color: #8b2d31;
}

.profile-danger-row__copy p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(201, 72, 74, 0.2);
  background: rgba(201, 72, 74, 0.1);
  color: var(--danger);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.danger-btn:hover {
  background: rgba(201, 72, 74, 0.14);
}

.danger-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(201, 72, 74, 0.14);
}

.danger-btn[disabled] {
  opacity: 0.65;
  cursor: default;
}

.about-panel {
  display: grid;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.about-panel__intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(46, 124, 246, 0.08), rgba(255, 143, 61, 0.08));
  border: 1px solid rgba(46, 124, 246, 0.12);
}

.about-panel__intro p {
  margin: 8px 0 0;
}

.about-panel__product-name {
  font-size: 18px;
  line-height: 1.3;
  color: var(--text-main);
}

.about-panel__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(46, 124, 246, 0.1);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

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

.about-panel__meta-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(46, 124, 246, 0.1);
  background: rgba(248, 251, 255, 0.92);
}

.about-panel__meta-item span {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.about-panel__meta-item strong {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-main);
}

.about-panel__section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(46, 124, 246, 0.1);
  background: rgba(248, 251, 255, 0.92);
}

.about-panel__section-head {
  display: grid;
  gap: 8px;
}

.about-panel__section-head h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  color: var(--text-main);
}

.about-panel__helper {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.about-panel p {
  margin: 0;
}

.about-panel__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.about-panel__footnote {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-experience {
  display: grid;
  gap: 6px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(46, 124, 246, 0.08), rgba(255, 143, 61, 0.08));
  border: 1px solid rgba(46, 124, 246, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.auth-experience__label {
  margin-bottom: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.auth-experience__helper {
  margin-top: 0;
  color: var(--text-muted);
}

.auth-card .auth-inline-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.auth-status {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(125, 152, 211, 0.18);
  background: linear-gradient(180deg, rgba(233, 242, 255, 0.92), rgba(244, 248, 255, 0.88));
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.6;
}

.auth-status[data-tone="success"],
.auth-status.is-success {
  border-color: rgba(50, 160, 110, 0.2);
  background: rgba(50, 160, 110, 0.14);
  color: #176241;
}

.auth-status[data-tone="danger"],
.auth-status.is-danger,
.auth-status.is-error {
  border-color: rgba(201, 72, 74, 0.2);
  background: rgba(201, 72, 74, 0.12);
  color: #8b2d31;
}

.auth-status[data-tone="neutral"],
.auth-status.is-neutral {
  border-color: rgba(125, 152, 211, 0.18);
  background: linear-gradient(180deg, rgba(233, 242, 255, 0.92), rgba(244, 248, 255, 0.88));
  color: var(--text-main);
}

.list-description,
#listDescription {
  margin: 8px 0 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.list-header__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.list-count {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.highlight-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.highlight-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(46, 124, 246, 0.12);
  font-size: 14px;
  line-height: 1.2;
}

.highlight-list .empty-item {
  justify-content: center;
  width: 100%;
  min-height: 48px;
  color: var(--text-muted);
  border-style: dashed;
  border-radius: 16px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .map-placeholder {
    grid-template-columns: 1fr;
  }

  .map-canvas {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .top-bar,
  .map-panel,
  .drawer,
  .insight-panel,
  .list-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .top-bar {
    gap: 12px;
  }

  .map-placeholder {
    padding: 18px 16px 14px;
    gap: 12px;
  }

  .map-copy {
    justify-content: flex-start;
  }

  .map-eyebrow {
    font-size: 12px;
  }

  .map-title {
    margin-top: 10px;
    font-size: 24px;
    line-height: 1.18;
  }

  .map-highlight-list {
    margin-top: 12px;
    gap: 8px;
  }

  .map-chip {
    padding: 8px 12px;
    font-size: 13px;
  }

  .map-canvas {
    min-height: 280px;
  }

  .map-description,
  .summary-row {
    font-size: 15px;
  }

  .insight-header,
  .list-header,
  .action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .list-header__meta {
    align-items: flex-start;
  }

  .map-actions,
  .summary-row {
    flex-direction: column;
    align-items: stretch;
  }

  .scope-note {
    margin-top: 10px;
  }

  .switcher,
  .reset-btn {
    width: 100%;
  }

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

  .switcher button,
  .tab-bar button {
    width: 100%;
  }

  .selection-page {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 120px;
  }

  .selection-hero,
  .selection-card,
  .selection-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .selection-title {
    font-size: 28px;
  }

  .selection-group-header {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .selection-group-meta {
    font-size: 12px;
  }

  .selection-group-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .selection-group-actions button {
    padding: 8px 12px;
    font-size: 12px;
  }

  .selection-options {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .selection-toolbar {
    grid-template-columns: 1fr;
  }

  .selection-toolbar__search-row {
    display: block;
  }

  .selection-footer {
    width: calc(100% - 24px);
    bottom: 12px;
    padding: 10px 12px;
  }

  .selection-save-btn {
    width: min(280px, 100%);
    min-height: 48px;
    font-size: 16px;
  }

  .selection-back-to-top {
    right: 16px;
    bottom: 124px;
    min-width: 46px;
    width: 46px;
    padding: 0;
    justify-content: center;
  }

  .selection-back-to-top__text {
    display: none;
  }

  .profile-modal {
    padding: 16px;
  }

  .profile-modal__card {
    max-height: calc(100vh - 32px);
    padding: 20px 16px;
    border-radius: 24px;
  }

  .profile-panel__form--settings {
    grid-template-columns: 1fr;
  }

  .profile-panel__section-head,
  .about-panel__intro,
  .profile-modal__actions,
  .profile-danger-row {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-avatar-editor__head,
  .profile-avatar-upload__head,
  .profile-avatar-upload__actions,
  .profile-avatar-upload__status {
    flex-direction: column;
    align-items: stretch;
  }

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

  .profile-info-list,
  .about-panel__meta {
    grid-template-columns: 1fr;
  }

  .profile-shell-guide-row {
    grid-template-columns: 1fr;
  }
}

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

.brand-mark__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.24);
  flex: 0 0 auto;
}

.brand-mark__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-mark__text strong {
  color: var(--primary-strong);
  font-size: 14px;
  line-height: 1.2;
}

.brand-mark__text span {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.2;
}

.summary-metrics__context {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

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

.metric-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(29, 78, 216, 0.08);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-card--accent {
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.9), rgba(239, 246, 255, 0.86));
  border-color: rgba(37, 99, 235, 0.16);
}

.metric-card__label {
  color: var(--text-secondary);
  font-size: 13px;
}

.metric-card__value {
  color: var(--primary-strong);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.metric-card__helper {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .brand-mark__text span {
    display: none;
  }
}


@media (max-width: 860px) {
  .page--home {
    padding-bottom: calc(178px + env(safe-area-inset-bottom, 0px));
  }

  .floating-primary-action {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100% - 20px);
  }

  .primary-link--floating {
    min-width: 220px;
  }

  .top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .top-bar__meta {
    justify-content: flex-start;
    flex: none;
    width: 100%;
  }

  .auth-entry {
    width: 100%;
    margin-left: 0;
  }

  .auth-page {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }
}

@media (max-width: 640px) {
  .page--home {
    padding-bottom: calc(214px + env(safe-area-inset-bottom, 0px));
  }

  .floating-primary-action {
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .primary-link--floating {
    width: 100%;
    min-width: 0;
    min-height: 52px;
  }

  .auth-page {
    padding: 20px 16px 40px;
    gap: 18px;
  }

  .auth-hero,
  .auth-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .auth-title {
    font-size: 28px;
  }

  .auth-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-actions .primary-btn,
  .auth-actions .secondary-link,
  .auth-entry__link,
  .auth-entry__button,
  .auth-entry__menu-trigger,
  .selection-auth-card .secondary-link {
    width: 100%;
  }

  .selection-auth-card,
  .auth-entry {
    width: 100%;
  }

  .selection-auth-card {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-card .auth-inline-field {
    grid-template-columns: 1fr;
  }

  .auth-entry__status {
    max-width: none;
  }

  .auth-entry__actions {
    justify-self: stretch;
    width: 100%;
  }

  .auth-entry__menu,
  .auth-entry__dropdown {
    width: 100%;
  }

  .auth-entry {
    grid-template-columns: 1fr;
  }

  .auth-entry .auth-entry__link,
  .auth-entry .auth-entry__menu-trigger {
    width: 100%;
  }

  .auth-entry__dropdown {
    position: static;
    margin-top: 8px;
  }
}

.page--home {
  max-width: 960px;
  padding-top: 92px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, rgba(223, 236, 255, 0.98) 0%, rgba(214, 228, 255, 0.86) 52%, rgba(248, 251, 255, 0.98) 100%);
  overflow-x: hidden;
}

.page--home .top-bar--home {
  padding: 12px 16px 0;
}

.page--home .top-bar__meta {
  flex: 0 1 auto;
}

.home-account-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 176px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(14px);
  color: rgba(19, 48, 86, 0.56);
  font-size: 10.5px;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-account-status[data-state="authenticated"] {
  color: var(--primary-strong);
}

.home-account-status[data-state="loading"] {
  color: var(--text-muted);
}

.page--home .map-panel--home {
  padding: 0 14px;
}

.page--home .flash-message {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 8px 18px rgba(46, 124, 246, 0.06);
  font-size: 10.5px;
  line-height: 1.4;
}

.page--home .map-placeholder--home {
  min-height: 0;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 6px 0 18px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.hero-stats-strip {
  position: relative;
  isolation: isolate;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  max-width: 100%;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 18px rgba(46, 124, 246, 0.06);
  color: var(--text-main);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.hero-stats-strip::before,
.hero-stats-strip::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 16px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(112, 168, 255, 0), rgba(112, 168, 255, 0.95));
  opacity: 0.56;
  pointer-events: none;
  transform: translateY(-50%);
}

.hero-stats-strip::before {
  left: -2px;
}

.hero-stats-strip::after {
  right: -2px;
  transform: translateY(-50%) scaleX(-1);
}

.hero-stats-strip__main,
.hero-stats-strip__meta {
  position: relative;
  z-index: 1;
}

.hero-stats-strip__main {
  font-weight: 680;
  letter-spacing: 0.01em;
}

.hero-stats-strip__main strong {
  color: #db6175;
}

.hero-stats-strip__meta {
  padding-left: 7px;
  border-left: 1px solid rgba(163, 183, 223, 0.38);
  color: var(--text-muted);
  font-size: 10px;
}

.page--home .map-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 18px 0 20px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.page--home .map-state {
  min-height: 404px;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.page--home .footprint-map-svg {
  filter: drop-shadow(0 18px 30px rgba(46, 124, 246, 0.05));
}

.page--home .footprint-map-svg--china {
  width: 104%;
  max-width: none;
  margin: 2px -2% 10px;
}

.page--home .map-ocean,
.page--home .map-grid,
.page--home .map-glow,
.page--home .map-mode-pill,
.page--home .map-mode-pill-label,
.page--home .map-footnote {
  display: none;
}

.page--home .china-region-outline {
  fill: rgba(46, 124, 246, 0.02);
  stroke: rgba(182, 198, 230, 0.34);
  stroke-width: 2.4;
}

.page--home .china-region-base {
  fill: rgba(255, 255, 255, 0.97);
  stroke: rgba(166, 186, 225, 0.66);
  stroke-width: 1.2;
}

.page--home .china-region-fill {
  fill: #6498fb;
}

.page--home .china-region-node.is-highlighted .china-region-base {
  stroke: rgba(59, 111, 218, 0.72);
}

.page--home .map-panel__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 2px;
}

.page--home .scope-toggle {
  gap: 5px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.93);
  border-color: rgba(131, 158, 210, 0.18);
  box-shadow: 0 8px 18px rgba(46, 124, 246, 0.08);
}

.page--home .scope-button {
  min-width: 64px;
  padding: 9px 17px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(19, 48, 86, 0.72);
}

.page--home .scope-button.active {
  background: linear-gradient(180deg, #6aa0ff, #447ef1);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(68, 126, 241, 0.18);
}

.page--home .scope-button--reserved {
  opacity: 1;
}

.page--home .scope-button--reserved[disabled] {
  color: var(--text-main);
}

.page--home .map-legend {
  justify-content: flex-end;
  gap: 7px;
  font-size: 10px;
  opacity: 0.54;
}

.page--home .map-legend span {
  gap: 6px;
  white-space: nowrap;
}

.page--home .legend-swatch {
  width: 10px;
  height: 10px;
}


.site-footer {
  margin-top: 28px;
  padding: 0 16px calc(18px + env(safe-area-inset-bottom, 0px));
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(162, 183, 221, 0.16);
  box-shadow: 0 10px 28px rgba(31, 81, 165, 0.06);
  backdrop-filter: blur(10px);
}

.site-footer__brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(19, 48, 86, 0.72);
  white-space: nowrap;
}

.site-footer__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-width: 0;
}

.site-footer__copyright,
.site-footer__record-link {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(19, 48, 86, 0.5);
}

.site-footer__record-link {
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__record-link:hover,
.site-footer__record-link:focus-visible {
  color: rgba(46, 92, 185, 0.88);
}

.site-footer--selection {
  padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
}

.site-footer--auth {
  margin-top: 16px;
  padding-bottom: 16px;
}

.site-footer--policy {
  margin-top: 18px;
}

.site-footer--floating-gap {
  padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 720px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 16px;
  }

  .site-footer__meta {
    justify-content: flex-start;
  }

  .site-footer--selection {
    padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
  }

  .site-footer--floating-gap {
    padding-bottom: calc(102px + env(safe-area-inset-bottom, 0px));
  }
}

.home-sheet {
  position: relative;
  margin-top: 14px;
  padding: 10px 16px 30px;
  border-radius: 30px 30px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.9));
  box-shadow: 0 -12px 30px rgba(34, 73, 139, 0.06);
  backdrop-filter: blur(18px);
  display: grid;
  gap: 12px;
}

.home-sheet::before {
  content: '';
  position: absolute;
  inset: -8px 24px auto;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
  filter: blur(7px);
  pointer-events: none;
}

.home-sheet__handle {
  width: 40px;
  height: 4px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(188, 198, 216, 0.76);
}

.home-sheet__top {
  display: grid;
  gap: 10px;
}

.page--home .china-tab-bar {
  width: 100%;
  gap: 6px;
  padding: 4px;
  background: rgba(236, 242, 251, 0.76);
  border-color: rgba(131, 158, 210, 0.12);
  box-shadow: none;
}

.page--home .tab-button {
  min-width: 72px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
}

.page--home .tab-button.active {
  background: linear-gradient(180deg, #69a1ff, #3f77e8);
  box-shadow: 0 6px 14px rgba(63, 119, 232, 0.14);
}

.result-summary {
  margin: 0;
  padding-left: 2px;
  color: #8193b0;
  font-size: 11.5px;
  line-height: 1.5;
}

.action-row--home {
  justify-content: center;
  margin-top: 4px;
}

.primary-link--home {
  width: min(100%, 332px);
  min-height: 52px;
  background: linear-gradient(90deg, #6299ff, #356fdd);
  box-shadow: 0 14px 22px rgba(53, 110, 220, 0.2);
  font-size: 15px;
  letter-spacing: 0.01em;
}

.result-panel {
  display: grid;
  gap: 8px;
  padding: 12px 14px 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(249, 251, 255, 0.78), rgba(246, 249, 255, 0.64));
  border: 1px solid rgba(219, 227, 242, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.list-header--compact {
  margin-top: 0;
  align-items: center;
  padding-top: 0;
}

.list-header--compact h2 {
  margin: 0;
  font-size: 14px;
}
.metric-card__helper strong {
  color: var(--text-main);
  font-weight: 800;
}

.page--home .list-count {
  font-size: 10.5px;
  font-weight: 700;
  color: #93a4bf;
}

.page--home .highlight-list {
  margin-top: 0;
  gap: 6px;
}

.page--home .highlight-list[data-mode="inline"] {
  gap: 6px 14px;
  padding: 0 1px 2px;
}

.page--home .highlight-list[data-mode="inline"] li {
  padding: 0;
  background: transparent;
  border: none;
  color: rgba(39, 69, 111, 0.9);
  font-size: 13px;
  font-weight: 520;
  line-height: 1.7;
  box-shadow: none;
}

.highlight-inline-more {
  color: var(--text-muted) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
}

.page--home .highlight-pill {
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(180, 196, 227, 0.22);
  box-shadow: none;
}

.highlight-overflow {
  color: var(--text-muted);
  justify-content: center;
  background: rgba(255, 255, 255, 0.54);
  border-style: solid;
}

.page--home .empty-item {
  min-height: 48px;
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(187, 203, 231, 0.3);
  color: #7a8ead;
}

@media (max-width: 860px) {
  .page--home .top-bar--home {
    flex-direction: row;
    align-items: center;
  }

  .page--home .top-bar__meta {
    justify-content: flex-end;
    width: auto;
  }
}

@media (max-width: 640px) {
  .page--home {
    max-width: none;
  }

  .page--home .top-bar--home {
    padding: 14px 14px 4px;
  }

  .page--home .map-panel--home {
    padding: 0 14px;
  }

  .hero-stats-strip {
    gap: 8px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .page--home .map-canvas,
  .page--home .map-state {
    min-height: 360px;
  }

  .page--home .footprint-map-svg--china {
    width: 107%;
    margin: 4px -3.5% 12px;
  }

  .page--home .map-panel__footer {
    align-items: flex-end;
  }

  .home-sheet {
    margin-top: 10px;
    padding: 10px 14px 24px;
  }

  .home-sheet__top {
    gap: 8px;
  }

  .result-panel {
    padding: 13px 14px 15px;
  }

  .page--home .highlight-list[data-mode="inline"] li {
    font-size: 13px;
  }
}


.account-profile-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-shell-layout {
  align-items: stretch;
}

.auth-card--profile-shell {
  gap: 20px;
}

.profile-shell-hero {
  display: flex;
  gap: 18px;
  align-items: center;
}

.profile-shell-guide-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-shell-guide-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
}

.profile-shell-guide-card strong {
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-main);
}

.profile-shell-guide-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.profile-shell-avatar-wrap {
  flex: 0 0 auto;
}

.profile-shell-avatar {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  object-fit: cover;
  background: #f3f8ff;
  box-shadow: 0 10px 24px rgba(42, 88, 170, 0.12);
}

.profile-shell-meta {
  display: grid;
  gap: 8px;
}

.profile-shell-meta h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.profile-shell-signature {
  margin: 0;
  color: #50627a;
}


.profile-shell-footprint-summary {
  margin: 0;
  color: #2a5bc4;
  font-size: 14px;
  font-weight: 600;
}

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

.profile-summary-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.profile-summary-list div {
  display: grid;
  gap: 4px;
}

.profile-summary-list dt {
  color: #7a8aa0;
  font-size: 13px;
}

.profile-summary-list dd {
  margin: 0;
  color: #183153;
  word-break: break-all;
}

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

.profile-map-panel__summary {
  margin: 0;
  color: #50627a;
  line-height: 1.6;
}

.profile-map-panel__container {
  min-height: 320px;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(244, 249, 255, 0.96) 0%, rgba(236, 244, 255, 0.92) 100%);
  border: 1px solid rgba(46, 124, 246, 0.1);
}

.profile-map-panel__container .china-map-card {
  border: none;
  box-shadow: none;
  background: transparent;
}

.profile-map-panel__container .china-map-card__header {
  display: none;
}

.profile-map-panel__container .china-map-card__canvas {
  min-height: 260px;
}

.rankings-page-body {
  min-height: 100vh;
}

.page--rankings-shell {
  gap: 20px;
}

.rankings-top-bar {
  z-index: 60;
}

.rankings-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 20px 28px;
}

.rankings-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px;
}

.rankings-guide__item {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(247, 251, 255, 0.9);
  border: 1px solid rgba(130, 158, 214, 0.14);
}

.rankings-guide__item p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.rankings-hero,
.rankings-filters,
.rankings-list-panel,
.rankings-side-panel {
  border-radius: 24px;
}

.rankings-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
}

.rankings-hero__copy {
  display: grid;
  gap: 8px;
}

.rankings-hero h1 {
  margin: 6px 0 10px;
  font-size: 30px;
}

.rankings-hero__summary {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.rankings-hero__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.rankings-hero__badge,
.rankings-list__metric-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(46, 124, 246, 0.1);
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 700;
}

.rankings-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

.rankings-filter-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.rankings-filter-block {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 20px;
}

.rankings-filter-block--subject {
  background: linear-gradient(135deg, rgba(46, 124, 246, 0.08), rgba(46, 124, 246, 0.02));
  border: 1px solid rgba(46, 124, 246, 0.12);
}

.rankings-filter-block--metric {
  background: linear-gradient(135deg, rgba(255, 143, 61, 0.1), rgba(255, 143, 61, 0.03));
  border: 1px solid rgba(255, 143, 61, 0.14);
}

.rankings-filter-block__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.rankings-pill-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(130, 158, 214, 0.16);
}

.rankings-pill-group--subject {
  background: rgba(255, 255, 255, 0.82);
}

.rankings-pill-group--metric {
  background: rgba(255, 248, 242, 0.92);
  border-color: rgba(255, 143, 61, 0.12);
}

.rankings-filter-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(46, 124, 246, 0.08);
  color: var(--primary-strong);
}

.rankings-filter-current__text {
  font-size: 13px;
  font-weight: 700;
}

.segmented-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-main);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.segmented-btn:hover {
  transform: translateY(-1px);
}

.rankings-pill-group--subject .segmented-btn.is-active {
  background: linear-gradient(135deg, rgba(46, 124, 246, 0.96), rgba(21, 88, 214, 0.92));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(21, 88, 214, 0.18);
}

.rankings-pill-group--metric .segmented-btn {
  color: #7a4b1e;
}

.rankings-pill-group--metric .segmented-btn.is-active {
  background: linear-gradient(135deg, rgba(255, 143, 61, 0.96), rgba(255, 105, 54, 0.92));
  color: #fffdf9;
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(255, 143, 61, 0.22);
}

.segmented-btn.is-active {
  background: linear-gradient(135deg, rgba(46, 124, 246, 0.96), rgba(21, 88, 214, 0.92));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(21, 88, 214, 0.18);
}

.rankings-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(300px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.rankings-list-panel--region {
  min-height: 100%;
  display: none;
}

.rankings-panels:has(.rankings-list-panel--region) {
  grid-template-columns: minmax(0, 1fr);
}

.rankings-panels:not(:has(.rankings-list-panel--region)) {
  grid-template-columns: minmax(0, 1fr);
}

.rankings-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rankings-list__item {
  display: grid;
  grid-template-columns: 44px 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(247, 251, 255, 0.92);
  border: 1px solid rgba(130, 158, 214, 0.16);
}

.rankings-list__avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
  background: rgba(225, 237, 255, 0.88);
  border: 1px solid rgba(130, 158, 214, 0.24);
}

.brand-mark--home-link,
.auth-hero__brand--home-link,
.selection-hero__brand-link {
  text-decoration: none;
}

.selection-hero__brand-link {
  display: inline-flex;
  margin-top: 18px;
}

.rankings-list__rank {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(46, 124, 246, 0.12);
  color: var(--primary-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.rankings-list__content {
  min-width: 0;
}

.rankings-list__title {
  color: var(--text-main);
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
}

.rankings-list__subtitle {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.rankings-list__metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.rankings-list__metric-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.rankings-list__empty {
  padding: 18px;
  border-radius: 18px;
  background: rgba(247, 251, 255, 0.82);
  color: var(--text-muted);
}

.rankings-notes {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: 1.6;
}

.rankings-heat-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(247, 251, 255, 0.94);
  border: 1px solid rgba(130, 158, 214, 0.16);
}

.rankings-side-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.rankings-panels:has(.rankings-list-panel--region) .rankings-side-panel {
  grid-template-columns: 1fr;
}

.rankings-chart-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 250, 245, 0.96);
  border: 1px solid rgba(255, 143, 61, 0.14);
}

.rankings-chart-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.rankings-chart-panel__header h3 {
  margin: 6px 0 0;
  font-size: 18px;
}

.rankings-chart-panel__badge {
  align-self: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 143, 61, 0.12);
  color: #b85e00;
  font-size: 12px;
  font-weight: 700;
}

.rankings-chart-panel__summary {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.rankings-mini-chart--region {
  gap: 12px;
}

.rankings-mini-chart--region .rankings-mini-chart__row {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 143, 61, 0.1);
}

.rankings-heat-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.rankings-heat-panel__header h3 {
  margin: 6px 0 0;
  font-size: 18px;
}

.rankings-heat-panel__badge {
  align-self: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(46, 124, 246, 0.1);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 700;
}

.rankings-heat-panel__summary {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.rankings-heat-strip {
  display: grid;
  gap: 10px;
}

.rankings-heat-strip__item {
  display: grid;
  gap: 8px;
}

.rankings-heat-strip__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.rankings-heat-strip__meta strong {
  color: var(--text-main);
}

.rankings-heat-strip__bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(125, 152, 211, 0.12);
  overflow: hidden;
}

.rankings-heat-strip__bar span {
  display: block;
  height: 100%;
  width: var(--heat-width, 16%);
  border-radius: inherit;
  background: linear-gradient(90deg, #8fc1ff 0%, #4d86ff 100%);
}

.rankings-heat-strip__item--warm .rankings-heat-strip__bar span {
  background: linear-gradient(90deg, #ffcf70 0%, #ff9b54 100%);
}

.rankings-heat-strip__item--hot .rankings-heat-strip__bar span {
  background: linear-gradient(90deg, #ffb36b 0%, #ff5b6d 100%);
}

.rankings-heat-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
}

.rankings-heat-cloud__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(46, 124, 246, 0.08);
  color: var(--primary-strong);
  font-weight: 700;
  line-height: 1;
}

.rankings-heat-cloud--word {
  display: block;
  min-height: 0;
  height: 260px;
  max-height: 260px;
  overflow: hidden;
  padding: 6px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.82) 58%, rgba(219, 234, 254, 0.72) 100%);
  border: 1px solid rgba(130, 158, 214, 0.14);
}

.rankings-heat-cloud--word .rankings-heat-cloud__tag {
  box-shadow: 0 8px 18px rgba(27, 78, 148, 0.08);
}

.rankings-heat-cloud canvas {
  width: 100% !important;
  height: 100% !important;
  filter: drop-shadow(0 10px 18px rgba(37, 99, 235, 0.08));
}

.rankings-wordcloud-canvas {
  color: transparent;
}

.rankings-mini-chart {
  display: grid;
  gap: 10px;
}

.rankings-mini-chart__summary-card {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(130, 158, 214, 0.14);
}

.rankings-mini-chart__summary-card span {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.rankings-mini-chart__summary-card strong {
  font-size: 22px;
  line-height: 1;
  color: var(--primary-strong);
}

.rankings-mini-chart__row {
  display: grid;
  gap: 8px;
}

.rankings-mini-chart__meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.rankings-mini-chart__meta strong {
  color: var(--text-main);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rankings-mini-chart__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(46, 124, 246, 0.1);
  color: var(--primary-strong);
  font-weight: 800;
}

.rankings-mini-chart__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(125, 152, 211, 0.12);
  overflow: hidden;
}

.rankings-mini-chart__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7cb4ff 0%, #4c7dff 100%);
}

.rankings-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.rankings-pagination__button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(46, 124, 246, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-strong);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.rankings-pagination__button:hover:not(:disabled) {
  background: rgba(236, 244, 255, 0.98);
}

.rankings-pagination__button:disabled {
  opacity: 0.45;
  cursor: default;
}

.rankings-pagination__summary {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.rankings-heat-cloud__tag--warm {
  background: rgba(255, 172, 89, 0.14);
  color: #b85e00;
}

.rankings-heat-cloud__tag--hot {
  background: rgba(255, 95, 109, 0.16);
  color: #c23b4f;
}

.rankings-heat-cloud__empty {
  color: var(--text-tertiary);
  font-size: 13px;
}

.rankings-profile-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(247, 251, 255, 0.94);
  border: 1px solid rgba(130, 158, 214, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rankings-profile-card--hint {
  margin-top: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 248, 255, 0.94));
}

.rankings-self-rank-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.rankings-self-rank-stat {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(46, 124, 246, 0.08);
}

.rankings-self-rank-stat__label {
  font-size: 12px;
  color: var(--text-muted);
}

.rankings-self-rank-stat strong {
  font-size: 16px;
  color: var(--text-main);
}

.status-text[data-tone='danger'] {
  color: var(--danger);
}

@media (max-width: 920px) {
  .rankings-panels {
    grid-template-columns: 1fr;
  }

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

  .rankings-list-panel--region + .rankings-side-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rankings-panels:has(.rankings-list-panel--region) .rankings-side-panel {
    grid-template-columns: 1fr;
  }

  .rankings-guide {
    grid-template-columns: 1fr;
  }

  .compare-guide-row,
  .selection-guide-row,
  .account-guide-grid {
    grid-template-columns: 1fr;
  }

  .rankings-filters {
    flex-direction: column;
    align-items: stretch;
  }

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

  .rankings-filter-block {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .rankings-layout {
    padding: 0 12px 24px;
  }

  .rankings-hero {
    flex-direction: column;
    padding: 20px 18px;
  }

  .rankings-hero h1 {
    font-size: 28px;
  }

  .rankings-filters {
    padding: 14px;
  }

  .rankings-pill-group {
    width: 100%;
    justify-content: space-between;
  }

  .rankings-pill-group .segmented-btn,
  .rankings-filter-block .segmented-btn {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 12px;
    padding-right: 12px;
  }

  .rankings-self-rank-stats {
    grid-template-columns: 1fr;
  }

  .rankings-list-panel {
    padding-left: 12px;
    padding-right: 12px;
  }

  .rankings-list__item {
    grid-template-columns: 40px 44px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
  }

  .rankings-list__rank {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    font-size: 15px;
  }

  .rankings-list__avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .rankings-list__content {
    display: grid;
    gap: 6px;
  }

  .rankings-list__title-row {
    align-items: flex-start;
    gap: 6px;
  }

  .rankings-list__title {
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .rankings-list__subtitle {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .rankings-list__actions {
    opacity: 1;
    transform: none;
    gap: 8px;
  }

  .rankings-list__action-link {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(46, 124, 246, 0.08);
    text-decoration: none;
    font-size: 12px;
  }

  .rankings-list__metric {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(130, 158, 214, 0.14);
  }

  .rankings-list__metric-value {
    font-size: 18px;
  }

  .rankings-list__metric-badge {
    min-width: 48px;
  }

  .rankings-list__item--region {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .rankings-list__item--region .rankings-list__content {
    min-width: 0;
  }

  .rankings-list__item--region .rankings-list__title-row {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .rankings-list__item--region .rankings-list__title {
    font-size: 18px;
    line-height: 1.3;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .rankings-list__item--region .rankings-list__subtitle {
    margin-top: 2px;
    font-size: 13px;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .rankings-list__item--region .rankings-list__metric {
    margin-top: 4px;
    padding-top: 10px;
  }

  .rankings-side-panel {
    grid-template-columns: 1fr;
  }

  .rankings-list-panel--region + .rankings-side-panel {
    grid-template-columns: 1fr;
  }

  .rankings-panels:has(.rankings-list-panel--region) .rankings-side-panel {
    grid-template-columns: 1fr;
  }

  .rankings-heat-panel,
  .rankings-chart-panel {
    padding: 16px 14px;
  }

  .rankings-heat-cloud--word {
    height: 188px;
    max-height: 188px;
  }

  .rankings-mini-chart__summary-card {
    padding: 10px 12px;
  }

  .rankings-mini-chart__meta {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .rankings-mini-chart__meta span:last-child {
    grid-column: 2;
    justify-self: end;
  }
}

.rankings-list__item--top3 {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 245, 255, 0.98));
  border-color: rgba(46, 124, 246, 0.24);
  box-shadow: 0 14px 28px rgba(40, 90, 168, 0.1);
}

.rankings-list__rank--top3 {
  background: linear-gradient(135deg, rgba(255, 186, 60, 0.18), rgba(255, 143, 61, 0.2));
  color: #a55a09;
}

.rankings-list__item--skeleton {
  pointer-events: none;
}

.rankings-list__rank--skeleton {
  background: rgba(46, 124, 246, 0.08);
  color: transparent;
}

.rankings-skeleton-line,
.rankings-skeleton-pill {
  position: relative;
  overflow: hidden;
  background: rgba(46, 124, 246, 0.08);
}

.rankings-skeleton-line::after,
.rankings-skeleton-pill::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: rankings-skeleton-shimmer 1.2s infinite;
}

.rankings-skeleton-line {
  height: 14px;
  border-radius: 999px;
}

.rankings-skeleton-line--title {
  width: 58%;
}

.rankings-skeleton-line--subtitle {
  width: 84%;
  margin-top: 10px;
}

.rankings-skeleton-line--metric {
  width: 72px;
  height: 20px;
}

.rankings-skeleton-pill {
  width: 56px;
  height: 28px;
  border-radius: 999px;
}

@keyframes rankings-skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.rankings-profile-card--self-rank {
  background: linear-gradient(180deg, rgba(246, 251, 255, 0.96), rgba(238, 246, 255, 0.96));
}

.rankings-self-rank-button {
  align-self: flex-start;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(46, 124, 246, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(46, 124, 246, 0.12), rgba(46, 124, 246, 0.2));
  color: var(--primary-strong);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.rankings-self-rank-button:hover {
  background: linear-gradient(135deg, rgba(46, 124, 246, 0.18), rgba(46, 124, 246, 0.26));
}

.rankings-self-rank-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(46, 124, 246, 0.14);
}

.rankings-list__item--self {
  border-color: rgba(46, 124, 246, 0.38);
  box-shadow: 0 0 0 3px rgba(46, 124, 246, 0.08);
}

.rankings-list__item--focused {
  animation: rankings-self-focus 1.8s ease;
}

@keyframes rankings-self-focus {
  0% {
    transform: scale(0.995);
    box-shadow: 0 0 0 0 rgba(46, 124, 246, 0.24);
  }
  30% {
    transform: scale(1.01);
    box-shadow: 0 0 0 8px rgba(46, 124, 246, 0.16);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(46, 124, 246, 0);
  }
}

.compare-page-body {
  min-height: 100vh;
}

.compare-page-body .page--compare-shell {
  gap: 20px;
}

.compare-page-body .compare-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 20px 28px;
}

.compare-guide-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.compare-guide-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
}

.compare-guide-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.compare-page-body .card-shell {
  border-radius: 26px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
}

.compare-page-body .eyebrow {
  align-self: flex-start;
}

.compare-page-body .compare-hero {
  position: relative;
  padding: 24px 24px 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.84) 40%, rgba(255, 255, 255, 0.72) 70%),
    linear-gradient(160deg, rgba(219, 234, 254, 0.82), rgba(255, 244, 232, 0.56));
  border-color: rgba(29, 78, 216, 0.14);
}

.compare-page-body .compare-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(21, 88, 214, 0.12);
  pointer-events: none;
}

.compare-page-body .compare-hero h1 {
  margin: 10px 0 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.compare-page-body .compare-hero__summary {
  margin: 10px 0 0;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 14px;
}

.compare-page-body .compare-callout {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px dashed rgba(97, 120, 155, 0.26);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.compare-page-body .compare-hero__actions {
  margin-top: 14px;
}

.compare-page-body .compare-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.compare-page-body .compare-page__action {
  min-width: 140px;
  text-decoration: none;
}

.compare-page-body .compare-page__actions [hidden] {
  display: none;
}

.compare-page-body .compare-versus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.compare-page-body .compare-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}

.compare-page-body .compare-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.compare-page-body .compare-card__identity {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.compare-page-body .compare-card__identity-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.compare-page-body .compare-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #7cb4ff 0%, #4c7dff 100%);
  color: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48), 0 14px 30px rgba(76, 125, 255, 0.18);
}

.compare-page-body .compare-lead-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8a3d 0%, #ff4d6d 100%);
  color: #fff6f8;
  box-shadow: 0 10px 24px rgba(255, 77, 109, 0.28);
  font-size: 12px;
  font-weight: 800;
}

.compare-page-body .compare-card--leading {
  border-color: rgba(255, 109, 77, 0.34);
  box-shadow: 0 22px 44px rgba(255, 109, 77, 0.18);
  background: linear-gradient(180deg, rgba(255, 251, 247, 0.98), rgba(255, 245, 240, 0.98));
}

.compare-page-body .compare-card--lagging {
  opacity: 0.92;
}

.compare-page-body .compare-card--leading .compare-metric-pill {
  background: linear-gradient(180deg, rgba(255, 244, 236, 0.98), rgba(255, 250, 246, 0.98));
  border-color: rgba(255, 109, 77, 0.24);
}

.compare-page-body .compare-card--leading .compare-metric-pill strong {
  color: #df4d1f;
  transform: scale(1.09);
  transform-origin: left center;
}

.compare-page-body .compare-metric-pill__value--leading {
  color: #df4d1f !important;
  text-shadow: 0 6px 16px rgba(223, 77, 31, 0.14);
}

.compare-page-body .compare-card h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.08;
}

.compare-page-body .compare-card__signature,
.compare-page-body .compare-card__hint {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 13px;
}

.compare-page-body .compare-hero__summary {
  display: none;
}

.about-panel-shell {
  gap: 18px;
}

.about-panel__hero-card {
  display: grid;
  gap: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 248, 255, 0.94));
  padding: 22px 24px;
}

.about-panel__hero-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.about-panel__hero-logo {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  padding: 8px;
  box-shadow: 0 14px 30px rgba(27, 78, 148, 0.12);
}

.about-panel__hero-card h1 {
  margin: 6px 0 8px;
  font-size: 30px;
  line-height: 1.15;
}

.about-panel__hero-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

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

.about-panel__meta-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(247, 251, 255, 0.92);
  border: 1px solid rgba(125, 152, 211, 0.14);
}

.about-panel__meta-card span {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.about-panel__meta-card strong {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-main);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.about-panel__links-card {
  display: grid;
  gap: 16px;
  padding: 22px 24px;
}

.about-panel__lead {
  margin: -4px 0 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

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

.about-panel__link-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(247, 251, 255, 0.94);
  border: 1px solid rgba(125, 152, 211, 0.14);
  text-decoration: none;
  color: var(--text-main);
}

.about-panel__link-card strong {
  font-size: 16px;
}

.about-panel__link-card span {
  color: var(--text-muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.about-panel__link-card:hover {
  border-color: rgba(46, 124, 246, 0.24);
  box-shadow: 0 14px 28px rgba(27, 78, 148, 0.08);
}

.about-panel__stats-card {
  display: grid;
  gap: 18px;
  padding: 22px 24px;
}

.about-panel__access-card {
  display: grid;
  gap: 18px;
  padding: 22px 24px;
  background:
    radial-gradient(circle at top right, rgba(46, 124, 246, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 255, 0.96));
}

.about-access__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 14px;
}

.about-access__entry {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(125, 152, 211, 0.14);
  overflow: hidden;
}

.about-access__entry::after {
  content: '';
  position: absolute;
  inset: auto -36px -52px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.about-access__entry--app {
  background: linear-gradient(145deg, rgba(35, 103, 222, 0.95), rgba(79, 146, 255, 0.88));
  color: #f8fbff;
  box-shadow: 0 24px 44px rgba(25, 89, 202, 0.2);
}

.about-access__entry--mini {
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(236, 244, 255, 0.95));
  box-shadow: 0 16px 32px rgba(27, 78, 148, 0.08);
}

.about-access__intro {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.about-access__intro strong {
  font-size: 24px;
  line-height: 1.15;
}

.about-access__intro p {
  margin: 0;
  line-height: 1.7;
}

.about-access__entry--app .about-access__intro p {
  color: rgba(248, 251, 255, 0.88);
}

.about-access__tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.about-access__entry--app .about-access__tag {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.about-access__entry--mini .about-access__tag {
  background: rgba(46, 124, 246, 0.1);
  color: var(--primary-strong);
}

.about-access__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-access__action {
  min-height: 46px;
}

.about-access__qr-shell {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(100%, 212px);
  padding: 14px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.98));
  box-shadow: 0 16px 30px rgba(46, 124, 246, 0.08);
}

.about-access__qr-shell img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.about-access__hint {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(46, 124, 246, 0.08);
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 700;
}

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

.about-stats__stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(247, 251, 255, 0.92);
  border: 1px solid rgba(125, 152, 211, 0.14);
  display: grid;
  gap: 6px;
}

.about-stats__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.about-stats__number {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1d4ed8;
  line-height: 1.2;
}

.about-stats__stat:nth-child(2) .about-stats__number {
  color: #0891b2;
}

.about-stats__stat:nth-child(3) .about-stats__number {
  color: #059669;
}

.about-stats__stat:nth-child(4) .about-stats__number {
  color: #7c3aed;
}

.about-stats__chart-wrap {
  padding: 16px;
  border-radius: 20px;
  background: rgba(247, 251, 255, 0.92);
  border: 1px solid rgba(125, 152, 211, 0.14);
}

.about-stats__chart-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  padding: 0 4px;
}

.about-stats__chart-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.about-stats__chart-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.about-stats__chart {
  width: 100%;
  height: 240px;
}

.compare-page-body .compare-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2px;
}

.compare-page-body .compare-map-panel,
.compare-page-body .compare-similarity {
  padding: 22px;
}

.compare-page-body .compare-map-panel__head,
.compare-page-body .compare-similarity__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.compare-page-body .compare-map-panel__title,
.compare-page-body .compare-similarity__title {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.2;
}

.compare-page-body .compare-map-panel__summary,
.compare-page-body .compare-similarity__summary {
  margin: 0;
  max-width: 340px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.compare-page-body .compare-map-shell {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: start;
}

.compare-page-body .compare-province-map {
  width: 100%;
  min-height: 520px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.96), rgba(237, 245, 255, 0.92));
  border: 1px solid rgba(125, 152, 211, 0.16);
  overflow: hidden;
}

.compare-page-body .compare-contour-map-svg {
  display: block;
  width: 100%;
  height: 520px;
}

.compare-page-body .compare-contour-map-bg {
  fill: url(#compareContourBg);
}

.compare-page-body .compare-contour-map-glow {
  opacity: 0.88;
}

.compare-page-body .compare-contour-map-glow--left {
  fill: rgba(140, 199, 255, 0.18);
}

.compare-page-body .compare-contour-map-glow--right {
  fill: rgba(255, 208, 168, 0.18);
}

.compare-page-body .compare-contour-region {
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 1.6;
  transition: transform 0.18s ease, filter 0.18s ease, fill 0.18s ease;
}

.compare-page-body .compare-contour-region-label {
  fill: rgba(19, 48, 86, 0.82);
  font-size: 12px;
  font-weight: 800;
  text-anchor: middle;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.compare-page-body .compare-contour-region:hover {
  filter: brightness(1.04);
}

.compare-page-body .compare-contour-region--none {
  fill: rgba(225, 234, 246, 0.94);
}

.compare-page-body .compare-contour-region--common {
  fill: #78d9a2;
}

.compare-page-body .compare-contour-region--mine-only {
  fill: #6ea8ff;
}

.compare-page-body .compare-contour-region--target-only {
  fill: #ffb06a;
}

.compare-page-body .compare-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(247, 251, 255, 0.94);
  border: 1px solid rgba(125, 152, 211, 0.14);
}

.compare-page-body .compare-map-legend__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.compare-page-body .compare-map-legend__swatch {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  flex: 0 0 auto;
  border: 1px solid transparent;
}

.compare-page-body .compare-map-legend__swatch--none {
  background: rgba(237, 243, 251, 0.96);
  border-color: rgba(138, 160, 192, 0.18);
}

.compare-page-body .compare-map-legend__swatch--common {
  background: rgba(204, 242, 223, 0.98);
  border-color: rgba(64, 176, 109, 0.24);
}

.compare-page-body .compare-map-legend__swatch--mine {
  background: rgba(207, 229, 255, 0.98);
  border-color: rgba(46, 124, 246, 0.24);
}

.compare-page-body .compare-map-legend__swatch--target {
  background: rgba(255, 223, 203, 0.98);
  border-color: rgba(255, 143, 61, 0.3);
}

.compare-page-body .compare-similarity__grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.compare-page-body .compare-similarity-card {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(125, 152, 211, 0.16);
  background: rgba(246, 250, 255, 0.94);
}

.compare-page-body .compare-similarity-card--province {
  background: linear-gradient(180deg, rgba(234, 248, 255, 0.98), rgba(243, 249, 255, 0.96));
}

.compare-page-body .compare-similarity-card--city {
  background: linear-gradient(180deg, rgba(255, 247, 238, 0.98), rgba(255, 250, 245, 0.96));
}

.compare-page-body .compare-similarity-card__label {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.compare-page-body .compare-similarity-card__value-row {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.compare-page-body .compare-similarity-card__value-row strong {
  font-size: 36px;
  line-height: 1;
  color: var(--text-main);
}

.compare-page-body .compare-similarity-card__meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.compare-page-body .compare-similarity-card__hint {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.compare-page-body .compare-metric-pill {
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: rgba(247, 251, 255, 0.94);
  border: 1px solid rgba(130, 158, 214, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 78px;
}

.compare-page-body .compare-metric-pill__label {
  color: var(--text-muted);
  font-size: 12px;
}

.compare-page-body .compare-metric-pill__value {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.compare-page-body .compare-metric-pill strong {
  font-size: 34px;
  line-height: 1;
  font-weight: 850;
  color: var(--text-main);
}

.compare-page-body .compare-metric-pill__unit {
  color: rgba(97, 120, 155, 0.9);
  font-size: 12px;
  font-weight: 700;
}

.compare-page-body .compare-insights {
  padding: 22px;
}

.compare-page-body .compare-insights__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.compare-page-body .compare-insights__title {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  color: var(--text-main);
}

.compare-page-body .compare-insight-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.compare-page-body .compare-insight-card {
  min-height: 180px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(245, 250, 255, 0.9);
  border: 1px solid rgba(125, 152, 211, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.compare-page-body .compare-insight-card--positive {
  background: rgba(232, 246, 255, 0.92);
}

.compare-page-body .compare-insight-card--accent {
  background: rgba(255, 244, 232, 0.92);
}

.compare-page-body .compare-insight-card__label {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.compare-page-body .compare-insight-card__value {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.1;
  color: var(--text-main);
}

.compare-page-body .compare-insight-card__detail {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.compare-page-body .compare-insight-card__toggle {
  width: fit-content;
  margin-top: 10px;
  border: none;
  background: rgba(46, 124, 246, 0.1);
  color: var(--primary-strong);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.compare-page-body .compare-insight-card__toggle:hover {
  background: rgba(46, 124, 246, 0.16);
}

.compare-page-body .compare-insight-card__detail--expanded {
  padding-top: 4px;
  color: var(--text-main);
}

.compare-page-body .compare-insight-card__detail--sub {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(125, 152, 211, 0.22);
}

@media (max-width: 920px) {
  .compare-page-body .compare-versus-grid {
    grid-template-columns: 1fr;
  }

  .compare-page-body .compare-province-map {
    min-height: 460px;
  }

  .compare-page-body .compare-contour-map-svg {
    height: 460px;
  }

  .compare-page-body .compare-card__identity {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .compare-page-body .compare-card__avatar {
    width: 64px;
    height: 64px;
    border-radius: 20px;
  }

  .compare-page-body .compare-layout {
    padding: 0 14px 24px;
  }
}

@media (max-width: 768px) {
  .compare-page-body .compare-insight-grid,
  .compare-page-body .compare-similarity__grid {
    grid-template-columns: 1fr;
  }

  .compare-page-body .compare-province-map {
    min-height: 360px;
  }

  .compare-page-body .compare-contour-map-svg {
    height: 360px;
  }

  .compare-page-body .compare-map-legend {
    gap: 10px 14px;
  }
}

.rankings-list__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.rankings-list__action-link {
  font-size: 0.9rem;
}

.rankings-side-card__link[hidden] {
  display: none;
}

.rankings-side-card__link {
  text-decoration: none;
}

.rankings-list__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rankings-list__self-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(46, 124, 246, 0.12);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 700;
}

.rankings-list__item--current-user {
  border-color: rgba(46, 124, 246, 0.28);
  box-shadow: 0 10px 24px rgba(46, 124, 246, 0.1);
}

.rankings-list__item--current-user .rankings-list__rank {
  background: rgba(46, 124, 246, 0.18);
}

.rankings-list__item--current-user .rankings-list__subtitle {
  color: var(--text-secondary);
}

.rankings-list__actions {
  opacity: 0.88;
}

.rankings-list__item:hover .rankings-list__actions,
.rankings-list__item:focus-within .rankings-list__actions {
  opacity: 1;
}

.rankings-list__item--current-user .rankings-list__actions {
  opacity: 1;
}

.rankings-list__item--current-user .rankings-list__action-link {
  font-weight: 700;
}


.home-announcements {
  margin: 0 auto 16px;
  width: min(1120px, calc(100% - 32px));
}

.home-announcements__inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(120, 160, 220, 0.18);
  box-shadow: 0 12px 30px rgba(59, 89, 152, 0.08);
}

.home-announcements__badge {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(67, 141, 245, 0.12);
  color: #2b67c8;
  font-size: 12px;
  font-weight: 700;
}

.home-announcements__content {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.home-announcements__item {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #24405f;
  font-size: 14px;
  line-height: 1.45;
}

.home-announcements__title {
  color: #19314f;
  font-weight: 700;
}

.home-announcements__summary {
  min-width: 0;
}

.home-announcements__item a {
  color: #2b67c8;
  font-weight: 600;
}

.home-announcements__item code {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(43, 103, 200, 0.08);
  color: #214f9b;
  font-size: .92em;
}

.announcement-item--link { text-decoration: none; color: inherit; }
.announcement-item--link:hover { background: rgba(61,124,255,0.06); }

@media (max-width: 640px) {
  .home-announcements {
    margin-bottom: 12px;
    width: calc(100% - 24px);
  }

  .home-announcements__inner {
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
  }

  .home-announcements__content {
    display: block;
    overflow: hidden;
    white-space: nowrap;
  }

  .home-announcements__item {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 100%;
    white-space: nowrap;
    animation: homeAnnouncementMarquee 12s linear infinite;
  }

  .home-announcements__item:not(:first-child) {
    display: none;
  }

  .rankings-list__actions {
    justify-content: center;
  }

  .rankings-list__action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

@keyframes homeAnnouncementMarquee {
  0%,
  12% {
    transform: translateX(0);
  }

  88%,
  100% {
    transform: translateX(calc(-100% + 220px));
  }
}

.profile-page__actions{position:sticky;bottom:12px;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);padding:12px;border-radius:16px;border:1px solid #dbe7ff}.rankings-self-rank-card .secondary-btn{border-radius:999px;padding:10px 16px}.rankings-list__item--top{background:linear-gradient(180deg,#fff9e6,#ffffff);border-color:#f3d47a}.about-product__hero{display:flex;gap:20px;align-items:center}.about-product__logo{width:72px;height:72px}.about-badge{display:inline-block;margin-top:8px;padding:6px 12px;border-radius:999px;background:#eef4ff;color:#2458d3}.about-links{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.about-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.about-meta span{display:block;color:#6b7a99;font-size:13px}.about-meta strong{display:block;margin-top:6px;color:#1d2c4a}.rankings-self-rank-card.is-top{border-color:#f3d47a;background:linear-gradient(180deg,#fff9e6,#ffffff)}


.auth-body--immersive {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.92), rgba(255,255,255,0) 32%),
    radial-gradient(circle at top right, rgba(122,162,255,0.18), rgba(122,162,255,0) 28%),
    linear-gradient(180deg, #dcecff 0%, #c8defd 48%, #d8e8ff 100%);
}

.auth-shell {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  padding: 36px 0;
  align-items: stretch;
}

.auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 8px 20px 0;
}

.auth-visual__back {
  align-self: flex-start;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  color: #3b63b8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.auth-kicker--muted {
  background: rgba(79, 111, 201, 0.08);
}

.auth-title--immersive {
  max-width: 520px;
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1.05;
  margin: 0;
}

.auth-description--immersive {
  max-width: 520px;
  font-size: 17px;
  color: rgba(24, 44, 84, 0.72);
  margin-bottom: 6px;
}

.auth-scene {
  position: relative;
  flex: 1;
  min-height: 440px;
  overflow: hidden;
}

.auth-scene__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
}
.auth-scene__glow--a { width: 220px; height: 220px; background: rgba(96, 143, 255, 0.24); top: 28px; left: 80px; }
.auth-scene__glow--b { width: 180px; height: 180px; background: rgba(255, 196, 122, 0.22); right: 40px; bottom: 90px; }

.auth-scene__panel {
  position: absolute;
  inset: 24px 0 0 0;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255,255,255,0.88), rgba(255,255,255,0.62));
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: 0 24px 80px rgba(72, 110, 196, 0.18);
  overflow: hidden;
}

.auth-scene__map {
  position: absolute;
  inset: 58px 80px 140px 80px;
  background: radial-gradient(circle at 25% 30%, rgba(104, 147, 255, 0.18), rgba(104, 147, 255, 0) 32%), linear-gradient(180deg, rgba(255,255,255,0.8), rgba(231,239,255,0.98));
  clip-path: polygon(17% 10%, 43% 4%, 63% 12%, 79% 28%, 88% 48%, 74% 70%, 55% 86%, 38% 92%, 24% 82%, 11% 63%, 9% 34%);
  border: 1px solid rgba(87, 124, 211, 0.12);
}

.auth-scene__pin,
.auth-scene__path {
  position: absolute;
}

.auth-scene__pin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #7fa9ff 58%, #4d76dc 100%);
  box-shadow: 0 0 0 8px rgba(92, 130, 233, 0.14);
  animation: authPinPulse 2.8s ease-in-out infinite;
}
.auth-scene__pin--bj { top: 118px; left: 330px; }
.auth-scene__pin--sh { top: 184px; left: 412px; animation-delay: .6s; }
.auth-scene__pin--cd { top: 228px; left: 278px; animation-delay: 1.2s; }
.auth-scene__pin--gz { top: 290px; left: 344px; animation-delay: 1.8s; }

.auth-scene__path {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(91,132,232,0), rgba(91,132,232,0.95), rgba(91,132,232,0));
  transform-origin: left center;
  opacity: 0.9;
}
.auth-scene__path--north { width: 124px; top: 162px; left: 332px; transform: rotate(22deg); }
.auth-scene__path--south { width: 116px; top: 244px; left: 280px; transform: rotate(38deg); }

.auth-scene__stats {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}

.auth-stat-card {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: 0 12px 32px rgba(79, 116, 199, 0.12);
}
.auth-stat-card span,
.auth-stat-card small { display:block; }
.auth-stat-card span { color:#5576be; font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.auth-stat-card strong { display:block; margin-top:8px; font-size:22px; color:#16366d; }
.auth-stat-card small { margin-top:8px; color:rgba(27,49,92,.64); line-height:1.5; }
.auth-stat-card--mini strong { font-size:18px; }

.auth-card--immersive {
  align-self: center;
  padding: 32px;
  border-radius: 32px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(72, 110, 196, 0.16);
}

.auth-card__header h2 { margin: 10px 0 8px; font-size: 28px; color:#17366e; }
.auth-card__header p { margin:0; color:rgba(24,44,84,.68); line-height:1.6; }
.auth-card__footer { margin-top: 18px; }
.auth-card__hint { color: rgba(24,44,84,.62); line-height: 1.6; font-size: 14px; }

@keyframes authPinPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 8px rgba(92,130,233,0.14); }
  50% { transform: scale(1.18); box-shadow: 0 0 0 14px rgba(92,130,233,0.08); }
}

@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; width: min(100vw - 24px, 720px); padding: 18px 0 24px; }
  .auth-visual { padding-right: 0; }
  .auth-title--immersive { font-size: 38px; }
  .auth-scene { min-height: 320px; }
  .auth-scene__map { inset: 48px 36px 124px 36px; }
  .auth-scene__stats { grid-template-columns: 1fr; }
}

.auth-map-hero {
  position: absolute;
  inset: 22px 20px 22px 20px;
  border-radius: 28px;
  background: radial-gradient(circle at 30% 18%, rgba(255,255,255,0.9), rgba(255,255,255,0) 30%), linear-gradient(180deg, rgba(255,255,255,0.78), rgba(233,240,255,0.94));
  border: 1px solid rgba(255,255,255,0.75);
  overflow: hidden;
}
.auth-map-hero__badge {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  color: #4169bb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.auth-map-hero__svg {
  position: absolute;
  inset: 24px 20px 124px 20px;
  width: calc(100% - 40px);
  height: calc(100% - 148px);
}
.auth-map-hero__land {
  fill: url(#mapFill);
  stroke: rgba(103, 139, 223, 0.26);
  stroke-width: 3;
  filter: url(#softGlow);
}
.auth-map-hero__route {
  fill: none;
  stroke: rgba(92, 131, 231, 0.78);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 16 18;
  animation: authRouteFlow 5.6s linear infinite;
}
.auth-map-hero__route--b { animation-duration: 6.4s; }
.auth-map-hero__route--c { animation-duration: 7.2s; }
.auth-map-hero__city {
  fill: #7fa6ff;
  stroke: rgba(255,255,255,0.95);
  stroke-width: 6;
  filter: url(#softGlow);
  animation: authCityPulse 2.8s ease-in-out infinite;
}
.auth-map-hero__city--sh { animation-delay: .5s; }
.auth-map-hero__city--cd { animation-delay: 1s; }
.auth-map-hero__city--gz { animation-delay: 1.5s; }
.auth-map-hero__city--xa { animation-delay: 2s; }
.auth-scene__stats {
  left: 22px;
  right: 22px;
  bottom: 22px;
}
.auth-stat-card small { display:none; }
.auth-card__footer { display:none; }
@keyframes authRouteFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -180; }
}
@keyframes authCityPulse {
  0%, 100% { transform: scale(1); opacity: .94; }
  50% { transform: scale(1.18); opacity: 1; }
}

.auth-visual-meta {
  display: flex;
  gap: 10px;
  margin-top: -2px;
}
.auth-visual-meta span {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(255,255,255,0.76);
  color: rgba(28,55,106,0.7);
  font-size: 13px;
  font-weight: 600;
}
.auth-map-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 28% 24%, rgba(114,158,255,0.12), rgba(114,158,255,0) 24%), radial-gradient(circle at 70% 68%, rgba(255,196,122,0.12), rgba(255,196,122,0) 22%);
}
.auth-map-hero__svg { z-index: 1; }
.auth-map-hero__coast {
  fill: none;
  stroke: rgba(111, 149, 234, 0.18);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 10 18;
}
.auth-map-hero__city {
  transform-origin: center;
}
.auth-map-hero__city::after { content: none; }
.auth-map-hero__label {
  font-size: 13px;
  fill: rgba(46,74,136,.62);
}
.auth-stat-card {
  min-height: 104px;
}
.auth-stat-card strong {
  line-height: 1.25;
}
.auth-status {
  min-height: 46px;
  display: flex;
  align-items: center;
}

.auth-map-live {
  position: absolute;
  inset: 56px 22px 128px 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(236,242,255,0.96));
  border: 1px solid rgba(255,255,255,0.82);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}
.auth-map-live .china-map-shell,
.auth-map-live .china-map-shell svg {
  width: 100%;
  height: 100%;
}
.auth-map-live .china-map-shell {
  padding: 10px;
}
.auth-map-live .map-region--active {
  filter: drop-shadow(0 0 10px rgba(87, 129, 228, 0.22));
}

.auth-shell {
  align-items: stretch;
}
.auth-visual,
.auth-panel {
  min-height: 720px;
}
.auth-visual {
  display: flex;
  flex-direction: column;
}
.auth-description--immersive {
  max-width: 520px;
  margin-bottom: 20px;
}
.auth-scene--map {
  margin-top: auto;
  min-height: 430px;
  padding: 18px;
}
.auth-map-live {
  position: relative;
  inset: auto;
  min-height: 392px;
  height: 100%;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(236,243,255,0.98));
  border: 1px solid rgba(255,255,255,0.9);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72), 0 24px 60px rgba(84, 120, 209, 0.08);
}
.auth-map-live::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 46%, rgba(88, 132, 242, 0.12), rgba(88, 132, 242, 0) 38%);
  opacity: .7;
  pointer-events: none;
}
.auth-map-live.is-animating::after {
  animation: authMapGlow 1.1s ease-out;
}
.auth-map-live .map-head,
.auth-map-live .map-footnote,
.auth-map-live .map-badge,
.auth-map-live .map-chip {
  display: none;
}
.auth-map-live .china-map-shell {
  padding: 0;
  height: 100%;
}
.auth-map-live .china-map-shell svg {
  width: 100%;
  height: 100%;
}
.auth-map-live .china-region-node .china-region-shape {
  fill: rgba(255,255,255,0.96);
  stroke: rgba(156, 188, 245, 0.95);
  stroke-width: 1.5;
  transition: fill .35s ease, filter .35s ease, stroke .35s ease;
}
.auth-map-live .china-region-node.is-highlighted .china-region-shape {
  fill: #78a8ff;
  stroke: #4b82e9;
  filter: drop-shadow(0 0 10px rgba(95, 145, 255, 0.55));
  animation: authProvincePulse 1.1s ease-in-out infinite alternate;
}
.auth-map-live .china-region-node text {
  fill: rgba(29, 51, 97, 0.78);
}
.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@keyframes authMapGlow {
  0% { opacity: 0; transform: scale(.98); }
  35% { opacity: .95; transform: scale(1); }
  100% { opacity: .35; transform: scale(1.03); }
}
@keyframes authProvincePulse {
  from { fill: #90b6ff; filter: drop-shadow(0 0 6px rgba(95,145,255,0.32)); }
  to { fill: #4f86ef; filter: drop-shadow(0 0 16px rgba(95,145,255,0.62)); }
}
@media (max-width: 1100px) {
  .auth-visual,
  .auth-panel {
    min-height: auto;
  }
  .auth-scene--map {
    min-height: 360px;
  }
  .auth-map-live {
    min-height: 320px;
  }
}

.auth-visual__back,
.auth-visual-meta {
  display: none !important;
}
.auth-shell {
  gap: 34px;
}
.auth-kicker {
  margin-top: 28px;
}
.auth-description--immersive {
  color: rgba(47, 74, 123, 0.84);
}
.auth-scene--map {
  position: relative;
  min-height: 470px;
  padding: 16px;
}
.auth-map-live {
  z-index: 2;
}
.auth-map-glow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(12px);
  opacity: 0.5;
  animation: authGlowFloat 5s ease-in-out infinite;
}
.auth-map-glow--a {
  width: 180px;
  height: 180px;
  left: 34px;
  bottom: 46px;
  background: radial-gradient(circle, rgba(115, 166, 255, 0.42), rgba(115, 166, 255, 0));
}
.auth-map-glow--b {
  width: 220px;
  height: 220px;
  right: 28px;
  top: 26px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0));
  animation-delay: -2.2s;
}
.auth-map-live::after {
  background: radial-gradient(circle at 50% 46%, rgba(88, 132, 242, 0.16), rgba(88, 132, 242, 0) 42%);
  opacity: .95;
}
.auth-map-live.is-animating::after {
  animation: authMapGlow .9s ease-out;
}
.auth-map-live .china-map-shell {
  background: linear-gradient(180deg, rgba(221, 233, 255, 0.68), rgba(228, 238, 255, 0.3));
}
.auth-map-live .china-region-node .china-region-shape {
  fill: rgba(255,255,255,0.78);
  stroke: rgba(149, 183, 245, 0.92);
  stroke-width: 1.8;
}
.auth-map-live .china-region-node.is-highlighted .china-region-shape {
  fill: #4f8dff;
  stroke: #256ee8;
  filter: drop-shadow(0 0 8px rgba(73, 132, 255, 0.45)) drop-shadow(0 0 18px rgba(73, 132, 255, 0.35));
  animation: authProvincePulse .78s ease-in-out infinite alternate;
}
.auth-map-live .china-region-node text {
  fill: rgba(34, 57, 101, 0.82);
  transition: fill .28s ease, opacity .28s ease;
}
.auth-map-live .china-region-node.is-highlighted text {
  fill: #1548aa;
}
.auth-panel__hint--muted {
  color: #6f7fa1;
}
@keyframes authGlowFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .36; }
  50% { transform: translate3d(0, -10px, 0) scale(1.08); opacity: .7; }
}
@keyframes authMapGlow {
  0% { opacity: 0.12; transform: scale(.92); }
  35% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.28; transform: scale(1.05); }
}
@keyframes authProvincePulse {
  from { fill: #83b3ff; stroke: #4f8dff; }
  to { fill: #2f78f7; stroke: #0f5ddd; }
}

.auth-map-live .china-region-node {
  transition: opacity .24s ease;
}
.auth-map-live .china-region-node:not(.is-highlighted) {
  opacity: .42;
}
.auth-map-live .china-region-node.is-highlighted {
  opacity: 1;
}
.auth-map-live .china-region-node.is-highlighted .china-region-shape {
  fill: #2f78f7;
  stroke: #0c58da;
  stroke-width: 2.2;
  filter: drop-shadow(0 0 10px rgba(47, 120, 247, 0.5)) drop-shadow(0 0 20px rgba(47, 120, 247, 0.35));
}
.auth-map-live .china-region-node.is-highlighted text {
  fill: #0c47ac;
  font-weight: 700;
}
.auth-map-live .china-map-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.08) 40%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.08) 60%, rgba(255,255,255,0) 100%);
  transform: translateX(-120%);
  animation: authSweep 2.6s linear infinite;
  pointer-events: none;
}
@keyframes authSweep {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.auth-shell {
  max-width: 1480px;
  grid-template-columns: minmax(0, 1.22fr) minmax(420px, 480px);
  gap: 22px;
}
.auth-visual {
  position: relative;
  min-height: 780px;
}
.auth-scene--hero {
  min-height: 780px;
  padding: 0;
  margin-top: 0;
  background: transparent;
  box-shadow: none;
  border: none;
}
.auth-visual-copy {
  position: absolute;
  left: 42px;
  top: 120px;
  z-index: 4;
  max-width: 560px;
}
.auth-kicker {
  margin-top: 0;
}
.auth-title--immersive {
  margin-top: 18px;
  font-size: clamp(58px, 6vw, 92px);
  line-height: .98;
  letter-spacing: -0.04em;
  max-width: 640px;
}
.auth-description--immersive {
  margin-top: 22px;
  max-width: 420px;
  font-size: 20px;
  line-height: 1.6;
}
.auth-map-live {
  position: absolute;
  inset: 0;
  min-height: 100%;
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(241,247,255,0.72), rgba(214,228,255,0.82));
}
.auth-map-live .china-map-shell,
.auth-map-live .china-map-shell svg {
  height: 100%;
}
.auth-map-live .china-map-shell {
  position: relative;
}
.auth-map-live .china-map-shell svg {
  transform: scale(1.16) translate(18px, 18px);
  transform-origin: center center;
}
.auth-map-live::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 22%, rgba(255,255,255,0.72), rgba(255,255,255,0) 28%), radial-gradient(circle at 72% 70%, rgba(126, 167, 255, 0.18), rgba(126,167,255,0) 28%);
  z-index: 1;
  pointer-events: none;
}
.auth-map-live .china-map-shell {
  z-index: 2;
}
.auth-map-glow--a {
  width: 260px;
  height: 260px;
  left: 30px;
  bottom: 70px;
}
.auth-map-glow--b {
  width: 300px;
  height: 300px;
  right: 24px;
  top: 56px;
}
.auth-map-live .china-region-node:not(.is-highlighted) {
  opacity: .28;
}
.auth-map-live .china-region-node.is-highlighted .china-region-shape {
  animation: authProvincePulse .82s ease-in-out infinite alternate;
}
.auth-panel {
  min-height: 780px;
  align-self: center;
}
@media (max-width: 1100px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-visual,
  .auth-scene--hero,
  .auth-panel {
    min-height: auto;
  }
  .auth-visual-copy {
    position: relative;
    left: auto;
    top: auto;
    margin: 28px 0 0;
    max-width: none;
  }
  .auth-map-live {
    position: relative;
    min-height: 420px;
  }
  .auth-map-live .china-map-shell svg {
    transform: scale(1.04) translate(0, 10px);
  }
}

.auth-visual {
  overflow: hidden;
  border-radius: 42px;
  background: linear-gradient(180deg, rgba(238,245,255,0.26), rgba(214,228,255,0.18));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}
.auth-scene--hero {
  position: absolute;
  inset: 0;
}
.auth-visual-copy {
  left: 46px;
  top: 58px;
}
.auth-map-live {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.auth-map-live::before,
.auth-map-live::after {
  border-radius: 42px;
}
.auth-map-live .china-map-shell {
  background: transparent;
}
.auth-map-live .china-map-shell svg {
  transform: scale(1.34) translate(22px, 48px);
}
.auth-map-live .china-region-node:not(.is-highlighted) {
  opacity: .22;
}
.auth-map-live .china-region-node .china-region-shape {
  fill: rgba(255,255,255,0.42);
  stroke: rgba(145, 179, 245, 0.65);
}
.auth-map-live .china-region-node.is-highlighted .china-region-shape {
  fill: #2f78f7;
  stroke: #0b57dc;
  stroke-width: 2.4;
  animation: authProvincePulse .9s ease-in-out infinite alternate;
}
.auth-map-live .china-map-shell::after {
  animation: authSweep 1.8s linear infinite;
}
.auth-map-glow--a {
  left: -40px;
  bottom: 40px;
}
.auth-map-glow--b {
  right: -30px;
  top: 10px;
}
@media (max-width: 1100px) {
  .auth-scene--hero {
    position: relative;
    inset: auto;
  }
  .auth-visual {
    min-height: 520px;
  }
  .auth-map-live {
    position: absolute;
    inset: 0;
  }
}

/* login page only: avoid touching shared map renderer elsewhere */
.auth-body--immersive .auth-shell {
  background: transparent;
}
.auth-body--immersive .auth-visual {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.auth-body--immersive .auth-scene--hero {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.auth-body--immersive .auth-map-live {
  inset: -36px -24px -28px -40px;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.auth-body--immersive .auth-map-live::before,
.auth-body--immersive .auth-map-live::after {
  border-radius: 0;
}
.auth-body--immersive .auth-map-live .china-map-shell,
.auth-body--immersive .auth-map-live .china-map-shell svg,
.auth-body--immersive .auth-map-live .china-map-shell::after {
  background: transparent !important;
}
.auth-body--immersive .auth-map-live .china-map-shell {
  position: absolute;
  inset: 0;
}
.auth-body--immersive .auth-map-live .china-map-shell svg {
  width: 132%;
  height: 132%;
  max-width: none;
  transform: translate(-10%, 6%) scale(1.08);
  transform-origin: center center;
  opacity: .92;
}
.auth-body--immersive .auth-map-live .china-region-node:not(.is-highlighted) {
  opacity: .18;
}
.auth-body--immersive .auth-map-live .china-region-node .china-region-shape {
  fill: rgba(255,255,255,0.20);
  stroke: rgba(150, 184, 245, 0.42);
}
.auth-body--immersive .auth-map-live .china-region-node.is-highlighted .china-region-shape {
  fill: #3f84fb;
  stroke: #145fe0;
  filter: drop-shadow(0 0 10px rgba(63, 132, 251, 0.42)) drop-shadow(0 0 20px rgba(63, 132, 251, 0.25));
}
.auth-body--immersive .auth-map-live .china-region-node text {
  fill: rgba(33, 57, 102, 0.42);
}
.auth-body--immersive .auth-map-live .china-region-node.is-highlighted text {
  fill: rgba(17, 73, 176, 0.95);
}
.auth-body--immersive .auth-map-glow--a {
  left: 6%;
  bottom: 10%;
  width: 280px;
  height: 280px;
}
.auth-body--immersive .auth-map-glow--b {
  right: 4%;
  top: 10%;
  width: 360px;
  height: 360px;
}
.auth-body--immersive .auth-visual-copy {
  left: 24px;
  top: 48px;
  max-width: 600px;
}
.auth-body--immersive .auth-title--immersive {
  max-width: 680px;
}

/* stronger login-only background-map mode */
.auth-body--immersive .auth-visual {
  min-height: 780px;
}
.auth-body--immersive .auth-map-stage {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.auth-body--immersive .auth-map-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 18%, rgba(255,255,255,0.55), rgba(255,255,255,0) 24%), radial-gradient(circle at 74% 66%, rgba(123, 166, 255, 0.14), rgba(123,166,255,0) 28%);
  pointer-events: none;
  z-index: 1;
}
.auth-body--immersive .auth-map-live {
  position: absolute;
  inset: 0 !important;
  width: 100%;
  height: 100%;
  min-height: 100%;
}
.auth-body--immersive .auth-map-live .china-map-shell {
  position: absolute;
  inset: 0;
}
.auth-body--immersive .auth-map-live .china-map-shell svg {
  width: 150%;
  height: 150%;
  max-width: none;
  transform: translate(-18%, -2%) scale(1.02);
  transform-origin: center center;
}
.auth-body--immersive .auth-map-live .map-head,
.auth-body--immersive .auth-map-live .map-pill,
.auth-body--immersive .auth-map-live .map-footnote,
.auth-body--immersive .auth-map-live .map-badge,
.auth-body--immersive .auth-map-live .map-chip {
  display: none !important;
}
.auth-body--immersive .auth-map-live .china-map-shell::after {
  animation: authSweep 2.2s linear infinite;
  opacity: .65;
}
.auth-body--immersive .auth-visual-copy {
  z-index: 4;
  top: 52px;
  left: 24px;
}
.auth-body--immersive .auth-kicker,
.auth-body--immersive .auth-hero__brand {
  position: relative;
  z-index: 4;
}
.auth-body--immersive .auth-hero__brand {
  margin-left: 2px;
}
.auth-body--immersive .auth-title--immersive,
.auth-body--immersive .auth-description--immersive {
  text-shadow: 0 6px 24px rgba(255,255,255,0.2);
}

/* hard reset login visual structure */
.auth-body--immersive .auth-visual {
  position: relative;
  min-height: 780px;
  padding: 28px 20px 32px 20px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: hidden;
}
.auth-body--immersive .auth-map-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.auth-body--immersive .auth-map-background::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 16%, rgba(255,255,255,0.42), rgba(255,255,255,0) 22%), radial-gradient(circle at 72% 72%, rgba(115,158,255,0.14), rgba(115,158,255,0) 30%);
}
.auth-body--immersive .auth-hero__brand,
.auth-body--immersive .auth-kicker,
.auth-body--immersive .auth-visual-copy {
  position: relative;
  z-index: 2;
}
.auth-body--immersive .auth-hero__brand {
  margin-left: 0;
}
.auth-body--immersive .auth-visual-copy {
  position: relative;
  left: auto;
  top: auto;
  margin-top: 86px;
  max-width: 620px;
}
.auth-body--immersive .auth-title--immersive {
  margin-top: 20px;
  max-width: 720px;
}
.auth-body--immersive .auth-map-live {
  position: absolute;
  inset: 120px -90px -80px -140px !important;
  width: auto;
  height: auto;
  min-height: 0;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.auth-body--immersive .auth-map-live::before,
.auth-body--immersive .auth-map-live::after,
.auth-body--immersive .auth-map-stage,
.auth-body--immersive .auth-scene--hero {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.auth-body--immersive .auth-map-live .china-map-shell,
.auth-body--immersive .auth-map-live .china-map-shell::after {
  background: transparent !important;
}
.auth-body--immersive .auth-map-live .china-map-shell {
  position: absolute;
  inset: 0;
}
.auth-body--immersive .auth-map-live .china-map-shell svg {
  width: 160%;
  height: 160%;
  max-width: none;
  transform: translate(-14%, -6%) scale(1.04);
  transform-origin: center center;
  opacity: .88;
}
.auth-body--immersive .auth-map-live .map-head,
.auth-body--immersive .auth-map-live .map-pill,
.auth-body--immersive .auth-map-live .map-footnote,
.auth-body--immersive .auth-map-live .map-badge,
.auth-body--immersive .auth-map-live .map-chip,
.auth-body--immersive .auth-map-live .map-state {
  display: none !important;
}
.auth-body--immersive .auth-map-glow {
  z-index: 1;
}
.auth-body--immersive .auth-map-glow--a {
  left: -40px;
  top: 180px;
  bottom: auto;
}
.auth-body--immersive .auth-map-glow--b {
  right: -40px;
  bottom: 20px;
  top: auto;
}
@media (max-width: 1100px) {
  .auth-body--immersive .auth-map-live {
    inset: 180px -50px -30px -60px !important;
  }
  .auth-body--immersive .auth-map-live .china-map-shell svg {
    width: 145%;
    height: 145%;
    transform: translate(-8%, 0) scale(1.02);
  }
}

/* final login layout closure */
.auth-body--immersive .auth-shell {
  max-width: 1460px;
  align-items: stretch;
}
.auth-body--immersive .auth-visual {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 780px;
  padding: 30px 22px 36px 22px;
}
.auth-body--immersive .auth-visual-top {
  position: relative;
  z-index: 3;
}
.auth-body--immersive .auth-hero__brand {
  margin: 0;
}
.auth-body--immersive .auth-map-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.auth-body--immersive .auth-visual-copy {
  position: relative;
  z-index: 3;
  margin-top: 82px;
  max-width: 640px;
}
.auth-body--immersive .auth-map-live {
  position: absolute;
  inset: 170px -140px -120px -180px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.auth-body--immersive .auth-map-live .china-map-shell {
  position: absolute;
  inset: 0;
  background: transparent !important;
}
.auth-body--immersive .auth-map-live .china-map-shell svg {
  width: 175%;
  height: 175%;
  max-width: none;
  transform: translate(-19%, -16%) scale(1.03);
  transform-origin: center center;
  opacity: .86;
}
.auth-body--immersive .auth-map-live .map-head,
.auth-body--immersive .auth-map-live .map-pill,
.auth-body--immersive .auth-map-live .map-footnote,
.auth-body--immersive .auth-map-live .map-badge,
.auth-body--immersive .auth-map-live .map-chip,
.auth-body--immersive .auth-map-live [class*="map-head"],
.auth-body--immersive .auth-map-live [class*="map-footnote"],
.auth-body--immersive .auth-map-live [class*="pill"],
.auth-body--immersive .auth-map-live text.map-footnote,
.auth-body--immersive .auth-map-live text.map-headline,
.auth-body--immersive .auth-map-live text.map-pill {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}
.auth-body--immersive .auth-map-live .china-region-node:not(.is-highlighted) {
  opacity: .14;
}
.auth-body--immersive .auth-map-live .china-region-node .china-region-shape {
  fill: rgba(255,255,255,0.14);
  stroke: rgba(142, 177, 243, 0.34);
}
.auth-body--immersive .auth-map-live .china-region-node.is-highlighted .china-region-shape {
  fill: #3b82f6;
  stroke: #145fe0;
  stroke-width: 2.1;
  filter: drop-shadow(0 0 9px rgba(59,130,246,.34)) drop-shadow(0 0 18px rgba(59,130,246,.18));
}
.auth-body--immersive .auth-map-live .china-region-node text {
  fill: rgba(40, 63, 104, 0.24);
}
.auth-body--immersive .auth-map-live .china-region-node.is-highlighted text {
  fill: rgba(23, 77, 184, 0.92);
}
.auth-body--immersive .auth-map-glow--a {
  left: -90px;
  top: 120px;
  width: 340px;
  height: 340px;
}
.auth-body--immersive .auth-map-glow--b {
  right: -80px;
  bottom: 0;
  width: 420px;
  height: 420px;
}
.auth-body--immersive .auth-title--immersive {
  font-size: clamp(64px, 6.4vw, 102px);
  line-height: .96;
  letter-spacing: -0.045em;
}
.auth-body--immersive .auth-description--immersive {
  margin-top: 20px;
  font-size: 18px;
}
@media (max-width: 1100px) {
  .auth-body--immersive .auth-map-live {
    inset: 220px -70px -90px -90px !important;
  }
  .auth-body--immersive .auth-map-live .china-map-shell svg {
    width: 150%;
    height: 150%;
    transform: translate(-10%, -8%) scale(1.02);
  }
}

/* rebuild left side so map is the actual section background area */
.auth-body--immersive .auth-visual {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 22px;
  padding: 28px 22px 28px 22px;
}
.auth-body--immersive .auth-visual-top {
  z-index: 3;
}
.auth-body--immersive .auth-left-stage {
  position: relative;
  min-height: 640px;
  z-index: 1;
}
.auth-body--immersive .auth-map-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: transparent !important;
}
.auth-body--immersive .auth-map-background::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 18%, rgba(255,255,255,0.34), rgba(255,255,255,0) 22%), radial-gradient(circle at 70% 74%, rgba(115,158,255,0.12), rgba(115,158,255,0) 28%);
  z-index: 1;
  pointer-events: none;
}
.auth-body--immersive .auth-visual-copy {
  position: relative;
  z-index: 3;
  margin-top: 56px;
  max-width: 640px;
}
.auth-body--immersive .auth-map-live {
  position: absolute;
  inset: 110px -200px -120px -240px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.auth-body--immersive .auth-map-live::before,
.auth-body--immersive .auth-map-live::after {
  display: none !important;
}
.auth-body--immersive .auth-map-live .china-map-shell,
.auth-body--immersive .auth-map-live .china-map-shell::after {
  background: transparent !important;
}
.auth-body--immersive .auth-map-live .china-map-shell svg {
  width: 190%;
  height: 190%;
  max-width: none;
  transform: translate(-23%, -17%) scale(1.06);
  transform-origin: center center;
  opacity: .86;
}
.auth-body--immersive .auth-map-live .map-head,
.auth-body--immersive .auth-map-live .map-pill,
.auth-body--immersive .auth-map-live .map-footnote,
.auth-body--immersive .auth-map-live .map-badge,
.auth-body--immersive .auth-map-live .map-chip,
.auth-body--immersive .auth-map-live [class*="map-head"],
.auth-body--immersive .auth-map-live [class*="map-footnote"],
.auth-body--immersive .auth-map-live [class*="pill"] {
  display: none !important;
}
.auth-body--immersive .auth-map-glow {
  z-index: 2;
}
.auth-body--immersive .auth-map-glow--a {
  width: 380px;
  height: 380px;
  left: -120px;
  top: 160px;
}
.auth-body--immersive .auth-map-glow--b {
  width: 460px;
  height: 460px;
  right: -120px;
  bottom: -60px;
}
@media (max-width: 1100px) {
  .auth-body--immersive .auth-left-stage {
    min-height: 500px;
  }
  .auth-body--immersive .auth-map-live {
    inset: 160px -80px -80px -120px !important;
  }
  .auth-body--immersive .auth-map-live .china-map-shell svg {
    width: 155%;
    height: 155%;
    transform: translate(-12%, -8%) scale(1.02);
  }
}

/* kill remaining inner map panel look on login */
.auth-body--immersive .auth-map-live .china-map-shell {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.auth-body--immersive .auth-map-live .china-map-shell > * {
  border-radius: 0 !important;
}
.auth-body--immersive .auth-map-live svg,
.auth-body--immersive .auth-map-live svg * {
  vector-effect: non-scaling-stroke;
}
.auth-body--immersive .auth-map-live rect,
.auth-body--immersive .auth-map-live foreignObject {
  fill: transparent !important;
  stroke: transparent !important;
}
.auth-body--immersive .auth-map-live g[filter],
.auth-body--immersive .auth-map-live [style*="background"],
.auth-body--immersive .auth-map-live [style*="border-radius"] {
  border-radius: 0 !important;
}
.auth-body--immersive .auth-map-live .map-state,
.auth-body--immersive .auth-map-live .map-state * {
  display: none !important;
}
.auth-body--immersive .auth-left-stage {
  min-height: 700px;
}
.auth-body--immersive .auth-map-live {
  inset: 70px -260px -170px -300px !important;
}
.auth-body--immersive .auth-map-live .china-map-shell svg {
  width: 220%;
  height: 220%;
  transform: translate(-28%, -18%) scale(1.08);
  opacity: .78;
}
.auth-body--immersive .auth-map-live .china-region-node:not(.is-highlighted) {
  opacity: .1;
}
.auth-body--immersive .auth-map-live .china-region-node .china-region-shape {
  fill: rgba(255,255,255,0.08);
  stroke: rgba(141, 176, 241, 0.24);
}
.auth-body--immersive .auth-map-live .china-region-node.is-highlighted .china-region-shape {
  fill: rgba(59,130,246,.82);
  stroke: rgba(20,95,224,.88);
}

/* login page reset based on home map presentation */
.auth-body--immersive .auth-shell {
  max-width: 1460px;
  grid-template-columns: minmax(0, 1.18fr) minmax(420px, 480px);
  gap: 28px;
}
.auth-body--immersive .auth-visual {
  min-height: 760px;
  padding: 22px 8px 16px 8px;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
.auth-body--immersive .auth-left-stage {
  position: relative;
  min-height: 650px;
}
.auth-body--immersive .auth-map-background {
  position: absolute;
  inset: 190px 0 0 0;
  overflow: hidden;
  background: transparent;
}
.auth-body--immersive .auth-map-live {
  position: absolute;
  inset: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.auth-body--immersive .auth-map-live::before,
.auth-body--immersive .auth-map-live::after,
.auth-body--immersive .auth-map-glow {
  display: none !important;
}
.auth-body--immersive .auth-map-live .china-map-shell,
.auth-body--immersive .auth-map-live .china-map-shell::after,
.auth-body--immersive .auth-map-live .footprint-map-svg,
.auth-body--immersive .auth-map-live .footprint-map-svg--china {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
.auth-body--immersive .auth-map-live .china-map-shell {
  position: absolute;
  inset: 0;
  padding: 0 !important;
}
.auth-body--immersive .auth-map-live .footprint-map-svg,
.auth-body--immersive .auth-map-live .footprint-map-svg--china {
  width: 110%;
  max-width: none;
  margin: 0 -5%;
  filter: drop-shadow(0 18px 30px rgba(46, 124, 246, 0.05));
}
.auth-body--immersive .auth-map-live .map-ocean,
.auth-body--immersive .auth-map-live .map-grid,
.auth-body--immersive .auth-map-live .map-glow,
.auth-body--immersive .auth-map-live .map-mode-pill,
.auth-body--immersive .auth-map-live .map-mode-pill-label,
.auth-body--immersive .auth-map-live .map-footnote,
.auth-body--immersive .auth-map-live .map-head,
.auth-body--immersive .auth-map-live .map-pill,
.auth-body--immersive .auth-map-live .map-badge,
.auth-body--immersive .auth-map-live .map-chip,
.auth-body--immersive .auth-map-live [class*="footnote"],
.auth-body--immersive .auth-map-live [class*="pill"] {
  display: none !important;
}
.auth-body--immersive .auth-map-live .china-region-outline {
  fill: rgba(46, 124, 246, 0.02);
  stroke: rgba(182, 198, 230, 0.24);
  stroke-width: 2.2;
}
.auth-body--immersive .auth-map-live .china-region-base {
  fill: rgba(255,255,255,0.93);
  stroke: rgba(166,186,225,0.48);
  stroke-width: 1.1;
}
.auth-body--immersive .auth-map-live .china-region-fill {
  fill: #6c9df8;
}
.auth-body--immersive .auth-map-live .china-region-node.is-highlighted .china-region-base {
  stroke: rgba(59,111,218,0.74);
}
.auth-body--immersive .auth-map-live .china-region-node:not(.is-highlighted) {
  opacity: .76;
}
.auth-body--immersive .auth-visual-copy {
  margin-top: 82px;
  max-width: 580px;
}
.auth-body--immersive .auth-title--immersive {
  font-size: clamp(56px, 6vw, 92px);
  line-height: .98;
  letter-spacing: -0.04em;
}
.auth-body--immersive .auth-description--immersive {
  margin-top: 18px;
}
@media (max-width: 1100px) {
  .auth-body--immersive .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-body--immersive .auth-map-background {
    inset: 150px 0 0 0;
  }
}


/* ===== login target redesign ===== */
.auth-body--target-v2 {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,0.72), rgba(255,255,255,0) 24%),
    radial-gradient(circle at 78% 76%, rgba(147,184,255,0.3), rgba(147,184,255,0) 26%),
    linear-gradient(135deg, #dcebff 0%, #cfe3ff 38%, #c7ddff 100%);
}
.auth-target-shell {
  min-height: 100vh;
  max-width: 1680px;
  margin: 0 auto;
  padding: 28px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(420px, 520px);
  gap: 36px;
  align-items: center;
}
.auth-target-hero {
  position: relative;
  min-height: 860px;
  overflow: hidden;
}
.auth-target-brand {
  position: relative;
  z-index: 3;
}
.auth-target-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.auth-target-brand__logo {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(63, 109, 198, 0.16);
}
.auth-target-brand__text strong {
  display: block;
  color: #1f3f7a;
  font-size: 20px;
  font-weight: 700;
}
.auth-target-brand__text span {
  display: block;
  margin-top: 4px;
  color: rgba(44, 75, 131, 0.58);
  font-size: 15px;
}
.auth-target-copy {
  position: relative;
  z-index: 3;
  margin-top: 74px;
  max-width: 480px;
}
.auth-target-title {
  margin: 0;
  color: #183867;
  font-size: clamp(56px, 5.6vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.auth-target-subtitle {
  margin: 24px 0 0;
  color: rgba(52, 82, 136, 0.78);
  font-size: 18px;
  line-height: 1.65;
}
.auth-target-map-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.auth-target-map {
  position: absolute;
  left: 5%;
  right: -8%;
  top: 8%;
  bottom: 6%;
}
.auth-target-map .map-head,
.auth-target-map .map-footnote,
.auth-target-map .map-pill,
.auth-target-map .map-chip,
.auth-target-map .map-badge,
.auth-target-map [class*="footnote"],
.auth-target-map [class*="pill"] {
  display: none !important;
}
.auth-target-map .china-map-shell,
.auth-target-map .china-map-shell::after,
.auth-target-map .footprint-map-svg,
.auth-target-map .footprint-map-svg--china {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.auth-target-map .china-map-shell {
  position: absolute;
  inset: 0;
  padding: 0 !important;
}
.auth-target-map .footprint-map-svg,
.auth-target-map .footprint-map-svg--china,
.auth-target-map .china-map-shell svg {
  width: 100%;
  height: 100%;
  max-width: none;
}
.auth-target-map .china-map-shell svg {
  transform: scale(1.48) translate(14%, 4%);
  transform-origin: center center;
  opacity: .94;
  filter: drop-shadow(0 18px 36px rgba(68, 118, 214, 0.10));
}
.auth-target-map .map-ocean,
.auth-target-map .map-grid,
.auth-target-map .map-glow,
.auth-target-map .map-mode-pill,
.auth-target-map .map-mode-pill-label {
  display: none !important;
}
.auth-target-map .china-region-node:not(.is-highlighted) {
  opacity: .56;
}
.auth-target-map .china-region-outline {
  fill: rgba(255,255,255,0.18);
  stroke: rgba(175, 197, 239, 0.48);
  stroke-width: 1.8;
}
.auth-target-map .china-region-base {
  fill: rgba(255,255,255,0.74);
  stroke: rgba(184, 202, 237, 0.78);
  stroke-width: 1.05;
}
.auth-target-map .china-region-fill {
  fill: rgba(102, 149, 248, 0.88);
}
.auth-target-map .china-region-node.is-highlighted .china-region-base {
  fill: rgba(130, 174, 255, 0.95);
  stroke: rgba(88, 133, 228, 0.92);
  filter: drop-shadow(0 0 10px rgba(101, 151, 255, 0.34));
}
.auth-target-map .china-region-node text {
  fill: rgba(88, 117, 175, 0.36);
  font-size: 13px;
}
.auth-target-map .china-region-node.is-highlighted text {
  fill: rgba(34, 82, 179, 0.95);
}
.auth-target-map__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: .55;
  animation: authTargetGlowFloat 6s ease-in-out infinite;
}
.auth-target-map__glow--a {
  width: 320px;
  height: 320px;
  left: 18%;
  top: 28%;
  background: radial-gradient(circle, rgba(118,162,255,0.36), rgba(118,162,255,0));
}
.auth-target-map__glow--b {
  width: 360px;
  height: 360px;
  right: 12%;
  top: 14%;
  background: radial-gradient(circle, rgba(255,255,255,0.82), rgba(255,255,255,0));
  animation-delay: -2.8s;
}
.auth-target-panel {
  position: relative;
  min-height: 720px;
  border-radius: 40px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 28px 60px rgba(74, 118, 203, 0.16), inset 0 1px 0 rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.64);
  backdrop-filter: blur(14px);
}
.auth-target-panel__content {
  position: relative;
  z-index: 2;
  padding: 56px 52px;
}
.auth-target-tip {
  margin-top: 18px;
  color: rgba(77, 104, 161, 0.82);
  font-size: 14px;
  line-height: 1.45;
}
.auth-target-panel__decor {
  position: absolute;
  pointer-events: none;
}
.auth-target-panel__decor--corner {
  top: 16px;
  left: 16px;
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0));
  clip-path: polygon(0 0, 100% 0, 0 100%);
  opacity: .62;
}
.auth-target-panel__decor--dots {
  top: 24px;
  right: 22px;
  width: 64px;
  height: 64px;
  background-image: radial-gradient(rgba(174, 193, 239, 0.85) 1.2px, transparent 1.2px);
  background-size: 12px 12px;
  opacity: .72;
}
.auth-target-panel__intro h2 {
  margin: 0;
  color: #2b3f86;
  font-size: 48px;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.auth-target-panel__intro p {
  margin: 18px 0 0;
  color: rgba(79, 98, 141, 0.88);
  font-size: 18px;
}
.auth-target-form-shell {
  margin-top: 34px;
  padding: 28px;
  border-radius: 30px;
  background: rgba(255,255,255,0.54);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}
.auth-target-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.auth-target-field-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-target-label {
  color: #4d618f;
  font-size: 16px;
  font-weight: 700;
}
.auth-target-input {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(185, 204, 237, 0.92);
  background: rgba(255,255,255,0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}
.auth-target-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #30476f;
  font-size: 16px;
}
.auth-target-input__icon {
  font-size: 18px;
}
.auth-target-clear,
.auth-target-code-btn {
  border: 0;
  background: transparent;
  color: #7a89aa;
  cursor: pointer;
}
.auth-target-code-btn {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(46, 124, 246, 0.1);
  color: var(--primary-strong);
  font-size: 15px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.auth-target-code-btn:not(:disabled) {
  background: linear-gradient(135deg, rgba(46, 124, 246, 0.96), rgba(21, 88, 214, 0.92));
  color: #fff;
  box-shadow: 0 10px 20px rgba(46, 124, 246, 0.2);
}

.auth-target-code-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(46, 124, 246, 0.24);
}

.auth-target-code-btn:disabled {
  cursor: default;
  opacity: 0.72;
}
.auth-target-hint {
  color: rgba(112, 127, 163, 0.88);
  font-size: 14px;
}
.auth-target-agreement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #5d709e;
  font-size: 14px;
  line-height: 1.6;
  border-radius: 16px;
  padding: 8px 10px;
  margin: -8px -10px;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.auth-target-agreement input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
}
.auth-target-agreement.is-warning {
  color: #a33b45;
  background: rgba(255, 241, 242, 0.9);
  box-shadow: 0 0 0 1px rgba(201, 72, 74, 0.14);
  animation: authAgreementShake 360ms ease;
}

.auth-target-agreement.is-warning input {
  accent-color: #c9484a;
}
.auth-target-legal-note {
  margin: -8px 0 0;
  color: rgba(93, 112, 158, 0.76);
  font-size: 12px;
  line-height: 1.65;
}
.auth-target-status {
  margin: 0;
  min-height: 24px;
  color: #7b8aab;
  font-size: 14px;
}
.auth-target-submit {
  min-height: 62px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6 0%, #7384f8 100%);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(70, 118, 224, 0.22);
}
@keyframes authTargetGlowFloat {
  0%, 100% { transform: translate3d(0,0,0) scale(1); opacity: .42; }
  50% { transform: translate3d(0,-12px,0) scale(1.06); opacity: .72; }
}
@media (max-width: 1200px) {
  .auth-target-shell {
    grid-template-columns: 1fr;
    padding: 24px 20px 36px;
  }
  .auth-target-hero {
    min-height: 720px;
  }
  .auth-target-copy {
    margin-top: 34px;
    max-width: 100%;
  }
  .auth-target-title {
    font-size: clamp(34px, 7vw, 42px);
  }
  .auth-target-subtitle {
    max-width: 100%;
  }
  .auth-target-map {
    left: 10%;
    right: -10%;
    top: 14%;
    bottom: 0;
  }
}

.auth-target-map .china-map-shell svg {
  transform: scale(1.34) translate(10%, 10%);
}
.auth-target-map .china-region-node:not(.is-highlighted) {
  opacity: .82;
}
.auth-target-map .china-region-base {
  fill: rgba(255,255,255,0.82);
  stroke: rgba(188, 205, 238, 0.9);
  stroke-width: 1.15;
}
.auth-target-map .china-region-node.is-highlighted .china-region-base {
  fill: rgba(110, 157, 255, 0.98);
  stroke: rgba(87, 133, 228, 0.98);
  filter: drop-shadow(0 0 12px rgba(110,157,255,0.44));
}
.auth-target-map .china-region-node text {
  fill: rgba(112, 132, 175, 0.55);
}
.auth-target-map .china-region-node.is-highlighted text {
  fill: rgba(35, 84, 180, 0.96);
}
.auth-target-copy {
  max-width: 272px;
}
.auth-target-title {
  font-size: clamp(28px, 2.8vw, 38px);
}
.auth-target-panel__intro h2 {
  font-size: 44px;
}
.auth-target-submit {
  font-size: 24px;
}

.auth-target-submit.is-disabled-by-agreement {
  filter: grayscale(0.24) opacity(0.72);
  box-shadow: none;
}

@keyframes authAgreementShake {
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-5px); }
  44% { transform: translateX(5px); }
  66% { transform: translateX(-3px); }
  82% { transform: translateX(3px); }
}

@keyframes authTargetCopyPulse {
  0%, 100% { opacity: .42; transform: translateX(0); }
  50% { opacity: .9; transform: translateX(12px); }
}

.auth-target-agreement a {
  color: #4d76d6;
  text-decoration: none;
  font-weight: 600;
}
.auth-target-agreement a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .page:has(> .top-bar) {
    padding-top: calc(76px + env(safe-area-inset-top, 0px));
  }

  body.account-page-body > .page,
  body.rankings-page-body > .page {
    padding-top: calc(76px + env(safe-area-inset-top, 0px));
  }

  body.selection-body > .selection-page {
    padding-top: calc(104px + env(safe-area-inset-top, 0px));
  }

  .selection-page--with-topbar {
    padding-top: calc(92px + env(safe-area-inset-top, 0px));
  }

  .top-bar {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 10px;
    background: rgba(218, 236, 255, 0.88);
    border-bottom: 1px solid rgba(125, 152, 211, 0.12);
    box-shadow: 0 12px 28px rgba(27, 78, 148, 0.1);
    backdrop-filter: blur(16px);
  }

  .top-bar__primary {
    min-width: 0;
  }

  .top-bar__meta {
    display: none;
  }

  .top-bar .brand-mark {
    min-width: 0;
  }

  .top-bar .brand-mark__text {
    min-width: 0;
  }

  .top-bar .brand-mark__text strong,
  .top-bar .brand-mark__text span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .page--account {
    padding-bottom: 118px;
  }

  .account-floating-save {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 640px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .auth-body--target-v2 {
    min-height: 100dvh;
    overflow-x: hidden;
  }

  .auth-target-shell {
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px 16px 28px;
    overflow: hidden;
  }

  .auth-target-hero {
    min-height: 520px;
    width: 100%;
    overflow: hidden;
  }

  .auth-target-brand__link {
    gap: 12px;
    max-width: 100%;
  }

  .auth-target-brand__logo {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  .auth-target-brand__text strong {
    font-size: 20px;
  }

  .auth-target-brand__text span {
    font-size: 13px;
    white-space: normal;
  }

  .auth-target-copy {
    max-width: 100%;
    margin-top: 42px;
  }

  .auth-target-title {
    max-width: 100%;
    font-size: clamp(34px, 10.2vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.035em;
  }

  .auth-target-subtitle {
    margin-top: 18px;
    font-size: 16px;
  }

  .auth-target-map-stage {
    inset: 150px -40px 0 -80px;
    overflow: hidden;
  }

  .auth-target-map {
    left: 0;
    right: 0;
    top: 12%;
    bottom: 2%;
  }

  .auth-target-map .china-map-shell svg {
    transform: scale(1.08) translate(0, 4%);
    transform-origin: center;
  }

  .auth-target-panel {
    width: 100%;
    min-height: auto;
    border-radius: 30px;
  }

  .auth-target-panel__content {
    padding: 28px 20px 24px;
  }

  .auth-target-panel__intro h2 {
    font-size: clamp(34px, 10vw, 42px);
  }

  .auth-target-panel__intro p {
    margin-top: 12px;
    font-size: 15px;
  }

  .auth-target-form-shell {
    margin-top: 24px;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .auth-target-form {
    gap: 18px;
  }

  .auth-target-input {
    min-height: 54px;
    gap: 8px;
    padding: 0 12px;
    border-radius: 16px;
  }

  .auth-target-input input {
    min-width: 0;
    font-size: 15px;
  }

  .auth-target-code-btn {
    flex: 0 0 auto;
    max-width: 96px;
    padding-left: 8px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .auth-target-agreement {
    font-size: 13px;
  }

  .auth-target-agreement span {
    min-width: 0;
  }

  .auth-target-submit {
    min-height: 56px;
    font-size: 22px;
  }
}
.policy-body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #edf4ff 0%, #dce9ff 100%);
  color: #20355f;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.policy-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}
.policy-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.policy-back,
.policy-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #325391;
  text-decoration: none;
}
.policy-back {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 10px 24px rgba(89, 125, 206, 0.12);
}
.policy-brand {
  font-weight: 700;
}
.policy-brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.policy-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 30px;
  box-shadow: 0 24px 54px rgba(93, 129, 207, 0.16);
  overflow: hidden;
}
.policy-hero {
  padding: 40px 40px 24px;
  background: linear-gradient(180deg, rgba(235,243,255,0.92) 0%, rgba(255,255,255,0.76) 100%);
}
.policy-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(80, 120, 220, 0.12);
  color: #4970c8;
  font-size: 13px;
  font-weight: 700;
}
.policy-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  color: #27447c;
}
.policy-hero p {
  margin: 0;
  max-width: 720px;
  color: #5d74a5;
  font-size: 16px;
  line-height: 1.7;
}
.policy-meta {
  margin-top: 12px !important;
  font-size: 13px !important;
  color: #7d90b6 !important;
}

.policy-guide-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 40px 8px;
}

.policy-guide-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(244, 248, 255, 0.86);
  border: 1px solid rgba(188, 208, 244, 0.56);
}

.policy-guide-card strong {
  font-size: 15px;
  line-height: 1.45;
  color: #27447c;
}

.policy-guide-card p {
  margin: 0;
  color: #64789f;
  font-size: 14px;
  line-height: 1.65;
}
.policy-content {
  padding: 8px 40px 40px;
}
.policy-content section + section {
  margin-top: 28px;
}
.policy-content h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #2d4a83;
}
.policy-content p,
.policy-content li {
  color: #4d628d;
  font-size: 15px;
  line-height: 1.85;
}
.policy-content ul {
  margin: 12px 0 0;
  padding-left: 22px;
}
.about-links--policy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.about-link-card {
  display: block;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(245,249,255,0.96) 0%, rgba(232,240,255,0.92) 100%);
  border: 1px solid rgba(188, 208, 244, 0.72);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(79, 116, 194, 0.08);
}
.about-link-card__title {
  display: block;
  color: #27447c;
  font-size: 17px;
  font-weight: 700;
}
.about-link-card__meta {
  display: block;
  margin-top: 8px;
  color: #64789f;
  font-size: 14px;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .policy-shell {
    padding: 20px 14px 32px;
  }
  .policy-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .policy-card {
    border-radius: 22px;
  }
  .policy-hero,
  .policy-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .policy-guide-row {
    grid-template-columns: 1fr;
    padding: 0 20px 8px;
  }
}

/* Download entry */
.download-entry {
  position: relative;
}

.download-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px 0 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.95));
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  border: 1px solid rgba(46, 124, 246, 0.14);
  box-shadow: 0 10px 24px rgba(27, 78, 148, 0.08);
}

.download-app-btn--trigger {
  cursor: pointer;
}

.download-app-btn__label {
  display: inline-flex;
  align-items: center;
}

.download-app-btn__chevron {
  opacity: 0.72;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

/* Share button in top bar */
.home-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  background: rgba(46, 124, 246, 0.1);
  color: var(--primary);
  border: 1px solid rgba(46, 124, 246, 0.15);
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.home-share-btn:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 124, 246, 0.28);
}

.home-share-btn svg {
  transition: transform 0.25s ease;
}

.home-share-btn:hover svg {
  transform: scale(1.1);
}

.download-app-btn:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(235, 245, 255, 0.98));
  color: var(--primary-strong);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(27, 78, 148, 0.14);
}

.download-app-btn svg {
  transition: transform 0.25s ease;
}

.download-entry:hover .download-app-btn__chevron,
.download-entry:focus-within .download-app-btn__chevron,
.download-entry.is-open .download-app-btn__chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.download-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(125, 152, 211, 0.16);
  box-shadow: 0 24px 52px rgba(27, 78, 148, 0.16);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 120;
}

.download-entry:hover .download-menu,
.download-entry:focus-within .download-menu,
.download-entry.is-open .download-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.download-menu__item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: none;
  background: transparent;
  color: var(--text-main);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.download-menu__item:hover,
.download-menu__item:focus-visible {
  background: rgba(46, 124, 246, 0.08);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(46, 124, 246, 0.08);
  outline: none;
}

.download-menu__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 14px;
  background: rgba(46, 124, 246, 0.1);
  color: var(--primary-strong);
  font-size: 18px;
  font-weight: 800;
}

.download-menu__icon--mini {
  background: rgba(34, 197, 94, 0.14);
  color: #0f9a4b;
}

.download-menu__copy {
  display: grid;
  gap: 4px;
}

.download-menu__copy strong {
  font-size: 14px;
  line-height: 1.2;
}

.download-menu__copy span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.mini-program-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 24px;
}

.mini-program-modal__scrim {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(15, 28, 52, 0.42);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.mini-program-modal__card {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  display: grid;
  gap: 14px;
  padding: 28px 24px 24px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top center, rgba(46, 124, 246, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 255, 0.98));
  border: 1px solid rgba(125, 152, 211, 0.16);
  box-shadow: 0 28px 80px rgba(15, 28, 52, 0.22);
  text-align: center;
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.mini-program-modal.is-open .mini-program-modal__card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.mini-program-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(46, 124, 246, 0.08);
  color: var(--primary-strong);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.mini-program-modal__eyebrow {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  margin: 0 auto;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(46, 124, 246, 0.08);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.mini-program-modal__card h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.mini-program-modal__card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.mini-program-modal__qr-shell {
  width: min(100%, 230px);
  margin: 4px auto 0;
  padding: 14px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(46, 124, 246, 0.12);
}

.mini-program-modal__qr-shell img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.mini-program-modal__hint {
  display: inline-flex;
  justify-content: center;
  min-height: 34px;
  margin: 0 auto;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #0f9a4b;
  font-size: 13px;
  font-weight: 700;
  align-items: center;
}

@media (max-width: 640px) {
  .about-access__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about-panel__access-card {
    padding: 18px 16px;
    gap: 14px;
  }

  .about-access__entry {
    gap: 14px;
    padding: 18px 16px;
    border-radius: 22px;
  }

  .about-access__intro {
    gap: 8px;
  }

  .about-access__intro strong {
    font-size: 21px;
  }

  .about-access__intro p {
    font-size: 14px;
    line-height: 1.65;
  }

  .about-access__actions {
    gap: 10px;
  }

  .about-access__action {
    width: 100%;
    min-height: 44px;
  }

  .about-access__qr-shell {
    width: min(100%, 188px);
    padding: 12px;
    border-radius: 20px;
  }

  .about-access__qr-shell img {
    border-radius: 14px;
  }

  .about-access__hint {
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
  }

  .download-app-btn__label {
    font-size: 12px;
  }

  .download-app-btn {
    min-height: 36px;
    padding: 0 12px;
  }

  .download-menu {
    width: min(88vw, 300px);
  }
}

@media (max-width: 640px) {
  /* Keep download button visible on mobile header, while auth goes to drawer */
  .top-bar__meta {
    display: flex !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin-left: auto !important;
    justify-content: flex-end !important;
  }
  .top-bar__meta .auth-entry {
    display: none !important;
  }
  .download-entry {
    position: static;
  }
  .download-menu {
    right: 12px;
    left: 12px;
    width: auto;
  }
}
