/* คลังจุดถ่ายภาพ — /tools/spots (src/spots.js, public/assets/spots.js) */
:root {
  --bg: #f3f5f8; --card: #fff; --ink: #17212b; --mut: #6b7785; --line: #dfe4ea; --top: #17212b;
  --pri: #1f6feb; --pri-ink: #fff; --warn: #b45309; --bad: #c62828; --ok: #1b7f4b;
  --r: 12px; --shadow: 0 1px 2px rgba(15, 23, 32, .08), 0 6px 20px rgba(15, 23, 32, .08);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { font: 15px/1.5 'IBM Plex Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--bg); -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--pri); }
#app { height: 100%; height: 100dvh; display: flex; flex-direction: column; }

.boot, .gate { margin: auto; text-align: center; color: var(--mut); padding: 24px; }
.spin { width: 28px; height: 28px; margin: 0 auto 12px; border: 3px solid var(--line); border-top-color: var(--pri); border-radius: 50%; animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.gate { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); max-width: 400px; width: calc(100% - 32px); padding: 32px 24px; color: var(--ink); }
.gate h1 { font-size: 22px; margin: 6px 0 4px; }
.gate p { color: var(--mut); margin: 0 0 18px; }
.gate .err { color: var(--bad); margin: 14px 0 0; font-size: 14px; }
.gate .ico { font-size: 40px; }

/* ---- ปุ่ม / ชิป ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: pointer; text-decoration: none; color: var(--ink); font-weight: 500; white-space: nowrap; }
.btn:hover { border-color: #b9c2cc; }
.btn.pri { background: var(--pri); border-color: var(--pri); color: var(--pri-ink); }
.btn.pri:hover { filter: brightness(1.07); }
.btn.bad { color: var(--bad); }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .55; cursor: default; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: #eef1f5; white-space: nowrap; }
.chip.sunrise { background: #fff1e0; color: #a14a00; }
.chip.midday { background: #fff8cc; color: #7a5b00; }
.chip.sunset { background: #fde6ea; color: #a1233f; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }

/* ---- แถบบน ---- */
.top { background: var(--top); color: #fff; display: flex; align-items: center; gap: 10px; padding: 8px 14px; flex-wrap: wrap; z-index: 5; }
.brand { font-weight: 700; font-size: 16px; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.seg { display: inline-flex; background: rgba(255, 255, 255, .12); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; color: #dfe6ee; padding: 5px 13px; border-radius: 8px; cursor: pointer; font-weight: 500; white-space: nowrap; }
.seg button.on { background: #fff; color: var(--ink); }
.top .q { flex: 1 1 160px; min-width: 120px; max-width: 320px; background: rgba(255, 255, 255, .12); border: 1px solid transparent; border-radius: 10px; padding: 6px 11px; color: #fff; outline: none; }
.top .q::placeholder { color: #aab6c3; }
.top .q:focus { border-color: #7fb0ff; background: rgba(255, 255, 255, .18); }
.top .sp { flex: 1; }
.top .add { background: var(--pri); border: 0; color: #fff; border-radius: 10px; padding: 7px 14px; font-weight: 600; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.top .add b { font-size: 19px; line-height: 1; font-weight: 600; }
.top .ic { background: rgba(255, 255, 255, .12); border: 0; color: #fff; border-radius: 10px; padding: 7px 11px; cursor: pointer; white-space: nowrap; }
.top .ic:hover, .top .add:hover { filter: brightness(1.12); }
.top .brk { display: none; }
.top .who { font-size: 12.5px; color: #b9c5d2; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banner { background: #fff4d6; color: #6b4a00; padding: 7px 14px; font-size: 13.5px; border-bottom: 1px solid #f0dca0; }

main { flex: 1; min-height: 0; position: relative; }
.view { position: absolute; inset: 0; }

/* ---- โหมดแผนที่: แผนที่ 2/3 + ข้อมูล 1/3 ---- */
.mapview { display: grid; grid-template-columns: 2fr 1fr; }
.mapbox { position: relative; min-width: 0; background: #dde3ea; }
#map { position: absolute; inset: 0; }
.locate { position: absolute; right: 10px; bottom: 112px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #444; font-size: 22px; line-height: 1; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); cursor: pointer; z-index: 2; }
.locate.busy { color: var(--pri); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.grab { display: none; }
.maperr { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--mut); padding: 24px; }
.panel { background: var(--card); border-left: 1px solid var(--line); overflow-y: auto; min-width: 0; -webkit-overflow-scrolling: touch; }
.panel .pad { padding: 16px; }
.panel h3 { margin: 0 0 10px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.panel h3 small { color: var(--mut); font-weight: 400; }
.hint { color: var(--mut); font-size: 14px; }
.panel .close { display: none; }

.row { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-radius: 10px; padding: 7px; cursor: pointer; }
.row:hover { background: #f1f4f8; }
.row .th { width: 58px; height: 58px; border-radius: 9px; background: #dfe5ec center/cover no-repeat; flex: none; display: grid; place-items: center; font-size: 22px; }
.row .tx { min-width: 0; flex: 1; }
.row .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .sb { color: var(--mut); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .vw { color: var(--mut); font-size: 12px; white-space: nowrap; }

/* ---- หมุดรูปบนแผนที่ ---- */
.pin { position: absolute; width: 58px; height: 58px; margin: -66px 0 0 -29px; padding: 0; border: 3px solid #fff; border-radius: 13px; background: #2b3a4a center/cover no-repeat; box-shadow: 0 2px 8px rgba(0, 0, 0, .38); cursor: pointer; transition: transform .12s; display: grid; place-items: center; font-size: 24px; color: #fff; }
.pin::after { content: ''; position: absolute; left: 50%; bottom: -10px; margin-left: -7px; border: 7px solid transparent; border-top-color: #fff; border-bottom: 0; }
.pin:hover { transform: scale(1.08); z-index: 3; }
.pin.sel { border-color: var(--pri); transform: scale(1.18); z-index: 4; }
.pin.sel::after { border-top-color: var(--pri); }
.pin .n { position: absolute; top: -9px; right: -9px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--pri); color: #fff; font: 600 12px/22px system-ui, sans-serif; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.pin .t { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 12px); max-width: 150px; padding: 1px 7px; border-radius: 6px; background: rgba(23, 33, 43, .86); color: #fff; font: 500 11.5px/1.5 'IBM Plex Sans Thai', system-ui, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; opacity: 0; }
.pin:hover .t, .pin.sel .t { opacity: 1; }

/* ---- รายละเอียดจุด (ใช้ทั้งแผงขวาและ modal) ---- */
.d-ph { position: relative; background: #111a22; }
.d-ph .main { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; cursor: zoom-in; border: 0; padding: 0; background: #111a22 center/cover no-repeat; }
.d-ph .none { aspect-ratio: 3 / 1; display: grid; place-items: center; color: #8fa0b2; font-size: 14px; }
.d-ths { display: flex; gap: 6px; padding: 6px; background: #111a22; }
.d-ths button { flex: 1 1 0; max-width: 33.4%; aspect-ratio: 3 / 2; border: 2px solid transparent; border-radius: 7px; padding: 0; background: #223 center/cover no-repeat; cursor: pointer; opacity: .7; }
.d-ths button.on { border-color: #fff; opacity: 1; }
.d-body { padding: 14px 16px 18px; }
.d-body h2 { margin: 0 0 2px; font-size: 20px; line-height: 1.3; }
.d-sub { color: var(--mut); margin-bottom: 9px; }
.d-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 13px 0 10px; }
.d-btns .btn { flex: 1 1 140px; }
.d-coord { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--mut); flex-wrap: wrap; }
.d-coord code { background: #eef1f5; padding: 2px 7px; border-radius: 6px; color: var(--ink); font-size: 13px; }
.d-note { white-space: pre-wrap; margin: 12px 0 0; overflow-wrap: anywhere; }
.d-meta { color: var(--mut); font-size: 12.5px; margin-top: 12px; }
.d-act { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.near { border-top: 1px solid var(--line); padding: 12px 9px 16px; }
.near h4 { margin: 0 7px 6px; font-size: 13.5px; color: var(--mut); font-weight: 600; display: flex; align-items: center; gap: 8px; }

/* ---- โหมดแกลเลอรี ---- */
.galview { overflow-y: auto; padding: 18px; -webkit-overflow-scrolling: touch; }
.gal-in { max-width: 1400px; margin: 0 auto; }
.gal-h { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; }
.gal-h h2 { margin: 0; font-size: 21px; }
.gal-h small { color: var(--mut); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.card { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; border: 0; padding: 0; text-align: left; display: flex; flex-direction: column; transition: transform .12s; }
.card:hover { transform: translateY(-2px); }
.card .im { aspect-ratio: 3 / 2; background: #dfe5ec center/cover no-repeat; display: grid; place-items: center; font-size: 36px; color: #9aa7b5; position: relative; }
.card .im .cnt { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; border-radius: 6px; padding: 1px 7px; }
.card .bd { padding: 10px 12px 12px; }
.card .nm { font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.card .sb { color: var(--mut); font-size: 12.5px; margin: 1px 0 7px; display: flex; justify-content: space-between; gap: 8px; }
.card.country .im { aspect-ratio: 16 / 10; }
.card.country .im::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .68)); }
.card.country .lbl { position: absolute; left: 12px; right: 12px; bottom: 9px; color: #fff; z-index: 1; font-size: 17px; font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.card.country .lbl small { font-weight: 500; font-size: 13px; }
.empty { text-align: center; color: var(--mut); padding: 60px 20px; }
.empty .ico { font-size: 42px; }

/* ---- modal ---- */
.ov { position: fixed; inset: 0; background: rgba(12, 18, 25, .55); display: flex; align-items: flex-start; justify-content: center; padding: 4vh 14px; overflow-y: auto; z-index: 50; }
.md { background: var(--card); border-radius: 16px; width: 100%; max-width: 560px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); overflow: hidden; position: relative; margin: auto 0; }
.md.wide { max-width: 760px; }
.md.spot { max-width: 1040px; }
@media (min-width: 821px) { .md.spot .d { display: grid; grid-template-columns: 1.45fr 1fr; } .md.spot .d-ph { display: flex; flex-direction: column; } .md.spot .d-ph .main { flex: 1; min-height: 340px; } .md.spot .d-body { padding-top: 46px; } .md.spot .x { background: #eef1f5; color: var(--ink); } }
.md .x { position: absolute; top: 9px; right: 9px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .5); color: #fff; font-size: 17px; cursor: pointer; }
.md-h { padding: 15px 52px 11px 18px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 700; }
.md-b { padding: 16px 18px; }
.md-f { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; align-items: center; background: #fafbfc; }
.md-f .msg { flex: 1; font-size: 13.5px; color: var(--bad); }
.md.plain .x { background: #eef1f5; color: var(--ink); }

/* ---- ฟอร์ม ---- */
.fld { margin-bottom: 14px; }
.fld > label, .fld > .fl { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 4px; }
.fld .req { color: var(--bad); }
.fld .opt { color: var(--mut); font-weight: 400; }
.in { width: 100%; border: 1px solid #cfd6de; border-radius: 9px; padding: 8px 11px; background: #fff; outline: none; }
.in:focus { border-color: var(--pri); box-shadow: 0 0 0 3px rgba(31, 111, 235, .14); }
textarea.in { resize: vertical; min-height: 64px; }
.st { font-size: 12.5px; margin-top: 4px; color: var(--mut); min-height: 1em; }
.st.ok { color: var(--ok); } .st.warn { color: var(--warn); } .st.bad { color: var(--bad); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tsel { display: flex; gap: 8px; flex-wrap: wrap; }
.tsel label { cursor: pointer; }
.tsel input { position: absolute; opacity: 0; pointer-events: none; }
.tsel span { display: inline-flex; gap: 6px; align-items: center; padding: 7px 14px; border-radius: 10px; border: 1.5px solid #cfd6de; font-weight: 500; user-select: none; }
.tsel input:checked + span { border-color: var(--pri); background: #eaf2ff; color: #0f4fb5; }
.tsel input:focus-visible + span { box-shadow: 0 0 0 3px rgba(31, 111, 235, .2); }
#f-map { height: 190px; border-radius: 10px; background: #dde3ea; margin-top: 8px; overflow: hidden; }
.phs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph { position: relative; aspect-ratio: 3 / 2; border-radius: 10px; background: #e7ebf0 center/cover no-repeat; overflow: hidden; }
.ph.add { border: 1.5px dashed #b4bfcb; background: #f7f9fb; display: grid; place-items: center; text-align: center; color: var(--mut); font-size: 12.5px; cursor: pointer; padding: 6px; }
.ph.add.over { border-color: var(--pri); background: #eaf2ff; }
.ph.busy::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='14' fill='none' stroke='%231f6feb' stroke-width='4' stroke-dasharray='60 30'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 20 20' to='360 20 20' dur='.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center/34px no-repeat; }
.ph .rm, .ph .mv { position: absolute; top: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; font-size: 13px; line-height: 1; }
.ph .rm { right: 5px; } .ph .mv { left: 5px; }
.ph .cv { position: absolute; left: 5px; bottom: 5px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; border-radius: 5px; padding: 0 6px; }

/* ---- แอดมิน ---- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 14px; }
.tabs button { border: 0; background: none; padding: 10px 12px; cursor: pointer; font-weight: 600; color: var(--mut); border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--pri); border-bottom-color: var(--pri); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; color: var(--mut); font-weight: 500; font-size: 12.5px; padding: 4px 6px; border-bottom: 1px solid var(--line); }
table.t td { padding: 7px 6px; border-bottom: 1px solid #edf0f3; vertical-align: middle; overflow-wrap: anywhere; }
.tag { font-size: 11.5px; border-radius: 5px; padding: 1px 7px; background: #eef1f5; white-space: nowrap; }
.tag.own { background: #fff1d6; color: #7a4b00; } .tag.adm { background: #e6efff; color: #0f4fb5; } .tag.ok { background: #e2f5ea; color: var(--ok); } .tag.bad { background: #fde8e8; color: var(--bad); }
.addu { display: grid; grid-template-columns: 1.4fr 1fr auto auto; gap: 8px; margin-top: 14px; align-items: center; }
.bf-trip { font-weight: 700; margin: 14px 0 4px; font-size: 14px; }
.bf-row { display: flex; gap: 9px; align-items: flex-start; padding: 6px 4px; border-bottom: 1px solid #edf0f3; font-size: 14px; }
.bf-row input { margin-top: 4px; }
.bf-row .tx { flex: 1; min-width: 0; }
.bf-row .bf-name { padding: 4px 8px; font-weight: 600; }
.bf-row .sb { color: var(--mut); font-size: 12.5px; }
.bf-list { max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px 6px; margin-top: 10px; }
.log { font: 12.5px/1.6 ui-monospace, Menlo, monospace; background: #111a22; color: #d6e2ee; border-radius: 10px; padding: 10px 12px; max-height: 30vh; overflow-y: auto; margin-top: 10px; white-space: pre-wrap; }

/* ---- ดูรูปเต็ม ---- */
.lb { position: fixed; inset: 0; background: rgba(0, 0, 0, .92); z-index: 80; display: grid; place-items: center; }
.lb img { max-width: 100vw; max-height: 100vh; object-fit: contain; }
.lb button { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.lb .x { top: 14px; right: 14px; } .lb .pv { left: 14px; top: 50%; margin-top: -22px; } .lb .nx { right: 14px; top: 50%; margin-top: -22px; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: #17212b; color: #fff; padding: 9px 16px; border-radius: 10px; z-index: 90; box-shadow: var(--shadow); font-size: 14px; max-width: calc(100vw - 32px); opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.on { opacity: 1; }

/* ---- มือถือ: แผนที่เต็มจอ ข้อมูลจุดเป็นแผ่นเลื่อนขึ้นจากด้านล่าง ---- */
@media (max-width: 820px) {
  /* แถบบน 2 แถว: [📍 โหมด ………… + ⚙]  [ช่วงเวลา ค้นหา ออก] */
  .top { gap: 8px; padding: 8px max(10px, env(safe-area-inset-right)) 8px max(10px, env(safe-area-inset-left)); padding-top: max(8px, env(safe-area-inset-top)); }
  .top .brand { order: 1; } .top #modes { order: 2; } .top .sp { order: 3; } .top .add { order: 4; } .top .ic { order: 5; }
  .top .brk { order: 6; display: block; flex-basis: 100%; height: 0; margin: -4px 0; }
  .top #tfs { order: 7; } .top .q { order: 8; flex: 1 1 90px; min-width: 0; max-width: none; } .top .ic.out { order: 9; }
  .top .who, .top .add span { display: none; }
  .top .add { padding: 8px 15px; } .top .ic { padding: 8px 12px; }
  .seg button { padding: 7px 11px; }
  /* iPhone ซูมหน้าจอเองเมื่อช่องกรอกมีตัวอักษรเล็กกว่า 16px */
  .in, .top .q { font-size: 16px; }
  .btn { min-height: 40px; } .btn.sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
  .mapview { display: block; }
  .mapbox { position: absolute; inset: 0; }
  .locate { bottom: 104px; width: 44px; height: 44px; }
  .panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 66%; border-left: 0; border-radius: 16px 16px 0 0; box-shadow: 0 -6px 24px rgba(0, 0, 0, .22); transform: translateY(105%); transition: transform .2s; z-index: 4; padding-bottom: env(safe-area-inset-bottom); overscroll-behavior: contain; }
  .mapview.has-sel .panel { transform: none; }
  .grab { display: block; position: absolute; top: 6px; left: 50%; margin-left: -20px; width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .8); z-index: 3; pointer-events: none; }
  .panel .close { display: block; position: absolute; top: 8px; right: 8px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .5); color: #fff; font-size: 16px; }
  .panel .d-ph .main { aspect-ratio: 2 / 1; }
  .panel .d-ths button { aspect-ratio: 5 / 2; }
  .d-btns .btn { flex: 1 1 100%; min-height: 46px; font-size: 16px; }
  .d-act .btn { flex: 1 1 auto; }
  .row { padding: 8px 7px; }
  .galview { padding: 12px max(12px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card .nm { font-size: 14.5px; }
  .two { grid-template-columns: 1fr; gap: 0; }
  .tsel label { flex: 1 1 0; } .tsel span { width: 100%; justify-content: center; padding: 10px 6px; }
  #f-map { height: 220px; }
  .addu { grid-template-columns: 1fr 1fr; }
  table.t td, table.t th { padding: 7px 4px; }
  table.t tr { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; border-bottom: 1px solid #edf0f3; padding: 4px 0; }
  table.t tr:first-child { display: none; }
  table.t td { border: 0; padding: 2px 4px; }
  table.t td:nth-child(2):empty, table.t td:nth-child(4):empty { display: none; }
  table.t td:nth-child(4) { grid-column: 1 / -1; text-align: left !important; }
  .ov { padding: 0; }
  .md { border-radius: 0; min-height: 100%; min-height: 100dvh; max-width: none; display: flex; flex-direction: column; }
  .md-b { flex: 1; }
  .md-f { position: sticky; bottom: 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 2; }
  .md-f .btn { min-height: 44px; }
  .md .x { width: 38px; height: 38px; top: max(9px, env(safe-area-inset-top)); }
  .bf-list { max-height: none; }
  .lb button { width: 48px; height: 48px; }
  .toast { bottom: calc(20px + env(safe-area-inset-bottom)); }
}
@media (max-width: 400px) { .top .brand span { display: none; } }
