@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  font-family: "DM Sans", sans-serif;
  color: #202a26;
  background: #f5f7f4;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #202a26;
  --muted: #82908a;
  --green: #2f775c;
  --green-dark: #235d46;
  --line: #e7ece8;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.topbar {
  height: 74px; padding: 0 34px; display: flex; align-items: center;
  justify-content: space-between; background: #fff; border-bottom: 1px solid #e9eeea;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 21px Manrope, sans-serif; letter-spacing: -.8px; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px 10px 10px 3px; background: #dff0e5; color: #327958; font: 800 17px Manrope, sans-serif; }
.brand-period { color: #53a477; }
.topbar-tools { display: flex; align-items: center; gap: 21px; }
.address-search { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px 8px; width: 100%; margin-top: 27px; }
.address-search-heading-row { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.address-search-heading { margin: 0 0 1px; color: #202a26; font: 700 13px Manrope, sans-serif; letter-spacing: -.2px; }
.address-search-clear { flex: 0 0 auto; }
.address-search-clear[hidden] { display: none; }
.address-search-field { min-width: 0; height: 38px; flex: 1; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #e8ede9; border-radius: 9px; color: #819087; background: #f8faf8; }
.address-search-field:focus-within { border-color: #b7d1bd; background: #fff; box-shadow: 0 0 0 3px #edf5ef; }
.address-search-field > span { font-size: 23px; line-height: 1; transform: rotate(-20deg); }
.address-search-field input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.address-search-field input::placeholder { color: #9aa59f; }
.address-search-submit { min-height: 38px; padding: 0 14px; white-space: nowrap; }
.address-search-status { position: absolute; z-index: 750; top: calc(100% + 8px); left: 0; width: min(440px, calc(100vw - 32px)); padding: 9px 12px; border: 1px solid #e7ece8; border-radius: 9px; color: #536159; background: #fff; box-shadow: 0 8px 26px #1a2c2020; font-size: 11px; line-height: 1.5; }
.address-search-status[hidden] { display: none; }
.account-menu { position: relative; }
.account-menu-trigger { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid #e8ede9; border-radius: 9px; color: #536159; background: #fff; }
.account-menu-trigger:hover, .account-menu-trigger[aria-expanded="true"] { background: #f5f8f5; }
.menu-icon { width: 17px; display: grid; gap: 4px; }
.menu-icon span { height: 2px; border-radius: 2px; background: currentColor; }
.account-menu-panel { position: absolute; z-index: 700; top: calc(100% + 8px); right: 0; width: 220px; padding: 7px; border: 1px solid #e7ece8; border-radius: 10px; background: #fff; box-shadow: 0 10px 32px #1a2c2020; }
.account-menu-panel[hidden] { display: none; }
.account-menu-item { width: 100%; display: block; padding: 9px; border: 0; border-radius: 6px; color: #45534b; background: transparent; text-align: left; text-decoration: none; font-size: 11px; cursor: pointer; }
.account-menu-item:hover { background: #f5f8f5; }
.account-menu-item:focus-visible { outline: 2px solid #6da57a; outline-offset: -2px; }
.account-menu-signout { color: #a64e45; }

.layout { display: grid; grid-template-columns: 350px minmax(0, 1fr); min-height: calc(100vh - 74px); }
.sidebar { padding: 31px 25px 20px 30px; background: #fff; border-right: 1px solid #e9eeea; }
.eyebrow { margin: 0 0 10px; color: #72927e; font-size: 9px; font-weight: 700; letter-spacing: 1.15px; }
h1, h2, p { margin-top: 0; }
.intro h1 { margin: 0 0 9px; font: 700 22px Manrope, sans-serif; letter-spacing: -.75px; }
.intro-copy { max-width: 270px; margin-bottom: 0; color: #88948e; font-size: 12px; line-height: 1.65; }
.region-section { margin-top: 27px; }
.region-section > label { display: block; margin-bottom: 8px; color: #202a26; font: 700 13px Manrope, sans-serif; letter-spacing: -.2px; }
.region-form > label { display: block; margin-bottom: 6px; color: #6b7972; font-size: 10px; font-weight: 600; }
#region-select { width: 100%; min-height: 39px; padding: 8px 10px; border: 1px solid #e6ebe7; border-radius: 8px; outline: 0; color: #34413a; background: #fff; font-size: 12px; }
#region-select:focus { border-color: #9ec7aa; box-shadow: 0 0 0 3px #eaf4ed; }
.section-heading, .custom-heading { display: flex; align-items: center; justify-content: space-between; }
.section-heading h2, .custom-heading h2 { margin: 0; font: 700 13px Manrope, sans-serif; letter-spacing: -.2px; }
.clear-type-filters { width: 25px; height: 25px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; color: #78877e; background: #f1f5f2; font-size: 19px; line-height: 1; }
.clear-type-filters:hover { color: #3c805d; background: #e7f1e9; }
.clear-type-filters[hidden] { display: none; }
.total-pill { padding: 5px 9px; border-radius: 20px; color: #718078; background: #f1f5f2; font-size: 10px; }
.legend-section { margin-top: 34px; }
.section-hint { margin: 4px 0 0; color: #9aa49f; font-size: 10px; }
.type-filters { display: grid; gap: 3px; margin-top: 10px; }
.type-filter { width: 100%; min-height: 37px; display: flex; align-items: center; gap: 10px; padding: 4px 9px; border: 1px solid transparent; border-radius: 8px; color: #4a5750; background: transparent; text-align: left; font-size: 11px; }
.type-filter:hover { background: #f7f9f7; }
.type-filter[aria-pressed="false"] { opacity: .48; }
.filter-icon { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; font-size: 12px; }
.filter-count { margin-left: auto; color: #9aa49f; font-size: 10px; }
.city-stats-section { margin-top: 34px; }
.city-stats-section .section-heading { align-items: center; gap: 8px; }
.city-stats-search { width: 110px; height: 30px; flex: 0 0 110px; display: flex; align-items: center; gap: 5px; padding: 0 7px; border: 1px solid #e8ede9; border-radius: 7px; color: #89958f; background: #fff; }
.city-stats-search > span { font-size: 17px; line-height: 1; }
.city-stats-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: #45534b; background: transparent; font-size: 10px; }
.city-stats-search input::placeholder { color: #9aa59f; }
.city-stats-list { display: grid; gap: 8px; margin-top: 10px; }
.city-stat-card { overflow: hidden; border: 1px solid #edf0ed; border-radius: 9px; background: #fff; }
.city-stat-card { display: grid; gap: 9px; padding: 10px; }
.city-stat-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.city-stat-heading h3 { margin: 0; overflow: hidden; color: #45534b; font: 600 11px Manrope, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.city-stat-total { flex: 0 0 auto; color: #89958f; font-size: 10px; }
.city-stat-breakdown { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.city-stat-type { display: inline-flex; align-items: center; gap: 5px; color: #75827b; font-size: 10px; }
.city-stat-icon { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; font-size: 11px; }
.city-stats-empty { margin: 0; padding: 12px 10px; color: #96a19b; font-size: 10px; }
.custom-section { margin-top: 21px; padding: 15px 13px 13px; border: 1px solid #e9eeea; border-radius: 12px; background: #fbfcfb; }
.custom-heading { align-items: flex-start; }
.custom-heading h3 { margin: 0; font: 700 13px Manrope, sans-serif; letter-spacing: -.2px; }
.sparkle { color: #91a599; font-size: 17px; }
.app-settings-dialog { width: min(100%, 430px); max-height: calc(100dvh - 32px); overflow-y: auto; }
.app-settings-dialog .custom-section { margin-top: 18px; }
@media (min-width: 851px) {
  .place-dialog.app-settings-dialog { width: min(94vw, 1120px); }
}
.region-settings-section { margin-bottom: 15px; }
.region-list { display: grid; gap: 7px; margin-top: 13px; }
.region-setting-item { display: grid; gap: 6px; min-width: 0; }
.region-setting-row { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(145px, auto) auto auto; align-items: center; gap: 6px; }
.region-setting-row input, .region-form input { width: 100%; min-width: 0; min-height: 34px; padding: 7px 9px; border: 1px solid #e6ebe7; border-radius: 7px; outline: 0; color: #34413a; background: #fff; font-size: 11px; }
.region-setting-row input:focus, .region-form input:focus { border-color: #9ec7aa; box-shadow: 0 0 0 3px #eaf4ed; }
.region-action { min-height: 32px; padding: 0 8px; font-size: 10px; }
.region-action:disabled { cursor: not-allowed; opacity: .45; }
.region-type-toggle { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 10px; border: 1px solid #e6ebe7; border-radius: 7px; color: #627268; background: #fff; text-align: left; font-size: 10px; transition: border-color .15s, background .15s; }
.region-setting-row .region-type-toggle { min-width: 0; white-space: nowrap; }
.region-setting-row .region-type-toggle > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.region-type-toggle:hover, .region-type-toggle[aria-expanded="true"] { border-color: #c8dfcf; background: #f7fbf8; }
.region-type-chevron { color: #57906b; font-size: 15px; transition: transform .15s; }
.region-type-toggle[aria-expanded="true"] .region-type-chevron { transform: rotate(180deg); }
.region-type-menu { padding: 10px; border: 1px solid #e6ebe7; border-radius: 8px; background: #fff; box-shadow: 0 5px 15px #203b280c; }
.region-type-menu[hidden] { display: none; }
.region-type-hint { margin: 0 0 8px; color: #89958f; font-size: 9px; }
.region-type-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.region-type-option { min-width: 0; min-height: 32px; display: flex; align-items: center; gap: 6px; padding: 5px 7px; border: 1px solid #edf0ed; border-radius: 7px; color: #59675f; background: #fbfcfb; font-size: 10px; cursor: pointer; }
.region-type-option:has(input:checked) { border-color: #d3e6d9; background: #f3f8f4; }
.region-type-option input { width: 13px; height: 13px; flex: 0 0 auto; margin: 0; accent-color: #3c805d; }
.region-type-option-icon { width: 19px; height: 19px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 6px; font-size: 10px; }
.region-type-option-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.region-form { margin-top: 14px; }
.region-form .add-type-button { margin-top: 8px; }
.type-settings-list { display: grid; gap: 8px; margin-top: 13px; }
.archive-list { display: grid; gap: 7px; margin-top: 13px; }
.archive-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border: 1px solid #e9eeea; border-radius: 8px; background: #fff; }
.archive-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.archive-item-copy { min-width: 0; display: grid; gap: 3px; }
.archive-item-copy strong { overflow: hidden; color: #45534b; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.archive-item-copy span, .archive-empty { color: #89958f; font-size: 10px; }
.archive-empty { margin: 0; padding: 2px 0; }
.archive-restore { min-height: 31px; flex: 0 0 auto; padding: 0 10px; font-size: 10px; }
.archive-delete { min-height: 31px; flex: 0 0 auto; padding: 0 10px; font-size: 10px; }
.place-table-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-top: 13px; }
.place-table-reset { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; border: 1px solid #e6ebe7; border-radius: 7px; color: #78877e; background: #fff; font: 400 20px/1 "DM Sans", sans-serif; cursor: pointer; }
.place-table-reset:hover { border-color: #b7d2bd; color: #347b4a; background: #f5f8f5; }
.place-table-reset:focus-visible { outline: 2px solid #6da57a; outline-offset: 2px; }
.place-table-filters label { display: grid; gap: 5px; min-width: 0; color: #6b7972; font-size: 10px; font-weight: 600; }
.place-table-filters select { width: 100%; min-width: 0; height: 34px; padding: 5px 8px; border: 1px solid #e6ebe7; border-radius: 7px; outline: 0; color: #45534b; background: #fff; font-size: 10px; }
.place-table-filters select:focus { border-color: #9ec7aa; box-shadow: 0 0 0 3px #eaf4ed; }
.place-table-status { margin: 11px 0 7px; color: #89958f; font-size: 10px; }
.place-table-scroll { max-height: 360px; overflow: auto; border: 1px solid #e9eeea; border-radius: 8px; background: #fff; }
.place-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 9px; text-align: left; }
.place-table th, .place-table td { min-width: 0; padding: 8px 5px; border-bottom: 1px solid #edf0ed; color: #59675f; line-height: 1.4; vertical-align: top; overflow-wrap: anywhere; }
.place-table th { position: sticky; z-index: 1; top: 0; color: #45534b; background: #f5f8f5; font-weight: 700; white-space: normal; }
.place-table-marker-link { display: inline; padding: 0; border: 0; color: #347b4a; background: transparent; font: inherit; text-align: left; text-decoration: underline; text-decoration-color: #b7d2bd; text-underline-offset: 2px; cursor: pointer; }
.place-table-marker-link:hover { color: #215e34; text-decoration-color: currentColor; }
.place-table-marker-link:focus-visible { border-radius: 2px; outline: 2px solid #6da57a; outline-offset: 2px; }
.place-table th:nth-child(1), .place-table td:nth-child(1) { width: 9%; }
.place-table th:nth-child(2), .place-table td:nth-child(2) { width: 9%; }
.place-table th:nth-child(3), .place-table td:nth-child(3) { width: 5%; }
.place-table th:nth-child(4), .place-table td:nth-child(4) { width: 14%; }
.place-table th:nth-child(5), .place-table td:nth-child(5) { width: 7%; }
.place-table th:nth-child(6), .place-table td:nth-child(6) { width: 12%; }
.place-table th:nth-child(7), .place-table td:nth-child(7) { width: 9%; }
.place-table th:nth-child(8), .place-table td:nth-child(8) { width: 9%; }
.place-table th:nth-child(9), .place-table td:nth-child(9) { width: 10%; }
.place-table th:nth-child(10), .place-table td:nth-child(10) { width: 10%; }
.place-table th:nth-child(11), .place-table td:nth-child(11) { width: 6%; }
.place-table tbody tr:last-child td { border-bottom: 0; }
.place-table-empty { padding: 22px !important; color: #89958f !important; text-align: center; }
.type-setting-row { display: grid; grid-template-columns: minmax(0, 1fr) 42px 32px; align-items: center; gap: 6px; }
.type-setting-row input:not([type="color"]), .type-setting-row select { width: 100%; min-width: 0; height: 33px; padding: 5px 7px; border: 1px solid #e6ebe7; border-radius: 7px; outline: 0; color: #34413a; background: #fff; font-size: 11px; }
.type-setting-row input:focus, .type-setting-row select:focus { border-color: #9ec7aa; box-shadow: 0 0 0 3px #eaf4ed; }
.type-setting-row input[type="color"] { width: 31px; height: 31px; padding: 3px; border: 1px solid #e6ebe7; border-radius: 7px; background: #fff; }
.type-setting-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 6px; }
.type-action { min-height: 32px; padding: 0 8px; font-size: 10px; white-space: nowrap; }
.type-action:disabled { cursor: not-allowed; opacity: .45; }
@media (min-width: 851px) {
  .type-setting-row { grid-template-columns: minmax(0, 1fr) 42px 32px auto auto; }
  .type-setting-actions { display: contents; }
}
.new-type-heading { margin: 18px 0 0; font: 700 12px Manrope, sans-serif; }
.type-form { margin-top: 13px; }
.type-form > label, #place-form > label { display: block; margin: 0 0 6px; color: #6b7972; font-size: 10px; font-weight: 600; }
.type-form input:not([type="color"]), .type-form select, #place-form input, #place-form select, #place-form textarea { width: 100%; min-height: 36px; margin-bottom: 11px; padding: 8px 10px; border: 1px solid #e6ebe7; border-radius: 7px; outline: 0; color: #34413a; background: #fff; font-size: 11px; }
.type-form input:focus, .type-form select:focus, #place-form input:focus, #place-form select:focus, #place-form textarea:focus { border-color: #9ec7aa; box-shadow: 0 0 0 3px #eaf4ed; }
.type-form-row { display: grid; grid-template-columns: auto 1fr 32px; align-items: center; gap: 9px; }
.type-form-row label { color: #6b7972; font-size: 10px; font-weight: 600; }
.type-form-row select { margin: 0; }
.type-form-row input[type="color"] { width: 31px; height: 31px; padding: 3px; border: 1px solid #e6ebe7; border-radius: 7px; background: white; }
.button { min-height: 36px; padding: 0 13px; border: 1px solid transparent; border-radius: 7px; font-size: 11px; font-weight: 600; transition: background .15s, transform .15s; }
.button:active { transform: translateY(1px); }
.button-secondary { color: #3e7657; border-color: #dcebe0; background: #eef6f0; }
.button-secondary:hover { background: #e3f0e7; }
.add-type-button { width: 100%; margin-top: 12px; }
.sidebar-note { display: flex; gap: 8px; margin: 18px 2px 0; color: #96a19b; font-size: 10px; line-height: 1.5; }
.sidebar-note span { color: #5da37a; font-size: 15px; }

.landing-page { min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; color: #202a26; background: radial-gradient(ellipse at 2% 2%, #edf5ef 0, transparent 39%), radial-gradient(ellipse at 98% 95%, #e9f5ec 0, transparent 36%), linear-gradient(135deg, #f8faf8 0%, #fff 62%, #f5faf6 100%); }
.landing-page[hidden] { display: none; }
.landing-nav { width: min(100% - 64px, 1180px); height: 72px; display: flex; align-items: center; justify-content: space-between; margin: 0 auto; }
.landing-brand { display: flex; align-items: center; gap: 10px; color: #202a26; text-decoration: none; font: 800 21px Manrope, sans-serif; letter-spacing: -.8px; }
.landing-nav-actions { display: flex; align-items: center; gap: 16px; }
.landing-signin { padding: 9px 10px; border: 0; color: #46564c; background: transparent; font-size: 12px; font-weight: 600; }
.landing-signin:hover { color: #2f775c; }
.landing-primary { color: #fff; background: #3c805d; box-shadow: 0 6px 15px #3c805d30; }
.landing-primary:hover { background: #2f704f; }
.landing-nav .landing-primary { min-height: 36px; padding: 0 18px; border-radius: 8px; font-size: 11px; }
.landing-main { width: min(100% - 40px, 960px); flex: 1; display: flex; flex-direction: column; justify-content: flex-start; margin: 0 auto; padding: 31px 0 24px; }
.landing-hero { max-width: 760px; margin: 0 auto; text-align: center; }
.landing-kicker { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 20px; color: #718078; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.landing-kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: #52a879; box-shadow: 0 0 0 4px #52a87918; }
.landing-hero h1 { margin: 0; color: #202a26; font: 800 clamp(38px, 4.7vw, 54px)/1.13 Manrope, sans-serif; letter-spacing: -2.3px; }
.landing-hero h1 span { color: #3c805d; }
.landing-hero > p { max-width: 580px; margin: 20px auto 23px; color: #78877e; font-size: 15px; line-height: 1.75; }
.landing-hero-button { min-height: 46px; display: inline-flex; align-items: center; padding: 0 23px; border-radius: 9px; font-size: 12px; }
.landing-trust { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; color: #95a199; font-size: 10px; }
.landing-trust span { color: #4a9b70; font-size: 15px; }
.landing-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-top: clamp(34px, 5vh, 50px); }
.feature-card { min-height: 175px; padding: 23px 20px 20px; border: 1px solid #e7ece8; border-radius: 12px; background: rgba(255,255,255,.92); box-shadow: 0 3px 10px #273b2e0c; text-align: center; }
.feature-icon { width: 43px; height: 43px; display: grid; place-items: center; margin: 0 auto 13px; border-radius: 50%; background: #f2f6f3; }
.feature-icon svg { width: 22px; height: 22px; }
.feature-icon-green { color: #39a36e; }
.feature-icon-violet, .feature-icon-blue { color: #3c805d; }
.feature-card h2 { margin: 0 0 8px; color: #344139; font: 700 13px Manrope, sans-serif; }
.feature-card p { max-width: 240px; margin: 0 auto; color: #849188; font-size: 11px; line-height: 1.65; }
.landing-footer { min-height: 62px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; padding: 12px 20px; color: #9aa49d; font-size: 10px; }
.footer-brand { color: #718078; font: 700 12px Manrope, sans-serif; }
.legal-links, .app-legal-links, .auth-legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.legal-links a, .app-legal-links a, .auth-legal-links a { color: #738178; text-decoration: none; }
.legal-links a:hover, .app-legal-links a:hover, .auth-legal-links a:hover { color: #2f775c; text-decoration: underline; }
.app-legal-links { margin-top: 22px; padding-top: 13px; border-top: 1px solid #edf0ed; font-size: 10px; }
.auth-legal-links { justify-content: center; margin-top: 17px; font-size: 10px; }

.map-panel { position: relative; min-height: calc(100vh - 74px); overflow: hidden; background: #e9eee9; }
#map { position: absolute; inset: 0; z-index: 1; }
.leaflet-container { font-family: "DM Sans", sans-serif; background: #e8eee8; }
.leaflet-control-zoom a { color: #48554e !important; }
.locate-button { position: absolute; z-index: 500; right: 16px; bottom: 30px; width: 38px; height: 38px; border: 0; border-radius: 9px; color: #4c6858; background: white; box-shadow: 0 2px 9px #26362c25; font-size: 24px; }
.locate-button:hover { background: #f2f7f3; }
.marker-pin { width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50% 50% 50% 5px; box-shadow: 0 2px 7px #17281d50; transform: rotate(-45deg); }
.marker-pin span { display: block; transform: rotate(45deg); font: 600 15px "DM Sans", sans-serif; line-height: 1; }
.leaflet-div-icon { border: 0; background: transparent; }
.address-result-marker { display: grid; place-items: center; border: 0; background: transparent; }
.address-result-marker::before { width: 20px; height: 20px; border: 3px solid #fff; border-radius: 50% 50% 50% 0; background: #e46d42; box-shadow: 0 2px 8px #17281d70; content: ""; transform: rotate(-45deg); }

.modal-backdrop { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 18px; background: #17241d66; }
.modal-backdrop[hidden] { display: none; }
.confirmation-backdrop { z-index: 1400; padding: 22px; background: rgba(25, 39, 30, .52); backdrop-filter: blur(5px); animation: confirmation-fade-in .18s ease-out; }
.confirmation-dialog { width: min(100%, 390px); padding: 31px 30px 27px; border: 1px solid #e8eee9; border-radius: 20px; background: #fff; box-shadow: 0 24px 80px rgba(20, 39, 27, .24); text-align: center; animation: confirmation-pop-in .2s cubic-bezier(.2, .8, .2, 1); }
.confirmation-dialog h2 { margin: 0 0 24px; color: #304137; font: 700 19px Manrope, sans-serif; letter-spacing: -.4px; }
.confirmation-actions { display: flex; justify-content: center; gap: 9px; }
.confirmation-actions .button { min-width: 116px; min-height: 40px; }
.confirmation-delete-button { border-color: #f2d8d5; color: #a74840; background: #fff1ef; }
.confirmation-delete-button:hover { border-color: #ebc2bd; color: #963c35; background: #ffe7e4; }
.confirmation-actions .button-quiet { border: 1px solid #e7ece8; background: #f8faf8; }
@keyframes confirmation-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes confirmation-pop-in { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .confirmation-backdrop, .confirmation-dialog { animation: none; }
}
.place-dialog { position: relative; width: min(100%, 410px); padding: 25px 25px 20px; border: 1px solid #eef1ee; border-radius: 15px; background: #fff; box-shadow: 0 20px 70px #12221930; }
.close-button { position: absolute; top: 14px; right: 15px; width: 29px; height: 29px; border: 0; border-radius: 8px; color: #829088; background: #f4f6f4; font-size: 20px; }
.dialog-eyebrow { margin-bottom: 7px; }
.place-dialog h2 { margin: 0; font: 700 20px Manrope, sans-serif; letter-spacing: -.5px; }
.coordinates { margin: 5px 0 19px; color: #98a29c; font-size: 10px; }
#place-form > label { margin-bottom: 6px; }
#place-form #place-region { width: 100%; min-height: 36px; margin-bottom: 14px; padding: 8px 10px; border: 1px solid #e6ebe7; border-radius: 7px; outline: 0; color: #34413a; background: #fff; font-size: 12px; }
#place-form #place-region:focus { border-color: #9ec7aa; box-shadow: 0 0 0 3px #eaf4ed; }
#place-form input, #place-form select, #place-form textarea { margin-bottom: 14px; font-size: 12px; }
#place-form #place-city { margin-bottom: 5px; }
.city-lookup-status { margin: 0 0 13px; color: #78877e; font-size: 10px; line-height: 1.45; }
.city-lookup-status[hidden] { display: none; }
#place-form textarea { resize: vertical; }
.place-metadata { display: grid; gap: 7px; margin: 2px 0 14px; }
.place-metadata[hidden] { display: none; }
.place-metadata p { display: flex; justify-content: space-between; gap: 12px; margin: 0; color: #89958f; font-size: 10px; }
.place-metadata strong { overflow-wrap: anywhere; color: #89958f; font-weight: 400; text-align: right; }
.optional { color: #a4ada8; font-weight: 400; }
.dialog-actions { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.action-spacer { flex: 1; }
.button-primary { color: #fff; background: #3c805d; }
.button-primary:hover { background: #2f704f; }
.button-quiet { color: #68756e; background: #f3f5f3; }
.button-danger { color: #bd5549; background: #fff1ef; }
.button-danger:hover { background: #ffe6e3; }
.toast { position: fixed; z-index: 1100; right: 22px; bottom: 20px; max-width: min(390px, calc(100vw - 32px)); padding: 12px 16px; transform: translateY(12px); border-radius: 9px; color: #fff; background: #344a3c; box-shadow: 0 7px 22px #17241d35; opacity: 0; pointer-events: none; font-size: 12px; line-height: 1.45; transition: opacity .2s, transform .2s; }
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast.is-error { background: #9c453d; }
.privacy-notice { position: fixed; z-index: 1150; right: 20px; bottom: 20px; width: min(520px, calc(100vw - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; border: 1px solid #e5ebe6; border-radius: 14px; background: #fff; box-shadow: 0 16px 48px #17241d24; }
.privacy-notice[hidden] { display: none; }
.privacy-notice strong { color: #344139; font: 700 13px Manrope, sans-serif; }
.privacy-notice p { margin: 5px 0 5px; color: #738178; font-size: 11px; line-height: 1.5; }
.privacy-notice a { color: #2f775c; font-size: 10px; }
.privacy-notice .button { flex: 0 0 auto; min-height: 36px; padding: 0 14px; font-size: 11px; }
.auth-gate { position: fixed; z-index: 1200; inset: 0; display: grid; place-items: center; padding: 20px; background: #f5f7f4ed; backdrop-filter: blur(7px); }
.auth-gate[hidden] { display: none; }
.auth-gate { background: #f2f4f7ed; }
.auth-card { width: min(100%, 450px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 28px 32px 25px; border: 1px solid #e7ece8; border-radius: 11px; background: #fff; box-shadow: 0 9px 24px #17241d17; text-align: center; }
.auth-brand-mark { width: 43px; height: 34px; display: grid; place-items: center; margin: 0 auto 11px; border-radius: 8px; color: #327958; background: #dff0e5; font: 800 21px Manrope, sans-serif; }
.auth-card h2 { margin: 0; color: #516174; font: 500 16px Manrope, sans-serif; letter-spacing: -.15px; }
.auth-message { margin: 8px 0 17px; color: #84909d; font-size: 11px; line-height: 1.55; }
.auth-message-error { color: #b14e45; }
.auth-message-success { color: #347b55; }
.auth-form { text-align: left; }
.auth-form > label, #auth-name-field > label, #auth-password-field > label, #confirm-password-field > label, .account-form > label { display: block; margin: 0 0 6px; color: #44566d; font-size: 11px; font-weight: 600; }
.auth-form input, .account-form input, .delete-account-password { width: 100%; height: 43px; margin-bottom: 15px; padding: 0 13px; border: 1px solid #d6dce3; border-radius: 7px; outline: 0; color: #34445a; background: #fff; font-size: 12px; }
.auth-form input::placeholder { color: #aab4c1; }
.auth-form input:focus, .account-form input:focus, .delete-account-password:focus { border-color: #7098ed; box-shadow: 0 0 0 3px #ecf1ff; }
.password-input-wrap { position: relative; }
.password-input-wrap input { padding-right: 43px; }
.password-visibility { position: absolute; top: 0; right: 4px; width: 36px; height: 42px; border: 0; color: #808b99; background: transparent; font-size: 16px; }
.auth-form .button { min-height: 43px; margin-top: 1px; border-radius: 6px; }
.google-sign-in { width: 100%; min-height: 42px; font-size: 12px; }
.google-sign-in:disabled { cursor: wait; opacity: .55; }
.auth-link { display: block; margin: 13px auto 0; padding: 3px 4px; border: 0; color: #2861e9; background: transparent; font-size: 11px; }
.auth-link:hover { text-decoration: underline; }
.auth-divider { display: flex; align-items: center; gap: 11px; margin: 18px 0 14px; color: #8993a0; font-size: 11px; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; background: #dfe3e8; content: ""; }
.button-google { display: flex; align-items: center; justify-content: center; gap: 9px; border-color: #d6dce3; color: #48566b; background: white; }
.button-google:hover { background: #f8f9fb; }
.google-g { font: 800 17px Arial, sans-serif; }
.auth-mode-toggle { margin-top: 15px; }
.auth-footnote { margin: 14px 0 0; color: #a0a9b3; font-size: 10px; line-height: 1.5; }
.account-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
.account-provider-note { margin: 8px 0 18px; color: #859189; font-size: 11px; line-height: 1.5; }
.account-form { padding-bottom: 18px; }
.profile-form { padding-bottom: 18px; border-bottom: 1px solid #edf0ed; }
.account-form > label { color: #6b7972; }
.account-form input { height: 38px; margin-bottom: 12px; border-color: #e6ebe7; font-size: 12px; }
.account-submit { width: 100%; margin-top: 3px; }
.account-danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 17px; border-top: 1px solid #edf0ed; }
.account-danger-zone strong { color: #934a43; font-size: 12px; }
.account-danger-zone p { margin: 5px 0 0; color: #929d96; font-size: 10px; line-height: 1.5; }
.account-danger-zone .button { flex: 0 0 auto; }
.delete-account-password-label { display: block; margin-top: 10px; color: #6b7972; font-size: 10px; }
.delete-account-password { height: 36px; margin: 6px 0 0; border-color: #e6ebe7; font-size: 11px; }

@media (min-width: 1450px) {
  .layout { grid-template-columns: 370px minmax(0, 1fr); }
  .sidebar { padding-right: 31px; padding-left: 35px; }
}
@media (max-width: 850px) {
  .topbar { height: 64px; padding: 0 18px; }
  .layout { grid-template-columns: 300px minmax(0, 1fr); min-height: calc(100vh - 64px); }
  .sidebar { padding: 25px 17px 18px; }
  .map-panel { min-height: calc(100vh - 64px); }
  .search-box { width: 210px; }
  .topbar-tools { gap: 12px; }
  .place-dialog.app-settings-dialog { width: min(96vw, 760px); }
}
@media (max-width: 650px) {
  .landing-nav { width: calc(100% - 32px); height: 62px; }
  .landing-brand { gap: 7px; font-size: 18px; }
  .landing-brand .brand-mark { width: 28px; height: 28px; }
  .landing-nav-actions { gap: 7px; }
  .landing-signin { padding: 8px; font-size: 11px; }
  .landing-nav .landing-primary { min-height: 34px; padding: 0 13px; }
  .landing-main { width: calc(100% - 34px); padding: 38px 0 30px; }
  .landing-kicker { margin-bottom: 15px; font-size: 8px; letter-spacing: 1.1px; }
  .landing-hero h1 { font-size: clamp(34px, 10vw, 46px); letter-spacing: -1.8px; }
  .landing-hero > p { max-width: 430px; margin: 15px auto 19px; font-size: 13px; }
  .landing-features { grid-template-columns: 1fr; gap: 10px; margin-top: 35px; }
  .feature-card { min-height: 0; display: grid; grid-template-columns: 42px 1fr; column-gap: 13px; align-items: center; padding: 14px; text-align: left; }
  .feature-icon { grid-row: span 2; width: 40px; height: 40px; margin: 0; }
  .feature-card h2 { align-self: end; margin-bottom: 3px; }
  .feature-card p { max-width: none; align-self: start; margin: 0; font-size: 10px; }
  .landing-footer { min-height: 58px; flex-direction: column; gap: 7px; font-size: 9px; }
  .legal-links { justify-content: center; gap: 7px 12px; }
  .topbar { height: 61px; padding: 0 13px; }
  .brand { gap: 7px; font-size: 18px; }
  .brand-mark { width: 28px; height: 28px; }
  .topbar-tools { flex: 1; gap: 8px; justify-content: flex-end; }
  .address-search { width: 100%; gap: 6px; }
  .address-search-field { height: 36px; gap: 6px; padding: 0 8px; }
  .address-search-field > span { font-size: 20px; }
  .address-search-field input { font-size: 11px; }
  .address-search-submit { min-height: 36px; padding: 0 9px; font-size: 10px; }
  .layout { display: flex; flex-direction: column-reverse; min-height: calc(100vh - 61px); }
  .map-panel { flex: 1; min-height: 54vh; }
  .sidebar { padding: 21px 17px 26px; border-top: 1px solid #e9eeea; border-right: 0; }
  .intro h1 { font-size: 20px; }
  .intro-copy { max-width: 100%; }
  .legend-section { margin-top: 22px; }
  .custom-section { margin-top: 17px; }
  .sidebar-note { margin-top: 15px; }
  .locate-button { right: 12px; bottom: 14px; }
  #modal.modal-backdrop { padding: 8px; }
  #modal .place-dialog { max-height: calc(100dvh - 16px); overflow-y: auto; padding: 19px 16px 10px; }
  #modal .place-dialog h2 { margin-right: 36px; }
  #modal .coordinates { margin: 3px 0 10px; }
  #place-form > label { margin-bottom: 3px; }
  #place-form input, #place-form select, #place-form textarea { min-height: 32px; margin-bottom: 7px; padding: 6px 9px; }
  #place-form #place-region { min-height: 32px; margin-bottom: 7px; padding: 6px 9px; }
  #place-form #place-city { margin-bottom: 3px; }
  .city-lookup-status { margin-bottom: 7px; }
  #place-form textarea { min-height: 50px; }
  #modal .dialog-actions { position: sticky; z-index: 2; bottom: -10px; margin: 3px -16px -10px; padding: 9px 16px 10px; border-top: 1px solid #eef1ee; background: #fff; }
  .place-table-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .place-table-scroll { max-height: 300px; }
  .place-table { width: 900px; min-width: 900px; table-layout: fixed; font-size: 10px; }
  .privacy-notice { right: 10px; bottom: 10px; width: calc(100vw - 20px); gap: 10px; padding: 14px; }
  .privacy-notice .button { padding: 0 10px; }
  .region-setting-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .region-setting-row input { grid-column: 1 / -1; }
  .region-setting-row .region-type-toggle { grid-column: 1 / 2; grid-row: 2; min-width: 0; }
  .region-setting-row .region-action { grid-row: 2; }
}
