/* 奶蛙雷達 — cream + egg-yolk palette, cardboard-standee "sticker" cards */
:root {
  --bg: #FFF6DF;
  --paper: #FFFCF3;
  --card: #FFFFFF;
  --ink: #3B2A1A;
  --muted: #8C7556;
  --line: #EEDDB5;
  --yolk: #FFC93C;
  --yolk-soft: #FFE9A6;
  --orange: #FF9F1C;
  --link: #B85F00;
  --leaf: #1E9E5E;
  --leaf-soft: #D5F3E2;
  --berry: #E5484D;
  --berry-soft: #FFE1DE;
  --grape: #8E5CF7;
  --sky: #2F8FE0;
  --edge: 2.5px solid var(--ink);
  --pop: 3px 3px 0 var(--ink);
  --pop-big: 5px 5px 0 var(--ink);
  --radius: 18px;
  --font-display: "Huninn", "Noto Sans TC", ui-rounded, system-ui, sans-serif;
  --font-body: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A140C;
    --paper: #221A10;
    --card: #2B2115;
    --ink: #FFEFCF;
    --muted: #C2A67C;
    --line: #4A3922;
    --yolk-soft: #4A3A14;
    --link: #FFB547;
    --leaf: #4FD18F;
    --leaf-soft: #173A27;
    --berry: #FF6B6F;
    --berry-soft: #4A1E1E;
    --pop: 3px 3px 0 #000;
    --pop-big: 5px 5px 0 #000;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 15px/1.5 var(--font-body);
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; margin: 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.error { color: var(--berry); font-weight: 700; margin: 6px 0 0; }
.warn { background: var(--yolk-soft); border: 2px dashed var(--orange); border-radius: 12px; padding: 8px 10px; font-size: 13px; }
.hint { font-size: 13px; color: var(--muted); }
code, .coords, .secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

#map { position: fixed; inset: 0; z-index: 0; background: var(--bg); }

/* ---------------- panel ---------------- */
#panel {
  position: fixed; z-index: 500;
  top: 14px; left: 14px; bottom: 14px; width: 392px;
  display: flex; flex-direction: column;
  background: var(--paper); border: var(--edge); border-radius: 22px; box-shadow: var(--pop-big);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; background: var(--yolk); border-bottom: var(--edge);
  color: #3B2A1A;
}
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.naiwa-badge { width: 100%; height: 100%; display: block; }
.naiwa-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-name { font-family: var(--font-display); font-size: 21px; line-height: 1.1; }
.brand-sub { font-size: 12px; opacity: .75; }
.head-actions { display: flex; align-items: center; gap: 6px; }
.live { font-size: 12px; color: rgba(59, 42, 26, .35); }
.live.on { color: #138A4E; }
#view { flex: 1; overflow-y: auto; padding: 14px 14px 28px; }
.sheet-handle { display: none; }

@media (max-width: 720px) {
  #panel {
    top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 64vh;
    border-radius: 24px 24px 0 0; border-bottom: none; box-shadow: 0 -4px 0 var(--ink);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .panel-head { position: relative; padding-top: 16px; }
  .panel-head::before {
    content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    width: 44px; height: 5px; border-radius: 3px; background: rgba(59, 42, 26, .35);
  }
  #panel.public-panel {
    height: var(--sheet-height, 52dvh);
    min-height: 72px;
    max-height: calc(100dvh - var(--credit-h) - env(safe-area-inset-top) - 12px);
    padding-bottom: 0;
    transition: height .22s ease;
  }
  #panel.public-panel.sheet-dragging { transition: none; }
  #panel.public-panel .panel-head {
    flex: 0 0 auto;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
  }
  #panel.public-panel .panel-head:active { cursor: grabbing; }
  #panel.public-panel .panel-head::before { display: none; }
  #panel.public-panel #view {
    min-height: 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  #panel.public-panel.sheet-collapsed #view { visibility: hidden; }
  .sheet-handle {
    display: block;
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 72px; height: 24px; padding: 0;
    border: 0; background: transparent; cursor: pointer;
  }
  .sheet-handle::before {
    content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
    width: 44px; height: 5px; border-radius: 3px; background: rgba(59, 42, 26, .4);
  }
  .sheet-handle:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 12px; }
  .leaflet-top.leaflet-right { top: env(safe-area-inset-top); }
}

/* ---------------- buttons ---------------- */
.btn {
  border: 2px solid var(--ink); border-radius: 12px; padding: 8px 14px; cursor: pointer;
  background: var(--card); font-weight: 700; box-shadow: 2px 2px 0 var(--ink);
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: none; }
.btn.primary { background: var(--yolk); color: #3B2A1A; }
.btn.danger { color: var(--berry); border-color: var(--berry); box-shadow: 2px 2px 0 var(--berry); background: var(--card); }
.btn.danger.armed { background: var(--berry); color: #fff; }
.btn.small { padding: 5px 10px; font-size: 13px; border-radius: 10px; }
.btn.big { padding: 12px 16px; font-size: 17px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: 2px 2px 0 var(--ink); }
a.btn { display: inline-block; text-decoration: none; text-align: center; color: inherit; }
a.btn.primary { color: #3B2A1A; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 16px;
  border: 2px solid #3B2A1A; background: #FFFCF3; color: #3B2A1A; box-shadow: 2px 2px 0 #3B2A1A;
  display: grid; place-items: center; padding: 0;
}
.icon-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.icon-btn.dim { opacity: .5; }
.link-btn { border: 0; background: none; color: var(--link); cursor: pointer; padding: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- art (standee / emoji) ---------------- */
.art { display: grid; place-items: center; width: 100%; height: 100%; }
.art svg { width: 100%; height: 100%; overflow: visible; }
.art-naiwa img { height: 100%; width: 100%; object-fit: contain; object-position: 50% 100%; display: block; user-select: none;
  filter: drop-shadow(0 2px 1.5px rgba(59, 42, 26, .35)); }
.art-emoji {
  font-size: 1.6em; background: var(--yolk-soft); border: 2px solid var(--ink); border-radius: 50%;
  aspect-ratio: 1; height: auto; align-self: center;
}

/* ---------------- list ---------------- */
.list-hero { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin: 2px 0 14px; }
.list-hero h3 { font-size: 24px; line-height: 1.2; }
.list-hero p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.device-card {
  display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 12px;
  background: var(--card); border: var(--edge); border-radius: var(--radius); box-shadow: var(--pop);
  cursor: pointer; transition: transform .1s, box-shadow .1s;
}
.device-card:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.device-card .avatar { width: 46px; height: 64px; flex-shrink: 0; }
.device-card .meta { flex: 1; min-width: 0; }
.device-card .name { font-family: var(--font-display); font-size: 18px; line-height: 1.2; }
.device-card .where { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.pill {
  display: inline-flex; align-items: center; gap: 3px; padding: 1px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; border: 1.5px solid var(--ink); background: var(--card); white-space: nowrap;
}
.pill.on { background: var(--leaf-soft); color: var(--leaf); border-color: var(--leaf); }
.pill.off { color: var(--muted); border-color: var(--line); }
.pill.lost { background: var(--berry); color: #fff; border-color: var(--berry); }
.pill.low { background: var(--berry-soft); color: var(--berry); border-color: var(--berry); }
.pill.src { border-style: dashed; }
.empty { text-align: center; padding: 18px 10px 8px; color: var(--muted); }
.empty .avatar { width: 90px; height: 150px; margin: 0 auto 6px; }
.section-title { font-family: var(--font-display); font-size: 17px; margin: 18px 0 8px; }

/* ---------------- detail ---------------- */
.back { margin-bottom: 10px; font-size: 14px; }
.lost-banner {
  background: var(--berry); color: #fff; border: var(--edge); border-radius: 14px; box-shadow: var(--pop);
  padding: 9px 12px; margin-bottom: 12px; font-weight: 700; animation: wiggle 2.6s ease-in-out infinite;
}
.hero {
  display: flex; gap: 14px; align-items: center; padding: 14px; margin-bottom: 12px;
  background: var(--card); border: var(--edge); border-radius: 20px; box-shadow: var(--pop);
}
.hero .avatar { width: 64px; height: 100px; flex-shrink: 0; }
.hero h2 { font-size: 24px; line-height: 1.15; }
.hero .addr { font-size: 14px; margin-top: 6px; font-weight: 500; }
.hero .when { font-size: 12px; color: var(--muted); margin-top: 2px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.fact { background: var(--paper); border: 1.5px dashed var(--line); border-radius: 12px; padding: 7px 9px; }
.fact .k { font-size: 11px; color: var(--muted); }
.fact .v { font-weight: 700; font-size: 14px; }
.traffic-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.traffic-card { background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 10px; min-width: 0; }
.traffic-card span { display: block; color: var(--muted); font-size: 11px; }
.traffic-card strong { display: block; font-family: var(--font-display); font-size: clamp(20px, 5vw, 27px); line-height: 1.2; margin-top: 3px; font-variant-numeric: tabular-nums; }
.traffic-heading { font-family: var(--font-display); font-size: 15px; margin: 16px 0 8px; }
.traffic-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; height: 132px; }
.traffic-day { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.traffic-bars { height: 108px; width: 100%; display: flex; justify-content: center; align-items: flex-end; gap: 3px; border-bottom: 1px solid var(--line); }
.traffic-bar { display: block; width: min(38%, 14px); border-radius: 5px 5px 0 0; min-height: 0; }
.traffic-bar.views, .traffic-legend i.views { background: var(--yolk); }
.traffic-bar.visitors, .traffic-legend i.visitors { background: var(--leaf); }
.traffic-date { color: var(--muted); font-size: 10px; white-space: nowrap; margin-top: 4px; }
.traffic-legend { display: flex; gap: 15px; color: var(--muted); font-size: 11px; margin-top: 6px; }
.traffic-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; }
.traffic-note { margin: 8px 0 0; font-size: 11px; }
.coords { font-size: 11.5px; color: var(--muted); margin: 0 2px 12px; }

.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 9px; margin-bottom: 4px; }
.action {
  border: var(--edge); background: var(--card); border-radius: 16px; box-shadow: var(--pop); padding: 10px 4px 8px;
  cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; font-weight: 700;
}
.action .ic { font-size: 22px; line-height: 1.2; }
.action:active { transform: translate(2px, 2px); box-shadow: none; }
.action.busy { opacity: .55; }
.action.go { background: var(--yolk); color: #3B2A1A; }

details.sec {
  margin-top: 12px; background: var(--card); border: var(--edge); border-radius: var(--radius); box-shadow: var(--pop);
}
details.sec > summary {
  list-style: none; cursor: pointer; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display); font-size: 17px;
}
details.sec > summary::-webkit-details-marker { display: none; }
details.sec > summary::after { content: "＋"; font-family: var(--font-body); font-weight: 700; color: var(--muted); }
details.sec[open] > summary::after { content: "－"; }
details.sec > .body { padding: 0 14px 14px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.chip {
  border: 2px solid var(--ink); background: var(--card); border-radius: 999px; padding: 3px 12px;
  cursor: pointer; font-size: 13px; font-weight: 700;
}
.chip.on { background: var(--yolk); color: #3B2A1A; }
.stats { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.stats b { color: var(--ink); }
input[type=range] { width: 100%; accent-color: var(--orange); }
.playback-label { font-size: 12px; color: var(--muted); text-align: center; }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: 0; }

.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.switch { position: relative; width: 52px; height: 30px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute; inset: 0; background: var(--line); border: 2px solid var(--ink); border-radius: 999px; cursor: pointer; transition: .2s;
}
.switch span::before {
  content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
  background: #fff; border: 2px solid #3B2A1A; border-radius: 50%; transition: .2s;
}
.switch input:checked + span { background: var(--berry); }
.switch input:checked + span::before { transform: translateX(22px); }

.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea, .login-card input {
  border: 2px solid var(--ink); background: var(--card); border-radius: 12px; padding: 9px 11px; width: 100%; font-size: 16px;
}
.field input:focus, .field select:focus, .login-card input:focus { outline: 3px solid var(--yolk); outline-offset: 1px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; margin: 4px 0 12px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }

.zone, .event, .share {
  display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1.5px dashed var(--line); font-size: 14px;
}
.zone:last-child, .event:last-child, .share:last-child { border-bottom: 0; }
.zone .meta, .event .meta, .share .meta { flex: 1; min-width: 0; }
.event .ic { width: 24px; text-align: center; font-size: 17px; }
.event .t, .zone .t, .share .t { font-size: 11.5px; color: var(--muted); }

.steps { margin: 8px 0 12px; padding-left: 20px; font-size: 13.5px; }
.steps li { margin: 3px 0; }
.sec-list { list-style: none; padding: 0; margin: 10px 0; font-size: 13.5px; }
.sec-list li { margin: 4px 0; }
.sec-list li::before { content: "🔒 "; }

/* ---------------- map markers ---------------- */
.standee { position: relative; width: 28px; height: 54px; transform-origin: 50% 100%; }
.standee .art-naiwa { height: 52px; }
.standee:has(.art-naiwa)::after {   /* ground shadow under the feet */
  content: ""; position: absolute; left: 50%; bottom: 0; width: 22px; height: 6px; transform: translateX(-50%);
  border-radius: 50%; background: rgba(59, 42, 26, .28); z-index: -1;
}
.standee .art-emoji { width: 44px; height: 44px; margin: 4px auto 0; font-size: 26px; box-shadow: 2px 2px 0 #3B2A1A; border-color: #3B2A1A; background: #FFE9A6; }
.standee .art-emoji + .stand { display: block; }
.standee .stand { display: none; width: 4px; height: 12px; margin: 0 auto; background: #3B2A1A; border-radius: 2px; }
.standee.selected { animation: hop 1.4s ease-in-out infinite; }
.standee.stale { filter: grayscale(.85); opacity: .85; }
.standee.lost::before {
  content: ""; position: absolute; left: 50%; bottom: -3px; width: 30px; height: 10px; transform: translateX(-50%);
  border-radius: 50%; background: rgba(229, 72, 77, .55); animation: ping 1.4s ease-out infinite; z-index: -1;
}
.ghost-dot {
  width: 18px; height: 18px; border-radius: 50%; background: var(--orange); border: 3px solid #fff;
  box-shadow: 0 0 0 2px #3B2A1A;
}
.leaflet-container { font-family: var(--font-body); }
.leaflet-tooltip {
  font-family: var(--font-body); font-weight: 700; color: #3B2A1A; background: #FFFCF3;
  border: 2px solid #3B2A1A; border-radius: 10px; box-shadow: 2px 2px 0 #3B2A1A;
}
.leaflet-bar { border: 2px solid #3B2A1A !important; border-radius: 12px !important; box-shadow: 3px 3px 0 #3B2A1A !important; overflow: hidden; }
.leaflet-bar a { color: #3B2A1A !important; background: #FFFCF3 !important; }
.picking .leaflet-container { cursor: crosshair; }

@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-6px) rotate(-3deg); } 60% { transform: translateY(-6px) rotate(3deg); } }
@keyframes ping { 0% { transform: translateX(-50%) scale(.6); opacity: 1; } 100% { transform: translateX(-50%) scale(2.2); opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@keyframes wiggle { 0%, 92%, 100% { transform: rotate(0); } 94% { transform: rotate(-1.5deg); } 97% { transform: rotate(1.5deg); } }
@keyframes pop-in { from { transform: translateY(-8px) scale(.96); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }

/* ---------------- overlays ---------------- */
.overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(43, 29, 18, .45);
  display: grid; place-items: center; padding: 16px;
}
.overlay.login {
  background-color: var(--yolk);
  background-image: radial-gradient(rgba(59, 42, 26, .13) 2.2px, transparent 2.4px);
  background-size: 24px 24px;
}
.login-card {
  width: 100%; max-width: 360px; text-align: center; display: flex; flex-direction: column; gap: 10px;
  background: var(--paper); border: var(--edge); border-radius: 26px; box-shadow: 6px 6px 0 #3B2A1A; padding: 22px 24px 24px;
}
.login-mascot { width: 120px; height: 190px; margin: -4px auto 4px; animation: bob 2.6s ease-in-out infinite; }
.login-card h1 { font-size: 32px; }
.login-card p { margin: 0; }
.modal-card {
  width: 100%; max-width: 470px; position: relative; max-height: 90vh; overflow-y: auto;
  background: var(--paper); border: var(--edge); border-radius: 22px; box-shadow: var(--pop-big); padding: 22px;
  animation: pop-in .18s ease-out;
}
.modal-card h3 { font-size: 22px; margin: 0 40px 12px 0; }
.modal-close { position: absolute; top: 14px; right: 14px; }
.secret {
  font-size: 12px; background: var(--card); border: 2px dashed var(--line);
  padding: 10px; border-radius: 12px; word-break: break-all; white-space: pre-wrap; user-select: all;
}

#toasts {
  position: fixed; z-index: 1100; top: 14px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px);
}
.toast {
  background: var(--paper); border: var(--edge); box-shadow: var(--pop); border-radius: 14px;
  padding: 9px 14px; font-size: 14px; font-weight: 500; animation: pop-in .2s ease-out;
}

/* ---------------- share page ---------------- */
.share-card { max-width: 420px; }
.share-card .hero { box-shadow: none; border: none; padding: 0; margin: 0 0 12px; background: transparent; }
.share-card .btn.big { width: 100%; margin-top: 4px; }

/* OpenStreetMap tiles, tinted toward the cream/yolk palette */
.leaflet-tile-pane { filter: sepia(.22) saturate(1.15) brightness(1.03); }
@media (prefers-color-scheme: dark) {
  .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(.92) sepia(.25); }
}

/* ---------------- admin: logs / raw reports ---------------- */
.logbox {
  font: 11.5px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; background: #1F1710; color: #F6E7C8;
  border: 2px solid var(--ink); border-radius: 12px; padding: 8px 10px; max-height: 260px; overflow: auto;
  white-space: pre-wrap; word-break: break-all; margin: 0;
}
.logbox .log-warning { color: #FFC93C; }
.logbox .log-error, .logbox .log-critical { color: #FF8A8A; }
.logbox .log-debug { color: #A9C7FF; }
details.raw { margin-bottom: 6px; font-size: 13px; }
details.raw summary { cursor: pointer; color: var(--muted); }
.login-card #totp { letter-spacing: 4px; text-align: center; }

/* public map: the card hugs its content on desktop */
@media (min-width: 721px) { #panel.public-panel { bottom: auto; max-height: calc(100vh - 28px); } }

.leaflet-container .leaflet-marker-pane .standee img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }

/* 奶蛙一共走了多遠 */
.odo {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 12px;
  padding: 10px 14px; background: var(--yolk-soft); border: var(--edge); border-radius: 16px; box-shadow: var(--pop);
}
.odo-k { font-weight: 700; font-size: 14px; }
.odo-v { font-family: var(--font-display); font-size: 28px; line-height: 1; white-space: nowrap; }

/* credit bar across the bottom of the screen */
:root { --credit-h: 30px; }
.credit {
  position: fixed; z-index: 1050; left: 0; right: 0; bottom: 0; height: var(--credit-h);
  display: flex; align-items: center; justify-content: center; gap: 4px; padding-bottom: env(safe-area-inset-bottom);
  background: var(--yolk); color: #3B2A1A; border-top: var(--edge); font-size: 13px; font-weight: 700; white-space: nowrap;
}
.credit a { color: #3B2A1A; text-decoration: underline; text-underline-offset: 3px; }
#panel { bottom: calc(14px + var(--credit-h)); }
@media (min-width: 721px) { #panel.public-panel { max-height: calc(100vh - 28px - var(--credit-h)); } }
@media (max-width: 720px) { #panel { bottom: var(--credit-h); } }
.leaflet-bottom { bottom: var(--credit-h); }
