:root {
  --ink: #073a5a;
  --ink-soft: #0d5277;
  --surface: #eef5f6;
  --paper: #faf9f4;
  --white: #f7f6ef;
  --muted: #d0e5ef;
  --line: rgba(247, 246, 239, 0.14);
  --gold: #ffb51b;
  --gold-soft: #ffd45d;
  --coral: #f39422;
  --teal: #84c6df;
  --text: #163342;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--surface); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button { letter-spacing: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--paper); color: var(--ink); }
.skip-link:focus { top: 12px; }

.site-header { height: 76px; padding: 0 clamp(20px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(105deg, #063b5b 0%, #0e6b96 72%, #766127 100%); color: var(--white); border-bottom: 1px solid rgba(255, 181, 27, .3); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; white-space: nowrap; }
.brand-logo { width: 48px; height: 44px; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(2, 38, 58, .2)); }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 15px; line-height: 1.1; }
.brand-copy small { color: #a9d9eb; font-size: 9px; font-weight: 550; letter-spacing: 1.5px; }
.site-header nav { display: flex; gap: clamp(20px, 3vw, 44px); color: var(--muted); font-size: 14px; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--white); }
.header-cta { padding: 9px 15px; border: 1px solid rgba(246, 196, 83, 0.6); color: var(--gold-soft); background: transparent; font-size: 14px; cursor: pointer; }

.hero { min-height: calc(100vh - 76px); padding: clamp(42px, 7vh, 80px) clamp(20px, 4vw, 64px) 28px; display: grid; grid-template-columns: minmax(280px, 0.72fr) minmax(550px, 1.55fr); gap: clamp(36px, 6vw, 90px); align-items: center; background: linear-gradient(125deg, #063b5b 0%, #157eaa 58%, #846b27 100%); color: var(--white); }
.hero-copy { max-width: 520px; }
.eyebrow, .map-kicker { margin: 0 0 18px; color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(243, 148, 34, .18); }
.hero h1 { margin: 0; max-width: 8em; font-family: "Songti SC", STSong, serif; font-size: clamp(44px, 3.7vw, 54px); line-height: 1.12; font-weight: 600; letter-spacing: 0; }
.hero-intro { margin: 28px 0 0; max-width: 36em; color: #ffe09a; font-size: 17px; font-weight: 650; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.primary-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 14px; padding: 11px 18px; background: var(--gold); color: var(--ink); font-size: 14px; font-weight: 700; border: 1px solid var(--gold); }
.primary-button:hover, .primary-button:focus-visible { background: var(--gold-soft); }
.text-link { color: var(--white); font-size: 14px; border-bottom: 1px solid rgba(247,246,239,.35); padding-bottom: 4px; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-metrics div { min-width: 0; }
.metric-icon { display: inline-grid; width: 24px; height: 24px; margin-bottom: 10px; place-items: center; color: var(--gold-soft); border: 1px solid rgba(255, 212, 93, .45); font-size: 13px; line-height: 1; }
.hero-metrics dt { color: var(--white); font-size: clamp(22px, 2vw, 30px); font-weight: 650; font-variant-numeric: tabular-nums; }
.hero-metrics dd { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

.map-stage { min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.map-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.map-kicker { margin-bottom: 8px; color: var(--gold); }
.map-toolbar h2 { margin: 0; font-size: clamp(18px, 2vw, 27px); font-weight: 600; }
.map-mode { display: grid; grid-template-columns: 1fr 1fr; width: 132px; padding: 3px; border: 1px solid var(--line); }
.mode-button { min-height: 34px; padding: 5px 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.mode-button.is-active { color: var(--ink); background: var(--white); }
.map-canvas { position: relative; width: 100%; aspect-ratio: 1.48 / 1; min-height: 390px; max-height: 650px; overflow: hidden; }
.china-map { width: 100%; height: 100%; display: block; }
.city-region { fill: #0f597d; stroke: #83bad0; stroke-width: .62; vector-effect: non-scaling-stroke; transition: fill 160ms ease, stroke 160ms ease; }
.city-region[data-level="1"] { fill: #19779c; }
.city-region[data-level="2"] { fill: #3a8da3; }
.city-region[data-level="3"] { fill: #c09a3b; }
.city-region:hover, .city-region.is-active { fill: #2f96bd; stroke: #ffcf54; }
.map-loading { fill: var(--muted); font-size: 14px; }
.star-node { cursor: pointer; outline: none; }
.star-node .halo { fill: var(--gold); opacity: .08; transform-box: fill-box; transform-origin: center; }
.star-node .core { fill: var(--gold-soft); }
.star-node .focus-ring { fill: none; stroke: none; }
.star-node[data-level="2"] .halo { opacity: .14; }
.star-node[data-level="2"] .core { fill: var(--gold); }
.star-node[data-level="3"] .halo { opacity: .22; }
.star-node[data-level="3"] .core { fill: #fff4bd; }
.star-node:focus-visible .focus-ring { stroke: var(--white); stroke-width: 2; fill: none; }
.star-node.is-active .halo { opacity: .35; }
.map-tooltip { position: absolute; z-index: 5; min-width: 150px; padding: 12px 14px; border: 1px solid rgba(246,196,83,.58); background: #16436e; color: var(--white); font-size: 12px; pointer-events: none; box-shadow: 0 12px 35px rgba(7,31,60,.3); }
.map-tooltip strong { display: block; margin-bottom: 5px; font-size: 14px; }
.map-tooltip span { color: var(--gold); font-variant-numeric: tabular-nums; }
.world-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: linear-gradient(135deg, #063b5b 0%, #157eaa 60%, #846b27 100%); }
.world-placeholder[hidden] { display: none; }
.world-mark { color: var(--gold); font-size: 46px; margin: 0 0 18px; }
.world-placeholder h3 { font-family: "Songti SC", STSong, serif; font-size: 28px; margin: 0; }
.world-placeholder p:last-child { max-width: 34em; color: var(--muted); line-height: 1.7; }
.map-footer { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.legend { display: flex; gap: 18px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-star { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 5px var(--gold); }
.legend-star.medium { box-shadow: 0 0 9px 2px var(--gold); }
.legend-star.high { background: #fff4bd; box-shadow: 0 0 12px 4px var(--gold); }

.activity-strip { min-height: 58px; display: flex; align-items: center; gap: 24px; padding: 0 clamp(20px, 4vw, 64px); background: linear-gradient(90deg, #f29322 0%, #ffc329 55%, #7fc0d9 100%); color: #263742; overflow: hidden; }
.activity-label { flex: 0 0 auto; margin: 0; padding-right: 24px; border-right: 1px solid rgba(32,17,13,.28); font-size: 12px; font-weight: 750; }
.activity-label span { font-size: 8px; }
.activity-window { overflow: hidden; min-width: 0; flex: 1; }
.activity-track { display: flex; width: max-content; gap: 54px; white-space: nowrap; animation: ticker 34s linear infinite; font-size: 13px; }
.activity-track strong { margin-right: 8px; }
@keyframes ticker { to { transform: translateX(-50%); } }

.impact, .regions, .stories { padding: 88px clamp(20px, 7vw, 112px); }
.section-heading { max-width: 760px; }
.section-heading h2 { margin: 0; font-family: "Songti SC", STSong, serif; font-size: clamp(34px, 4vw, 54px); line-height: 1.25; font-weight: 600; }
.section-heading > p:last-child, .split-heading > p { color: #52605e; line-height: 1.8; }
.impact .eyebrow, .regions .eyebrow, .stories .eyebrow { color: #167fa5; }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 38px; border-top: 1px solid #bac0b9; border-bottom: 1px solid #bac0b9; }
.impact-grid article { min-height: 170px; padding: 20px clamp(22px, 3vw, 42px) 22px 0; }
.impact-grid article + article { padding-left: clamp(22px, 3vw, 42px); border-left: 1px solid #bac0b9; }
.step { color: var(--coral); font-size: 12px; font-weight: 750; }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-icon { display: inline-grid; width: 36px; height: 36px; place-items: center; color: #167ea4; border: 1px solid #9bcbd8; background: #e8f5f7; font-size: 18px; }
.impact-grid h3 { margin: 28px 0 8px; font-size: 20px; }
.impact-grid p { margin: 0; color: #5c6866; font-size: 14px; line-height: 1.8; }

.regions { background: var(--paper); }
.split-heading { max-width: none; display: grid; grid-template-columns: 1.3fr .7fr; gap: 60px; align-items: end; }
.split-heading > p { max-width: 420px; margin: 0; justify-self: end; }
.ranking-layout { display: grid; grid-template-columns: 1.45fr .55fr; gap: clamp(50px, 8vw, 120px); margin-top: 66px; }
.ranking-list { list-style: none; margin: 0; padding: 0; }
.ranking-item { display: grid; grid-template-columns: 42px 80px 1fr 86px; gap: 18px; align-items: center; min-height: 64px; border-top: 1px solid #d4d4ca; }
.ranking-item:last-child { border-bottom: 1px solid #d4d4ca; }
.rank { color: #8a9390; font-size: 12px; font-variant-numeric: tabular-nums; }
.region-name { font-weight: 700; }
.bar-track { height: 5px; background: #dedfd7; }
.bar-value { display: block; height: 100%; background: #2389a9; transform-origin: left; animation: grow-bar 1.1s ease-out both; }
@keyframes grow-bar { from { transform: scaleX(0); } }
.rank-count { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
.rank-count strong { color: var(--coral); }
.quote-panel { align-self: stretch; padding: 34px; background: linear-gradient(145deg, #06466b 0%, #177ba2 68%, #806828 100%); color: var(--white); }
.quote-mark { margin: 0; color: var(--gold); font-family: Georgia, serif; font-size: 58px; line-height: .7; }
.quote-panel blockquote { margin: 30px 0 64px; font-family: "Songti SC", STSong, serif; font-size: 22px; line-height: 1.8; }
.quote-author { color: var(--muted); font-size: 12px; line-height: 1.6; }

.stories { background: #dceff4; }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 66px; }
.story-card { min-width: 0; min-height: 300px; padding: 28px; display: flex; flex-direction: column; background: var(--paper); border: 1px solid #cbd2cd; border-radius: 6px; }
.story-location { display: flex; align-items: center; justify-content: space-between; color: #167fa5; font-size: 12px; font-weight: 750; }
.story-location i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.story-card blockquote { margin: 46px 0 40px; font-family: "Songti SC", STSong, serif; font-size: 18px; line-height: 1.8; }
.story-card footer { margin-top: auto; padding-top: 18px; border-top: 1px solid #d9d9cf; }
.story-card footer strong, .story-card footer span { display: block; }
.story-card footer span { margin-top: 7px; color: #697370; font-size: 11px; }

.join { min-height: 420px; padding: 80px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: linear-gradient(120deg, #ffad1c 0%, #ffd15c 46%, #78bad6 100%); color: #103a55; }
.join-logo { width: 86px; height: 74px; margin: 0 0 16px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(18, 79, 103, .2)); }
.join h2 { margin: 0; font-family: "Songti SC", STSong, serif; font-size: clamp(36px, 5vw, 60px); font-weight: 600; }
.join > p:not(.join-star) { margin: 18px 0 30px; }
.primary-button.light { background: var(--paper); border-color: var(--paper); }
.site-footer { min-height: 110px; padding: 28px clamp(20px, 4vw, 64px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; background: linear-gradient(105deg, #063b5b 0%, #0e6b96 75%, #6f5b25 100%); color: var(--muted); font: 400 12px/1.5 "Source Han Sans SC", "思源黑体", "Noto Sans CJK SC", sans-serif; }
.site-footer :where(*) { font-family: inherit; font-weight: 400; }
.site-footer .brand { color: var(--white); }
.site-footer p:last-child { justify-self: end; }

.redeem-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid rgba(246, 196, 83, .42); border-radius: 8px; background: var(--paper); color: var(--text); box-shadow: 0 24px 80px rgba(8, 35, 67, .34); }
.redeem-dialog::backdrop { background: rgba(8, 31, 61, .72); backdrop-filter: blur(7px); }
.redeem-shell { min-height: 480px; padding: clamp(24px, 5vw, 42px); }
.redeem-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.redeem-kicker { margin: 0 0 7px; color: #286590; font-size: 11px; font-weight: 750; letter-spacing: 1.4px; }
.redeem-header h2 { margin: 0; color: var(--ink); font-family: "Songti SC", STSong, serif; font-size: 34px; }
.dialog-close { width: 38px; height: 38px; padding: 0; border: 1px solid #c6ced2; background: transparent; color: #35505f; font-size: 27px; line-height: 1; cursor: pointer; }
.redeem-progress { display: grid; grid-template-columns: repeat(3, 1fr); margin: 30px 0 38px; border-bottom: 1px solid #cdd2d2; }
.redeem-progress span { min-height: 36px; color: #788584; font-size: 11px; }
.redeem-progress span.is-current { color: #174c76; border-bottom: 2px solid var(--gold); font-weight: 750; }
.redeem-step label { display: block; color: #304746; font-size: 13px; font-weight: 700; }
.code-entry { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 10px; }
.code-entry input, .location-fields select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #aebbbc; border-radius: 0; background: #fff; color: var(--text); }
.code-entry input { font-size: 16px; text-transform: uppercase; }
.field-note { margin: 10px 0 0; color: #718080; font-size: 11px; }
.form-message { min-height: 22px; margin: 14px 0 0; color: #a13d2d; font-size: 12px; }
.verified-product { display: grid; gap: 5px; padding: 0 0 22px; border-bottom: 1px solid #d6d9d7; }
.verified-product span, .verified-product small { color: #718080; font-size: 11px; }
.verified-product strong { color: var(--ink); font-size: 19px; }
.location-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.location-fields select { display: block; margin-top: 9px; }
.consent-field { display: flex !important; align-items: flex-start; gap: 10px; margin-top: 24px; font-weight: 500 !important; line-height: 1.6; }
.consent-field input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 3px; accent-color: #1b5b87; }
.redeem-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.secondary-button { min-height: 46px; padding: 10px 18px; border: 1px solid #aebbbc; background: transparent; color: var(--ink); cursor: pointer; }
.success-step { text-align: center; padding-top: 18px; }
.success-star { display: block; color: var(--gold); font-size: 62px; text-shadow: 0 0 22px rgba(215, 166, 77, .5); }
.success-label { margin: 8px 0 12px; color: #2b6b64; font-size: 12px; font-weight: 750; }
.success-step h3 { margin: 0; color: var(--ink); font-family: "Songti SC", STSong, serif; font-size: clamp(26px, 5vw, 36px); }
.success-step h3 span { color: #b27a1e; }
.success-step > p:last-of-type { margin: 16px auto 30px; color: #657473; line-height: 1.7; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { max-width: 700px; }
  .map-stage { min-height: 640px; }
  .ranking-layout { grid-template-columns: 1fr; }
  .quote-panel { min-height: 300px; }
}
@media (max-width: 720px) {
  .site-header { height: 62px; }
  .site-header .brand { gap: 7px; }
  .site-header .brand-logo { width: 37px; height: 35px; }
  .site-header .brand-copy small { display: none; }
  .site-header nav { display: none; }
  .header-cta { padding: 7px 10px; font-size: 12px; }
  .header-cta span { display: none; }
  .hero { padding-top: 44px; gap: 48px; }
  .hero h1 { font-size: 44px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero-metrics { gap: 10px; }
  .hero-metrics dt { font-size: 20px; }
  .map-stage { min-height: auto; }
  .map-toolbar { align-items: flex-start; flex-direction: column; }
  .map-mode { width: 100%; }
  .map-canvas { min-height: 300px; aspect-ratio: 1.15 / 1; }
  .china-map { transform: scale(1.14); }
  .map-footer { align-items: flex-start; flex-direction: column; }
  .activity-strip { gap: 14px; }
  .activity-label { padding-right: 14px; }
  .impact, .regions, .stories { padding-top: 64px; padding-bottom: 64px; }
  .split-heading { grid-template-columns: 1fr; gap: 20px; }
  .split-heading > p { justify-self: start; }
  .impact-grid, .story-grid { grid-template-columns: 1fr; }
  .impact-grid article { min-height: 150px; padding: 20px 0; }
  .impact-grid article + article { padding-left: 0; border-left: 0; border-top: 1px solid #bac0b9; }
  .impact-grid h3 { margin-top: 20px; }
  .ranking-item { grid-template-columns: 28px 58px 1fr 68px; gap: 10px; }
  .quote-panel { padding: 28px; }
  .story-grid { gap: 12px; }
  .site-footer { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .site-footer p { margin: 0; }
  .site-footer p:last-child { justify-self: center; }
  .redeem-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .redeem-shell { min-height: 520px; padding: 24px 18px; }
  .redeem-progress span { font-size: 10px; }
  .code-entry, .location-fields { grid-template-columns: 1fr; }
  .code-entry .primary-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* StarLight operations admin */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.admin-page { min-width: 320px; background: #eef2f3; color: #172b40; font-size: 14px; }
.admin-topbar { min-height: 64px; padding: 0 clamp(20px, 3vw, 44px); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #f7f6ef; background: linear-gradient(105deg, #063b5b 0%, #0e6b96 70%, #6f5b25 100%); border-bottom: 1px solid rgba(255, 181, 27, .32); }
.admin-brand { display: inline-flex; min-width: 0; align-items: center; gap: 9px; color: inherit; font-weight: 750; }
.admin-brand-logo { width: 38px; height: 34px; object-fit: contain; }
.admin-brand-divider { width: 1px; height: 16px; margin-left: 4px; background: rgba(247, 246, 239, .32); }
.admin-brand-context { color: #c8d9e7; font-size: 12px; font-weight: 550; }
.admin-account { display: inline-flex; align-items: center; gap: 9px; color: #d6e2ed; font-size: 12px; }
.admin-account-dot { width: 7px; height: 7px; border-radius: 50%; background: #55c4b2; box-shadow: 0 0 0 4px rgba(85, 196, 178, .15); }
.admin-avatar { display: inline-grid; width: 28px; height: 28px; place-items: center; color: #0b2b52; background: #f2d280; font-size: 12px; font-weight: 750; }
.admin-shell { display: grid; grid-template-columns: 202px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.admin-sidebar { display: flex; flex-direction: column; justify-content: space-between; padding: 28px 16px 22px; color: #b6c8d7; background: #103556; }
.admin-nav { display: grid; gap: 5px; }
.admin-nav a { display: flex; min-height: 40px; align-items: center; justify-content: space-between; padding: 9px 12px; color: inherit; border-left: 2px solid transparent; font-size: 13px; }
.admin-nav a:hover, .admin-nav a:focus-visible { color: #f7f6ef; background: rgba(255, 255, 255, .07); }
.admin-nav a.is-current { color: #fff5c9; background: rgba(246, 196, 83, .13); border-left-color: var(--gold); }
.admin-sidebar-note { margin: 0 12px; color: #7795ad; font-size: 11px; line-height: 1.7; }
.admin-main { width: min(1400px, 100%); padding: clamp(28px, 4vw, 52px); }
.admin-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.admin-eyebrow, .admin-section-kicker { margin: 0 0 8px; color: #2a877c; font-size: 10px; font-weight: 800; letter-spacing: 1.3px; line-height: 1.2; }
.admin-page-heading h1, .admin-panel-heading h2 { margin: 0; color: #102b48; font-family: "Songti SC", STSong, serif; font-weight: 600; letter-spacing: 0; }
.admin-page-heading h1 { font-size: clamp(31px, 3vw, 42px); line-height: 1.2; }
.admin-page-heading > div > p:last-child { margin: 10px 0 0; color: #65768a; line-height: 1.7; }
.admin-last-updated { flex: 0 0 auto; margin: 0 0 3px; color: #718196; font-size: 12px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.admin-stat { min-height: 136px; padding: 20px 21px; background: #fbfcfa; border: 1px solid #d8e0e2; border-radius: 6px; }
.admin-stat p, .admin-stat span { display: block; margin: 0; color: #6d7e91; font-size: 12px; }
.admin-stat strong { display: block; margin: 20px 0 7px; color: #183d60; font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.admin-stat-accent { border-color: #dfc16d; background: linear-gradient(130deg, #fffdf5 0%, #faf6e6 100%); }
.admin-stat-accent strong { color: #9b6c10; }
.admin-panel { margin-top: 22px; padding: clamp(20px, 3vw, 30px); background: #fbfcfa; border: 1px solid #d8e0e2; border-radius: 6px; }
.admin-panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid #e0e6e7; }
.admin-panel-heading h2 { font-size: 23px; line-height: 1.25; }
.admin-panel-heading > p { max-width: 300px; margin: 0; color: #718196; font-size: 12px; line-height: 1.6; text-align: right; }
.admin-code-form { display: grid; grid-template-columns: minmax(130px, .9fr) minmax(180px, 1.5fr) minmax(118px, .72fr) minmax(145px, .9fr) auto; gap: 14px; align-items: end; padding-top: 22px; }
.admin-field, .admin-filter-field { display: grid; gap: 7px; min-width: 0; }
.admin-field label, .admin-filter-field label { color: #4c5f72; font-size: 12px; font-weight: 700; }
.admin-field input, .admin-field select, .admin-filter-field input, .admin-filter-field select { width: 100%; min-height: 40px; padding: 8px 10px; color: #1b334d; background: #fff; border: 1px solid #cbd6da; border-radius: 4px; font: inherit; }
.admin-field input::placeholder, .admin-filter-field input::placeholder { color: #9ba9b4; }
.admin-field input:hover, .admin-field select:hover, .admin-filter-field input:hover, .admin-filter-field select:hover { border-color: #88a2b4; }
.admin-field input:focus, .admin-field select:focus, .admin-filter-field input:focus, .admin-filter-field select:focus { border-color: #2e758a; outline: 2px solid rgba(46, 117, 138, .16); outline-offset: 1px; }
.admin-form-action { min-width: 118px; }
.admin-button { min-height: 40px; padding: 9px 14px; border: 1px solid transparent; border-radius: 4px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 750; white-space: nowrap; }
.admin-button-primary { width: 100%; color: #0d2c4a; background: var(--gold); border-color: var(--gold); }
.admin-button-primary:hover, .admin-button-primary:focus-visible { background: #f7d781; border-color: #f7d781; }
.admin-button-secondary { color: #174565; background: #f7faf9; border-color: #9fb4bf; }
.admin-button-secondary:hover, .admin-button-secondary:focus-visible { background: #e8f0ef; border-color: #548094; }
.admin-form-message { min-height: 18px; margin: 10px 0 0; color: #347a70; font-size: 12px; }
.admin-form-message.is-error { color: #aa4b42; }
.admin-table-heading { align-items: center; }
.admin-filters { display: flex; align-items: end; gap: 12px; padding: 19px 0; border-bottom: 1px solid #e0e6e7; }
.admin-filter-field { flex: 0 0 148px; }
.admin-filter-search { flex-basis: min(310px, 33%); }
.admin-text-button { min-height: 40px; padding: 8px 2px; color: #2f7180; background: transparent; border: 0; border-bottom: 1px solid transparent; cursor: pointer; font: inherit; font-size: 12px; white-space: nowrap; }
.admin-text-button:hover, .admin-text-button:focus-visible { color: #164e65; border-bottom-color: currentColor; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; min-width: 790px; border-collapse: collapse; font-size: 12px; }
.admin-table th { height: 46px; color: #728296; font-size: 11px; font-weight: 750; letter-spacing: .3px; text-align: left; white-space: nowrap; }
.admin-table td { min-height: 58px; padding: 12px 10px 12px 0; color: #536679; border-top: 1px solid #e3e8e8; line-height: 1.45; vertical-align: middle; }
.admin-table td:first-child, .admin-table th:first-child { padding-left: 0; }
.admin-table th:last-child, .admin-table td:last-child { padding-right: 0; text-align: right; }
.admin-cell-primary, .admin-cell-secondary { display: block; }
.admin-cell-primary { color: #263f58; font-weight: 700; }
.admin-cell-secondary { max-width: 230px; margin-top: 2px; overflow: hidden; color: #7a8998; text-overflow: ellipsis; white-space: nowrap; }
.admin-code-value { color: #19496a; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; font-weight: 700; white-space: nowrap; }
.admin-status { display: inline-flex; min-width: 58px; min-height: 24px; align-items: center; justify-content: center; padding: 3px 7px; border-radius: 3px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.admin-status-unused { color: #39756f; background: #e3f1ec; }
.admin-status-used { color: #8a651c; background: #faefd0; }
.admin-status-frozen { color: #6d7180; background: #ebedf0; }
.admin-row-button { padding: 5px 0; color: #2c7183; background: transparent; border: 0; border-bottom: 1px solid transparent; cursor: pointer; font: inherit; font-size: 12px; white-space: nowrap; }
.admin-row-button:hover, .admin-row-button:focus-visible { color: #143f59; border-bottom-color: currentColor; }
.admin-row-placeholder { color: #9aa6b0; font-size: 12px; }
.admin-empty { margin: 22px 0 4px; color: #718196; text-align: center; }
.admin-redemptions { margin-bottom: 22px; }
.admin-toast { position: fixed; z-index: 120; right: 22px; bottom: 22px; max-width: min(360px, calc(100vw - 44px)); padding: 12px 15px; color: #ecf8f5; background: #1c635e; border: 1px solid #57a99b; border-radius: 5px; box-shadow: 0 10px 32px rgba(14, 43, 67, .22); font-size: 13px; line-height: 1.5; }
.admin-toast.is-error { color: #fff5f1; background: #914940; border-color: #c3766c; }
.admin-page :focus-visible { outline-color: #e0ad38; }
@media (max-width: 1120px) {
  .admin-code-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-form-action { grid-column: span 2; width: min(180px, 100%); }
}
@media (max-width: 850px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { min-height: auto; padding: 0 20px; }
  .admin-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(760px, 100%); }
  .admin-nav a { justify-content: center; padding: 13px 8px; border-left: 0; border-bottom: 2px solid transparent; text-align: center; }
  .admin-nav a.is-current { border-left-color: transparent; border-bottom-color: var(--gold); }
  .admin-sidebar-note { display: none; }
  .admin-main { margin: 0 auto; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .admin-topbar { min-height: 58px; padding: 0 16px; }
  .admin-account { gap: 7px; }
  .admin-account > span:nth-child(2), .admin-brand-context, .admin-brand-divider { display: none; }
  .admin-sidebar { padding: 0 10px; overflow-x: auto; }
  .admin-nav { min-width: 580px; }
  .admin-main { padding: 28px 16px 38px; }
  .admin-page-heading { display: block; margin-bottom: 24px; }
  .admin-page-heading h1 { font-size: 32px; }
  .admin-last-updated { margin-top: 14px; }
  .admin-stats { gap: 10px; margin-bottom: 20px; }
  .admin-stat { min-height: 118px; padding: 16px; }
  .admin-stat strong { margin-top: 18px; font-size: 25px; }
  .admin-panel { margin-top: 16px; padding: 18px 16px; }
  .admin-panel-heading { display: block; padding-bottom: 16px; }
  .admin-panel-heading > p { margin-top: 8px; text-align: left; }
  .admin-code-form { grid-template-columns: 1fr; padding-top: 18px; }
  .admin-form-action { grid-column: auto; width: 100%; }
  .admin-button-primary { width: 100%; }
  .admin-table-heading { display: flex; align-items: center; }
  .admin-table-heading > p { display: none; }
  .admin-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 0; }
  .admin-filter-field, .admin-filter-search { min-width: 0; flex: auto; }
  .admin-filter-search { grid-column: span 2; }
  .admin-text-button { justify-self: start; }
  .admin-table { min-width: 720px; }
  .admin-toast { right: 16px; bottom: 16px; max-width: calc(100vw - 32px); }
}
.city-region[data-lighted="true"] { fill: #f2bd43; stroke: #fff1ae; stroke-width: 1.2; }
.star-node.is-lighted .halo { opacity: .42; }
.star-node.is-lighted .core { fill: #fff8d6; }
