:root {
  --lsam-blue: #1c77b0;
  --lsam-blue-main: #006fbd;
  --lsam-blue-dark: #003050;
  --lsam-title-blue: #003f7d;
  --lsam-blue-light: #b0d8f3;
  --lsam-blue-pale: #e0f0fe;
  --lsam-cyan: #00cdd2;
  --lsam-orange: #ee742b;
  --lsam-red: #ed001d;
  --lsam-text: #44546f;
  --lsam-muted: #6b778c;
  --lsam-border: #d9e5ef;
  --lsam-shadow: 0 10px 24px rgba(0, 48, 80, .16);
  --lsam-radius: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  color: var(--lsam-text);
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5fbff;
}

button,
input,
select {
  font: inherit;
}

.lsam-app {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #edf8ff;
}

.lsam-titlebar {
  position: relative;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 38px;
  color: var(--lsam-title-blue);
  background: linear-gradient(180deg, #eef9ff 0%, #dff1fb 100%);
  border-bottom: 1px solid rgba(0, 48, 80, .14);
  box-shadow: 0 2px 8px rgba(0, 48, 80, .14);
}

.lsam-titlebar__eyebrow {
  display: none;
}

.lsam-titlebar h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.1vw, 1.95rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
}

.lsam-titlebar__tools {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.lsam-btn-soft {
  color: var(--lsam-blue-dark);
  border: 1px solid rgba(0, 119, 198, .35);
  background: rgba(255, 255, 255, .72);
}

.lsam-btn-soft:hover,
.lsam-btn-soft:focus-visible {
  color: var(--lsam-blue-dark);
  background: #ffffff;
}

.lsam-map-stage {
  position: relative;
  height: calc(100vh - 72px);
  height: calc(100dvh - 72px);
  min-height: 620px;
  overflow: hidden;
  background: #dfeedd;
}

.lsam-map-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.lsam-map-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  user-select: none;
}

.lsam-area-shape {
  left: 39%;
  top: 28%;
  width: 25%;
  height: 43%;
  min-width: 250px;
  min-height: 310px;
  border: 3px solid #f05454;
  border-radius: 47% 53% 45% 55% / 42% 49% 51% 58%;
  background: rgba(238, 116, 43, .24);
  box-shadow: inset 0 0 45px rgba(255, 255, 255, .24), 0 0 0 7px rgba(238, 116, 43, .08);
  transform: rotate(3deg);
  cursor: pointer;
}

.lsam-area-shape:hover,
.lsam-area-shape:focus-visible {
  background: rgba(238, 116, 43, .3);
  outline: 4px solid rgba(28, 119, 176, .22);
}

.lsam-map-marker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 48px;
  min-height: 48px;
  padding: 8px 10px;
  color: #ffffff;
  border: 4px solid #ffffff;
  border-radius: 999px;
  background: var(--lsam-blue-main);
  box-shadow: 0 5px 16px rgba(0, 48, 80, .28);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.lsam-map-marker i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 1.15rem;
}

.lsam-map-marker span {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width .2s ease, opacity .2s ease;
}

.lsam-map-marker:hover span,
.lsam-map-marker:focus-visible span,
.lsam-map-marker.is-active span {
  max-width: 80px;
  opacity: 1;
}

.lsam-map-marker--rain,
.lsam-rain-icon {
  color: #ffffff;
  background: var(--lsam-blue-main);
}

.lsam-map-marker--camera.is-active,
.lsam-map-marker--rain.is-active {
  outline: 4px solid rgba(0, 205, 210, .35);
}

.lsam-query-panel {
  position: absolute;
  z-index: 12;
  left: 18px;
  top: 16px;
  width: 430px;
  max-height: calc(100% - 36px);
  transition: transform .28s ease;
}

.lsam-query-panel.is-collapsed {
  transform: translateX(calc(-100% - 18px));
}

.lsam-query-panel__inner {
  display: flex;
  max-height: calc(100vh - 126px);
  max-height: calc(100dvh - 126px);
  min-height: 420px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(189, 210, 226, .85);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--lsam-shadow);
}

.lsam-query-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 18px 12px;
}

.lsam-section-kicker {
  display: none;
}

.lsam-query-panel h2 {
  position: relative;
  margin: 0;
  padding-left: 40px;
  color: var(--lsam-title-blue);
  font-size: 1.5rem;
  font-weight: 800;
}

.lsam-query-panel h2::before {
  position: absolute;
  left: 0;
  top: 50%;
  color: var(--lsam-blue-main);
  font-family: "bootstrap-icons";
  font-size: 1.55rem;
  content: "\F52A";
  transform: translateY(-50%);
}

.lsam-condition-toggle {
  flex: 0 0 auto;
  padding: 7px 12px;
  color: var(--lsam-title-blue);
  font-size: .92rem;
  font-weight: 700;
  border: 1px solid var(--lsam-blue-light);
  border-radius: 5px;
  background: #ffffff;
}

.lsam-condition-toggle:hover,
.lsam-condition-toggle:focus-visible {
  color: #ffffff;
  background: var(--lsam-blue);
}

.lsam-query-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 18px 18px;
  border-bottom: 1px solid var(--lsam-border);
  transition: max-height .24s ease, opacity .2s ease, padding .24s ease;
}

.lsam-query-panel.is-condition-collapsed .lsam-query-form {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  opacity: 0;
}

.lsam-query-form .form-label {
  margin: 5px 0 -2px;
  color: #2f4360;
  font-weight: 700;
}

.lsam-query-form .form-select,
.lsam-query-form .form-control,
.lsam-query-form .input-group-text {
  border-color: var(--lsam-border);
  min-height: 44px;
  border-radius: 6px;
}

.lsam-query-form__actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.lsam-query-form__actions .btn {
  flex: 1 1 0;
}

.lsam-btn-primary {
  color: #ffffff;
  font-weight: 800;
  min-height: 46px;
  background: linear-gradient(180deg, #0879c8 0%, #0066b0 100%);
  border-color: #0069b7;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

.lsam-btn-primary:hover,
.lsam-btn-primary:focus-visible {
  color: #ffffff;
  background: #004f93;
  border-color: #004f93;
}

.lsam-btn-light {
  min-height: 46px;
  color: var(--lsam-blue-main);
  font-weight: 700;
  background: #ffffff;
  border-color: var(--lsam-blue-main);
  border-radius: 6px;
}

.lsam-btn-light:hover,
.lsam-btn-light:focus-visible {
  color: var(--lsam-blue-dark);
  background: var(--lsam-blue-light);
}

.lsam-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 10px;
  color: var(--lsam-title-blue);
  font-weight: 800;
}

.lsam-result-head strong {
  color: var(--lsam-blue);
}

.lsam-result-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 12px 24px 18px;
  scrollbar-color: var(--lsam-blue-light) transparent;
  scrollbar-width: thin;
}

.lsam-result-list::-webkit-scrollbar,
.lsam-info-panel__body::-webkit-scrollbar {
  width: 8px;
}

.lsam-result-list::-webkit-scrollbar-thumb,
.lsam-info-panel__body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--lsam-blue-light);
}

.lsam-result-card {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2px 10px;
  width: 100%;
  min-height: 102px;
  padding: 15px 48px 15px 18px;
  text-align: left;
  color: var(--lsam-text);
  border: 1px solid var(--lsam-border);
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 48, 80, .06);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.lsam-result-card:hover,
.lsam-result-card:focus-visible {
  border-color: #5a9fff;
  background: #f0f8ff;
  box-shadow: 0 8px 18px rgba(28, 119, 176, .14);
  transform: translateY(-1px);
}

.lsam-result-card.is-active {
  border-color: #2487ff;
  background: linear-gradient(180deg, #f7fcff 0%, #e8f5ff 100%);
  box-shadow: 0 0 0 1px rgba(36, 135, 255, .28), 0 10px 20px rgba(28, 119, 176, .16);
}

.lsam-result-card__code {
  order: 1;
  flex: 0 0 auto;
  width: max-content;
  padding: 2px 8px;
  color: var(--lsam-blue);
  font-size: .78rem;
  font-weight: 800;
  border-radius: 4px;
  background: #f0f2f4;
  transition: color .18s ease, background-color .18s ease;
}

.lsam-result-card:hover .lsam-result-card__code,
.lsam-result-card:focus-visible .lsam-result-card__code {
  color: #ffffff;
  background: #1682d4;
}

.lsam-result-card.is-active .lsam-result-card__code {
  color: #ffffff;
  background: #005da8;
}

.lsam-result-card__place {
  order: 3;
  flex: 0 0 auto;
  margin-left: 0;
  color: var(--lsam-muted);
  font-size: .82rem;
}

.lsam-result-card__place::after {
  content: " -";
}

.lsam-result-card strong,
.lsam-result-card small {
  flex: 0 0 100%;
}

.lsam-result-card strong {
  order: 2;
  color: var(--lsam-title-blue);
  font-size: 1.32rem;
}

.lsam-result-card small {
  order: 3;
  flex: 1 1 auto;
  color: var(--lsam-muted);
  font-size: .92rem;
}

.lsam-result-card > .bi {
  position: absolute;
  right: 14px;
  top: 50%;
  color: var(--lsam-blue);
  font-size: 1.25rem;
  transform: translateY(-50%);
}

.lsam-panel-slide-toggle {
  position: absolute;
  top: 50%;
  right: -46px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 84px;
  color: #ffffff;
  border: 0;
  border-radius: 0 20px 20px 0;
  background: var(--lsam-blue-main);
  box-shadow: 6px 8px 16px rgba(0, 48, 80, .2);
  transform: translateY(-50%);
}

.lsam-query-panel.is-collapsed .lsam-panel-slide-toggle i {
  transform: rotate(180deg);
}

.lsam-info-panel {
  position: absolute;
  z-index: 12;
  top: 16px;
  right: 18px;
  display: flex;
  width: 420px;
  max-height: calc(100% - 56px);
  min-height: 460px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(176, 216, 243, .82);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--lsam-shadow);
  transform: translateX(0);
  transition: opacity .24s ease, transform .24s ease;
}

.lsam-info-panel.is-dragging {
  user-select: none;
  will-change: transform;
  transition: none;
}

.lsam-info-panel:not(.is-open) {
  pointer-events: none;
  opacity: 0;
  transform: translateX(24px);
}

.lsam-info-panel__head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 20px 18px;
  color: #ffffff;
  background: linear-gradient(180deg, #027cca 0%, #0069b7 100%);
  cursor: move;
  touch-action: none;
}

.lsam-info-panel__heading {
  min-width: 0;
  flex: 1 1 auto;
  padding-right: 4px;
}

.lsam-info-panel__title,
.lsam-info-panel__subtitle {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lsam-info-panel__title {
  font-size: 1.72rem;
  font-weight: 900;
  line-height: 1.25;
}

.lsam-info-panel__subtitle {
  margin-top: 5px;
  font-size: .9rem;
  opacity: .9;
}

.lsam-info-panel__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lsam-drag-icon {
  position: absolute;
  top: 7px;
  left: 50%;
  color: rgba(255, 255, 255, .72);
  font-size: 1.55rem;
  line-height: 1;
  opacity: 1;
  transform: translateX(-50%);
  pointer-events: none;
}

.lsam-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 1.45rem;
}

.lsam-icon-btn:hover,
.lsam-icon-btn:focus-visible {
  color: var(--lsam-blue-dark);
  background: #ffffff;
}

.lsam-tabs {
  display: flex;
  border-bottom: 1px solid var(--lsam-border);
  background: #ffffff;
}

.lsam-tab {
  display: inline-flex;
  flex: 1 1 0;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #6c8399;
  font-weight: 800;
  border: 0;
  border-right: 1px solid var(--lsam-border);
  border-bottom: 3px solid transparent;
  background: transparent;
  font-size: .95rem;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.lsam-tab:last-child {
  border-right: 0;
}

.lsam-tab i {
  color: inherit;
  font-size: 1.45rem;
  line-height: 1;
}

.lsam-tab:hover,
.lsam-tab:focus-visible {
  color: var(--lsam-blue-main);
  background: #f6fbff;
}

.lsam-tab.is-active {
  color: var(--lsam-blue-main);
  border-bottom-color: var(--lsam-blue-main);
  background: #ffffff;
}

.lsam-info-panel__body {
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px 18px;
  scrollbar-color: var(--lsam-blue-light) transparent;
  scrollbar-width: thin;
}

.lsam-tab-panel {
  display: none;
}

.lsam-tab-panel.is-active {
  display: block;
  width: 100%;
  min-width: 0;
}

.lsam-card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0 0;
}

.lsam-basic-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid var(--lsam-border);
  border-radius: var(--lsam-radius-sm, 10px);
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(0, 48, 80, .04);
}

.lsam-basic-row--date {
  border-top: 1px dashed #d9e5ef;
}

.lsam-basic-row--code {
  margin-top: 10px;
}

.lsam-basic-row span {
  flex: 0 0 130px;
  color: var(--lsam-title-blue);
  font-size: 1.08rem;
  font-weight: 900;
}

.lsam-basic-row strong {
  flex: 1 1 auto;
  color: #26364f;
  font-size: 1.08rem;
  font-weight: 800;
}

.lsam-stat-card {
  display: flex;
  flex: 1 1 calc(50% - 5px);
  flex-wrap: wrap;
  align-items: flex-start;
  column-gap: 10px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid #dce8f1;
  border-radius: 10px;
  background: #f1f7fb;
  box-shadow: none;
}

.lsam-stat-card i {
  flex: 0 0 34px;
  color: var(--lsam-blue-main);
  font-size: 1.85rem;
  line-height: 1;
}

.lsam-stat-card__label {
  flex: 1 1 calc(100% - 44px);
  margin-top: 0;
  color: var(--lsam-text);
  font-size: .95rem;
  font-weight: 900;
}

.lsam-stat-card__main {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex: 0 0 calc(100% - 44px);
  margin: 6px 0 3px 44px;
  color: #004f93;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.2;
}

.lsam-stat-card__desc {
  display: block;
  flex: 0 0 calc(100% - 44px);
  margin-left: 44px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--lsam-muted);
}

.lsam-stat-card__main.lsam-risk {
  color: var(--lsam-orange);
}

.lsam-stat-card__value {
  font-size: 1.8rem;
}

.lsam-stat-card__unit {
  font-size: 1rem;
}

.lsam-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.lsam-panel-title h3,
.lsam-panel-title p {
  margin: 0;
}

.lsam-panel-title h3 {
  color: var(--lsam-blue-dark);
  font-size: 1.12rem;
  font-weight: 900;
}

.lsam-panel-title p {
  margin-top: 2px;
  color: var(--lsam-muted);
  font-size: .92rem;
}

.lsam-rain-icon,
.lsam-camera-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(28, 119, 176, .2);
}

.lsam-camera-icon {
  color: var(--lsam-blue);
  background: var(--lsam-blue-pale);
}

.lsam-rain-summary {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.lsam-rain-summary div {
  flex: 1 1 0;
  padding: 12px;
  border-radius: var(--lsam-radius);
  background: #f5faff;
}

.lsam-rain-summary span,
.lsam-rain-summary strong {
  display: block;
}

.lsam-rain-summary span {
  color: var(--lsam-muted);
  font-size: .85rem;
}

.lsam-rain-summary strong {
  color: var(--lsam-blue);
  font-size: 1.2rem;
}

.lsam-chart {
  width: 100%;
  min-width: 0;
  height: 260px;
  flex: 0 0 auto;
  border: 1px solid var(--lsam-border);
  border-radius: var(--lsam-radius);
  background: #ffffff;
}

.lsam-camera-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.lsam-camera-chip {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 8px 12px;
  color: var(--lsam-blue);
  font-weight: 800;
  border: 1px solid var(--lsam-blue-light);
  border-radius: 999px;
  background: #ffffff;
}

.lsam-camera-chip:hover,
.lsam-camera-chip:focus-visible,
.lsam-camera-chip.is-active {
  color: #ffffff;
  background: var(--lsam-blue);
}

.lsam-cctv-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--lsam-border);
  border-radius: var(--lsam-radius);
  background: #f8fcff;
}

.lsam-cctv-preview__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 180px;
  color: #ffffff;
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(0, 48, 80, .35), rgba(28, 119, 176, .05)),
    linear-gradient(35deg, #6f8c58 0 38%, #d7e7f5 39% 62%, #789fbd 63% 100%);
}

.lsam-cctv-preview__image i {
  font-size: 2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.lsam-cctv-preview__photo {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #edf4f9;
}

.lsam-cctv-preview__photo img {
  display: block;
  width: 100%;
  height: auto;
}

.lsam-cctv-preview__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lsam-cctv-preview__info strong,
.lsam-cctv-preview__info span {
  display: block;
}

.lsam-cctv-preview__info strong {
  color: var(--lsam-blue-dark);
  font-size: 1.05rem;
}

.lsam-cctv-preview__info span {
  color: var(--lsam-muted);
  font-size: .9rem;
}

.lsam-legend {
  position: absolute;
  z-index: 10;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 258px;
  padding: 6px 10px;
  border: 1px solid rgba(176, 216, 243, .78);
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 24px rgba(0, 48, 80, .12);
}

.lsam-legend strong {
  color: var(--lsam-blue);
}

.lsam-legend .lsam-legend__head {
  justify-content: space-between;
}

.lsam-legend__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--lsam-blue);
  border: 0;
  background: transparent;
}

.lsam-legend__close:hover,
.lsam-legend__close:focus-visible {
  color: #ffffff;
  background: var(--lsam-blue-main);
}

.lsam-legend div {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--lsam-text);
  font-weight: 700;
}

.lsam-legend img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.lsam-legend-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  font-size: 1rem;
}

.lsam-legend-icon--cctv {
  color: var(--lsam-blue-main);
}

.lsam-legend-icon--rain {
  color: #0fa3a3;
}

@media (max-width: 1199.98px) {
  .lsam-info-panel {
    right: 18px;
    width: min(390px, calc(100vw - 350px));
  }

}

@media (max-width: 767.98px) {
  .lsam-titlebar {
    height: 58px;
    gap: 8px;
    padding: 8px 12px;
  }

  .lsam-titlebar > div:first-child {
    min-width: 0;
  }

  .lsam-titlebar__eyebrow {
    display: none;
  }

  .lsam-titlebar h1 {
    overflow: hidden;
    font-size: 1.4rem;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .lsam-titlebar__tools {
    display: flex;
  }

  .lsam-titlebar__tools .btn {
    padding: 5px 8px;
    font-size: 1rem;
  }

  .lsam-map-stage {
    height: calc(100vh - 58px);
    height: calc(100dvh - 58px);
    min-height: 0;
  }

  .lsam-query-panel {
    left: 10px;
    top: 10px;
    width: min(80vw, 310px);
    max-height: calc(100% - 20px);
  }

  .lsam-query-panel__inner {
    max-height: calc(100vh - 86px);
    max-height: calc(100dvh - 86px);
    min-height: 360px;
  }

  .lsam-query-panel__head {
    padding: 14px 12px 8px;
  }

  .lsam-condition-toggle {
    margin-top: 0;
  }

  .lsam-query-form,
  .lsam-result-head {
    padding-right: 12px;
    padding-left: 12px;
  }

  .lsam-result-list {
    padding-left: 12px;
  }

  .lsam-result-card {
    flex: 0 0 auto;
    height: auto;
  }

  .lsam-panel-slide-toggle {
    right: -32px;
    width: 32px;
  }

  .lsam-info-panel {
    top: 10px !important;
    right: auto !important;
    bottom: 10px;
    left: 52% !important;
    width: calc(100% - 40px);
    max-width: 420px;
    height: auto !important;
    max-height: none;
    min-height: 0;
    border-radius: 12px;
    transform: translate(-50%, 0);
  }

  .lsam-info-panel:not(.is-open) {
    transform: translate(-50%, calc(100% + 18px));
  }

  .lsam-info-panel__head {
    padding: 14px 16px 14px;
    cursor: default;
  }

  .lsam-drag-icon {
    display: none;
  }

  .lsam-tab {
    gap: 4px;
    font-size: .9rem;
  }

  .lsam-info-panel__body {
    flex: 1 1 auto;
    max-height: none;
    min-height: 0;
    padding: 12px;
  }

  .lsam-basic-row {
    gap: 24px;
    min-height: 46px;
    padding: 10px 12px;
  }

  .lsam-card-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .lsam-stat-card {
    flex: 0 0 calc(50% - 5px);
    align-items: flex-start;
    column-gap: 0;
    min-width: 0;
    min-height: 106px;
    padding: 14px 16px;
  }

  .lsam-stat-card i,
  .lsam-stat-card__label,
  .lsam-stat-card__main,
  .lsam-stat-card__desc {
    flex-basis: 100%;
  }

  .lsam-stat-card__label {
    margin-top: 4px;
  }

  .lsam-stat-card__main {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 1.5rem;
  }

  .lsam-stat-card__value {
    font-size: 1.5rem;
  }

  .lsam-stat-card__desc {
    margin-left: 0;
  }

  .lsam-chart {
    height: 220px;
  }

  .lsam-legend {
    display: none;
  }

  .lsam-map-marker span {
    display: none;
  }

  .lsam-area-shape {
    left: 36%;
    width: 48%;
    min-width: 160px;
  }

  .lsam-app.is-mobile-query-open .lsam-info-panel {
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, calc(100% + 18px));
  }
}
