:root {
  color-scheme: light dark;
  --page: #f7f1e7;
  --panel: #fffaf3;
  --ink: #2c211b;
  --muted: #65574e;
  --line: #dfd3c4;
  --soft: #eee4d6;
  --accent: #8a3c29;
  --primary: #923e2b;
  --primary-hover: #732d1d;
  --warning: #a33324;
  --success: #315944;
  --map: #e4ddce;
  --radius: 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #1c1814;
    --panel: #29211c;
    --ink: #f5eadb;
    --muted: #c8b8aa;
    --line: #4d4036;
    --soft: #362b23;
    --accent: #f0aa8e;
    --primary: #a04730;
    --primary-hover: #873721;
    --warning: #ffae9e;
    --success: #a5cfb4;
    --map: #3b392e;
  }
  .leaflet-tile-pane { filter: brightness(.66) saturate(.72); }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--page); line-height: 1.48; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; line-height: 1.08; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.05rem, 5vw, 3.18rem); letter-spacing: -.047em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.025em; }
h1:focus { outline: none; }
a { color: var(--accent); }
img { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
button, .button {
  color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 9px;
  min-height: 44px; padding: .48rem .76rem; display: inline-flex; gap: .4rem;
  align-items: center; justify-content: center; text-decoration: none; font-size: .92rem; cursor: pointer;
}
button:hover, .button:hover { background: var(--soft); }
button:disabled { opacity: .58; cursor: default; }
button.primary, .button.primary { color: #fff; background: var(--primary); border-color: transparent; font-weight: 630; }
button.primary:hover, .button.primary:hover { background: var(--primary-hover); }
.button.subtle, button.subtle { background: transparent; border-color: transparent; }
.button.subtle:hover, button.subtle:hover, [aria-current="page"].subtle { background: var(--soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:not([type=file]), textarea, select {
  color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 9px;
  min-height: 44px; width: 100%; min-width: 0; padding: .57rem .72rem;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }
textarea { resize: vertical; }
.muted { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.long-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.location { font-size: .88rem; color: var(--accent); font-weight: 680; }
.site-header { background: var(--panel); border-bottom: 1px solid var(--line); }
.site-bar, .shell { width: min(100%, 1260px); margin-inline: auto; padding-inline: clamp(12px, 3vw, 32px); }
.site-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 22px; padding-block: 12px; }
.site-bar nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.brand {
  display: inline-flex; gap: 8px; align-items: center; color: var(--ink); font-weight: 780;
  letter-spacing: -.06em; text-decoration: none; font-size: 1.5rem; white-space: nowrap;
}
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary); color: #fff; font-size: 1.24rem;
}
.shell { padding-block: clamp(16px, 4vw, 36px) 40px; }
.heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 13px; margin-bottom: 16px; }
.heading .subtle { margin-left: -.75rem; margin-bottom: 3px; }
.heading p { margin-top: 7px; }
.notice, .coordinate-box {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--panel);
}
.notice { margin-bottom: 15px; }
.error { color: var(--warning); }
.loading { padding: 18px 0; color: var(--muted); }
.chip-row, .tags, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { border-radius: 99px; }
.chip[aria-pressed="true"], .chip.active { color: var(--accent); background: var(--soft); border-color: var(--accent); font-weight: 650; }
.tag { border-radius: 99px; background: var(--soft); color: var(--muted); font-size: .85rem; padding: .3rem .65rem; overflow-wrap: anywhere; max-width: 100%; }
.discovery-search, .tag-entry { display: flex; gap: 6px; align-items: stretch; }
.panel {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
}
.map { width: 100%; background: var(--map); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.moderation-map { aspect-ratio: 1.18; max-height: 440px; }
.leaflet-container { font-family: inherit; }
.leaflet-container .leaflet-control-attribution { background: var(--panel); color: var(--muted); font-size: 11px; }
.leaflet-container .leaflet-control-attribution a { color: var(--accent); }
.leaflet-control-zoom.leaflet-bar { border: 1px solid var(--line); overflow: hidden; }
.leaflet-control-zoom.leaflet-bar a { background: var(--panel); color: var(--ink); border-color: var(--line); width: 40px; height: 40px; line-height: 38px; }
.leaflet-control-zoom.leaflet-bar a:hover { background: var(--soft); }
.sp-pin > span {
  position: absolute; width: 32px; height: 32px; display: grid; place-items: center;
  color: #fff; background: var(--primary); border: 2px solid #fff6ef;
  border-radius: 50% 50% 50% 6px; transform: rotate(-45deg); box-shadow: 0 2px 7px #21171155;
}
.category-glyph {
  flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.55;
  stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
}
img.category-glyph { object-fit: contain; }
.sp-pin :is(.category-glyph, .map-pin-symbol) { transform: rotate(45deg); }
.sp-pin.pin-closed > span { background: #86521f; }
.sp-pin.pin-closed::after {
  content: "!";
  position: absolute;
  inset: -2px 0 auto auto;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid #86521f;
  border-radius: 50%;
  background: #ffe7b5;
  color: #4a2c13;
  font-weight: 800;
}
.sp-pin.picked > span { background: #5e281e; outline: 2px solid white; }
.submission-selectors { display: none; }
.panel { padding: clamp(13px, 3vw, 23px); }
.place-detail, .two-column, .submission-panes {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 26px); align-items: start;
}
.place-detail { margin-top: 9px; }
.place-info, .photo-view, .submission-map { display: grid; gap: 8px; min-width: 0; }
.place-info .button { justify-self: start; }
.detail-cover { width: 100%; aspect-ratio: 1.55; object-fit: contain; border-radius: 12px; background: var(--soft); }
.thumbs { display: flex; flex-wrap: wrap; gap: 5px; }
.thumbnail { padding: 2px; width: 72px; border-radius: 7px; }
.thumbnail[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.thumbnail img, .review-photos img { width: 100%; aspect-ratio: 1.25; object-fit: cover; border-radius: 5px; }
.review-photos img { width: min(72px, 100%); }
.auth-layout { max-width: 440px; margin: 12px auto; }
.auth-panel { display: grid; gap: 13px; }
.auth-panel > .button { justify-self: start; }
.form-column { display: grid; gap: 10px; min-width: 0; }
.field { display: grid; gap: 4px; min-width: 0; }
.field > label { font-size: .9rem; font-weight: 650; }
.helper { margin-top: -4px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 0; margin: 0 0 20px; }
.steps li { min-width: 0; color: var(--muted); border-top: 3px solid var(--line); padding-top: 6px; font-size: .84rem; overflow-wrap: anywhere; }
.steps li.done, .steps li[aria-current="step"] { border-color: var(--accent); }
.steps li[aria-current="step"] { color: var(--accent); font-weight: 700; }
.wizard-heading { margin-bottom: 16px; }
.wizard-heading > .subtle { margin-left: -.76rem; }
.wizard-footer {
  margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.wizard-footer > .inline-status { flex: 1 1 auto; }
.wizard-footer > .primary { margin-left: auto; }
.inline-status { font-size: .89rem; }
.inline-status:empty { display: none; }
.address-search { display: flex; gap: 6px; align-items: end; }
.address-search .field { flex: 1; }
.address-results { display: grid; gap: 4px; }
.address-results:empty { display: none; }
.address-results button { text-align: start; justify-content: flex-start; }
.coordinate-box { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.nearby-places { padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.nearby-places h3 { font-size: 1rem; margin: 0 0 4px; }
.nearby-list { display: grid; gap: 5px; list-style: none; margin: 7px 0 0; padding: 0; }
.nearby-list:empty { display: none; }
.nearby-card {
  display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 9px;
  border-radius: 7px; padding: 4px; color: var(--ink); text-decoration: none;
}
.nearby-card:hover, .nearby-card:focus-visible { background: var(--panel); }
.nearby-card img { width: 62px; height: 42px; object-fit: cover; border-radius: 5px; }
.nearby-card strong, .nearby-card small { display: block; overflow-wrap: anywhere; }
.photos-layout { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
.upload-zone {
  position: relative; display: grid; gap: 6px; padding: 17px; background: var(--soft);
  border: 1px dashed var(--accent); border-radius: 11px; cursor: pointer; overflow: hidden;
}
.upload-zone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.upload-zone.disabled { opacity: .65; cursor: default; }
.file-input { position: absolute; width: 100%; height: 100%; inset: 0; opacity: 0; cursor: inherit; }
.upload-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 7px; }
.upload-tile { min-width: 0; position: relative; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.upload-tile.picked { border-color: var(--accent); }
.upload-tile img { width: 100%; aspect-ratio: 1.6; object-fit: cover; background: var(--soft); }
.upload-tile > button:not(.remove-photo) { width: 100%; border-radius: 0; border: 0; padding-inline: 4px; }
.upload-tile.picked > button:not(.remove-photo) { color: var(--accent); font-weight: 680; background: var(--soft); }
.remove-photo { position: absolute; inset: 3px 3px auto auto; width: 44px; padding: 0; font-size: 1.12rem; }
.queue-panel, .queue-list { display: grid; gap: 9px; }
.queue-panel > button { justify-self: start; }
.queue-list { list-style: none; padding: 0; margin: 0; }
.favorite-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.favorite-row .favorite-place { flex: 1 1 230px; }
.favorite-glyph { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; }
.favorite-control[aria-pressed="true"] { color: var(--accent); }
.favorite-control[aria-pressed="true"] .favorite-glyph { fill: currentColor; }
.wizard-heading > .decision-note { margin-top: 10px; }
.queue-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 9px;
  align-items: center; padding: 8px; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 11px;
}
.queue-row:hover { background: var(--soft); }
.queue-copy { min-width: 0; display: grid; gap: 2px; overflow-wrap: anywhere; }
.queue-cover { width: 96px; aspect-ratio: 1.3; object-fit: cover; background: var(--soft); border-radius: 7px; }
.queue-comment { color: var(--accent); font-size: .86rem; }
.badge { display: inline-flex; justify-self: start; background: var(--soft); color: var(--accent); border-radius: 99px; padding: .3rem .65rem; font-size: .82rem; white-space: nowrap; }
.badge.approved { color: var(--success); }
.notification-toggle { position: relative; min-width: 44px; }
.notification-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notification-count {
  position: absolute; inset: 0 1px auto auto; min-width: 17px; padding-inline: 3px;
  border-radius: 99px; color: #fff; background: var(--primary); text-align: center; font-size: .68rem; font-weight: 700;
}
.notification-panel { display: grid; gap: 9px; max-width: 760px; padding: clamp(12px, 2vw, 22px); }
.notification-panel > button { justify-self: start; }
.notification-list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.notification-list:empty { display: none; }
.notification-row {
  display: grid; gap: 5px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); text-decoration: none; overflow-wrap: anywhere;
}
.notification-row.unread { border-inline-start: 3px solid var(--accent); }
.notification-row:hover { background: var(--soft); }
.notification-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; }
.notification-meta .badge.returned { color: var(--warning); }
.notification-new, .notification-action { color: var(--accent); font-weight: 680; font-size: .84rem; }
.notification-toast {
  position: fixed; z-index: 1200; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px;
  right: max(12px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
  max-width: calc(100vw - 24px); padding: 8px 10px 8px 14px; box-shadow: 0 6px 30px #0003;
}
.notification-toast p { font-weight: 620; }
.notification-toast .notification-dismiss { margin-inline-start: auto; min-width: 44px; font-size: 1.15rem; }
.submission-heading { margin: 9px 0 15px; }
.submission-panel { display: grid; gap: 12px; }
.decision { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 10px; }
.decision-note { display: grid; gap: 5px; border-radius: 10px; padding: 11px; background: var(--soft); }
.decision-note > .button { justify-self: start; }
.photo-unavailable { opacity: .55; }
.error-page { display: grid; gap: 10px; justify-items: start; }

.admin-cabinet, .admin-view, .admin-users, .admin-user-list { display: grid; gap: 12px; min-width: 0; }
.admin-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 6px 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px;
}
.admin-view .heading { margin-bottom: 0; }
.admin-search {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, 190px) auto; align-items: end; gap: 8px;
}
.admin-user-list { list-style: none; margin: 0; padding: 0; gap: 0; }
.admin-user {
  min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, auto) minmax(180px, auto);
  align-items: center; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--line);
}
.admin-user > :last-child, .admin-users > button { justify-self: start; }
.ops-stack, .content-list, .content-row { display: grid; gap: 12px; min-width: 0; }
.ops-stack > button, .content-row > .button, .content-action form > button { justify-self: start; }
.ops-toolbar { display: flex; gap: 10px 20px; flex-wrap: wrap; align-items: end; justify-content: space-between; }
.ops-toolbar .field { min-width: 130px; }
.ops-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 9px; }
.ops-summary { display: grid; gap: 4px; justify-items: start; align-content: start; }
.ops-summary strong { font-size: 1.65rem; line-height: 1.18; }
.ops-chart { display: grid; gap: 4px; }
.ops-bar { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) 3rem; gap: 8px; align-items: center; }
.ops-bar-fill { min-height: 10px; background: var(--accent); border-radius: 4px; }
.ops-bar > span { text-align: end; font-variant-numeric: tabular-nums; }
.ops-table-wrap { overflow-x: auto; }
.ops-table { width: 100%; border-collapse: collapse; }
.ops-table :is(th, td) { padding: 8px; border-bottom: 1px solid var(--line); text-align: start; }
.ad-enabled { display: flex; gap: 5px; align-items: center; }
.ad-slot { margin-top: 8px; }
.ad-link { color: inherit; text-decoration: none; display: block; }
.ad-link:hover strong { text-decoration: underline; }
.ad-creative { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-width: 0; }
.ad-creative-image { width: 100%; max-height: 224px; object-fit: contain; background: var(--soft); }
.discover-results .ad-creative-image { max-height: 145px; }
.ad-creative-copy { padding: 8px 10px; display: grid; gap: 3px; overflow-wrap: anywhere; }
.ad-admin-grid, .ad-stats-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.ad-placement { display: grid; gap: 12px; min-width: 0; }
.ad-admin-card, .ad-admin-summary, .ad-admin-saved { display: grid; gap: 10px; min-width: 0; }
.ad-admin-header { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; }
.ad-admin-header h3 { margin: 0; overflow-wrap: anywhere; }
.ad-admin-header .badge[data-ad-state="active"] { color: var(--success); }
.ad-admin-header .badge[data-ad-state="expired"] { color: var(--warning); }
.ad-admin-url { overflow-wrap: anywhere; }
.ad-creative-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
.ad-creative-metrics > div { display: grid; gap: 2px; padding: 7px; border-radius: 7px; background: var(--soft); }
.ad-creative-metrics dd { margin: 0; font-size: 1.1rem; font-weight: 670; overflow-wrap: anywhere; }
.ad-delete { color: var(--warning); }
.ad-delete-confirm { display: grid; gap: 8px; }
.ad-admin-summary > button, .ad-editor-media > button, .ad-stats form > button { justify-self: start; }
.ad-editor { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ad-editor-actions { grid-column: 1 / -1; }
.ad-editor-media .field { grid-template-columns: minmax(0, 1fr); }
.ad-editor-media input[type=file] { width: 100%; min-width: 0; }
.ad-editor-media h3, .ad-stats h3 { margin: 0; }
.ad-stats > summary { font-weight: 700; cursor: pointer; }
.ad-stats[open] > summary, .ad-stats > div { margin-bottom: 10px; }
.ad-stats .field { max-width: 210px; }
@media (max-width: 1050px) { .ad-editor { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) { .ad-admin-grid, .ad-stats-grid { grid-template-columns: minmax(0, 1fr); } }
.moderation-tabs { margin: 3px 0 12px; }
.content-menu, .content-action { min-width: 0; }
.content-menu > summary, .content-action > summary { display: inline-flex; list-style: none; }
.content-menu > summary::-webkit-details-marker, .content-action > summary::-webkit-details-marker { display: none; }
.content-menu[open], .content-action[open] { display: grid; gap: 5px; justify-items: start; }
.content-action form { width: min(100%, 440px); padding-block: 6px; }
.place-comment .content-menu[open] { flex-basis: 100%; }
@media (max-width: 600px) {
  .admin-search { grid-template-columns: minmax(0, 1fr) auto; }
  .admin-search > .field:first-child { grid-column: 1 / -1; }
  .admin-user { grid-template-columns: minmax(0, 1fr) auto; }
  .admin-user > :nth-child(3) { grid-column: 1 / -1; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.map-page {
  --drawer-width: clamp(220px, var(--drawer-preferred-width, clamp(220px, 22vw, 266px)), min(520px, 45vw));
  height: 100dvh; display: flex; flex-direction: column; overflow: hidden;
}
.map-page .site-header { flex: none; }
.map-page .site-bar { width: 100%; margin: 0; padding: 9px 14px; gap: 7px 12px; min-height: 63px; }
.map-page .shell { width: 100%; padding: 0; margin: 0; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.map-page .shell > .notice { flex: none; margin: 0; border-radius: 0; }
.map-page main { flex: 1; min-height: 0; display: flex; }
.point-page .wizard {
  flex: 1; min-width: 0; min-height: 0; padding: 0; display: grid; border: 0; border-radius: 0;
  grid-template-columns: minmax(0, 1fr) clamp(335px, 30vw, 470px);
}
.point-map { height: 100%; min-height: 0; border: 0; border-radius: 0; }
.point-sidebar {
  min-width: 0; min-height: 0; border-left: 1px solid var(--line); padding: clamp(14px, 2vw, 25px);
  background: var(--panel); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
}
.point-sidebar .wizard-heading { margin-bottom: 12px; }
.point-sidebar h1 { font-size: clamp(1.85rem, 2.5vw, 2.5rem); }
.point-sidebar .steps { margin-bottom: 16px; }
.point-sidebar .point-fields { margin-bottom: 14px; }
.point-sidebar .wizard-footer {
  position: sticky; bottom: 0; margin-top: auto; padding-bottom: 5px; background: var(--panel); z-index: 1;
}
.map-page[data-map-drawer="open"] :is(.site-bar, .shell > .notice) { padding-left: calc(var(--drawer-width) + 13px); }
.map-page[data-map-drawer="open"] .site-bar > .brand,
.map-page[data-map-drawer="open"] .map-drawer-toggle { display: none; }
#map-toolbar { display: flex; gap: 6px; align-items: center; flex: 1 1 215px; min-width: 0; }
.map-drawer-toggle { flex: none; }
.discovery-search { position: relative; width: min(100%, 365px); min-width: 0; }
.discovery-search > button { flex: none; }
.map-page .site-header { position: relative; z-index: 1000; }
.city-suggestions {
  position: absolute; z-index: 1; inset: calc(100% + 5px) 0 auto; max-height: min(52dvh, 370px);
  overflow-y: auto; overscroll-behavior: contain; padding: 6px; border-radius: 11px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 8px 22px #21130d50;
}
.city-results { list-style: none; margin: 0; padding: 0; }
.city-search-status { margin: 4px 7px; }
button.city-result {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; padding: 6px 8px;
  text-align: left; border-color: transparent; overflow-wrap: anywhere;
}
.discover-layout { flex: 1; min-width: 0; isolation: isolate; }
.discover-map { position: relative; height: 100%; }
.discover-map > .map { height: 100%; border: 0; border-radius: 0; }
.map-location {
  position: absolute; z-index: 850; top: 10px; right: 10px;
  display: grid; justify-items: end; gap: 4px; max-width: min(250px, 75%); pointer-events: none;
}
.map-location button { pointer-events: auto; background: var(--panel); }
.map-location span:not(:empty) {
  padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); font-size: .85rem;
}
.discover-drawer {
  position: fixed; inset: 0 auto 0 0; z-index: 1100; width: var(--drawer-width);
  display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--panel);
  border-right: 1px solid var(--line); box-shadow: 6px 0 30px #21130d40;
  transform: translateX(-108%); transition: transform .22s ease-out;
}
[data-map-drawer="open"] .discover-drawer { transform: none; }
.drawer-header {
  min-height: 63px; padding: 7px 11px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 5px;
}
.drawer-close { flex: none; width: 44px; padding: 0; font-size: 1.5rem; }
.drawer-resize {
  position: absolute; top: 65px; right: -7px; bottom: 0; width: 16px;
  cursor: col-resize; touch-action: none;
}
.drawer-resize::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 4px; height: 40px;
  background: var(--line); border-radius: 4px; transform: translate(-50%, -50%);
}
.drawer-resize:hover::before, .drawer-resize:focus-visible::before, .discover-drawer.resizing .drawer-resize::before {
  background: var(--accent);
}
.discover-drawer.resizing { user-select: none; }
.place-back { margin-bottom: 9px; }
.drawer-options { display: grid; gap: 9px; padding: 12px 10px 8px; }
.drawer-options h2 { font-size: 1.5rem; }
.filters { gap: 4px; }
.filters > button { min-height: 37px; max-width: 100%; padding: 4px 8px; font-size: .78rem; overflow-wrap: anywhere; }
.filters .category-glyph { color: var(--accent); }
.drawer-tag-label { margin-bottom: -5px; }
.drawer-scroll { overflow-y: auto; overscroll-behavior: contain; }
.discover-results { padding: 0 10px 12px; }
.category-admin-layout { display: grid; gap: 14px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); align-items: start; }
.category-admin-layout .panel > button, .category-admin-layout form > button { justify-self: start; }
.category-admin-list { list-style: none; display: grid; gap: 6px; padding: 0; margin: 0; }
button.category-admin-item { width: 100%; justify-content: flex-start; text-align: left; overflow-wrap: anywhere; }
.category-admin-item[aria-pressed="true"] { border-color: var(--accent); }
.category-admin-layout .field { grid-template-columns: minmax(0, 1fr); }
.category-admin-layout input[type="file"] { width: 100%; min-width: 0; }
.category-admin-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.category-admin-sample { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--ink);
  border-radius: 50%; background: var(--primary); color: white; }
.category-admin-sample .category-glyph { width: 22px; height: 22px; }
@media (max-width: 640px) { .category-admin-layout { grid-template-columns: minmax(0, 1fr); } }
.result-status { margin-bottom: 8px; }
.place-grid { display: grid; gap: 8px; }
button.place-card, .selected-card {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 11px;
  overflow: hidden; background: var(--panel); color: var(--ink); text-decoration: none; text-align: left;
}
button.place-card:hover, button.place-card.picked, .selected-card:hover { border-color: var(--accent); }
.place-card img, .selected-card img { width: 100%; aspect-ratio: 2.2; object-fit: cover; background: var(--soft); }
.selected-card img { aspect-ratio: 1.72; }
.place-copy { display: grid; gap: 3px; padding: 8px 10px; overflow-wrap: anywhere; }
.place-open-label { color: var(--accent); font-size: .82rem; font-weight: 650; }
.empty-results { display: grid; justify-items: start; gap: 8px; padding-block: 8px; }
.load-more { margin-top: 8px; }
.selected-place {
  position: absolute; z-index: 900; top: 0; left: 0;
  width: min(260px, calc(100% - 20px)); box-shadow: 0 8px 22px #21130d50; border-radius: 11px;
}
.selected-place[data-anchor="outside"] { visibility: hidden; }
.selected-place:is([data-anchor="above"], [data-anchor="below"])::after {
  content: ""; position: absolute; left: var(--preview-arrow); width: 10px; height: 10px;
  background: var(--panel); border: solid var(--line); border-width: 0 1px 1px 0;
  transform: translateX(-50%) rotate(45deg); pointer-events: none;
}
.selected-place[data-anchor="above"]::after { bottom: -5px; }
.selected-place[data-anchor="below"]::after { top: -5px; transform: translateX(-50%) rotate(225deg); }
.selected-place .selected-card { max-height: max(105px, 58dvh); overflow: auto; }
.selected-place .selected-card img { max-height: min(150px, 24dvh); }
button.preview-dismiss { position: absolute; right: 5px; top: 5px; width: 44px; padding: 0; font-size: 1.2rem; }
button.preview-share { position: absolute; right: 54px; top: 5px; width: 44px; padding: 0; }
.share-glyph { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.share-dialog { width: min(420px, calc(100% - 24px)); color: var(--ink); }
.share-dialog::backdrop { background: #14201ab0; }
.profile-panel { display: grid; gap: 14px; width: min(100%, 640px); margin: 12px auto; }
.profile-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.profile-notifications { display: grid; justify-items: start; gap: 6px; border-top: 1px solid var(--line); padding-top: 16px; }
.profile-notification-option { display: flex; align-items: center; gap: 9px; cursor: pointer; min-height: 44px; }
.profile-notification-option input[type="checkbox"] {
  width: 19px; height: 19px; min-height: 0; margin: 0; accent-color: var(--primary);
}
.profile-avatar { display: grid; place-items: center; object-fit: cover; border-radius: 50%; width: 96px; height: 96px; }
.avatar-placeholder { color: var(--accent); background: var(--soft); font-size: 2.1rem; font-weight: 650; }
.profile-avatar-field { flex: 1 1 210px; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 5px; }
.profile-avatar-field .field { width: 100%; grid-template-columns: minmax(0, 1fr); }
.profile-avatar-field input { width: 100%; min-width: 0; }
.profile-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.profile-links .button { text-align: start; overflow-wrap: anywhere; }
.map-status {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  position: absolute; z-index: 800; left: 10px; bottom: 20px; max-width: calc(100% - 64px);
  padding: 5px 8px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line);
}
[data-map-drawer="open"] .map-status { display: none; }
.place-comments { display: grid; justify-items: start; gap: 9px; border-top: 1px solid var(--line); padding-top: 12px; }
.place-comment-list { display: grid; gap: 6px; width: 100%; min-width: 0; }
.place-comment { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 9px; padding-bottom: 7px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.place-comment .long-text { flex-basis: 100%; }
.place-comment-form { display: grid; gap: 7px; width: 100%; }
.place-comment-form > button { justify-self: start; }

@media (max-width: 760px) {
  .map-page { --drawer-width: min(245px, calc(100vw - 47px)); }
  .drawer-resize { display: none; }
  .map-page .site-bar { flex-wrap: wrap; padding-inline: 10px; }
  .map-page[data-map-drawer="open"] :is(.site-bar, .shell > .notice) { padding-left: 10px; }
  .map-page[data-map-drawer="open"] .site-bar > .brand { display: inline-flex; }
  #map-toolbar { flex-basis: 100%; order: 1; }
  .discovery-search { width: 100%; }
  .selected-place:not([hidden]) ~ .map-status, [data-map-drawer="open"] .selected-place { display: none; }
  .selected-card { display:grid; grid-template-columns: 82px minmax(0, 1fr); }
  .selected-card img { height: 100%; min-height: 90px; aspect-ratio: auto; }
  .selected-card .place-copy { padding-right: 40px; }
  button.preview-dismiss { border-color: transparent; }
  button.preview-share { left: 5px; right: auto; }
  .map-page.point-page { min-height: 100dvh; height: auto; overflow: visible; }
  .point-page .wizard { grid-template-columns: minmax(0, 1fr); }
  .point-map { height: clamp(280px, 53dvh, 600px); }
  .point-sidebar { overflow: visible; padding: 13px 14px 0; border-left: 0; border-top: 1px solid var(--line); }
  .point-sidebar .wizard-footer { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .discover-drawer { transition: none; } }

@media (max-width: 720px) {
  .place-detail, .two-column, .submission-panes { grid-template-columns: 1fr; }
  .submission-selectors { display: flex; margin-bottom: 9px; }
  .moderation-map { min-height: 230px; max-height: 390px; }
  .draft-preview { display: none; }
  .submission-panes[data-pane="map"] :is([data-section="photos"], [data-section="details"]),
  .submission-panes[data-pane="photos"] :is([data-section="map"], [data-section="details"]),
  .submission-panes[data-pane="details"] :is([data-section="map"], [data-section="photos"]) { display: none; }
  .wizard-footer > .inline-status { flex-basis: 100%; }
}

@media (max-width: 425px) {
  .site-bar nav { gap: 4px; }
  .site-bar nav :is(button, .button) { padding-inline: 7px; font-size: .84rem; }
  .queue-row { grid-template-columns: 68px minmax(0, 1fr); }
  .queue-cover { width: 68px; grid-row: 1 / 3; }
  .queue-row .badge { grid-column: 2; }
  .tag-entry > button { flex-shrink: 0; }
}

.visit-panel, .reputation-panel { padding-block: 12px; border-block-start: 1px solid var(--line); }
.visit-panel > p, .photo-attribution, .reputation-panel p { margin-block: 0; }
.availability-available { color: var(--success); }
.availability-closed, .availability-gone { color: var(--warning); }
.contribution-form { max-width: 800px; }
.contribution-map, .collection-map { height: clamp(230px, 42dvh, 480px); min-width: 0; }
.contribution-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.contribution-photos img { display: block; width: 100%; max-height: 260px; object-fit: contain; border-radius: 10px; }
.gallery-map summary, .collection-settings summary, .reputation-panel summary { cursor: pointer; padding-block: 8px; }
.gallery-map .contribution-map { height: clamp(230px, 38dvh, 400px); }
.collection-dialog { color: var(--ink); width: min(420px, calc(100% - 24px)); max-height: 85dvh; }
.collection-dialog::backdrop { background: rgb(14 10 8 / 68%); }
.collection-dialog > button { margin-top: 8px; }
.collection-settings { border-top: 1px solid var(--line); }
.reputation-panel dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-block: 8px; }
.reputation-panel dl div { padding: 8px 12px; background: var(--soft); border-radius: 10px; }
.reputation-panel dd { font-size: 1.15rem; font-weight: 700; margin: 0; }
.nearby-contribute { display: inline-block; margin-block: 3px 9px; }
