body {
  --map-toc-panel-border: rgba(143, 198, 181, 0.22);
  --map-toc-panel-bg: linear-gradient(180deg, rgba(4, 22, 27, 0.78) 0%, rgba(9, 45, 49, 0.72) 100%);
  --map-toc-panel-color: #f5fff6;
  --map-toc-ui-font-family: "Museo Sans", var(--font-body, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  --map-toc-ui-font-weight: 900;
  --map-toc-title-font-family: "Museo Sans", var(--font-body, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  --map-toc-title-font-weight: 900;
  --map-toc-meta-font-family: "Museo Sans", var(--font-body, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  --map-toc-meta-font-weight: 300;
  --map-toc-meta-letter-spacing: 0.04em;
  --map-toc-control-border: rgba(151, 213, 185, 0.20);
  --map-toc-control-border-strong: rgba(250, 227, 182, 0.46);
  --map-toc-control-bg: linear-gradient(180deg, rgba(5, 33, 37, 0.62) 0%, rgba(7, 40, 44, 0.52) 100%);
  --map-toc-control-bg-soft: linear-gradient(180deg, rgba(222, 246, 231, 0.10) 0%, rgba(222, 246, 231, 0.04) 100%);
  --map-toc-control-bg-active: linear-gradient(180deg, rgba(238, 211, 163, 0.22) 0%, rgba(238, 211, 163, 0.12) 100%);
  --map-toc-control-bg-hover: rgba(235, 246, 239, 0.14);
  --map-toc-control-color: #f7fff7;
  --map-toc-item-bg: linear-gradient(180deg, rgba(242, 249, 244, 0.08) 0%, rgba(242, 249, 244, 0.05) 100%);
  --map-toc-item-bg-hover: linear-gradient(180deg, rgba(250, 231, 198, 0.18) 0%, rgba(250, 231, 198, 0.10) 100%);
  --map-toc-placeholder: rgba(233, 247, 239, 0.58);
  --map-toc-focus-ring: rgba(247, 223, 177, 0.28);
  --map-toc-scrollbar-track: rgba(7, 31, 34, 0.24);
  --map-toc-scrollbar-thumb: rgba(167, 212, 191, 0.26);
  --map-toc-scrollbar-thumb-hover: rgba(246, 220, 176, 0.34);
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(118% 92% at 14% 8%, rgba(2, 21, 25, 0.96) 0%, rgba(2, 21, 25, 0.00) 58%),
    radial-gradient(96% 78% at 55% 22%, rgba(73, 136, 123, 0.34) 0%, rgba(73, 136, 123, 0.00) 62%),
    radial-gradient(82% 66% at 82% 34%, rgba(144, 193, 171, 0.26) 0%, rgba(144, 193, 171, 0.00) 64%),
    radial-gradient(74% 58% at 84% 78%, rgba(255, 220, 180, 0.34) 0%, rgba(255, 220, 180, 0.00) 63%),
    radial-gradient(88% 66% at 24% 86%, rgba(177, 120, 147, 0.22) 0%, rgba(177, 120, 147, 0.00) 60%),
    linear-gradient(180deg, #02161a 0%, #083439 26%, #2d6a62 48%, #78a892 68%, #e7c79e 86%, #c98a88 100%);
  background-attachment: fixed;
}

.toc-panel {
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(240, 255, 247, 0.08);
}

#toc-search {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border-color: rgba(171, 225, 198, 0.22);
  background:
    linear-gradient(180deg, rgba(10, 41, 45, 0.78) 0%, rgba(7, 32, 36, 0.58) 100%);
  box-shadow:
    inset 0 1px 0 rgba(243, 255, 248, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  letter-spacing: 0.01em;
}

#toc-search:hover {
  border-color: rgba(191, 231, 208, 0.28);
}

#toc-search:focus {
  border-color: rgba(247, 223, 177, 0.52);
  background:
    linear-gradient(180deg, rgba(13, 48, 53, 0.82) 0%, rgba(9, 36, 40, 0.64) 100%);
}

.toc-mode-btn,
.toc-cat-btn,
.toc-item,
.toc-toggle {
  backdrop-filter: blur(8px);
}

.toc-mode-btn {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.toc-mode-btn.is-active {
  color: #fff8ee;
  box-shadow: inset 0 1px 0 rgba(255, 245, 226, 0.24);
}

.toc-cat-btn {
  border-radius: 12px;
}

.toc-item {
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(245, 255, 250, 0.05);
}

.toc-item-art {
  opacity: 0.14;
  filter: saturate(0.72) brightness(1.12) blur(0.2px);
}

.toc-item:hover .toc-item-art {
  opacity: 0.18;
}

.toc-item small {
  color: rgba(232, 244, 237, 0.76);
}
