:root {
  font: 16px/1.5 system-ui, "Apple SD Gothic Neo", sans-serif;
  background: #f4f4ec;
  color: #202a24;
  --accent: #32644c;
  --line: #d9dbd0;
}
* { box-sizing: border-box; }
body { margin: 0; }
header, main { max-width: 1560px; margin: auto; padding-inline: clamp(16px, 4vw, 62px); }
header { min-height: 63px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { color: inherit; text-decoration: none; font-size: 1.12rem; font-weight: 800; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
header button, dialog button { border: 1px solid #a9b3a7; background: #fffdf6; padding: 6px 12px; border-radius: 6px; }
.explore { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; padding: 27px 0 22px; }
h1 { margin: 0; letter-spacing: -.065em; font-size: clamp(1.85rem, 4.3vw, 3.4rem); line-height: 1.1; }
.explore p { margin: 12px 0 0; color: #4e5b52; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters label, .search { font-weight: 650; font-size: .86rem; display: grid; gap: 5px; }
select, input { padding: 9px; border-radius: 6px; border: 1px solid #b7bdb0; background: #fffefa; min-width: 90px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(275px, 360px); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 30px; min-height: 560px; }
.map-frame { position: relative; min-width: 0; min-height: 460px; background: #e4e9df; }
#map { position: absolute; inset: 0; }
.map-note { position: absolute; z-index: 500; left: 12px; bottom: 24px; margin: 0; background: #fffefa; border: 1px solid var(--line); border-radius: 6px; max-width: calc(100% - 24px); padding: 7px 10px; font-size: .84rem; }
.panel { padding: 17px; background: #fffefa; max-height: 650px; overflow: auto; }
#summary { min-height: 1.4em; font-size: .87rem; color: #4e5b52; }
#results { display: grid; gap: 3px; }
.result { text-align: start; display: grid; gap: 2px; padding: 10px; border: 0; border-top: 1px solid var(--line); background: transparent; }
.result:hover, .result:focus-visible { background: #edf4e8; }
.result span, .record span { color: #4e5b52; font-size: .82rem; overflow-wrap: anywhere; }
#detail h2 { line-height: 1.35; }
#detail p { margin-top: 0; }
.record { display: grid; gap: 2px; border-top: 1px solid var(--line); padding: 9px 0; }
.back { border: 0; padding: 0; background: transparent; text-decoration: underline; color: var(--accent); }
dialog { width: min(540px, calc(100% - 2rem)); border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem; }
dialog::backdrop { background: #17282185; }
dialog form { float: right; }
dialog a { color: var(--accent); }
@media (max-width: 710px) {
  .workspace { grid-template-columns: 1fr; }
  .map-frame { min-height: max(300px, 46svh); }
  .panel { max-height: 500px; }
}
.entry { padding-top: 36px; padding-bottom: 30px; max-width: 960px; }
.entry h1 { margin: .55em 0 .35em; }
.entry a, header nav a, .entry-footer a, .record a { color: var(--accent); }
.entry-list { display: grid; padding: 0; list-style: none; }
.entry-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.entry-list span { color: #4e5b52; font-size: .9rem; }
.entry-nav { display: flex; align-items: center; gap: 14px; }
.entry-fields { max-width: 650px; }
.entry-fields div { display: grid; grid-template-columns: 8rem 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.entry-fields dd { margin: 0; }
.entry-footer { margin: auto; max-width: 1560px; padding: 10px clamp(16px, 4vw, 62px) 32px; display: flex; flex-wrap: wrap; gap: 15px; align-items: center; font-size: .87rem; }
.analytics-button { border: 1px solid var(--line); border-radius: 6px; background: #fffefa; padding: 5px 10px; }
.timeline { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; }
.timeline input { flex: 1 1 160px; min-width: 120px; accent-color: var(--accent); }
.timeline label { display: flex; gap: 5px; align-items: center; }
.timeline select { min-width: unset; padding: 4px 7px; }
.timeline button { background: #fffefa; border: 1px solid var(--line); border-radius: 5px; padding: 5px 9px; }
.timeline output { min-width: 8em; font-weight: 650; }
#naver-points { z-index: 450; position: absolute; inset: 0; height: 100%; width: 100%; pointer-events: none; }
