:root {
  color-scheme: light;
  --paper: #fafafa;
  --ink: #171717;
  --muted: #737373;
  --line: #e5e5e5;
  --white: #fff;
  --accent: #171717;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, select, input { font: inherit; }
button, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled, select:disabled { cursor: default; opacity: .55; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #737373; outline-offset: 3px; }
.page-shell { padding: 0 20px; min-height: 100dvh; }
.site-header { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.header-identity { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--accent); color: #fff; }
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { display: block; font-size: 13px; line-height: 1.35; font-weight: 650; letter-spacing: -.25px; }
.brand-location { display: block; font-size: 10px; line-height: 1.5; color: var(--muted); }
h1 { font-size: 15px; font-weight: 600; line-height: 28px; letter-spacing: -.35px; margin: 0; padding-left: 24px; border-left: 1px solid var(--line); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.survey-control { display: flex; align-items: center; gap: 10px; min-width: 0; }
.survey-control label { font-size: 12px; color: var(--muted); }
.select-wrap { position: relative; width: 208px; min-width: 0; }
select { width: 100%; height: 40px; padding: 0 36px 0 12px; appearance: none; border: 1px solid #e5e5e5; border-radius: 8px; background: var(--white); color: var(--ink); font-size: 12px; font-weight: 500; text-overflow: ellipsis; cursor: pointer; box-shadow: 0 1px 2px #00000005; }
select:hover:not(:disabled) { border-color: #a3a3a3; }
.select-wrap svg { pointer-events: none; position: absolute; width: 16px; height: 16px; right: 11px; top: 12px; color: var(--muted); }
.copy-button { background: var(--ink); display: flex; align-items: center; justify-content: center; gap: 7px; height: 40px; border: 1px solid var(--ink); border-radius: 8px; color: var(--white); padding: 0 14px; font-size: 12px; font-weight: 550; white-space: nowrap; box-shadow: 0 1px 2px #00000005; }
.copy-button svg { width: 16px; height: 16px; flex-shrink: 0; }
.map-section { height: calc(100dvh - 116px); min-height: 420px; position: relative; border: 1px solid #d4d4d4; border-radius: 12px; overflow: hidden; isolation: isolate; background: #e8e8e8; }
#map { height: 100%; width: 100%; background: #e8e8e8; z-index: 0; }
#map:focus-visible { outline: 3px solid #737373; outline-offset: -3px; }
.map-message { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 26px; background: #f0f0f0; }
.message-icon { width: 48px; height: 48px; border: 1px solid #dedede; border-radius: 12px; padding: 12px; margin-bottom: 18px; color: #737373; background: #fafafa; }
.map-message h2 { font-weight: 600; font-size: 18px; letter-spacing: -.3px; margin: 0 0 8px; }
.map-message p { color: var(--muted); font-size: 12px; line-height: 1.65; max-width: 285px; margin: 0; }
.text-button { margin-top: 18px; background: transparent; border: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; font-size: 12px; padding: 5px; }
.map-toolbar { position: absolute; top: 14px; left: 14px; z-index: 500; }
.map-button { display: flex; align-items: center; gap: 7px; height: 38px; border: 1px solid #e5e5e5; border-radius: 8px; padding: 0 11px; color: var(--ink); background: var(--white); box-shadow: 0 2px 8px #0000000a; font-size: 11px; font-weight: 500; }
.map-button:hover { background: #f5f5f5; }
.copy-button:hover:not(:disabled) { background: #333; border-color: #333; }
.map-button svg { width: 17px; height: 17px; flex-shrink: 0; }
.survey-caption { position: absolute; bottom: 32px; left: 14px; z-index: 500; display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid #e5e5e5; border-radius: 7px; background: #fffffff2; font-size: 11px; box-shadow: 0 2px 8px #0000000a; }
.caption-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.tile-status { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); z-index: 500; max-width: calc(100% - 220px); padding: 9px 12px; margin: 0; border-radius: 7px; font-size: 11px; line-height: 1.5; color: var(--muted); background: #fffffff2; text-align: center; pointer-events: none; }
.copy-fallback { padding: 12px 0; }
.copy-fallback label { display: block; font-size: 12px; margin-bottom: 7px; }
.copy-fallback input { display: block; width: 100%; padding: 12px; border: 1px solid var(--line); background: var(--white); border-radius: 8px; color: var(--ink); font-size: 12px; }
.site-footer { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 10px; }
.site-footer p { margin: 0; }
.mobile-help { display: none; }
.noscript { font-size: 13px; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.leaflet-control-zoom.leaflet-bar { border: 1px solid #e5e5e5; box-shadow: 0 2px 8px #0000000a; border-radius: 8px; overflow: hidden; }
.leaflet-bar a { color: var(--ink); background: var(--white); width: 36px; height: 36px; line-height: 36px; font-weight: 400; }
.leaflet-bar a:hover { background: #f5f5f5; }
.leaflet-bar a.leaflet-disabled { background: #fafafa; color: #a3a3a3; }
.leaflet-right .leaflet-control { margin-right: 14px; }
.leaflet-top .leaflet-control { margin-top: 14px; }
.leaflet-bottom .leaflet-control-scale { margin-left: 14px; margin-bottom: 7px; }
.leaflet-control-scale-line { color: #525252; background: #ffffffd9; border-color: #737373; font-size: 9px; }
.leaflet-container .leaflet-control-attribution { background: #fffffff0; color: #737373; font-size: 9px; padding: 3px 7px; margin: 0; }
.leaflet-control-attribution a { color: #525252; }
@media (max-width: 820px) {
  .header-identity { gap: 16px; }
  h1 { padding-left: 16px; }
  .survey-control label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .select-wrap { width: 184px; }
}
@media (max-width: 680px) {
  .page-shell { padding: 0 12px; }
  .site-header { min-height: 120px; padding: 14px 0 12px; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 14px; }
  .header-identity { justify-content: space-between; gap: 14px; }
  .brand { gap: 8px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
  .brand-mark svg { width: 18px; height: 18px; }
  .brand-name { font-size: 12px; }
  .brand-location { font-size: 10px; }
  h1 { font-size: 14px; border: 0; padding: 0; }
  .header-actions { justify-content: stretch; gap: 8px; }
  .survey-control { flex: 1; }
  .select-wrap { width: 100%; }
  select { height: 40px; font-size: 12px; }
  .copy-button { padding: 0 11px; font-size: 11px; }
  .map-section { height: calc(100dvh - 158px); min-height: 420px; }
  .map-toolbar { left: 11px; top: 11px; }
  .map-button { height: 36px; font-size: 11px; padding: 0 10px; }
  .leaflet-right .leaflet-control { margin-right: 11px; }
  .leaflet-top .leaflet-control { margin-top: 11px; }
  .leaflet-bar a { width: 34px; height: 34px; line-height: 34px; }
  .survey-caption { left: 11px; bottom: 43px; font-size: 10px; max-width: calc(100% - 22px); }
  .leaflet-bottom .leaflet-control-scale { margin-left: 11px; margin-bottom: 20px; }
  .leaflet-container .leaflet-control-attribution { font-size: 8px; }
  .tile-status { top: 59px; width: auto; max-width: calc(100% - 100px); font-size: 10px; }
  .site-footer { min-height: 38px; font-size: 9px; gap: 8px; }
  .map-help { display: none; }
}
@media (hover: none) {
  .desktop-help { display: none; }
  .mobile-help { display: inline; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
