/* Golos Text, SIL Open Font License: assets/fonts/OFL.txt. Served locally. */
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/golos-text-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/golos-text-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: dark;
  --font-ui: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ink: #e2ded3;
  --muted: #b8b2a6;
  --dim: #aaa397;
  --gold: #c7a96b;
  --gold-bright: #e1c687;
  --panel: #151512;
  --panel-soft: #1b1a16;
  --line: rgba(211, 190, 144, 0.16);
  --sidebar-width: 400px;
  --ease: cubic-bezier(.2, .75, .2, 1);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #0c0c0a;
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
.map-viewport:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  width: 100%;
  height: 100%;
}

.sidebar {
  position: relative;
  z-index: 40;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: auto;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255,255,255,.018), transparent 28%),
    radial-gradient(circle at 0 0, rgba(171,137,73,.08), transparent 32%),
    #141411;
  box-shadow: 18px 0 48px rgba(0, 0, 0, .45);
}

.sidebar::after {
  position: absolute;
  inset: 0 0 0 auto;
  width: 5px;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(208, 183, 128, .08));
}

.brand {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 25px 25px 20px;
  border-bottom: 1px solid var(--line);
}

.brand-rune {
  display: grid;
  width: 46px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(210, 184, 124, .34);
  color: var(--gold-bright);
  background: linear-gradient(145deg, rgba(202,169,99,.14), rgba(0,0,0,.2));
  box-shadow: inset 0 0 20px rgba(225, 198, 135, .06);
  font-size: 27px;
  clip-path: polygon(50% 0, 100% 14%, 100% 83%, 50% 100%, 0 83%, 0 14%);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.brand h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: .22em;
  line-height: 1;
}

.brand-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 11px;
}

.sidebar-close,
.menu-button {
  display: none !important;
}

.icon-button,
.tool-button {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(15, 15, 13, .78);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, transform .2s;
}

.icon-button:hover,
.tool-button:hover {
  border-color: rgba(220, 193, 133, .5);
  color: var(--gold-bright);
  background: rgba(39, 36, 29, .9);
}

.search-section {
  padding: 18px 22px 13px;
}

.search-box {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(208, 186, 137, .18);
  background: rgba(7, 7, 6, .42);
  transition: border-color .2s, box-shadow .2s;
}

.search-box:focus-within {
  border-color: rgba(220, 193, 133, .55);
  box-shadow: 0 0 0 3px rgba(199, 169, 107, .06);
}

.search-box svg,
.menu-button svg,
.tool-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.search-box svg {
  color: var(--gold);
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 16px;
}

.search-box input::placeholder {
  color: #777166;
}

kbd,
.key-hint {
  display: inline-flex;
  min-width: 22px;
  height: 21px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 1px solid rgba(213, 196, 157, .2);
  border-radius: 3px;
  color: #8e887d;
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 0 -1px rgba(0,0,0,.25);
  font-family: var(--font-ui);
  font-size: 10px;
}

.search-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: var(--dim);
  font-family: var(--font-ui);
  font-size: 10px;
}

.snapshot-pill {
  color: #918066;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 11px;
}

.quick-action {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(208, 186, 137, .16);
  color: #a9a194;
  background: rgba(255, 255, 255, .018);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 12px;
  transition: border-color .18s, color .18s, background .18s;
}

.quick-action span {
  color: var(--gold);
  font-size: 15px;
  line-height: 1;
}

.quick-action:hover,
.quick-action.accent:hover {
  border-color: rgba(220, 193, 133, .52);
  color: #eee5d3;
  background: rgba(143, 111, 53, .13);
}

.quick-action.accent {
  border-color: rgba(210, 177, 108, .3);
  color: #d5c6aa;
  background: rgba(143, 111, 53, .08);
}

.panel-section {
  padding: 16px 22px 5px;
  border-top: 1px solid rgba(211, 190, 144, .09);
}

.section-heading {
  display: flex;
  min-height: 31px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-heading.compact {
  margin-bottom: 8px;
}

.section-heading h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .04em;
}

.text-button {
  padding: 5px 0;
  border: 0;
  color: var(--gold);
  background: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 10px;
}

.text-button:hover {
  color: var(--gold-bright);
}

.layer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.layer-button {
  position: relative;
  min-height: 45px;
  overflow: hidden;
  padding: 8px 6px;
  border: 1px solid rgba(208, 186, 137, .13);
  color: #989185;
  background: rgba(7, 7, 6, .35);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: .02em;
  transition: all .2s;
}

.layer-button::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  background: radial-gradient(circle at 50% 130%, rgba(207,174,106,.22), transparent 65%);
  transition: opacity .2s;
}

.layer-button:hover {
  border-color: rgba(208, 186, 137, .34);
  color: #c9c1b2;
}

.layer-button.active {
  border-color: rgba(220, 192, 132, .55);
  color: var(--gold-bright);
  background: rgba(89, 73, 44, .18);
  box-shadow: inset 0 -2px var(--gold);
}

.layer-button.active::before {
  opacity: 1;
}

.filter-section {
  flex: 0 0 auto;
}

.category-list {
  display: grid;
  max-height: 184px;
  grid-template-columns: 1fr 1fr;
  gap: 4px 7px;
  overflow: auto;
  padding-right: 5px;
  scrollbar-color: #5f5541 transparent;
  scrollbar-width: thin;
}

.category-button {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-height: 36px;
  padding: 4px 6px;
  border: 1px solid transparent;
  color: #a9a296;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 11px;
  text-align: left;
  transition: background .16s, color .16s, opacity .16s;
}

.category-button:hover {
  color: #e3dbcb;
  background: rgba(255, 255, 255, .035);
}

.category-button.off {
  opacity: .42;
  filter: grayscale(.8);
}

.category-glyph {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid var(--category-color);
  border-radius: 50%;
  color: var(--category-color);
  font-size: 9px;
}

.category-count {
  color: #69645b;
  font-size: 9px;
}

.results-section {
  display: flex;
  min-height: 110px;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
  padding: 15px 22px 0;
  border-top: 1px solid rgba(211, 190, 144, .09);
}

.results-section .section-heading span {
  color: var(--dim);
  font-family: var(--font-ui);
  font-size: 10px;
}

.result-list {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  scrollbar-color: #5f5541 transparent;
  scrollbar-width: thin;
}

.result-item {
  display: grid;
  width: 100%;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 8px 7px;
  border: 0;
  border-bottom: 1px solid rgba(211, 190, 144, .07);
  color: #beb7aa;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.result-item:hover,
.result-item.active {
  color: var(--ink);
  background: linear-gradient(90deg, rgba(198,165,99,.1), transparent);
}

.result-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--category-color) 70%, transparent);
  border-radius: 50%;
  color: var(--category-color);
  font-size: 11px;
}

.result-copy {
  min-width: 0;
}

.result-copy strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-copy small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #746f66;
  font-family: var(--font-ui);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-arrow {
  color: #625d54;
  font-size: 14px;
}

.empty-results {
  margin: 15px 0;
  color: #7b756b;
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 22px 14px;
  border-top: 1px solid rgba(211, 190, 144, .09);
  color: #676259;
  font-family: var(--font-ui);
  font-size: 9px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #76965d;
  box-shadow: 0 0 8px rgba(118,150,93,.55);
}

.map-shell {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #090906;
}

.topbar {
  position: absolute;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  height: 69px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 19px 0 26px;
  border-bottom: 1px solid rgba(218,194,143,.14);
  background: linear-gradient(180deg, rgba(12,12,10,.94), rgba(12,12,10,.73));
  box-shadow: 0 10px 35px rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
}

.map-title {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.map-title > span {
  overflow: hidden;
  font-size: 17px;
  letter-spacing: .11em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.map-title small {
  margin-top: 3px;
  color: var(--dim);
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: .06em;
}

.toolbar {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  align-items: center;
}

.tool-button {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: 17px;
}

.tool-button.fit-button {
  display: inline-flex;
  width: auto;
  gap: 7px;
  padding: 0 10px;
  font-size: 10px;
}

.zoom-readout {
  min-width: 48px;
  color: #9d968a;
  font-family: var(--font-ui);
  font-size: 10px;
  text-align: center;
}

.map-viewport {
  position: absolute;
  inset: 69px 0 0;
  overflow: hidden;
  outline: 0;
  background:
    radial-gradient(circle at 50% 40%, #252219 0%, #11100d 58%, #080806 100%);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.map-viewport.dragging {
  cursor: grabbing;
}

.map-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 4096px;
  height: 4096px;
  overflow: hidden;
  transform-origin: 0 0;
  will-change: transform;
  box-shadow: 0 0 120px 35px rgba(0,0,0,.92);
}

.map-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 4096px;
  height: 4096px;
  pointer-events: none;
  object-fit: fill;
}

.map-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,6,3,.16), transparent 3%, transparent 97%, rgba(7,6,3,.18)),
    linear-gradient(0deg, rgba(7,6,3,.17), transparent 3%, transparent 97%, rgba(7,6,3,.16));
}

.markers-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.map-marker {
  --marker-color: #cfb06f;
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.marker-visual {
  position: absolute;
  bottom: 0;
  left: 6px;
  display: block;
  width: 32px;
  height: 40px;
  color: #17140f;
  pointer-events: none;
}

.marker-shape {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: var(--marker-color);
  stroke: #30281a;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.marker-glyph {
  position: absolute;
  top: 4px;
  left: 0;
  width: 100%;
  font: 15px/24px "Segoe UI Symbol", "Apple Symbols", sans-serif;
  text-align: center;
}

.map-marker:hover,
.map-marker:focus-visible,
.map-marker.selected {
  z-index: 15;
}

.map-marker:hover .marker-shape,
.map-marker:focus-visible .marker-shape,
.map-marker.selected .marker-shape {
  stroke: #f9e4ad;
  stroke-width: 2.5;
}

.map-marker.coordinate-target .marker-visual {
  left: 4px;
  width: 36px;
  height: 44px;
  color: #fff0ca;
}

.coordinate-target .marker-shape {
  fill: #592c1d;
  stroke: #f4d99c;
  stroke-width: 2;
}

.coordinate-target .marker-glyph {
  top: 6px;
  font-size: 18px;
}

.marker-label {
  position: absolute;
  bottom: 49px;
  left: 50%;
  max-width: 190px;
  padding: 5px 7px;
  overflow: hidden;
  border: 1px solid rgba(218,197,153,.22);
  color: #eee7d8;
  background: rgba(18,17,14,.9);
  box-shadow: 0 4px 14px rgba(0,0,0,.42);
  font-family: var(--font-ui);
  font-size: 10px;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  text-overflow: ellipsis;
  transform: translateX(-50%);
  transition: opacity .14s;
  white-space: nowrap;
}

.map-marker:hover .marker-label,
.map-marker:focus-visible .marker-label,
.map-marker.selected .marker-label {
  opacity: 1;
}

.loading-panel {
  position: absolute;
  z-index: 25;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  color: #bdae91;
  background: radial-gradient(circle, #242117, #0b0b09 65%);
  transition: opacity .45s, visibility .45s;
}

.loading-panel.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-panel strong {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .08em;
}

.loading-rune {
  color: var(--gold);
  font-size: 42px;
  animation: rune-glow 1.25s ease-in-out infinite;
}

@keyframes rune-glow {
  50% { opacity: .45; text-shadow: 0 0 18px var(--gold); }
}

.coordinate-readout,
.interaction-hint {
  position: absolute;
  z-index: 18;
  bottom: 16px;
  padding: 7px 10px;
  border: 1px solid rgba(221,203,166,.13);
  color: #999185;
  background: rgba(11,11,9,.72);
  backdrop-filter: blur(8px);
  font-family: var(--font-ui);
  font-size: 9px;
  pointer-events: none;
}

.coordinate-readout {
  right: 18px;
  min-width: 112px;
  text-align: center;
}

.interaction-hint {
  left: 18px;
  margin: 0;
  transition: opacity .4s;
}

.interaction-hint.faded {
  opacity: 0;
}

.compass {
  position: absolute;
  z-index: 18;
  top: 17px;
  left: 50%;
  width: 30px;
  height: 43px;
  color: rgba(239,226,197,.76);
  font-size: 11px;
  text-align: center;
  pointer-events: none;
  transform: translateX(-50%);
  text-shadow: 0 2px 4px #000;
}

.compass i {
  display: block;
  width: 0;
  height: 0;
  margin: 5px auto 0;
  border-right: 5px solid transparent;
  border-bottom: 13px solid rgba(214,187,126,.7);
  border-left: 5px solid transparent;
}

.place-card {
  position: absolute;
  z-index: 35;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: min(440px, calc(100% - 44px));
  max-height: calc(100% - 90px);
  overflow: auto;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 15px;
  padding: 21px 44px 21px 20px;
  border: 1px solid rgba(218,193,139,.3);
  background:
    radial-gradient(circle at 10% 10%, rgba(178,139,71,.1), transparent 42%),
    rgba(20,19,16,.95);
  box-shadow: 0 18px 50px rgba(0,0,0,.54), inset 0 1px rgba(255,255,255,.025);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity .24s var(--ease), transform .24s var(--ease);
  backdrop-filter: blur(13px);
}

.place-card.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.place-card::before,
.place-card::after {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--gold);
  content: "";
  opacity: .6;
}

.place-card::before {
  top: 5px;
  left: 5px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.place-card::after {
  right: 5px;
  bottom: 5px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.place-card-close,
.dialog-close {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 28px;
  height: 28px;
  border: 0;
  color: #938c80;
  background: none;
  cursor: pointer;
  font-size: 20px;
}

.place-symbol {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--place-color, var(--gold));
  border-radius: 50%;
  color: var(--place-color, var(--gold));
  background: rgba(255,255,255,.025);
  box-shadow: inset 0 0 18px color-mix(in srgb, var(--place-color, var(--gold)) 12%, transparent);
  font-size: 21px;
}

.place-category {
  margin: 1px 0 5px;
  color: var(--place-color, var(--gold));
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.place-copy h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.place-coordinates {
  margin-top: 7px;
  color: #827b70;
  font-family: var(--font-ui);
  font-size: 10px;
}

.place-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(211,184,125,.42);
  background: rgba(113,89,45,.25);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 12px;
  transition: all .2s;
}

.secondary-button {
  border-color: rgba(211,198,171,.18);
  color: #b9b1a3;
  background: rgba(255,255,255,.025);
}

.danger-button {
  border-color: rgba(190, 86, 70, .28);
  color: #c9978e;
  background: rgba(126, 45, 36, .08);
}

.primary-button:hover,
.secondary-button:hover,
.danger-button:hover {
  border-color: var(--gold-bright);
  color: #fff5dd;
  background: rgba(128,99,47,.35);
}

.danger-button:hover {
  border-color: #ce7465;
  background: rgba(126, 45, 36, .25);
}

.toast {
  position: fixed;
  z-index: 100;
  bottom: 25px;
  left: calc(var(--sidebar-width) + (100vw - var(--sidebar-width)) / 2);
  max-width: min(360px, calc(100vw - 40px));
  padding: 10px 16px;
  border: 1px solid rgba(212,189,137,.32);
  color: #e9dfca;
  background: rgba(19,18,15,.94);
  box-shadow: 0 12px 36px rgba(0,0,0,.44);
  font-family: var(--font-ui);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s, transform .2s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.help-dialog {
  width: min(540px, calc(100% - 34px));
  padding: 29px;
  border: 1px solid rgba(217,192,139,.34);
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0, rgba(184,147,76,.12), transparent 40%),
    #171612;
  box-shadow: 0 25px 80px rgba(0,0,0,.7);
}

.help-dialog::backdrop {
  background: rgba(3,3,2,.72);
  backdrop-filter: blur(4px);
}

.help-dialog h2 {
  margin: 0 0 22px;
  font-size: 23px;
  font-weight: 400;
}

.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px 18px;
}

.help-grid > div {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #aaa296;
  font-family: var(--font-ui);
  font-size: 11px;
}

.help-grid kbd {
  min-width: 66px;
  flex: 0 0 auto;
}

.help-note {
  margin: 23px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: #746e64;
  font-family: var(--font-ui);
  font-size: 10px;
  line-height: 1.55;
}

.marker-dialog {
  width: min(510px, calc(100% - 28px));
  padding: 29px;
  border: 1px solid rgba(217,192,139,.38);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0, rgba(184,147,76,.13), transparent 42%),
    #171612;
  box-shadow: 0 28px 85px rgba(0,0,0,.76);
}

.marker-dialog::backdrop {
  background: rgba(3,3,2,.75);
  backdrop-filter: blur(4px);
}

.marker-dialog h2 {
  margin: 0 0 8px;
  font-size: 23px;
  font-weight: 400;
}

.dialog-intro {
  margin: 0 0 20px;
  color: #888175;
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 1.5;
}

.field-label {
  display: block;
  margin: 0 0 6px;
  color: #a49c8f;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.field-control {
  width: 100%;
  height: 39px;
  margin: 0 0 15px;
  padding: 0 11px;
  border: 1px solid rgba(211,190,147,.2);
  border-radius: 0;
  outline: 0;
  color: #e9e0ce;
  background: rgba(5,5,4,.42);
  font-family: var(--font-ui);
  font-size: 16px;
}

select.field-control {
  color-scheme: dark;
}

.field-control:focus {
  border-color: rgba(222,194,133,.6);
  box-shadow: 0 0 0 3px rgba(199,169,107,.06);
}

.coordinate-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.marker-style-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: end;
  margin-top: 1px;
}

.marker-style-row p {
  margin: 0 0 5px;
  color: #777167;
  font-family: var(--font-ui);
  font-size: 9px;
  line-height: 1.45;
}

.color-field input {
  width: 64px;
  height: 34px;
  padding: 3px;
  border: 1px solid rgba(211,190,147,.2);
  background: rgba(5,5,4,.42);
  cursor: pointer;
}

.form-error {
  min-height: 17px;
  margin: 9px 0 4px;
  color: #d08373;
  font-family: var(--font-ui);
  font-size: 10px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.context-tip {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #6f695f;
  font-family: var(--font-ui);
  font-size: 9px;
  text-align: center;
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(390px, calc(100vw - 34px));
    transform: translateX(-102%);
    transition: transform .28s var(--ease);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close,
  .menu-button {
    display: inline-grid !important;
  }

  .sidebar-close {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    font-size: 21px;
  }

  .menu-button {
    width: 34px;
    height: 34px;
    margin-right: 2px;
  }

  .topbar {
    justify-content: flex-start;
  }

  .map-title {
    flex: 1;
  }

  .toast {
    left: 50%;
  }
}

@media (max-width: 590px) {
  .topbar {
    height: 60px;
    padding: 0 10px;
  }

  .map-viewport {
    inset: 60px 0 0;
  }

  .map-title > span {
    font-size: 13px;
  }

  .map-title small,
  .zoom-readout,
  .fit-button span,
  .toolbar .fit-button {
    display: none;
  }

  .toolbar {
    gap: 4px;
  }

  .tool-button {
    width: 31px;
    height: 31px;
  }

  .place-card {
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
    grid-template-columns: 42px 1fr;
    padding: 17px 37px 17px 16px;
  }

  .place-symbol {
    width: 40px;
    height: 40px;
  }

  .place-copy h2 {
    font-size: 17px;
  }

  .interaction-hint,
  .coordinate-readout {
    display: none;
  }

  .help-grid {
    grid-template-columns: 1fr;
  }

  .coordinate-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.search-scope {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font: 12px var(--font-ui);
}
.search-scope select {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  border: 1px solid var(--line);
  padding: 4px;
  color: var(--ink);
  background: var(--panel);
}
.filter-actions { display: flex; gap: 12px; }
.filter-actions button { min-height: 36px; font-size: 11px; }
button:disabled { opacity: .45; cursor: default; }
.share-field {
  display: block;
  margin-top: 12px;
  color: #b8b0a1;
  font: 12px var(--font-ui);
}
.share-field input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 7px 9px;
  margin-top: 5px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  background: #10100d;
  font-size: 16px;
}
#shareLink { font-size: 12px; }
.brand, .search-section, .panel-section, .sidebar-footer { flex-shrink: 0; }
.brand { order: 0; }
.search-section { order: 1; }
.panel-section { order: 3; }
.filter-section { order: 4; }
.results-section { order: 5; min-height: 150px; }
.sidebar-footer { order: 6; }
.sidebar.searching .results-section { order: 2; min-height: 210px; }
.sidebar.searching .category-list { max-height: 110px; }
.result-copy small, .place-coordinates, .search-meta, .sidebar-footer, .map-title small { color: #aaa294; }
.category-count { color: #b6ae9f; }
.map-marker:focus-visible .marker-visual { outline: 3px solid white; outline-offset: 4px; }
.sidebar-backdrop {
  position: fixed;
  z-index: 39;
  inset: 0;
  border: 0;
  background: #0009;
}
.help-dialog, .marker-dialog { max-height: calc(100dvh - 24px); overflow-y: auto; }
.help-grid { grid-template-columns: 1fr; }
.help-grid kbd { min-width: 130px; }
.place-card-close, .dialog-close { width: 36px; height: 36px; }

@media (max-height: 800px) {
  .brand { padding-top: 14px; padding-bottom: 12px; }
  .search-section { padding-top: 12px; }
  .category-list { max-height: 125px; }
  .panel-section { padding-top: 10px; }
  .sidebar-footer { padding-top: 9px; padding-bottom: 9px; }
}
@media (max-width: 900px) {
  .app-shell { height: 100dvh; }
  .sidebar { padding-bottom: env(safe-area-inset-bottom); }
  .sidebar:not(.open) { visibility: hidden; }
  .sidebar-close, .menu-button, .tool-button { min-width: 40px; min-height: 40px; }
  .category-button, .result-item { min-height: 44px; }
  .result-copy strong { font-size: 14px; }
  .result-copy small { font-size: 11px; }
  .place-card { bottom: max(10px, env(safe-area-inset-bottom)); }
  .interaction-hint { display: block; max-width: calc(100% - 36px); line-height: 1.5; }
}
@media (max-width: 590px) {
  .topbar { gap: 7px; }
  .map-title > span { font-size: 12px; letter-spacing: .02em; }
  .toolbar .fit-button { display: inline-flex; width: 40px; padding: 0; justify-content: center; }
  .toolbar .fit-button span { display: none; }
  .place-card { grid-template-columns: minmax(0, 1fr); padding: 15px 40px 15px 15px; }
  .place-symbol { display: none; }
  .place-actions { gap: 6px; }
  .place-category { letter-spacing: .07em; }
  .share-field { margin-top: 9px; }
  .help-dialog, .marker-dialog { padding: 22px; }
}
@media (max-width: 360px) {
  .toolbar { gap: 2px; }
  .tool-button, .toolbar .fit-button { min-width: 36px; width: 36px; }
  .search-section, .panel-section, .results-section { padding-left: 14px; padding-right: 14px; }
}
/* Readable type sizes and quieter emphasis across the guide. */
.brand h1 { font-family: Georgia, "Times New Roman", serif; font-size: 26px; }
.brand-subtitle { font-size: 12px; line-height: 1.5; }
.eyebrow { font-size: 11px; letter-spacing: .13em; }
.section-heading { gap: 8px; flex-wrap: wrap; }
.section-heading h2 { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.layer-button { font-size: 13px; font-weight: 500; letter-spacing: 0; min-height: 44px; }
.category-button { min-height: 40px; font-size: 13px; line-height: 1.4; gap: 6px; }
.category-button.off { opacity: 1; color: #aaa397; }
.category-button.off .category-glyph { opacity: .5; filter: grayscale(1); }
.category-button.off .category-count { color: #aaa397; }
.category-count, .search-meta, .sidebar-footer, .map-title small, .zoom-readout { font-size: 12px; }
.category-glyph { font-size: 11px; }
.text-button, .filter-actions button, .quick-action { font-size: 13px; }
.filter-actions { gap: 10px; }
.result-item { padding: 10px 7px; min-height: 54px; }
.result-copy strong { font-size: 15px; font-weight: 500; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
.result-copy small { font-size: 12px; line-height: 1.5; }
.result-arrow { color: var(--muted); }
.map-title > span { font-size: 18px; font-weight: 500; letter-spacing: .03em; text-transform: none; }
.marker-label { font: 500 13px/1.4 var(--font-ui); max-width: 260px; padding: 6px 9px; }
.place-copy h2 { font-size: 22px; font-weight: 600; line-height: 1.3; }
.place-category { font-size: 12px; font-weight: 500; letter-spacing: .03em; text-transform: none; }
.place-coordinates { font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.primary-button, .secondary-button { min-height: 42px; font-size: 13px; line-height: 1.4; padding: 8px 12px; }
.share-field, .field-label { font-size: 13px; line-height: 1.5; letter-spacing: 0; text-transform: none; }
.search-scope { font-size: 13px; }
.search-scope select { font-size: 14px; }
.search-box input::placeholder { color: #aaa397; }
.tool-button.fit-button { font-size: 12px; }
.coordinate-readout, .interaction-hint { font-size: 12px; color: #d2cbbd; line-height: 1.5; }
.empty-results, .help-note, .dialog-intro, .context-tip, .form-error, .help-grid > div {
  font-size: 14px; line-height: 1.6; color: var(--muted);
}
.form-error { color: #f0ab9a; }
kbd, .key-hint { font-size: 11px; color: var(--muted); }
.help-dialog h2, .marker-dialog h2 { font-size: 24px; font-weight: 600; line-height: 1.35; }
.toast { width: max-content; font-size: 14px; line-height: 1.5; text-align: center; }
.sidebar-footer { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; line-height: 1.5; }
.sidebar-footer .status-dot { display: inline-block; margin-right: 5px; }
.sidebar-footer .text-button { padding: 5px 0; }
.pin-controls { margin-top: 5px; }
.pin-control-actions { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0; }
.pin-control-actions .primary-button { min-width: 80px; }
.pin-controls .text-button { text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.pin-controls p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.coordinate-target, .coordinate-target .marker-visual { cursor: grab; touch-action: none; }
.pin-dragging, .pin-dragging .coordinate-target .marker-visual { cursor: grabbing; }
.pin-dragging .coordinate-target .marker-shape { stroke: #fff6d9; stroke-width: 3; }
.clipboard-helper { position: fixed; left: -10000px; top: 0; }
.developer-contact { padding: 18px 0; border-top: 1px solid var(--line); }
.developer-contact h3 { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.5; }
.developer-contact h3 span { display: inline-block; color: var(--muted); font-size: 14px; }
.developer-contact .contact-label { margin: 0 0 5px; font-size: 12px; }
.developer-contact p { margin: 8px 0 12px; color: var(--muted); }
.developer-contact strong { color: var(--ink); font-weight: 500; user-select: all; }
.developer-contact a { color: var(--ink); text-decoration-color: #c7a96b80; text-underline-offset: 4px; }
.developer-contact a:hover { color: var(--gold-bright); }
.contact-status { min-height: 1.5em; color: var(--muted); font-size: 14px; }
@media (max-width: 590px) {
  .map-title > span { font-size: 14px; }
  .place-card { max-height: min(calc(100% - 90px), 65dvh); }
  .toast { top: 70px; bottom: auto; }
  .place-copy h2 { font-size: 19px; }
  .place-category { font-size: 12px; }
  .result-copy strong { font-size: 15px; }
  .result-copy small { font-size: 12px; }
  .sidebar-footer { font-size: 12px; }
  .help-grid > div { align-items: flex-start; flex-wrap: wrap; gap: 4px; }
}
