:root {
  color-scheme: light;
  --ink: #17221c;
  --muted: #64736a;
  --paper: #f5f7f2;
  --forest: #1f5c3e;
  --forest-dark: #173d2c;
  --lime: #b8d36b;
  --event: #e0533d;
  --line: #dbe2dc;
  --shadow: 0 12px 36px rgba(10, 25, 17, .18);
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; color: var(--ink); background: var(--paper); }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.view { min-height: 100vh; }
.map-view { position: fixed; inset: 0; overflow: hidden; background: #24372c; }
.map-canvas { width: 100%; height: 100%; }
.leaflet-container { font: inherit; background: #d5ded6; }
.leaflet-control-attribution {
  max-width: min(90vw, 600px);
  white-space: nowrap;
  background: rgba(255,255,255,.84) !important;
  font-size: 10px !important;
  line-height: 1.2;
}
.menu-button, .layer-switch-button, .icon-button, .map-controls button {
  border: 1px solid rgba(255,255,255,.45); color: #fff; background: rgba(22,42,31,.5);
  box-shadow: 0 5px 20px rgba(7,20,12,.28); backdrop-filter: blur(10px);
}
.menu-button {
  position: absolute; z-index: 800; top: max(18px, env(safe-area-inset-top)); left: max(18px, env(safe-area-inset-left));
  width: 52px; height: 52px; border-radius: 50%; font-size: 24px; line-height: 1;
}
.menu-button:hover, .layer-switch-button:hover, .map-controls button:hover { background: rgba(35,88,58,.5); }
.layer-switcher { position: absolute; z-index: 850; left: max(18px, env(safe-area-inset-left)); }
.layer-switcher--main { top: max(82px, calc(env(safe-area-inset-top) + 82px)); }
.layer-switcher--settings { z-index: 1100; top: max(16px, env(safe-area-inset-top)); left: max(16px, env(safe-area-inset-left)); }
.layer-switch-button {
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border-radius: 50%;
}
.layer-switch-icon { width: 23px; height: 17px; border: 2px solid currentColor; border-radius: 2px; }
.layer-switch-panel {
  position: absolute; top: 0; left: 62px; width: min(240px, calc(100vw - 92px)); padding: 6px;
  border: 1px solid rgba(255,255,255,.7); border-radius: 14px; background: rgba(248,250,246,.97);
  box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.layer-switch-panel button {
  width: 100%; min-height: 42px; padding: 8px 11px; border: 0; border-radius: 9px;
  text-align: left; color: var(--ink); background: transparent; font-size: 12px; font-weight: 700;
}
.layer-switch-panel button:hover { background: #edf2ec; }
.layer-switch-panel button[aria-pressed="true"] { color: #fff; background: var(--forest); }
.menu-panel {
  position: absolute; z-index: 900; top: 12px; left: 12px; width: min(380px, calc(100vw - 24px));
  padding: 24px; border: 1px solid rgba(255,255,255,.55); border-radius: 22px;
  background: rgba(248,250,246,.96); box-shadow: var(--shadow); transform: translateX(calc(-100% - 28px));
  transition: transform .22s ease; backdrop-filter: blur(14px);
}
.menu-panel.is-open { transform: translateX(0); }
.menu-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.menu-panel h1, .page-header h1 { margin: 3px 0 0; font-size: 22px; letter-spacing: .02em; }
.eyebrow { color: var(--forest); font-size: 11px; font-weight: 800; letter-spacing: .17em; }
.icon-button { width: 38px; height: 38px; border-radius: 50%; color: var(--ink); background: #edf2ec; box-shadow: none; font-size: 25px; }
.menu-summary { margin: 20px 0 14px; padding: 12px 14px; border-radius: 12px; color: var(--forest-dark); background: #e9f0df; font-size: 13px; }
.menu-command { width: 100%; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; text-align: left; color: var(--ink); background: #fff; }
.menu-command:hover { border-color: #9eb7a4; background: #fafcf8; }
.menu-command__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #fff; background: var(--forest); }
.menu-command strong, .menu-command small { display: block; }
.menu-command small { margin-top: 2px; color: var(--muted); }
.map-controls {
  position: absolute; z-index: 800; left: max(18px, env(safe-area-inset-left)); bottom: max(26px, calc(env(safe-area-inset-bottom) + 18px));
  display: flex; padding: 5px; border: 1px solid rgba(255,255,255,.38); border-radius: 15px;
  background: rgba(17,34,25,.45); box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.map-controls button { width: 46px; height: 46px; border: 0; border-right: 1px solid rgba(255,255,255,.18); box-shadow: none; font-size: 22px; }
.map-controls button:first-child { border-radius: 10px 0 0 10px; }
.map-controls button:last-child { border-right: 0; border-radius: 0 10px 10px 0; }
.map-legend {
  position: absolute; z-index: 700; right: max(16px, env(safe-area-inset-right)); bottom: max(28px, calc(env(safe-area-inset-bottom) + 20px));
  display: flex; gap: 14px; padding: 9px 12px; border-radius: 10px; color: #fff; background: rgba(19,34,26,.78); font-size: 12px; backdrop-filter: blur(8px);
}
.map-legend span { display: flex; align-items: center; gap: 6px; }
.legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f4c430;
}
.legend-swatch--device {
  border: 2px solid #fff;
  background: var(--forest);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(31,92,62,.22);
}
.legend-swatch--target {
  border: 2px solid #fff;
  border-radius: 4px;
  background: #c47b22;
}
.legend-swatch--line {
  width: 16px;
  height: 3px;
  margin-top: 0.5px;
  border: 0;
  border-radius: 99px;
  background: var(--lime);
}
.legend-swatch--event {
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--event);
}
.map-history-panel {
  position: absolute; z-index: 840; top: max(18px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right));
  width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 178px);
  padding: 12px 12px 11px; border-radius: 14px; color: var(--ink);
  border: 1px solid rgba(255,255,255,.75); background: rgba(246,249,245,.96); backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.map-history-panel[hidden] { display: none; }
.map-device-info {
  position: absolute; z-index: 840; top: max(18px, env(safe-area-inset-top)); left: max(82px, calc(env(safe-area-inset-left) + 82px));
  width: min(330px, calc(100vw - 116px)); max-height: calc(100vh - 36px); overflow: auto;
  padding: 12px; border: 1px solid rgba(255,255,255,.75); border-radius: 14px; color: var(--ink);
  background: rgba(246,249,245,.96); box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.map-device-info[hidden] { display: none; }
.map-device-info__header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.map-device-info__header h3 { margin: 0; font-size: 14px; }
.map-device-info__close {
  width: 28px; height: 28px; border: 0; border-radius: 50%; color: var(--forest-dark); background: rgba(255,255,255,.92);
  box-shadow: 0 3px 10px rgba(14,35,22,.15); font-weight: 800;
}
.map-device-info dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; font-size: 12px; }
.map-device-info dt { color: var(--muted); }
.map-device-info dd { margin: 0; text-align: right; }
.map-history-panel__header {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px;
}
.map-history-panel__header h3 {
  margin: 0; font-size: 14px;
}
.map-history-close {
  width: 28px; height: 28px; border: 0; border-radius: 50%; color: var(--forest-dark); background: rgba(255,255,255,.92);
  box-shadow: 0 3px 10px rgba(14,35,22,.15); font-weight: 800;
}
.event-history-empty { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.event-history-list {
  list-style: none; margin: 0; padding: 0; max-height: calc(100vh - 250px); overflow: auto;
}
.event-history-item {
  padding: 9px; border: 1px solid #dde5db; border-radius: 10px; background: #fff; margin-top: 8px;
  cursor: pointer;
}
.event-history-item.is-selected {
  border-color: #7ea77c;
  background: #eaf3ea;
  box-shadow: 0 2px 10px rgba(31, 92, 62, .15);
}
.event-history-item strong { display: block; margin-bottom: 6px; }
.event-history-item dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; font-size: 12px; }
.event-history-item dt { color: var(--muted); }
.event-history-item dd { margin: 0; text-align: right; }
.leaflet-marker-icon.event-map-icon.is-selected {
  filter: saturate(1.2) brightness(1.05);
  z-index: 10000;
}
.leaflet-marker-icon.event-map-icon.is-selected .event-symbol {
  box-shadow: 0 0 0 2px rgba(224, 83, 61, .35), 0 1px 3px rgba(0, 0, 0, .2);
}
.device-map-icon, .event-map-icon, .target-map-icon {
  background: transparent;
  border: 0;
  caret-color: transparent;
  -moz-user-select: none;
  user-select: none;
}
.device-symbol { position: relative; width: 28px; height: 28px; border: 3px solid #fff; border-radius: 50%; background: var(--forest); box-shadow: 0 1px 2px rgba(0,0,0,.16); }
.device-symbol::after { content: ""; position: absolute; left: 8px; top: -12px; border: 4px solid transparent; border-bottom: 9px solid var(--lime); }
.device-symbol--main { background: #f4c430; }
.device-symbol--main::after { display: none; }
.event-symbol { width: 22px; height: 22px; border: 3px solid #fff; border-radius: 50%; background: var(--event); box-shadow: 0 1px 2px rgba(0,0,0,.16); }
.target-symbol { display: grid; place-items: center; width: 26px; height: 26px; border: 3px solid #fff; border-radius: 5px; color: #fff; background: #c47b22; box-shadow: 0 1px 2px rgba(0,0,0,.18); font-weight: 800; }
.target-distance-label {
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: rgba(75,50,20,.9);
  box-shadow: 0 3px 10px rgba(0,0,0,.24);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.leaflet-tooltip-right.target-distance-label::before { border-right-color: rgba(75,50,20,.9); }
.page-view { background: #f4f6f2; }
.page-header { position: sticky; z-index: 50; top: 0; display: grid; grid-template-columns: 150px 1fr auto; align-items: center; min-height: 82px; padding: 14px 28px; border-bottom: 1px solid var(--line); background: rgba(250,252,248,.94); backdrop-filter: blur(10px); }
.back-button { justify-self: start; border: 0; color: var(--forest); background: transparent; font-weight: 700; }
.secondary-button, .primary-button { min-height: 42px; padding: 0 18px; border-radius: 10px; font-weight: 700; }
.secondary-button { border: 1px solid #cbd6cd; color: var(--forest-dark); background: #fff; }
.primary-button { border: 1px solid var(--forest); color: #fff; background: var(--forest); }
.primary-button:disabled { opacity: .58; cursor: wait; }
.page-content { padding: 28px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-heading h2 { margin: 0 0 5px; font-size: 20px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.count-badge { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border-radius: 99px; color: var(--forest-dark); background: #e4ecd9; font-size: 12px; font-weight: 800; }
.table-shell { position: relative; overflow: auto; max-height: calc(100vh - 190px); border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 25px rgba(20,42,28,.06); }
.devices-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; white-space: nowrap; font-size: 12px; }
.devices-table th, .devices-table td { height: 48px; padding: 8px 11px; border-right: 1px solid #edf0ed; border-bottom: 1px solid #edf0ed; text-align: left; }
.devices-table th { position: sticky; z-index: 5; top: 0; color: #536159; background: #eef2ec; font-size: 11px; }
.devices-table th:first-child, .devices-table td:first-child { position: sticky; z-index: 6; left: 0; background: #fff; }
.devices-table th:first-child { z-index: 7; background: #e7ede6; }
.devices-table tbody tr:hover td { background: #f9fbf7; }
.devices-table .status-set { color: var(--forest); font-weight: 800; }
.devices-table .status-missing { color: #a45f16; font-weight: 800; }
.table-action { padding: 6px 10px; border: 1px solid #aebdaf; border-radius: 8px; color: var(--forest); background: #fff; font-weight: 700; }
.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); }
.settings-layout { display: grid; grid-template-columns: 390px minmax(0,1fr); height: calc(100vh - 82px); }
.settings-card { z-index: 2; overflow-y: auto; padding: 28px; border-right: 1px solid var(--line); background: #fff; }
.mobile-sheet-heading, .sheet-handle { display: none; }
.settings-card__intro h2 { margin: 0 0 8px; font-size: 20px; }
.settings-card__intro p { margin: 0 0 22px; color: var(--muted); line-height: 1.65; font-size: 13px; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 11px; background: #edf1ec; }
.mode-switch button { min-height: 40px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 800; }
.mode-switch button.is-active { color: #fff; background: var(--forest); box-shadow: 0 3px 9px rgba(25,75,48,.22); }
.settings-card fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 0; padding: 0; border: 0; }
.settings-card legend { grid-column: 1 / -1; margin-bottom: 9px; font-size: 13px; font-weight: 800; }
.settings-card label { color: var(--muted); font-size: 11px; font-weight: 700; }
.settings-card input { width: 100%; height: 42px; margin-top: 5px; padding: 0 9px; border: 1px solid #ccd5ce; border-radius: 8px; color: var(--ink); background: #fbfcfa; font-size: 13px; }
.settings-card input:focus { outline: 2px solid rgba(31,92,62,.22); border-color: var(--forest); }
.point-chip { display: inline-grid; place-items: center; width: 23px; height: 23px; margin-right: 7px; border-radius: 50%; color: #fff; background: var(--forest); font-size: 11px; }
.point-chip--target { border-radius: 5px; background: #c47b22; }
.vector-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.vector-preview span { padding: 12px; border-radius: 9px; color: var(--muted); background: #f0f3ed; font-size: 11px; }
.vector-preview strong { display: block; margin-top: 5px; color: var(--ink); font-size: 14px; }
.form-message { min-height: 20px; margin: 14px 0; color: #a24334; font-size: 12px; }
.form-message.is-success { color: var(--forest); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.settings-action-row {
  display: flex;
  gap: 10px;
  margin: 14px 0 0;
  align-items: center;
  flex-wrap: wrap;
}
.danger-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: auto;
  margin: 0;
  border: 1px solid #bf4a3a;
  border-radius: 10px;
  color: #fff;
  background: #d64c3b;
  min-height: 42px;
  min-width: 0;
  padding: 0 14px;
  font-weight: 700;
  font-size: 12px;
}
.danger-button:hover { background: #bf3f2f; }
.settings-map-wrap { position: relative; min-width: 0; }
.settings-map { width: 100%; height: 100%; background: #d5ded6; }
.map-mode-hint { position: absolute; z-index: 1000; top: 16px; left: 50%; transform: translateX(-50%); padding: 9px 14px; border-radius: 99px; color: #fff; background: rgba(23,61,44,.88); box-shadow: 0 4px 15px rgba(0,0,0,.18); white-space: nowrap; font-size: 12px; font-weight: 800; pointer-events: none; }
.toast { position: fixed; z-index: 1200; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100vw - 30px); padding: 12px 17px; border-radius: 10px; color: #fff; background: #202a24; box-shadow: var(--shadow); font-size: 13px; }
@media (max-width: 700px) {
  .menu-button { width: 48px; height: 48px; }
  .map-controls { bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px)); }
  .map-controls button { width: 44px; height: 44px; }
  .map-history-panel {
    top: auto; right: max(14px, env(safe-area-inset-right)); left: max(14px, env(safe-area-inset-left));
    bottom: max(152px, calc(env(safe-area-inset-bottom) + 152px)); max-height: min(55vh, 360px);
  }
  .map-device-info {
    top: max(74px, calc(env(safe-area-inset-top) + 74px)); right: max(14px, env(safe-area-inset-right));
    left: max(14px, env(safe-area-inset-left)); width: auto; max-height: 32vh;
  }
  .event-history-list { max-height: 38vh; }
  .map-legend { top: max(20px, env(safe-area-inset-top)); right: 14px; bottom: auto; flex-direction: column; gap: 5px; }
  .page-header { grid-template-columns: auto 1fr auto; padding: 12px 16px; }
  .page-header .back-button { width: 44px; overflow: hidden; white-space: nowrap; }
  .page-content { padding: 18px 14px; }
  .settings-layout { grid-template-columns: 370px minmax(620px,1fr); overflow: auto; }
}

@media (orientation: portrait) and (max-width: 820px) {
  #devicesView .page-header {
    grid-template-columns: auto 1fr auto;
    min-height: 68px;
    padding: 10px 13px;
  }
  #devicesView .page-header h1 { font-size: 18px; }
  #devicesView .page-header .eyebrow { display: none; }
  #devicesView .back-button { width: auto; font-size: 0; }
  #devicesView .back-button::first-letter { font-size: 22px; }
  #devicesView .secondary-button { min-height: 38px; padding: 0 11px; font-size: 12px; }
  #devicesView .page-content { padding: 16px 12px 28px; }
  #devicesView .section-heading { align-items: center; margin-bottom: 12px; }
  #devicesView .section-heading h2 { font-size: 17px; }
  #devicesView .section-heading p { display: none; }
  #devicesView .table-shell {
    overflow: visible;
    max-height: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .mobile-hidden { display: none !important; }
  .devices-table, .devices-table tbody { display: block; width: 100%; min-width: 0; }
  .devices-table thead { display: none; }
  .devices-table tbody { display: grid; gap: 11px; }
  .devices-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 0 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(20,42,28,.06);
  }
  .devices-table th, .devices-table td,
  .devices-table th:first-child, .devices-table td:first-child {
    position: static;
    width: auto;
    height: auto;
    padding: 7px 0;
    border: 0;
    background: transparent;
    white-space: normal;
  }
  .devices-table tbody tr:hover td { background: transparent; }
  .devices-table td::before {
    content: attr(data-label);
    margin-right: 14px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
  }
  .devices-table td:nth-child(1) {
    grid-column: 1;
    align-self: center;
    padding-top: 0;
    font-size: 15px;
    font-weight: 800;
  }
  .devices-table td:nth-child(1)::before,
  .devices-table td:nth-child(5)::before { display: none; }
  .devices-table td:nth-child(2) {
    grid-column: 2;
    align-self: center;
    padding-top: 0;
    text-align: right;
  }
  .devices-table td:nth-child(3),
  .devices-table td:nth-child(4) {
    grid-column: 1 / 3;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #edf0ed;
  }
  .devices-table td:nth-child(5) { grid-column: 1 / 3; padding-bottom: 0; }
  .devices-table .table-action { width: 100%; min-height: 40px; }

  #settingsView {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: #d5ded6;
  }
  #settingsView .page-header { display: none; }
  #settingsView .settings-layout {
    position: relative;
    display: block;
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
  }
  #settingsView .settings-map-wrap { position: absolute; inset: 0; }
  #settingsView .settings-map { width: 100%; height: 100%; }
  #settingsView .settings-card {
    position: absolute;
    z-index: 800;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: 43.5vh;
    max-height: 43.5svh;
    padding: 9px 17px max(17px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 22px 22px 0 0;
    background: rgba(255,255,255,.98);
    box-shadow: 0 -10px 35px rgba(13,31,20,.2);
    backdrop-filter: blur(12px);
  }
  .sheet-handle {
    display: block;
    position: relative;
    width: 64px;
    height: 16px;
    margin: 0 auto 1px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: ns-resize;
    touch-action: none;
    user-select: none;
  }
  .sheet-handle::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 50%;
    width: 42px;
    height: 5px;
    border-radius: 99px;
    background: #c8d0c9;
    transform: translateX(-50%);
    transition: width .12s ease, background .12s ease;
  }
  .sheet-handle.is-swiping::before { width: 50px; background: #8d9a90; }
  #settingsView.sheet-collapsed .settings-card {
    max-height: 86px;
    overflow: hidden;
  }
  #settingsView.sheet-collapsed .settings-card > :not(.sheet-handle):not(.mobile-sheet-heading) {
    display: none;
  }
  #settingsView.sheet-collapsed .mobile-sheet-heading { margin-bottom: 0; }
  .mobile-sheet-heading { display: block; margin-bottom: 11px; }
  .mobile-sheet-heading h2 { margin: 2px 0 0; font-size: 18px; }
  #settingsView .settings-card__intro { display: none; }
  #settingsView .mode-switch button { min-height: 38px; }
  #settingsView .settings-card fieldset { margin-top: 15px; }
  #settingsView .settings-card input { height: 40px; }
  #settingsView .vector-preview { margin-top: 15px; }
  #settingsView .form-message { margin: 9px 0; }
  #settingsView .form-actions {
    position: sticky;
    bottom: calc(-1 * max(17px, env(safe-area-inset-bottom)));
    margin: 0 -17px;
    padding: 10px 17px max(12px, env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97);
  }
  #settingsView .form-actions button { flex: 1; }
  #settingsView .map-mode-hint {
    top: max(12px, env(safe-area-inset-top));
    max-width: calc(100vw - 120px);
    text-align: center;
  }
  #settingsView .settings-map-controls {
    left: max(14px, env(safe-area-inset-left));
    bottom: calc(43.5vh + 14px);
    bottom: calc(43.5svh + 14px);
    transition: bottom .22s ease;
  }
  #settingsView.sheet-collapsed .settings-map-controls {
    bottom: calc(86px + max(14px, env(safe-area-inset-bottom)));
  }
}
