:root {
  --ink: #111827;
  --muted: #667085;
  --paper: #ffffff;
  --panel: #ffffff;
  --soft: #f6f8fb;
  --line: #e5e7eb;
  --brand: #111827;
  --brand-2: #2563eb;
  --gold: #f59e0b;
  --blue: #2563eb;
  --red: #dc2626;
  --shadow: 0 14px 38px rgba(15, 23, 42, 0.10);
  color-scheme: light;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 1000;
  border-radius: 6px;
  background: var(--brand);
  color: white;
  padding: 10px 14px;
}

.skip-link:focus {
  top: 12px;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

.topbar.compact {
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 10px;
  background: url("/assets/brand-mark.svg?v=5") center / 42px 42px no-repeat;
  color: transparent;
  font-size: 0;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.10);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 19px;
  white-space: nowrap;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon-link,
.tool-button,
.secondary-action,
.primary-action,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 7px;
  border: 1px solid #e7ebf1;
  min-height: 40px;
  padding: 9px 12px;
  background: #f8fafc;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.icon-link svg,
.tool-button svg,
.secondary-action svg,
.primary-action svg {
  width: 18px;
  height: 18px;
}

.primary-action {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.secondary-action {
  width: fit-content;
}

.secondary-action.danger {
  border-color: rgba(184, 74, 74, 0.36);
  color: var(--red);
}

.inline-action {
  margin-top: 10px;
}

.text-link {
  border: 0;
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--brand-2);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 30vw);
  height: calc(100vh - 66px);
}

.map-stage {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  min-width: 0;
  padding: 18px 18px 14px;
  background: #ffffff;
}

.finder-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}

.finder-copy {
  display: grid;
  gap: 7px;
}

.finder-intro .eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  padding: 5px 8px;
  background: #eff6ff;
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.finder-intro h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.finder-intro p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.55;
}

.finder-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 314px;
}

.finder-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid #e7ebf1;
  border-radius: 8px;
  padding: 9px 11px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.finder-highlights svg {
  width: 17px;
  height: 17px;
  color: var(--brand-2);
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.search-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: min(760px, 100%);
  flex: 1 1 420px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 5px 6px 5px 13px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.search-box svg {
  width: 19px;
  height: 19px;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.search-box button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--brand);
  color: white;
  font-weight: 800;
}

.quick-searches {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -2px 0 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.quick-searches span,
.quick-searches a {
  flex: 0 0 auto;
}

.quick-searches span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.quick-searches a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.quick-searches a:hover {
  border-color: rgba(37, 99, 235, 0.28);
  background: #eff6ff;
  color: var(--brand-2);
}

.toolbar-buttons {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.tool-button {
  min-width: 94px;
}

.tool-button span,
.icon-link span {
  white-space: nowrap;
}

.map-frame {
  position: relative;
  min-height: 420px;
}

.map-canvas,
.fallback-map {
  position: relative;
  min-height: 420px;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.leaflet-container {
  font: inherit;
}

.map-disclaimer {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.map-provider-status {
  width: fit-content;
  max-width: 100%;
  margin: 10px 2px 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: white;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.map-provider-status.is-kakao {
  border-color: rgba(16, 185, 129, 0.28);
  background: #ecfdf5;
  color: #047857;
}

.map-provider-status.is-fallback {
  border-color: rgba(245, 158, 11, 0.32);
  background: #fffbeb;
  color: #92400e;
}

.map-legend {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 470;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  max-width: calc(100% - 28px);
  margin: 0;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px 5px 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.legend-pin {
  width: 13px;
  height: 13px;
  border: 2px solid white;
  border-radius: 50% 50% 50% 3px;
  background: var(--brand);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  transform: rotate(-45deg);
}

.legend-pin.designated {
  background: #059669;
}

.legend-pin.facility {
  background: #0f766e;
}

.legend-pin.business {
  background: #6b7280;
}

.legend-pin.reported {
  background: var(--blue);
}

.legend-pin.candidate {
  background: var(--gold);
}

.map-report-hint {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 480;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: min(340px, calc(100% - 36px));
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
  color: var(--ink);
  font-size: 13px;
}

.map-report-hint strong {
  font-size: 14px;
}

.fallback-pin,
.map-pin {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid white;
  border-radius: 50% 50% 50% 4px;
  background: var(--brand);
  color: white;
  box-shadow: 0 5px 16px rgba(20, 33, 29, 0.3);
  transform: rotate(-45deg);
}

.fallback-pin span,
.map-pin span {
  transform: rotate(45deg);
  font-size: 12px;
  font-weight: 800;
}

.map-pin.reported,
.fallback-pin.reported {
  background: var(--blue);
}

.map-pin.public,
.fallback-pin.public {
  background: #059669;
}

.map-pin.designated,
.fallback-pin.designated {
  background: #059669;
}

.map-pin.facility,
.fallback-pin.facility {
  background: #0f766e;
}

.map-pin.business,
.fallback-pin.business {
  background: #6b7280;
}

.map-pin.official.facility,
.fallback-pin.official.facility {
  background: #0891b2;
}

.map-pin.candidate,
.fallback-pin.candidate {
  background: var(--gold);
  color: #3f3213;
}

.map-pin.closed,
.fallback-pin.closed {
  background: var(--red);
}

.report-draft-pin {
  outline: 4px solid rgba(37, 99, 235, 0.16);
}

.tool-button.is-active,
.button-link.is-active {
  border-color: rgba(37, 99, 235, 0.32);
  background: #eff6ff;
  color: var(--blue);
}

.button-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button-link:hover {
  text-decoration: underline;
}

.map-report-form {
  gap: 16px;
}

.map-report-form label {
  display: grid;
  gap: 8px;
}

.map-report-form label > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.map-report-form input,
.map-report-form select,
.map-report-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.report-picked-location {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.report-picked-location strong {
  color: var(--ink);
}

.report-picked-location span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.report-location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.report-location-actions .secondary-action {
  flex: 0 1 auto;
}

.report-map-panel {
  display: grid;
  gap: 8px;
}

.report-map {
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.form-grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 640px) {
  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .map-report-hint {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }

  .map-legend {
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
  }
}

.kakao-pin-wrap {
  width: 34px;
  height: 34px;
  border: 0;
  padding: 0;
  background: transparent;
}

.fallback-pin {
  position: absolute;
  margin: -15px 0 0 -15px;
}

.fallback-no-smoking {
  position: absolute;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 2px solid rgba(184, 74, 74, 0.8);
  border-radius: 50%;
  background: rgba(184, 74, 74, 0.14);
}

.place-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: var(--panel);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.status-strip div {
  padding: 16px 14px;
  border-right: 1px solid var(--line);
}

.status-strip div:last-child {
  border-right: 0;
}

.status-strip strong,
.status-strip span {
  display: block;
}

.status-strip strong {
  font-size: 22px;
}

.status-strip span {
  color: var(--muted);
  font-size: 12px;
}

.filter-section {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 32px;
}

.filter-header strong {
  font-size: 14px;
}

.filter-header .button-link {
  font-size: 12px;
}

.filter-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.chip {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.chip.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.chip.danger-chip.is-active {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

.ad-slot {
  display: grid;
  gap: 4px;
  margin: 14px;
  min-height: 74px;
  place-items: center;
  border: 1px dashed #b7c3bb;
  border-radius: 10px;
  background: var(--soft);
  color: var(--muted);
  text-align: center;
}

.ad-slot span {
  font-weight: 800;
  color: var(--ink);
}

.ad-slot small {
  font-size: 12px;
}

.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 14px 12px;
}

.result-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.result-header h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.result-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.place-list {
  display: grid;
  gap: 10px;
  padding: 0 14px 18px;
}

.help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 14px;
}

.help-links a,
.inline-link-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.help-links svg {
  width: 16px;
  height: 16px;
}

.place-card,
.moderation-card,
.report-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fff;
}

.place-card {
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.place-card:hover,
.place-card:focus-within {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

.place-title-row,
.card-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.place-card h2,
.moderation-card h3,
.report-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 800;
}

.badge.reported {
  background: #eff6ff;
  color: var(--blue);
}

.badge.public {
  background: #ecfdf5;
  color: #047857;
}

.badge.visual-badge.designated {
  background: #ecfdf5;
  color: #047857;
}

.badge.visual-badge.facility {
  background: #e6fffb;
  color: #0f766e;
}

.badge.visual-badge.business {
  background: #f3f4f6;
  color: #374151;
}

.badge.visual-badge.reported {
  background: #eff6ff;
  color: var(--blue);
}

.badge.visual-badge.candidate {
  background: #fffbeb;
  color: #92400e;
}

.badge.visual-badge.closed {
  background: #fae8e8;
  color: var(--red);
}

.badge.candidate {
  background: #fffbeb;
  color: #92400e;
}

.badge.closed {
  background: #fae8e8;
  color: var(--red);
}

.badge.no-smoking {
  background: #fae8e8;
  color: var(--red);
}

.badge.unmapped {
  background: #f3f4f6;
  color: #4b5563;
}

.badge.geocoded {
  background: #e8f7ef;
  color: #146c43;
}

.badge.demo {
  background: #f3f4f6;
  color: #4b5563;
}

.meta-line,
.note-line {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.place-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 7px 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.mini-button.warn {
  border-color: rgba(184, 74, 74, 0.24);
  color: var(--red);
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.place-dialog {
  width: min(560px, calc(100vw - 28px));
  border: 0;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 30px 80px rgba(20, 33, 29, 0.28);
}

.place-dialog::backdrop {
  background: rgba(20, 33, 29, 0.42);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.dialog-close svg {
  width: 18px;
  height: 18px;
}

.detail-content {
  display: grid;
  gap: 12px;
  padding: 26px;
}

.detail-content h2 {
  margin: 0;
  padding-right: 46px;
  font-size: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.detail-grid dt {
  color: var(--muted);
  font-size: 12px;
}

.detail-grid dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.detail-guide {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 10px;
  padding: 14px;
  background: #f8fbff;
}

.detail-guide strong {
  color: var(--brand);
}

.detail-guide p {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

.sub-location-list {
  display: grid;
  gap: 8px;
}

.sub-location-card {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 10px 11px;
  background: white;
}

.sub-location-card.confirmed,
.sub-location-card.official {
  border-left-color: #059669;
}

.sub-location-card.restricted {
  border-left-color: var(--red);
}

.sub-location-card div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sub-location-card b,
.sub-location-card span {
  line-height: 1.35;
}

.sub-location-card span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 7px;
  background: #f3f4f6;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.sub-location-card p {
  color: var(--ink);
  font-size: 13px;
}

.sub-location-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.reference-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reference-list a {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 9px;
  background: white;
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 900;
}

.page-body {
  min-height: 100vh;
  background: var(--paper);
}

.narrow-page,
.wide-page {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 70px;
}

.wide-page {
  width: min(1180px, calc(100% - 32px));
}

.page-intro {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0;
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.page-intro h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.page-intro p,
.content-section p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.65;
}

.report-form,
.content-section,
.saved-reports,
.admin-actions {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  background: white;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.seo-map-section {
  display: grid;
  gap: 14px;
}

.report-form label {
  display: grid;
  gap: 7px;
}

.report-form label > span,
.content-section h2,
.saved-reports h2,
.queue-grid h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.report-form input,
.report-form select,
.report-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
}

.form-help {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.photo-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.photo-preview.compact {
  grid-template-columns: repeat(3, minmax(80px, 120px));
}

.photo-preview figure {
  display: grid;
  gap: 6px;
  margin: 0;
}

.photo-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--soft);
}

.photo-preview figcaption {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.check-line {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.check-line input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.saved-reports {
  margin-top: 18px;
}

.section-title-row,
.page-actions,
.inline-link-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.section-title-row {
  justify-content: space-between;
}

.page-actions {
  margin-top: 18px;
}

.plain-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.notice-grid article {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: white;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.notice-grid svg {
  width: 22px;
  height: 22px;
  color: var(--brand-2);
}

.notice-grid h2,
.notice-grid p {
  margin: 0;
}

.notice-grid h2 {
  font-size: 16px;
}

.notice-grid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.faq-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.faq-list summary {
  cursor: pointer;
  padding: 16px 18px;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.faq-list p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.65;
}

.source-links {
  margin-top: 14px;
}

.source-links a {
  display: block;
  color: var(--brand-2);
  font-weight: 800;
}

.admin-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.queue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.moderation-list {
  display: grid;
  gap: 10px;
}

.json-output {
  width: 100%;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #0f1815;
  color: #e7f0eb;
  overflow: auto;
  white-space: pre-wrap;
}

.seo-header {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.seo-header h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.05;
}

.seo-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.seo-map {
  height: 380px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #e8efeb;
}

.seo-list {
  display: grid;
  gap: 10px;
}

@media (max-width: 1080px) {
  .map-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .map-stage {
    min-height: calc(100vh - 66px);
  }

  .place-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    min-height: 50vh;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
    min-height: 64px;
    padding: 10px 12px;
    gap: 10px;
  }

  .brand small {
    display: none;
  }

  .top-actions .icon-link {
    flex: 0 0 auto;
    min-height: 38px;
    width: 38px;
    padding: 0;
  }

  .top-actions {
    width: auto;
    overflow-x: auto;
    justify-content: flex-end;
    padding-bottom: 2px;
  }

  .top-actions .icon-link span {
    display: none;
  }

  .top-actions .icon-link svg {
    display: block;
  }

  .tool-button {
    width: auto;
    padding: 9px 10px;
  }

  .map-stage {
    padding: 10px;
  }

  .finder-intro {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .finder-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .finder-highlights span {
    min-height: 36px;
    padding: 8px 9px;
  }

  .map-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-buttons {
    justify-content: flex-end;
  }

  .search-box {
    flex-basis: auto;
    min-height: 46px;
  }

  .search-box button {
    padding: 9px 10px;
  }

  .map-canvas,
  .fallback-map {
    min-height: 56vh;
  }

  .map-frame {
    min-height: 56vh;
  }

  .status-strip div {
    padding: 12px 10px;
  }

  .result-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-grid,
  .form-grid,
  .queue-grid,
  .notice-grid,
  .photo-preview {
    grid-template-columns: 1fr;
  }

  .page-intro h1 {
    font-size: 34px;
  }
}
