.mode-control {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-right: 24px;
}

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

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  border-color: var(--green);
}

.brand:focus-visible {
  outline: none;
}

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

.language-beta-button {
  align-items: center;
  background: #111917;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--green);
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  padding: 0;
  width: 36px;
}

.language-beta-button svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
  width: 19px;
}

.language-beta-button:hover,
.language-beta-button:focus-visible {
  background: #18231f;
  border-color: var(--green);
  color: #91d5b7;
  outline: none;
}

.disclaimer-overlay {
  align-items: center;
  background: #050807dc;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 1000;
}

.disclaimer-overlay[hidden] {
  display: none;
}

.disclaimer-dialog {
  background: #131a18;
  border: 1px solid #405249;
  border-radius: 16px;
  box-shadow: 0 28px 90px #000c;
  max-width: 680px;
  padding: 30px;
  width: 100%;
}

.disclaimer-dialog h2 {
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  margin: 7px 0 16px;
}

.disclaimer-dialog p {
  color: #c8d2ce;
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

.disclaimer-dialog .disclaimer-cookie {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  margin-top: 20px;
  padding-top: 16px;
}

.disclaimer-cookie strong {
  color: var(--text);
}

.disclaimer-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.disclaimer-actions button,
.disclaimer-actions a {
  border-radius: 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 11px 18px;
  text-align: center;
  text-decoration: none;
}

.disclaimer-accept {
  background: var(--green);
  border: 1px solid var(--green);
  color: var(--ink);
}

.disclaimer-leave {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}

.language-beta-dialog {
  max-width: 610px;
}

.language-beta-dialog .disclaimer-leave {
  font-family: inherit;
}

.disclaimer-accept:hover,
.disclaimer-accept:focus-visible {
  background: #91d5b7;
  outline: none;
}

.disclaimer-leave:hover,
.disclaimer-leave:focus-visible {
  border-color: var(--muted);
  color: var(--text);
  outline: none;
}

body.disclaimer-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .disclaimer-dialog {
    padding: 22px;
  }

  .disclaimer-actions {
    display: grid;
  }
}

.mode-control > span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mode-switch {
  background: #0b100e;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  padding: 3px;
}

.mode-button {
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  gap: 1px;
  min-width: 100px;
  padding: 6px 12px;
  text-align: left;
}

.mode-button strong {
  color: inherit;
  font-size: 12px;
  font-weight: 650;
}

.mode-button small {
  font-size: 9px;
  opacity: .72;
}

.mode-button.active {
  background: #1c2b25;
  box-shadow: 0 0 0 1px #476253 inset;
  color: var(--text);
}

.mode-description {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  margin: -7px 0 13px;
}

.color-scheme-select {
  background: #0d1412;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  padding: 9px 10px;
  width: 100%;
}

.color-scheme-select:focus-visible {
  border-color: var(--green);
  outline: 1px solid var(--green);
  outline-offset: 1px;
}

.map-legend {
  max-width: 250px;
  min-width: 190px;
}

#mapView {
  position: relative;
}

.map-world-button {
  align-items: center;
  background: #111917e8;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font-size: 10px;
  gap: 7px;
  left: 14px;
  padding: 8px 10px;
  position: absolute;
  top: 14px;
  z-index: 2;
}

.map-world-button span {
  color: var(--green);
  font-size: 16px;
  line-height: 1;
}

.map-world-button:hover,
.map-world-button:focus-visible {
  border-color: var(--green);
  outline: none;
}

.map-legend .map-legend-items {
  display: grid;
  gap: 5px;
  max-height: 260px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-color: #4f826b transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.map-legend .map-legend-item {
  display: grid;
  gap: 7px;
  grid-template-columns: 12px minmax(0, 1fr);
}

.map-legend-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-legend-item .dot {
  border: 1px solid #edf3ef;
}

.map-legend .cluster-legend {
  border-top: 1px solid var(--line);
  margin-top: 2px;
  padding-top: 6px;
}

.hidden {
  display: none !important;
}

body[data-interface-mode="investor"] .record-card .kind {
  color: var(--gold);
}

.filter-tree-parent {
  align-items: center;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
}

.filter-tree-parent .check-row {
  min-width: 0;
}

.filter-expand-placeholder {
  display: block;
  height: 1px;
  width: 24px;
}

.filter-expand {
  align-items: center;
  align-self: stretch;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  justify-content: center;
  padding: 0;
  position: relative;
}

.filter-expand > span {
  font-size: 18px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform .16s ease;
}

.filter-expand[aria-expanded="true"] > span {
  transform: rotate(90deg);
}

.filter-expand:hover,
.filter-expand:focus-visible {
  color: var(--green);
  outline: none;
}

.filter-expand > b {
  background: var(--green);
  border-radius: 99px;
  color: var(--ink);
  font-size: 8px;
  font-weight: 750;
  line-height: 14px;
  min-width: 14px;
  padding: 0 3px;
  position: absolute;
  right: -1px;
  top: -1px;
}

.filter-children {
  border-left: 1px solid #33463e;
  display: grid;
  margin: 2px 0 7px 11px;
  max-height: 300px;
  overflow-y: auto;
  padding: 3px 0 3px 16px;
  scrollbar-color: #4f826b transparent;
  scrollbar-width: thin;
}

.filter-child-row {
  align-items: center;
  color: #b8c4bf;
  cursor: pointer;
  display: grid;
  font-size: 11px;
  gap: 7px;
  grid-template-columns: 16px minmax(0, 1fr);
  line-height: 1.3;
  padding: 5px 4px;
}

.filter-child-note {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
  margin: 7px 0 4px 25px;
}

.filter-child-row:hover {
  color: var(--text);
}

.filter-child-row input {
  accent-color: var(--green);
  margin: 0;
}

.detail-close {
  align-items: center;
  background: #111a17;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  float: right;
  font-size: 19px;
  height: 32px;
  justify-content: center;
  line-height: 1;
  margin: -2px 0 10px 16px;
  width: 32px;
}

.detail-close:hover,
.detail-close:focus-visible {
  border-color: var(--green);
  color: var(--text);
  outline: none;
}

.detail-panel-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.detail-panel-heading .detail-close {
  flex: none;
  float: none;
  margin: 0;
}

.detail-toponymy {
  align-items: center;
  background: #18211e;
  border: 1px solid #33453e;
  border-radius: 8px;
  color: #c8d2ce;
  display: flex;
  font-size: 11px;
  gap: 7px;
  line-height: 1.35;
  margin-top: 12px;
  padding: 8px 10px;
}

.detail-toponymy span {
  color: var(--green);
  flex: none;
  font-size: 14px;
}

.detail-section {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 15px;
}

.detail-section h3 {
  color: var(--text);
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  letter-spacing: .08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.detail-section h3 span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.shell {
  grid-template-columns: 300px minmax(420px, 1fr);
  transition: grid-template-columns .18s ease;
}

.shell.detail-open {
  grid-template-columns: 300px minmax(420px, 1fr) 380px;
}

.shell.filters-collapsed {
  grid-template-columns: 48px minmax(420px, 1fr);
}

.shell.filters-collapsed.detail-open {
  grid-template-columns: 48px minmax(420px, 1fr) 380px;
}

.panel-actions {
  display: flex;
  gap: 6px;
}

.filters-expanded-content {
  display: block;
}

.filters-expand-rail {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  justify-content: flex-start;
  padding: 16px 0;
  width: 100%;
}

.filters-expand-rail span {
  color: var(--green);
  font-size: 24px;
  line-height: 1;
}

.filters-expand-rail strong {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .06em;
  transform: rotate(180deg);
  writing-mode: vertical-rl;
}

.filters-expand-rail:hover,
.filters-expand-rail:focus-visible {
  background: #18211e;
  color: var(--text);
  outline: none;
}

.filters-panel.collapsed {
  overflow: hidden;
  padding: 0;
}

.filters-panel.collapsed .filters-expanded-content {
  display: none;
}

.filters-panel.collapsed .filters-expand-rail {
  display: flex;
}

.detail-panel {
  scrollbar-color: #426b59 transparent;
  scrollbar-width: thin;
}

.detail-panel:not(.open) {
  display: none;
}

.timeline-root {
  align-items: center;
  color: #75877f;
  display: flex;
  font-size: 9px;
  gap: 7px;
  margin: -2px 0 13px 19px;
}

.timeline-root i {
  color: var(--green);
  font-style: normal;
}

.timeline-list {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-list li {
  display: grid;
  gap: 10px;
  grid-template-columns: 18px minmax(0, 1fr);
  min-height: 58px;
  position: relative;
}

.timeline-list li::before {
  background: #365247;
  bottom: -1px;
  content: "";
  left: 8px;
  position: absolute;
  top: 14px;
  width: 1px;
}

.timeline-list li:last-child::before {
  display: none;
}

.timeline-list li > i {
  background: #17261f;
  border: 2px solid var(--green);
  border-radius: 50%;
  height: 11px;
  margin: 4px 0 0 3px;
  position: relative;
  width: 11px;
  z-index: 1;
}

.timeline-list li > div {
  display: grid;
  gap: 2px;
  padding-bottom: 13px;
}

.timeline-list time {
  color: var(--gold);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.timeline-list strong {
  color: #dce6e1;
  font-size: 11px;
  line-height: 1.35;
}

.timeline-list small {
  color: var(--muted);
  font-size: 9px;
}

.technical-details {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 12px;
}

.technical-details summary {
  color: #71817b;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.technical-details[open] summary {
  color: var(--green);
}

.technical-details .detail-fields {
  margin-bottom: 0;
  margin-top: 12px;
}

.detail-source-link {
  border-bottom: 1px solid color-mix(in srgb, var(--green) 45%, transparent);
  color: var(--green);
  display: inline-flex;
  font-size: 11px;
  font-weight: 650;
  gap: 4px;
  padding-bottom: 2px;
  text-decoration: none;
}

.detail-source-link:hover {
  border-bottom-color: var(--green);
}

@media (max-width: 1180px) {
  .shell,
  .shell.detail-open {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .shell.filters-collapsed,
  .shell.filters-collapsed.detail-open {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .detail-panel {
    bottom: 0;
    box-shadow: -12px 0 35px #0008;
    position: absolute;
    right: 0;
    top: 64px;
    width: 380px;
    z-index: 5;
  }

}

.material-list,
.deposit-list,
.source-list,
.study-list,
.metric-list {
  display: grid;
  gap: 7px;
}

.material-item,
.source-item,
.study-item,
.metric-item {
  background: #0e1513;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  gap: 4px;
  padding: 9px 10px;
}

.material-item strong,
.source-item strong,
.study-item strong,
.metric-item strong {
  color: #dbe5e0;
  font-size: 11px;
  font-weight: 650;
}

.material-item small,
.source-item small,
.study-item small,
.metric-item small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

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

.material-link {
  cursor: pointer;
  font: inherit;
  padding-right: 72px;
  position: relative;
  text-align: left;
  width: 100%;
}

.material-link i {
  color: var(--green);
  font-size: 9px;
  font-style: normal;
  position: absolute;
  right: 9px;
  top: 9px;
}

.material-link:hover,
.material-link:focus-visible {
  background: var(--panel2);
  border-color: var(--green);
  outline: none;
}

.deposit-link {
  align-items: center;
  background: #0e1513;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}

.deposit-link > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.deposit-link strong {
  color: #dbe5e0;
  font-size: 11px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.deposit-link small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.deposit-link i {
  color: var(--green);
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

.deposit-link:hover,
.deposit-link:focus-visible {
  background: var(--panel2);
  border-color: var(--green);
  outline: none;
}

.source-item a {
  align-items: start;
  color: var(--green);
  display: flex;
  font-size: 11px;
  font-weight: 650;
  gap: 6px;
  justify-content: space-between;
  line-height: 1.35;
  text-decoration: none;
}

.source-item a:hover,
.source-item a:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

.source-availability {
  color: var(--muted);
  font-size: 9px;
}

.source-availability.reachable,
.source-availability.redirected {
  color: var(--green);
}

.source-availability.access_restricted,
.source-availability.transient_error,
.source-availability.timeout,
.source-availability.unchecked {
  color: var(--gold);
}

.source-availability.dead,
.source-availability.dns_error,
.source-availability.tls_error,
.source-availability.network_error,
.source-availability.invalid_url {
  color: var(--red);
}

.study-item p {
  color: #aebbb5;
  font-size: 10px;
  line-height: 1.45;
  margin: 3px 0 0;
}

.study-item .study-economic {
  color: var(--gold);
}

.source-corpus-note {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
  margin: 0;
}

.source-corpus-error {
  color: var(--red);
}

.source-load-more {
  background: #17231f;
  border: 1px solid #3b594c;
  border-radius: 9px;
  color: var(--green);
  cursor: pointer;
  font-size: 10px;
  margin-top: 10px;
  padding: 9px 12px;
  width: 100%;
}

.source-load-more:hover,
.source-load-more:focus-visible {
  border-color: var(--green);
  color: var(--text);
  outline: none;
}

.metric-item span {
  color: var(--green);
  font-size: 11px;
}

#pricesView {
  background: #0b100e;
  height: calc(100% - 48px);
  min-height: 0;
  overflow: hidden;
}

#pricesView.active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.prices-heading {
  align-items: end;
  background: #101714;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 14px 18px;
}

.prices-heading h2 {
  color: var(--text);
  font-size: 15px;
  margin: 3px 0 0;
}

.prices-heading p {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
  margin: 0;
  max-width: 560px;
  text-align: right;
}

.price-table-wrap {
  min-height: 0;
  overflow: auto;
  scrollbar-color: var(--green) #101714;
}

.price-material strong,
.price-material small {
  display: block;
}

.price-material strong {
  color: var(--text);
}

.price-material small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 2px;
}

.price-amount {
  color: var(--gold) !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price-table a {
  color: var(--green);
  text-decoration: none;
}

.price-empty {
  color: var(--muted);
  padding: 36px 18px;
  text-align: center;
}

.price-empty strong {
  color: var(--text);
}

.price-empty p {
  font-size: 10px;
  margin: 7px 0 0;
}

@media (max-width: 850px) {
  .prices-heading {
    align-items: start;
    display: grid;
  }

  .prices-heading p {
    text-align: left;
  }
}

@media (max-width: 850px) {
  .mode-control {
    margin-right: 8px;
  }

  .mode-control > span,
  .mode-button small {
    display: none;
  }

  .mode-button {
    min-width: auto;
    padding: 7px 9px;
  }
}

@media (max-width: 720px) {
  .shell,
  .shell.detail-open,
  .shell.filters-collapsed,
  .shell.filters-collapsed.detail-open {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .filters-panel,
  .shell.filters-collapsed .filters-panel {
    bottom: 0;
    left: 0;
    position: absolute;
    top: 64px;
    transform: none;
    width: min(300px, calc(100vw - 48px));
    z-index: 6;
  }

  .shell.filters-collapsed .filters-panel {
    width: 48px;
  }

  .shell.filters-collapsed .workspace {
    margin-left: 48px;
  }

  .detail-panel {
    max-width: calc(100vw - 48px);
    top: 64px;
    width: 380px;
  }
}
