:root {
  color-scheme: light;
  --ink: #203c33;
  --text: #273e34;
  --muted: #5b685f;
  --line: #d7ddd3;
  --paper: #fbfaf5;
  --white: #fffefa;
  --green: #245245;
  --accent: #b74a30;
  --head: 72px;
  --serif: 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif CJK JP', 'Noto Serif JP', serif;
  --sans:
    -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', 'Noto Sans CJK JP', 'Noto Sans JP',
    sans-serif;
  font-family: var(--sans);
  color: var(--text);
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  background: var(--paper);
}
body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button,
a,
input {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #a34a30;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
a {
  color: inherit;
}
h1,
h2,
p {
  margin: 0;
}
button .icon,
[data-icon] {
  flex: none;
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
}
.icon {
  pointer-events: none;
  display: block;
}
[hidden] {
  display: none !important;
}
.app-header {
  height: calc(var(--head) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) max(28px, env(safe-area-inset-right)) 0
    max(28px, env(safe-area-inset-left));
  flex: none;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 3;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.brand img {
  width: 40px;
  height: 40px;
}
.brand h1 {
  line-height: 1.25;
  font-family: var(--serif);
  font-weight: 750;
  color: var(--ink);
  font-size: 1.66rem;
  letter-spacing: 0.075em;
}
.brand h1 span {
  margin-left: 0.055em;
}
.manage-button,
.return-button,
.text-button,
.secondary,
.primary,
.register-button,
.icon-button,
.scope-switch button,
.zoom-tools button,
.edit-zoom button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.manage-button {
  border: 1px solid #d4dbd2;
  border-radius: 11px;
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--white);
}
.manage-button:hover,
.secondary:hover {
  background: #f0f3eb;
}
.home {
  display: grid;
  grid-template-columns: clamp(330px, 27vw, 405px) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: 'filters map' 'places map';
  min-height: 0;
  flex: 1;
}
.filters {
  grid-area: filters;
  background: var(--white);
  padding: 25px 22px 18px;
  border-right: 1px solid var(--line);
  z-index: 2;
  overflow: hidden;
}
.find-title {
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: 0.045em;
  font-weight: 750;
  line-height: 1.4;
  margin: 0 0 17px;
}
.search-wrap {
  height: 47px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid #c9d2c8;
  border-radius: 10px;
  background: #fbfcf9;
}
.search-wrap:focus-within,
.text-field:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px #24524520;
}
.search-wrap > span {
  color: #5c6f63;
}
.search-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  height: 100%;
  padding: 0;
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
}
.search-wrap input::-webkit-search-cancel-button {
  display: none;
}
::placeholder {
  color: #758177;
  opacity: 1;
}
.clear-search {
  width: 32px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: none;
}
.kind-filters,
.form-kinds {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.kind-filters {
  margin-top: 13px;
}
.chip {
  white-space: nowrap;
  border: 1px solid #d2d9d0;
  border-radius: 22px;
  padding: 6px 11px;
  min-height: 34px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 550;
  background: var(--white);
  color: #394e42;
  line-height: 1.4;
}
.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tint);
  flex: none;
}
.chip:hover {
  border-color: #8b9f91;
}
.chip.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.chip.active .dot {
  background: #fff;
}
.chip-add {
  border-style: dashed;
  color: var(--green);
}
.map-stage {
  grid-area: map;
  position: relative;
  isolation: isolate;
  min-height: 0;
  overflow: hidden;
  background: #e8e9dd;
}
.map-canvas,
#editorMap {
  height: 100%;
  width: 100%;
  background: #e9ebe1;
}
.leaflet-container {
  font-family: var(--sans);
  background: #e9ebe1;
  outline-offset: -3px;
}
.leaflet-tile-container canvas {
  display: block;
}
.overlay {
  position: absolute;
  z-index: 500;
}
.scope-switch {
  top: 22px;
  left: 24px;
  display: flex;
  align-items: stretch;
  border: 1px solid #c4cdbe;
  border-radius: 13px;
  background: rgba(255, 254, 249, 0.98);
  padding: 4px;
  box-shadow: 0 3px 12px #27413616;
}
.scope-switch button {
  min-height: 36px;
  padding: 4px 13px;
  gap: 6px;
  border-radius: 9px;
  color: #45594e;
  font-size: 0.875rem;
  font-weight: 650;
}
.scope-switch button[aria-pressed='true'] {
  background: var(--green);
  color: white;
}
.scope-switch .icon {
  width: 17px;
  height: 17px;
}
.north {
  top: 23px;
  right: 24px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  border-radius: 22px;
  width: 36px;
  height: 48px;
  background: #fffdf5df;
  border: 1px solid #c7cfc0;
  pointer-events: none;
}
.north span {
  font:
    700 10px Georgia,
    serif;
  letter-spacing: 0.04em;
  color: #385147;
}
.zoom-tools,
.edit-zoom {
  display: flex;
  flex-direction: column;
  padding: 2px;
  background: var(--white);
  border: 1px solid #c8d0c3;
  border-radius: 12px;
  box-shadow: 0 3px 14px #213b3222;
}
.zoom-tools {
  right: 24px;
  bottom: 99px;
}
.zoom-tools button,
.edit-zoom button {
  width: 37px;
  height: 37px;
  padding: 0;
}
.zoom-tools button + button,
.edit-zoom button + button {
  border-top: 1px solid var(--line);
}
.register-button,
.primary {
  min-height: 49px;
  border-radius: 13px;
  background: var(--accent);
  color: #fffdf8;
  font-weight: 700;
  letter-spacing: 0.025em;
  padding: 0 20px;
}
.register-button {
  right: 24px;
  bottom: 32px;
  box-shadow: 0 5px 18px #6c341e40;
  border: 1px solid #a6432a;
}
.register-button:hover,
.primary:hover {
  background: #a14028;
}
.register-button .icon {
  width: 21px;
  height: 21px;
}
.map-source {
  bottom: 0;
  right: 0;
  max-width: 80%;
  background: #fffcf2e8;
  color: #4f6156;
  font-size: 10px;
  line-height: 1.5;
  padding: 1px 5px;
  border-top-left-radius: 4px;
}
.map-source a,
.edit-source {
  text-decoration: none;
}
.leaflet-bottom.leaflet-left {
  z-index: 410;
}
.leaflet-control-scale {
  margin-left: 15px !important;
  margin-bottom: 12px !important;
}
.leaflet-control-scale-line {
  background: #fffcf3cc;
  color: #415449;
  border: solid #687769;
  border-width: 0 1px 2px;
  font: 11px var(--sans);
  line-height: 1.2;
  padding: 0 4px 1px;
  text-align: center;
  text-shadow: none;
}
.places {
  grid-area: places;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--white);
}
.list-toggle {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  flex: none;
  min-height: 55px;
  padding: 12px 22px 6px;
  cursor: default;
}
.list-heading {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: 0.025em;
}
.count {
  font-family: var(--sans);
  border-radius: 20px;
  padding: 3px 9px;
  line-height: 1.25;
  background: #e9eee5;
  color: #465e4d;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  font-weight: 650;
}
.sheet-handle,
.drawer-chevron {
  display: none;
}
.store-list {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 20px 12px;
  flex: 1;
}
.store-row {
  width: 100%;
  padding: 16px 1px;
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #dfe4da;
  text-align: left;
}
.store-row:hover {
  background: #f4f6ee;
}
.store-row:last-child {
  border-bottom: 0;
}
.kind-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--wash);
  color: var(--tint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.row-text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.store-name {
  font-family: var(--serif);
  font-weight: 750;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-meta {
  color: var(--muted);
  font-size: 0.8rem;
  display: block;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-meta b {
  font-weight: 550;
  color: var(--tint);
}
.row-meta i {
  font-style: normal;
  color: #879084;
  margin: 0 5px;
}
.row-go {
  color: #819080;
  flex: none;
}
.row-go svg {
  width: 16px;
  height: 16px;
}
.sample-note {
  font-size: 0.78rem;
  color: #607162;
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 12px 22px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid #e0e4d9;
  background: #f4f5ed;
}
.sample-dot {
  width: 7px;
  height: 7px;
  border: 1.5px solid #7a8c76;
  border-radius: 50%;
}
.empty-list {
  padding: 22px 2px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.empty-list .text-button {
  margin-top: 6px;
}
.leaflet-div-icon {
  background: none;
  border: 0;
}
.shop-marker {
  border: 0;
  background: none;
  overflow: visible !important;
}
.pin-face {
  transform-origin: 50% 100%;
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 46px;
  display: grid;
  place-items: start center;
  filter: drop-shadow(0 2px 2px #27382e55);
  transition: transform 0.15s;
}
.pin-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pin-face > .icon {
  position: relative;
  margin-top: 7px;
  width: 21px;
  height: 21px;
  color: white;
  stroke-width: 1.75;
}
.shop-marker:hover .pin-face,
.shop-marker:focus .pin-face {
  transform: translateY(-2px) scale(1.08);
}
.shop-marker:focus-visible {
  outline: 2px solid #223e30;
  outline-offset: 3px;
  border-radius: 11px;
}
.pin-caption {
  position: absolute;
  left: 50%;
  top: 47px;
  transform: translateX(-50%);
  border: 1px solid #ccd2c3;
  border-radius: 5px;
  padding: 2px 6px;
  background: #fffdf3f2;
  color: #293f32;
  white-space: nowrap;
  max-width: 148px;
  overflow: hidden;
  text-overflow: ellipsis;
  font: 650 13px/1.35 var(--sans);
  letter-spacing: 0.035em;
  box-shadow: 0 1px 2px #33403316;
  pointer-events: none;
}
.hide-caption .pin-caption {
  display: none;
}
.here-dot {
  display: block;
  width: 19px;
  height: 19px;
  border: 3px solid white;
  border-radius: 50%;
  background: #2866a4;
  box-shadow:
    0 0 0 8px #407bb830,
    0 1px 5px #2342;
}
.map-notice,
.missing-map {
  left: 50%;
  transform: translateX(-50%);
  z-index: 650;
  max-width: min(90%, 430px);
  background: #fffdf6f5;
  border: 1px solid #bfcabd;
  border-radius: 10px;
  color: var(--ink);
  padding: 9px 12px;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.5;
  box-shadow: 0 3px 14px #263d3418;
  pointer-events: none;
}
.map-notice {
  top: 80px;
  width: max-content;
}
.missing-map {
  bottom: 28px;
  font-size: 0.75rem;
  left: 14px;
  transform: none;
}
.form-page {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #f3f4ed;
  padding: 25px max(20px, env(safe-area-inset-left)) max(32px, env(safe-area-inset-bottom));
}
.form-page form {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 19px;
  box-shadow: 0 8px 28px #30443708;
  padding: 24px 30px;
}
.form-heading {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.form-heading h2,
.dialog-head h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--ink);
  letter-spacing: 0.045em;
  line-height: 1.4;
}
.return-button {
  font-size: 0.875rem;
  font-weight: 650;
  padding: 4px 0;
  min-height: 32px;
  color: var(--green);
  gap: 3px;
}
.return-button .icon {
  width: 16px;
  height: 16px;
}
.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.fields {
  min-width: 0;
}
.field-label {
  display: block;
  color: #2e4637;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  margin: 0 0 7px;
}
.text-field {
  height: 46px;
  width: 100%;
  border: 1px solid #c4cfc2;
  border-radius: 9px;
  background: #fffefa;
  padding: 8px 12px;
  outline: 0;
  font-size: 1rem;
}
.optional-label {
  color: #5c705d;
  font-size: 0.85em;
  font-weight: 500;
}
.fields > .text-field + .field-label,
.custom-kind-row + .field-label {
  margin-top: 18px;
}
.text-field[aria-invalid='true'] {
  border-color: #a44130;
}
.address-row {
  margin-top: 4px;
}
.text-button {
  padding: 5px 0;
  color: var(--green);
  font-weight: 650;
  font-size: 0.875rem;
  min-height: 36px;
}
.text-button .icon {
  width: 16px;
  height: 16px;
}
.kind-field {
  border: 0;
  padding: 0;
  margin: 18px 0 0;
  min-width: 0;
}
.form-kinds .chip {
  min-height: 38px;
}
.custom-kind-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.custom-kind-row input {
  min-width: 0;
}
.address-results {
  padding: 9px 12px;
  background: #eff3ea;
  border-radius: 8px;
  margin-top: 5px;
  color: #465d4a;
  font-size: 0.85rem;
  line-height: 1.55;
}
.address-results button {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 6px 0 2px;
  padding: 8px;
  width: 100%;
  text-align: left;
}
.position-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 7px;
}
.position-heading .field-label {
  margin: 0;
}
.position-status {
  font-size: 0.8rem;
  color: #5c705d;
}
.position-status.set {
  color: #22614e;
  font-weight: 650;
}
.editor-map-wrap {
  height: 245px;
  position: relative;
  isolation: isolate;
  border: 1px solid #cbd1c3;
  border-radius: 12px;
  overflow: hidden;
}
.edit-zoom {
  position: absolute;
  bottom: 20px;
  right: 8px;
  z-index: 500;
  border-radius: 8px;
}
.edit-zoom button {
  width: 32px;
  height: 32px;
}
.edit-zoom .icon {
  width: 16px;
  height: 16px;
}
.edit-source {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 500;
  background: #fffcf2df;
  color: #4d6053;
  padding: 1px 4px;
  font-size: 10px;
}
.field-hint,
.panel-note {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 8px;
}
.form-footer {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 23px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.form-error {
  color: #993c2a;
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
}
.primary {
  min-height: 47px;
  padding: 0 24px;
}
.secondary {
  min-height: 43px;
  padding: 0 14px;
  border: 1px solid #c8d3c7;
  border-radius: 9px;
  background: #fafbf6;
  color: var(--green);
  font-weight: 650;
  font-size: 0.875rem;
}
.secondary.danger,
.menu-action.danger {
  color: #9d402f;
}
.danger-fill {
  background: #a33e2b;
}
dialog {
  width: min(420px, calc(100vw - 32px));
  max-height: min(85dvh, 650px);
  overflow: auto;
  padding: 23px;
  border: 1px solid #cdd5c9;
  border-radius: 18px;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 14px 70px #1d332a35;
}
dialog::backdrop {
  background: #1c302d52;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}
.dialog-head h2 {
  font-size: 1.35rem;
  overflow-wrap: anywhere;
}
.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex: none;
}
.dialog-content {
  line-height: 1.65;
}
.detail-kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 0.8rem;
  background: var(--wash);
  color: var(--tint);
}
.detail-kind svg {
  width: 16px;
  height: 16px;
}
.detail-address {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 15px 0 10px;
  line-height: 1.7;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.detail-address .icon {
  flex: none;
  color: #657666;
  margin-top: 3px;
}
.detail-url {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 44px;
  max-width: 100%;
  color: var(--green);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.detail-url small {
  overflow-wrap: anywhere;
  font-weight: 400;
}
.detail-sample {
  color: #677567;
  font-size: 0.8rem;
}
.panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.panel-actions .primary {
  min-height: 43px;
  font-size: 0.9rem;
}
.menu-action {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 14px 0;
  font-size: 0.94rem;
  font-weight: 600;
}
.menu-action:hover {
  color: #356b53;
}
.menu-action .icon {
  color: #607c67;
}
.menu-action.danger .icon {
  color: inherit;
}
.menu-action:last-child {
  border: 0;
}
.toast {
  position: fixed;
  bottom: max(23px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1500;
  border-radius: 12px;
  padding: 10px 16px;
  background: #23493d;
  color: white;
  box-shadow: 0 4px 20px #18342a2a;
  max-width: min(92vw, 480px);
  width: max-content;
  font-size: 0.9rem;
  line-height: 1.5;
  pointer-events: none;
}
@media (min-width: 741px) {
  .list-toggle .drawer-chevron {
    display: none;
  }
  .list-toggle:focus-visible {
    outline-offset: -3px;
  }
}
@media (max-width: 740px) {
  :root {
    --head: 55px;
  }
  .app-header {
    padding-right: max(14px, env(safe-area-inset-right));
    padding-left: max(15px, env(safe-area-inset-left));
  }
  .brand {
    gap: 8px;
  }
  .brand img {
    width: 33px;
    height: 33px;
  }
  .brand h1 {
    font-size: 1.32rem;
    letter-spacing: 0.06em;
  }
  .manage-button {
    min-height: 38px;
    border-radius: 9px;
    padding: 0 9px;
    font-size: 0.8rem;
    gap: 4px;
  }
  .manage-button .icon {
    width: 17px;
    height: 17px;
  }
  .home {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) clamp(99px, 20dvh, 161px);
    grid-template-areas: 'filters' 'map' 'places';
  }
  .home.expanded {
    grid-template-rows: auto minmax(0, 1fr) min(54dvh, 460px);
  }
  .filters {
    padding: 10px 0 9px;
    border-right: 0;
    border-bottom: 1px solid #cdd6c6;
  }
  .find-title {
    display: none;
  }
  .search-wrap {
    height: 42px;
    margin: 0 14px;
  }
  .kind-filters {
    margin-top: 7px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 14px 2px;
    scrollbar-width: none;
  }
  .kind-filters::-webkit-scrollbar {
    display: none;
  }
  .kind-filters .chip {
    min-height: 32px;
    padding: 5px 10px;
    flex: none;
  }
  .scope-switch {
    top: 11px;
    left: 13px;
    padding: 3px;
    border-radius: 11px;
  }
  .scope-switch button {
    min-height: 34px;
    padding: 3px 10px;
    font-size: 0.82rem;
    gap: 4px;
    border-radius: 8px;
  }
  .scope-switch .icon {
    width: 15px;
    height: 15px;
  }
  .north {
    top: 12px;
    right: 13px;
    width: 31px;
    height: 41px;
  }
  .north svg {
    height: 17px;
  }
  .zoom-tools {
    right: 12px;
    bottom: 75px;
    border-radius: 9px;
  }
  .zoom-tools button {
    width: 32px;
    height: 32px;
  }
  .zoom-tools .icon {
    width: 17px;
    height: 17px;
  }
  .register-button {
    right: 12px;
    bottom: 24px;
    min-height: 43px;
    border-radius: 12px;
    padding: 0 13px;
    gap: 5px;
    font-size: 0.88rem;
  }
  .register-button .icon {
    width: 18px;
    height: 18px;
  }
  .map-source {
    font-size: 9px;
  }
  .map-notice {
    top: 57px;
  }
  .leaflet-control-scale {
    margin-left: 10px !important;
    margin-bottom: 16px !important;
  }
  .places {
    border-right: 0;
    position: relative;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .list-toggle {
    min-height: 48px;
    padding: 15px 16px 6px;
    cursor: pointer;
  }
  .sheet-handle {
    display: block;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 4px;
    background: #c7d1c4;
    border-radius: 3px;
  }
  .list-heading {
    font-size: 0.93rem;
    gap: 7px;
  }
  .count {
    font-size: 0.75rem;
  }
  .drawer-chevron {
    display: flex;
    transform: rotate(180deg);
    color: #5c6e5f;
  }
  .drawer-chevron svg {
    width: 16px;
    height: 16px;
  }
  .expanded .drawer-chevron {
    transform: none;
  }
  .store-list {
    padding: 0 15px 7px;
  }
  .store-row {
    padding: 10px 1px;
    min-height: 65px;
    gap: 10px;
  }
  .kind-icon {
    width: 37px;
    height: 37px;
    border-radius: 11px;
  }
  .kind-icon .icon {
    width: 20px;
    height: 20px;
  }
  .store-name {
    font-size: 1rem;
  }
  .row-meta {
    font-size: 0.75rem;
  }
  .row-text {
    gap: 2px;
  }
  .sample-note {
    display: none;
    font-size: 0.72rem;
    padding: 6px 16px;
  }
  .expanded .sample-note {
    display: flex;
  }
  .pin-caption {
    font-size: 11px;
  }
  .empty-list {
    font-size: 0.85rem;
    padding: 6px 0;
  }
  .missing-map {
    bottom: 23px;
    max-width: 46%;
    font-size: 0.68rem;
    padding: 4px;
  }
  .form-page {
    padding: 0;
    background: var(--white);
  }
  .form-page form {
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 12px 16px max(21px, env(safe-area-inset-bottom));
  }
  .form-heading {
    gap: 3px;
    margin-bottom: 13px;
  }
  .form-heading h2 {
    font-size: 1.4rem;
  }
  .return-button {
    min-height: 30px;
  }
  .editor-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .fields > .text-field + .field-label,
  .custom-kind-row + .field-label {
    margin-top: 13px;
  }
  .kind-field {
    margin-top: 11px;
  }
  .editor-map-wrap {
    height: clamp(150px, 24dvh, 225px);
  }
  .field-hint {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-top: 5px;
  }
  .form-footer {
    margin-top: 14px;
    padding-top: 12px;
    display: block;
  }
  .form-footer .primary {
    width: 100%;
  }
  .form-error {
    margin-bottom: 8px;
  }
  .form-kinds {
    gap: 6px;
  }
  .form-kinds .chip {
    min-height: 36px;
  }
  .field-label {
    margin-bottom: 5px;
  }
  dialog {
    margin: auto 0 0;
    width: 100%;
    max-width: 100%;
    max-height: 84dvh;
    padding: 20px max(18px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom))
      max(18px, env(safe-area-inset-left));
    border-radius: 19px 19px 0 0;
  }
  dialog::backdrop {
    background: #24372d4a;
  }
  .toast {
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}
@media (max-width: 740px) and (max-height: 580px) {
  .home {
    grid-template-rows: auto minmax(0, 1fr) 55px;
  }
  .home.expanded {
    grid-template-rows: auto minmax(0, 1fr) 43dvh;
  }
  .zoom-tools {
    display: none;
  }
  .north {
    display: none;
  }
  .register-button {
    bottom: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.sample-badge {
  display: none;
  color: #66755f;
  background: #f0f1e5;
  border: 1px solid #d9dfcb;
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 0.68rem;
  font-weight: 550;
  letter-spacing: 0;
  line-height: 1.4;
}
@media (max-width: 740px) {
  .sample-badge {
    display: inline-block;
  }
}

.desktop-list-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 55px;
  padding: 12px 22px 6px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}
@media (min-width: 741px) {
  .list-toggle {
    display: none;
  }
}
@media (max-width: 740px) {
  .desktop-list-heading {
    display: none;
  }
}
