.formal-map-host {
  color-scheme: dark;
  --bg: #0a1012;
  --surface: #111a1d;
  --surface-2: #172225;
  --surface-3: #1c2a2d;
  --line: rgba(214, 232, 230, 0.12);
  --line-strong: rgba(214, 232, 230, 0.22);
  --text: #edf5f2;
  --muted: #8fa5a1;
  --dim: #60726f;
  --accent: #d6a348;
  --accent-bright: #f2c66d;
  --green: #62c892;
  --red: #ec6a68;
  --blue: #5eb7e8;
  --panel-width: 332px;
  --inspector-width: 356px;
  --topbar-height: 66px;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", "Noto Sans SC", "Noto Sans JP", sans-serif;
}

.formal-map-host, .formal-map-host * { box-sizing: border-box; }

.formal-map-host, .formal-map-host {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}

.formal-map-host button, .formal-map-host input, .formal-map-host select { font: inherit; }
.formal-map-host button { color: inherit; }

.formal-map-host .app-shell { width: 100%; height: 100%; background: var(--bg); }

.formal-map-host .topbar {
  position: relative;
  z-index: 1400;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 18, 20, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.formal-map-host .brand-lockup { display: flex; align-items: center; gap: 11px; min-width: 285px; }
.formal-map-host .brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 94% 23%, 94% 76%, 50% 100%, 6% 76%, 6% 23%);
  background: linear-gradient(145deg, var(--accent-bright), #916225);
  color: #16130d;
  font-family: Georgia, serif;
  font-weight: 800;
  font-size: 13px;
}
.formal-map-host .brand-mark::before {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  clip-path: inherit;
  background: #121b1e;
}
.formal-map-host .brand-mark span { position: relative; z-index: 1; }
.formal-map-host .brand-copy { display: flex; min-width: 0; flex-direction: column; line-height: 1.15; }
.formal-map-host .brand-copy strong { font-size: 14px; font-weight: 680; white-space: nowrap; }
.formal-map-host .brand-copy span { margin-top: 5px; font-size: 11px; color: var(--muted); white-space: nowrap; }

.formal-map-host .topbar-stats { display: flex; align-items: center; gap: 18px; min-width: 0; flex: 1; }
.formal-map-host .top-stat { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.formal-map-host .top-stat b { color: var(--accent-bright); font-size: 14px; }
.formal-map-host .top-stat span { color: var(--muted); font-size: 11px; }

.formal-map-host .topbar-actions { display: flex; align-items: center; gap: 9px; }
.formal-map-host .floor-picker-wrap, .formal-map-host .scene-picker-wrap { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.formal-map-host .floor-picker, .formal-map-host .scene-picker {
  width: min(220px, 22vw);
  height: 34px;
  padding: 0 28px 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  background: #0e1618;
  color: var(--text);
  font-size: 11px;
}
.formal-map-host .floor-picker { width: 118px; }
.formal-map-host .floor-picker:focus, .formal-map-host .scene-picker:focus { border-color: rgba(242, 198, 109, 0.58); }
.formal-map-host .icon-button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.formal-map-host .icon-button:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-3); }
.formal-map-host .language-switch, .formal-map-host .map-mode-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: #0e1618; }
.formal-map-host .language-switch button {
  min-width: 42px;
  height: 27px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}
.formal-map-host .map-mode-switch button { min-width: 66px; height: 27px; padding: 0 8px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.formal-map-host .language-switch button.is-active, .formal-map-host .map-mode-switch button.is-active { color: #20180c; background: var(--accent-bright); font-weight: 700; }
.formal-map-host .map-mode-switch.is-single-mode { display: none; }

.formal-map-host .workspace { position: relative; display: flex; height: calc(100% - var(--topbar-height)); min-height: 0; }
.formal-map-host .data-panel, .formal-map-host .inspector {
  position: relative;
  z-index: 1200;
  flex: none;
  background: rgba(15, 24, 27, 0.985);
  box-shadow: 0 0 34px rgba(0, 0, 0, 0.34);
}
.formal-map-host .data-panel { width: var(--panel-width); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.formal-map-host .inspector { width: var(--inspector-width); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.formal-map-host .map-workspace { position: relative; min-width: 0; flex: 1; background: #0a1113; }
.formal-map-host #map { width: 100%; height: 100%; background: #0a1113; }

.formal-map-host .panel-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px; }
.formal-map-host .search-wrap { position: relative; flex: 1; }
.formal-map-host .search-wrap input {
  width: 100%;
  height: 38px;
  padding: 0 34px 0 35px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  background: #0c1416;
  color: var(--text);
  font-size: 12px;
}
.formal-map-host .search-wrap input:focus { border-color: rgba(242, 198, 109, 0.58); }
.formal-map-host .search-wrap input::placeholder { color: var(--dim); }
.formal-map-host .search-symbol {
  position: absolute;
  top: 12px;
  left: 13px;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
}
.formal-map-host .search-symbol::after { content: ""; position: absolute; width: 6px; height: 1.5px; background: var(--muted); transform: rotate(45deg); right: -5px; bottom: -2px; }
.formal-map-host .clear-button { position: absolute; top: 7px; right: 6px; width: 26px; height: 26px; border: 0; background: transparent; color: var(--dim); cursor: pointer; }

.formal-map-host .data-tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 14px; border-bottom: 1px solid var(--line); }
.formal-map-host .data-tabs button { position: relative; height: 42px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.formal-map-host .data-tabs button::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: transparent; }
.formal-map-host .data-tabs button.is-active { color: var(--text); }
.formal-map-host .data-tabs button.is-active::after { background: var(--accent-bright); }
.formal-map-host .data-tabs b { min-width: 20px; padding: 1px 5px; border-radius: 8px; background: var(--surface-3); color: var(--muted); font-size: 9px; }

.formal-map-host .data-view { display: none; min-height: 0; flex: 1; overflow: auto; scrollbar-color: #35494a transparent; scrollbar-width: thin; }
.formal-map-host .data-view.is-active { display: block; }
.formal-map-host .view-toolbar, .formal-map-host .result-header { display: flex; align-items: center; justify-content: space-between; }
.formal-map-host .view-toolbar { padding: 14px 14px 8px; }
.formal-map-host .section-label { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.formal-map-host .text-button { border: 0; background: transparent; color: var(--accent-bright); font-size: 10px; cursor: pointer; }
.formal-map-host .category-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 4px; padding: 0 8px 8px; }
.formal-map-host .category-row { width: 100%; height: 34px; display: grid; grid-template-columns: 21px minmax(0, 1fr) auto; align-items: center; gap: 5px; padding: 0 6px; border: 0; border-radius: 4px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.formal-map-host .category-row:hover { background: rgba(255, 255, 255, 0.035); }
.formal-map-host .category-row.is-disabled { opacity: .43; }
.formal-map-host .category-icon { width: 20px; height: 20px; display: grid; place-items: center; }
.formal-map-host .category-icon img { max-width: 19px; max-height: 19px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,.8)); }
.formal-map-host .category-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.formal-map-host .category-count { color: var(--dim); font-size: 9px; }
.formal-map-host .category-check { display: none; }
.formal-map-host .category-row:not(.is-disabled) { background: rgba(214, 163, 72, .075); }
.formal-map-host .category-row:not(.is-disabled) .category-count { color: var(--accent-bright); }

.formal-map-host .filter-section { border-top: 1px solid var(--line); }
.formal-map-host .filter-section:first-child { border-top: 0; }
.formal-map-host .filter-section > summary { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--muted); cursor: pointer; list-style: none; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.formal-map-host .filter-section > summary::-webkit-details-marker { display: none; }
.formal-map-host .filter-section > summary::before { content: ""; width: 7px; height: 7px; border-right: 1px solid var(--dim); border-bottom: 1px solid var(--dim); transform: rotate(-45deg); transition: transform .16s ease; }
.formal-map-host .filter-section[open] > summary::before { transform: rotate(45deg) translate(-1px, -1px); }
.formal-map-host .filter-section > summary span { flex: 1; }
.formal-map-host .filter-section > summary b { min-width: 24px; padding: 2px 5px; border-radius: 8px; background: var(--surface-3); color: var(--accent-bright); text-align: center; font-size: 9px; }
.formal-map-host .compact-toolbar { padding-top: 0; color: var(--dim); font-size: 9px; }
.formal-map-host .facet-block { padding: 0 14px 10px; }
.formal-map-host .facet-label, .formal-map-host .facet-field > span { display: block; margin-bottom: 6px; color: var(--dim); font-size: 9px; }
.formal-map-host .facet-chip-list { display: flex; flex-wrap: wrap; gap: 5px; }
.formal-map-host .facet-chip { min-height: 26px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; background: #0c1416; color: var(--muted); font-size: 9px; cursor: pointer; }
.formal-map-host .facet-chip:hover { border-color: var(--line-strong); color: var(--text); }
.formal-map-host .facet-chip.is-active { border-color: rgba(242, 198, 109, .5); background: rgba(214, 163, 72, .12); color: var(--accent-bright); }
.formal-map-host .facet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 8px; padding: 0 14px 12px; }
.formal-map-host .facet-field { min-width: 0; }
.formal-map-host .facet-field-wide { grid-column: 1 / -1; }
.formal-map-host .facet-field .wide-select { width: 100%; max-width: none; min-width: 0; }
.formal-map-host .active-filter-chips { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 14px 9px; }
.formal-map-host .active-filter-chips:empty { display: none; }
.formal-map-host .active-filter-chips button { max-width: 100%; min-height: 25px; display: inline-flex; align-items: center; gap: 6px; padding: 0 7px; border: 1px solid rgba(94, 183, 232, .3); border-radius: 3px; background: rgba(94, 183, 232, .08); color: #a8d9f2; font-size: 8px; cursor: pointer; }
.formal-map-host .active-filter-chips button span { color: var(--muted); font-size: 12px; }
.formal-map-host .clear-facets-button { width: calc(100% - 28px); height: 29px; margin: 0 14px 12px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--muted); font-size: 9px; cursor: pointer; }
.formal-map-host .clear-facets-button:hover:not(:disabled) { border-color: var(--line-strong); color: var(--text); }
.formal-map-host .clear-facets-button:disabled { opacity: .36; cursor: default; }

.formal-map-host .filter-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-top: 1px solid var(--line); }
.formal-map-host .filter-row-spaced { justify-content: space-between; gap: 8px; }
.formal-map-host .toggle-control { display: flex; align-items: center; gap: 7px; color: var(--muted); cursor: pointer; }
.formal-map-host .toggle-control input { position: absolute; opacity: 0; pointer-events: none; }
.formal-map-host .toggle-control span { width: 14px; height: 14px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 3px; background: #0d1517; }
.formal-map-host .toggle-control input:checked + span { border-color: var(--accent); background: var(--accent); }
.formal-map-host .toggle-control input:checked + span::after { content: ""; width: 6px; height: 3px; border-left: 1.5px solid #17120a; border-bottom: 1.5px solid #17120a; transform: rotate(-45deg) translateY(-1px); }
.formal-map-host .toggle-control b { font-size: 10px; font-weight: 500; white-space: nowrap; }
.formal-map-host .reward-toggle input:checked + span { background: var(--green); border-color: var(--green); }
.formal-map-host .select-control { max-width: 135px; height: 29px; padding: 0 24px 0 8px; border: 1px solid var(--line); border-radius: 5px; outline: 0; background: #0d1517; color: var(--muted); font-size: 10px; }
.formal-map-host #enemy-drop-profile { width: 0; min-width: 0; max-width: none; flex: 1 1 auto; }
.formal-map-host #enemy-sort { width: 112px; min-width: 0; max-width: 112px; flex: 0 1 112px; }
.formal-map-host .result-header { padding: 12px 14px 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.formal-map-host .result-header b { color: var(--accent-bright); }
.formal-map-host .result-list { padding: 0 8px 14px; }
.formal-map-host .result-limit-note { padding: 12px 8px 4px; color: var(--dim); font-size: 9px; text-align: center; }

.formal-map-host .result-item { width: 100%; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 54px; padding: 8px; border: 0; border-bottom: 1px solid rgba(214, 232, 230, 0.07); border-radius: 5px; background: transparent; text-align: left; cursor: pointer; transition: background .14s ease; }
.formal-map-host .result-item:hover, .formal-map-host .result-item.is-active { background: rgba(255, 255, 255, 0.045); }
.formal-map-host .result-thumb { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; background: #172124; overflow: hidden; }
.formal-map-host .result-thumb img { max-width: 30px; max-height: 30px; object-fit: contain; }
.formal-map-host .result-thumb .fallback { font-size: 12px; color: var(--muted); }
.formal-map-host .result-main { min-width: 0; }
.formal-map-host .result-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 650; }
.formal-map-host .result-main span { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 9px; }
.formal-map-host .result-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--dim); font-size: 9px; }
.formal-map-host .result-meta b { color: var(--accent-bright); font-size: 10px; }
.formal-map-host .precision-badge { display: inline-flex; align-items: center; gap: 4px; }
.formal-map-host .precision-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.formal-map-host .precision-badge.area::before { width: 7px; height: 7px; border: 1px dashed var(--green); background: transparent; }

.formal-map-host .catalog-status { display: flex; align-items: flex-start; gap: 9px; margin: 13px 14px 10px; padding: 10px; border-left: 2px solid #54706d; background: rgba(255, 255, 255, .025); }
.formal-map-host .catalog-status p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.formal-map-host .status-dot { flex: none; width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; }
.formal-map-host .status-world { background: var(--blue); }
.formal-map-host .status-catalog { background: var(--accent); }

.formal-map-host .inspector-head { height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.formal-map-host .inspector-head > div { min-width: 0; }
.formal-map-host .inspector-head span { display: block; color: var(--accent-bright); font-size: 9px; text-transform: uppercase; }
.formal-map-host .inspector-head strong { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.formal-map-host .inspector-content { min-height: 0; flex: 1; overflow: auto; padding: 16px; scrollbar-color: #35494a transparent; scrollbar-width: thin; }
.formal-map-host .overview-hero { padding: 4px 0 18px; border-bottom: 1px solid var(--line); }
.formal-map-host .overview-floor { display: flex; align-items: center; gap: 12px; }
.formal-map-host .overview-floor .floor-number { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(242,198,109,.42); color: var(--accent-bright); font-family: Georgia, serif; font-size: 20px; }
.formal-map-host .overview-floor strong { display: block; font-size: 16px; }
.formal-map-host .overview-floor span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.formal-map-host .overview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 14px; background: var(--line); border: 1px solid var(--line); }
.formal-map-host .overview-grid div { padding: 10px; background: var(--surface); }
.formal-map-host .overview-grid b { display: block; color: var(--accent-bright); font-size: 16px; }
.formal-map-host .overview-grid span { color: var(--muted); font-size: 9px; }

.formal-map-host .detail-hero { display: flex; align-items: flex-start; gap: 13px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.formal-map-host .detail-hero-media { width: 58px; height: 58px; display: grid; place-items: center; flex: none; border: 1px solid var(--line); background: var(--surface-2); }
.formal-map-host .detail-hero-media img { max-width: 54px; max-height: 54px; object-fit: contain; }
.formal-map-host .detail-hero-copy { min-width: 0; }
.formal-map-host .detail-hero-copy h2 { margin: 0; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.formal-map-host .detail-hero-copy p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.formal-map-host .detail-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.formal-map-host .detail-tag { padding: 3px 6px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-size: 8px; }
.formal-map-host .detail-tag.exact { border-color: rgba(94,183,232,.34); color: #9ed9f7; }
.formal-map-host .detail-tag.area { border-color: rgba(98,200,146,.34); color: #8ee2b6; }
.formal-map-host .detail-section { padding: 15px 0; border-bottom: 1px solid var(--line); }
.formal-map-host .detail-section h3 { margin: 0 0 10px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.formal-map-host .kv-list { display: grid; gap: 8px; }
.formal-map-host .kv-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 10px; }
.formal-map-host .kv-row span { color: var(--muted); }
.formal-map-host .kv-row b { max-width: 66%; text-align: right; overflow-wrap: anywhere; font-weight: 600; }
.formal-map-host .drop-list { display: grid; gap: 7px; }
.formal-map-host .drop-row { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 9px; min-height: 40px; padding: 5px; border: 1px solid var(--line); background: rgba(255,255,255,.018); color: inherit; text-decoration: none; }
.formal-map-host .inspector-record-link { width: 100%; text-align: left; cursor: pointer; }
.formal-map-host .inspector-record-link:hover { border-color: var(--line-strong); background: rgba(255,255,255,.04); }
.formal-map-host .drop-row img { width: 28px; height: 28px; object-fit: contain; }
.formal-map-host .drop-copy { min-width: 0; }
.formal-map-host .drop-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.formal-map-host .drop-copy span { color: var(--muted); font-size: 8px; }
.formal-map-host .drop-chance { text-align: right; }
.formal-map-host .drop-chance b { display: block; color: var(--accent-bright); font-size: 10px; }
.formal-map-host .drop-chance span { color: var(--dim); font-size: 8px; }
.formal-map-host .wiki-link { width: 100%; min-height: 36px; display: flex; align-items: center; justify-content: center; margin-top: 12px; border: 1px solid rgba(242,198,109,.4); border-radius: 5px; color: var(--accent-bright); font-size: 10px; text-decoration: none; }
.formal-map-host .wiki-link:hover { background: rgba(242,198,109,.08); }
.formal-map-host .evidence-note, .formal-map-host .warning-note { margin: 0; padding: 10px; font-size: 9px; line-height: 1.55; }
.formal-map-host .evidence-note { border-left: 2px solid #4f716d; color: var(--muted); background: rgba(255,255,255,.02); }
.formal-map-host .warning-note { border-left: 2px solid var(--accent); color: #c9b78f; background: rgba(214,163,72,.06); }
.formal-map-host .equipment-rank-line { min-height: 36px; display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--accent-bright); font-size: 10px; font-weight: 650; }
.formal-map-host .equipment-rank-line img { width: 27px; height: 27px; object-fit: contain; }
.formal-map-host .growth-table { border: 1px solid var(--line); background: rgba(255,255,255,.012); }
.formal-map-host .growth-row { display: grid; grid-template-columns: 34px 48px minmax(0,1fr); align-items: center; min-height: 38px; border-top: 1px solid var(--line); }
.formal-map-host .growth-row:first-child { border-top: 0; }
.formal-map-host .growth-row > * { padding: 7px 8px; min-width: 0; }
.formal-map-host .growth-row b, .formal-map-host .growth-row strong { color: var(--accent-bright); font-size: 10px; }
.formal-map-host .growth-row span { color: var(--muted); font-size: 8px; line-height: 1.55; }
.formal-map-host .growth-head { min-height: 28px; background: rgba(255,255,255,.025); }
.formal-map-host .growth-head span { color: var(--dim); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.formal-map-host .mod-list { display: grid; gap: 7px; }
.formal-map-host .mod-row { display: block; padding: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.018); color: inherit; text-decoration: none; }
.formal-map-host .mod-row:hover { border-color: var(--line-strong); background: rgba(255,255,255,.04); }
.formal-map-host .mod-row strong { color: var(--accent-bright); font-size: 10px; }
.formal-map-host .mod-row p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.formal-map-host .mod-row > div { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.formal-map-host .mod-row > div span { padding: 3px 5px; border: 1px solid rgba(94,183,232,.22); color: #a8d9f2; font-size: 8px; }
.formal-map-host .empty-state { padding: 24px 12px; color: var(--muted); font-size: 11px; line-height: 1.6; text-align: center; }

.formal-map-host .map-hud { position: absolute; z-index: 800; border: 1px solid var(--line); border-radius: 5px; background: rgba(10, 17, 19, .84); backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(0,0,0,.24); }
.formal-map-host .map-status-hud { left: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; padding: 7px 10px; color: var(--muted); font-size: 9px; }
.formal-map-host .map-status-hud i { width: 1px; height: 11px; background: var(--line-strong); }
.formal-map-host .map-legend { top: 14px; right: 14px; display: flex; gap: 12px; padding: 8px 10px; }
.formal-map-host .map-legend span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8px; }
.formal-map-host .legend-symbol { display: block; width: 9px; height: 9px; }
.formal-map-host .exact-symbol { border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px rgba(94,183,232,.18); }
.formal-map-host .area-symbol { border: 1px dashed var(--green); background: rgba(98,200,146,.12); }
.formal-map-host .pool-symbol { border-radius: 1px; background: var(--accent); transform: rotate(45deg); }

.formal-map-host .leaflet-container { font: inherit; }
.formal-map-host .leaflet-image-layer { image-rendering: auto; }
.formal-map-host .world-map-backdrop { image-rendering: auto; opacity: .9; }
.formal-map-host .leaflet-control-zoom { border: 1px solid var(--line) !important; box-shadow: 0 8px 24px rgba(0,0,0,.3) !important; }
.formal-map-host .leaflet-control-zoom a { width: 32px !important; height: 32px !important; line-height: 30px !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; background: rgba(13,22,24,.9) !important; color: var(--text) !important; }
.formal-map-host .leaflet-control-zoom a:last-child { border-bottom: 0 !important; }
.formal-map-host .leaflet-control-zoom a:hover { background: var(--surface-3) !important; }
.formal-map-host .leaflet-tooltip.marker-tooltip { padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 4px; background: rgba(11,18,20,.94); color: var(--text); box-shadow: 0 8px 18px rgba(0,0,0,.32); font-size: 9px; }
.formal-map-host .leaflet-tooltip.marker-tooltip::before { display: none; }
.formal-map-host .region-label { display: block; overflow: hidden; color: rgba(236,245,242,.74); font-size: 9px; font-weight: 650; text-align: center; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 4px #061012, 0 0 8px #061012; }
.formal-map-host .map-pin { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(12,20,22,.92); box-shadow: 0 5px 13px rgba(0,0,0,.52); transform: scale(var(--pin-scale, 1)); transform-origin: center; transition: transform .14s ease, filter .14s ease; }
.formal-map-host .map-pin img { position: relative; z-index: 2; width: 24px; height: 24px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,.9)); }
.formal-map-host .map-pin.is-reward::after { content: ""; position: absolute; z-index: 3; top: -2px; right: -2px; width: 8px; height: 8px; border: 2px solid #10201a; border-radius: 50%; background: var(--green); }
.formal-map-host .map-pin.is-selected { transform: scale(var(--selected-scale, 1.22)); filter: drop-shadow(0 0 8px rgba(242,198,109,.62)); }
.formal-map-host .map-pin.is-selected { border-color: var(--accent-bright); }
.formal-map-host .coordinate-anchor { display: none; position: absolute; z-index: 4; inset: 50% auto auto 50%; width: 5px; height: 5px; border: 1px solid #071012; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 1px rgba(255,255,255,.9), 0 0 7px rgba(242,198,109,.9); transform: translate(-50%, -50%); pointer-events: none; }
.formal-map-host .map-pin.is-selected .coordinate-anchor, .formal-map-host .map-pin.is-calibrating .coordinate-anchor { display: block; }
.formal-map-host .map-pin.is-calibrating img { opacity: .58; }
.formal-map-host .area-pin { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 1px dashed var(--green); border-radius: 50%; background: rgba(15, 45, 35, .58); box-shadow: 0 0 0 5px rgba(98,200,146,.08); transform: scale(var(--pin-scale, 1)); transform-origin: center; transition: transform .14s ease; }
.formal-map-host .area-pin img { width: 25px; height: 25px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0,0,0,.8)); }
.formal-map-host .area-pin.is-selected { transform: scale(var(--selected-scale, 1.18)); border-color: var(--accent-bright); }
.formal-map-host .area-range { stroke-dasharray: 8 7; }
.formal-map-host .marker-cluster div { display: grid; place-items: center; width: 34px; height: 34px; margin: 2px; border: 1px solid rgba(242,198,109,.52); border-radius: 50%; background: rgba(16,27,29,.92); color: var(--accent-bright); font-size: 10px; }
.formal-map-host .marker-cluster { background: rgba(214,163,72,.22); }

.formal-map-host .mobile-only { display: none; }
.formal-map-host .mobile-scrim { display: none; }
.formal-map-host .floating-action { position: absolute; right: 14px; bottom: 14px; z-index: 900; height: 40px; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid rgba(242,198,109,.45); border-radius: 6px; background: rgba(13,22,24,.94); color: var(--accent-bright); box-shadow: 0 10px 25px rgba(0,0,0,.4); }
.formal-map-host .filter-icon { width: 13px; height: 11px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; position: relative; }
.formal-map-host .filter-icon::after { content:""; position:absolute; top:4px; left:3px; width:7px; border-top:1.5px solid currentColor; }
.formal-map-host .menu-icon { width: 14px; height: 10px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; position: relative; }
.formal-map-host .menu-icon::after { content:""; position:absolute; top:3px; left:0; width:14px; border-top:1.5px solid currentColor; }

@media (max-width: 1400px) {
  .formal-map-host .topbar-stats .top-stat:nth-child(n+3) { display: none; }
  .formal-map-host .scene-picker { width: 190px; }
}

@media (max-width: 1180px) {
  .formal-map-host { --panel-width: 306px; --inspector-width: 320px; }
  .formal-map-host .topbar-stats .top-stat:nth-child(n+4) { display: none; }
  .formal-map-host .floor-picker-wrap > span, .formal-map-host .scene-picker-wrap > span { display: none; }
  .formal-map-host .floor-picker { width: 100px; }
  .formal-map-host .scene-picker { width: 170px; }
}

@media (max-width: 860px) {
  .formal-map-host { --topbar-height: 112px; }
  .formal-map-host .workspace { overflow: hidden; }
  .formal-map-host .mobile-only { display: inline-grid; }
  .formal-map-host .topbar { padding: 0 10px; gap: 9px; }
  .formal-map-host #mobile-nav-button { position: absolute; top: 13px; left: 10px; }
  .formal-map-host .brand-lockup { min-width: 0; flex: 1; padding-right: 126px; align-self: flex-start; margin-top: 13px; margin-left: 40px; }
  .formal-map-host .brand-mark { width: 32px; height: 32px; }
  .formal-map-host .brand-mark::before { width: 25px; height: 25px; }
  .formal-map-host .brand-copy strong { max-width: 45vw; overflow: hidden; text-overflow: ellipsis; }
  .formal-map-host .topbar-stats, .formal-map-host #fit-map-button { display: none; }
  .formal-map-host .floor-picker-wrap { position: absolute; top: 66px; left: 10px; z-index: 1200; }
  .formal-map-host .scene-picker-wrap { position: absolute; top: 66px; left: 116px; z-index: 1200; }
  .formal-map-host .floor-picker { width: 98px; background: rgba(13,22,24,.96); }
  .formal-map-host .scene-picker { width: min(42vw, 210px); background: rgba(13,22,24,.96); }
  .formal-map-host .map-mode-switch { position: absolute; top: 64px; right: 10px; z-index: 1200; background: rgba(13,22,24,.94); }
  .formal-map-host .map-mode-switch button { min-width: 48px; padding: 0 6px; font-size: 9px; white-space: nowrap; }
  .formal-map-host .topbar-actions { position: static; }
  .formal-map-host .language-switch { position: absolute; top: 11px; right: 48px; }
  .formal-map-host #mobile-detail-button { position: absolute; top: 12px; right: 9px; }
  .formal-map-host .language-switch button { min-width: 34px; padding: 0 5px; }
  .formal-map-host .data-panel, .formal-map-host .inspector {
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(90vw, 350px);
    transition: transform .22s ease;
  }
  .formal-map-host .data-panel { left: 0; transform: translateX(-105%); }
  .formal-map-host .data-panel.is-open { transform: translateX(0); }
  .formal-map-host .inspector { right: 0; transform: translateX(105%); }
  .formal-map-host .inspector.is-open { transform: translateX(0); }
  .formal-map-host .mobile-scrim { position: absolute; z-index: 1100; inset: 0; background: rgba(0,0,0,.48); }
  .formal-map-host .mobile-scrim.is-open { display: block; }
  .formal-map-host .map-legend { top: 10px; right: 10px; gap: 7px; }
  .formal-map-host .map-legend b { display: none; }
  .formal-map-host .map-status-hud { left: 10px; bottom: 10px; max-width: calc(100% - 100px); }
  .formal-map-host .map-status-hud #precision-status, .formal-map-host .map-status-hud i { display: none; }
  .formal-map-host .floating-action { display: flex; }
}

@media (max-width: 520px) {
  .formal-map-host .brand-lockup { max-width: calc(100vw - 190px); padding-right: 0; }
  .formal-map-host .brand-copy strong { max-width: calc(100vw - 225px); font-size: 12px; }
  .formal-map-host .brand-copy span { font-size: 9px; }
  .formal-map-host .topbar-actions { gap: 5px; }
  .formal-map-host .language-switch button { min-width: 26px; padding: 0 3px; font-size: 9px; }
  .formal-map-host .topbar > .icon-button { width: 31px; height: 31px; }
  .formal-map-host #mobile-detail-button { display: inline-grid; }
  .formal-map-host .floor-picker { width: 88px; font-size: 9px; }
  .formal-map-host .scene-picker-wrap { left: 106px; }
  .formal-map-host .scene-picker { width: calc(100vw - 232px); min-width: 124px; max-width: 190px; font-size: 9px; }
  .formal-map-host .facet-grid { grid-template-columns: 1fr; }
  .formal-map-host .facet-field-wide { grid-column: auto; }
}

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

.formal-map-host .language-switch { display: none; }

.formal-map-host { position: relative; isolation: isolate; z-index: 0; }

.formal-map-host .brand-lockup,
.formal-map-host #mobile-nav-button { display: none !important; }

.formal-map-host .topbar { height: 52px; padding: 0 14px; gap: 12px; z-index: 40; }

.formal-map-host .workspace { height: calc(100% - 52px); }

.formal-map-host .topbar-stats { order: 2; justify-content: flex-end; }

.formal-map-host .topbar-actions { order: 1; }

.formal-map-host .floor-picker-wrap,
.formal-map-host .scene-picker-wrap { flex-direction: row; align-items: center; }

.formal-map-host .floor-picker-wrap > span,
.formal-map-host .scene-picker-wrap > span { color: var(--dim); font-size: 9px; }

@media (max-width: 860px) {
  .formal-map-host { --topbar-height: 104px; }
  .formal-map-host .topbar { height: 104px; }
  .formal-map-host .workspace { height: calc(100% - 104px); }
  .formal-map-host .floor-picker-wrap { top: 10px; left: 10px; z-index: 40; }
  .formal-map-host .floor-picker { width: 104px; }
  .formal-map-host .scene-picker-wrap { top: 10px; left: 122px; right: 10px; z-index: 40; }
  .formal-map-host .scene-picker { width: 100%; max-width: none; }
  .formal-map-host .map-mode-switch { top: 56px; left: 10px; right: auto; z-index: 40; }
  .formal-map-host #mobile-detail-button { top: 56px; right: 10px; }
  .formal-map-host .topbar-stats { display: none; }
}

@media (max-width: 520px) {
  .formal-map-host .floor-picker { width: 104px; font-size: 10px; }
  .formal-map-host .scene-picker-wrap { left: 122px; }
  .formal-map-host .scene-picker { width: 100%; min-width: 0; max-width: none; font-size: 10px; }
}

.formal-map-host .panel-head { position: relative; z-index: 25; }

.formal-map-host .search-suggestions {
  position: absolute; top: calc(100% - 6px); left: 12px; right: 12px; z-index: 80;
  max-height: min(430px, 55vh); overflow: auto; padding: 6px;
  border: 1px solid var(--line-strong); border-radius: 6px; background: color-mix(in srgb, var(--surface-1) 96%, transparent);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .42); backdrop-filter: blur(14px);
}

.formal-map-host .search-suggestions[hidden] { display: none; }

.formal-map-host .search-suggestion {
  width: 100%; min-height: 54px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center; gap: 9px; padding: 7px 8px; border: 0; border-radius: 4px;
  color: var(--text); background: transparent; text-align: left; cursor: pointer;
}

.formal-map-host .search-suggestion:hover,
.formal-map-host .search-suggestion.is-active { background: var(--surface-3); }

.formal-map-host .search-suggestion-media,
.formal-map-host .discovery-entry-media {
  width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--line); border-radius: 4px; background: var(--surface-3);
}

.formal-map-host .search-suggestion-media img,
.formal-map-host .discovery-entry-media img { width: 100%; height: 100%; object-fit: contain; }

.formal-map-host .search-suggestion-copy,
.formal-map-host .discovery-entry-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }

.formal-map-host .search-suggestion-copy strong,
.formal-map-host .discovery-entry-copy strong { overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.formal-map-host .search-suggestion-copy span,
.formal-map-host .discovery-entry-copy span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.formal-map-host .search-suggestion-type { color: var(--accent-bright); font-size: 9px; font-weight: 800; text-transform: uppercase; }

.formal-map-host .discovery-section { border-bottom: 1px solid var(--line); }

.formal-map-host .discovery-heading {
  min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 8px;
}

.formal-map-host .discovery-heading > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }

.formal-map-host .discovery-heading span { color: var(--accent-bright); font-size: 9px; font-weight: 800; text-transform: uppercase; }

.formal-map-host .discovery-heading strong { color: var(--text); font-size: 14px; }

.formal-map-host .discovery-heading > b { min-width: 30px; color: var(--muted); font-size: 11px; text-align: right; }

.formal-map-host .discovery-segments { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0 10px 10px; }

.formal-map-host .discovery-segments.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; }

.formal-map-host .discovery-segments button {
  min-width: 0; height: 32px; padding: 0 5px; overflow: hidden; border: 1px solid var(--line); border-right: 0;
  color: var(--muted); background: var(--surface-2); font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; cursor: pointer;
}

.formal-map-host .discovery-segments button:first-child { border-radius: 4px 0 0 4px; }

.formal-map-host .discovery-segments button:last-child { border-right: 1px solid var(--line); border-radius: 0 4px 4px 0; }

.formal-map-host .discovery-segments button.is-active { border-color: color-mix(in srgb, var(--accent) 68%, var(--line)); color: var(--accent-bright); background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); }

.formal-map-host .discovery-controls { display: grid; gap: 8px; padding: 0 10px 10px; }

.formal-map-host .rank-filter { display: grid; grid-template-columns: 34px repeat(5, minmax(0, 1fr)); gap: 5px; }

.formal-map-host .rank-filter button {
  height: 36px; display: grid; place-items: center; padding: 4px; border: 1px solid var(--line); border-radius: 4px;
  color: var(--muted); background: var(--surface-2); font-size: 9px; font-weight: 800; cursor: pointer;
}

.formal-map-host .rank-filter button img { width: 25px; height: 25px; object-fit: contain; opacity: .72; filter: saturate(.82); }

.formal-map-host .rank-filter button.is-active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface-2)); color: var(--accent-bright); }

.formal-map-host .rank-filter button.is-active img { opacity: 1; filter: none; }

.formal-map-host .weapon-type-strip { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }

.formal-map-host .weapon-type-strip button {
  flex: 0 0 auto; min-height: 28px; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px;
  color: var(--muted); background: var(--surface-2); font-size: 10px; cursor: pointer;
}

.formal-map-host .weapon-type-strip button.is-active { border-color: var(--accent); color: var(--accent-bright); background: color-mix(in srgb, var(--accent) 14%, var(--surface-2)); }

.formal-map-host .discovery-list-heading,
.formal-map-host .discovery-source-heading { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 10px; }

.formal-map-host .discovery-list-heading span,
.formal-map-host .discovery-source-heading strong { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }

.formal-map-host .discovery-list-heading .select-control { width: auto; max-width: 150px; height: 28px; font-size: 10px; }

.formal-map-host .discovery-browser-list,
.formal-map-host .discovery-source-list { border-top: 1px solid var(--line); }

.formal-map-host .discovery-entry {
  width: 100%; min-height: 62px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center; gap: 9px; padding: 8px 10px; border: 0; border-bottom: 1px solid var(--line);
  color: var(--text); background: transparent; text-align: left; cursor: pointer;
}

.formal-map-host .discovery-entry:hover,
.formal-map-host .discovery-entry.is-active { background: var(--surface-2); }

.formal-map-host .discovery-entry-media { width: 42px; height: 42px; position: relative; }

.formal-map-host .entry-rank-icon { position: absolute; right: -1px; bottom: -1px; width: 19px !important; height: 19px !important; padding: 1px; border-radius: 3px; background: rgba(9, 13, 17, .86); }

.formal-map-host .discovery-entry-meta { min-width: 62px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.formal-map-host .discovery-entry-meta b { color: var(--accent-bright); font-size: 10px; }

.formal-map-host .discovery-entry-meta span { color: var(--dim); font-size: 9px; }

.formal-map-host .discovery-selected { margin: 0 10px 10px; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; background: var(--surface-2); }

.formal-map-host .discovery-selected[hidden] { display: none; }

.formal-map-host .discovery-selected-entry { min-height: 72px; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px; }

.formal-map-host .discovery-selected-entry .discovery-entry-media { width: 52px; height: 52px; }

.formal-map-host .discovery-selected-entry .discovery-entry-copy strong { font-size: 14px; }

.formal-map-host .discovery-source-heading { border-top: 1px solid var(--line); }

.formal-map-host .discovery-source-heading .icon-button { width: 26px; height: 26px; }

.formal-map-host .source-group-label { padding: 8px 10px 5px; color: var(--dim); font-size: 9px; font-weight: 800; text-transform: uppercase; }

.formal-map-host .source-row {
  width: 100%; min-height: 48px; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 9px;
  padding: 7px 10px; border: 0; border-top: 1px solid var(--line); color: var(--text); background: transparent; text-align: left; cursor: pointer;
}

.formal-map-host .source-row:hover { background: var(--surface-3); }

.formal-map-host .source-row-icon { width: 30px; height: 30px; display: grid; place-items: center; overflow: hidden; border-radius: 4px; background: var(--surface-3); color: var(--accent-bright); font-size: 12px; font-weight: 800; }

.formal-map-host .source-row-icon img { width: 100%; height: 100%; object-fit: contain; }

.formal-map-host .source-row-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }

.formal-map-host .source-row-copy strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.formal-map-host .source-row-copy span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.formal-map-host .source-row-meta { color: var(--accent-bright); font-size: 9px; font-weight: 800; }

.formal-map-host .discovery-empty { padding: 16px 12px; color: var(--muted); font-size: 10px; line-height: 1.6; }

.formal-map-host .discovery-more { width: calc(100% - 20px); height: 32px; margin: 8px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: var(--surface-2); font-size: 10px; cursor: pointer; }

.formal-map-host .legacy-rank-field { display: none !important; }

@media (max-width: 860px) {
  .formal-map-host .search-suggestions { max-height: 46vh; }
  .formal-map-host .discovery-heading { padding-top: 12px; }
}

@media (max-width: 390px) {
  .formal-map-host .discovery-segments button { font-size: 9px; }
  .formal-map-host .rank-filter { grid-template-columns: 30px repeat(5, minmax(0, 1fr)); gap: 3px; }
  .formal-map-host .rank-filter button { height: 33px; padding: 3px; }
  .formal-map-host .rank-filter button img { width: 23px; height: 23px; }
}

.formal-map-host .map-pin.dungeon-entrance-pin {
  width: 42px;
  height: 42px;
  border-color: rgba(255, 222, 151, .9);
  border-radius: 6px;
  background: rgba(23, 27, 24, .96);
  box-shadow: 0 0 0 3px rgba(214, 163, 72, .2), 0 7px 18px rgba(0, 0, 0, .62);
  transform: scale(var(--pin-scale, 1)) rotate(45deg);
}

.formal-map-host .map-pin.dungeon-entrance-pin img {
  width: 27px;
  height: 27px;
  transform: rotate(-45deg);
}

.formal-map-host .map-pin.dungeon-entrance-pin.is-selected {
  transform: scale(var(--selected-scale, 1.22)) rotate(45deg);
  filter: drop-shadow(0 0 10px rgba(255, 215, 128, .86));
}

.formal-map-host .map-pin.dungeon-entrance-pin .coordinate-anchor {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.formal-map-host .dungeon-action-list,
.formal-map-host .quest-link-list { display: grid; gap: 7px; }

.formal-map-host .dungeon-action {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid rgba(242, 198, 109, .34);
  background: rgba(242, 198, 109, .045);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.formal-map-host .dungeon-action:hover { border-color: rgba(242, 198, 109, .68); background: rgba(242, 198, 109, .09); }

.formal-map-host .dungeon-action img { width: 30px; height: 30px; object-fit: contain; }

.formal-map-host .dungeon-action span:nth-child(2) { min-width: 0; }

.formal-map-host .dungeon-action strong,
.formal-map-host .quest-link-row strong { display: block; overflow-wrap: anywhere; font-size: 10px; }

.formal-map-host .dungeon-action small,
.formal-map-host .quest-link-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; overflow-wrap: anywhere; }

.formal-map-host .dungeon-action > b { color: var(--accent-bright); font-size: 15px; }

.formal-map-host .quest-link-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .018);
  color: inherit;
  text-decoration: none;
}

.formal-map-host .quest-link-row:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .04); }

.formal-map-host .quest-link-row > span { min-width: 0; }

.formal-map-host .quest-link-row > b { flex: none; color: var(--accent-bright); font-size: 8px; font-weight: 600; }

.formal-map-host {
  --panel-width: 356px;
  --inspector-width: 388px;
  font-size: 14px;
}

.formal-map-host .data-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: 8px; }

.formal-map-host .data-tabs button { gap: 5px; min-width: 0; padding-inline: 2px; font-size: 13px; }

.formal-map-host .data-tabs button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.formal-map-host .data-tabs b { min-width: 22px; font-size: 11px; }

.formal-map-host .floor-picker-wrap,
.formal-map-host .scene-picker-wrap,
.formal-map-host .floor-picker-wrap > span,
.formal-map-host .scene-picker-wrap > span,
.formal-map-host .floor-picker,
.formal-map-host .scene-picker,
.formal-map-host .map-mode-switch button { font-size: 12px; }

.formal-map-host .search-wrap input { font-size: 14px; }

.formal-map-host .section-label,
.formal-map-host .filter-section > summary,
.formal-map-host .result-header,
.formal-map-host .text-button,
.formal-map-host .toggle-control b,
.formal-map-host .select-control,
.formal-map-host .catalog-status p,
.formal-map-host .category-name { font-size: 12px; }

.formal-map-host .category-count,
.formal-map-host .filter-section > summary b,
.formal-map-host .compact-toolbar,
.formal-map-host .facet-label,
.formal-map-host .facet-field > span,
.formal-map-host .facet-chip,
.formal-map-host .active-filter-chips button,
.formal-map-host .clear-facets-button { font-size: 11px; }

.formal-map-host .category-row { min-height: 38px; }

.formal-map-host .select-control { min-height: 34px; }

.formal-map-host .result-item { min-height: 62px; padding: 10px 8px; }

.formal-map-host .result-main strong { font-size: 13px; line-height: 1.35; }

.formal-map-host .result-main span { margin-top: 5px; font-size: 11px; line-height: 1.4; }

.formal-map-host .result-meta,
.formal-map-host .result-limit-note { font-size: 11px; }

.formal-map-host .result-meta b { font-size: 12px; }

.formal-map-host .inspector-head span { font-size: 11px; }

.formal-map-host .inspector-head strong { font-size: 15px; line-height: 1.35; }

.formal-map-host .detail-hero-copy strong { font-size: 16px; line-height: 1.35; }

.formal-map-host .detail-hero-copy p { font-size: 12px; line-height: 1.6; }

.formal-map-host .detail-tag { font-size: 11px; }

.formal-map-host .detail-section h3 { font-size: 12px; }

.formal-map-host .kv-row { font-size: 12px; line-height: 1.55; }

.formal-map-host .evidence-note,
.formal-map-host .warning-note { padding: 12px; font-size: 13px; line-height: 1.75; }

.formal-map-host .drop-copy strong,
.formal-map-host .drop-chance b,
.formal-map-host .mod-row strong,
.formal-map-host .equipment-rank-line { font-size: 12px; }

.formal-map-host .drop-copy span,
.formal-map-host .drop-chance span,
.formal-map-host .growth-row span,
.formal-map-host .growth-head span,
.formal-map-host .mod-row p,
.formal-map-host .mod-row > div span { font-size: 11px; line-height: 1.6; }

.formal-map-host .wiki-link { min-height: 42px; font-size: 12px; }

.formal-map-host .overview-floor span,
.formal-map-host .overview-grid span,
.formal-map-host .growth-row b,
.formal-map-host .growth-row strong,
.formal-map-host .empty-state,
.formal-map-host .marker-cluster div { font-size: 12px; }

.formal-map-host .discovery-heading span,
.formal-map-host .search-suggestion-type,
.formal-map-host .source-group-label { font-size: 11px; }

.formal-map-host .discovery-heading strong { font-size: 15px; }

.formal-map-host .discovery-heading > b,
.formal-map-host .discovery-entry-meta b,
.formal-map-host .source-row-meta { font-size: 12px; }

.formal-map-host .discovery-entry-copy strong,
.formal-map-host .source-row-copy strong { font-size: 13px; }

.formal-map-host .discovery-entry-copy span,
.formal-map-host .discovery-entry-meta span,
.formal-map-host .source-row-copy span,
.formal-map-host .discovery-empty,
.formal-map-host .discovery-more,
.formal-map-host .discovery-segments button { font-size: 11px; }

.formal-map-host .map-status-hud,
.formal-map-host .map-legend span { font-size: 11px; }

.formal-map-host .leaflet-tooltip.marker-tooltip,
.formal-map-host .region-label { font-size: 12px; line-height: 1.35; }

.formal-map-host .quest-link-row strong { font-size: 12px; line-height: 1.4; }

.formal-map-host .quest-link-row small,
.formal-map-host .quest-link-row > b { font-size: 11px; line-height: 1.5; }

@media (max-width: 860px) {
  .formal-map-host .data-panel,
  .formal-map-host .inspector { width: min(92vw, 350px); }
  .formal-map-host .data-tabs { padding-inline: 4px; }
  .formal-map-host .data-tabs button { gap: 3px; font-size: 12px; }
  .formal-map-host .data-tabs b { min-width: 20px; padding-inline: 4px; font-size: 10px; }
}

@media (max-width: 520px) {
  .formal-map-host .data-tabs b { display: none; }
  .formal-map-host .floor-picker,
  .formal-map-host .scene-picker,
  .formal-map-host .map-mode-switch button { font-size: 12px; }
  .formal-map-host .result-main strong,
  .formal-map-host .result-main span { white-space: normal; }
}

.formal-map-host .formal-map-content-link-list {
  display: grid;
  gap: 8px;
}

.formal-map-host .formal-map-content-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--panel-2) 90%, transparent);
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.formal-map-host .formal-map-content-link:hover {
  border-color: color-mix(in srgb, var(--gold) 70%, var(--line));
  background: color-mix(in srgb, var(--panel-2) 78%, var(--gold) 7%);
  transform: translateY(-1px);
}

.formal-map-host .formal-map-content-link-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
}

.formal-map-host .formal-map-content-link-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.formal-map-host .formal-map-content-link strong,
.formal-map-host .formal-map-content-link small {
  display: block;
}

.formal-map-host .formal-map-content-link strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.formal-map-host .formal-map-content-link small {
  margin-top: 3px;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.3;
}

.formal-map-host .formal-map-content-link > b {
  color: var(--gold);
  font-size: 16px;
}
