:root {
  --bg: #2e3133;
  --panel: rgba(12, 16, 22, 0.94);
  --panel-solid: #10151c;
  --elevated: #18202c;
  --stroke: rgba(255, 255, 255, 0.08);
  --text: #f3f6fb;
  --muted: #9aa6b5;
  --faint: #6d7886;
  --accent: #3ee0c6;
  --start: #4d8dff;
  --end: #b57bff;
  --target: #ffd84a;
  --jump: #ff4b3a;
  --deploy: #3ddc6a;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  --font-display: "Outfit", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

button,
input { font: inherit; }

.app-shell {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

#map,
#map.leaflet-container {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  background: #2e3133;
  z-index: 1;
  touch-action: none;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 700;
  height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: #07080c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

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

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

.brand-mark { width: 22.4px; height: 22.4px; }

.brand strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.topnav { display: flex; align-items: center; height: 100%; gap: 28px; }

.nav-link,
.nav-link.is-active {
  height: 100%;
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
}

.nav-link {
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.nav-link:hover { color: #fff; }

.nav-link.is-active {
  border-bottom-color: #fff;
  color: #fff;
}

.nav-drop {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding-right: 16px;
}

.nav-caret {
  position: absolute;
  top: 50%;
  right: 0;
  width: 11px;
  height: 11px;
  margin-top: -5px;
  color: #fff;
  opacity: 0;
  pointer-events: none;
}

.nav-drop:hover .nav-caret {
  opacity: 1;
}

.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 156px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #07080c;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
  z-index: 5;
}

.nav-drop:hover .nav-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-menu-item {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  padding: 8px 10px;
  cursor: pointer;
}

.nav-menu-item:hover { background: #16181e; }

#map:focus { outline: none; }

.home-hero {
  position: absolute;
  top: 52px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 680;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 8vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 72% 46% at 50% -10%, rgba(36, 86, 148, 0.55), transparent 66%),
    linear-gradient(180deg, #05070b 0%, #070b12 40%, #102038 100%);
  text-align: center;
}

.home-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 0;
  margin: 40px 0 0;
  padding: 0;
  max-width: 760px;
  list-style: none;
}

.home-notes li {
  color: #d5e2f0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.45;
  text-transform: uppercase;
}

.home-notes li + li::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 14px 2px;
  border-radius: 50%;
  background: #4d86c4;
  vertical-align: middle;
}

body.is-home .home-hero { display: flex; }

.home-hero h1,
.home-hero p,
.home-hero .get-started { position: relative; z-index: 1; }

.home-hero h1 {
  margin: 0;
  max-width: 14ch;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.home-hero p {
  margin: 18px 0 0;
  max-width: 36ch;
  color: #f4f7fb;
  font-size: 18px;
  line-height: 1.45;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.get-started {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #fff;
  border-radius: 10px;
  padding: 11px 16px;
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.get-started:hover,
.get-started:active,
.get-started:focus-visible {
  background: #fff;
  color: #000;
  border-color: #000;
}

body.is-home .poi-toggle,
body.is-home .overview-hint,
body.is-home .map-actions,
body.is-home .drop-cards,
body.is-home .side,
body.is-home .leaflet-control-zoom,
body.is-pricing .poi-toggle,
body.is-pricing .overview-hint,
body.is-pricing .map-actions,
body.is-pricing .drop-cards,
body.is-pricing .side,
body.is-pricing .leaflet-control-zoom,
body.is-checkout .poi-toggle,
body.is-checkout .overview-hint,
body.is-checkout .map-actions,
body.is-checkout .drop-cards,
body.is-checkout .side,
body.is-checkout .leaflet-control-zoom,
body.is-staff .poi-toggle,
body.is-staff .overview-hint,
body.is-staff .map-actions,
body.is-staff .drop-cards,
body.is-staff .side,
body.is-staff #map .leaflet-control-zoom,
body.is-dropmaker .poi-toggle,
body.is-dropmaker .overview-hint,
body.is-dropmaker .map-actions,
body.is-dropmaker .drop-cards,
body.is-dropmaker .side,
body.is-dropmaker #map .leaflet-control-zoom {
  display: none !important;
}

.pricing-screen {
  position: absolute;
  top: 52px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 680;
  display: none;
  flex-direction: column;
  align-items: center;
  overflow: auto;
  padding: 42px 20px 48px;
  background: #07080c;
}

body.is-pricing .pricing-screen { display: flex; }

.pricing-screen h1 {
  margin: 0 0 36px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  width: min(1040px, 100%);
  padding-top: 12px;
}

.price-card {
  position: relative;
  flex: 1 1 220px;
  max-width: 248px;
  display: flex;
  flex-direction: column;
  padding: 22px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: #141416;
}

.price-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.price-badge-hot {
  background: linear-gradient(90deg, #e879f9, #fb923c);
  color: #fff;
}

.price-badge-value {
  background: #8ee0c8;
  color: #10241e;
}

.price-card h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.price-line {
  margin: 10px 0 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price-blurb {
  margin: 8px 0 0;
  min-height: 2.7em;
  color: #9a9aa3;
  font-size: 13.5px;
  line-height: 1.35;
}

.price-card ul {
  margin: 16px 0 18px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none;
}

.price-card li {
  display: flex;
  gap: 8px;
  margin: 0 0 8px;
  color: #d5d5dc;
  font-size: 13.5px;
  line-height: 1.35;
}

.price-card li::before {
  content: "âœ“";
  flex: none;
  color: #c8c8d0;
  font-size: 13px;
  line-height: 1.35;
}

.price-card li.is-bonus::before { content: "+"; }

.price-buy {
  margin-top: auto;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.price-buy.is-light {
  border-color: transparent;
  background: #e7e8ec;
  color: #111;
}

.price-buy.is-blue {
  border-color: transparent;
  background: #3478f6;
  color: #fff;
}

.checkout-screen {
  position: absolute;
  top: 52px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 680;
  display: none;
  flex-direction: column;
  align-items: center;
  overflow: auto;
  padding: 28px 20px 48px;
  background: #07080c;
  text-align: center;
}

body.is-checkout .checkout-screen { display: flex; }

.checkout-back {
  align-self: flex-start;
  margin: 0 0 8px;
  border: 0;
  background: none;
  color: #c8c8d0;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.checkout-screen h1 {
  margin: 8px 0 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.checkout-sub {
  margin: 8px 0 28px;
  color: #9a9aa3;
  font-size: 15px;
}

.checkout-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  width: min(980px, 100%);
  text-align: left;
}

.checkout-card {
  flex: 1 1 320px;
  max-width: 640px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #141416;
}

.checkout-card h2 {
  margin: 0 0 14px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.bundle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bundle {
  flex: 1 1 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: transparent;
  color: #d5d5dc;
  text-align: left;
  cursor: pointer;
}

.bundle strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
}

.bundle em {
  color: #9a9aa3;
  font-style: normal;
  font-size: 13px;
}

.bundle.is-selected {
  border: 2px solid #fff;
  color: #fff;
}

.checkout-lower {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}

.affiliate-block,
.checkout-totals { flex: 1 1 200px; }

.affiliate-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  text-align: left;
}

.affiliate-block .affiliate { flex: none; }

.gift-tokens {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c8c8d0;
  font-size: 14px;
  cursor: pointer;
}

.gift-discord span {
  display: block;
  margin-bottom: 8px;
  color: #c8c8d0;
  font-size: 14px;
}

.gift-discord input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: #101114;
  color: #fff;
  font: inherit;
}

.gift-discord[hidden] { display: none; }

.affiliate span,
.pay-kicker {
  display: block;
  margin-bottom: 8px;
  color: #c8c8d0;
  font-size: 14px;
}

.affiliate input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: #101114;
  color: #fff;
  font: inherit;
}

.affiliate-error {
  margin: 8px 0 0;
  color: #ff8d8d;
  font-size: 13px;
  line-height: 1.35;
}

.affiliate-error[hidden] { display: none; }

.checkout-totals {
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-totals p {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 0;
  color: #c8c8d0;
  font-size: 14px;
}

.checkout-totals .is-total {
  color: #fff;
  font-weight: 700;
}

.checkout-totals .is-total strong {
  font-family: var(--font-display);
  font-size: 18px;
}

.checkout-tokens {
  justify-content: flex-end !important;
  color: #9a9aa3 !important;
  font-size: 13px !important;
}

.pay-option,
.pay-agree {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #e8e8ee;
  cursor: pointer;
}

.pay-option span,
.pay-agree span { display: block; flex: 1; }

.pay-option strong,
.pay-agree span { font-size: 14px; }

.pay-option small {
  display: block;
  margin-top: 4px;
  color: #9a9aa3;
  font-size: 13px;
  line-height: 1.35;
}

.pay-option input,
.pay-agree input { margin-top: 2px; accent-color: #fff; }

.pay-option input { margin-left: auto; }

.pay-btn {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.pay-btn:disabled {
  opacity: 0.38;
  cursor: default;
}

.checkout-paid {
  margin: 10px 0 0;
  color: #d7ffe4;
  font-size: 14px;
  text-align: center;
}

.checkout-paid[hidden] { display: none; }

.token-toast {
  position: fixed;
  top: 64px;
  left: 50%;
  z-index: 900;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: #f4f6fb;
  color: #111;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.token-toast[hidden] { display: none; }

.redeem-card {
  width: min(380px, 100%);
  padding: 22px 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #07080c;
  box-shadow: var(--shadow);
}

.redeem-card h2 {
  margin: 0 0 14px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.redeem-card input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: #101114;
  color: #fff;
  font: inherit;
}

.redeem-error {
  margin: 8px 0 0;
  color: #ff8d8d;
  font-size: 13px;
  line-height: 1.35;
}

.redeem-error[hidden] { display: none; }

.redeem-card .pay-btn { margin-top: 14px; }

@media (max-width: 820px) {
  .checkout-grid,
  .checkout-lower,
  .bundle-row { flex-direction: column; }
}

.topbar .top-about {
  margin-left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #161b22;
  color: #fff;
}

.top-about svg { width: 22px; height: 22px; display: block; }

.sign-in-btn {
  margin-left: 0;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #e6e6ea;
  color: #141416;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.sign-in-btn:hover { background: #f3f3f6; }

.sign-in-btn.is-user { max-width: 220px; }

.sign-in-btn.is-user span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sign-in-btn img {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 50%;
  object-fit: cover;
}

.sign-in-btn img[hidden] { display: none; }

.account-slot { position: relative; }

.account-slot.is-user .sign-in-btn {
  gap: 4px;
  height: 40px;
  padding: 0 6px 0 4px;
  border-color: transparent;
  background: transparent;
}

.account-slot.is-user .sign-in-btn:hover { background: rgba(255, 255, 255, 0.06); }

.account-slot.is-user #signInLabel {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.account-caret { width: 12px; height: 12px; color: #fff; }

.account-caret[hidden] { display: none; }

.account-fallback {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #c5c8d0;
}

.account-slot.is-user .sign-in-btn img,
.account-slot.is-user .account-fallback {
  width: 32px;
  height: 32px;
  margin: 0;
}

.account-slot.is-user .account-fallback:not([hidden]) { display: block; }

.account-pop {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 40;
  min-width: 168px;
  padding: 8px 6px 6px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.account-pop::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 8px;
  right: 0;
  bottom: 0;
  left: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #16181d;
  box-shadow: var(--shadow);
}

.account-slot.is-user:hover .account-pop,
.account-slot.is-user:focus-within .account-pop {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-pop button {
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.account-pop button:hover { background: rgba(255, 255, 255, 0.08); }

.settings-layer {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
}

.settings-layer[hidden] { display: none; }

.settings-panel {
  width: min(420px, 100%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: #12141a;
  color: #fff;
}

.settings-panel h2 { margin: 0 0 14px; font-family: var(--font-display); font-size: 22px; }

.settings-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.settings-panel select,
.settings-panel input {
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: #1b1e26;
  color: #fff;
}

.settings-actions { display: flex; gap: 8px; margin-bottom: 12px; }

.settings-actions button,
#themeToggle,
#settingsClose {
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: #1b1e26;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

#supportCodeError,
#accountSendError { margin: 0 0 10px; color: #ff8d84; font-size: 13px; }

.account-panel {
  max-height: min(86vh, 760px);
  overflow: auto;
}

.account-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-panel-head h2 { margin: 0; }

.account-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.account-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}

.account-section h3 svg { width: 16px; height: 16px; flex: none; }

.account-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-identity img,
.account-identity .account-fallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.account-identity .account-fallback { display: block; background: #c5c8d0; }
.account-identity .account-fallback[hidden] { display: none; }

.account-identity strong { display: block; color: #fff; }
.account-identity p { margin: 2px 0 0; color: #d5d8e0; font-size: 13px; }

.account-copy-id {
  margin-top: 6px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #1b1e26;
  color: #d5d8e0;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.account-copy-id[hidden] { display: none; }
.account-copy-id:hover { border-color: rgba(255, 255, 255, 0.4); }
body.is-light .account-copy-id { background: #f3f4f8; color: #16161a; border-color: rgba(0, 0, 0, 0.18); }

.account-results img { width: 20px; height: 20px; border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.account-results .account-lookup-note { margin: 0; font-size: 13px; color: #d5d8e0; }
body.is-light .account-results .account-lookup-note { color: #3c4250; }

.account-balance { margin: 0; color: #fff; font-size: 22px; font-weight: 700; }

.account-results { display: flex; flex-direction: column; gap: 6px; margin: 0 0 10px; }

.account-results button,
#accountSendBtn {
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: #1b1e26;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.account-results button { text-align: left; }
.account-results button.is-on { border-color: #fff; }

.account-notes { display: flex; flex-direction: column; gap: 6px; }
.account-notes p { margin: 0; color: #d5d8e0; font-size: 13px; }

#supportCodeError[hidden] { display: none; }

.pricing-support,
.checkout-support {
  margin: 0 0 14px;
  color: #f2cc62;
  font-weight: 650;
}

.pricing-support[hidden],
.checkout-support[hidden] { display: none; }

.notify-wrap {
  position: relative;
  margin-left: 0;
  flex: 0 0 auto;
}

.notify-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #161b22;
  color: #fff;
  cursor: pointer;
}

.notify-btn svg { width: 20px; height: 20px; display: block; }

.notify-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.notify-badge[hidden] { display: none; }

.notify-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: min(320px, 70vw);
  max-height: 360px;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: #10151c;
  box-shadow: var(--shadow);
}

.notify-panel[hidden] { display: none; }

.notify-panel h2 {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
}

.notify-item,
.notify-empty {
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 13px;
}

.notify-item strong { display: block; color: #fff; font-weight: 600; }

.notify-item time { color: var(--faint); }

.notify-item.is-new strong { color: #fff; }

.dropmaker-screen {
  position: absolute;
  top: 52px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 680;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  overflow: auto;
  padding: 28px 22px 36px;
  background: #07080c;
  color: #fff;
}

.dropmaker-screen h1 {
  width: min(1204px, 100%);
  margin: 0 0 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(232, 188, 64, 0.72);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.area-panel {
  border: 1px solid rgba(232, 188, 64, 0.95);
  background: #07080c;
}

.staff-codes,
.staff-people,
.owner-menu {
  border: 1px solid rgba(232, 188, 64, 0.95);
  background: #241e12;
}

.area-panel {
  width: min(1204px, 100%);
  padding: 16px 16px 14px;
  border-radius: 16px;
}

.dropmaker-screen p,
.area-panel p {
  margin: 0 0 14px;
  max-width: 520px;
  color: var(--text);
  line-height: 1.45;
}

#dropmapCreateBtn {
  border: 1px solid #e8bc40;
  background: #e8bc40;
  color: #07080c;
  font-weight: 700;
}

#dropmapCreateBtn:hover { background: #f2cc62; border-color: #f2cc62; }

body.is-dropmaker .dropmaker-screen { display: flex; }

.token-pill {
  margin-left: 0;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  height: 36px;
  padding: 0 4px 0 8px;
  border-radius: 12px;
  background: #161b22;
  border: 1px solid var(--stroke);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}

.token-pill > svg { width: 22px; height: 22px; display: block; }

.token-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.token-add:hover { background: rgba(255, 255, 255, 0.24); }

.staff-stuff-btn {
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #161b22;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.staff-stuff-btn:hover { background: #1d242e; }

.staff-stuff-btn.is-current {
  border-color: rgba(255, 255, 255, 0.72);
  background: #222833;
}

.staff-stuff-btn[hidden] { display: none; }

.poi-toggle {
  position: absolute;
  top: 64px;
  right: 16px;
  z-index: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10, 14, 20, 0.88);
  border: 1px solid var(--stroke);
  color: var(--text);
  font-size: 13px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.poi-toggle input { accent-color: var(--start); }

.overview-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 600;
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(10, 14, 20, 0.88);
  border: 1px solid var(--stroke);
  color: var(--text);
  font-size: 14px;
  box-shadow: var(--shadow);
}

.side {
  display: none;
  position: absolute;
  top: 64px;
  left: 12px;
  bottom: 12px;
  z-index: 650;
  width: 280px;
  flex-direction: column;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

body.is-planning .side { display: flex; }

.side-scroll {
  overflow: auto;
  padding: 16px;
}

.side.is-collapsed .side-scroll { display: none; }

.collapse-btn {
  display: none;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.kicker {
  margin: 0 0 4px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.side h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.lede,
.status-line,
.legend { color: var(--muted); font-size: 13px; }

.lede { margin: 0 0 12px; }

.drop-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.drop-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.drop-list i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.drop-list span {
  flex: 1;
  min-width: 0;
  font-size: 13px;
}

.drop-list button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.toggle-row input { accent-color: var(--start); }

.status-line { min-height: 2.6em; margin: 12px 0; color: var(--text); }
.status-line.is-error { color: #ff8fa0; }

.legend {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--stroke);
}

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

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot.bus-start { background: var(--start); }
.dot.bus-end { background: var(--end); }
.dot.target { background: var(--target); }
.dot.drop-1 { background: #ffd84a; }
.dot.drop-2 { background: #ff3b30; }
.dot.drop-3 { background: #111; box-shadow: 0 0 0 1px #fff; }
.dot.jump { background: var(--jump); }
.dot.deploy { background: var(--deploy); }
.dot.glide1 { background: var(--deploy); }
.dot.freefall { background: #ff9f1a; }
.dot.glide2 { background: #7ec8ff; }

.map-actions {
  display: none;
  position: absolute;
  left: calc(50% + 120px);
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 650;
  gap: 10px;
}

body.is-planning .map-actions { display: flex; }

.ghost-btn,
.calc-btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 22px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
}

.ghost-btn {
  background: #2a3342;
  color: var(--text);
}

.calc-btn {
  background: #2f6bff;
  color: #fff;
  min-width: 140px;
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.28);
}

.calc-btn:hover,
.ghost-btn:hover { filter: brightness(1.06); }

.drop-cards {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 650;
  width: min(280px, calc(100vw - 32px));
}

.drop-card {
  height: 112px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(10, 14, 20, 0.92);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.drop-row { min-width: 0; }

.drop-row-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.drop-card strong {
  flex: none;
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.drop-card span {
  flex: 1;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drop-card b {
  flex: none;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.05;
  font-weight: 700;
}

.drop-card small {
  display: block;
  margin-top: 1px;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drop-cards.is-compact .drop-card small { display: none; }

.marker-shell { background: transparent; border: 0; overflow: visible; }

.spot-cluster {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Outfit, sans-serif;
  font-weight: 700;
  font-size: 18px;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.spot-popup .leaflet-popup-content-wrapper {
  background: #16181d;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.spot-popup .leaflet-popup-tip {
  background: #16181d;
}

.spot-popup .leaflet-popup-content {
  margin: 10px;
}

.spot-menu {
  display: grid;
  gap: 6px;
  min-width: 168px;
}

.spot-menu button {
  border: 0;
  border-radius: 10px;
  min-height: 36px;
  padding: 0 12px;
  background: #2a2e36;
  color: #fff;
  font: 600 13px Outfit, sans-serif;
  cursor: pointer;
}

.spot-menu button:last-child {
  background: #ffd84a;
  color: #16120a;
}

.poi-spot { position: relative; width: 100%; height: 100%; }

.poi-name {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  transform: translateX(-50%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.05;
  white-space: nowrap;
  pointer-events: none;
  text-shadow:
    0 1px 0 #111,
    0 -1px 0 #111,
    1px 0 0 #111,
    -1px 0 0 #111,
    0 2px 4px rgba(0, 0, 0, 0.85);
  -webkit-text-stroke: 3px #12141a;
  paint-order: stroke fill;
}

.poi-name.is-major { font-size: 13px; font-weight: 800; }

.poi-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2f6bff;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.poi-badge.is-minor {
  width: 12px;
  height: 12px;
  margin: 5px;
  background: #8eb0ff;
}

.poi-badge.is-on { box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.45); }

.spot-pin {
  position: relative;
  width: 28px;
  height: 36px;
}

.spot-pin::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  width: 22px;
  height: 22px;
  background: #ffe14a;
  border: 2px solid #1b1b1b;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.spot-pin::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.spot-pin.is-on::before { box-shadow: 0 0 0 4px rgba(255, 225, 74, 0.45); }

.pin {
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.pin-bus-start { background: var(--start); cursor: grab; }
.pin-bus-end { background: var(--end); cursor: grab; }
.pin-jump { width: 14px; height: 14px; background: var(--jump); }
.pin-deploy,
.pin-glide1 { width: 14px; height: 14px; background: var(--deploy); }
.pin-freefall { width: 14px; height: 14px; background: #ff9f1a; }
.pin-glide2 { width: 14px; height: 14px; background: #7ec8ff; }
.best-pin-ring { width: 26px; height: 26px; box-sizing: border-box; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px rgba(0, 0, 0, .55), 0 0 10px rgba(255, 255, 255, .45); pointer-events: none; }

.route-mark {
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  pointer-events: none;
}

.route-mark span {
  color: #fff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  background: rgba(8, 10, 14, 0.82);
  border-radius: 999px;
  padding: 3px 7px;
}
.pin-target { width: 14px; height: 14px; background: var(--target); cursor: grab; }
.pin-drop-1 { width: 14px; height: 14px; background: #ffd84a; cursor: grab; }
.pin-drop-2 { width: 14px; height: 14px; background: #ff3b30; cursor: grab; }
.pin-drop-3 {
  width: 14px;
  height: 14px;
  background: #111;
  border-color: #fff;
  box-shadow: 0 0 0 1px #fff, 0 1px 3px rgba(0, 0, 0, 0.45);
  cursor: grab;
}

.bus-ribbon {
  position: absolute;
  overflow: visible;
  pointer-events: none;
  z-index: 350;
}

.leaflet-container img.leaflet-tile,
.leaflet-container canvas.leaflet-tile {
  border: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
}

.leaflet-overlay-pane path.route-bus,
.leaflet-overlay-pane path.route-fall,
.leaflet-overlay-pane path.route-glide {
  vector-effect: non-scaling-stroke;
}

.leaflet-tooltip {
  border: 0;
  border-radius: 8px;
  background: #121820;
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.leaflet-tooltip-top:before { border-top-color: #121820; }

.leaflet-control-zoom {
  margin-top: 64px !important;
  margin-left: 16px !important;
  border: 0 !important;
  box-shadow: var(--shadow) !important;
}

body.is-planning .leaflet-control-zoom { margin-left: 308px !important; }

.leaflet-control-zoom a {
  width: 34px !important;
  height: 34px !important;
  line-height: 32px !important;
  background: rgba(12, 16, 24, 0.92) !important;
  color: var(--text) !important;
  border: 1px solid var(--stroke) !important;
}

.leaflet-control-zoom-in { border-radius: 10px 10px 0 0 !important; }
.leaflet-control-zoom-out { border-radius: 0 0 10px 10px !important; }

.text-btn {
  border: 0;
  background: none;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.68);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
  width: min(520px, 100%);
  max-height: min(80dvh, 640px);
  overflow: auto;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: var(--panel-solid);
}

.modal-header,
.modal-body { padding: 18px 20px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--elevated);
  border-bottom: 1px solid var(--stroke);
}

.modal-header h2 { margin: 0; font-family: var(--font-display); font-size: 18px; }

.close-btn {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modal-body h3 {
  margin: 0 0 8px;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-body p,
.modal-body li { color: var(--muted); font-size: 13px; line-height: 1.6; }
.modal-body strong { color: #fff; }
.modal-body ol { margin: 0 0 18px; padding-left: 18px; }
.technical-info { padding-top: 14px; border-top: 1px solid var(--stroke); }
.technical-info a,
code { color: var(--accent); }
.technical-info a { text-decoration: none; }

.auth-overlay { background: #000; }

.auth-card {
  position: relative;
  width: min(420px, 100%);
  min-height: min(520px, 80dvh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  border-radius: 28px;
  background: #141414;
  text-align: center;
}

@property --auth-border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: -90deg;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--auth-border-angle),
    rgba(232, 160, 190, 0.9),
    rgba(255, 255, 255, 0.05) 22%,
    rgba(255, 255, 255, 0.05) 28%,
    rgba(212, 168, 96, 0.95) 50%,
    rgba(255, 255, 255, 0.05) 72%,
    rgba(255, 255, 255, 0.05) 78%,
    rgba(232, 160, 190, 0.9)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: auth-border-travel 6s linear infinite;
}

@keyframes auth-border-travel {
  to { --auth-border-angle: 270deg; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card::before { animation: none; }
}

.auth-card h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.auth-sub {
  margin: 16px 0 22px;
  color: #9a9aa1;
  font-size: 16px;
}

.discord-login,
.auth-signout {
  width: min(100%, 340px);
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.discord-login {
  height: 40px;
  background: #545fec;
  color: #fff;
}

.discord-login:hover { background: #4752c4; }

.discord-login svg { width: 22px; height: 22px; display: block; flex: 0 0 auto; }

.discord-login[hidden],
.auth-signout[hidden] { display: none; }

.auth-signout {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.auth-signout:hover { background: rgba(255, 255, 255, 0.06); }

.auth-legal {
  margin: 22px 0 0;
  max-width: 34ch;
  color: #8e8e93;
  font-size: 14px;
  line-height: 1.45;
}

.auth-legal a { color: #c8c8cc; }

.auth-staff {
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #8e8e93;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.auth-staff:hover { color: #c8c8cc; }

.auth-staff[hidden],
.auth-staff-form[hidden],
.auth-account[hidden] { display: none; }

.auth-account {
  width: min(100%, 340px);
  margin-top: 18px;
}

.auth-account-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}

.auth-account-switch button {
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #8e8e93;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.auth-account-switch button.is-active {
  background: #2a2a2e;
  color: #fff;
}

.auth-staff-form {
  width: 100%;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-staff-form input {
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: #1c1c1e;
  color: #fff;
  font: inherit;
  font-size: 14px;
}

.auth-staff-form input::placeholder { color: #8e8e93; }

.auth-staff-submit {
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #2a2a2e;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.auth-staff-submit:hover { background: #34343a; }

.auth-error {
  margin: 14px 0 0;
  max-width: 36ch;
  color: #ff8d84;
  font-size: 13px;
  line-height: 1.4;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 820px) {
  .side {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-height: min(52dvh, 420px);
    border-radius: 18px 18px 0 0;
  }

  .collapse-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 0 4px;
  }

  .handle-bar {
    width: 36px;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.32);
  }

  .handle-text {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .map-actions {
    left: 50%;
    bottom: 86px;
  }

  .overview-hint { bottom: 18px; max-width: calc(100% - 32px); text-align: center; }
  .poi-toggle { top: 60px; right: 12px; }

  body.is-planning .leaflet-control-zoom,
  .leaflet-control-zoom {
    margin-left: 12px !important;
    margin-top: 64px !important;
  }

  .drop-cards { bottom: 148px; }

  .staff-screen.is-map-open { flex-direction: column; }

  .staff-screen.is-map-open .staff-screen-list {
    width: 100%;
    max-height: 46%;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .staff-screen.is-map-open .staff-map-pane { min-height: 54%; }
}

.staff-screen {
  position: absolute;
  top: 52px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 680;
  display: none;
  background: #14110c;
}

body.is-staff .staff-screen { display: flex; }

.staff-screen-list {
  width: 100%;
  flex: 1 1 auto;
  overflow: auto;
  padding: 28px 22px 36px;
}

.staff-screen.is-map-open .staff-screen-list {
  width: min(440px, 42vw);
  flex: 0 0 auto;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.staff-screen-list h1 {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(232, 188, 64, 0.72);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.staff-map-pane {
  display: none;
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  background: #2e3133;
}

.staff-screen.is-map-open .staff-map-pane { display: block; }

.staff-map-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1100;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #161b22;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.staff-map-close:hover { background: #1d242e; }

@media (max-width: 820px) {
  .staff-screen.is-map-open { flex-direction: column; }

  .staff-screen.is-map-open .staff-screen-list {
    width: 100%;
    max-height: 46%;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .staff-screen.is-map-open .staff-map-pane {
    display: block;
    min-height: 54%;
  }
}

#staffMap {
  position: absolute;
  inset: 0;
  background: #2e3133;
}

#staffMap[hidden] { display: none; }

.staff-map-hint {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 24px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.staff-map-hint[hidden] { display: none; }

.staff-map-pane .leaflet-control-zoom,
body.is-planning .staff-map-pane .leaflet-control-zoom {
  margin-top: 12px !important;
  margin-left: 12px !important;
}

.staff-people {
  margin: 0 0 16px;
  padding: 12px 12px 10px;
  border-radius: 16px;
}

.staff-card {
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid #fff;
  border-radius: 10px;
  background: #241e12;
  color: #f3f6fb;
  cursor: pointer;
}

.staff-card strong { color: #fff; }

.staff-card .staff-discord { color: #d5d8e0; }

.staff-card .staff-expand {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.staff-card .staff-stats dd { color: #fff; }

.staff-card .staff-stats dt,
.staff-card h3 { color: #c5c8d0; }

.staff-card .staff-route { color: #f3f6fb; }

.staff-card .staff-route:hover { background: rgba(255, 255, 255, 0.06); }

.staff-directory-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 0;
}

.staff-directory-bar span {
  color: #f2cc62;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.staff-everyone {
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(232, 188, 64, 0.95);
  border-radius: 10px;
  background: #2e2718;
  color: #f2cc62;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.staff-everyone:hover { background: rgba(232, 188, 64, 0.14); }

.staff-everyone[aria-expanded="true"] {
  background: #e8bc40;
  border-color: #e8bc40;
  color: #07080c;
}

.staff-search {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 4px;
}

.staff-search span {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.staff-search input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(232, 188, 64, 0.95);
  border-radius: 12px;
  background: #2e2718;
  color: #fff;
  color-scheme: dark;
  appearance: none;
  font: inherit;
  font-size: 14px;
}

.staff-search input::placeholder { color: var(--faint); }

.staff-card:first-child { margin-top: 8px; }

.staff-card.is-banned { opacity: 0.72; }

.staff-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.staff-discord {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.staff-expand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.staff-expand svg {
  width: 16px;
  height: 16px;
  display: block;
  transition: transform 0.15s ease;
}

.staff-card.is-open .staff-expand svg { transform: rotate(180deg); }

.staff-card.is-compact {
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 8px;
}

.staff-card.is-compact .staff-card-top { gap: 8px; min-height: 0; }

.staff-card.is-compact strong {
  font-size: 13px;
  font-weight: 600;
}

.staff-card.is-compact .staff-discord,
.staff-card.is-compact .staff-tag { font-size: 12px; }

.staff-card.is-compact .staff-expand {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.staff-card.is-compact .staff-expand svg { width: 14px; height: 14px; }

.staff-stats-table {
  display: table;
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.staff-stats-table thead { display: table-header-group; }
.staff-stats-table tbody { display: table-row-group; }
.staff-stats-table tr { display: table-row; }

.staff-stats-table th,
.staff-stats-table td {
  display: table-cell;
  padding: 6px 8px;
  border-top: 1px solid var(--stroke);
  text-align: left;
  vertical-align: bottom;
  white-space: normal;
  overflow-wrap: anywhere;
}

.staff-stats-table thead th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  vertical-align: bottom;
}

.staff-stats-table tbody th { color: #fff; font-weight: 600; }

.staff-stats-table td { color: var(--text); }

#staffLogList {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.staff-log-person {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #fff;
  border-radius: 10px;
  background: #241e12;
  color: #f3f6fb;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.staff-log-person strong { color: #fff; font-weight: 650; }

.staff-log-person span { margin-left: auto; color: #d5d8e0; font-size: 13px; }

.staff-log-person.is-open strong { text-decoration: underline; text-underline-offset: 2px; }

.staff-log-events {
  list-style: none;
  margin: 0 0 8px;
  padding: 0 0 4px 12px;
}

.staff-log-events li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 4px 0;
  color: var(--text);
  font-size: 13px;
}

.staff-log-events time { color: var(--muted); }

.staff-card-body { display: none; padding-top: 12px; }

.staff-card.is-open .staff-card-body { display: block; }

.staff-token-add,
.staff-token-remove {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.staff-token-add input,
.staff-token-remove input {
  width: 96px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(232, 188, 64, 0.95);
  border-radius: 10px;
  background: #2e2718;
  color: #fff;
  font: inherit;
}

.staff-token-add button,
.staff-token-remove button,
.staff-infinite,
.staff-pager button {
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(232, 188, 64, 0.95);
  border-radius: 10px;
  background: #2e2718;
  color: #f2cc62;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.staff-token-add button:disabled,
.staff-token-remove button:disabled,
.staff-pager button:disabled {
  opacity: 0.4;
  cursor: default;
}

.staff-token-remove span { color: var(--muted); font-size: 12px; }

.staff-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 12px 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.staff-pager[hidden] { display: none; }

.staff-ticket-chip {
  flex: 0 1 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(232, 188, 64, 0.16);
  color: #f2cc62;
  font-size: 12px;
  white-space: nowrap;
}

.staff-ticket-chip button,
.staff-code-row button:not(.staff-code-delete) {
  margin-left: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(232, 188, 64, 0.95);
  border-radius: 8px;
  background: #2e2718;
  color: #f2cc62;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.staff-ticket-chip button:hover,
.staff-code-row button:not(.staff-code-delete):hover { background: rgba(232, 188, 64, 0.16); }

.appeal-card {
  max-height: min(86dvh, 720px);
  overflow: auto;
}

.ban-screen {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #000;
}

.ban-screen[hidden] { display: none; }

.soon-screen { z-index: 1750; }

.soon-screen h1 {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-align: center;
}

.soon-date {
  margin: 0 0 18px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.soon-staff {
  margin: 0 0 22px;
  color: #c8c8d0;
  font-size: 16px;
  line-height: 1.45;
}

.soon-staff[hidden] { display: none; }

.soon-screen .auth-signout { width: min(100%, 280px); }

.ban-card {
  width: min(420px, 100%);
  text-align: center;
}

.ban-card h1 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.03em;
}

.ban-card p {
  margin: 14px 0 22px;
  color: #9a9aa1;
  font-size: 16px;
  line-height: 1.45;
}

.ban-card .discord-login,
.ban-card .auth-signout { width: min(100%, 320px); }

.ban-card .auth-signout { margin-top: 10px; }

.appeal-card { width: min(480px, 100%); }

.appeal-card textarea {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: #1c1c1e;
  color: #fff;
  font: inherit;
  resize: vertical;
}

.ticket-read p { margin: 0 0 12px; color: var(--muted); line-height: 1.45; }

.ticket-read strong { color: #fff; }

.ticket-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.ticket-files img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
}

.ticket-files a { color: var(--accent); }

.staff-card-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.staff-card-who strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.staff-handle { color: var(--muted); font-size: 13px; }

.staff-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }

.staff-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.staff-tag.is-staff { color: #08574c; background: #d5f3ec; }
.staff-tag.is-maker { color: #3d2a00; background: #ffe08a; }
.staff-tag.is-owner { color: #fff; background: #1a1a1a; }
.staff-tag.is-coowner { color: #fff; background: #5b3fd1; }
.staff-tag.is-sample { color: #5a4308; background: #ffe7a8; }
.staff-tag.is-banned { color: #8f1d16; background: #ffd5d1; }

.staff-ban {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 75, 58, 0.5);
  border-radius: 10px;
  background: transparent;
  color: #ff8d84;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.staff-ban:hover { background: rgba(255, 75, 58, 0.12); }

.staff-ban:disabled {
  opacity: 0.38;
  cursor: default;
}

.staff-ban:disabled:hover { background: transparent; }

.staff-ban.is-unban {
  border-color: rgba(62, 224, 198, 0.45);
  color: var(--accent);
}

.staff-ban.is-unban:hover { background: rgba(62, 224, 198, 0.1); }

.staff-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 12px 0 14px;
}

.staff-stats div { display: flex; align-items: baseline; gap: 8px; }

.staff-stats dt {
  margin: 0;
  color: var(--faint);
  font-size: 12px;
}

.staff-stats dd {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.staff-card h3 {
  margin: 2px 0 8px;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.staff-routes {
  list-style: none;
  margin: 0;
  padding: 0;
}

.staff-route,
.staff-log {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 8px;
  border: 0;
  border-top: 1px solid var(--stroke);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.staff-route { cursor: pointer; }

.staff-route:hover { background: rgba(255, 255, 255, 0.04); }

.staff-route.is-selected { background: rgba(62, 224, 198, 0.14); }

.staff-route time,
.staff-log time {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: 12px;
}

.staff-log { color: var(--muted); }

.staff-log em {
  flex: 0 0 auto;
  color: var(--faint);
  font-style: normal;
  font-size: 11px;
}

.staff-none {
  margin: 0;
  color: var(--faint);
  font-size: 13px;
}

.staff-codes {
  margin: 0 0 16px;
  padding: 16px 16px 14px;
  border-radius: 16px;
}

.staff-codes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.staff-codes h2,
.staff-codes h3 {
  margin: 0;
  color: #f2cc62;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.staff-codes h3 { margin-top: 18px; font-size: 16px; }

.staff-codes-part {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(232, 188, 64, 0.55);
}

.staff-codes-part h2,
.staff-codes-part h3 { margin-top: 0; }

.staff-codes-part h2 { font-size: 20px; }

/* Owner-only hold-to-publish control (bottom of Staff Area). */
.site-publish {
  --sp-a: #ffd94a;
  --sp-b: #ff9d00;
  --sp-glow: 255, 196, 0;
  margin: 28px 0 8px;
  padding: 22px 16px 18px;
  border-radius: 20px;
  text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, rgba(var(--sp-glow), 0.16), rgba(0, 0, 0, 0) 70%);
  border: 1px solid rgba(var(--sp-glow), 0.45);
}

.site-publish[hidden] { display: none; }

.site-publish.is-live {
  --sp-a: #ff5a5a;
  --sp-b: #c4001a;
  --sp-glow: 255, 60, 60;
}

.site-publish-state {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(var(--sp-glow), 0.7);
  background: rgba(var(--sp-glow), 0.14);
  color: var(--sp-a);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-publish-btn {
  position: relative;
  display: block;
  width: 100%;
  min-height: 132px;
  padding: 0;
  border: 0;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  color: #fff;
  background: transparent;
  font: inherit;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  --hold: 0;
  --hold-pct: 0%;
  --hold-deg: 0deg;
  animation: sitePublishIdle 1.8s ease-in-out infinite;
}

/* Spinning conic border. */
.site-publish-btn::before {
  content: '';
  position: absolute;
  z-index: -3;
  left: 50%;
  top: 50%;
  width: 220%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: conic-gradient(from 0deg, var(--sp-a), transparent 25%, var(--sp-b) 50%, transparent 75%, var(--sp-a));
  animation: sitePublishSpin 2.4s linear infinite;
}

/* Dark inner plate. */
.site-publish-btn::after {
  content: '';
  position: absolute;
  z-index: -2;
  inset: 5px;
  border-radius: 21px;
  background: linear-gradient(180deg, #2b1c00, #120a00);
}

.site-publish.is-live .site-publish-btn::after {
  background: linear-gradient(180deg, #3a0508, #170103);
}

/* Fill that grows while the button is held. */
.site-publish-fill {
  position: absolute;
  z-index: -1;
  inset: 5px;
  border-radius: 21px;
  background: linear-gradient(90deg, var(--sp-b), var(--sp-a));
  clip-path: inset(0 calc(100% - var(--hold-pct)) 0 0);
  opacity: 0.95;
}

.site-publish-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 132px;
  padding: 18px 20px;
}

.site-publish-label {
  font-family: var(--font-display);
  font-size: clamp(22px, 5.2vw, 38px);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(var(--sp-glow), 0.9), 0 2px 0 rgba(0, 0, 0, 0.55);
}

.site-publish-meter {
  display: block;
  width: min(100%, 360px);
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.site-publish-meter i {
  display: block;
  height: 100%;
  width: var(--hold-pct);
  border-radius: inherit;
  background: #fff;
  box-shadow: 0 0 12px #fff;
}

.site-publish-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.site-publish-btn.is-holding {
  animation: sitePublishShake 0.16s linear infinite;
  filter: brightness(calc(1 + var(--hold) * 0.45)) saturate(1.2);
  box-shadow:
    0 0 calc(24px + var(--hold) * 60px) rgba(var(--sp-glow), 0.95),
    0 0 calc(60px + var(--hold) * 120px) rgba(var(--sp-glow), 0.6);
}

.site-publish-btn.is-holding::before { animation-duration: 0.6s; }

.site-publish-btn.is-released { animation: sitePublishIdle 1.8s ease-in-out infinite, sitePublishNope 0.35s ease-out; }

.site-publish-btn.is-success { animation: sitePublishBoom 0.7s ease-out; }

.site-publish-hint {
  margin: 14px auto 0;
  max-width: 520px;
  color: var(--muted, #cdb98a);
  font-size: 13px;
  line-height: 1.45;
}

.site-publish-status {
  min-height: 1.4em;
  margin: 8px 0 0;
  color: var(--sp-a);
  font-size: 14px;
  font-weight: 700;
}

.site-closed-edit {
  margin: 12px auto 0;
  padding: 6px 14px;
  border: 1px solid rgba(var(--sp-glow), 0.5);
  border-radius: 999px;
  background: transparent;
  color: var(--sp-a);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.site-closed-edit:hover { background: rgba(var(--sp-glow), 0.14); }

.site-closed-edit[hidden] { display: none; }

/* Owner-only calculator on/off control (Staff Area). */
.calc-control {
  margin: 20px 0 8px;
  padding: 18px 16px;
  border-radius: 20px;
  text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, rgba(255, 59, 48, 0.12), rgba(0, 0, 0, 0) 70%);
  border: 1px solid rgba(255, 59, 48, 0.4);
}

.calc-control[hidden] { display: none; }

.calc-control-state {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(80, 220, 120, 0.7);
  background: rgba(80, 220, 120, 0.14);
  color: #62e08a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.calc-control.is-off .calc-control-state {
  border-color: rgba(255, 59, 48, 0.8);
  background: rgba(255, 59, 48, 0.16);
  color: #ff6a60;
}

.calc-control-btn {
  display: block;
  margin: 0 auto;
  min-width: 240px;
  padding: 14px 24px;
  border: 0;
  border-radius: 14px;
  background: #ff3b30;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(255, 59, 48, 0.45);
}

.calc-control.is-off .calc-control-btn {
  background: #34c759;
  box-shadow: 0 0 22px rgba(52, 199, 89, 0.4);
}

.calc-control-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.calc-control-hint {
  min-height: 1.4em;
  margin: 10px auto 0;
  max-width: 520px;
  color: var(--muted, #cdb98a);
  font-size: 13px;
  line-height: 1.45;
}

/* Calculator disabled: overlay for users, small badge for the owner. */
.calc-disabled,
.calc-owner-badge { display: none; }

.calc-disabled {
  position: absolute;
  inset: 52px 0 0;
  z-index: 690;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 8, 12, 0.72);
  backdrop-filter: blur(3px);
}

.calc-disabled-card {
  width: min(460px, 100%);
  padding: 32px 26px 28px;
  border: 1px solid rgba(255, 59, 48, 0.45);
  border-radius: 20px;
  background: #07080c;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.calc-disabled-icon {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
}

.calc-disabled-title {
  margin: 0 0 8px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.calc-disabled-sub {
  margin: 0;
  color: #c8c8d0;
  font-size: 15px;
}

.calc-owner-badge {
  position: absolute;
  top: 62px;
  left: 50%;
  z-index: 690;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 820px) {
  .calc-owner-badge {
    top: 142px;
    right: 12px;
    left: auto;
    transform: none;
    white-space: normal;
    max-width: min(190px, calc(100vw - 100px));
    border-radius: 14px;
    line-height: 1.2;
    text-align: center;
  }
}

body.is-calc-off:not(.is-home):not(.is-pricing):not(.is-checkout):not(.is-staff):not(.is-dropmaker):not(.is-dropmap):not(.is-dropmap-view):not(.is-soon):not(.is-banned) .calc-disabled {
  display: flex;
}

body.is-calc-owner-off:not(.is-home):not(.is-pricing):not(.is-checkout):not(.is-staff):not(.is-dropmaker):not(.is-dropmap):not(.is-dropmap-view):not(.is-soon):not(.is-banned) .calc-owner-badge {
  display: block;
}

body.is-calc-off:not(.is-dropmap) .side,
body.is-calc-off:not(.is-dropmap) .map-actions,
body.is-calc-off:not(.is-dropmap) .drop-cards { display: none !important; }

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

@keyframes sitePublishIdle {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 18px rgba(var(--sp-glow), 0.55), 0 0 44px rgba(var(--sp-glow), 0.25);
  }
  50% {
    transform: scale(1.018);
    box-shadow: 0 0 34px rgba(var(--sp-glow), 0.95), 0 0 90px rgba(var(--sp-glow), 0.5);
  }
}

@keyframes sitePublishShake {
  0% { transform: translate(0, 0) scale(calc(1 + var(--hold) * 0.04)); }
  25% { transform: translate(calc(var(--hold) * -4px), calc(var(--hold) * 2px)) scale(calc(1 + var(--hold) * 0.04)); }
  50% { transform: translate(calc(var(--hold) * 3px), calc(var(--hold) * -3px)) scale(calc(1 + var(--hold) * 0.04)); }
  75% { transform: translate(calc(var(--hold) * -2px), calc(var(--hold) * -2px)) scale(calc(1 + var(--hold) * 0.04)); }
  100% { transform: translate(calc(var(--hold) * 4px), calc(var(--hold) * 2px)) scale(calc(1 + var(--hold) * 0.04)); }
}

@keyframes sitePublishNope {
  0%, 100% { translate: 0 0; }
  25% { translate: -8px 0; }
  75% { translate: 8px 0; }
}

@keyframes sitePublishBoom {
  0% { transform: scale(1.06); filter: brightness(2); box-shadow: 0 0 120px rgba(var(--sp-glow), 1); }
  100% { transform: scale(1); filter: brightness(1); box-shadow: 0 0 18px rgba(var(--sp-glow), 0.55); }
}

@media (prefers-reduced-motion: reduce) {
  .site-publish-btn,
  .site-publish-btn::before,
  .site-publish-btn.is-holding { animation: none; }
}

.staff-code-add {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid #e8bc40;
  border-radius: 12px;
  background: #e8bc40;
  color: #07080c;
  font: inherit;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.staff-code-add:hover { background: #f2cc62; border-color: #f2cc62; }

.staff-codes-count {
  margin: 10px 0 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.staff-affiliate-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.checkout-totals .checkout-discount span:last-child {
  color: #8ee0a8;
}

#checkoutDiscountRow[hidden] { display: none !important; }

.staff-code-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.staff-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 8px 0;
  border-top: 1px solid var(--stroke);
  color: var(--text);
  font-size: 14px;
}

.staff-code-row strong {
  font-family: var(--font-display);
  font-weight: 650;
}

.staff-code-row span,
.staff-code-row time { color: var(--muted); }

.staff-code-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.staff-code-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.staff-code-actions .ghost-btn,
.staff-code-actions .pay-btn {
  flex: 1;
  width: auto;
  margin-top: 0;
}

.staff-code-delete {
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(232, 188, 64, 0.55);
  border-radius: 10px;
  background: #2e2718;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.staff-token-remove button,
.owner-actions button,
.owner-inline button {
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(232, 188, 64, 0.95);
  border-radius: 10px;
  background: #2e2718;
  color: #f2cc62;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.owner-actions button:first-child {
  border-color: #e8bc40;
  background: #e8bc40;
  color: #07080c;
}

.staff-code-delete { margin-left: auto; }
.staff-code-delete:hover { background: #3a3220; }
.staff-token-remove button:hover,
.owner-inline button:hover,
.owner-actions button:hover { background: rgba(232, 188, 64, 0.16); }
.owner-actions button:first-child:hover { background: #f2cc62; border-color: #f2cc62; }

.staff-token-remove button:disabled {
  opacity: 0.4;
  cursor: default;
}

.staff-code-delete[data-armed="1"],
.owner-inline button[data-armed="1"] {
  border-color: rgba(255, 75, 58, 0.55);
  color: #ff8d84;
}

.staff-token-remove {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.staff-token-remove input,
.owner-row input,
.owner-inline input {
  height: 34px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid rgba(232, 188, 64, 0.95);
  border-radius: 10px;
  background: #2e2718;
  color: #fff;
  font: inherit;
  font-size: 14px;
}

.staff-token-remove span,
.owner-note,
.owner-current,
.owner-meta {
  color: var(--muted);
  font-size: 13px;
}

.owner-menu {
  margin: 0 0 18px;
  border-radius: 16px;
}

.owner-menu[hidden] { display: none; }

.owner-menu summary {
  padding: 14px 16px;
  color: #f2cc62;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.owner-menu summary::-webkit-details-marker { display: none; }

.owner-menu summary::after {
  content: "";
  float: right;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-right: 1.8px solid #f2cc62;
  border-bottom: 1.8px solid #f2cc62;
  transform: rotate(45deg);
}

.owner-menu[open] summary::after { transform: rotate(225deg); margin-top: 10px; }

.owner-menu-body { padding: 0 16px 14px; }

.staff-person-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.staff-person-actions .staff-token-add,
.staff-person-actions .staff-token-remove { margin: 0; }

.staff-role {
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(232, 188, 64, 0.95);
  border-radius: 10px;
  background: #2e2718;
  color: #f2cc62;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.staff-role:hover { background: rgba(232, 188, 64, 0.16); }

.staff-log {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.staff-route-delete {
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(232, 188, 64, 0.55);
  border-radius: 8px;
  background: #2e2718;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.owner-block h2,
.owner-section h3 {
  margin: 0;
  color: #f2cc62;
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.owner-block h2 { font-size: 22px; }
.owner-section { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(232, 188, 64, 0.55); }
.owner-section h3 { font-size: 16px; }
.owner-note { margin: 8px 0 0; }

.owner-row,
.owner-pack-row,
.owner-record {
  display: grid;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.owner-row { grid-template-columns: minmax(92px, 130px) minmax(72px, 0.8fr) minmax(120px, 1.2fr); }
.owner-pack-row { grid-template-columns: minmax(0, 1.4fr) 88px 88px; }

.owner-pack-edit {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--stroke);
}

.owner-pack-edit:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.owner-pack-label {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}

.owner-pack-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.owner-pack-note textarea {
  width: 100%;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid rgba(232, 188, 64, 0.95);
  border-radius: 10px;
  background: #2e2718;
  color: #fff;
  font: inherit;
  font-size: 13px;
  resize: vertical;
}
.owner-record { grid-template-columns: minmax(0, 1fr); }

.owner-actions,
.owner-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.owner-routes { margin: 8px 0 0; padding: 0; list-style: none; }
.owner-routes li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.dropmap-create {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.dropmap-name-field {
  color: var(--muted);
  font-size: 13px;
}

#dropmapNameInput {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(232, 188, 64, 0.95);
  border-radius: 12px;
  background: #07080c;
  color: #fff;
  font: inherit;
}

.dropmap-saved {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(1204px, 100%);
}

.dropmap-saved[hidden] { display: none; }

.dropmap-import {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: min(1204px, 100%);
  padding: 10px 14px;
  border: 1px dashed rgba(232, 188, 64, 0.7);
  border-radius: 12px;
}
.dropmap-import[hidden] { display: none; }
.dropmap-import p { margin: 0; }
.dropmap-area-msg { width: min(1204px, 100%); margin: 0; }

.dropmap-card-creator {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  max-width: 96px;
  padding: 3px 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.dropmap-saved h2 {
  margin: 6px 0 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 650;
}

.dropmap-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 16px;
}

.dropmap-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 228px;
  height: 228px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(232, 188, 64, 0.95);
  border-radius: 18px;
  background: #07080c;
  color: #fff;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-align: left;
  cursor: pointer;
}

.dropmap-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 64%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.42) 24%,
    rgba(0, 0, 0, 0.2) 48%,
    rgba(0, 0, 0, 0.08) 72%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

.dropmap-card-name {
  position: relative;
  z-index: 2;
  display: -webkit-box;
  margin: 0;
  padding: 16px 78px 14px 16px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dropmap-preview {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  pointer-events: none;
}

.dropmap-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.dropmap-preview-pin,
.dropmap-preview-circle {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.dropmap-preview-pin {
  width: 20px;
  height: 26px;
  overflow: visible;
  transform: translate(-50%, -100%);
}

.dropmap-preview-pin path { stroke: #141414; }
.dropmap-preview-pin.is-yellow { color: #ffd84a; }
.dropmap-preview-pin.is-red { color: #ff3b30; }
.dropmap-preview-pin.is-black { color: #111; }
.dropmap-preview-pin.is-black path { stroke: #f4f0e4; }

.dropmap-preview-circle {
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
}

.dropmap-preview-circle.is-yellow { background: #ffd84a; }
.dropmap-preview-circle.is-red { background: #ff3b30; }
.dropmap-preview-circle.is-black { background: #111; border-color: #f4f0e4; }

.dropmap-card-publish {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 8px;
  border: 0;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.dropmap-card-publish.is-on { background: #e8bc40; color: #14110c; }

.published-drops { display: grid; gap: 6px; margin: 0 0 12px; }
.published-drops[hidden] { display: none; }
.published-label { margin: 0; color: var(--muted); font-size: 12px; }
.published-spot {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 8px 10px;
  background: transparent;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.published-spot i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.published-spot:hover { background: rgba(255, 255, 255, 0.06); }

.dropmap-card-rename,
.dropmap-card-delete {
  position: absolute;
  z-index: 3;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.dropmap-card-rename {
  right: 44px;
  color: #fff;
}

.dropmap-card-delete {
  right: 8px;
  color: #ff3b30;
}

.dropmap-card-rename svg,
.dropmap-card-delete svg { width: 16px; height: 16px; display: block; }

.dropmap-card-rename:hover,
.dropmap-card-delete:hover { background: rgba(0, 0, 0, 0.48); }

.dropmap-card-rename-input {
  position: relative;
  z-index: 3;
  width: calc(100% - 92px);
  margin: 0 78px 12px 14px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #fff;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
}

.dropmap-card-rename-input.is-invalid { border-color: #ff3b30; }

.dropmap-card:hover,
.dropmap-card:focus-visible {
  border-color: #f2cc62;
}

.dropmap-editor {
  position: absolute;
  z-index: 690;
  right: 12px;
  bottom: 14px;
  left: 12px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.dropmap-editor[hidden] { display: none !important; }

.dropmap-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  max-width: 100%;
  padding: 8px;
  border: 1px solid rgba(232, 188, 64, 0.95);
  border-radius: 16px;
  background: #07080c;
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.dropmap-project {
  margin: 0;
  max-width: 180px;
  overflow: hidden;
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropmap-palette,
.dropmap-editor-actions,
.dropmap-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.dropmap-shape-label {
  color: #f2cc62;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dropmap-swatch-pin {
  display: block;
  width: 12px;
  height: 16px;
}

.dropmap-swatch-circle {
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #141414;
}

.dropmap-swatch-circle.is-yellow { background: #ffd84a; }
.dropmap-swatch-circle.is-red { background: #ff3b30; }
.dropmap-swatch-circle.is-black { background: #111; border-color: #f4f0e4; }

.dropmap-tool,
.dropmap-back,
.dropmap-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(232, 188, 64, 0.95);
  border-radius: 10px;
  background: #07080c;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.dropmap-tool.is-on,
.dropmap-save {
  border-color: #e8bc40;
  background: #e8bc40;
  color: #07080c;
}

.dropmap-tool:hover,
.dropmap-back:hover { background: rgba(232, 188, 64, 0.14); }

.dropmap-tool.is-on:hover,
.dropmap-save:hover { background: #f2cc62; border-color: #f2cc62; }

.dropmap-dot {
  width: 12px;
  height: 12px;
  border: 1px solid #141414;
  border-radius: 50%;
}

.dropmap-dot.is-yellow { background: #ffd84a; }
.dropmap-dot.is-red { background: #ff3b30; }
.dropmap-dot.is-black { background: #111; border-color: #f4f0e4; }

.dropmap-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.dropmap-hint.is-error {
  color: #ff8d8d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.dropmap-pin-shell,
.dropmap-circle-shell {
  background: transparent !important;
  border: 0 !important;
  overflow: visible !important;
}

.dropmap-pin {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: scale(var(--mark-scale, 1));
  transform-origin: 50% 96%;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.45));
}

.dropmap-circle {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border-style: solid;
  border-radius: 50%;
  transform: scale(var(--mark-scale, 1));
  transform-origin: 50% 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

body.is-dropmap .dropmaker-screen { display: none !important; }

body.is-dropmap .marker-shell,
body.is-dropmap .bus-ribbon,
body.is-dropmap .leaflet-overlay-pane path {
  display: none !important;
}

body.is-dropmap #map .leaflet-control-zoom {
  display: block !important;
  margin-top: 64px !important;
  margin-left: 16px !important;
}

body.is-dropmap #map.leaflet-container { cursor: crosshair; }

body.is-dropmap.is-dropmap-remove #map.leaflet-container { cursor: default; }

body.is-dropmap.is-dropmap-remove .dropmap-pin,
body.is-dropmap.is-dropmap-remove .dropmap-circle { cursor: pointer; }

#dropMakerBtn.is-current {
  border-color: #e8bc40;
  background: #e8bc40;
  color: #07080c;
}

#dropMakerBtn.is-current:hover { background: #f2cc62; border-color: #f2cc62; }

.leaflet-zoom-anim .leaflet-zoom-animated {
  transition: transform 0.32s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@media (max-width: 820px) {
  .dropmap-card {
    width: min(228px, 100%);
    height: auto;
    aspect-ratio: 1;
  }

  body.is-dropmap #map .leaflet-control-zoom,
  body.is-dropmap.is-planning #map .leaflet-control-zoom {
    margin-top: 64px !important;
    margin-left: 12px !important;
  }
}

body.is-light {
  --bg: #eef0f4;
  --text: #16161a;
  --muted: #5c6370;
  --faint: #7a8190;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --elevated: #f3f4f8;
  --stroke: rgba(0, 0, 0, 0.08);
  background: #eef0f4;
  color: #16161a;
}

body.is-light .topbar {
  background: #fff;
  border-bottom-color: #e4e4ea;
  color: #16161a;
}

body.is-light .brand strong,
body.is-light .nav-link,
body.is-light .account-caret { color: #16161a; }

body.is-light .brand-mark path { fill: #16161a; }

body.is-light .home-hero,
body.is-light .pricing-screen,
body.is-light .checkout-screen,
body.is-light .dropmaker-screen {
  background: #f4f5f8;
  color: #16161a;
}

body.is-light .home-hero h1,
body.is-light .pricing-screen h1,
body.is-light .checkout-screen h1,
body.is-light .dropmaker-screen h1,
body.is-light .dropmap-saved h2 { color: #16161a; }

body.is-light .price-card,
body.is-light .area-panel,
body.is-light .settings-panel {
  background: #fff;
  color: #16161a;
}

body.is-light .settings-panel select,
body.is-light .settings-panel input,
body.is-light .settings-actions button,
body.is-light #themeToggle,
body.is-light #settingsClose {
  background: #f4f5f8;
  color: #16161a;
  border-color: #d8d8e0;
}

body.is-light .account-pop { background: #fff; border-color: #e4e4ea; }

body.is-light .account-pop button { color: #16161a; }

body.is-light .account-pop button:hover,
body.is-light .account-slot.is-user .sign-in-btn:hover { background: rgba(0, 0, 0, 0.05); }

body.is-light .staff-screen { background: #f3f1ea; }

body.is-light .staff-screen-list h1 { color: #16161a; }

body.is-light {
  --bg: #eef0f4;
  --text: #16161a;
  --muted: #5c6370;
  --faint: #7b8494;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --elevated: #f3f4f8;
  --stroke: rgba(0, 0, 0, 0.08);
  background: #eef0f4;
  color: #16161a;
}

body.is-light .topbar {
  background: #fff;
  border-bottom-color: #e4e4ea;
  color: #16161a;
}

body.is-light .brand strong,
body.is-light .nav-link,
body.is-light .token-pill { color: #16161a; }

body.is-light .brand-mark path { fill: #16161a; }

body.is-light .token-pill { background: #fff; border-color: #e4e4ea; }

body.is-light .home-hero,
body.is-light .pricing-screen,
body.is-light .checkout-screen,
body.is-light .dropmaker-screen {
  background: #f4f5f8;
  color: #16161a;
}

body.is-light .home-path { opacity: 0.28; }

body.is-light .home-hero h1,
body.is-light .home-hero p,
body.is-light .pricing-screen h1,
body.is-light .checkout-screen h1,
body.is-light .dropmaker-screen h1,
body.is-light .dropmap-saved h2 { color: #16161a; }

body.is-light .price-card,
body.is-light .area-panel,
body.is-light .checkout-card,
body.is-light .redeem-card {
  background: #fff;
  color: #16161a;
}

body.is-light .staff-screen { background: #f3f1ea; }

body.is-light .staff-screen-list h1 { color: #16161a; }

body.is-light .account-caret { color: #16161a; }

body.is-light .account-slot.is-user .sign-in-btn:hover { background: rgba(0, 0, 0, 0.05); }

body.is-light .account-pop,
body.is-light .settings-panel {
  background: #fff;
  color: #16161a;
  border-color: #e4e4ea;
}

body.is-light .account-pop button,
body.is-light .settings-actions button,
body.is-light #themeToggle,
body.is-light #settingsClose {
  color: #16161a;
  background: #f3f4f8;
}

body.is-light .settings-panel select,
body.is-light .settings-panel input {
  background: #fff;
  color: #16161a;
  border-color: #d8d8e0;
}

body.is-light .account-section h3,
body.is-light .account-identity strong,
body.is-light .account-balance,
body.is-light .account-results button,
body.is-light #accountSendBtn { color: #16161a; }

body.is-light .account-identity p,
body.is-light .account-notes p { color: #3c4250; }

body.is-light .account-results button,
body.is-light #accountSendBtn { background: #f3f4f8; }

body.is-light .home-hero {
  background:
    radial-gradient(ellipse 72% 46% at 50% -10%, rgba(36, 86, 148, 0.55), transparent 66%),
    linear-gradient(180deg, #05070b 0%, #070b12 40%, #102038 100%);
  color: #fff;
}

body.is-light .home-hero h1,
body.is-light .home-hero p { color: #fff; }

/* ---- Free-fall landing engine: route markers ---- */
.pin-open { width: 14px; height: 14px; background: #3ddc6a; }
.pin-chute { width: 14px; height: 14px; background: #7ec8ff; }
.pin-land { width: 14px; height: 14px; background: transparent; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55), 0 0 8px rgba(255, 255, 255, 0.5); }
.pin-landmiss { width: 14px; height: 14px; background: #ff3b30; }
.leaflet-overlay-pane path.route-fall,
.leaflet-overlay-pane path.route-glide { vector-effect: non-scaling-stroke; }

/* ---- Admin Panel: landing model (engine switch + calibration) ---- */
.landing-model {
  margin: 0 0 16px;
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(232, 188, 64, 0.95);
  background: #241e12;
}
.landing-model[hidden],
.landing-model [hidden] { display: none; }
.landing-model h2,
.landing-model h3,
.landing-model h4 {
  margin: 0;
  color: #f2cc62;
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}
.landing-model h2 { font-size: 20px; }
.landing-model h3 { margin-top: 18px; font-size: 16px; }
.landing-model h4 { margin-top: 14px; font-size: 14px; }
.lm-state {
  display: inline-block;
  margin: 10px 0 12px;
  padding: 5px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 159, 26, 0.75);
  background: rgba(255, 159, 26, 0.14);
  color: #ffb44d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.lm-state.is-calibrated {
  border-color: rgba(80, 220, 120, 0.7);
  background: rgba(80, 220, 120, 0.14);
  color: #62e08a;
}
.lm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 10px; }
.lm-field,
.lm-num { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 600; }
.landing-model select,
.landing-model input[type="number"] {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid rgba(232, 188, 64, 0.5);
  background: #15110a;
  color: #fff;
  font: inherit;
  font-size: 13px;
}
.lm-hint { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.lm-error { margin: 8px 0 0; color: #ff8a80; font-size: 13px; }
.lm-ok { margin: 8px 0 0; color: #62e08a; font-size: 13px; }
.lm-help { margin: 10px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.lm-help summary { cursor: pointer; color: #f2cc62; font-weight: 700; }
.lm-help ol { margin: 8px 0 0; padding-left: 20px; }
.lm-jump {
  margin: 12px 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(232, 188, 64, 0.35);
  background: rgba(0, 0, 0, 0.18);
}
.lm-jump header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.lm-jump header strong { color: #fff; margin-right: auto; }
.lm-mode { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.lm-jump button,
.lm-point button {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(232, 188, 64, 0.55);
  background: transparent;
  color: #f2cc62;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.lm-jump button:hover,
.lm-point button:hover { background: rgba(232, 188, 64, 0.16); }
.lm-point { display: grid; grid-template-columns: minmax(110px, 1.3fr) 1fr 1fr auto; align-items: center; gap: 6px; margin: 4px 0; color: var(--muted); font-size: 12px; }
.lm-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 8px; margin-top: 8px; }
.lm-actions { margin-top: 10px; }
.lm-actions button:disabled { opacity: 0.45; cursor: not-allowed; }
.lm-params { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 4px 14px; margin-top: 6px; }
.lm-param { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 8px; color: #e8e2d0; font-size: 12px; }
.lm-param em { font-style: normal; color: var(--muted); }
.lm-param i { font-style: normal; font-size: 10px; padding: 1px 6px; border-radius: 999px; border: 1px solid rgba(255, 159, 26, 0.6); color: #ffb44d; }
.lm-param i.calibrated { border-color: rgba(80, 220, 120, 0.7); color: #62e08a; }
.lm-residuals { margin: 6px 0 0; padding-left: 18px; color: #e8e2d0; font-size: 13px; }
#lmResult { margin-top: 10px; color: #e8e2d0; font-size: 13px; }
@media (max-width: 640px) {
  .lm-point { grid-template-columns: 1fr 1fr; }
  .lm-point span,
  .lm-point button { grid-column: 1 / -1; }
}
