:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #252b27;
  background: #fff;
  --line: #e4e7e4;
  --muted: #717872;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1240px; margin: 0 auto; padding: 36px 28px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
h1 { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -.7px; }
h2 { margin: 0; font-size: 19px; }
p { line-height: 1.6; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button { border: 1px solid #d5dbd6; border-radius: 6px; background: white; padding: 9px 13px; }
button:hover { background: #f4f6f3; }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid #397b49; outline-offset: 3px; }
input, select, textarea { background: white; border: 1px solid #d5dbd6; border-radius: 6px; padding: 10px; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid #9cbc9e; outline-offset: 1px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.primary { background: #293b2d; color: white; border-color: #293b2d; }
.primary:hover { background: #3a4e3e; }
.location-panel { display: flow-root; }
.location-panel.is-animating { overflow: hidden; }
.location-mode { margin: -12px 0 12px; }
.location-mode button { min-height: 32px; padding: 4px 0; border: 0; background: none; color: #386a40; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.city-controls { display: contents; }
.location-controls { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 24px; }
.country-label { width: 230px; }
.city-label { flex: 1; }
.location-controls .distance-label { width: 150px; }
#search, #radius, #country, #city { min-height: 44px; }
.search-options { position: relative; }
.icon-button { display: grid; place-items: center; position: relative; width: 44px; height: 44px; padding: 10px; }
.icon-button svg { width: 22px; height: 22px; }
.search-options-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 5; width: min(320px, calc(100vw - 36px)); padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 8px 24px #17201818; }
.search-options-panel label { min-height: 44px; cursor: pointer; }
.location-error-actions { display: flex; gap: 8px; margin: -8px 0 20px; }
.location-error-actions button { font-size: 12px; }
.search-origin { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: -12px 0 24px; }
.search-origin span { font-size: 12px; color: var(--muted); }
.notice { padding: 0; border: 0; background: none; display: inline-flex; align-items: center; gap: 6px; color: #7a6b43; font-size: 12px; white-space: nowrap; }
.notice:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }
.notice.is-missing { color: #dc2626; font-weight: 600; }
.notice-icon { width: 17px; height: 17px; flex: 0 0 17px; }
.search-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; margin-bottom: 24px; }
.place-group { position: relative; border: 1px solid #cfd6d0; border-radius: 8px; background: #fff; }
.place-group.selected { border-color: #6c956f; background: #edf5e9; }
.group-heading { display: flex; align-items: stretch; }
.group-heading button { min-height: 60px; border: 0; border-radius: 7px; background: transparent; }
.group-heading .group-toggle { flex: 1; min-width: 0; padding: 16px 20px; text-align: left; font-size: 16px; font-weight: 650; }
.group-toggle[aria-pressed="true"], .group-toggle[aria-pressed="mixed"] { color: #285e32; }
.group-heading [data-choose-group] { min-width: 110px; padding: 12px; border-left: 1px solid var(--line); border-radius: 0 7px 7px 0; font-size: 12px; color: var(--muted); white-space: nowrap; }
.group-heading button:hover { background: #386a400c; }
.group-options { position: absolute; top: calc(100% + 8px); left: -1px; right: -1px; z-index: 6; display: grid; gap: 4px; padding: 8px 16px; max-height: min(320px, 60vh); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 8px 24px #17201818; }
.group-options label { min-height: 44px; cursor: pointer; }
.place-group input { margin: 0; accent-color: #386a40; }
.status { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; background: #f2f5f1; margin: -8px 0 18px; font-size: 12px; border-radius: 5px; line-height: 1.6; }
.status.error { color: #99432e; background: #fff1ec; }
.status button { padding: 3px 8px; white-space: nowrap; font-size: 11px; }
.list-controls { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; }
.inline-label { flex-direction: row; align-items: center; color: var(--muted); }
.inline-label select { font-size: 12px; padding: 7px 24px 7px 9px; color: #252b27; }
.sort-label { margin-left: auto; }
.muted { color: var(--muted); font-size: 12px; }
.scroll-hint { display: none; color: var(--muted); font-size: 10px; margin-left: auto; }
#area-label { margin-left: auto; }
.table-scroll { overflow-x: auto; border-top: 1px solid var(--line); }
table { width: 100%; min-width: 920px; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
table.without-reviews { min-width: 660px; }
.col-name { width: 220px; }
.col-relative { width: 240px; }
.col-overall { width: 150px; }
.col-distance { width: 85px; }
.col-reviews { width: 112px; }
th { text-align: left; background: #f7f8f6; border-bottom: 1px solid var(--line); padding: 0; font-weight: 500; }
th:first-child { position: sticky; left: 0; z-index: 3; }
th button { display: flex; align-items: center; justify-content: space-between; gap: 5px; width: 100%; padding: 12px; border: 0; border-radius: 0; background: none; text-align: left; font-size: 11px; line-height: 1.5; }
th button:hover { background: #eaf0e7; }
th[aria-sort="ascending"], th[aria-sort="descending"] { color: #28643a; }
.sort-arrow { color: #9aab97; font-size: 12px; }
th[aria-sort="ascending"] .sort-arrow, th[aria-sort="descending"] .sort-arrow { color: #28643a; }
td { padding: 16px 12px; border-bottom: 1px solid var(--line); font-size: 12px; vertical-align: middle; background: white; }
.name-cell { position: sticky; left: 0; z-index: 1; padding-right: 4px; border-right: 1px solid #f1f3ef; }
.venue-row:hover td, .venue-row.is-expanded td { background: #f6f9f3; }
.venue-row { cursor: pointer; }
.venue-name { display: block; width: 100%; font-size: 13px; font-weight: 600; padding: 0; margin-bottom: 5px; text-align: left; color: inherit; text-decoration: none; line-height: 1.5; }
.venue-name::after { content: '\00a0↗'; color: #849080; font-weight: 400; }
.venue-name:hover { text-decoration: underline; }
.venue-meta, .secondary { display: block; color: var(--muted); font-size: 10px; line-height: 1.6; font-weight: 400; }
.venue-identity { display: flex; align-items: center; gap: 8px; }
.venue-labels { min-width: 0; }
.venue-type-icon { width: 28px; height: 28px; flex: 0 0 28px; }
.type-bar { color: #b86a17; }
.type-club { color: #8e52bd; }
.type-music { color: #178378; }
.type-park { color: #2e9547; }
.type-garden { color: #679938; }
.type-trail { color: #779444; }
.type-museum { color: #3673bd; }
.type-gallery { color: #b4489a; }
.type-landmark { color: #a36e24; }
.type-market { color: #c46528; }
.type-shopping { color: #a54cc0; }
.type-entertainment { color: #ca4c73; }
.type-recreation { color: #3986b4; }
.type-beach { color: #189eb4; }
.type-wildlife { color: #629637; }
.type-cafe { color: #9b6a3c; }
.type-library { color: #6468ad; }
.type-wellness { color: #329b8a; }
.type-hotel { color: #667db1; }
.type-other { color: #788375; }
.activity { font-size: 13px; }
.activity strong { font-weight: 600; }
.metric-number { display: inline-block; padding: 1px 3px; border-bottom: 3px solid var(--metric-color); border-radius: 3px; color: #202820; background: color-mix(in srgb, var(--metric-color) 20%, white); font-size: 15px; font-weight: 650; line-height: 1.4; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric-number.neutral { background: #f5f6f4; }
.metric-number.unknown { color: var(--muted); background: none; border-color: transparent; }
.relative-content { display: grid; grid-template-columns: minmax(0, 1fr) 56px; align-items: center; gap: 10px; }
.relative-graph { min-width: 0; }
.metric-top { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.metric-top .secondary { display: block; }
.sparkline { display: flex; align-items: flex-end; gap: 2px; height: 34px; width: 100%; border: 0; border-radius: 0; padding: 0; background: none; }
.sparkline:hover { background: #eaf0e6; }
.mini-column { position: relative; height: 100%; flex: 1; display: flex; align-items: flex-end; }
.mini-bar { width: 100%; height: var(--height); min-height: 2px; background: #c3cdbd; border-radius: 1px 1px 0 0; }
.mini-column.current .mini-bar { background: #69875d; }
.mini-live { position: absolute; bottom: 0; height: var(--live-height); min-height: 2px; width: 100%; border: 1px solid #ad5f8d; background: #ad5f8d33; }
.spark-axis { display: flex; justify-content: space-between; font-size: 9px; color: #7d8778; margin-top: 4px; }
.overall-value { font-size: 14px; font-weight: 600; }
.details-row td { padding: 0; }
.expanded { padding: 20px 22px 24px; background: #fafbf9; width: min(720px, calc(100vw - 56px)); }
.chart-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.chart-heading h3 { margin: 0; font-size: 13px; font-weight: 600; }
.chart-heading select { font-size: 12px; padding: 6px 8px; }
.chart-description { min-height: 20px; font-size: 11px; color: var(--muted); margin: 10px 0 12px; }
.hour-chart { display: flex; align-items: flex-end; gap: 5px; height: 125px; border-bottom: 1px solid #c8d0c4; }
.hour-column { position: relative; flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0; display: flex; align-items: flex-end; background: transparent; }
.hour-column:hover { background: #e6ebe3; }
.hour-bar { width: 100%; height: var(--height); min-height: 2px; border-radius: 2px 2px 0 0; background: #c6d0c0; }
.hour-column.current .hour-bar { background: #608258; }
.hour-live { position: absolute; width: 100%; height: var(--live-height); min-height: 3px; bottom: 0; border: 2px solid #ad5f8d; background: #ad5f8d24; border-radius: 2px 2px 0 0; pointer-events: none; }
.chart-axis { display: grid; grid-template-columns: repeat(6, 1fr); margin: 7px 0 12px; color: var(--muted); font-size: 10px; }
.chart-legend { display: flex; gap: 16px; font-size: 10px; color: var(--muted); }
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.chart-legend i { width: 7px; height: 7px; background: #c6d0c0; }
.chart-legend i.live { background: #ad5f8d; }
.venue-facts { display: flex; flex-wrap: wrap; gap: 7px 24px; margin: 18px 0 0; color: #626b60; font-size: 11px; line-height: 1.7; }
.venue-facts b { color: #303b2c; font-weight: 500; }
.venue-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 13px; font-size: 12px; }
a { color: #386a40; text-underline-offset: 3px; }
.empty { padding: 35px 12px; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); }
footer p { margin: 0 0 6px; }
footer a { font-size: 10px; color: #7b8577; }
footer { color: var(--muted); font-size: 11px; padding-top: 18px; line-height: 1.7; }
dialog { width: min(460px, calc(100% - 32px)); padding: 0; border: 1px solid #d5dbd6; border-radius: 10px; max-height: 90dvh; box-shadow: 0 16px 80px #0002; color: #252b27; }
dialog::backdrop { background: #17201865; }
.dialog-body { padding: 24px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.dialog-heading button { padding: 4px 8px; border: 0; }
.dialog-body label { margin-top: 16px; }
.api-key-label { display: flex; align-items: center; gap: 6px; }
#api-key-warning { width: 16px; height: 16px; color: #dc2626; }
.dialog-body textarea { resize: vertical; font-size: 12px; }
.token-help-link { display: block; margin-top: 10px; padding: 0; border: 0; background: none; color: #386a40; font-size: 12px; line-height: 1.7; text-decoration: underline; text-underline-offset: 3px; }
.token-help-link:hover { background: none; }
.token-help-content { font-size: 13px; line-height: 1.7; }
.token-help-content ol { margin: 0; padding-left: 20px; }
.token-help-content li + li { margin-top: 14px; }
.token-help-content a { color: #386a40; }
.help { color: var(--muted); font-size: 11px; line-height: 1.7; margin: 10px 0 0; }
.checkbox-label { flex-direction: row; align-items: center; line-height: 1.5; }
.checkbox-label input { accent-color: #386a40; }
.advanced { margin-top: 18px; }
.advanced summary { cursor: pointer; color: #697366; font-size: 12px; }
.dialog-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.cache-options { padding-top: 16px; border-top: 1px solid var(--line); }
.local-actions { display: flex; gap: 10px; margin-top: 14px; }
.local-actions button { font-size: 11px; }
.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; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
  .search-types { grid-template-columns: 1fr; }
  main { padding: 24px 18px; }
  header { margin-bottom: 22px; }
  header button { font-size: 11px; padding: 8px 9px; }
  h1 { font-size: 22px; }
  .location-controls { flex-wrap: wrap; }
  .country-label, .city-label { width: calc(50% - 5px); flex: 1 1 calc(50% - 5px); }
  .location-controls .distance-label { flex: 1; }
  .header-actions { flex-direction: column; align-items: flex-end; gap: 6px; }
  .notice { font-size: 11px; }
  .list-controls { gap: 9px; flex-wrap: wrap; }
  .inline-label select { max-width: 140px; padding-right: 12px; font-size: 11px; }
  #area-label { flex-basis: 100%; order: -1; font-size: 11px; }
  .scroll-hint { display: inline; }
  table.without-reviews { min-width: 660px; }
.col-name { width: 180px; }
  .col-relative { width: 180px; }
  table { min-width: 1036px; }
  td { padding: 13px 10px; }
  th button { padding: 10px; }
  .venue-name { font-size: 12px; }
  .venue-meta { font-size: 10px; }
  .expanded { padding: 16px 12px 20px; width: calc(100vw - 36px); }
  .hour-chart { gap: 3px; height: 110px; }
  .venue-facts { gap: 6px 15px; }
  .dialog-body { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.loading-progress { position: relative; border: 1px solid var(--line); border-radius: 8px; margin: -8px 0 22px; font-size: 12px; }
.load-details > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 82px 10px 14px; cursor: pointer; list-style: none; }
.load-details > summary::-webkit-details-marker { display: none; }
#load-title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.load-spinner { width: 14px; height: 14px; flex: 0 0 14px; border: 2px solid #d1ddce; border-top-color: #386a40; border-radius: 50%; animation: loading-spin .8s linear infinite; }
.load-details-label { color: #386a40; font-size: 11px; white-space: nowrap; }
.load-details-label::after { content: ' \25be'; }
.load-details[open] > summary .load-details-label::after { content: ' \25b4'; }
.load-extra { padding: 12px 0 14px; margin: 0 14px; border-top: 1px solid var(--line); }
#stop-loading { position: absolute; right: 12px; top: 8px; min-height: 32px; padding: 5px 10px; font-size: 11px; }
.loading-progress[data-state="complete"] .load-details > summary, .loading-progress[data-state="error"] .load-details > summary, .loading-progress[data-state="stopped"] .load-details > summary { padding-right: 14px; }
.load-track { display: flex; align-items: center; gap: 12px; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .load-spinner { animation: none; } }
.load-track progress { flex: 1; min-width: 0; height: 8px; accent-color: #386a40; }
.load-track a { white-space: nowrap; font-size: 11px; }
.load-stages { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 14px; padding: 0; }
.load-stages li { display: flex; align-items: center; gap: 7px; flex: 1 1 145px; color: var(--muted); font-size: 11px; }
.step-number { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; font-variant-numeric: tabular-nums; }
.load-stages [data-state="current"] { color: #285e32; font-weight: 650; }
.load-stages [data-state="current"] .step-number { color: white; border-color: #386a40; background: #386a40; }
.load-stages [data-state="done"] { color: #386a40; }
.load-stages [data-state="done"] .step-number { border-color: #9cbc9e; background: #edf5e9; }
#load-summary { margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
#load-warning { margin: 8px 0; color: #99432e; overflow-wrap: anywhere; }
.crawler-details { margin-top: 14px; color: var(--muted); font-size: 11px; }
.crawler-details summary { cursor: pointer; }
#provider-status { margin: 8px 0 0; overflow-wrap: anywhere; }
.request-log { margin-top: 12px; }
.request-log-heading { display: flex; align-items: center; justify-content: space-between; min-height: 32px; color: var(--muted); font-size: 11px; }
#request-latest { border: 0; padding: 5px 8px; background: transparent; color: #386a40; font-size: 11px; }
.request-log code { display: block; font-size: 10px; overflow-wrap: anywhere; white-space: normal; }
#request-history { list-style: none; padding: 0; margin: 4px 0 0; max-height: 320px; overflow: auto; overflow-anchor: none; scrollbar-gutter: stable; overscroll-behavior: contain; }
#request-history:focus-visible { outline: 2px solid #397b49; outline-offset: 3px; }
.request-log li { padding: 8px 0; border-top: 1px solid var(--line); }
.request-log li > span { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.request-log b { font-weight: 500; font-size: 11px; }
.request-log small { white-space: nowrap; color: var(--muted); }
.loading-progress > .help { margin-bottom: 0; font-size: 10px; }
.row-loading, .pending { color: #637256; font-size: 10px; }
