/* LandAI CSS owner: staged compact/mobile shell. Every behavioral override is
   hard-scoped to the rollout class and a phone-sized/coarse viewport so desktop
   remains unchanged. */
.mobile-shell-v2,
.mobile-search-sheet-header {
  display: none;
}

.parcel-popup-title-mobile,
.parcel-popup-source-badge,
.parcel-action-icon,
.parcel-sheet-grabber {
  display: none;
}

@media (max-width: 768px), (max-height: 520px) and (pointer: coarse) {
  html.landai-mobile-shell-v2 {
    --left-rail-width: 0px;
    --mobile-v2-safe-top: env(safe-area-inset-top, 0px);
    --mobile-v2-safe-right: env(safe-area-inset-right, 0px);
    --mobile-v2-safe-bottom: env(safe-area-inset-bottom, 0px);
    --mobile-v2-safe-left: env(safe-area-inset-left, 0px);
    --mobile-v2-topbar-height: calc(56px + var(--mobile-v2-safe-top));
    --mobile-v2-tabbar-height: calc(72px + var(--mobile-v2-safe-bottom));
    --mobile-v2-edge: 12px;
    --mobile-v2-sheet-radius: 24px;
    --mobile-v2-touch-target: 48px;
    --mobile-v2-visual-height: 100dvh;
    --mobile-v2-keyboard-inset: 0px;
    --mobile-tabbar-height: var(--mobile-v2-tabbar-height);
  }

  html.landai-mobile-shell-v2,
  html.landai-mobile-shell-v2 body {
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
  }

  html.landai-mobile-shell-v2 #map {
    inset:
      var(--premium-banner-offset)
      0
      var(--mobile-v2-tabbar-height)
      0;
    width: 100vw;
    height: auto;
  }

  html.landai-mobile-shell-v2 .mobile-shell-v2 {
    display: contents;
  }

  html.landai-mobile-shell-v2 .mobile-shell-topbar {
    position: fixed;
    top: var(--premium-banner-offset);
    right: 0;
    left: 0;
    z-index: 32;
    min-height: var(--mobile-v2-topbar-height);
    display: grid;
    grid-template-columns: var(--mobile-v2-touch-target) minmax(0, 1fr) var(--mobile-v2-touch-target);
    align-items: end;
    gap: 8px;
    padding:
      calc(var(--mobile-v2-safe-top) + 4px)
      max(var(--mobile-v2-edge), var(--mobile-v2-safe-right))
      4px
      max(var(--mobile-v2-edge), var(--mobile-v2-safe-left));
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.2) 56%, rgba(0, 0, 0, 0) 100%);
    box-shadow: none;
    pointer-events: none;
  }

  html.landai-mobile-shell-v2 .mobile-shell-icon-btn,
  html.landai-mobile-shell-v2 .mobile-shell-map-control,
  html.landai-mobile-shell-v2 .mobile-shell-locate,
  html.landai-mobile-shell-v2 .mobile-shell-tab,
  html.landai-mobile-shell-v2 .mobile-sheet-action,
  html.landai-mobile-shell-v2 .mobile-sheet-close,
  html.landai-mobile-shell-v2 .mobile-basemap-option {
    min-width: var(--mobile-v2-touch-target);
    min-height: var(--mobile-v2-touch-target);
    border: 0;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  html.landai-mobile-shell-v2 .mobile-shell-icon-btn {
    display: grid;
    place-items: center;
    padding: 0;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.44));
    pointer-events: auto;
  }

  html.landai-mobile-shell-v2 .mobile-shell-icon-btn[aria-expanded="true"],
  html.landai-mobile-shell-v2 .mobile-shell-icon-btn:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    outline: 2px solid #fff;
    outline-offset: 1px;
  }

  html.landai-mobile-shell-v2 .mobile-shell-brand {
    align-self: center;
    overflow: hidden;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html.landai-mobile-shell-v2 .mobile-shell-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 32;
    min-height: var(--mobile-v2-tabbar-height);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding:
      8px
      max(20px, var(--mobile-v2-safe-right))
      max(8px, var(--mobile-v2-safe-bottom))
      max(20px, var(--mobile-v2-safe-left));
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  }

  html.landai-mobile-shell-v2 .mobile-shell-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 2px 14px;
    border-radius: 0;
    background: transparent;
    color: #636366;
    font-size: 12px;
    font-weight: 500;
  }

  html.landai-mobile-shell-v2 .mobile-shell-tab[aria-expanded="true"],
  html.landai-mobile-shell-v2 .mobile-shell-tab[aria-pressed="true"],
  html.landai-mobile-shell-v2 .mobile-shell-tab:focus-visible {
    background: transparent;
    color: #3a3a3c;
    outline: 3px solid #0057b8;
    outline-offset: -2px;
  }

  html.landai-mobile-shell-v2 .mobile-shell-map-control {
    position: fixed;
    right: max(10px, var(--mobile-v2-safe-right));
    z-index: 29;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #007aff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    pointer-events: auto;
  }

  html.landai-mobile-shell-v2 .mobile-shell-locate {
    bottom: calc(var(--mobile-v2-tabbar-height) + 16px);
  }

  html.landai-mobile-shell-v2 .mobile-shell-map-style {
    bottom: calc(var(--mobile-v2-tabbar-height) + 74px);
  }

  html.landai-mobile-shell-v2 .mobile-shell-map-control:focus-visible {
    outline: 3px solid #0057b8;
    outline-offset: 2px;
  }

  html.landai-mobile-shell-v2 .mobile-shell-scrim {
    position: fixed;
    inset: var(--premium-banner-offset) 0 0;
    z-index: 38;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.28);
    cursor: default;
    backdrop-filter: blur(1.5px);
  }

  html.landai-mobile-shell-v2 .mobile-shell-scrim[hidden] {
    display: none;
  }

  html.landai-mobile-shell-v2 .mobile-shell-sheet {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    max-height: min(78dvh, calc(var(--mobile-v2-visual-height) - var(--premium-banner-offset) - 18px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.94);
    border-width: 1px 0 0;
    border-radius: var(--mobile-v2-sheet-radius) var(--mobile-v2-sheet-radius) 0 0;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    padding-bottom: var(--mobile-v2-safe-bottom);
  }

  html.landai-mobile-shell-v2 .mobile-shell-sheet[hidden] {
    display: none;
  }

  html.landai-mobile-shell-v2 .mobile-sheet-header,
  html.landai-mobile-shell-v2 .mobile-search-sheet-header {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px 8px 18px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
  }

  html.landai-mobile-shell-v2 .mobile-sheet-header::before,
  html.landai-mobile-shell-v2 .mobile-search-sheet-header::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    width: 38px;
    height: 4px;
    border-radius: 99px;
    background: #cbd5e1;
    transform: translateX(-50%);
  }

  html.landai-mobile-shell-v2 .mobile-sheet-header h2,
  html.landai-mobile-shell-v2 .mobile-search-sheet-header h2 {
    margin: 8px 0 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 850;
  }

  html.landai-mobile-shell-v2 .mobile-sheet-close {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 14px;
    background: #f1f5f9;
    color: #475569;
    font-size: 1.35rem;
  }

  html.landai-mobile-shell-v2 .mobile-sheet-body {
    min-width: 0;
    display: grid;
    gap: 8px;
    padding: 12px;
    overflow: auto;
    overscroll-behavior: contain;
  }

  html.landai-mobile-shell-v2 .mobile-sheet-section-label {
    margin: 8px 6px 0;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  html.landai-mobile-shell-v2 .mobile-sheet-action,
  html.landai-mobile-shell-v2 .mobile-basemap-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 15px;
    background: #f8fafc;
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 800;
    text-align: left;
  }

  html.landai-mobile-shell-v2 .mobile-sheet-action:focus-visible,
  html.landai-mobile-shell-v2 .mobile-basemap-option:focus-visible {
    background: #ecfdf5;
    color: #166534;
    outline: 3px solid #006b4f;
  }

  html.landai-mobile-shell-v2 .mobile-sheet-action svg,
  html.landai-mobile-shell-v2 .mobile-basemap-option svg {
    flex: 0 0 auto;
    color: #2563eb;
  }

  html.landai-mobile-shell-v2 #mobile-shell-menu-sheet .mobile-sheet-body {
    gap: 0;
    padding: 0 0 12px;
    background: #f2f2f7;
  }

  html.landai-mobile-shell-v2 #mobile-shell-menu-sheet .mobile-sheet-action {
    min-height: 56px;
    border-radius: 0;
    border-bottom: 1px solid #e7e7e7;
    background: #fff;
    font-size: 16px;
    font-weight: 500;
  }

  html.landai-mobile-shell-v2 #mobile-shell-menu-sheet .mobile-sheet-action::after {
    content: "›";
    margin-left: auto;
    color: #8e8e93;
    font-size: 22px;
    font-weight: 400;
  }

  html.landai-mobile-shell-v2 #mobile-shell-tools-sheet {
    height: min(calc(330px + var(--mobile-v2-safe-bottom)), calc(var(--mobile-v2-visual-height) - var(--premium-banner-offset) - 12px));
  }

  html.landai-mobile-shell-v2 #mobile-shell-tools-sheet .mobile-sheet-header {
    position: relative;
    justify-content: center;
    min-height: 70px;
    border-bottom: 0;
  }

  html.landai-mobile-shell-v2 #mobile-shell-tools-sheet .mobile-sheet-header h2 {
    margin-top: 10px;
    font-size: 22px;
  }

  html.landai-mobile-shell-v2 #mobile-shell-tools-sheet .mobile-sheet-close {
    position: absolute;
    right: 10px;
    bottom: 6px;
  }

  html.landai-mobile-shell-v2 .mobile-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 0 20px 20px;
  }

  html.landai-mobile-shell-v2 .mobile-tool-card {
    min-width: 0;
    height: 100px;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid currentColor;
    border-radius: 12px;
    color: #1c1c1e;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
  }

  html.landai-mobile-shell-v2 .mobile-tool-card svg {
    color: currentColor;
  }

  html.landai-mobile-shell-v2 .mobile-tool-card.is-pin {
    border-color: rgba(0, 122, 255, 0.3);
    background: rgba(0, 122, 255, 0.1);
  }

  html.landai-mobile-shell-v2 .mobile-tool-card.is-measure {
    border-color: rgba(52, 199, 89, 0.3);
    background: rgba(52, 199, 89, 0.1);
  }

  html.landai-mobile-shell-v2 .mobile-tool-card.is-area {
    border-color: rgba(255, 149, 0, 0.34);
    background: rgba(255, 149, 0, 0.1);
  }

  html.landai-mobile-shell-v2 .mobile-tool-card.is-gather {
    border-color: rgba(175, 82, 222, 0.3);
    background: rgba(175, 82, 222, 0.1);
  }

  html.landai-mobile-shell-v2 .mobile-tool-card.is-pin svg {
    color: #0066cc;
  }

  html.landai-mobile-shell-v2 .mobile-tool-card.is-measure svg {
    color: #24793b;
  }

  html.landai-mobile-shell-v2 .mobile-tool-card.is-area svg {
    color: #a65300;
  }

  html.landai-mobile-shell-v2 .mobile-tool-card.is-gather svg {
    color: #7a318f;
  }

  html.landai-mobile-shell-v2 #mobile-shell-basemap-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 16px 20px;
  }

  html.landai-mobile-shell-v2 #mobile-shell-basemap-options .mobile-basemap-option {
    min-width: 0;
    min-height: 64px;
    justify-content: center;
    padding: 10px;
    border: 1px solid #e7e7e7;
    border-radius: 10px;
    background: #f2f2f7;
    text-align: center;
  }

  html.landai-mobile-shell-v2 #mobile-shell-basemap-options .mobile-basemap-option[aria-pressed="true"] {
    border-color: #61b39e;
    background: rgba(97, 179, 158, 0.15);
    color: #247963;
  }

  html.landai-mobile-shell-v2 .mobile-county-context {
    position: fixed;
    top: auto;
    right: max(70px, calc(var(--mobile-v2-safe-right) + 62px));
    bottom: calc(var(--mobile-v2-tabbar-height) + 54px);
    left: max(16px, var(--mobile-v2-safe-left));
    z-index: 22;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: calc(100vw - 96px - var(--mobile-v2-safe-left) - var(--mobile-v2-safe-right));
    padding: 8px 9px 8px 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(28, 28, 30, 0.76);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(18px);
  }

  html.landai-mobile-shell-v2 .mobile-county-context[hidden] {
    display: none;
  }

  html.landai-mobile-shell-v2 .mobile-county-context-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  html.landai-mobile-shell-v2 .mobile-county-context-label {
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html.landai-mobile-shell-v2 .mobile-county-context-meta {
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 500;
  }

  html.landai-mobile-shell-v2 .mobile-county-context-badge {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
  }

  html.landai-mobile-shell-v2 .mobile-county-context-badge.is-premium {
    background: #ffedd5;
    color: #9a3412;
  }

  /* The v1 rail and floating docks remain in the DOM as proxy action targets,
     but never render in the compact shell. */
  html.landai-mobile-shell-v2 .app-left-rail,
  html.landai-mobile-shell-v2 .map-tools-dock,
  html.landai-mobile-shell-v2 .map-floating-dock {
    display: none !important;
  }

  html.landai-mobile-shell-v2 #zoom-level-display {
    position: fixed;
    top: auto;
    right: auto;
    bottom: calc(var(--mobile-v2-tabbar-height) + 16px);
    left: max(16px, var(--mobile-v2-safe-left));
    z-index: 22;
    width: auto;
    min-width: 0;
    height: auto;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(28, 28, 30, 0.76);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    backdrop-filter: blur(18px);
  }

  html.landai-mobile-shell-v2 .map-loading-overlay {
    inset:
      calc(var(--premium-banner-offset) + var(--mobile-v2-topbar-height))
      0
      var(--mobile-v2-tabbar-height)
      0;
  }

  /* Search becomes a compact sheet, instead of squeezing four controls into a
     single 360px row. */
  html.landai-mobile-shell-v2 .map-left-search {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 42;
    width: auto;
    max-width: none;
    max-height: min(78dvh, calc(var(--mobile-v2-visual-height) - var(--premium-banner-offset) - 18px));
    display: none;
    gap: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-width: 1px 0 0;
    border-radius: var(--mobile-v2-sheet-radius) var(--mobile-v2-sheet-radius) 0 0;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    padding-bottom: var(--mobile-v2-safe-bottom);
  }

  html.landai-mobile-shell-v2 body.mobile-v2-search-open .map-left-search {
    display: grid;
  }

  html.landai-mobile-shell-v2 .map-left-search.mobile-v2-child-surface-active > :not(.overlay-layers-panel) {
    display: none !important;
  }

  html.landai-mobile-shell-v2 .map-left-search.mobile-v2-child-surface-active .overlay-layers-panel {
    max-height: min(78dvh, calc(var(--mobile-v2-visual-height) - var(--premium-banner-offset) - 18px));
    border-top: 0;
  }

  html.landai-mobile-shell-v2 .mobile-search-sheet-header {
    position: sticky;
    top: 0;
    z-index: 2;
  }

  html.landai-mobile-shell-v2 .map-left-search-row {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(110px, auto);
    gap: 8px;
    padding: 12px;
  }

  html.landai-mobile-shell-v2 .map-left-search .unified-search-form {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 52px;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    border: 1px solid #dbe2ea;
    border-radius: 15px;
    box-shadow: none;
  }

  html.landai-mobile-shell-v2 .map-left-search .unified-search-form input {
    min-width: 0;
    font-size: 1rem;
  }

  html.landai-mobile-shell-v2 .search-icon-btn,
  html.landai-mobile-shell-v2 .search-clear-btn,
  html.landai-mobile-shell-v2 .search-layers-btn,
  html.landai-mobile-shell-v2 .search-premium-unlock-btn,
  html.landai-mobile-shell-v2 .overlay-layers-close,
  html.landai-mobile-shell-v2 .parcel-popup-btn {
    min-width: 44px;
    min-height: 44px;
  }

  html.landai-mobile-shell-v2 .search-layers-btn,
  html.landai-mobile-shell-v2 .search-premium-unlock-btn {
    width: 100%;
    min-width: 0;
    height: 48px;
    border-radius: 14px;
    box-shadow: none;
  }

  html.landai-mobile-shell-v2 .search-dropdown {
    width: auto;
    max-width: none;
    max-height: 42dvh;
    margin: 0 12px 12px;
    padding: 12px;
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: none;
  }

  html.landai-mobile-shell-v2 .address-suggestion-btn {
    min-height: 48px;
  }

  html.landai-mobile-shell-v2 .web-measurement-edit-handle {
    width: 44px;
    height: 44px;
    border-width: 8px;
  }

  html.landai-mobile-shell-v2 .address-suggestion-btn.is-keyboard-active,
  html.landai-mobile-shell-v2 .address-suggestion-btn[aria-selected="true"] {
    background: #ecfdf5;
    outline: 3px solid #006b4f;
    outline-offset: -2px;
  }

  html.landai-mobile-shell-v2 .search-mode-control {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  html.landai-mobile-shell-v2 .search-mode-option span {
    min-width: 0;
    min-height: 42px;
    display: grid;
    place-items: center;
    padding: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html.landai-mobile-shell-v2 .search-location-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html.landai-mobile-shell-v2 .search-filter-field-state,
  html.landai-mobile-shell-v2 .search-filter-clear {
    min-height: 44px;
  }

  html.landai-mobile-shell-v2 .overlay-layers-panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: min(54dvh, calc(var(--mobile-v2-visual-height) - var(--premium-banner-offset) - var(--mobile-v2-topbar-height) - var(--mobile-v2-tabbar-height) - 150px));
    overflow: hidden;
    border-width: 1px 0 0;
    border-radius: 0;
    box-shadow: none;
  }

  html.landai-mobile-shell-v2 .overlay-layers-panel-header {
    min-height: 56px;
    padding: 6px 8px 6px 16px;
    background: #fff;
  }

  html.landai-mobile-shell-v2 .overlay-layers-content {
    min-width: 0;
    max-height: calc(54dvh - 56px);
    padding: 12px;
    overflow-x: hidden;
  }

  html.landai-mobile-shell-v2 .overlay-layer-label-mode-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html.landai-mobile-shell-v2 .overlay-layer-label-mode-btn,
  html.landai-mobile-shell-v2 .overlay-layer-buildings-btn,
  html.landai-mobile-shell-v2 .overlay-layer-row,
  html.landai-mobile-shell-v2 .overlay-layer-row-main {
    min-width: 0;
    max-width: 100%;
  }

  /* Existing detail surfaces become uniform bottom sheets. */
  html.landai-mobile-shell-v2 .parcel-popup,
  html.landai-mobile-shell-v2 .pin-details-panel,
  html.landai-mobile-shell-v2 .my-content-panel,
  html.landai-mobile-shell-v2 .account-popover,
  html.landai-mobile-shell-v2 .map-controls {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 42;
    width: auto;
    min-width: 0;
    max-width: none;
    height: auto;
    max-height: min(78dvh, calc(var(--mobile-v2-visual-height) - var(--premium-banner-offset) - 18px));
    overflow: hidden;
    border-radius: var(--mobile-v2-sheet-radius) var(--mobile-v2-sheet-radius) 0 0;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    padding-bottom: var(--mobile-v2-safe-bottom);
  }

  html.landai-mobile-shell-v2 .parcel-popup {
    height: min(52dvh, 500px);
    transition: height 180ms ease;
  }

  html.landai-mobile-shell-v2 .parcel-popup.is-mobile-dragging {
    height: var(--mobile-parcel-drag-height) !important;
    max-height: none !important;
    transition: none !important;
  }

  html.landai-mobile-shell-v2 .parcel-popup[data-mobile-detent="compact"] {
    height: min(292px, 52dvh, calc(var(--mobile-v2-visual-height) - var(--premium-banner-offset) - 18px));
  }

  html.landai-mobile-shell-v2 .parcel-popup[data-mobile-detent="large"] {
    height: calc(var(--mobile-v2-visual-height) - var(--premium-banner-offset));
    max-height: calc(var(--mobile-v2-visual-height) - var(--premium-banner-offset));
  }

  html.landai-mobile-shell-v2 .my-content-panel {
    top: var(--premium-banner-offset);
    bottom: 0;
    height: auto;
    max-height: none;
    border-radius: 0;
  }

  html.landai-mobile-shell-v2 .settings-modal,
  html.landai-mobile-shell-v2 .billing-paywall-modal,
  html.landai-mobile-shell-v2 .auth-overlay,
  html.landai-mobile-shell-v2 .account-delete-modal {
    top: calc(var(--premium-banner-offset) + var(--mobile-v2-topbar-height));
    right: 0;
    bottom: var(--mobile-v2-tabbar-height);
    left: 0;
    height: auto;
    padding: var(--mobile-v2-edge);
    align-items: flex-end;
  }

  html.landai-mobile-shell-v2 .account-delete-modal {
    align-items: end;
    justify-items: stretch;
  }

  html.landai-mobile-shell-v2 .settings-modal-dialog,
  html.landai-mobile-shell-v2 .billing-paywall-panel,
  html.landai-mobile-shell-v2 .auth-card,
  html.landai-mobile-shell-v2 .account-delete-panel {
    width: 100%;
    max-width: none;
    max-height: min(72dvh, calc(var(--mobile-v2-visual-height) - var(--premium-banner-offset) - var(--mobile-v2-topbar-height) - var(--mobile-v2-tabbar-height) - 28px));
    overflow: auto;
    border-radius: var(--mobile-v2-sheet-radius);
  }

  html.landai-mobile-shell-v2 :where(
    .settings-modal-close,
    .settings-nav-back,
    .auth-close-btn,
    .billing-paywall-close,
    .account-popover-close,
    .parcel-popup-btn,
    #controls-minimize-btn,
    .pin-detail-close,
    .my-content-icon-btn,
    #google-3d-close
  ) {
    min-width: 44px;
    min-height: 44px;
  }

  html.landai-mobile-shell-v2 .mobile-v2-surface-suppressed {
    display: none !important;
  }

  html.landai-mobile-shell-v2 .parcel-popup.is-closed,
  html.landai-mobile-shell-v2 .pin-details-panel.is-closed,
  html.landai-mobile-shell-v2 .my-content-panel.is-closed {
    transform: translateY(calc(100% + 32px));
    opacity: 0;
    pointer-events: none;
  }

  html.landai-mobile-shell-v2 .parcel-popup-header,
  html.landai-mobile-shell-v2 .pin-details-header,
  html.landai-mobile-shell-v2 .my-content-header,
  html.landai-mobile-shell-v2 .account-popover-header {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 58px;
    padding: 7px 8px 7px 18px;
    background: #fff;
  }

  html.landai-mobile-shell-v2 .parcel-popup-header {
    position: sticky;
    min-height: 92px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 2px 8px;
    padding: 30px 8px 8px 20px;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
  }

  html.landai-mobile-shell-v2 .parcel-sheet-grabber {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 3;
    display: block;
    width: 64px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    transform: translateX(-50%);
    touch-action: none;
  }

  html.landai-mobile-shell-v2 .parcel-sheet-grabber::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 36px;
    height: 5px;
    border-radius: 999px;
    background: #8e8e93;
    transform: translateX(-50%);
  }

  html.landai-mobile-shell-v2 .parcel-sheet-grabber:focus-visible {
    outline: 3px solid #0057b8;
    outline-offset: -3px;
  }

  html.landai-mobile-shell-v2 .parcel-popup-header h4 {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
  }

  html.landai-mobile-shell-v2 .parcel-popup-header .parcel-popup-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  html.landai-mobile-shell-v2 #parcel-minimize-btn {
    display: none;
  }

  html.landai-mobile-shell-v2 .parcel-popup-title-desktop {
    display: none;
  }

  html.landai-mobile-shell-v2 .parcel-popup-title-mobile {
    display: inline;
  }

  html.landai-mobile-shell-v2 .parcel-popup-source-badge:not([hidden]) {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 4px;
    background: rgba(52, 199, 89, 0.11);
    color: #247963;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
  }

  html.landai-mobile-shell-v2 .parcel-popup-source-badge.is-premium:not([hidden]) {
    background: rgba(0, 122, 255, 0.1);
    color: #0066cc;
  }

  html.landai-mobile-shell-v2 .parcel-popup-actions {
    gap: 4px;
  }

  html.landai-mobile-shell-v2 #parcel-details-content,
  html.landai-mobile-shell-v2 #pin-details-content,
  html.landai-mobile-shell-v2 #my-content-content {
    min-width: 0;
    padding-bottom: calc(18px + var(--mobile-v2-safe-bottom));
    overflow: auto;
    overscroll-behavior: contain;
  }

  html.landai-mobile-shell-v2 #parcel-details-content {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px 20px calc(20px + var(--mobile-v2-safe-bottom));
  }

  /* Public/basic access and its data gates stay intact; only the mobile
     presentation drops the promotional callout from the parcel sheet. */
  html.landai-mobile-shell-v2 #parcel-details-content > .parcel-basic-access-banner {
    display: none;
  }

  /* The compact detent is a nonmodal map-browsing summary. Match the native
     sheet by keeping owner, address, and parcel ID visible at rest; reserve the
     complete, scrollable record for the medium and large detents. */
  html.landai-mobile-shell-v2 .parcel-popup[data-mobile-detent="compact"] #parcel-details-content {
    overflow: hidden;
    overscroll-behavior: none;
  }

  html.landai-mobile-shell-v2 .parcel-popup[data-mobile-detent="compact"] #parcel-details-content .info-topcards {
    gap: 6px;
    margin-bottom: 0;
  }

  html.landai-mobile-shell-v2 .parcel-popup[data-mobile-detent="compact"] #parcel-details-content .info-topcards > .info-card {
    min-width: 0;
    padding-bottom: 2px;
  }

  html.landai-mobile-shell-v2 .parcel-popup[data-mobile-detent="compact"] #parcel-details-content .info-topcards .info-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html.landai-mobile-shell-v2 .parcel-popup[data-mobile-detent="compact"] #parcel-details-content .info-value-meta {
    display: none;
  }

  html.landai-mobile-shell-v2 .parcel-popup[data-mobile-detent="compact"] #parcel-details-content :where(
    .info-topcards > .info-card:nth-child(n + 4),
    .info-meta-actions-below,
    .info-section,
    .parcel-history-section,
    .history-snapshot-banner,
    .record-back-btn
  ) {
    display: none;
  }

  html.landai-mobile-shell-v2 .parcel-popup[data-mobile-detent="medium"] #parcel-details-content,
  html.landai-mobile-shell-v2 .parcel-popup[data-mobile-detent="large"] #parcel-details-content {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  html.landai-mobile-shell-v2 #parcel-details-content .info-topcards {
    gap: 12px;
    margin-bottom: 16px;
  }

  html.landai-mobile-shell-v2 #parcel-details-content .info-card {
    padding: 0 0 10px;
    border-radius: 0;
    background: #fff;
  }

  html.landai-mobile-shell-v2 #parcel-details-content .info-value {
    color: #000;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.25;
  }

  html.landai-mobile-shell-v2 #parcel-details-content .info-label {
    margin-top: 4px;
    color: #000;
    font-size: 14px;
    font-weight: 400;
  }

  html.landai-mobile-shell-v2 #parcel-details-content .info-value-meta {
    color: #8e8e93;
    font-size: 11px;
  }

  html.landai-mobile-shell-v2 #parcel-details-content .info-meta-actions-below {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin: -2px -20px 18px;
    padding: 12px 16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    border-top: 1px solid #e7e7e7;
    scrollbar-width: none;
  }

  html.landai-mobile-shell-v2 #parcel-details-content .info-meta-actions-below::-webkit-scrollbar {
    display: none;
  }

  html.landai-mobile-shell-v2 #parcel-details-content .parcel-meta-action-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    height: 42px;
    min-height: 42px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 16px;
    border: 1px solid #61b39e;
    border-radius: 8px;
    background: #fff;
    color: #247963;
    font-size: 17px;
    font-weight: 400;
    white-space: nowrap;
  }

  html.landai-mobile-shell-v2 #parcel-details-content .parcel-action-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  html.landai-mobile-shell-v2 #parcel-details-content .parcel-action-icon svg {
    width: 18px;
    height: 18px;
  }

  html.landai-mobile-shell-v2 #parcel-details-content .parcel-meta-action-btn-primary {
    color: #247963;
  }

  html.landai-mobile-shell-v2 :where(
    .mobile-shell-sheet,
    .map-left-search,
    .parcel-popup,
    .pin-details-panel,
    .my-content-panel,
    .account-popover,
    .settings-modal,
    .billing-paywall-modal,
    .account-delete-modal
  ) :where(input, select, textarea) {
    min-height: 44px;
    font-size: 16px;
  }

  html.landai-mobile-shell-v2 .supported-counties-legend {
    right: max(var(--mobile-v2-edge), var(--mobile-v2-safe-right));
    bottom: calc(var(--mobile-v2-tabbar-height) + var(--mobile-v2-edge));
    left: max(var(--mobile-v2-edge), var(--mobile-v2-safe-left));
    z-index: 24;
    width: auto;
    max-width: none;
    border-radius: 16px;
  }

  html.landai-mobile-shell-v2 .measurement-toolbar {
    top: calc(var(--premium-banner-offset) + var(--mobile-v2-topbar-height) + 10px);
    right: max(var(--mobile-v2-edge), var(--mobile-v2-safe-right));
    left: max(var(--mobile-v2-edge), var(--mobile-v2-safe-left));
    z-index: 28;
    width: auto;
    max-width: none;
    grid-template-columns: minmax(0, 1fr);
  }

  html.landai-mobile-shell-v2 body.mobile-v2-surface-active:not(.mobile-v2-background-interactive) .mobile-shell-map-style,
  html.landai-mobile-shell-v2 body.mobile-v2-surface-active:not(.mobile-v2-background-interactive) .mobile-shell-locate,
  html.landai-mobile-shell-v2 body.mobile-v2-surface-active:not(.mobile-v2-background-interactive) #zoom-level-display,
  html.landai-mobile-shell-v2 body.mobile-v2-surface-active:not(.mobile-v2-background-interactive) .mobile-county-context {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  html.landai-mobile-shell-v2 body.mobile-v2-keyboard-open .mobile-shell-bottom-nav,
  html.landai-mobile-shell-v2 body.mobile-v2-keyboard-open .mobile-shell-map-style,
  html.landai-mobile-shell-v2 body.mobile-v2-keyboard-open .mobile-shell-locate {
    display: none;
  }

  html.landai-mobile-shell-v2 body.mobile-v2-keyboard-open :where(
    .mobile-shell-sheet,
    .map-left-search,
    .parcel-popup,
    .pin-details-panel,
    .my-content-panel,
    .account-popover,
    .map-controls,
    .settings-modal,
    .billing-paywall-modal,
    .auth-overlay,
    .account-delete-modal
  ) {
    bottom: max(var(--mobile-v2-edge), var(--mobile-v2-keyboard-inset));
  }

  html.landai-mobile-shell-v2 :where(
    .mobile-shell-icon-btn,
    .mobile-shell-tab,
    .mobile-shell-map-control,
    .mobile-shell-locate,
    .mobile-sheet-action,
    .mobile-sheet-close,
    .mobile-basemap-option,
    .search-icon-btn,
    .search-clear-btn,
    .search-layers-btn,
    .search-premium-unlock-btn,
    .overlay-layers-close,
    .parcel-popup-btn
  ):active {
    transform: scale(0.97);
  }

  @media (prefers-reduced-motion: reduce) {
    html.landai-mobile-shell-v2 .parcel-popup,
    html.landai-mobile-shell-v2 .pin-details-panel,
    html.landai-mobile-shell-v2 .my-content-panel {
      transition: none;
    }
  }
}

/* Keep all three native summary fields visible on very short/coarse viewports
   without turning the compact sheet into a nearly full-screen surface. */
@media (max-height: 520px) and (pointer: coarse) {
  html.landai-mobile-shell-v2 .parcel-popup[data-mobile-detent="compact"] {
    height: min(calc(200px + var(--mobile-v2-safe-bottom)), calc(var(--mobile-v2-visual-height) - var(--premium-banner-offset) - 18px));
  }

  html.landai-mobile-shell-v2 .parcel-popup[data-mobile-detent="medium"] {
    height: min(78dvh, 500px, calc(var(--mobile-v2-visual-height) - var(--premium-banner-offset) - 18px));
  }

  html.landai-mobile-shell-v2 .parcel-popup-header {
    min-height: 76px;
    padding: 22px 8px 4px 20px;
  }

  html.landai-mobile-shell-v2 .parcel-sheet-grabber {
    height: 34px;
  }

  html.landai-mobile-shell-v2 .parcel-sheet-grabber::before {
    top: 6px;
  }

  html.landai-mobile-shell-v2 .parcel-popup-header h4 {
    font-size: 18px;
    line-height: 1.2;
  }

  html.landai-mobile-shell-v2 .parcel-popup-source-badge:not([hidden]) {
    min-height: 20px;
    font-size: 10px;
  }

  html.landai-mobile-shell-v2 .parcel-popup[data-mobile-detent="compact"] #parcel-details-content {
    padding: 6px 20px calc(8px + var(--mobile-v2-safe-bottom));
  }

  html.landai-mobile-shell-v2 .parcel-popup[data-mobile-detent="compact"] #parcel-details-content .info-topcards {
    gap: 2px;
  }

  html.landai-mobile-shell-v2 .parcel-popup[data-mobile-detent="compact"] #parcel-details-content .info-topcards > .info-card {
    padding-bottom: 0;
  }

  html.landai-mobile-shell-v2 .parcel-popup[data-mobile-detent="compact"] #parcel-details-content .info-topcards .info-value {
    font-size: 16px;
    line-height: 1.15;
  }

  html.landai-mobile-shell-v2 .parcel-popup[data-mobile-detent="compact"] #parcel-details-content .info-topcards .info-label {
    margin-top: 0;
    font-size: 11px;
    line-height: 1.2;
  }
}
