/* LandAI CSS owner: Parcel/ReportAll details, info cards, RentCast, records, settings modal, and hover preview. */
.overlay-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.reportall-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reportall-toggle-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-family: inherit;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-muted);
}

.reportall-toggle-btn:hover {
  background: #e2e8f0;
  color: var(--text);
}

.reportall-dropdown {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.reportall-dropdown.is-open {
  display: flex;
}

.parcel-popup {
  position: fixed;
  top: calc(var(--premium-banner-offset) + 74px);
  left: calc(var(--left-rail-width) + 12px);
  right: auto;
  width: 375px;
  max-width: calc(100vw - var(--left-rail-width) - 24px);
  max-height: calc(100vh - var(--premium-banner-offset) - 118px);
  z-index: 4;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.parcel-popup.is-closed {
  transform: translateX(calc(-100% - 24px));
  opacity: 0;
  pointer-events: none;
}

.parcel-popup.is-minimized .parcel-popup-header {
  border-bottom: none;
}

.parcel-popup.is-minimized #parcel-details-content {
  display: none;
}

.parcel-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.parcel-popup-header h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.parcel-popup-actions {
  display: flex;
  gap: 0.25rem;
}

.parcel-popup-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.parcel-popup-btn:hover {
  background: #f1f5f9;
  color: var(--text);
}

#parcel-details-content {
  padding: 0.75rem 1rem;
  overflow-y: auto;
  font-size: 0.875rem;
  line-height: 1.5;
}

.parcel-placeholder {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.parcel-error {
  color: #dc2626;
}

.parcel-county-disambiguation {
  display: grid;
  gap: 0.55rem;
}

.parcel-county-disambig-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.parcel-county-disambig-select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.55rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-size: 0.875rem;
  background: #fff;
  color: var(--text);
}

.info-topcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.info-card {
  padding: 0.5rem;
  background: #f8fafc;
  border-radius: 6px;
}

.info-card-full {
  grid-column: 1 / -1;
}

.info-value {
  font-weight: 600;
  font-size: 0.9rem;
}

.info-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.info-value-meta {
  margin-top: 0.45rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
}

.info-meta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.info-meta-actions-below {
  margin: -0.45rem 0 1rem;
}

.parcel-meta-action-btn {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--accent);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1;
  padding: 0.42rem 0.58rem;
}

.parcel-meta-action-btn:hover:not(:disabled) {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.parcel-meta-action-btn-primary {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.parcel-meta-action-btn-primary:hover:not(:disabled) {
  background: #115e59;
  border-color: #115e59;
}

.parcel-meta-action-btn:disabled {
  cursor: default;
  opacity: 0.78;
}

.parcel-meta-action-btn.is-confirmed {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #047857;
}

.parcel-meta-action-btn.is-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.landai-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 10000;
  max-width: min(90vw, 320px);
  padding: 0.68rem 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.94);
  color: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.2);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.6rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.landai-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.landai-toast.is-bottom-left {
  left: calc(var(--left-rail-width) + 12px);
  bottom: max(182px, calc(env(safe-area-inset-bottom, 0px) + 182px));
  max-width: min(360px, calc(100vw - var(--left-rail-width) - 24px));
  transform: translate(0, 0.6rem);
}

.landai-toast.is-bottom-left.is-visible {
  transform: translate(0, 0);
}

.landai-toast.is-error {
  background: rgba(127, 29, 29, 0.96);
}

.google-view-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: rgba(2, 6, 23, 0.72);
}

.google-view-modal.is-open {
  display: flex;
}

.google-main-3d-overlay {
  position: fixed;
  top: var(--premium-banner-offset);
  right: 0;
  bottom: 0;
  left: var(--left-rail-width);
  z-index: 1;
  display: none;
  background: #020617;
}

.google-main-3d-overlay.is-active {
  display: block;
}

.google-main-3d-container,
.google-main-3d-container .google-native-3d-map,
.google-main-3d-container canvas {
  width: 100%;
  height: 100%;
}

.google-main-3d-error {
  position: absolute;
  left: 18px;
  bottom: 92px;
  width: min(360px, calc(100vw - var(--left-rail-width) - 36px));
  padding: 0.78rem 0.86rem;
  border: 1px solid rgba(248, 113, 113, 0.42);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.28);
  font-size: 0.84rem;
  line-height: 1.35;
}

.google-view-panel {
  width: min(940px, 96vw);
  max-height: min(88vh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.google-3d-panel {
  width: min(1280px, 98vw);
  max-height: min(92vh, 860px);
  height: min(92vh, 860px);
}

.google-flyaround-panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #020617;
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.48);
}

.google-flyaround-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #020617;
}

.google-flyaround-scrim {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.64) 0%, rgba(2, 6, 23, 0.16) 28%, rgba(2, 6, 23, 0) 46%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.7) 0%, rgba(2, 6, 23, 0.24) 25%, rgba(2, 6, 23, 0) 54%);
}

.google-view-header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.82rem 0.95rem;
  border-bottom: 1px solid var(--border);
}

.google-flyaround-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 1rem 1.1rem;
  border-bottom: none;
  pointer-events: none;
}

.google-view-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
  color: var(--text);
}

.google-flyaround-header .google-view-title {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.64);
  color: #fff;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.32);
  backdrop-filter: blur(12px);
}

.google-view-subtitle {
  margin: 0.18rem 0 0;
  max-width: 66ch;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.google-flyaround-header .google-view-subtitle {
  margin-top: 0.45rem;
  max-width: min(66ch, calc(100vw - 7rem));
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 16px rgba(2, 6, 23, 0.84);
}

.google-view-close {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.google-flyaround-header .google-view-close {
  pointer-events: auto;
  background: rgba(2, 6, 23, 0.64);
  color: #fff;
  backdrop-filter: blur(12px);
}

.google-view-close:hover {
  background: #f1f5f9;
  color: var(--text);
}

.google-flyaround-header .google-view-close:hover {
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
}

.google-3d-container {
  flex: 1 1 auto;
  min-height: 100%;
  height: 100%;
  background: #020617;
}

.google-native-3d-map,
.google-3d-container .cesium-viewer,
.google-3d-container .cesium-viewer-cesiumWidgetContainer,
.google-3d-container .cesium-widget,
.google-3d-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.google-3d-error-card {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(460px, calc(100% - 48px));
  transform: translate(-50%, -50%);
  padding: 20px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  border-radius: 8px;
  background: rgba(10, 14, 28, 0.92);
  color: #f8fafc;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

.google-3d-error-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.google-3d-error-card p {
  margin: 0;
  color: rgba(248, 250, 252, 0.78);
  line-height: 1.45;
}

.google-view-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.72rem 0.95rem;
  border-top: 1px solid var(--border);
  background: #f8fafc;
}

.google-flyaround-footer {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  width: min(520px, calc(100% - 2rem));
  padding: 0.42rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.74);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.38);
  backdrop-filter: blur(14px);
}

.google-view-status {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.google-flyaround-footer .google-view-status {
  padding-left: 0.5rem;
  color: rgba(255, 255, 255, 0.78);
}

.google-view-status.is-error {
  color: #b91c1c;
}

.google-view-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.google-view-action-btn {
  appearance: none;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #fff;
  color: #1d4ed8;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.48rem 0.62rem;
}

.google-flyaround-footer .google-view-action-btn {
  min-height: 34px;
  padding: 0 0.9rem;
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
}

.google-flyaround-footer .google-view-icon-btn {
  width: 34px;
  min-width: 34px;
  padding: 0;
  font-size: 1rem;
}

.google-view-action-btn:hover:not(:disabled) {
  background: #eff6ff;
}

.google-flyaround-footer .google-view-action-btn:hover:not(:disabled) {
  background: #ccfbf1;
}

.google-view-action-btn:disabled {
  cursor: default;
  opacity: 0.65;
}

@media (max-width: 680px) {
  .google-view-modal {
    padding: 0.55rem;
  }

  .google-view-panel,
  .google-3d-panel {
    width: 100%;
    max-height: 92vh;
  }

  .google-3d-panel {
    height: 86vh;
  }

  .google-view-header,
  .google-view-footer {
    padding: 0.72rem;
  }

  .google-flyaround-header {
    padding: 0.75rem;
  }

  .google-flyaround-footer {
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
    width: auto;
    align-items: stretch;
    flex-direction: column;
    border-radius: 14px;
  }

  .google-view-actions {
    width: 100%;
  }

  .google-view-action-btn {
    flex: 1 1 0;
  }

  .google-flyaround-footer .google-view-icon-btn {
    flex: 0 0 44px;
    width: 44px;
  }

  .google-3d-container {
    min-height: 0;
  }
}

.parcel-hover-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-weight: 500;
}

.parcel-hover-loading::before {
  content: "";
  width: 0.7em;
  height: 0.7em;
  border: 2px solid rgba(100, 116, 139, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: map-loading-spin 0.8s linear infinite;
}

.info-section {
  margin-bottom: 1rem;
}

.rentcast-section {
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.rentcast-status {
  padding: 0.55rem 0.65rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.rentcast-load-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.rentcast-load-btn:hover {
  border-color: var(--accent);
  background: var(--accent-muted);
}

.rentcast-load-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.rentcast-load-btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

.rentcast-table td:last-child {
  font-weight: 500;
}

.rentcast-subsection {
  margin-top: 0.85rem;
}

.rentcast-subsection:first-of-type {
  margin-top: 0;
}

.rentcast-subsection h6 {
  margin: 0 0 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text);
}

.rentcast-comp-list {
  display: grid;
  gap: 0.45rem;
}

.rentcast-comp {
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f8fafc;
}

.rentcast-comp-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.rentcast-comp-address {
  min-width: 0;
  font-weight: 600;
  font-size: 0.82rem;
}

.rentcast-comp-price {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--accent);
}

.rentcast-comp-meta {
  margin-top: 0.12rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.rentcast-advanced {
  margin-top: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.rentcast-advanced > summary,
.rentcast-raw > summary {
  cursor: pointer;
  padding: 0.55rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  background: #f8fafc;
}

.rentcast-advanced > summary:focus-visible,
.rentcast-raw > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.rentcast-advanced-body {
  padding: 0 0.65rem 0.65rem;
}

.rentcast-history-table {
  min-width: 100%;
}

.rentcast-history-table th {
  padding: 0.25rem 0.75rem 0.25rem 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.rentcast-advanced-comp-list {
  display: grid;
  gap: 0.6rem;
}

.rentcast-advanced-comp {
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f8fafc;
}

.rentcast-advanced-comp h6 {
  margin: 0 0 0.35rem;
}

.rentcast-advanced .parcel-table td:last-child {
  overflow-wrap: anywhere;
}

.rentcast-raw {
  margin-top: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.rentcast-raw pre {
  max-height: 280px;
  margin: 0;
  padding: 0.65rem;
  overflow: auto;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.72rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.rentcast-note {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.info-section h5 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.parcel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.parcel-table td {
  padding: 0.35rem 1rem 0.35rem 0;
  vertical-align: top;
  line-height: 1.4;
}

.parcel-key {
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  width: 1%;
}

.record-back-btn {
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  font-family: inherit;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}

.record-back-btn:hover {
  background: #e2e8f0;
}

.record-picker-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  margin: 0.75rem 0 0.65rem;
  padding: 0.5rem 0.6rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.record-picker-sort-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.record-picker-sort-select {
  min-width: 0;
  padding: 0.35rem 0.45rem;
  font-size: 0.82rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}

.record-picker-sort-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.record-picker-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.record-picker-card {
  padding: 0.6rem;
  text-align: left;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}

.record-picker-card:hover {
  background: #f1f5f9;
  border-color: var(--accent);
}

.record-picker-pid {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.record-picker-owner {
  font-weight: 600;
  font-size: 0.9rem;
}

.record-picker-address {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Settings modal */
.settings-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.45);
}

.settings-modal.is-open {
  display: flex;
}

.settings-modal-dialog {
  width: 100%;
  max-width: 400px;
  max-height: min(90vh, 560px);
  overflow: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.settings-modal-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.settings-nav-back {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.settings-nav-back:hover:not(:disabled) {
  background: #f1f5f9;
  color: var(--text);
}

.settings-nav-back.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.settings-modal-title {
  flex: 1;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

.settings-modal-close {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.settings-modal-close:hover {
  background: #f1f5f9;
  color: var(--text);
}

.settings-modal-body {
  padding: 1rem;
}

.settings-view.is-hidden {
  display: none !important;
}

.settings-home-lead {
  margin: 0 0 0.75rem;
}

.settings-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.settings-nav-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.settings-nav-row:hover {
  background: #f8fafc;
}

.settings-nav-row-label {
  flex: 1;
}

.settings-nav-row-chevron {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1;
}

.settings-section h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.settings-section .account-security-actions {
  margin: 0;
}

.settings-muted {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.settings-muted code {
  font-size: 0.8rem;
  background: #f1f5f9;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.billing-paywall-modal {
  --pw-deep: #0a4033;
  --pw-darker: #02201a;
  --pw-cream: #f1ecdd;
  --pw-muted: #bac4ad;
  --pw-pink: #f2a6a6;
  --pw-coral: #e85d5d;
  --pw-coral-strong: #d94b4b;
  color-scheme: dark;
  position: fixed;
  inset: 0;
  z-index: 230;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  background: rgba(2, 24, 19, 0.62);
  backdrop-filter: blur(4px);
  -webkit-overflow-scrolling: touch;
}

.billing-paywall-modal.is-open {
  display: flex;
}

.billing-paywall-modal.is-signup-required,
.billing-paywall-modal.is-review-step {
  padding: clamp(0.75rem, 2.4vw, 2rem);
}

.billing-paywall-panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: auto;
  display: block;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(140% 90% at 50% 0%, rgba(241, 236, 221, 0.05), transparent 60%),
    linear-gradient(180deg, var(--pw-deep), var(--pw-deep) 45%, var(--pw-darker));
  border: 1px solid rgba(241, 236, 221, 0.16);
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(2, 24, 19, 0.55);
  color: var(--pw-cream);
}

.billing-paywall-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-45deg, rgba(241, 236, 221, 0.07) 0 2px, transparent 2px 26px);
  pointer-events: none;
}

.billing-paywall-modal.is-signup-required .billing-paywall-panel,
.billing-paywall-modal.is-review-step .billing-paywall-panel {
  max-width: 520px;
}

.billing-paywall-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: clamp(1.4rem, 4vw, 2.2rem);
}

.billing-paywall-visual {
  display: none;
}

.billing-paywall-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.billing-paywall-badge {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(232, 93, 93, 0.7);
  border-radius: 999px;
  background: rgba(241, 236, 221, 0.12);
  color: var(--pw-pink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
}

.billing-paywall-close {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: rgba(241, 236, 221, 0.12);
  color: var(--pw-cream);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.billing-paywall-close:hover {
  background: rgba(241, 236, 221, 0.22);
}

.billing-paywall-modal.is-signup-required .billing-paywall-close {
  display: none;
}

.billing-paywall-title {
  margin: 0 0 0.5rem;
  color: var(--pw-cream);
  font-size: clamp(1.5rem, 3.2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.1;
}

.billing-paywall-copy {
  margin: 0 0 1.4rem;
  color: var(--pw-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.billing-feature-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 1.05rem;
}

.billing-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.billing-feature-check {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  margin-top: 0.1rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--pw-coral);
}

.billing-feature-check::after {
  content: "";
  width: 7px;
  height: 12px;
  margin-top: -2px;
  border: solid #ffffff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.billing-feature-text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.billing-feature-text strong {
  color: var(--pw-cream);
  font-size: 1.02rem;
  font-weight: 800;
}

.billing-feature-text span {
  color: var(--pw-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.billing-plan-grid {
  display: grid;
  gap: 0.7rem;
}

.billing-plan-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.95rem 1.05rem;
  border: 1.5px solid rgba(241, 236, 221, 0.22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(241, 236, 221, 0.06), rgba(0, 0, 0, 0.1));
  color: var(--pw-cream);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.billing-plan-card:hover:not(:disabled),
.billing-plan-card:focus-visible {
  border-color: rgba(232, 93, 93, 0.7);
  outline: none;
}

.billing-plan-card.is-featured,
.billing-plan-card[aria-pressed="true"] {
  border-color: var(--pw-coral);
  background: linear-gradient(135deg, rgba(241, 236, 221, 0.12), rgba(0, 0, 0, 0.18));
}

.billing-plan-card:disabled {
  cursor: progress;
  opacity: 0.68;
}

.billing-plan-select {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid rgba(241, 236, 221, 0.4);
}

.billing-plan-card[aria-pressed="true"] .billing-plan-select {
  border-color: var(--pw-coral);
  background: radial-gradient(circle at center, var(--pw-coral) 0 6px, transparent 7px);
}

.billing-plan-info {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.billing-plan-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pw-cream);
}

.billing-plan-save {
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: var(--pw-coral);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.billing-plan-note {
  color: var(--pw-muted);
  font-size: 0.8rem;
  line-height: 1.25;
}

.billing-plan-pricing {
  display: grid;
  justify-items: end;
  gap: 0.1rem;
  text-align: right;
}

.billing-plan-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--pw-cream);
}

.billing-plan-suffix {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(241, 236, 221, 0.7);
}

.billing-plan-continue-btn {
  width: 100%;
  min-height: 54px;
  margin-top: 1.3rem;
  border: none;
  border-radius: 18px;
  background: var(--pw-coral);
  color: #ffffff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(232, 93, 93, 0.3);
  transition: background 0.15s ease;
}

.billing-plan-continue-btn:hover,
.billing-plan-continue-btn:focus-visible {
  background: var(--pw-coral-strong);
  outline: none;
}

.billing-paywall-footnote {
  margin: 1.1rem 0 0;
  color: rgba(186, 196, 173, 0.85);
  font-size: 0.74rem;
  line-height: 1.4;
}

.billing-paywall-fineprint {
  margin: 0.75rem 0 0;
  color: rgba(186, 196, 173, 0.75);
  font-size: 0.74rem;
  line-height: 1.35;
  text-align: center;
}

.billing-paywall-status {
  min-height: 1.1rem;
  margin: 0.85rem 0 0;
  color: var(--pw-muted);
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: center;
}

.billing-paywall-status[data-type="error"] {
  color: #ffb4b4;
}

.billing-paywall-step-view[hidden],
.billing-review-step[hidden] {
  display: none;
}

.billing-no-thanks-btn {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0.8rem auto 0;
  border: 1px solid rgba(241, 236, 221, 0.28);
  border-radius: 14px;
  background: transparent;
  color: var(--pw-cream);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.billing-no-thanks-btn:hover,
.billing-no-thanks-btn:focus-visible {
  border-color: rgba(241, 236, 221, 0.5);
  background: rgba(241, 236, 221, 0.08);
  outline: none;
}

.billing-review-step {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.billing-review-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
  color: var(--pw-cream);
  font-weight: 900;
  letter-spacing: 0.28em;
}

.billing-review-brand strong {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--pw-coral);
  color: #ffffff;
  letter-spacing: 0;
}

.billing-review-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 1.6rem;
  border-top: 3px solid var(--pw-coral);
  color: var(--pw-coral);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.billing-review-progress span {
  padding-top: 0.65rem;
}

.billing-review-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(241, 236, 221, 0.16);
  border-radius: 16px;
  background: rgba(241, 236, 221, 0.06);
}

.billing-review-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.billing-review-row > div {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.billing-review-row strong,
.billing-review-row b,
.billing-review-section h3 {
  color: var(--pw-cream);
  font-weight: 800;
}

.billing-review-row span,
.billing-review-helper,
.billing-review-legal,
.billing-review-terms,
.billing-review-summary-row span,
.billing-review-summary-note {
  color: var(--pw-muted);
  font-size: 0.84rem;
  line-height: 1.38;
}

.billing-review-divider {
  height: 1px;
  background: rgba(241, 236, 221, 0.16);
}

.billing-review-link-btn {
  border: none;
  background: transparent;
  color: var(--pw-pink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.billing-review-section {
  margin-top: 1.4rem;
}

.billing-review-section h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
}

.billing-review-helper {
  margin: -0.35rem 0 0.65rem;
}

.billing-review-stripe-card {
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(241, 236, 221, 0.16);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.billing-review-stripe-card strong {
  color: var(--pw-cream);
  font-weight: 800;
}

.billing-review-stripe-card span {
  color: var(--pw-muted);
  font-size: 0.84rem;
  line-height: 1.38;
}

.billing-review-secure {
  margin: 0.75rem 0 0;
  color: var(--pw-cream);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.billing-review-summary {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.05rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(241, 236, 221, 0.16);
  color: var(--pw-cream);
}

.billing-review-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.billing-review-summary-row strong {
  flex: 0 0 auto;
  color: var(--pw-cream);
  font-weight: 800;
}

.billing-review-summary-note {
  margin-top: 0.15rem;
  font-size: 0.88rem;
}

.billing-review-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1.3rem;
}

.billing-review-terms input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 0.1rem;
  accent-color: var(--pw-coral);
}

.billing-review-start-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 1.25rem;
  border: none;
  border-radius: 16px;
  background: var(--pw-coral);
  color: #ffffff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(232, 93, 93, 0.28);
}

.billing-review-start-btn:hover:not(:disabled),
.billing-review-start-btn:focus-visible:not(:disabled) {
  background: var(--pw-coral-strong);
  outline: none;
}

.billing-review-start-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.billing-review-legal {
  margin: 0.6rem 0 0;
  font-size: 0.72rem;
}

.billing-review-status {
  margin-top: 0.6rem;
  text-align: center;
}

@media (max-width: 580px) {
  .billing-paywall-modal.is-signup-required,
  .billing-paywall-modal.is-review-step {
    padding: 0;
  }

  .billing-paywall-modal.is-signup-required .billing-paywall-panel,
  .billing-paywall-modal.is-review-step .billing-paywall-panel {
    min-height: 100%;
    max-width: none;
    border: none;
    border-radius: 0;
  }
}

.premium-upgrade-banner {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 220;
  display: grid;
  grid-template-columns: minmax(0, auto) auto 44px;
  align-items: center;
  justify-content: start;
  gap: clamp(1rem, 4vw, 2.6rem);
  min-height: calc(54px + env(safe-area-inset-top, 0px));
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px 24px;
  background: linear-gradient(90deg, #0a4033, #02201a);
  color: #f1ecdd;
  box-shadow: 0 3px 14px rgba(2, 24, 19, 0.3);
}

.premium-upgrade-banner[hidden] {
  display: none;
}

.premium-upgrade-banner-copy {
  margin: 0;
  min-width: 0;
  font-size: clamp(0.92rem, 1.8vw, 1.15rem);
  font-weight: 700;
  line-height: 1.2;
}

.premium-upgrade-banner-btn {
  min-width: 136px;
  min-height: 38px;
  padding: 0 1.35rem;
  border: none;
  border-radius: 999px;
  background: #e85d5d;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.premium-upgrade-banner-btn:hover,
.premium-upgrade-banner-btn:focus-visible {
  background: #d94b4b;
  color: #ffffff;
  outline: none;
}

.premium-upgrade-banner-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #f1ecdd;
  font-family: inherit;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.premium-upgrade-banner-close:hover,
.premium-upgrade-banner-close:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

@media (max-width: 640px) {
  .premium-upgrade-banner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 8px 8px 12px;
  }

  .premium-upgrade-banner-copy {
    grid-column: 1 / -1;
    padding-right: 36px;
    font-size: 0.9rem;
  }

  .premium-upgrade-banner-btn {
    min-width: 108px;
    min-height: 34px;
    padding: 0 1rem;
  }

  .premium-upgrade-banner-close {
    position: absolute;
    top: calc(3px + env(safe-area-inset-top, 0px));
    right: 4px;
  }
}

.settings-label {
  display: block;
  margin: 0.5rem 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.settings-input {
  width: 100%;
  padding: 0.5rem 0.65rem;
  font-size: 0.88rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 0.35rem;
}

.settings-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-muted);
}

.settings-btn {
  display: inline-block;
  margin-top: 0.5rem;
  margin-right: 0.5rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.86rem;
  font-family: inherit;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.settings-btn-primary {
  background: var(--accent);
  color: #fff;
}

.settings-btn-primary:hover {
  background: #15803d;
}

.settings-btn-secondary {
  background: #f1f5f9;
  color: var(--text);
  border: 1px solid var(--border);
}

.settings-btn-secondary:hover {
  background: #e2e8f0;
}

.settings-btn-danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.settings-btn-danger:hover {
  background: #fee2e2;
}

.settings-error {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: #b91c1c;
  min-height: 0;
}

.settings-error:empty {
  display: none;
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.settings-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.settings-toggle-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.settings-toggle-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.settings-toggle-input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--accent);
}

.settings-select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.settings-select-input {
  min-width: 120px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0 2rem 0 0.75rem;
  cursor: pointer;
}

.settings-select-input:focus-visible {
  outline: 2px solid rgba(255, 59, 20, 0.28);
  outline-offset: 2px;
}

/* LandAI hover preview (inside Parcel Info panel) */
#parcel-details-content .parcel-hover-preview {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.parcel-hover-preview-badge {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7c3aed;
}

.parcel-hover-preview-owner {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  word-break: break-word;
}

.parcel-hover-preview-address {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  word-break: break-word;
}

.parcel-hover-preview-multi {
  margin: 0.5rem 0 0;
  padding: 0.45rem 0.5rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #5b21b6;
  background: rgba(139, 92, 246, 0.08);
  border-radius: 6px;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.parcel-hover-preview-id-row {
  margin-top: 0.35rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.parcel-hover-id-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.parcel-hover-id-value {
  font-size: 0.82rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--text);
  word-break: break-all;
}

.parcel-hover-expand-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.parcel-hover-expand-btn:hover {
  background: #15803d;
}
