:root {
  --green: #00b386;
  --green-strong: #00a67c;
  --mint: #dff8ed;
  --mint-soft: #f2fbf7;
  --ink: #12201b;
  --muted: #61736c;
  --line: #dce8e2;
  --paper: #ffffff;
  --blue: #276f91;
  --amber: #ba8730;
  --danger: #b84a37;
  --shadow: 0 18px 42px rgba(19, 57, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: #f5f8f6;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(220, 232, 226, 0.84);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.brand,
.auth-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 850;
}

.brand-logo {
  display: block;
  width: 36px;
  height: 36px;
  flex: none;
  box-shadow: 0 10px 24px rgba(0, 179, 134, 0.3);
}

.brand-text {
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #40534c;
  font-size: 14px;
  flex: 1;
}

.main-nav a:hover,
.text-link:hover,
.ghost-link:hover {
  color: var(--green-strong);
}

.userbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.userbar form {
  margin: 0;
}

.user-pill {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #4c6058;
  font-size: 13px;
}

.ghost-link,
.solid-link,
.primary-link,
.outline-link,
.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 780;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.primary-link,
.primary-button,
.solid-link {
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 26px rgba(0, 179, 134, 0.22);
}

.primary-link:hover,
.primary-button:hover,
.solid-link:hover {
  background: var(--green-strong);
  transform: translateY(-1px);
}

.outline-link,
.secondary-button,
.ghost-button {
  color: var(--green-strong);
  border: 1px solid rgba(0, 179, 134, 0.28);
  background: rgba(255, 255, 255, 0.86);
}

.ghost-button {
  min-height: 34px;
  padding: 0 12px;
  background: transparent;
}

.primary-link.small,
.outline-link.small,
.primary-button.small {
  min-height: 36px;
  padding: 0 13px;
  font-size: 13px;
}

.home-hero {
  position: relative;
  min-height: clamp(500px, 68vh, 760px);
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 43%, rgba(0, 211, 169, 0.34), transparent 38%),
    linear-gradient(135deg, #061f1d 0%, #0d342e 48%, #ebf8f2 100%);
  border-bottom: 1px solid rgba(219, 255, 241, 0.18);
}

.globe-drag-hint {
  position: absolute;
  right: clamp(20px, 5vw, 70px);
  top: 82px;
  z-index: 3;
  min-height: 32px;
  border: 1px solid rgba(235, 255, 247, 0.34);
  border-radius: 8px;
  padding: 7px 11px;
  color: rgba(246, 255, 251, 0.82);
  background: rgba(4, 25, 22, 0.28);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 760;
  pointer-events: none;
}

.globe-zoom-controls {
  position: absolute;
  right: clamp(20px, 5vw, 70px);
  top: 128px;
  z-index: 4;
  display: inline-flex;
  overflow: hidden;
  border: 1px solid rgba(235, 255, 247, 0.28);
  border-radius: 8px;
  background: rgba(4, 25, 22, 0.32);
  backdrop-filter: blur(10px);
}

.globe-zoom-controls button {
  width: 42px;
  height: 36px;
  border: 0;
  border-right: 1px solid rgba(235, 255, 247, 0.18);
  color: #f5fffb;
  background: transparent;
  cursor: pointer;
  font-weight: 850;
}

.globe-zoom-controls button:last-child {
  border-right: 0;
}

.globe-zoom-controls button:hover {
  background: rgba(255, 255, 255, 0.13);
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 46px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  color: #06392f;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
  font-size: 24px;
  font-weight: 850;
  line-height: 1;
}

.hero-scroll-cue:hover {
  background: rgba(255, 255, 255, 0.88);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  background: linear-gradient(0deg, rgba(6, 31, 29, 0.5), rgba(6, 31, 29, 0));
  pointer-events: none;
}

#talentGlobe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

#talentGlobe:active {
  cursor: grabbing;
}

.hero-copy-below {
  display: grid;
  grid-template-columns: minmax(280px, 560px) minmax(320px, 1fr);
  gap: clamp(22px, 5vw, 58px);
  align-items: end;
  padding: 34px clamp(20px, 7vw, 96px) 38px;
  color: #f7fffb;
  background: #061f1d;
}

.hero-copy-content h1 {
  margin: 12px 0 16px;
  font-size: 48px;
  line-height: 1.08;
  font-weight: 880;
  letter-spacing: 0;
}

.hero-copy-content p {
  max-width: 520px;
  margin: 0;
  color: rgba(247, 255, 251, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.eyebrow {
  display: inline-flex;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.hero-copy-content .eyebrow {
  color: #6ff4ce;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-actions .outline-link {
  color: #ecfff8;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: none;
}

.hero-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(219, 255, 241, 0.2);
  border-radius: 8px;
  background: rgba(4, 25, 22, 0.58);
  backdrop-filter: blur(14px);
}

.hero-stat-strip article {
  padding: 17px 18px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-stat-strip span,
.metric-grid span,
.detail-grid span,
.region-list span,
.mini-list span,
.row-title span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.hero-stat-strip span {
  color: rgba(235, 255, 247, 0.72);
}

.hero-stat-strip strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 30px;
}

.globe-tooltip {
  position: absolute;
  z-index: 4;
  width: 240px;
  border: 1px solid rgba(231, 255, 245, 0.68);
  border-radius: 8px;
  padding: 12px 14px;
  color: #f7fffb;
  background: rgba(5, 34, 30, 0.9);
  box-shadow: var(--shadow);
  pointer-events: none;
}

.globe-tooltip strong,
.globe-tooltip span,
.globe-tooltip em {
  display: block;
}

.globe-tooltip strong {
  font-size: 16px;
}

.globe-tooltip span {
  margin-top: 4px;
  color: rgba(239, 255, 249, 0.74);
  font-size: 12px;
}

.globe-tooltip em {
  margin-top: 9px;
  color: #79f3cf;
  font-style: normal;
  font-size: 13px;
  font-weight: 760;
}

.admin-globe-shell {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid rgba(219, 255, 241, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 70% 43%, rgba(0, 211, 169, 0.31), transparent 38%),
    linear-gradient(135deg, #062320 0%, #0d3b34 58%, #f2fbf7 100%);
}

.admin-globe-shell #talentGlobe {
  position: absolute;
  inset: 0;
}

.admin-region-editor {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 6;
  width: min(340px, calc(100% - 44px));
  border: 1px solid rgba(235, 255, 247, 0.58);
  border-radius: 8px;
  padding: 16px;
  color: #f7fffb;
  background: rgba(4, 25, 22, 0.86);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.admin-region-editor[hidden] {
  display: none;
}

.admin-region-editor h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.admin-region-editor label {
  color: #f7fffb;
}

.admin-region-editor input {
  color: var(--ink);
}

.admin-region-editor .inline-message {
  margin-top: 8px;
  color: rgba(239, 255, 249, 0.78);
}

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

.cert-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cert-file-list a,
.filter-pills a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(0, 179, 134, 0.22);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--green-strong);
  background: #fff;
  font-size: 12px;
  font-weight: 760;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.filter-pills a.active {
  color: #fff;
  background: var(--green);
}

.talent-container {
  width: min(1160px, calc(100% - 40px));
}

.talent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 10px;
}

.talent-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(23, 54, 43, 0.07);
}

.talent-photo-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e9f4ff;
}

.talent-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vip-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  border: 1px solid rgba(255, 229, 139, 0.72);
  border-radius: 8px;
  padding: 0 8px;
  color: #fff6d5;
  background: linear-gradient(135deg, rgba(139, 92, 18, 0.94), rgba(213, 158, 45, 0.92));
  box-shadow: 0 12px 30px rgba(159, 112, 24, 0.36);
  font-size: 11px;
  font-weight: 880;
}

.vip-badge b {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: #7a4b08;
  background: #fff4b8;
}

.talent-card-body {
  padding: 10px;
}

.talent-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.talent-card h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.talent-card-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.gender-symbol {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f3f7f5;
  font-size: 17px;
  font-weight: 900;
}

.gender-symbol.male {
  color: #2f80ed;
  background: #e9f4ff;
}

.gender-symbol.female {
  color: #e05169;
  background: #fff0f3;
}

.gender-symbol.neutral {
  color: #6b7882;
}

.talent-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.talent-facts span {
  display: inline-flex;
  min-height: 24px;
  border-radius: 8px;
  padding: 4px 6px;
  color: #315047;
  background: var(--mint-soft);
  font-size: 11px;
  font-weight: 760;
}

.cert-claim {
  margin-top: 9px;
  border: 1px solid rgba(201, 149, 41, 0.35);
  border-radius: 8px;
  padding: 7px 8px;
  color: #734c09;
  background: linear-gradient(135deg, #fff8da, #ffffff);
  font-weight: 820;
  font-size: 12px;
}

.cert-claim.certified {
  border-color: rgba(184, 128, 22, 0.48);
  background: linear-gradient(135deg, #fff2b7, #fffdf2 74%);
  box-shadow: inset 3px 0 0 #d29a2e, 0 8px 18px rgba(159, 112, 24, 0.12);
}

.cert-claim.certified span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #a16c0b;
  font-size: 10px;
  font-weight: 900;
}

.cert-claim.certified span b {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: #fff8dc;
  background: #b77c13;
}

.cert-claim.certified strong {
  display: block;
  margin-top: 5px;
  color: #573705;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.cert-claim.muted {
  color: var(--muted);
  background: #f7faf8;
  border-color: var(--line);
}

.talent-intro {
  min-height: 42px;
  margin: 9px 0 0;
  color: #31463e;
  line-height: 1.55;
  font-size: 12px;
}

.talent-card-foot {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.form-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.form-section-head h2 {
  margin: 0;
}

.profile-photo-upload {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-photo-upload img {
  width: 78px;
  height: 78px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #e9f4ff;
}

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

.profile-avatar {
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #e9f4ff;
}

.profile-card-page {
  width: min(900px, calc(100% - 40px));
}

.profile-card-stage {
  display: grid;
  place-items: center;
  padding: 8px 0 34px;
}

.personal-card {
  width: min(420px, 100%);
  border: 1px solid rgba(0, 179, 134, 0.18);
  border-radius: 8px;
  padding: 20px;
  color: #0b2b24;
  background:
    linear-gradient(180deg, rgba(0, 179, 134, 0.12), transparent 32%),
    #ffffff;
  box-shadow: 0 18px 42px rgba(19, 57, 43, 0.14);
}

.personal-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.personal-card-top img {
  width: 108px;
  height: 108px;
  flex: none;
  border-radius: 8px;
  object-fit: cover;
  background: #e9f4ff;
}

.personal-card-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.personal-card-name h2 {
  margin: 0;
  font-size: 26px;
}

.personal-card-top p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-weight: 780;
}

.vip-badge.inline {
  position: static;
  min-height: 30px;
  font-size: 12px;
}

.personal-card-facts,
.personal-card-foot {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.personal-card-facts span,
.personal-card-foot span {
  border-radius: 8px;
  padding: 9px 11px;
  color: #315047;
  background: var(--mint-soft);
  font-size: 13px;
  font-weight: 760;
}

.personal-card-intro {
  min-height: 72px;
  margin: 16px 0 0;
  color: #31463e;
  line-height: 1.75;
}

.personal-cert-claim {
  margin-top: 16px;
  padding: 12px 14px;
}

.personal-cert-claim.certified span {
  font-size: 11px;
}

.personal-cert-claim.certified strong {
  font-size: 15px;
}

.personal-card-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.personal-card-brand img {
  display: block;
  width: 30px;
  height: 30px;
}

.empty-panel {
  grid-column: 1 / -1;
}

.section-band,
.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section-band {
  padding: 54px 0;
}

.section-head {
  margin-bottom: 20px;
}

.section-head.spread {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-head h2,
.page-title h1 {
  margin: 8px 0 0;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-head p,
.page-title p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.service-grid article,
.region-list article,
.metric-grid article,
.panel,
.authcard,
.detail-grid article,
.mini-list article,
.region-admin-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(23, 54, 43, 0.06);
}

.service-grid article {
  padding: 22px;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 30px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #065f48;
  background: var(--mint);
  font-size: 12px;
  font-weight: 850;
}

.service-grid h3 {
  margin: 0 0 9px;
  font-size: 18px;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.region-band {
  padding-top: 30px;
}

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

.region-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 82px;
  padding: 16px 18px;
}

.region-list strong {
  font-size: 17px;
}

.region-count {
  text-align: right;
}

.region-count strong {
  color: var(--green-strong);
  font-size: 24px;
}

.text-link {
  color: var(--green-strong);
  font-weight: 760;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 28px 20px 38px;
  border-top: 1px solid var(--line);
  color: #667a72;
  font-size: 13px;
}

.site-footer a {
  color: var(--green-strong);
  font-weight: 720;
}

.flashbox {
  position: fixed;
  right: 18px;
  top: 78px;
  z-index: 80;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 36px));
}

.flash {
  padding: 12px 14px;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  color: #20352d;
}

.flash.error {
  border-color: var(--danger);
}

.auth-page {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 44px 20px;
  background:
    linear-gradient(120deg, rgba(4, 43, 34, 0.82), rgba(0, 179, 134, 0.15)),
    radial-gradient(circle at 72% 22%, rgba(39, 111, 145, 0.18), transparent 28%),
    #eef8f4;
}

.wide-auth {
  place-items: start center;
}

.authcard {
  width: min(460px, 100%);
  padding: 30px;
}

.profile-authcard {
  width: min(920px, 100%);
}

.auth-brand {
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.auth-brand .brand-logo {
  width: 44px;
  height: 44px;
}

.auth-brand small {
  display: block;
  color: var(--green-strong);
  font-size: 12px;
  font-weight: 850;
}

.auth-brand strong {
  display: block;
  margin-top: 3px;
}

.authcard h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

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

.stack {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

label {
  display: grid;
  gap: 7px;
  color: #263b33;
  font-size: 14px;
  font-weight: 720;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfded7;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

textarea {
  resize: vertical;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 179, 134, 0.13);
}

.check {
  display: flex;
  align-items: center;
  grid-template-columns: none;
  gap: 8px;
}

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

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

.verification-button {
  white-space: nowrap;
}

.inline-message {
  min-height: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
}

.inline-message.success,
.inline-message.error,
.inline-message.working {
  padding: 10px 12px;
}

.inline-message.success {
  color: #086447;
  background: #e6f8ef;
}

.inline-message.error {
  color: #973d2d;
  background: #fff0ec;
}

.inline-message.working {
  color: #7a5b18;
  background: #fff6df;
}

.form-note {
  color: var(--muted);
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
  color: var(--green-strong);
  font-size: 14px;
  font-weight: 720;
}

.auth-links.single {
  justify-content: flex-start;
}

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

.role-choice label {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  cursor: pointer;
}

.role-choice input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--green);
  flex: none;
}

.role-choice span,
.role-choice strong,
.role-choice em {
  display: block;
}

.role-choice strong {
  font-size: 16px;
}

.role-choice em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
}

.role-choice label:has(input:checked) {
  border-color: rgba(0, 179, 134, 0.58);
  background: var(--mint-soft);
}

.register-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mint-soft);
}

.register-switch a {
  display: grid;
  place-items: center;
  min-height: 40px;
  border-radius: 6px;
  color: #49635a;
  font-weight: 800;
}

.register-switch a.active {
  color: #fff;
  background: var(--green);
}

.form-section {
  display: grid;
  gap: 16px;
  padding-top: 4px;
}

.form-section h2 {
  margin: 0;
  font-size: 20px;
}

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

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

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

.form-grid .wide {
  grid-column: 1 / -1;
}

.container {
  padding: 42px 0 70px;
}

.page-title {
  margin-bottom: 22px;
}

.page-actions {
  margin-top: 16px;
}

.panel {
  padding: 24px;
  margin-bottom: 18px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric-grid article {
  padding: 20px;
}

.metric-grid strong {
  display: block;
  margin-top: 7px;
  color: var(--green-strong);
  font-size: 30px;
}

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

.detail-grid article {
  padding: 16px;
  box-shadow: none;
}

.detail-grid .wide {
  grid-column: 1 / -1;
}

.detail-grid strong {
  display: block;
  margin-top: 7px;
  overflow-wrap: anywhere;
}

.detail-grid p {
  margin: 7px 0 0;
  color: #263b33;
  line-height: 1.7;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 8px;
  padding: 0 12px;
  color: #075f49;
  background: var(--mint);
  font-weight: 800;
}

.compact-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

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

th {
  color: #40534c;
  background: var(--mint-soft);
}

tr:last-child td {
  border-bottom: 0;
}

td .stack {
  gap: 10px;
  margin-top: 0;
}

.admin-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.mini-list article {
  padding: 14px;
  box-shadow: none;
}

.mini-list strong {
  display: block;
  margin-bottom: 5px;
}

.empty {
  margin: 0;
  color: var(--muted);
}

.settings-form {
  display: grid;
  gap: 18px;
}

.settings-panel {
  padding: 26px;
}

.brand-setting-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.brand-setting-preview img {
  width: 54px;
  height: 54px;
  flex: none;
  filter: drop-shadow(0 10px 18px rgba(0, 166, 124, 0.2));
}

.brand-setting-preview strong,
.brand-setting-preview span {
  display: block;
}

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

.brand-setting-preview span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.settings-toggle {
  min-height: 44px;
  margin: 10px 0 18px;
  padding: 10px 12px;
  border-left: 3px solid var(--green);
  background: var(--mint-soft);
}

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

.settings-notice {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-left: 3px solid #ba8730;
  color: #5e5542;
  background: #fffaf0;
  font-size: 13px;
  line-height: 1.65;
}

.wechat-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 20px;
  border-radius: 8px;
  color: #fff;
  background: #07c160;
  font-weight: 820;
  box-shadow: 0 12px 24px rgba(7, 193, 96, 0.2);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 -4px;
  color: var(--muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.config-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f5f8f6;
  font-size: 12px;
  font-weight: 800;
}

.config-status.ready {
  color: #087356;
  border-color: rgba(0, 179, 134, 0.28);
  background: var(--mint);
}

.settings-test-action {
  display: flex;
  align-items: end;
}

.settings-test-action button {
  width: 100%;
  min-height: 42px;
}

.settings-savebar {
  position: sticky;
  bottom: 14px;
  z-index: 12;
  display: flex;
  justify-content: flex-end;
  padding: 12px;
  border: 1px solid rgba(207, 222, 215, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(16, 49, 38, 0.12);
  backdrop-filter: blur(12px);
}

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

.region-admin-list {
  display: grid;
  gap: 12px;
}

.region-admin-row {
  display: grid;
  grid-template-columns: 1.1fr repeat(7, minmax(100px, 1fr));
  gap: 10px;
  align-items: end;
  padding: 14px;
  box-shadow: none;
}

.region-admin-row .wide {
  grid-column: 1 / -1;
}

.row-title {
  align-self: center;
}

.row-title strong {
  display: block;
}

.inline-check {
  align-self: center;
  padding-bottom: 10px;
}

.form-actions,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 25, 22, 0.56);
  backdrop-filter: blur(8px);
}

.modal.hidden {
  display: none;
}

.completion-card {
  position: relative;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(3, 30, 23, 0.34);
}

.completion-card h2 {
  margin: 8px 0;
  font-size: 28px;
}

.completion-card p {
  margin: 0;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  color: #52675f;
  background: var(--mint-soft);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px;
  }

  .main-nav {
    order: 3;
    flex: 0 0 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .home-hero {
    min-height: 560px;
  }

  .hero-copy-below {
    grid-template-columns: 1fr;
    padding: 30px 22px 34px;
  }

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

  .hero-copy-content h1 {
    font-size: 42px;
  }

  .service-grid,
  .metric-grid,
  .region-list,
  .admin-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid,
  .form-grid.three,
  .admin-region-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .topbar {
    align-items: center;
    padding: 10px 12px;
  }

  .userbar {
    width: auto;
    justify-content: space-between;
    margin-left: auto;
  }

  .brand-text {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .user-pill {
    display: none;
  }

  .main-nav {
    gap: 2px;
    margin: 0 -4px;
    scrollbar-width: none;
  }

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

  .main-nav a {
    flex: none;
    padding: 7px 9px;
    font-size: 13px;
  }

  .home-hero {
    min-height: 500px;
  }

  .globe-drag-hint {
    right: 14px;
    top: 86px;
  }

  .globe-zoom-controls {
    right: 14px;
    top: 132px;
  }

  .hero-copy-below {
    padding: 26px 14px 28px;
  }

  .hero-copy-content h1 {
    font-size: 34px;
  }

  .hero-copy-content p {
    font-size: 16px;
  }

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

  .hero-stat-strip article {
    padding: 13px;
  }

  .hero-stat-strip strong {
    font-size: 23px;
  }

  .section-band,
  .container {
    width: min(100% - 24px, 1180px);
  }

  .container {
    padding-top: 28px;
    padding-bottom: 48px;
  }

  .page-title h1,
  .section-head h2 {
    font-size: 26px;
  }

  .section-head.spread {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-grid,
  .region-list,
  .metric-grid,
  .detail-grid,
  .admin-split,
  .form-grid,
  .form-grid.two,
  .form-grid.three,
  .admin-region-form,
  .region-admin-row {
    grid-template-columns: 1fr;
  }

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

  .talent-card-body {
    padding: 8px;
  }

  .talent-card h2 {
    font-size: 14px;
  }

  .talent-facts span {
    padding: 3px 5px;
    font-size: 10px;
  }

  .talent-intro,
  .talent-card-foot {
    display: none;
  }

  .cert-claim {
    padding: 7px;
    font-size: 11px;
  }

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

  .authcard {
    padding: 24px 18px;
  }

  input,
  select,
  textarea,
  .primary-button,
  .secondary-button,
  .outline-link,
  .primary-link {
    min-height: 44px;
  }

  .form-actions,
  .modal-actions {
    justify-content: stretch;
  }

  .form-section-head,
  .profile-summary-head,
  .profile-photo-upload {
    align-items: flex-start;
    flex-direction: column;
  }

  .personal-card {
    padding: 16px;
  }

  .personal-card-top {
    align-items: center;
    gap: 12px;
  }

  .personal-card-top img {
    width: 88px;
    height: 88px;
  }

  .personal-card-name h2 {
    font-size: 22px;
  }

  .personal-card-facts,
  .personal-card-foot {
    margin-top: 12px;
  }

  .personal-card-intro {
    min-height: 0;
  }

  .settings-panel {
    padding: 20px 16px;
  }

  .wechat-setting-toggles {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .compact-table-wrap {
    margin-right: -4px;
    -webkit-overflow-scrolling: touch;
  }

  .settings-savebar .primary-button {
    width: 100%;
  }

  .form-actions a,
  .form-actions button,
  .modal-actions button {
    width: 100%;
  }
}
