:root {
  color-scheme: light;
  --ink: #172824;
  --soft-ink: #3d5149;
  --line: #dce3dc;
  --canvas: #f3f5f0;
  --paper: #fff;
  --green: #205644;
  --green-dark: #153f32;
  --green-light: #e9f1e9;
  --radius: 16px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 15px/1.5 system-ui, 'Segoe UI', sans-serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

[hidden] { display: none !important; }
button, summary { cursor: pointer; }
button:disabled { cursor: wait; }
:is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid #327759;
  outline-offset: 3px;
}

.site-header {
  background: #fcfcf8;
  border-bottom: 1px solid #dbe2d9;
}
.payment-notice { background: #fff4d7; border-bottom: 1px solid #e9d7a6; color: #503c15; }
.payment-notice p { width: min(100% - 28px, 1260px); margin-inline: auto; padding-block: 9px; font-size: 15px; }
.payment-status { background: #fff4d7; border: 1px solid #e9d7a6; border-radius: 8px; color: #503c15; padding: 10px 12px; font-size: 15px; }

.site-inner, .workspace {
  width: min(100% - 64px, 1512px);
  margin-inline: auto;
}

.site-inner {
  min-height: 77px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; width: max-content; }
.brand-mark {
  width: 37px;
  height: 37px;
  position: relative;
  overflow: hidden;
  background: #16392e;
  border-radius: 9px;
}
.brand-mark span { position: absolute; border: 1px solid #b3d6ae; transform: rotate(-32deg); border-radius: 1px; }
.brand-mark span:nth-child(1) { width: 16px; height: 9px; top: 9px; left: 10px; background: #d9edaf; }
.brand-mark span:nth-child(2) { width: 16px; height: 8px; top: 18px; left: 15px; }
.brand-mark span:nth-child(3) { width: 6px; height: 8px; top: 24px; left: 9px; }
.brand-name { font-size: 25px; font-weight: 790; letter-spacing: -.045em; line-height: 1; }
.brand-name span { color: #39634d; }
.site-links, .site-actions { display: flex; align-items: center; gap: 10px; }
.site-actions { justify-content: end; }
.site-links a { padding: 9px 13px; border-radius: 8px; color: var(--ink); font-size: 16px; font-weight: 680; }
.site-links a:hover { background: var(--green-light); }
.nav-button {
  min-height: 46px;
  padding: 6px 13px;
  color: var(--green-dark);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.nav-button:hover { background: var(--green-light); }
.nav-button-primary { padding-inline: 18px; background: var(--green-dark); color: white; }
.nav-button-primary:hover { background: var(--green-dark); }

.landing, .footer-inner { width: min(100% - 64px, 1260px); margin-inline: auto; }
.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5.5vw, 88px);
  padding-block: clamp(38px, 6vw, 90px) clamp(38px, 5.3vw, 76px);
}
.hero-location {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 730;
  color: #2e4e3e;
  margin-bottom: 18px;
}
.hero-location span { width: 9px; height: 9px; border-radius: 50%; background: #679269; box-shadow: 0 0 0 4px #e2ebde; }
.hero-copy h1 {
  font-size: clamp(44px, 5.5vw, 80px);
  line-height: 1.01;
  letter-spacing: -.06em;
  font-weight: 780;
}
.hero-copy h1 span, .hero-copy h1 em {
  display: block;
}
.hero-copy h1 em {
  margin-top: 6px;
  color: #32634e;
  font: italic 600 .96em/1.05 Georgia, serif;
  letter-spacing: -.065em;
}
.hero-description { max-width: 42ch; margin-top: 22px; color: var(--soft-ink); font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.hero-primary, .hero-secondary { min-height: 50px; border-radius: 8px; padding: 9px 17px; font-size: 17px; font-weight: 720; }
.hero-primary { background: var(--green-dark); color: white; }
.hero-secondary { border: 1px solid #82968a; color: var(--green-dark); background: #fbfcf8; }
.hero-secondary:hover { background: var(--green-light); }
.hero-primary:hover, .nav-button-primary:hover { background: #295541; }
.hero-note { margin-top: 12px; color: var(--soft-ink); font-size: 15px; font-weight: 570; }
.hero-map {
  overflow: hidden;
  background: #19392e;
  color: #ecf1e7;
  border-radius: 14px;
  box-shadow: 0 18px 40px #2038301c;
  border: 1px solid #19392e;
}
.hero-map-top, .hero-map figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 16px;
  font-size: 16px;
  font-weight: 650;
}
.hero-map-top span:last-child, .hero-map time { color: #dcebdc; }
.hero-map-image { aspect-ratio: 1.56; overflow: hidden; isolation: isolate; background: #dce7d2; }
.hero-map-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; mix-blend-mode: multiply; }
.hero-map figcaption a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.hero-map figcaption a:focus-visible { outline-color: #d9edaf; }
.landing-guide { padding-block: 24px 32px; border-top: 1px solid #cdd9cd; scroll-margin-top: 16px; }
.guide-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.landing-guide h2 { font-size: clamp(30px, 3vw, 42px); font-weight: 760; letter-spacing: -.045em; line-height: 1.12; }
.landing-guide ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fcfdfa;
  border: 1px solid #cdd9cd;
  border-radius: var(--radius);
}
.landing-guide li { padding: clamp(18px, 2.4vw, 32px); }
.landing-guide li + li { border-inline-start: 1px solid #cdd9cd; }
.landing-guide h3 { font-size: 22px; font-weight: 740; letter-spacing: -.025em; line-height: 1.25; margin-bottom: 7px; }
.landing-guide p { font-size: 17px; color: var(--soft-ink); line-height: 1.55; max-width: 33ch; }
.site-footer { background: #19392e; color: #fff; }
.workspace:not([hidden]) + .site-footer { margin-top: auto; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding-block: 27px; }
.footer-brand { font-size: 23px; font-weight: 750; letter-spacing: -.035em; }
.footer-inner p { max-width: 56ch; margin-top: 6px; font-size: 16px; line-height: 1.6; color: #e2ede4; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.footer-inner button { min-height: 44px; padding: 8px 13px; border: 1px solid #7f9e8a; border-radius: 8px; color: #fff; font-size: 16px; font-weight: 680; }
.footer-inner button:hover { background: #2b5040; }
.footer-inner button:focus-visible { outline-color: #d9edaf; }
.inline-action, .privacy-copy a { min-height: 44px; color: var(--green-dark); font-weight: 700; font-size: 16px; text-decoration: underline; text-underline-offset: 4px; }
.privacy-copy { display: grid; gap: 8px; color: var(--soft-ink); font-size: 14px; }
.privacy-copy h3 { font-weight: 720; color: var(--ink); margin-top: 4px; }
.feedback-form { display: grid; gap: 10px; }
.field textarea { width: 100%; resize: vertical; border: 1px solid #ced8cf; border-radius: 8px; background: #fafbf8; padding: 9px 11px; }
.feedback-form .search-button { margin-top: 0; }
#feedbackStatus:empty { display: none; }

.workspace { padding-block: 26px 30px; }
.workspace-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 21px;
}
.workspace-intro h1 {
  font-size: clamp(28px, 3vw, 43px);
  font-weight: 740;
  line-height: 1.1;
  letter-spacing: -.055em;
  margin-bottom: 6px;
}
.workspace-intro p { color: var(--soft-ink); }
.workspace-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.notice-date { color: var(--soft-ink); font-size: 12px; text-align: right; }
.notice-date strong { display: block; color: var(--ink); font-size: 13px; font-weight: 680; }

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(310px, 390px) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 22px;
  align-items: start;
}
.search-card, .map-card, .result-card, .result-message {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.search-card { padding: 19px; }
.search-card h2, .map-header h2, .result-heading {
  font-weight: 730;
  font-size: 16px;
  letter-spacing: -.025em;
}
.query-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 12px; margin-top: 13px; }
.field { min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 660; }
.field input, .field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #ced8cf;
  border-radius: 8px;
  background: #fafbf8;
  color: var(--ink);
  padding: 8px 11px;
  font-size: 15px;
}
.search-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  width: 100%;
  margin-top: 14px;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-weight: 690;
}
.search-button:hover { background: var(--green-dark); }
.example-list { margin-top: 8px; }
.example-list summary { width: fit-content; padding-block: 6px 2px; font-size: 12px; color: var(--soft-ink); }
.example-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 7px; }
.example-actions button {
  padding: 4px 8px;
  min-height: 36px;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--green);
}
.example-actions button:hover { background: var(--green-light); }

.map-card {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: sticky;
  top: 16px;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 6px 24px #243c2510;
}
.map-header {
  min-height: 55px;
  padding: 8px 14px 8px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.map-switch { display: flex; padding: 3px; background: var(--canvas); border: 1px solid var(--line); border-radius: 8px; }
.map-switch button { min-height: 33px; padding: 4px 12px; color: var(--soft-ink); font-size: 12px; font-weight: 670; border-radius: 5px; }
.map-switch button[aria-pressed="true"] { background: var(--paper); color: var(--green-dark); box-shadow: 0 0 0 1px var(--line); }
.map-viewport { position: relative; height: clamp(465px, calc(100dvh - 244px), 920px); isolation: isolate; }
#map { height: 100%; width: 100%; background: #293f38; }
.map-overlay {
  position: absolute;
  left: 12px;
  top: 12px;
  right: 12px;
  z-index: 500;
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  gap: 7px;
  pointer-events: none;
}
.map-coverage, .sheet-toggle, .sheet-status:not(:empty) {
  border: 1px solid #dce3dce0;
  border-radius: 7px;
  padding: 7px 10px;
  background: #fffffff5;
  color: var(--ink);
  font-size: 12px;
  font-weight: 660;
  box-shadow: 0 2px 8px #0002;
}
.sheet-toggle { min-height: 38px; pointer-events: auto; }
.sheet-toggle[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: white; }
.map-coverage { min-height: 38px; display: flex; align-items: center; }
.map-coverage.hidden { display: none; }
.leaflet-tooltip.parcel-label {
  border: 1px solid #d8e9db;
  background: #172b23;
  color: #fff;
  padding: 2px 6px;
  font-weight: 700;
  border-radius: 5px;
}

.result-area { grid-column: 1; grid-row: 2; display: grid; min-width: 0; gap: 12px; }
.result-message { padding: 15px 17px; color: var(--soft-ink); font-size: 13px; }
.result-message-title { font-weight: 710; color: var(--ink); }
.result-card { padding: 17px; }
.result-heading { font-size: 19px; }
.result-title-row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.result-parcel-id { font-size: 24px; font-weight: 750; letter-spacing: -.025em; margin-top: 3px; overflow-wrap: anywhere; }
.result-note { font-size: 15px; color: var(--soft-ink); line-height: 1.45; }
.query-balance:not(:empty) { margin-top: 7px; }
.result-warning { font-size: 15px; color: #75551f; background: #f8f0dd; padding: 9px 11px; border-radius: 6px; margin-top: 10px; }
.result-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; margin-top: 8px; }
.result-line strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.result-metrics { display: grid; gap: 3px; margin-top: 13px; }
.result-metrics div { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: 3px 9px; padding: 6px 9px; border-radius: 7px; background: var(--canvas); }
.result-metrics div:last-child { background: var(--green-light); }
.result-metrics dd { text-align: right; }
.result-metrics dt, .allocation-metrics dt { color: var(--soft-ink); font-size: 15px; }
.result-metrics dd, .allocation-metrics dd { margin: 2px 0 0; font-weight: 740; font-size: 17px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.allocation-list { display: grid; gap: 11px; margin-top: 13px; }
.allocation { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.allocation-id { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 750; overflow-wrap: anywhere; }
.allocation-color { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.allocation-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin-top: 9px; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 11px; }
.result-actions a, .result-actions button { display: inline-flex; align-items: center; min-height: 44px; color: var(--green-dark); font-size: 15px; font-weight: 700; }
.result-actions a { text-decoration: underline; text-underline-offset: 4px; }
.result-actions button { padding: 6px 8px; border-radius: 7px; border: 1px solid var(--line); }
.result-actions .allocation-map-action { background: var(--green-light); border-color: #ccdece; }
.result-actions button:hover { background: #dcebe0; }
.allocation > .result-note { margin-top: 8px; }
.boundary-note {
  margin-top: 11px;
  padding: 9px 11px;
  border-left: 3px solid #a77931;
  border-radius: 6px;
  background: #f8f0dd;
  color: #62471d;
  font-size: 15px;
  line-height: 1.5;
}
.boundary-note strong { display: block; margin-bottom: 2px; }
.report-button { width: 100%; min-height: 42px; border: 1px solid #cad7ca; border-radius: 8px; color: var(--green); font-size: 13px; font-weight: 680; background: var(--paper); }
.report-button:hover { background: var(--green-light); }

.workspace-dialog {
  width: min(100% - 28px, 420px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  margin: auto;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 48px #192e2840;
}
.workspace-dialog::backdrop { background: #17282485; }
.plans-dialog { width: min(100% - 28px, 660px); }
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 12px 20px;
  border-bottom: 1px solid var(--line);
}
.dialog-header h2 { font-size: 21px; font-weight: 740; letter-spacing: -.035em; }
.dialog-close {
  width: 42px;
  height: 42px;
  border-radius: 7px;
  font-size: 25px;
  line-height: 1;
  color: var(--soft-ink);
}
.dialog-close:hover { background: var(--canvas); }
.dialog-content { padding: 17px 20px 20px; }
.dialog-note { font-size: 13px; color: var(--soft-ink); }
#account-status:not(:empty) { margin-bottom: 12px; }
#accountEmail { overflow-wrap: anywhere; }
.account-dialog:has(#signedInAccount:not([hidden])) { width: min(100% - 28px, 510px); }
.account-settings { display: grid; gap: 12px; }
.account-identity { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.account-identity p { font-size: 15px; font-weight: 690; }
.settings-panel { border: 1px solid var(--line); background: #fafbf8; border-radius: 10px; padding: 13px; }
.settings-panel h3 { font-size: 17px; font-weight: 740; margin-bottom: 6px; }
.settings-panel .account-fields { margin-top: 7px; }
.settings-panel > .account-secondary { margin-top: 8px; }
.settings-details { padding-top: 8px; margin-top: 9px; border-top: 1px solid var(--line); }
.settings-details summary { color: var(--green-dark); font-weight: 700; }
.settings-details > p { margin: 8px 0; }
.account-secondary {
  min-height: 43px;
  padding: 7px 12px;
  border: 1px solid #c2d1c4;
  border-radius: 8px;
  background: var(--paper);
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
}
.account-secondary:hover { background: var(--green-light); }
.account-secondary:disabled { opacity: .56; cursor: default; }
.account-danger { border-color: #d8b8ad; color: #8b3428; }
.google-access { display: grid; gap: 6px; text-align: center; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 13px; }
.plan-status { margin-top: 12px; font-weight: 670; }
.account-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 12px;
}
.account-switch button {
  min-height: 42px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 680;
  color: var(--soft-ink);
}
.account-switch button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--green-dark);
  box-shadow: 0 0 0 1px var(--line);
}
.account-fields:not([hidden]) { display: grid; gap: 11px; margin-top: 14px; }
.account-fields input:disabled { background: var(--canvas); }
.account-fields .search-button:disabled {
  margin-top: 0;
  color: var(--soft-ink);
  background: var(--green-light);
  cursor: default;
}
.remember-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  width: fit-content;
  font-size: 14px;
  cursor: pointer;
}
.remember-option input { width: 17px; height: 17px; accent-color: var(--green); }
#plansDialog { width: min(100% - 28px, 870px); }
.plan-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.6fr); gap: 12px; margin-top: 15px; }
.plan-card { border: 1px solid var(--line); border-radius: 11px; padding: 16px; }
.plan-pro { background: var(--green-light); border-color: #79a88a; }
.plan-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; }
.plan-card h3 { font-size: 17px; font-weight: 720; color: var(--green-dark); }
.plan-recommended { padding: 3px 8px; border-radius: 5px; background: var(--green-dark); color: white; font-size: 13px; font-weight: 700; }
.plan-quota { margin-top: 4px; font-size: 26px; font-weight: 750; letter-spacing: -.035em; }
.plan-quota span { color: var(--soft-ink); font-size: 15px; font-weight: 650; letter-spacing: 0; }
.pro-billing-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-block: 12px; }
.pro-billing-option { border: 1px solid #c5dbca; border-radius: 8px; background: #fafcf8; padding: 10px; }
.pro-billing-label { color: var(--soft-ink); font-size: 14px; font-weight: 670; }
.pro-billing-option .plan-quota { margin-top: 2px; }
.pro-billing-option .search-button { margin-top: 7px; }
.plan-card ul { margin-top: 8px; padding-left: 16px; list-style: disc; color: var(--soft-ink); font-size: 15px; }
.plan-details { margin-top: 12px; border-top: 1px solid #c5dbca; font-size: 13px; }
.plan-details summary { padding-block: 9px 1px; color: var(--green-dark); font-weight: 680; }
.plan-details dl { display: grid; gap: 3px; margin-top: 6px; }
.plan-details dt { margin-top: 4px; font-weight: 680; }
.plan-details dd { color: var(--soft-ink); }
#batchQueryDialog { width: min(100% - 28px, 850px); }
#batchQueryList { margin-top: 8px; font-size: 16px; line-height: 1.55; }
.batch-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.batch-status { margin-top: 12px; }
.batch-status:empty { display: none; }
.batch-results { overflow: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; }
.batch-results table { width: 100%; min-width: 540px; font-size: 14px; }
.batch-results th, .batch-results td { text-align: left; padding: 9px 12px; }
.batch-results th { background: var(--green-light); color: var(--green-dark); font-weight: 720; }
.batch-results tr + tr td { border-top: 1px solid var(--line); }
.batch-results td:nth-child(2) { max-width: 30ch; overflow-wrap: anywhere; }
.batch-results td:last-child { white-space: nowrap; }
.report-preview-parcel { font-size: 19px; font-weight: 740; letter-spacing: -.025em; margin-bottom: 5px; }
.report-preview-fields { margin-top: 14px; border-top: 1px solid var(--line); }
.report-preview-fields div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3px 10px;
  padding-block: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.report-preview-fields dt { font-weight: 660; }
.report-preview-fields dd { color: var(--soft-ink); }
#imarReportDialog .report-preview-fields div { font-size: 15px; }
#imarReportDialog .inline-action { display: inline-flex; align-items: center; }
.imar-plan-heading { font-size: 17px; font-weight: 730; margin: 8px 0 4px; }

@media (max-width: 820px) {
  .site-inner, .workspace, .landing, .footer-inner { width: min(100% - 28px, 680px); }
  .site-inner { min-height: 65px; grid-template-columns: 1fr auto; gap: 5px 10px; padding-block: 8px; }
  .site-links { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid var(--line); gap: 7px; }
  .site-links a, .site-links button { padding: 7px 9px; min-height: 44px; display: inline-flex; align-items: center; }
  .site-actions { grid-column: 2; grid-row: 1; gap: 3px; }
  .landing-hero { grid-template-columns: 1fr; gap: 28px; padding-block: 30px 34px; }
  .hero-copy h1 { font-size: clamp(44px, 10vw, 72px); }
  .hero-description { margin-top: 17px; }
  .hero-actions { margin-top: 17px; }
  .landing-guide ol { grid-template-columns: 1fr; }
  .landing-guide li + li { border-inline-start: 0; border-block-start: 1px solid #cdd9cd; }
  .landing-guide p { max-width: none; }
  .footer-inner { flex-direction: column; align-items: start; gap: 17px; }
  .workspace { padding-top: 20px; }
  .workspace-intro { align-items: start; flex-wrap: wrap; margin-bottom: 15px; }
  .workspace-intro p { font-size: 13px; }
  .notice-date { text-align: left; }
  .notice-date strong { font-size: 12px; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 13px; }
  .map-card, .result-area { grid-column: auto; grid-row: auto; }
  .map-card { position: static; scroll-margin-block: 12px; }
  .search-card { padding: 14px; }
  .map-header { padding-left: 13px; }
  .map-switch button, .sheet-toggle { min-height: 44px; }
  .nav-button { min-height: 44px; }
  .field input, .field select { font-size: 16px; }
  .map-viewport { height: clamp(310px, 52dvh, 490px); }
}

@media (max-width: 650px) {
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .brand-name { font-size: 22px; }
  .brand { gap: 6px; }
  .brand-mark { transform: scale(.88); transform-origin: left center; margin-right: -4px; }
  .site-actions .nav-button { padding-inline: 8px; font-size: 15px; }
  .dialog-content { padding-inline: 14px; }
}

@media (max-width: 420px) {
  .pro-billing-options { grid-template-columns: 1fr; }
  .pro-billing-option .plan-quota { font-size: 21px; }
  .guide-heading { align-items: start; flex-direction: column; }
  .site-actions { display: contents; }
  .site-links { grid-column: 1; gap: 2px; border-top: 0; }
  .site-links a, .site-links button { padding-inline: 6px; font-size: 15px; }
  #accountMenu, #navEntry { grid-column: 2; justify-self: end; }
  #accountMenu { grid-row: 1; }
  #navEntry { grid-row: 2; }
}

@media (max-width: 360px) {
  .notice-date, .notice-date strong { font-size: 11px; }
  .site-inner { column-gap: 5px; }
  .brand { gap: 5px; }
  .brand-mark { width: 32px; margin-right: -3px; }
  .brand-name { font-size: 20px; }
  .site-actions { gap: 2px; }
  .nav-button { padding-inline: 8px; }
  .site-actions .nav-button { padding-inline: 6px; }
  .map-switch button { padding-inline: 9px; }
}

@media print {
  .site-header, .payment-notice, .landing, .site-footer, .workspace-dialog, .map-card { display: none; }
  .workspace-grid { display: block; }
  .has-paid-features .workspace { display: none; }
  .has-paid-features #printArea { display: block !important; }
}
