:root {
  --bg: #070b10;
  --panel: #0f1620;
  --panel-2: #121c27;
  --panel-3: #172331;
  --ink: #eef4f8;
  --muted: #91a0ad;
  --line: rgba(134, 154, 173, 0.24);
  --line-strong: rgba(177, 194, 209, 0.36);
  --green: #22c799;
  --gold: #d6a84f;
  --blue: #55a7ff;
  --cyan: #5ce1e6;
  --red: #ef6b5b;
  --black: #070b10;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  --glow: 0 0 0 1px rgba(92, 225, 230, 0.18), 0 16px 44px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  background:
    linear-gradient(180deg, #081018 0%, #070b10 44%, #05080c 100%);
  color: var(--ink);
  min-height: 100vh;
  font-size: 14px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(92, 225, 230, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 225, 230, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 72%);
}

button,
select {
  font: inherit;
}

.is-hidden {
  display: none !important;
}

.login-view {
  min-height: 100vh;
  display: block;
  padding: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 13, 0.66), rgba(5, 8, 13, 0.94)),
    url("/data/brand/orbis-logo.png") right 2% top 7% / min(860px, 60vw) auto no-repeat,
    radial-gradient(circle at 82% 20%, rgba(90, 83, 190, 0.28), transparent 32%),
    radial-gradient(circle at 9% 12%, rgba(30, 188, 198, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(7, 10, 18, 0.97), rgba(4, 7, 12, 0.99)),
    #05080d;
}

.login-view::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(92, 225, 230, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 225, 230, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 38% 45%, rgba(0, 0, 0, 0.95), transparent 78%);
}

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 440px);
  gap: min(8vw, 86px);
  width: min(1320px, calc(100vw - 48px));
  min-height: 100vh;
  align-items: center;
  margin: 0 auto;
  padding: 70px 0 56px;
}

.login-brand-lockup {
  position: absolute;
  top: 26px;
  left: 4px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-brand-mark {
  width: 58px;
  height: 44px;
  display: block;
  border: 1px solid rgba(92, 225, 230, 0.55);
  border-radius: 12px;
  background: #08111a;
  object-fit: cover;
  object-position: 16% 52%;
  box-shadow: 0 0 28px rgba(92, 225, 230, 0.4);
}

.login-brand-lockup strong {
  display: block;
  color: #edf5ff;
  font-size: 24px;
  letter-spacing: 6px;
}

.login-brand-lockup span {
  color: var(--muted);
  font-size: 12px;
}

.login-story {
  max-width: 790px;
}

.login-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 22px;
  padding: 0 18px;
  border: 1px solid rgba(92, 225, 230, 0.48);
  border-radius: 999px;
  color: #ccebf1;
  background: rgba(5, 17, 26, 0.82);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.login-panel {
  display: grid;
  gap: 18px;
  width: 100%;
  padding: 34px 28px 28px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 5%, rgba(92, 225, 230, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(17, 28, 42, 0.9), rgba(8, 12, 20, 0.94));
  border: 1px solid rgba(124, 151, 180, 0.22);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
}

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

h1 {
  max-width: 760px;
  font-size: clamp(52px, 6vw, 78px);
  line-height: 0.98;
  margin-bottom: 22px;
  color: #fff;
}

h1 span {
  color: #5ce1e6;
  background: linear-gradient(90deg, #41dff2, #8178ff 62%, #d6a84f);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-panel h2 {
  margin-bottom: 8px;
  color: #fff;
  font-size: 26px;
}

.login-copy,
.auth-note,
.metric small,
.detail-panel p {
  color: var(--muted);
  line-height: 1.45;
}

.login-story .login-copy {
  max-width: 850px;
  color: #c9d6e5;
  font-size: 17px;
  line-height: 1.62;
}

.login-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.login-proof-row span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(132, 148, 180, 0.38);
  border-radius: 8px;
  color: #d8e5f2;
  background: rgba(18, 26, 41, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.login-definition {
  max-width: 800px;
  margin: 20px 0 0;
  padding-left: 14px;
  border-left: 2px solid rgba(126, 118, 246, 0.72);
  color: #aebbd0;
  line-height: 1.6;
}

.login-definition strong {
  color: #f5f8ff;
}

.login-covenant-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(214, 168, 79, 0.32);
  border-radius: 10px;
  color: #e7d8b2;
  background:
    linear-gradient(90deg, rgba(214, 168, 79, 0.12), rgba(92, 225, 230, 0.05)),
    rgba(5, 10, 16, 0.7);
  font-size: 13px;
  line-height: 1.45;
}

.login-card-orbit {
  display: grid;
  place-items: center;
  min-height: 238px;
  overflow: hidden;
  border: 1px solid rgba(92, 225, 230, 0.2);
  border-radius: 14px;
  background:
    radial-gradient(circle at 28% 50%, rgba(92, 225, 230, 0.16), transparent 34%),
    linear-gradient(90deg, rgba(2, 9, 15, 0.1), rgba(2, 9, 15, 0.74)),
    rgba(5, 10, 16, 0.82);
}

.login-card-orbit img {
  width: 100%;
  height: 238px;
  object-fit: contain;
  object-position: center;
  padding: 18px;
  filter: saturate(1.12) contrast(1.05) drop-shadow(0 0 24px rgba(92, 225, 230, 0.18));
}

.login-actions {
  display: grid;
  gap: 12px;
  margin: 4px 0 4px;
}

.auth-button,
.primary-action,
.secondary-action,
.nav-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  cursor: pointer;
}

.auth-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(238, 244, 248, 0.98);
  color: #071019;
  font-weight: 700;
}

.auth-button span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  background: var(--black);
}

.auth-button.google span {
  background: #4285f4;
}

.auth-button.microsoft span {
  background: #00a4ef;
}

.auth-button.locked {
  background: #090f16;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.auth-note {
  padding-top: 16px;
  border-top: 1px solid rgba(154, 170, 190, 0.18);
  font-size: 13px;
}

.login-footer {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding: 20px 0 0;
  border-top: 1px solid rgba(92, 225, 230, 0.1);
  color: rgba(166, 178, 205, 0.88);
  text-align: center;
  font-size: 12px;
}

.login-footer p {
  margin: 0 0 8px;
}

.login-footer strong {
  color: #cbd7eb;
}

.login-footer a {
  color: #5ce1e6;
  font-weight: 800;
  text-decoration: none;
}

.login-footer a:hover,
.login-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
  outline: none;
}

.auth-button:disabled {
  opacity: 0.68;
  cursor: not-allowed;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  background:
    radial-gradient(circle at 82% 8%, rgba(214, 168, 79, 0.08), transparent 24%),
    radial-gradient(circle at 45% 0%, rgba(92, 225, 230, 0.1), transparent 30%),
    linear-gradient(90deg, rgba(13, 22, 33, 0.96) 0 268px, transparent 268px),
    linear-gradient(180deg, #09111a 0%, #070b10 100%);
}

.app-shell.scope-pending {
  grid-template-columns: minmax(0, 1fr);
}

.app-shell.scope-pending .topbar,
.app-shell.scope-pending .operator-ribbon,
.app-shell.scope-pending .sidebar,
.app-shell.scope-pending .scope-entry-panel,
.app-shell.scope-pending .filter-band,
.app-shell.scope-pending .metrics-grid,
.app-shell.scope-pending .detail-panel,
.app-shell.scope-pending .view-section {
  display: none;
}

.app-shell.scope-pending .workspace {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 14px;
}

.app-shell.scope-pending .command-surface {
  display: grid;
  gap: 0;
}

.app-shell.scope-pending .main-grid {
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  min-height: calc(100vh - 28px);
}

.app-shell.scope-pending .map-panel {
  min-height: calc(100vh - 28px);
  padding: 0;
  overflow: hidden;
}

.app-shell.scope-pending .world-map {
  min-height: calc(100vh - 28px);
  border-radius: 8px;
}

.app-shell.scope-pending .map-panel > .panel-header,
.app-shell.scope-pending .country-summary-panel,
.app-shell.scope-pending .legend,
.app-shell.scope-pending .map-attribution {
  display: none;
}

.app-shell.scope-active .scope-entry-panel {
  display: none;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
  background:
    linear-gradient(180deg, rgba(10, 16, 24, 0.98), rgba(5, 8, 12, 0.98)),
    rgba(7, 11, 16, 0.94);
  border-right: 1px solid rgba(170, 190, 210, 0.16);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

.brand-button {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.brand-button:hover .brand-mark,
.brand-button:focus-visible .brand-mark {
  outline: 2px solid rgba(92, 225, 230, 0.55);
  outline-offset: 3px;
}

.brand-mark {
  width: 44px;
  height: 40px;
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(92, 225, 230, 0.46);
  background: #071018;
  object-fit: cover;
  object-position: 15% 52%;
  box-shadow: 0 0 18px rgba(92, 225, 230, 0.24);
}

.brand span,
.user-card span {
  display: block;
  color: #aeb8c1;
  font-size: 12px;
}

.nav-list {
  display: grid;
  gap: 4px;
}

.nav-section-label {
  margin: 10px 8px 2px;
  color: rgba(145, 160, 173, 0.72);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-item {
  color: #b9c5cf;
  text-align: left;
  padding: 0 12px;
  background: transparent;
  border-color: transparent;
  min-height: 38px;
  font-size: 13px;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(92, 225, 230, 0.12);
  border-color: rgba(92, 225, 230, 0.28);
  color: #fff;
}

.clickable-card {
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.clickable-card:hover,
.clickable-card:focus-visible {
  border-color: rgba(92, 225, 230, 0.52);
  background:
    linear-gradient(135deg, rgba(22, 48, 61, 0.92), rgba(15, 22, 32, 0.94)),
    rgba(15, 22, 32, 0.98);
  box-shadow:
    0 0 0 1px rgba(92, 225, 230, 0.14),
    0 18px 38px rgba(0, 0, 0, 0.26);
  outline: none;
  transform: translateY(-1px);
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background: rgba(92, 225, 230, 0.06);
}

.evidence-output-grid > .clickable-card {
  border: 1px solid rgba(92, 225, 230, 0.18);
}

.evidence-output-grid > .clickable-card:hover,
.evidence-output-grid > .clickable-card:focus-visible {
  border-color: rgba(92, 225, 230, 0.5);
  box-shadow: 0 0 0 1px rgba(92, 225, 230, 0.14);
}

.user-card {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(170, 190, 210, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.sign-out-button {
  width: 100%;
  height: 36px;
  margin-top: 12px;
  border: 1px solid #465563;
  color: #fff;
  background: transparent;
}

.sign-out-button:hover {
  background: #24313d;
}

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

.command-surface {
  display: block;
}

.app-shell.module-mode .command-surface {
  display: none;
}

.app-shell.module-mode .view-section {
  margin-top: 0;
}

.app-shell.module-mode .topbar {
  margin-bottom: 14px;
}

.app-shell.module-mode .workspace {
  padding: 14px 18px;
}

.app-shell.module-mode .topbar h2 {
  font-size: 22px;
}

.app-shell.module-mode .topbar-actions {
  display: none;
}

.app-shell.module-mode .view-section {
  padding: 14px;
}

.app-shell.module-mode .view-section > .panel-header:first-child {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: -14px -14px 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 18, 26, 0.94);
  backdrop-filter: blur(8px);
}

.app-shell.module-mode .view-section > .panel-header:first-child h3 {
  font-size: 20px;
}

.topbar,
.panel-header,
.topbar-actions,
.legend,
.map-tools,
.gauge-row {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(18, 30, 44, 0.92), rgba(11, 16, 24, 0.92)),
    rgba(15, 22, 32, 0.84);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.filter-band {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 22, 32, 0.86);
  box-shadow: var(--glow);
}

.filter-band label {
  display: grid;
  gap: 5px;
}

.filter-band span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.topbar h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.topbar-actions {
  gap: 10px;
}

.topbar-actions button {
  display: none;
}

.app-shell.scope-active .topbar-actions button {
  display: inline-flex;
}

.scope-entry-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, auto);
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(92, 225, 230, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(17, 29, 42, 0.96), rgba(9, 15, 22, 0.98)),
    radial-gradient(circle at 18% 10%, rgba(92, 225, 230, 0.18), transparent 34%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.scope-brand h3 {
  margin-bottom: 6px;
  color: #fff;
  font-size: 24px;
}

.scope-brand p:last-child {
  max-width: 780px;
  color: #aeb8c1;
}

.scope-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.gateway-country-panel {
  display: none;
}

.app-shell.scope-pending .gateway-country-panel {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 14px;
  min-height: calc(100vh - 44px);
  padding: 22px;
  border: 1px solid rgba(92, 225, 230, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(10, 17, 25, 0.94), rgba(5, 8, 13, 0.96)),
    radial-gradient(circle at 12% 8%, rgba(92, 225, 230, 0.14), transparent 28%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.app-shell.scope-active .gateway-country-panel {
  display: none;
}

.gateway-brand-block h3 {
  margin-bottom: 8px;
  color: #fff;
  font-size: 30px;
}

.gateway-brand-block p:last-child {
  color: var(--muted);
  line-height: 1.5;
}

.gateway-search {
  display: grid;
  gap: 6px;
}

.gateway-search span {
  color: rgba(145, 160, 173, 0.86);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.gateway-continent-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gateway-country-list {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.gateway-country-chip {
  display: inline-grid;
  gap: 2px;
  min-height: 42px;
  padding: 7px 11px;
  border: 1px solid rgba(126, 118, 246, 0.42);
  border-radius: 999px;
  background: rgba(35, 32, 72, 0.58);
  color: #f7fbff;
  text-align: left;
  cursor: pointer;
}

.gateway-country-chip strong {
  font-size: 12px;
  line-height: 1.1;
}

.gateway-country-chip span {
  color: rgba(213, 220, 230, 0.76);
  font-size: 10px;
  font-weight: 700;
}

.gateway-country-chip.loaded {
  border-color: rgba(92, 225, 230, 0.62);
  background: rgba(25, 116, 92, 0.26);
}

.gateway-country-chip:hover,
.gateway-country-chip:focus-visible {
  border-color: #22f0ff;
  background: rgba(92, 225, 230, 0.13);
  outline: none;
}

.gateway-footer-actions {
  display: flex;
  justify-content: flex-start;
}

.scope-picker {
  display: grid;
  gap: 5px;
  min-width: 210px;
}

.scope-picker span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.scope-gate-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(170, 190, 210, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #dbe7ef;
  font-weight: 700;
}

.scope-gate-status[data-tone="granted"] {
  border-color: rgba(33, 199, 150, 0.42);
  background: rgba(33, 199, 150, 0.12);
  color: #b8ffe9;
}

.scope-gate-status[data-tone="blocked"] {
  border-color: rgba(240, 180, 75, 0.5);
  background: rgba(240, 180, 75, 0.14);
  color: #ffdf9e;
}

.operator-ribbon {
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: -4px 0 14px;
}

.app-shell.scope-active .operator-ribbon {
  display: grid;
}

.app-shell.scope-landing .operator-ribbon {
  display: none;
}

.operator-ribbon-card {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 12px 13px;
  overflow: hidden;
  border: 1px solid rgba(170, 190, 210, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(17, 28, 40, 0.94), rgba(8, 12, 18, 0.96)),
    rgba(255, 255, 255, 0.035);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    transform 0.16s ease;
}

.operator-ribbon-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(92, 225, 230, 0.9), rgba(34, 199, 153, 0.18));
}

.operator-ribbon-card span {
  color: rgba(154, 178, 196, 0.92);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.operator-ribbon-card strong {
  max-width: 100%;
  color: #fff;
  font-size: 15px;
  line-height: 1.15;
}

.operator-ribbon-card small {
  color: var(--muted);
  line-height: 1.25;
}

.operator-ribbon-card:hover,
.operator-ribbon-card:focus-visible {
  border-color: rgba(92, 225, 230, 0.52);
  background:
    linear-gradient(145deg, rgba(21, 45, 56, 0.96), rgba(9, 14, 21, 0.98)),
    rgba(92, 225, 230, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.primary-ribbon-card {
  border-color: rgba(214, 168, 79, 0.34);
}

.primary-ribbon-card::before {
  background: linear-gradient(180deg, rgba(214, 168, 79, 0.95), rgba(92, 225, 230, 0.28));
}

.app-shell.scope-landing .filter-band,
.app-shell.scope-landing .metrics-grid,
.app-shell.scope-landing .main-grid,
.app-shell.scope-landing .view-section {
  display: none;
}

.scope-landing-page {
  display: none;
}

.app-shell.scope-landing .scope-landing-page {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.country-landing-hero {
  display: grid;
  place-items: center;
  min-height: 520px;
  padding: 72px 34px 42px;
  border: 1px solid rgba(214, 168, 79, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(rgba(214, 168, 79, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 225, 230, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 5% 42%, rgba(214, 168, 79, 0.26), transparent 30%),
    radial-gradient(circle at 92% 28%, rgba(21, 121, 160, 0.32), transparent 28%),
    linear-gradient(135deg, rgba(12, 21, 31, 0.98), rgba(6, 10, 14, 0.98));
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}

.country-landing-hero-content {
  max-width: 980px;
  text-align: center;
}

.country-landing-kicker {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin: 0 0 24px;
  padding: 0 18px;
  border: 1px solid rgba(214, 168, 79, 0.62);
  border-radius: 999px;
  color: #f4d56c;
  background: rgba(9, 14, 11, 0.82);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}

.country-landing-hero h3 {
  max-width: 980px;
  margin: 0 auto 20px;
  color: #fff;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.02;
}

.country-landing-hero h3 span {
  color: #ffd21e;
}

.country-landing-hero p {
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
  color: #b9c5cf;
  font-size: 18px;
  line-height: 1.6;
}

.country-landing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.country-landing-hero > .country-landing-card {
  display: none;
}

.country-landing-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  width: 100%;
  min-height: 220px;
  padding: 18px;
  border: 1px solid rgba(92, 225, 230, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: inherit;
  text-align: center;
  cursor: pointer;
}

.country-landing-card span,
.country-landing-card small {
  color: var(--muted);
  font-weight: 700;
}

.country-landing-card strong {
  color: #fff;
  font-size: 64px;
  line-height: 1;
}

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

.country-landing-metrics {
  max-width: 760px;
  margin: -54px auto 24px;
  position: relative;
  z-index: 2;
}

.country-landing-metrics article,
.country-landing-panel {
  padding: 16px;
  border: 1px solid rgba(214, 168, 79, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(18, 28, 39, 0.84), rgba(10, 16, 23, 0.92)),
    rgba(255, 255, 255, 0.035);
}

.country-landing-metrics strong {
  display: block;
  color: #fff;
  font-size: 32px;
}

.country-landing-metrics span,
.country-landing-panel p {
  color: var(--muted);
}

.country-investment-horizons {
  display: grid;
  gap: 16px;
  margin: 18px 0 4px;
  padding: 22px;
  border: 1px solid rgba(214, 168, 79, 0.24);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(10, 18, 24, 0.96), rgba(7, 11, 16, 0.94)),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.country-section-heading {
  display: grid;
  gap: 6px;
}

.country-section-heading h3 {
  margin: 0;
  color: #fff;
  font-size: 24px;
}

.country-section-heading p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.country-horizon-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 248px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(92, 225, 230, 0.22);
  border-radius: 10px;
  color: #f7fbff;
  background:
    radial-gradient(circle at 90% 8%, rgba(92, 225, 230, 0.14), transparent 32%),
    linear-gradient(145deg, rgba(18, 31, 39, 0.94), rgba(8, 12, 17, 0.98));
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.country-horizon-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(92, 225, 230, 0.96), rgba(34, 199, 153, 0.3));
}

.country-horizon-card:hover,
.country-horizon-card:focus-visible {
  border-color: rgba(92, 225, 230, 0.72);
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

.horizon-icon {
  color: #ffd21e;
  font-size: 22px;
  line-height: 1;
}

.horizon-title {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.country-horizon-card strong {
  color: #fff;
  font-size: 38px;
  line-height: 1;
}

.country-horizon-card em {
  color: #8ff6e0;
  font-style: normal;
  font-weight: 900;
}

.country-horizon-card small {
  color: #c8d3dc;
  line-height: 1.42;
}

.horizon-preview {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(170, 190, 210, 0.16);
  color: rgba(169, 184, 197, 0.96);
  font-size: 12px;
  line-height: 1.4;
}

.country-horizon-card.horizon-quick::before {
  background: linear-gradient(180deg, #ffd21e, rgba(34, 199, 153, 0.45));
}

.country-horizon-card.horizon-near::before {
  background: linear-gradient(180deg, #5ce1e6, rgba(85, 167, 255, 0.45));
}

.country-horizon-card.horizon-strategic::before {
  background: linear-gradient(180deg, #9f8cff, rgba(214, 168, 79, 0.45));
}

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

.country-landing-panel h4 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 18px;
  line-height: 1.3;
}

.country-story-section {
  display: grid;
  gap: 16px;
  margin: 28px auto 0;
  padding: 32px 0;
  border-top: 1px solid rgba(214, 168, 79, 0.14);
}

.country-story-section.centered {
  max-width: 900px;
  text-align: center;
}

.country-story-section h3 {
  margin: 0;
  color: #f7fbff;
  font-size: 28px;
}

.country-story-section h4 {
  margin: 8px 0 0;
  color: #f7fbff;
  font-size: 21px;
}

.country-story-section p {
  max-width: 940px;
  margin: 0;
  color: #b9c5cf;
  font-size: 15px;
  line-height: 1.58;
}

.country-story-section.centered p {
  margin-left: auto;
  margin-right: auto;
}

.country-benefit-grid,
.country-engine-grid,
.country-about-grid {
  display: grid;
  gap: 14px;
}

.country-benefit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.country-engine-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.country-about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
}

.country-benefit-grid article,
.country-engine-grid article,
.country-about-grid article {
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(214, 168, 79, 0.28);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(17, 28, 29, 0.72), rgba(8, 13, 17, 0.86)),
    rgba(255, 255, 255, 0.028);
}

.country-benefit-grid span,
.country-engine-grid span,
.country-about-grid span {
  display: block;
  margin-bottom: 12px;
  color: #ffd21e;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.country-benefit-grid strong,
.country-engine-grid strong,
.country-about-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #f7fbff;
}

.country-benefit-grid p,
.country-engine-grid p,
.country-about-grid p {
  color: #aeb8c1;
  font-size: 13px;
}

.country-data-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.country-data-chip-row span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid rgba(214, 168, 79, 0.32);
  border-radius: 999px;
  color: #dde8f2;
  background: rgba(255, 210, 30, 0.045);
}

.country-resource-matrix {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(170, 190, 210, 0.18);
  border-radius: 8px;
  background: rgba(10, 16, 23, 0.92);
}

select,
input,
.primary-action,
.secondary-action {
  padding: 0 14px;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(7, 11, 16, 0.88);
  color: var(--ink);
}

input::placeholder {
  color: rgba(145, 160, 173, 0.74);
}

.primary-action {
  background: linear-gradient(135deg, #17a77f, #21c7a6);
  color: #03100d;
  font-weight: 700;
  border-color: rgba(92, 225, 230, 0.28);
}

.secondary-action {
  background: rgba(255, 255, 255, 0.06);
  color: #f4f8fb;
  font-weight: 700;
}

.secondary-action:hover,
.table-action:hover,
.map-tool:hover {
  border-color: rgba(92, 225, 230, 0.44);
  background: rgba(92, 225, 230, 0.1);
}

.report-link {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.report-link:hover {
  text-decoration: underline;
}

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

.metric,
.map-panel,
.detail-panel,
.view-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--glow);
}

.metric {
  padding: 14px 15px;
  background:
    linear-gradient(180deg, rgba(27, 40, 55, 0.96), rgba(13, 20, 29, 0.96));
  position: relative;
}

.metric::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 30px;
  color: #fff;
}

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

.detail-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(360px, 1.22fr);
  gap: 16px 24px;
  align-items: start;
}

.detail-panel .panel-header,
.detail-panel .evidence-stack {
  grid-column: 1 / -1;
}

.map-panel,
.detail-panel,
.view-section {
  padding: 16px;
}

.map-panel {
  background:
    linear-gradient(180deg, rgba(14, 22, 32, 0.96), rgba(8, 12, 18, 0.96)),
    #0b1119;
}

.detail-panel {
  background: linear-gradient(180deg, rgba(18, 28, 39, 0.96), rgba(10, 15, 22, 0.96));
}

.map-panel,
.detail-panel,
.view-section,
.activity-panel,
.workflow-card,
.metric {
  position: relative;
}

.map-panel::before,
.detail-panel::before,
.view-section::before,
.activity-panel::before,
.workflow-card::before,
.metric::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border-top: 1px solid rgba(92, 225, 230, 0.2);
}

.panel-header {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.panel-header h3 {
  margin-bottom: 0;
}

.map-tools {
  gap: 8px;
}

.map-tool {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  cursor: pointer;
}

.map-tool.active {
  background: rgba(92, 225, 230, 0.14);
  color: #fff;
  border-color: rgba(92, 225, 230, 0.44);
}

.legend {
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 50%;
}

.gold {
  background: var(--gold);
}

.known {
  background: #5b65d4;
}

.prospect {
  background: #19988b;
}

.mixed {
  background: #7c6dff;
}

.indexed {
  background: #34394f;
}

.cobalt {
  background: var(--blue);
}

.lithium {
  background: #607d3b;
}

.rare {
  background: #7d5ba6;
}

.diamond {
  background: #59a8c7;
}

.critical,
.copper,
.uranium {
  background: #7d5ba6;
}

.energy,
.oil,
.gas {
  background: #2f3d49;
}

.bio,
.water,
.fisheries,
.agriculture {
  background: #19745c;
}

.bauxite,
.iron,
.phosphate,
.potash {
  background: #9b6b3d;
}

.world-map {
  position: relative;
  min-height: clamp(780px, 76vh, 1040px);
  overflow: hidden;
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 46%, rgba(40, 46, 74, 0.46), transparent 44%),
    linear-gradient(180deg, #111722 0%, #0b0f16 58%, #070a0f 100%);
  border: 1px solid rgba(92, 225, 230, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 18px 50px rgba(0, 0, 0, 0.3);
}

.leaflet-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #111318;
}

.world-map.gis-active .leaflet-container {
  background: #111318;
  font-family: inherit;
  cursor: crosshair;
}

.world-map.gis-active .tile-map,
.world-map.gis-active .continent-focus-overlay,
.world-map.gis-active .country-layer,
.world-map.gis-active .marker-layer,
.world-map.gis-active .label-layer,
.world-map.gis-active .concession-layer,
.world-map.gis-active .risk-layer {
  display: none;
}

.world-map.svg-gis-active .tile-map {
  display: none;
}

.world-map.svg-gis-active .leaflet-map {
  display: none;
}

.world-map.svg-gis-active .leaflet-control-container,
.world-map.svg-gis-active .map-zoom-controls {
  display: none;
}

.world-map.gis-active .leaflet-map {
  z-index: 2;
}

.world-map.gis-active .leaflet-pane,
.world-map.gis-active .leaflet-top,
.world-map.gis-active .leaflet-bottom {
  z-index: 3;
}

.world-map.gis-active .leaflet-overlay-pane {
  mix-blend-mode: screen;
}

.world-map.gis-active .leaflet-control-zoom {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.world-map.gis-active .leaflet-control-zoom a {
  color: #f8fafc;
  background: rgba(11, 14, 20, 0.9);
  border-color: rgba(255, 255, 255, 0.16);
}

.world-map.gis-active .leaflet-tile {
  filter: saturate(0.84) contrast(1.08) brightness(0.78);
}

.world-map.gis-active.basemap-street .leaflet-tile {
  filter: saturate(0.82) contrast(1.04) brightness(0.58);
}

.world-map.gis-active.basemap-satellite .leaflet-tile,
.world-map.gis-active.basemap-terrain .leaflet-tile {
  filter: saturate(1.06) contrast(1.08) brightness(0.72);
}

.orbis-map-tooltip {
  border: 0;
  border-radius: 4px;
  color: #111827;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  font-size: 13px;
  font-weight: 700;
}

.orbis-map-popup .leaflet-popup-content-wrapper,
.orbis-map-popup .leaflet-popup-tip {
  color: #e6ebf0;
  background: rgba(8, 13, 20, 0.96);
  border: 1px solid rgba(32, 230, 255, 0.42);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.46);
}

.orbis-map-popup .leaflet-popup-content {
  margin: 12px 14px;
  min-width: 180px;
  font-size: 13px;
  line-height: 1.45;
}

.popup-action {
  margin-top: 10px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(32, 230, 255, 0.52);
  border-radius: 7px;
  color: #08111a;
  background: #2ce4cf;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.orbis-map-tooltip::before {
  display: none;
}

.orbis-country-label {
  width: auto !important;
  height: auto !important;
  border: 0;
  background: transparent;
}

.orbis-country-label button {
  min-width: 34px;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid rgba(231, 228, 255, 0.28);
  border-radius: 999px;
  color: rgba(245, 243, 255, 0.84);
  background: rgba(13, 16, 24, 0.82);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.world-map.country-scope .orbis-country-label button,
.world-map.continent-scope .orbis-country-label button {
  min-width: 44px;
  min-height: 24px;
  padding: 4px 9px;
  font-size: 11px;
}

.orbis-country-label.loaded button {
  border-color: rgba(32, 241, 255, 0.66);
  color: #fff;
  background: rgba(70, 61, 160, 0.72);
}

.orbis-country-label button:hover,
.orbis-country-label button:focus-visible {
  border-color: #20e6ff;
  color: #111827;
  background: rgba(255, 255, 255, 0.96);
  outline: none;
}

.svg-country-map {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

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

.svg-country,
.svg-country-name,
.svg-resource-point {
  pointer-events: auto;
}

.svg-country {
  fill: rgba(44, 50, 70, 0.64);
  stroke: rgba(5, 8, 13, 0.96);
  stroke-width: 0.72;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition:
    fill 0.15s ease,
    stroke 0.15s ease,
    stroke-width 0.15s ease;
}

.svg-country.loaded {
  fill: rgba(93, 100, 173, 0.82);
}

.svg-country.atlas-known-discovered {
  fill: rgba(92, 104, 210, 0.84);
}

.svg-country.atlas-new-prospect {
  fill: rgba(20, 139, 123, 0.8);
}

.svg-country.atlas-known-and-new {
  fill: rgba(109, 92, 216, 0.9);
}

.svg-country.atlas-indexed-source-routed {
  fill: rgba(37, 43, 59, 0.7);
}

.svg-country.selected,
.svg-country:hover,
.svg-country:focus-visible {
  fill: rgba(126, 118, 246, 0.94);
  stroke: #22f0ff;
  stroke-width: 2.2;
  outline: none;
}

.svg-country-name {
  fill: rgba(246, 244, 255, 0.28);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0;
  text-anchor: middle;
  dominant-baseline: middle;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.66);
  stroke-width: 3px;
  cursor: pointer;
  user-select: none;
}

.svg-country-name.major {
  fill: rgba(246, 244, 255, 0.52);
}

.svg-country-name.world-label {
  fill: rgba(245, 243, 255, 0.5);
  font-size: 7px;
  stroke-width: 3.4px;
}

.svg-country-name.loaded {
  fill: rgba(255, 255, 255, 0.9);
  font-size: 9px;
}

.svg-country-name.atlas-label-new-prospect {
  fill: rgba(158, 255, 236, 0.9);
}

.svg-country-name.atlas-label-known-and-new {
  fill: rgba(235, 231, 255, 0.96);
}

.continent-scope .svg-country-name,
.country-scope .svg-country-name {
  fill: rgba(255, 255, 255, 0.78);
  font-size: 9px;
}

.continent-scope .svg-country-name.loaded,
.country-scope .svg-country-name.loaded {
  fill: rgba(255, 255, 255, 0.96);
  font-size: 10px;
}

.svg-resource-point {
  stroke: #fff;
  stroke-width: 2;
  cursor: pointer;
}

.svg-resource-point.gold {
  fill: #c38a1f;
}

.svg-resource-point.diamond {
  fill: #59a8c7;
}

.svg-resource-point.critical,
.svg-resource-point.rare,
.svg-resource-point.lithium,
.svg-resource-point.cobalt {
  fill: #7d5ba6;
}

.svg-resource-point.selected {
  stroke: #22f0ff;
  stroke-width: 3;
}

.svg-resource-point.location-focus {
  filter: drop-shadow(0 0 10px rgba(34, 240, 255, 0.9));
}

.svg-location-ring {
  fill: none;
  stroke: rgba(34, 240, 255, 0.92);
  stroke-width: 2.4;
  stroke-dasharray: 6 5;
  pointer-events: none;
}

.tile-map {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100%, 430px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(var(--map-scale, 1));
  transform-origin: var(--map-origin, 50% 50%);
  filter: saturate(0.72) contrast(0.95) brightness(0.72);
  transition:
    transform 0.2s ease,
    transform-origin 0.2s ease,
    filter 0.2s ease;
}

.world-map.continent-scope .tile-map,
.world-map.country-scope .tile-map {
  filter: saturate(0.7) contrast(0.98) brightness(0.66);
}

.world-map.continent-scope {
  background: #0b0d10;
}

.tile-grid,
.concession-layer,
.risk-layer,
.country-layer,
.marker-layer,
.label-layer {
  position: absolute;
  inset: 0;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
}

.tile-grid img {
  display: block;
  width: 100%;
  height: 100%;
}

.concession-layer,
.risk-layer,
.country-layer,
.marker-layer,
.label-layer {
  z-index: 4;
}

.concession-layer,
.risk-layer,
.label-layer {
  pointer-events: none;
}

.country-layer {
  z-index: 5;
}

.map-hud {
  position: absolute;
  left: 16px;
  top: 16px;
  max-width: 260px;
  padding: 8px 10px;
  border: 1px solid rgba(120, 112, 214, 0.5);
  border-radius: 7px;
  background: rgba(8, 13, 20, 0.86);
  backdrop-filter: blur(8px);
  z-index: 5;
}

.map-hud span {
  display: block;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
}

.map-hud strong {
  display: block;
  margin-top: 2px;
  color: rgba(241, 245, 249, 0.94);
  font-size: 12px;
  line-height: 1.22;
}

.continent-panel {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: min(820px, calc(100% - 32px));
  pointer-events: auto;
}

.continent-chip {
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(145, 137, 232, 0.42);
  border-radius: 999px;
  color: rgba(248, 250, 252, 0.86);
  background: rgba(12, 15, 22, 0.68);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.continent-chip.active,
.continent-chip:hover,
.continent-chip:focus-visible {
  border-color: rgba(24, 216, 255, 0.9);
  color: #fff;
  background: rgba(76, 68, 166, 0.96);
  outline: none;
}

.map-zoom-controls {
  display: none;
  position: absolute;
  left: 16px;
  top: 148px;
  z-index: 9;
  display: grid;
  border: 1px solid rgba(125, 116, 225, 0.36);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
}

@media (max-width: 980px) {
  .detail-panel {
    grid-template-columns: 1fr;
  }
}

.map-zoom-controls button {
  width: 32px;
  height: 31px;
  border: 0;
  border-bottom: 1px solid rgba(125, 116, 225, 0.24);
  color: rgba(241, 245, 249, 0.94);
  background: rgba(12, 15, 20, 0.9);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.map-zoom-controls button:last-child {
  border-bottom: 0;
}

.map-zoom-controls button:hover,
.map-zoom-controls button:focus-visible {
  background: rgba(43, 37, 112, 0.94);
  color: #fff;
  outline: none;
}

.map-layer-control {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: grid;
  gap: 8px;
  width: min(220px, calc(100% - 32px));
  padding: 12px;
  border: 1px solid rgba(214, 168, 79, 0.56);
  border-radius: 9px;
  background: rgba(5, 12, 11, 0.88);
  color: rgba(244, 248, 251, 0.94);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
}

.map-control-title {
  color: rgba(214, 168, 79, 0.78);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.basemap-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.basemap-option {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(214, 168, 79, 0.42);
  border-radius: 7px;
  color: rgba(245, 247, 252, 0.9);
  background: rgba(16, 19, 25, 0.86);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.basemap-option.active,
.basemap-option:hover,
.basemap-option:focus-visible {
  border-color: rgba(255, 210, 30, 0.96);
  color: #05100d;
  background: #ffd21e;
  outline: none;
}

.map-layer-control label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(241, 245, 249, 0.9);
  font-size: 12px;
  line-height: 1.25;
}

.map-layer-control input {
  width: 14px;
  height: 14px;
  min-height: 14px;
  accent-color: #22f0ff;
}

.map-location-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 10px 0 12px;
}

.map-location-actions .primary-action,
.map-location-actions .secondary-action {
  width: 100%;
}

.world-map.basemap-satellite {
  background:
    radial-gradient(circle at 45% 42%, rgba(70, 106, 85, 0.42), transparent 40%),
    radial-gradient(circle at 68% 62%, rgba(84, 73, 45, 0.34), transparent 34%),
    linear-gradient(180deg, #111b18 0%, #0a1114 54%, #05080b 100%);
}

.world-map.basemap-street {
  background:
    linear-gradient(rgba(120, 140, 160, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 140, 160, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #131922 0%, #0c1118 58%, #070a0f 100%);
  background-size: 34px 34px, 34px 34px, auto;
}

.world-map.basemap-terrain {
  background:
    radial-gradient(circle at 35% 45%, rgba(93, 86, 51, 0.42), transparent 42%),
    radial-gradient(circle at 62% 50%, rgba(44, 88, 70, 0.34), transparent 38%),
    linear-gradient(180deg, #151a14 0%, #0b1110 58%, #070a0f 100%);
}

.world-map.basemap-satellite .svg-country {
  fill: rgba(64, 93, 76, 0.72);
}

.world-map.basemap-street .svg-country {
  fill: rgba(78, 84, 118, 0.72);
}

.world-map.basemap-terrain .svg-country {
  fill: rgba(82, 90, 58, 0.74);
}

.world-map:not(.overlay-regions) .svg-country {
  fill: rgba(44, 50, 70, 0.18);
  stroke: rgba(246, 244, 255, 0.2);
}

.world-map.overlay-districts .svg-country-map::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0.2;
  background:
    linear-gradient(24deg, transparent 0 48%, rgba(255, 255, 255, 0.42) 49% 50%, transparent 51%),
    linear-gradient(108deg, transparent 0 48%, rgba(255, 255, 255, 0.34) 49% 50%, transparent 51%);
  background-size: 110px 110px, 150px 150px;
}

.world-map.overlay-viirs::before,
.world-map.overlay-activeFires::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}

.world-map.overlay-viirs::before {
  opacity: 0.5;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 21% 39%, rgba(255, 221, 94, 0.5), transparent 1.5%),
    radial-gradient(circle at 48% 35%, rgba(255, 221, 94, 0.46), transparent 1.2%),
    radial-gradient(circle at 54% 46%, rgba(255, 221, 94, 0.55), transparent 1.4%),
    radial-gradient(circle at 69% 43%, rgba(255, 221, 94, 0.52), transparent 1.3%),
    radial-gradient(circle at 78% 55%, rgba(255, 221, 94, 0.45), transparent 1.1%),
    radial-gradient(circle at 87% 70%, rgba(255, 221, 94, 0.42), transparent 1.2%);
}

.world-map.overlay-trueColor .svg-country {
  filter: saturate(1.18) contrast(1.04);
}

.world-map.overlay-activeFires::after {
  opacity: 0.72;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 51% 49%, rgba(255, 82, 44, 0.7), transparent 0.55%),
    radial-gradient(circle at 55% 53%, rgba(255, 137, 44, 0.65), transparent 0.5%),
    radial-gradient(circle at 63% 44%, rgba(255, 82, 44, 0.58), transparent 0.45%),
    radial-gradient(circle at 31% 58%, rgba(255, 137, 44, 0.5), transparent 0.45%);
}

.world-map:not(.overlay-opportunityTargets) .svg-resource-point,
.world-map:not(.overlay-opportunityTargets) .marker,
.world-map:not(.overlay-opportunityTargets) .concession-footprint,
.world-map:not(.overlay-opportunityTargets) .risk-bubble {
  display: none;
}

.continent-focus-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.world-map.continent-scope .continent-focus-overlay {
  opacity: 1;
}

.continent-focus-overlay::before {
  content: "";
  position: absolute;
  background: rgba(93, 84, 181, 0.7);
  border: 1px solid rgba(125, 116, 225, 0.38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.continent-focus-overlay::after {
  content: "";
  position: absolute;
  opacity: 0.24;
  background:
    linear-gradient(26deg, transparent 0 47%, rgba(16, 20, 30, 0.8) 48% 49%, transparent 50%),
    linear-gradient(94deg, transparent 0 47%, rgba(16, 20, 30, 0.75) 48% 49%, transparent 50%),
    linear-gradient(151deg, transparent 0 48%, rgba(16, 20, 30, 0.75) 49% 50%, transparent 51%);
  background-size: 90px 90px, 120px 120px, 150px 150px;
  clip-path: inherit;
}

.continent-focus-overlay[data-continent="africa"]::before,
.continent-focus-overlay[data-continent="africa"]::after {
  left: 28%;
  top: 14%;
  width: 45%;
  height: 76%;
  clip-path: polygon(
    22% 4%,
    39% 1%,
    54% 6%,
    70% 8%,
    82% 17%,
    86% 30%,
    78% 43%,
    86% 55%,
    74% 61%,
    65% 78%,
    56% 96%,
    42% 100%,
    32% 89%,
    27% 72%,
    15% 62%,
    10% 46%,
    2% 37%,
    7% 24%,
    16% 16%
  );
}

.continent-focus-overlay[data-continent="europe"]::before,
.continent-focus-overlay[data-continent="europe"]::after {
  left: 37%;
  top: 15%;
  width: 34%;
  height: 27%;
  clip-path: polygon(3% 42%, 22% 12%, 50% 4%, 78% 13%, 98% 42%, 86% 82%, 55% 94%, 28% 82%);
}

.continent-focus-overlay[data-continent="north-america"]::before,
.continent-focus-overlay[data-continent="north-america"]::after {
  left: 5%;
  top: 14%;
  width: 44%;
  height: 39%;
  clip-path: polygon(5% 28%, 20% 8%, 48% 2%, 78% 13%, 96% 38%, 82% 68%, 60% 83%, 31% 88%, 8% 64%);
}

.continent-focus-overlay[data-continent="south-america"]::before,
.continent-focus-overlay[data-continent="south-america"]::after {
  left: 25%;
  top: 48%;
  width: 25%;
  height: 45%;
  clip-path: polygon(33% 0, 60% 9%, 78% 31%, 61% 58%, 54% 86%, 38% 100%, 26% 78%, 15% 51%, 4% 29%, 15% 9%);
}

.continent-focus-overlay[data-continent="asia"]::before,
.continent-focus-overlay[data-continent="asia"]::after {
  left: 54%;
  top: 13%;
  width: 44%;
  height: 51%;
  clip-path: polygon(2% 24%, 20% 7%, 54% 1%, 88% 16%, 99% 43%, 87% 76%, 55% 96%, 23% 78%, 8% 50%);
}

.continent-focus-overlay[data-continent="oceania"]::before,
.continent-focus-overlay[data-continent="oceania"]::after {
  left: 72%;
  top: 60%;
  width: 25%;
  height: 28%;
  clip-path: polygon(8% 39%, 35% 18%, 73% 24%, 96% 47%, 75% 78%, 37% 86%, 13% 68%);
}

.world-map .legend {
  display: none;
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  width: fit-content;
  max-width: calc(100% - 32px);
  padding: 9px 11px;
  border: 1px solid rgba(125, 116, 225, 0.32);
  border-radius: 8px;
  color: rgba(241, 245, 249, 0.86);
  background: rgba(12, 15, 20, 0.76);
  backdrop-filter: blur(8px);
  z-index: 5;
}

.map-attribution {
  display: none;
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(125, 116, 225, 0.32);
  border-radius: 8px;
  color: rgba(241, 245, 249, 0.78);
  background: rgba(12, 15, 20, 0.78);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.marker {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  z-index: 6;
}

.marker.selected {
  outline: 3px solid rgba(17, 23, 29, 0.35);
}

.country-hotspot {
  position: absolute;
  width: 25px;
  min-width: 25px;
  height: 17px;
  padding: 0 2px;
  border: 1px solid rgba(70, 94, 103, 0.38);
  border-radius: 5px;
  color: #17212b;
  background: rgba(255, 255, 255, 0.72);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 15px;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(17, 23, 29, 0.08);
  cursor: pointer;
  z-index: 2;
}

.world-map.continent-scope .country-hotspot,
.world-map.country-scope .country-hotspot {
  width: 52px;
  min-width: 52px;
  height: 36px;
  padding: 0;
  border-radius: 45% 55% 48% 52%;
  font-size: 0;
  color: transparent;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  z-index: 7;
}

.world-map.continent-scope .country-hotspot::before,
.world-map.country-scope .country-hotspot::before {
  display: none;
}

.world-map.continent-scope .country-hotspot:hover,
.world-map.continent-scope .country-hotspot:focus-visible,
.world-map.country-scope .country-hotspot:hover,
.world-map.country-scope .country-hotspot:focus-visible {
  background: rgba(104, 96, 201, 0.84);
  border-color: #18d8ff;
  box-shadow: 0 0 0 2px rgba(24, 216, 255, 0.22), 0 8px 20px rgba(0, 0, 0, 0.34);
  z-index: 12;
}

.world-map.continent-scope .country-hotspot:hover::before,
.world-map.continent-scope .country-hotspot:focus-visible::before,
.world-map.country-scope .country-hotspot:hover::before,
.world-map.country-scope .country-hotspot:focus-visible::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  display: block;
  width: max-content;
  max-width: 190px;
  padding: 8px 10px;
  border-radius: 4px;
  color: #17212b;
  background: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  transform: translateX(-50%);
  text-shadow: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.world-map.continent-scope .marker,
.world-map.continent-scope .asset-label {
  display: none;
}

.country-hotspot::after {
  content: attr(data-count);
  position: absolute;
  right: -5px;
  top: -7px;
  min-width: 12px;
  height: 12px;
  padding: 0 2px;
  border-radius: 999px;
  color: #fff;
  background: #11171d;
  font-size: 8px;
  line-height: 12px;
  box-shadow: 0 2px 6px rgba(17, 23, 29, 0.22);
}

.country-hotspot[data-count=""]::after {
  display: none;
}

.country-hotspot.region-africa {
  border-color: rgba(31, 126, 104, 0.6);
  background: rgba(232, 247, 241, 0.82);
}

.country-hotspot.region-americas {
  border-color: rgba(35, 106, 168, 0.58);
  background: rgba(232, 242, 252, 0.82);
}

.country-hotspot.region-europe {
  border-color: rgba(119, 88, 166, 0.58);
  background: rgba(242, 236, 249, 0.82);
}

.country-hotspot.region-asia-pacific {
  border-color: rgba(190, 128, 24, 0.62);
  background: rgba(252, 244, 226, 0.84);
}

.country-hotspot.coverage:hover,
.country-hotspot.coverage:focus-visible {
  width: 34px;
  height: 22px;
  line-height: 20px;
  border-color: rgba(17, 23, 29, 0.7);
  background: rgba(255, 255, 255, 0.9);
  z-index: 8;
}

.country-hotspot.loaded {
  width: 31px;
  min-width: 31px;
  height: 21px;
  border: 2px solid rgba(25, 116, 92, 0.8);
  color: #063d31;
  background: rgba(236, 249, 244, 0.88);
  font-size: 9px;
  line-height: 17px;
  box-shadow: 0 5px 18px rgba(17, 23, 29, 0.14);
  z-index: 3;
}

.country-hotspot.selected {
  min-width: 38px;
  height: 30px;
  border-color: rgba(17, 23, 29, 0.9);
  color: #fff;
  background: #11171d;
  font-size: 11px;
  line-height: 26px;
  z-index: 9;
}

.concession-footprint {
  position: absolute;
  border: 2px solid rgba(25, 116, 92, 0.76);
  border-radius: 42% 58% 47% 53%;
  background: rgba(25, 116, 92, 0.14);
  transform: translate(-50%, -50%) rotate(var(--tilt));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.42), 0 8px 28px rgba(17, 23, 29, 0.16);
  cursor: pointer;
  pointer-events: auto;
}

.concession-footprint.selected {
  border-color: rgba(17, 23, 29, 0.86);
  background: rgba(195, 138, 31, 0.22);
}

.risk-bubble {
  position: absolute;
  width: var(--risk-size);
  height: var(--risk-size);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(185, 74, 63, 0.5), rgba(185, 74, 63, 0.08) 62%, transparent 70%);
  border: 1px solid rgba(185, 74, 63, 0.4);
}

.risk-bubble.medium {
  background: radial-gradient(circle, rgba(195, 138, 31, 0.42), rgba(195, 138, 31, 0.08) 62%, transparent 70%);
  border-color: rgba(195, 138, 31, 0.42);
}

.risk-bubble.low {
  background: radial-gradient(circle, rgba(34, 102, 168, 0.32), rgba(34, 102, 168, 0.06) 62%, transparent 70%);
  border-color: rgba(34, 102, 168, 0.3);
}

.asset-label {
  position: absolute;
  max-width: 150px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 7px;
  color: #17212b;
  background: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  transform: translate(10px, -50%);
  box-shadow: 0 5px 14px rgba(17, 23, 29, 0.12);
  pointer-events: none;
  z-index: 10;
}

.country-summary-panel {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 22, 32, 0.88);
}

.country-summary-panel strong {
  color: #f4f8fb;
}

.country-summary-panel span,
.country-summary-panel small {
  color: var(--muted);
}

.country-summary-panel .table-action {
  width: fit-content;
  margin-top: 6px;
}

.atlas-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0;
}

.atlas-status-row span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid rgba(125, 116, 225, 0.28);
  border-radius: 999px;
  color: rgba(241, 245, 249, 0.86);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
}

.atlas-status-button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(125, 116, 225, 0.34);
  border-radius: 999px;
  color: rgba(241, 245, 249, 0.9);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.atlas-status-button:hover,
.atlas-status-button:focus-visible {
  border-color: rgba(92, 225, 230, 0.68);
  background: rgba(0, 242, 209, 0.1);
  box-shadow: 0 0 0 1px rgba(92, 225, 230, 0.18);
  outline: none;
  transform: translateY(-1px);
}

.atlas-status-row b {
  color: #f7fbff;
}

.resource-brief-section {
  display: grid;
  gap: 6px;
  padding-top: 5px;
}

.resource-brief-section > b {
  color: rgba(216, 229, 241, 0.82);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.resource-brief-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.resource-brief-link {
  display: inline-grid;
  gap: 2px;
  max-width: 260px;
  min-height: 34px;
  align-content: center;
  padding: 7px 10px;
  border: 1px solid rgba(0, 230, 210, 0.28);
  border-radius: 8px;
  color: #eaf7ff;
  background: rgba(0, 230, 210, 0.07);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  text-align: left;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    transform 0.16s ease;
}

.resource-brief-link.compact {
  min-height: 28px;
  max-width: none;
  border-radius: 999px;
  color: #bdfcf1;
}

.resource-brief-link b {
  color: #78f0cf;
}

.resource-brief-link span {
  color: rgba(226, 236, 246, 0.82);
}

.resource-brief-link:hover,
.resource-brief-link:focus-visible {
  border-color: rgba(92, 225, 230, 0.76);
  background: rgba(0, 230, 210, 0.13);
  outline: none;
  transform: translateY(-1px);
}

.resource-brief-empty {
  color: var(--muted);
  font-size: 12px;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(34, 199, 153, 0.12);
  color: #78f0cf;
  font-size: 12px;
  font-weight: 700;
}

button.status-pill {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.explainable-pill,
.metric-drilldown-button {
  transition:
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.explainable-pill:hover,
.explainable-pill:focus-visible {
  background: rgba(92, 225, 230, 0.18);
  color: #dffcff;
  box-shadow: 0 0 0 1px rgba(92, 225, 230, 0.32);
  outline: none;
  transform: translateY(-1px);
}

.metric-drilldown-button {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-align: left;
}

.metric-drilldown-button:hover,
.metric-drilldown-button:focus-visible {
  color: var(--accent);
  outline: none;
}

.gauge-row {
  gap: 16px;
  margin-bottom: 14px;
}

.gauge {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--green) calc(var(--value) * 1%), rgba(230, 236, 239, 0.12) 0);
}

.gauge span {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0d151f;
  font-weight: 800;
}

.asset-facts {
  display: grid;
  gap: 9px;
  margin: 0;
}

.evidence-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.evidence-stack .eyebrow {
  flex-basis: 100%;
  margin-bottom: 0;
}

.evidence-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
}

.asset-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.view-section {
  margin-top: 14px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table tbody tr {
  transition:
    background 0.14s ease,
    box-shadow 0.14s ease;
}

.data-table tbody tr:hover {
  background: rgba(92, 225, 230, 0.045);
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.table-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.table-sort-button:hover,
.table-sort-button.active {
  color: var(--accent);
}

.sort-indicator {
  min-width: 28px;
  color: var(--accent);
  font-size: 10px;
  text-transform: uppercase;
}

.table-link-button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.table-link-button strong {
  color: var(--text);
}

.table-link-button span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.table-link-button:hover,
.table-link-button:focus-visible {
  color: var(--accent);
  outline: none;
}

.cell-drilldown-button {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cell-drilldown-button strong {
  color: #f7fbff;
  line-height: 1.25;
}

.cell-drilldown-button small {
  color: var(--muted);
  line-height: 1.25;
}

.cell-drilldown-button:hover strong,
.cell-drilldown-button:focus-visible strong {
  color: var(--accent);
}

.cell-drilldown-button:hover,
.cell-drilldown-button:focus-visible {
  outline: none;
}

.pill-cell-button {
  display: inline-flex;
  width: auto;
  min-width: 108px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(34, 199, 153, 0.12);
  color: #78f0cf;
}

.compact-link-button {
  display: inline-flex;
  width: auto;
  min-width: 54px;
  justify-content: flex-start;
  color: var(--accent);
  font-weight: 900;
}

.explainability-row {
  cursor: pointer;
}

.explainability-row.is-expanded {
  background: rgba(92, 225, 230, 0.075);
  box-shadow: inset 3px 0 0 rgba(92, 225, 230, 0.72);
}

.explainability-detail-row td {
  padding: 0 10px 14px;
  background: rgba(7, 12, 18, 0.86);
}

.explainability-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(92, 225, 230, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(19, 33, 45, 0.9), rgba(8, 13, 20, 0.95)),
    rgba(8, 13, 20, 0.9);
}

.explainability-detail-grid article {
  min-height: 112px;
  padding: 12px;
  border: 1px solid rgba(170, 190, 210, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.explainability-detail-grid span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.explainability-detail-grid p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.table-action {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  padding: 8px 10px;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.table-action:hover,
.table-action:focus-visible {
  border-color: rgba(92, 225, 230, 0.5);
  background: rgba(92, 225, 230, 0.12);
  color: #fff;
  outline: none;
}

.source-candidate-table td:nth-child(3) {
  max-width: 420px;
  color: #d7e2ea;
}

.source-candidate-table a.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  text-decoration: none;
}

.table-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-left: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #78f0cf;
  font-weight: 700;
  text-decoration: none;
}

.table-link:hover {
  background: rgba(34, 199, 153, 0.1);
}

.activity-panel {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(19, 29, 41, 0.94), rgba(10, 15, 22, 0.94)),
    var(--panel);
}

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

.activity-list article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.activity-list strong,
.activity-list span {
  display: block;
}

.activity-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.source-groups {
  display: grid;
  gap: 14px;
}

.source-group {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.button-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.button-stack.inline {
  align-items: center;
  justify-content: flex-end;
  margin-top: 0;
}

.admin-user-table td {
  vertical-align: top;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  min-width: 280px;
}

.compact-permission-grid {
  grid-template-columns: minmax(180px, 1fr);
  min-width: 220px;
}

.permission-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.82rem;
}

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

.evidence-upload-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  margin: 12px 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.evidence-upload-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.evidence-upload-form input,
.evidence-upload-form select,
.evidence-upload-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(7, 11, 16, 0.82);
  color: var(--ink);
  font: inherit;
  padding: 9px 10px;
}

.evidence-upload-form textarea {
  resize: vertical;
  min-height: 110px;
  text-transform: none;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
}

.evidence-upload-form .wide,
.evidence-upload-form .notice {
  grid-column: 1 / -1;
}

.evidence-upload-form .checkbox-row {
  align-content: end;
  grid-template-columns: auto 1fr;
  align-items: center;
  text-transform: none;
}

.evidence-upload-form .checkbox-row input {
  width: auto;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline article {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: var(--panel);
}

.timeline strong,
.timeline span,
.timeline code {
  display: block;
}

.timeline span,
.timeline p {
  color: var(--muted);
}

.timeline p {
  margin: 8px 0;
}

.timeline code {
  width: fit-content;
  max-width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  overflow-wrap: anywhere;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
}

.split-grid > section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.primary-table-action {
  background: rgba(92, 225, 230, 0.14);
  color: #fff;
  border-color: rgba(92, 225, 230, 0.4);
}

.empty-state {
  padding: 28px;
  text-align: center;
}

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

.assessment-header h3 {
  margin-bottom: 6px;
}

.assessment-header p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.assessment-score {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: #eef5f1;
  color: var(--green);
  flex: 0 0 auto;
}

.assessment-score span {
  font-size: 30px;
  font-weight: 800;
}

.assessment-score strong {
  font-size: 12px;
  text-transform: uppercase;
}

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

.assessment-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel-2);
}

.assessment-card p {
  color: var(--muted);
  line-height: 1.45;
}

.location-intelligence-card {
  display: grid;
  gap: 12px;
  border-color: rgba(92, 225, 230, 0.32);
  background:
    radial-gradient(circle at 82% 18%, rgba(92, 225, 230, 0.1), transparent 32%),
    linear-gradient(145deg, rgba(19, 33, 46, 0.98), rgba(8, 13, 20, 0.98));
}

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

.location-fact {
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 12px;
  border: 1px solid rgba(92, 225, 230, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.location-fact span {
  color: var(--muted);
  font-size: 12px;
}

.location-fact strong {
  color: #f3fbff;
  line-height: 1.25;
}

.local-map-preview {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(214, 168, 79, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(92, 225, 230, 0.18), transparent 8%),
    linear-gradient(rgba(92, 225, 230, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 225, 230, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 18% 22%, rgba(214, 168, 79, 0.14), transparent 26%),
    linear-gradient(145deg, rgba(5, 10, 16, 0.98), rgba(14, 26, 36, 0.98));
  background-size: auto, 36px 36px, 36px 36px, auto, auto;
}

.local-map-preview strong,
.local-map-preview small {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 760px;
}

.local-map-preview strong {
  color: #f6fbff;
  font-size: 18px;
}

.local-map-preview small {
  margin-top: 8px;
  color: #b8c5d2;
  line-height: 1.45;
}

.local-map-crosshair,
.local-map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.local-map-crosshair {
  width: 112px;
  height: 112px;
  border: 1px solid rgba(92, 225, 230, 0.28);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(92, 225, 230, 0.035),
    0 0 34px rgba(92, 225, 230, 0.2);
}

.local-map-crosshair::before,
.local-map-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(92, 225, 230, 0.42);
}

.local-map-crosshair::before {
  left: 50%;
  top: -24px;
  width: 1px;
  height: 160px;
}

.local-map-crosshair::after {
  left: -24px;
  top: 50%;
  width: 160px;
  height: 1px;
}

.local-map-pin {
  width: 18px;
  height: 18px;
  border: 3px solid #071018;
  border-radius: 50%;
  background: #d6a84f;
  box-shadow: 0 0 0 4px rgba(214, 168, 79, 0.22), 0 0 26px rgba(214, 168, 79, 0.62);
}

.span-2 {
  grid-column: span 2;
}

.big-number {
  display: block;
  font-size: 34px;
  margin-bottom: 4px;
}

.mini-divider {
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}

.assessment-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.assessment-facts div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.assessment-facts dt {
  margin-bottom: 4px;
  font-size: 12px;
}

.assessment-facts dd {
  text-align: left;
}

.compact-facts {
  grid-template-columns: 1fr;
}

.diligence-list,
.evidence-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.diligence-list span,
.evidence-list span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 12px;
}

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

.workflow-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(21, 32, 45, 0.96), rgba(9, 14, 21, 0.96)),
    linear-gradient(90deg, rgba(92, 225, 230, 0.06), rgba(214, 168, 79, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.workflow-card strong {
  display: block;
  margin-bottom: 8px;
}

.pipeline-status-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(92, 225, 230, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(22, 47, 58, 0.78), rgba(9, 14, 22, 0.94)),
    rgba(8, 13, 20, 0.92);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.pipeline-status-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  color: var(--muted);
}

.pipeline-status-summary strong {
  color: var(--text);
}

.pipeline-stage-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 10px;
}

.pipeline-stage {
  display: grid;
  gap: 9px;
  min-height: 148px;
  padding: 12px;
  border: 1px solid rgba(170, 190, 210, 0.16);
  border-radius: 8px;
  background: rgba(9, 15, 23, 0.76);
}

.pipeline-stage.running,
.pipeline-stage.background {
  border-color: rgba(92, 225, 230, 0.46);
  box-shadow: 0 0 0 1px rgba(92, 225, 230, 0.12), 0 14px 32px rgba(17, 217, 209, 0.08);
}

.pipeline-stage-heading,
.pipeline-stage-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.pipeline-stage-heading span,
.pipeline-stage-meta small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.pipeline-stage p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.pipeline-meter {
  height: 9px;
  overflow: hidden;
  border: 1px solid rgba(92, 225, 230, 0.18);
  border-radius: 999px;
  background: rgba(230, 236, 239, 0.08);
}

.pipeline-meter span {
  display: block;
  height: 100%;
  min-width: 6px;
  border-radius: inherit;
  background: linear-gradient(90deg, #19d9d1, #54f0a4);
}

.admin-launch-card {
  border-color: rgba(84, 240, 164, 0.28);
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(230, 236, 239, 0.14);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: var(--bar);
  background: var(--green);
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.9fr));
  gap: 12px;
}

.report-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel-2);
}

.report-sections {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.report-sections section {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.report-sections strong {
  display: block;
  margin-bottom: 4px;
}

.report-sections p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.notice {
  margin-bottom: 0;
  padding: 12px;
  border-left: 4px solid var(--gold);
  background: rgba(214, 168, 79, 0.12);
  color: #f0d491;
}

@media (max-width: 1040px) {
  .login-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    width: min(760px, calc(100vw - 32px));
    padding-top: 110px;
  }

  .login-brand-lockup {
    left: 0;
  }

  .login-panel {
    max-width: 560px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .metrics-grid,
  .main-grid,
  .workflow-grid,
  .report-grid,
  .assessment-grid,
  .location-intelligence-grid,
  .filter-band,
  .scope-entry-panel,
  .pipeline-stage-grid,
  .explainability-detail-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .scope-actions {
    justify-content: flex-start;
  }

  .span-2 {
    grid-column: auto;
  }

  .country-landing-hero,
  .country-landing-metrics,
  .country-landing-grid,
  .country-horizon-grid,
  .country-benefit-grid,
  .country-engine-grid,
  .country-about-grid {
    grid-template-columns: 1fr;
  }

  .country-landing-hero h3 {
    font-size: 34px;
  }

  .country-story-section {
    padding: 24px 0;
  }
}

@media (max-width: 640px) {
  .login-panel,
  .workspace,
  .sidebar {
    padding: 16px;
  }

  .login-shell {
    width: calc(100vw - 24px);
    padding: 88px 0 24px;
  }

  .login-brand-lockup strong {
    font-size: 20px;
    letter-spacing: 4px;
  }

  h1 {
    font-size: 42px;
  }

  .login-proof-row span {
    width: 100%;
  }

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