@font-face {
  font-family: "Instrument Serif";
  src: url("heading.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("interface.woff") format("woff");
  font-weight: 400 800;
  font-display: swap;
}
:root {
  --background: #f5f4ee;
  --paper: #fffef9;
  --ink: #233329;
  --muted: #606e60;
  --green: #31553e;
  --deep-green: #254632;
  --line: #dee3d7;
  --soft: #eef2e8;
  --ochre: #9b6139;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--background);
  font: 15px/1.45 var(--sans);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .55; }
a { color: var(--green); }
:focus-visible { outline: 2px solid #557e52; outline-offset: 3px; }
h1, h2, h3, p, ul, ol { margin: 0; }
[hidden] { display: none !important; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; flex-shrink: 0; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1536px; min-height: 68px; margin: auto; padding: 0 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 750; letter-spacing: -.045em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; color: #fbf7e4; background: var(--deep-green); width: 39px; height: 39px; border-radius: 11px; }
.brand-mark .icon { width: 25px; height: 25px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.walkers-button, .account-button, .signin-button { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; min-height: 42px; background: transparent; border: 1px solid var(--line); border-radius: 9px; font-weight: 680; font-size: 13px; text-decoration: none; }
.walkers-button:hover, .account-button:hover, .signin-button:hover { background: var(--soft); }
.walkers-button .icon { width: 17px; height: 17px; color: var(--green); }
.account-button { border-color: transparent; padding: 4px 5px; }
.avatar { display: inline-grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; border-radius: 50%; background: #e3ebdc; color: var(--deep-green); font-size: 12px; font-weight: 750; }
#account-name { max-width: 124px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layout { max-width: 1536px; padding: 30px 42px 32px; margin: auto; }
.intro { margin-bottom: 25px; }
h1 { font: 400 clamp(48px, 4.6vw, 72px)/.99 var(--serif); letter-spacing: -.018em; margin-bottom: 9px; }
.intro p { font-size: 15px; color: var(--muted); }
.workspace { --map-height: clamp(500px, calc(100svh - 300px), 780px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(295px, 345px); align-items: start; gap: 20px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 1px 3px #2e3f2210; }
.map-panel { min-width: 0; overflow: hidden; }
.map-header { display: flex; height: 54px; padding: 0 17px 0 19px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 12px; }
.map-heading { display: flex; align-items: center; gap: 8px; }
.map-heading .icon { color: var(--green); width: 18px; height: 18px; }
.map-heading h2, .sidebar h2 { font-size: 15px; font-weight: 750; letter-spacing: -.02em; }
.map-count { color: var(--green); background: var(--soft); border-radius: 20px; font-weight: 670; padding: 4px 10px; font-size: 12px; white-space: nowrap; }
.map-frame { position: relative; height: var(--map-height); isolation: isolate; background: #e4e9d9; }
#atlas-map { position: absolute; inset: 0; z-index: 0; background: #e6ebdd; font-family: var(--sans); }
.map-loading { position: absolute; top: 50%; left: 50%; max-width: 70%; transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 8px; background: var(--paper); text-align: center; }
.north { position: absolute; top: 16px; left: 18px; display: grid; justify-items: center; gap: 2px; color: #384b3c; font-size: 10px; font-weight: 800; pointer-events: none; }
.north i { display: block; width: 17px; height: 23px; background: var(--green); clip-path: polygon(50% 0, 100% 100%, 50% 72%, 0 100%); }
.map-tools { position: absolute; top: 13px; right: 13px; display: grid; gap: 8px; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.icon-button:hover { background: var(--soft); }
.icon-button.quiet { border-color: transparent; background: transparent; width: 34px; height: 34px; }
.icon-button.quiet:hover { background: var(--soft); }
.zoom-group { box-shadow: 0 2px 8px #2b443222; border-radius: 9px; }
.zoom-group button:first-child { border-radius: 9px 9px 0 0; }
.zoom-group button:last-child { border-radius: 0 0 9px 9px; border-top: 0; }
#map-fit { box-shadow: 0 2px 8px #2b443222; }
.map-footer { min-height: 50px; border-top: 1px solid var(--line); display: flex; align-items: center; padding: 7px 17px 7px 19px; justify-content: space-between; gap: 10px; }
.legend { display: flex; align-items: center; gap: 18px; padding: 0; list-style: none; color: var(--muted); font-size: 12px; white-space: nowrap; }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend-pin { width: 10px; height: 10px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid #638064; background: #fbfaec; }
.legend-pin.climbed { width: 13px; height: 13px; background: var(--green); border-color: var(--green); color: white; }
.legend-pin .icon { width: 9px; height: 9px; stroke-width: 2.6; }
.legend-camera { color: var(--ochre); display: inline-flex; }
.legend-camera .icon { width: 15px; height: 15px; }
.text-button { border: 0; padding: 4px 1px; background: none; color: var(--green); font-weight: 680; font-size: 13px; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.credits-button { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.sidebar { display: grid; grid-template-rows: auto minmax(0, 1fr); height: calc(var(--map-height) + 106px); gap: 14px; min-width: 0; }
.progress-panel { padding: 17px 18px 18px; background: #ecf1e6; border-color: #dae2d3; }
.progress-panel h2 { color: #365641; }
.progress-numbers { margin: 5px 0 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.progress-numbers strong { font: 400 52px/.94 var(--serif); white-space: nowrap; color: var(--deep-green); }
.progress-numbers span { font-size: 13px; color: #4d6552; text-align: right; }
progress { appearance: none; -webkit-appearance: none; width: 100%; height: 7px; border: 0; display: block; border-radius: 8px; overflow: hidden; background: #d8e2d3; color: var(--green); }
progress::-webkit-progress-bar { background: #d8e2d3; border-radius: 8px; }
progress::-webkit-progress-value { background: var(--green); border-radius: 8px; }
progress::-moz-progress-bar { background: var(--green); border-radius: 8px; }
.checklist-panel { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.checklist-header { padding: 16px 16px 11px; border-bottom: 1px solid var(--line); }
.checklist-title { margin: 0 1px 11px; display: flex; align-items: center; justify-content: space-between; }
.list-count { font-size: 12px; color: var(--muted); }
.field { display: flex; align-items: center; position: relative; border: 1px solid var(--line); border-radius: 8px; min-height: 39px; background: #fcfcf6; color: var(--muted); }
.field:focus-within { border-color: #6f8a6a; box-shadow: 0 0 0 1px #6f8a6a; }
.field .icon { width: 16px; height: 16px; position: absolute; pointer-events: none; }
.search-field .icon { left: 10px; }
.field input, .field select { width: 100%; color: var(--ink); font-size: 13px; border: 0; background: none; outline: 0; min-height: 38px; }
.field input { padding: 7px 10px 7px 33px; }
.field input::placeholder { color: #677366; }
.area-field { margin: 8px 0 10px; }
.field select { appearance: none; padding: 7px 30px 7px 10px; cursor: pointer; }
.area-field .icon { right: 10px; width: 15px; height: 15px; }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 3px; gap: 3px; background: #f1f2e9; border-radius: 8px; }
.filters button { min-height: 30px; font-size: 12px; border: 1px solid transparent; font-weight: 650; border-radius: 6px; background: transparent; color: #59675a; }
.filters button[aria-pressed="true"] { background: var(--paper); color: var(--deep-green); border-color: var(--line); }
.filters button:hover { color: var(--deep-green); }
.fell-list { list-style: none; padding: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #bccab7 transparent; }
.fell-row { min-height: 57px; margin: 0 8px; padding: 0 8px; border-bottom: 1px solid #ebece3; display: grid; align-items: center; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 6px; }
.fell-row:last-child { border-bottom-color: transparent; }
.fell-row:hover, .fell-row.is-selected { border-radius: 7px; background: #f0f3e9; }
.fell-toggle { appearance: none; width: 19px; height: 19px; margin: 0; border-radius: 5px; border: 1.4px solid #aebca9; background: var(--paper); display: grid; place-content: center; cursor: pointer; }
.fell-toggle:checked { background: var(--green); border-color: var(--green); }
.fell-toggle:checked::after { content: ""; width: 8px; height: 4px; border-left: 2px solid white; border-bottom: 2px solid white; transform: rotate(-45deg) translate(0, -1px); }
.fell-toggle:disabled { opacity: .5; cursor: default; }
.fell-name { text-align: left; border: 0; background: none; padding: 7px 3px 7px 0; min-height: 53px; width: 100%; display: grid; align-content: center; }
.fell-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 730; }
.fell-name span { font-size: 11px; color: var(--muted); }
.fell-meter { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
#empty-list { padding: 22px 16px; text-align: center; color: var(--muted); font-size: 13px; }
#empty-list button { margin-top: 6px; }
.fell-marker { background: transparent; border: 0; display: grid; place-items: center; }
.pin-dot { display: grid; place-items: center; width: 10px; height: 10px; border: 1.5px solid #48664c; background: #fffcee; border-radius: 50%; box-shadow: 0 1px 2px #2b45295e; transition: transform .14s; }
.fell-marker:hover .pin-dot, .fell-marker:focus-visible .pin-dot { transform: scale(1.36); }
.fell-marker.is-climbed .pin-dot { color: white; background: #28523a; border-color: #fffdef; width: 15px; height: 15px; }
.pin-dot .icon { width: 9px; height: 9px; stroke-width: 3; }
.fell-marker.has-photo .pin-dot { width: 22px; height: 20px; border-radius: 7px; color: #fffef6; background: #925a37; border-color: #fff7e6; }
.fell-marker.has-photo .pin-dot .icon { width: 12px; height: 12px; stroke-width: 1.7; }
.fell-marker.is-selected .pin-dot { transform: scale(1.26); outline: 2px solid #365741; outline-offset: 2px; }
.fell-marker.is-selected .pin-dot:not(:has(.icon)) { background: #f5dea7; }
.map-place, .map-water-label { pointer-events: none; text-align: center; white-space: nowrap; }
.map-place { color: #505c4f; font-size: 11px; font-weight: 740; text-shadow: 0 1px #f8fae9, 1px 0 #f8fae9, -1px 0 #f8fae9, 0 -1px #f8fae9; }
.map-place.small { font-size: 10px; font-weight: 640; color: #657060; }
.map-water-label { font-size: 10px; color: #3d6266; font-style: italic; text-shadow: 0 1px #ddedef; }
#atlas-map .leaflet-control-attribution { background: #f4f6e8df; color: #485646; font-size: 9px; line-height: 1.6; }
#atlas-map .leaflet-control-attribution a { color: #365a43; }
#atlas-map .leaflet-control-scale-line { border-color: #5d6d5f; color: #304936; background: #fcfdf37a; font: 10px/1.2 var(--sans); }
.fell-detail { position: absolute; z-index: 2; left: 14px; bottom: 25px; width: min(340px, calc(100% - 28px)); max-height: calc(100% - 48px); overflow-y: auto; padding: 15px 16px 14px; border-radius: 12px; background: var(--paper); border: 1px solid #d7e0d0; box-shadow: 0 6px 25px #233b2e2e; }
.detail-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.detail-area { color: var(--muted); font-size: 11px; font-weight: 700; }
.fell-detail h3 { font: 400 35px/1.02 var(--serif); margin: 2px 0 5px; }
.detail-meta { font-size: 12px; color: var(--muted); }
.detail-action { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 37px; padding: 6px 11px; font-size: 13px; font-weight: 720; border-radius: 7px; border: 1px solid var(--green); text-decoration: none; }
.primary-button { color: white; background: var(--green); }
.primary-button:hover { background: var(--deep-green); }
.secondary-button { border-color: var(--line); color: var(--green); background: var(--paper); }
.secondary-button:hover { background: var(--soft); }
.primary-button .icon, .secondary-button .icon { width: 15px; height: 15px; }
.gallery-section { border-top: 1px solid var(--line); padding-top: 10px; }
.gallery-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.gallery-title strong { font-size: 13px; }
.gallery-title .text-button { font-size: 12px; }
.gallery-note { font-size: 12px; color: var(--muted); }
.gallery-strip { display: flex; gap: 7px; padding: 3px 2px 4px; overflow: auto; scrollbar-width: thin; }
.gallery-thumbnail { width: 75px; height: 57px; flex-shrink: 0; border: 1px solid var(--line); padding: 0; background: var(--soft); border-radius: 7px; overflow: hidden; }
.gallery-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dialog { width: min(465px, calc(100vw - 32px)); max-height: calc(100svh - 40px); border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 15px 55px #17251f38; }
.dialog::backdrop { background: #263b31a0; backdrop-filter: blur(2px); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.dialog h2 { font: 400 38px/1 var(--serif); }
.dialog p, .dialog-note { font-size: 13px; color: var(--muted); }
.dialog-heading p { margin-top: 6px; }
.walker-list { list-style: none; padding: 0; }
.walker-row { padding: 11px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 11px; align-items: start; }
.walker-row strong, .walker-row small { display: block; overflow-wrap: anywhere; }
.walker-row small { color: var(--muted); }
.walker-row progress { margin-top: 7px; height: 5px; }
.walker-pct { color: var(--green); font-weight: 750; }
.dialog-note { margin-top: 12px; padding: 12px; background: var(--soft); border-radius: 8px; }
.form-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
#display-name { width: 100%; padding: 9px 11px; border: 1px solid #bccab7; border-radius: 7px; color: var(--ink); background: #fbfcf5; }
.account-note { margin: 8px 0 14px; }
.photo-dialog { width: min(900px, calc(100vw - 28px)); padding: 16px; }
.photo-dialog h2 { font-size: 30px; }
#full-photo { width: 100%; max-height: 68svh; object-fit: contain; display: block; border-radius: 8px; background: #edf0e8; }
.photo-caption { padding-top: 9px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; }
.remove-photo { color: #8a4733; }
.credits-list { padding-left: 18px; margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.credits-list li { margin-bottom: 9px; }
.toast { position: fixed; z-index: 999; bottom: 16px; left: 50%; transform: translateX(-50%); width: max-content; max-width: min(92vw, 560px); padding: 10px 14px; border-radius: 8px; background: var(--deep-green); color: #fffef5; font-size: 13px; box-shadow: 0 4px 14px #243b2940; }
.toast.is-error { background: #80472d; }
@media (min-width: 1600px) {
  .layout { padding-top: 39px; }
}
@media (max-width: 1100px) {
  .layout, .header-inner { padding-inline: 26px; }
  .workspace { grid-template-columns: minmax(0, 1fr) minmax(280px, 310px); gap: 14px; }
}
@media (max-width: 850px) {
  .layout { padding-top: 23px; }
  .layout, .header-inner { padding-inline: 17px; }
  .workspace { --map-height: 510px; gap: 12px; grid-template-columns: minmax(0, 1fr) 262px; }
  .intro { margin-bottom: 19px; }
}
@media (max-width: 680px) {
  .header-inner { min-height: 58px; padding-inline: 14px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand-mark { width: 35px; height: 35px; border-radius: 9px; }
  .brand-mark .icon { width: 22px; height: 22px; }
  .header-actions { gap: 5px; }
  .walkers-button, .signin-button { min-height: 36px; padding: 6px 8px; font-size: 12px; }
  .account-button { min-height: 37px; }
  #account-name { display: none; }
  .layout { padding: 20px 12px 25px; }
  .intro { padding-inline: 2px; margin-bottom: 15px; }
  .intro p { font-size: 13px; }
  h1 { font-size: 49px; margin-bottom: 6px; }
  .workspace { display: flex; flex-direction: column; align-items: stretch; --map-height: clamp(335px, 57svh, 480px); }
  .sidebar { height: auto; }
  .map-header { height: 45px; padding-inline: 12px; }
  .map-header h2 { font-size: 14px; }
  .map-footer { padding-inline: 10px; gap: 5px; min-height: 43px; }
  .legend { gap: 8px; font-size: 10.5px; }
  .legend li { gap: 4px; }
  .credits-button { font-size: 10px; }
  .checklist-panel { max-height: 542px; }
  .sidebar { gap: 12px; }
  .progress-panel { padding: 16px; }
  .progress-numbers strong { font-size: 44px; }
  .fell-detail { bottom: 19px; left: 8px; width: min(335px, calc(100% - 63px)); }
  .fell-detail h3 { font-size: 30px; }
  .north { top: 12px; left: 12px; }
  .map-tools { right: 8px; top: 9px; }
  .map-tools .icon-button { width: 36px; height: 36px; }
}
@media (max-width: 350px) {
  .legend { gap: 6px; font-size: 10px; }
  .brand { font-size: 14px; }
  .header-actions { gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
.fell-marker.has-photo .pin-dot { position: relative; }
.pin-badge { position: absolute; display: grid; place-items: center; width: 12px; height: 12px; top: -6px; right: -6px; border-radius: 50%; background: #28523a; color: #fff; border: 1px solid #fff9e7; }
.fell-marker.has-photo .pin-badge .icon { width: 8px; height: 8px; stroke-width: 3; }
