@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/InstrumentSans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/InstrumentSans-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/InstrumentSans-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #F3EFE6;
  --paper-2: #EAE4D6;
  --paper-3: #E2DACA;
  --ink: #16211C;
  --ink-2: #3B4A42;
  --muted: #707A72;
  --line: #CEC5B4;
  --accent: #B54A32;
  --accent-deep: #8B3421;
  --sage: #5F7A68;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow: 0 22px 50px -24px rgba(22, 33, 28, .55), 0 1px 0 rgba(255, 255, 255, .45) inset;
  --shadow-soft: 0 12px 30px -18px rgba(22, 33, 28, .5);
  --ease: cubic-bezier(.22, .8, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

#map {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #E7E1D4;
}

.map-vignette {
  position: fixed;
  inset: 0;
  z-index: 450;
  pointer-events: none;
  background:
    radial-gradient(120% 95% at 48% 38%, transparent 52%, rgba(22, 33, 28, .13) 100%),
    linear-gradient(180deg, rgba(243, 239, 230, .18) 0%, transparent 18%);
}

/* ---------- brand ---------- */

.masthead {
  position: fixed;
  top: 20px;
  left: 22px;
  z-index: 900;
  width: min(360px, calc(100vw - 160px));
  pointer-events: none;
}

.brand {
  position: relative;
  pointer-events: auto;
  padding: 20px 22px 16px;
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.brand::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}

body.ready .brand { opacity: 1; transform: translateY(0); }

.brand-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker-mark {
  width: 5px;
  height: 5px;
  background: var(--accent);
  transform: rotate(45deg);
  flex: none;
}

.brand h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 50px;
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.015em;
}

.brand h1 em {
  font-style: italic;
  color: var(--accent);
}

.brand-desc {
  margin: 11px 0 0;
  max-width: 255px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-2);
}

.brand-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta-divider {
  width: 1px;
  height: 9px;
  background: var(--line);
}

.sync {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sync i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 0 rgba(95, 122, 104, .45);
  animation: pulse 2.6s infinite;
}

.sync.is-offline i { background: var(--accent); animation: none; }
.sync.is-syncing i { background: #B78A3E; animation-duration: 1s; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(95, 122, 104, .45); }
  70% { box-shadow: 0 0 0 5px rgba(95, 122, 104, 0); }
  100% { box-shadow: 0 0 0 0 rgba(95, 122, 104, 0); }
}

.brand-hint {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.3;
  color: var(--ink-2);
}

body.placing .brand-hint { color: var(--accent); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}

.btn:hover { background: var(--paper-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn-ink:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #FFF8EC; }

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-2);
}

.btn-ghost:hover { background: var(--paper-2); color: var(--ink); }

.btn-block { width: 100%; height: 46px; }

.btn-icon {
  width: 15px;
  height: 15px;
  flex: none;
}

/* ---------- top actions ---------- */

.top-actions {
  position: fixed;
  top: 20px;
  right: 22px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

#authBtn {
  min-width: 88px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .6s var(--ease) .08s, transform .6s var(--ease) .08s, background .18s, border-color .18s;
}

body.ready #authBtn { opacity: 1; transform: translateY(0); }

#authBtn.is-user {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

#authBtn.is-user .btn-icon { color: var(--sage); }

.user-menu {
  width: 196px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow);
  animation: menuIn .18s var(--ease);
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-menu-head {
  padding: 8px 9px 10px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.user-menu-head strong {
  display: block;
  margin-top: 2px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.user-menu-item {
  width: 100%;
  min-height: 38px;
  padding: 0 9px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

.user-menu-item:hover { background: var(--paper-2); }

/* ---------- drop action ---------- */

.drop-fab {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 1000;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 17px 0 13px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #FFF8EC;
  box-shadow: 0 18px 38px -16px rgba(22, 33, 28, .75);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .2s, transform .2s, opacity .2s;
  animation: fabIn .45s var(--ease);
}

@keyframes fabIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.drop-fab:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateX(-50%) translateY(-2px);
}

.drop-fab.active {
  background: var(--accent);
  border-color: var(--accent);
  animation: fabGlow 1.8s infinite;
}

@keyframes fabGlow {
  0%, 100% { box-shadow: 0 18px 38px -16px rgba(181, 74, 50, .7), 0 0 0 0 rgba(181, 74, 50, .35); }
  50% { box-shadow: 0 18px 38px -16px rgba(181, 74, 50, .7), 0 0 0 8px rgba(181, 74, 50, 0); }
}

.fab-plus {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 248, 236, .5);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

body.composer-open .drop-fab {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
}

/* ---------- composer ---------- */

.composer {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 1600;
  transform: translateX(-50%);
  width: min(410px, calc(100vw - 32px));
  padding: 20px 20px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 32px 70px -24px rgba(22, 33, 28, .7);
  animation: composerIn .26s var(--ease);
}

@keyframes composerIn {
  from { opacity: 0; transform: translateX(-50%) translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.composer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.composer h2, .login-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.01em;
}

.icon-btn, .modal-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: -6px -8px 0 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 22px;
  line-height: 1;
}

.icon-btn:hover, .modal-close:hover { background: var(--paper-2); color: var(--ink); }

.coords {
  margin: 7px 0 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .07em;
  color: var(--muted);
}

.composer label, .login-card label {
  display: block;
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.composer label span {
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: none;
}

.composer input, .login-card input {
  width: 100%;
  height: 46px;
  margin-bottom: 13px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: color-mix(in srgb, var(--paper-2) 65%, white);
  font-size: 15px;
  transition: border-color .16s, box-shadow .16s, background .16s;
}

.composer input::placeholder, .login-card input::placeholder { color: #9A9F96; }

.composer input:focus, .login-card input:focus {
  outline: none;
  border-color: var(--ink);
  background: #FFFDF7;
  box-shadow: 0 0 0 3px rgba(181, 74, 50, .12);
}

.composer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.composer-actions .btn-ink { flex: 1; }

.form-error {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-left: 2px solid var(--accent);
  background: rgba(181, 74, 50, .08);
  font-size: 12px;
  color: var(--accent-deep);
}

/* ---------- modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(18, 28, 23, .38);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: fadeIn .2s var(--ease);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.login-card {
  position: relative;
  width: min(392px, 100%);
  padding: 28px 28px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .65);
  animation: cardIn .3s var(--ease);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-card h2 { font-size: 44px; margin-bottom: 8px; }

.login-copy {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--ink-2);
}

.login-card .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.login-card .brand-kicker { margin-bottom: 12px; }

.login-foot {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 2600;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  background: var(--ink);
  color: #FFF8EC;
  border: 1px solid rgba(255, 248, 236, .18);
  border-radius: 3px;
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .6);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-align: center;
  animation: toastIn .22s var(--ease);
}

.toast.is-error { background: var(--accent-deep); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ---------- leaflet ---------- */

.leaflet-container {
  font-family: var(--sans);
  background: #E7E1D4;
}

.leaflet-tile-pane {
  filter: saturate(.6) contrast(.97) brightness(1.03) sepia(.07);
}

.leaflet-control-zoom {
  border: 1px solid var(--line) !important;
  border-radius: 3px !important;
  box-shadow: var(--shadow-soft) !important;
  overflow: hidden;
  margin-right: 20px !important;
  margin-bottom: 44px !important;
}

.leaflet-control-zoom a {
  width: 38px !important;
  height: 38px !important;
  line-height: 38px !important;
  background: var(--paper) !important;
  color: var(--ink) !important;
  border-bottom: 1px solid var(--line) !important;
  font-family: var(--sans);
  font-size: 19px !important;
}

.leaflet-control-zoom a:last-child { border-bottom: 0 !important; }
.leaflet-control-zoom a:hover { background: var(--paper-2) !important; }

.leaflet-control-attribution {
  margin: 0 !important;
  padding: 3px 7px !important;
  background: rgba(243, 239, 230, .88) !important;
  border-top-left-radius: 3px;
  color: var(--muted) !important;
  font-family: var(--mono) !important;
  font-size: 8.5px !important;
  letter-spacing: .02em;
}

.leaflet-control-attribution a {
  color: var(--ink-2) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.leaflet-control-scale {
  margin-left: 20px !important;
  margin-bottom: 15px !important;
}

.leaflet-control-scale-line {
  border-color: var(--ink) !important;
  background: rgba(243, 239, 230, .82) !important;
  color: var(--ink-2) !important;
  font-family: var(--mono);
  font-size: 8.5px;
  padding: 2px 5px !important;
  text-shadow: none !important;
}

body.placing #map { cursor: crosshair; }

.leaflet-marker-icon.pin-wrap {
  background: transparent;
  border: 0;
}

.pin {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--accent);
  border: 2px solid #FFF8EC;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 10px 18px -7px rgba(22, 33, 28, .7);
  transition: transform .18s var(--ease), background .18s;
}

.pin span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFF8EC;
  transform: rotate(45deg);
}

.leaflet-marker-icon.pin-wrap:hover .pin,
.leaflet-marker-icon.pin-wrap:focus .pin {
  transform: rotate(-45deg) scale(1.14);
  background: var(--accent-deep);
}

.pin-wrap.is-pending .pin {
  background: var(--ink);
  animation: pinDrop .32s var(--ease);
}

.pin-wrap.is-pending .pin::after {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(181, 74, 50, .65);
  border-radius: 50%;
  transform: rotate(45deg);
  animation: pinRing 1.6s infinite;
}

@keyframes pinDrop {
  from { transform: rotate(-45deg) translateY(-10px) scale(.8); opacity: 0; }
  to { transform: rotate(-45deg) translateY(0) scale(1); opacity: 1; }
}

@keyframes pinRing {
  0% { opacity: .8; transform: rotate(45deg) scale(.8); }
  80%, 100% { opacity: 0; transform: rotate(45deg) scale(1.4); }
}

.pin-wrap.pin-new .pin { animation: pinDrop .4s var(--ease); }

.leaflet-popup-content-wrapper {
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 26px 55px -22px rgba(22, 33, 28, .72);
}

.leaflet-popup-content {
  margin: 0;
  width: 250px !important;
}

.leaflet-popup-tip {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: none;
}

.leaflet-popup-close-button {
  top: 6px !important;
  right: 6px !important;
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  color: var(--muted) !important;
  font-family: var(--sans) !important;
  font-size: 20px !important;
  line-height: 26px !important;
}

.leaflet-popup-close-button:hover { color: var(--accent) !important; background: transparent !important; }

.pp { padding: 17px 18px 16px; }

.pp-kicker {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

.pp h3 {
  margin: 6px 26px 5px 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}

.pp-rent {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--ink-2);
}

.pp-rent.is-empty { color: var(--muted); font-style: italic; font-family: var(--sans); }

.pp-meta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.6;
  letter-spacing: .04em;
  color: var(--muted);
}

.pp-del {
  margin-top: 11px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 2px;
  background: transparent;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pp-del:hover, .pp-del.is-armed {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFF8EC;
}

/* ---------- no script ---------- */

.noscript {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--paper);
  font-family: var(--serif);
  font-size: 24px;
  text-align: center;
}

/* ---------- mobile ---------- */

@media (max-width: 700px) {
  .masthead {
    top: 10px;
    left: 10px;
    width: calc(100vw - 106px);
  }

  .brand { padding: 12px 14px 11px; }

  .brand-kicker { font-size: 8px; letter-spacing: .16em; margin-bottom: 5px; }

  .brand h1 { font-size: 30px; }

  .brand-desc, .brand-hint { display: none; }

  .brand-meta {
    margin-top: 9px;
    padding-top: 7px;
    gap: 7px;
    font-size: 8px;
  }

  .top-actions { top: 10px; right: 10px; }
  #authBtn { min-width: 0; height: 40px; padding: 0 11px; font-size: 9px; }
  #authBtn .btn-icon { display: none; }

  .user-menu { width: 180px; }

  .drop-fab {
    bottom: calc(18px + env(safe-area-inset-bottom));
    height: 46px;
    padding: 0 15px 0 11px;
    font-size: 9.5px;
  }

  .composer {
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    padding: 18px 18px calc(16px + env(safe-area-inset-bottom));
    border-radius: 14px 14px 0 0;
    border-bottom: 0;
    animation: sheetIn .26s var(--ease);
  }

  @keyframes sheetIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .composer h2 { font-size: 28px; }
  .composer input { height: 48px; font-size: 16px; }

  .modal { padding: 10px; align-items: end; }
  .login-card {
    width: 100%;
    padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
    border-radius: 14px 14px 0 0;
    animation: sheetIn .26s var(--ease);
  }
  .login-card h2 { font-size: 38px; }
  .login-card input { height: 48px; font-size: 16px; }

  .toast { bottom: calc(78px + env(safe-area-inset-bottom)); font-size: 8.5px; }

  .leaflet-control-zoom { margin-right: 10px !important; margin-bottom: 38px !important; }
  .leaflet-control-zoom a { width: 34px !important; height: 34px !important; line-height: 34px !important; }
  .leaflet-control-scale { margin-left: 10px !important; margin-bottom: 10px !important; }
  .leaflet-control-attribution { font-size: 7.5px !important; }

  .leaflet-popup-content { width: 228px !important; }
  .pp { padding: 15px 16px 14px; }
  .pp h3 { font-size: 22px; }
}

@media (max-width: 380px) {
  .brand h1 { font-size: 26px; }
  .brand-meta { font-size: 7.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
