:root {
    --forest: #214f31;
    --forest-2: #173d26;
    --forest-3: #0d2c1b;
    --moss: #6f8f3a;
    --gold: #b77a31;
    --cream: #f8f4e9;
    --paper: #fffdf8;
    --muted: #69756c;
    --line: rgba(31, 73, 44, .14);
    --danger: #b94838;
    --blue: #4b7d91;
    --shadow: 0 18px 55px rgba(7, 31, 17, .24);
    --shadow-soft: 0 12px 34px rgba(7, 31, 17, .16);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1f2d24; background: var(--forest-3); }
body { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { display: block; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 1000; padding: 10px 14px; background: white; color: var(--forest); border-radius: 10px; }
.skip-link:focus { top: 12px; }

.map-app { height: 100%; min-height: 100svh; }
.map-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 90;
    height: 76px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 0 22px;
    border-bottom: 1px solid rgba(255,255,255,.14);
    background: linear-gradient(180deg, rgba(9,34,20,.94), rgba(9,34,20,.78));
    color: white;
    backdrop-filter: blur(18px) saturate(1.1);
    box-shadow: 0 8px 28px rgba(0,0,0,.17);
}
.map-brand { display: flex; align-items: center; gap: 11px; min-width: 240px; color: white; text-decoration: none; }
.map-brand img { width: 49px; height: 49px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,.34); box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.map-brand span { display: grid; gap: 1px; }
.map-brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.14rem; letter-spacing: .01em; }
.map-brand small { color: rgba(255,255,255,.65); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.map-header-title { justify-self: center; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.76); font-size: .73rem; font-weight: 750; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #94d14a; box-shadow: 0 0 0 5px rgba(148,209,74,.14); }
.map-header-actions { display: flex; align-items: center; gap: 10px; }
.header-link { padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.19); color: white; text-decoration: none; font-size: .73rem; font-weight: 800; }
.header-link:hover { background: rgba(255,255,255,.1); }
.icon-button { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border: 0; border-radius: 999px; background: var(--cream); color: var(--forest-2); font-size: .72rem; font-weight: 850; box-shadow: 0 7px 20px rgba(0,0,0,.18); }
.icon-button svg { width: 18px; height: 18px; fill: currentColor; }

.map-stage { position: relative; height: 100%; padding-top: 76px; }
.map-canvas { position: absolute; inset: 76px 0 0 0; overflow: hidden; background: #0d2317; }
.map-layer { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.map-layer.active { opacity: 1; pointer-events: auto; }
.map-layer > gmp-map-3d, .map-layer > div, #map-2d { width: 100%; height: 100%; }
.map-loading { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; align-content: center; gap: 8px; color: white; background: radial-gradient(circle at 65% 25%, rgba(84,118,72,.65), transparent 28%), linear-gradient(145deg, #183e28, #0c2819 55%, #07170f); transition: opacity .35s ease, visibility .35s ease; }
.map-loading.is-hidden { opacity: 0; visibility: hidden; }
.alaska-loader { display: grid; place-items: center; width: 82px; height: 82px; border-radius: 44% 56% 60% 40%; border: 1px solid rgba(255,255,255,.34); background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.03)); font-family: Georgia, serif; font-size: 1.4rem; animation: float 2.2s ease-in-out infinite; box-shadow: 0 18px 45px rgba(0,0,0,.26); }
.map-loading strong { font-family: Georgia, serif; font-size: 1.45rem; }
.map-loading small { color: rgba(255,255,255,.68); }
@keyframes float { 50% { transform: translateY(-8px) rotate(2deg); } }

.control-panel {
    position: absolute;
    z-index: 40;
    top: 94px;
    left: 18px;
    bottom: 92px;
    width: min(390px, calc(100vw - 36px));
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 24px;
    background: rgba(255,253,248,.95);
    backdrop-filter: blur(20px) saturate(1.15);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.panel-handle { display: none; }
.panel-heading { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.panel-heading p { margin: 0 0 3px; color: var(--gold); font-size: .67rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.panel-heading h1 { margin: 0; color: var(--forest-2); font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; line-height: 1.05; }
.panel-close { display: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #edf1eb; color: var(--forest); font-size: 1.4rem; }

.search-box { position: relative; display: grid; grid-template-columns: 22px minmax(0,1fr) 28px; align-items: center; gap: 8px; margin-top: 18px; padding: 0 10px 0 13px; min-height: 48px; border: 1px solid rgba(31,73,44,.16); border-radius: 15px; background: white; box-shadow: 0 7px 18px rgba(24,55,34,.06); }
.search-box:focus-within { border-color: rgba(33,79,49,.55); box-shadow: 0 0 0 4px rgba(33,79,49,.09); }
.search-box svg { width: 20px; fill: var(--forest); }
.search-box input { min-width: 0; border: 0; outline: 0; background: transparent; color: #233328; font-size: .83rem; }
.search-box button { border: 0; background: transparent; color: #829087; font-size: 1.2rem; }
.place-suggestions { position: absolute; left: 20px; right: 20px; top: 129px; z-index: 5; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow-soft); }
.place-suggestions button { width: 100%; display: grid; gap: 2px; padding: 11px 13px; border: 0; border-bottom: 1px solid var(--line); background: white; text-align: left; }
.place-suggestions button:last-child { border-bottom: 0; }
.place-suggestions button:hover { background: #f4f6f1; }
.place-suggestions strong { color: var(--forest-2); font-size: .78rem; }
.place-suggestions small { color: var(--muted); font-size: .65rem; }
.quick-places { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.quick-places::-webkit-scrollbar { display: none; }
.quick-places button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(244,247,241,.8); color: var(--forest); font-size: .63rem; font-weight: 800; }
.quick-places button:hover { border-color: rgba(33,79,49,.35); background: #eef3eb; }

.filter-block { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.filter-title { display: flex; justify-content: space-between; align-items: center; }
.filter-title strong { color: var(--forest-2); font-size: .74rem; }
.filter-title button { border: 0; background: transparent; color: var(--gold); font-size: .64rem; font-weight: 850; }
.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; margin-top: 10px; }
.status-grid label { position: relative; display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.66); color: #405048; font-size: .68rem; font-weight: 750; }
.status-grid input { position: absolute; opacity: 0; }
.status-grid label:has(input:not(:checked)) { opacity: .43; filter: grayscale(1); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(0,0,0,.04); }
.status-dot.native { background: #5f8f3e; }
.status-dot.invasive { background: #c14d3a; }
.status-dot.nonnative { background: #c2893d; }
.status-dot.unusual { background: #6a72a9; }
.compact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.compact-grid label { display: grid; gap: 5px; }
.compact-grid span { color: var(--muted); font-size: .61rem; font-weight: 800; }
.compact-grid input { min-width: 0; padding: 8px 9px; border: 1px solid var(--line); border-radius: 10px; background: white; color: #33443a; font-size: .68rem; }
.visibility-filter { display: grid; gap: 10px; }
.switch-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 13px; }
.switch-row > span { display: grid; gap: 2px; }
.switch-row strong { color: #35473c; font-size: .7rem; }
.switch-row small { color: var(--muted); font-size: .58rem; }
.switch-row input { position: absolute; opacity: 0; }
.switch-row i { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #cfd7d1; transition: .2s ease; }
.switch-row i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,.18); transition: .2s ease; }
.switch-row input:checked + i { background: var(--forest); }
.switch-row input:checked + i::after { transform: translateX(16px); }

.panel-results-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.panel-results-head > div { display: grid; gap: 2px; }
.panel-results-head strong { color: var(--forest-2); font-size: .77rem; }
.panel-results-head small { color: var(--muted); font-size: .6rem; }
.panel-results-head button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.panel-results-head svg { width: 18px; margin: auto; fill: var(--forest); }
.observation-list { flex: 1 1 auto; min-height: 0; margin: 10px -8px -8px; padding: 0 8px 8px; overflow: auto; overscroll-behavior: contain; }
.obs-list-item { width: 100%; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px; border: 0; border-bottom: 1px solid rgba(31,73,44,.09); background: transparent; text-align: left; border-radius: 12px; }
.obs-list-item:hover, .obs-list-item.active { background: #eef3eb; }
.obs-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: white; font-family: Georgia, serif; font-size: .95rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.obs-icon.native { background: linear-gradient(145deg, #6d994d, #3f6d34); }
.obs-icon.invasive { background: linear-gradient(145deg, #d0644e, #9d3629); }
.obs-icon.nonnative { background: linear-gradient(145deg, #ce9a4d, #956124); }
.obs-icon.unusual { background: linear-gradient(145deg, #7d83b8, #565d94); }
.obs-copy { min-width: 0; display: grid; gap: 2px; }
.obs-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #2c4033; font-size: .72rem; }
.obs-copy em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-family: Georgia, serif; font-size: .64rem; }
.obs-copy small { color: #87928b; font-size: .56rem; }
.obs-privacy { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: rgba(33,79,49,.08); color: var(--forest); }
.obs-privacy svg { width: 13px; fill: currentColor; }
.empty-list { padding: 24px 16px; text-align: center; color: var(--muted); font-size: .7rem; line-height: 1.5; }

.map-tools { position: absolute; z-index: 32; right: 18px; top: 94px; display: grid; gap: 8px; }
.map-tools button { display: grid; grid-template-columns: 30px auto; align-items: center; gap: 8px; min-width: 112px; padding: 9px 12px 9px 8px; border: 1px solid rgba(255,255,255,.32); border-radius: 14px; background: rgba(255,253,248,.93); color: var(--forest-2); box-shadow: var(--shadow-soft); backdrop-filter: blur(14px); font-size: .65rem; font-weight: 850; }
.map-tools button:hover { background: white; transform: translateY(-1px); }
.map-tools svg { width: 18px; height: 18px; margin: auto; fill: var(--forest); }
.tool-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--forest); color: white; font-size: .65rem; letter-spacing: -.03em; }
.filter-fab { display: none; }

.detail-card { position: absolute; z-index: 45; right: 18px; bottom: 98px; width: min(420px, calc(100vw - 36px)); max-height: min(620px, calc(100vh - 200px)); overflow: auto; border: 1px solid rgba(255,255,255,.38); border-radius: 24px; background: rgba(255,253,248,.96); backdrop-filter: blur(20px); box-shadow: var(--shadow); }
.detail-close { position: sticky; float: right; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; margin: 12px 12px -46px 0; border: 0; border-radius: 50%; background: rgba(12,45,27,.82); color: white; font-size: 1.35rem; }
.detail-hero { min-height: 160px; padding: 26px 54px 22px 22px; color: white; background: linear-gradient(145deg, #204e31, #0f2e1d); }
.detail-hero.invasive { background: linear-gradient(145deg, #8e3327, #4c1a14); }
.detail-hero.nonnative { background: linear-gradient(145deg, #8f6225, #4d3414); }
.detail-hero.unusual { background: linear-gradient(145deg, #525b92, #2e335b); }
.detail-kicker { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.68); font-size: .62rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.detail-hero h2 { margin: 16px 0 4px; font-family: Georgia, serif; font-size: 2rem; line-height: 1.05; }
.detail-hero em { color: rgba(255,255,255,.75); font-family: Georgia, serif; font-size: .84rem; }
.detail-body { padding: 20px 22px 24px; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-badges span { padding: 6px 9px; border-radius: 999px; background: #eef2eb; color: var(--forest); font-size: .62rem; font-weight: 850; }
.detail-meta { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 16px; }
.detail-meta div { padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: #faf9f4; }
.detail-meta small { display: block; color: var(--muted); font-size: .57rem; }
.detail-meta strong { display: block; margin-top: 3px; color: #304336; font-size: .69rem; }
.detail-notes { margin: 16px 0 0; color: #55635b; font-size: .72rem; line-height: 1.55; }
.detail-privacy { display: flex; gap: 10px; margin-top: 16px; padding: 12px; border-radius: 12px; background: #edf3ea; color: #425347; font-size: .66rem; line-height: 1.45; }
.detail-privacy svg { flex: 0 0 auto; width: 18px; height: 18px; fill: var(--forest); }
.detail-photo { width: calc(100% + 44px); max-height: 260px; margin: -20px -22px 18px; object-fit: cover; }

.map-bottom-bar { position: absolute; z-index: 38; left: 50%; bottom: 18px; transform: translateX(-50%); display: grid; grid-template-columns: 110px 150px 110px; align-items: end; min-height: 66px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.35); border-radius: 22px; background: rgba(255,253,248,.94); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.map-bottom-bar button { display: grid; justify-items: center; gap: 3px; border: 0; background: transparent; color: #718078; font-size: .58rem; font-weight: 850; }
.map-bottom-bar button > svg { width: 20px; height: 20px; fill: currentColor; }
.map-bottom-bar button.active { color: var(--forest); }
.map-bottom-bar .add-main { align-self: center; margin-top: -30px; color: var(--forest); }
.map-bottom-bar .add-main > span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(145deg, #2c603a, #173d26); color: white; box-shadow: 0 12px 28px rgba(18,60,32,.32), inset 0 0 0 1px rgba(255,255,255,.18); }
.map-bottom-bar .add-main svg { width: 27px; height: 27px; fill: currentColor; }
.map-bottom-bar .add-main strong { font-size: .62rem; }

.add-drawer, .account-modal { position: fixed; inset: 0; z-index: 150; }
.drawer-backdrop, .modal-backdrop { position: absolute; inset: 0; background: rgba(5,20,12,.57); backdrop-filter: blur(3px); }
.drawer-card { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); display: flex; flex-direction: column; margin: 0; background: var(--paper); box-shadow: -18px 0 70px rgba(0,0,0,.26); animation: slideIn .26s ease-out; }
@keyframes slideIn { from { transform: translateX(100%); } }
.drawer-handle { display: none; }
.drawer-heading { display: flex; justify-content: space-between; gap: 18px; padding: 28px 28px 20px; border-bottom: 1px solid var(--line); }
.drawer-heading p, .modal-kicker { margin: 0 0 4px; color: var(--gold); font-size: .65rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.drawer-heading h2, .account-card h2 { margin: 0; color: var(--forest-2); font-family: Georgia, serif; font-size: 2rem; line-height: 1.05; }
.drawer-heading > button, .modal-close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #edf1eb; color: var(--forest); font-size: 1.5rem; }
.drawer-scroll { flex: 1 1 auto; overflow: auto; padding: 22px 28px; }
.coordinate-card { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 15px; border: 1px solid rgba(33,79,49,.2); border-radius: 15px; background: linear-gradient(145deg, #edf4e9, #f8f8f1); }
.coordinate-card > div { display: grid; gap: 3px; }
.coordinate-card strong { color: var(--forest-2); font-size: .76rem; }
.coordinate-card small { color: var(--muted); font-size: .63rem; }
.coordinate-card button { flex: 0 0 auto; padding: 9px 11px; border: 0; border-radius: 10px; background: var(--forest); color: white; font-size: .66rem; font-weight: 850; }
.form-grid { display: grid; gap: 12px; margin-top: 16px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-grid label, .notes-field { display: grid; gap: 6px; color: #4f5f55; font-size: .66rem; font-weight: 800; }
.form-grid input, .form-grid select, .notes-field textarea { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: white; color: #27392e; outline: 0; }
.form-grid input:focus, .form-grid select:focus, .notes-field textarea:focus { border-color: rgba(33,79,49,.5); box-shadow: 0 0 0 4px rgba(33,79,49,.08); }
.privacy-picker { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; border: 0; }
.privacy-picker legend { margin-bottom: 7px; color: var(--forest-2); font-size: .74rem; font-weight: 900; }
.privacy-picker label { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; min-height: 60px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.privacy-picker label:has(input:checked) { border-color: rgba(33,79,49,.48); background: #eef4eb; box-shadow: 0 0 0 3px rgba(33,79,49,.06); }
.privacy-picker input { width: 18px; height: 18px; accent-color: var(--forest); }
.privacy-picker span { display: grid; gap: 2px; }
.privacy-picker strong { color: #304337; font-size: .72rem; }
.privacy-picker small { color: var(--muted); font-size: .6rem; }
.privacy-picker b { padding: 5px 7px; border-radius: 999px; background: var(--forest); color: white; font-size: .54rem; }
.radius-field { display: grid; gap: 9px; margin-top: 16px; }
.radius-field > span { display: flex; justify-content: space-between; color: #405146; font-size: .68rem; }
.radius-field output { color: var(--gold); font-weight: 900; }
.radius-field input { width: 100%; accent-color: var(--forest); }
.notes-field { margin-top: 16px; }
.notes-field textarea { resize: vertical; }
.privacy-explainer { display: flex; gap: 11px; margin-top: 16px; padding: 13px; border-radius: 13px; background: #f3eee2; color: #685d48; font-size: .64rem; line-height: 1.5; }
.privacy-explainer svg { flex: 0 0 auto; width: 21px; height: 21px; fill: #8c6a32; }
.privacy-explainer p { margin: 0; }
.drawer-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 16px 28px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,253,248,.96); }
.primary, .secondary { min-height: 45px; padding: 11px 16px; border-radius: 12px; font-weight: 900; }
.primary { border: 0; background: var(--forest); color: white; box-shadow: 0 8px 18px rgba(33,79,49,.2); }
.primary:disabled { opacity: .55; cursor: wait; }
.secondary { border: 1px solid var(--line); background: white; color: var(--forest); }
.secondary.full { width: 100%; }

.account-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(500px, calc(100% - 28px)); padding: 30px; border: 1px solid rgba(255,255,255,.4); border-radius: 24px; background: var(--paper); box-shadow: 0 24px 90px rgba(0,0,0,.34); }
.modal-close { position: absolute; top: 18px; right: 18px; }
.modal-intro { margin: 14px 0 0; color: var(--muted); font-size: .73rem; line-height: 1.6; }
.account-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 20px; padding: 4px; border-radius: 12px; background: #e9eee7; }
.account-tabs button { padding: 9px; border: 0; border-radius: 9px; background: transparent; color: #718078; font-size: .69rem; font-weight: 850; }
.account-tabs button.active { background: white; color: var(--forest); box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.account-form { display: none; gap: 12px; margin-top: 16px; }
.account-form.active { display: grid; }
.account-form label { display: grid; gap: 6px; color: #45564b; font-size: .68rem; font-weight: 800; }
.account-form input { padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.database-note { margin-top: 14px; padding: 12px; border-radius: 12px; background: #f3ead8; color: #705933; font-size: .65rem; line-height: 1.5; }

.toast { position: fixed; left: 50%; bottom: 102px; z-index: 220; max-width: min(520px, calc(100% - 28px)); transform: translate(-50%, 14px); opacity: 0; pointer-events: none; padding: 12px 16px; border-radius: 999px; background: rgba(10,44,25,.94); color: white; box-shadow: var(--shadow-soft); font-size: .72rem; font-weight: 800; text-align: center; transition: .22s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
    .map-header { height: 68px; padding: 0 12px; grid-template-columns: 1fr auto; }
    .map-stage { padding-top: 68px; }
    .map-canvas { inset: 68px 0 0; }
    .map-brand { min-width: 0; }
    .map-brand img { width: 44px; height: 44px; }
    .map-brand strong { font-size: 1rem; }
    .map-brand small { font-size: .56rem; }
    .map-header-title, .header-link { display: none; }
    .icon-button span { display: none; }
    .icon-button { width: 40px; height: 40px; padding: 0; justify-content: center; }
    .control-panel { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 78svh; border-radius: 24px 24px 0 0; padding: 12px 16px calc(90px + env(safe-area-inset-bottom)); transform: translateY(calc(100% + 20px)); transition: transform .26s ease; }
    .control-panel.open { transform: translateY(0); }
    .panel-handle { display: block; width: 44px; height: 4px; margin: 0 auto 11px; border-radius: 99px; background: #ccd4ce; }
    .panel-close { display: grid; place-items: center; }
    .place-suggestions { top: 121px; left: 16px; right: 16px; }
    .map-tools { right: 10px; top: 82px; }
    .map-tools button { min-width: 0; width: 46px; height: 46px; grid-template-columns: 1fr; padding: 7px; }
    .map-tools button > span:last-child { display: none; }
    .filter-fab { position: absolute; z-index: 35; left: 12px; top: 82px; display: flex; align-items: center; gap: 8px; padding: 11px 13px; border: 1px solid rgba(255,255,255,.34); border-radius: 14px; background: rgba(255,253,248,.94); color: var(--forest); box-shadow: var(--shadow-soft); font-size: .67rem; font-weight: 850; }
    .filter-fab svg { width: 18px; fill: currentColor; }
    .detail-card { left: 12px; right: 12px; bottom: 88px; width: auto; max-height: 52svh; }
    .map-bottom-bar { left: 10px; right: 10px; bottom: 10px; transform: none; width: auto; grid-template-columns: 1fr 1fr 1fr; }
    .drawer-card { top: auto; width: 100%; height: min(88svh, 820px); border-radius: 24px 24px 0 0; animation: slideUp .26s ease-out; }
    @keyframes slideUp { from { transform: translateY(100%); } }
    .drawer-handle { display: block; width: 44px; height: 4px; margin: 10px auto 0; border-radius: 999px; background: #ccd4ce; }
    .drawer-heading { padding: 18px 18px 14px; }
    .drawer-heading h2 { font-size: 1.55rem; }
    .drawer-scroll { padding: 16px 18px; }
    .drawer-actions { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
}

@media (max-width: 560px) {
    .map-brand span small { display: none; }
    .map-header { grid-template-columns: 1fr auto; }
    .compact-grid, .form-grid.two { grid-template-columns: 1fr; }
    .status-grid { grid-template-columns: 1fr 1fr; }
    .map-bottom-bar { grid-template-columns: 1fr 1.15fr 1fr; padding-inline: 6px; }
    .map-bottom-bar .add-main { margin-top: -27px; }
    .detail-meta { grid-template-columns: 1fr; }
    .account-card { padding: 26px 20px; }
    .account-card h2 { font-size: 1.65rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* v1.3 member dashboard */
.account-card { width: min(980px, calc(100% - 28px)); max-height: min(860px, calc(100dvh - 28px)); overflow: hidden; padding: 0; }
#account-signed-out { padding: 30px; }
#account-signed-in { min-height: 620px; }
.member-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 24px 28px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #f8f5e9, #edf3eb); }
.member-avatar { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--forest); color: white; font-family: Georgia, serif; font-size: 1.1rem; font-weight: 900; box-shadow: 0 10px 24px rgba(18,66,39,.18); }
.member-identity h2 { margin: 2px 0 4px; font-size: 1.7rem; }
.member-identity > p:last-child { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; color: var(--muted); font-size: .7rem; font-weight: 750; }
.secondary.compact { width: auto; min-width: 84px; padding: 9px 13px; }
.member-tabs { display: flex; gap: 4px; padding: 10px 22px 0; border-bottom: 1px solid var(--line); background: white; overflow-x: auto; scrollbar-width: none; }
.member-tabs::-webkit-scrollbar { display: none; }
.member-tabs button { flex: 0 0 auto; padding: 11px 15px 12px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #6f7d73; font-size: .7rem; font-weight: 900; white-space: nowrap; }
.member-tabs button.active { border-bottom-color: var(--gold); color: var(--forest); }
.member-content { height: min(670px, calc(100dvh - 210px)); min-height: 440px; overflow: auto; background: #f7f8f4; }
.member-panel { display: none; padding: 22px 28px 34px; }
.member-panel.active { display: block; }
.member-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.member-stats article { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 6px 18px rgba(24,61,39,.05); }
.member-stats strong { display: block; color: var(--forest-2); font-family: Georgia, serif; font-size: 1.7rem; line-height: 1; }
.member-stats span { display: block; margin-top: 7px; color: var(--muted); font-size: .66rem; font-weight: 850; }
.member-quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.member-action { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 10px; align-items: center; min-height: 88px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: white; color: var(--forest-2); text-align: left; text-decoration: none; box-shadow: 0 6px 18px rgba(24,61,39,.04); }
.member-action > span { grid-row: 1 / 3; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #edf3eb; color: var(--forest); font-size: 1.15rem; font-weight: 900; }
.member-action strong { font-size: .76rem; }
.member-action small { color: var(--muted); font-size: .62rem; line-height: 1.35; }
.member-action.primary-card { border-color: rgba(212,164,65,.55); background: linear-gradient(135deg, #fffaf0, #f7f0d8); }
.member-section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin: 24px 0 12px; }
.member-section-head p { margin: 0 0 3px; color: var(--gold); font-size: .61rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.member-section-head h3 { margin: 0; color: var(--forest-2); font-family: Georgia, serif; font-size: 1.25rem; }
.member-section-head button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--forest); font-size: .65rem; font-weight: 850; }
.member-recent, .member-observation-list { display: grid; gap: 9px; }
.member-observation-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.member-observation-thumb { display: grid; place-items: center; width: 46px; height: 46px; overflow: hidden; border-radius: 12px; background: #e8efe8; color: var(--forest); font-weight: 900; }
.member-observation-thumb img { width: 100%; height: 100%; object-fit: cover; }
.member-observation-copy { min-width: 0; }
.member-observation-copy strong, .member-observation-copy em, .member-observation-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-observation-copy strong { color: var(--forest-2); font-size: .73rem; }
.member-observation-copy em { margin-top: 2px; color: #597064; font-size: .63rem; }
.member-observation-copy small { margin-top: 4px; color: var(--muted); font-size: .59rem; }
.member-observation-actions { display: flex; gap: 6px; align-items: center; }
.member-observation-actions select { max-width: 142px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: #f8faf7; color: var(--forest); font-size: .61rem; font-weight: 800; }
.member-observation-actions button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--forest); font-size: .61rem; font-weight: 850; }
.member-observation-actions button.danger { color: #9e342d; }
.member-empty { margin: 0; padding: 24px; border: 1px dashed #bdcbbf; border-radius: 14px; color: var(--muted); background: rgba(255,255,255,.58); text-align: center; font-size: .68rem; line-height: 1.5; }
.member-data-tools { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center; margin-top: 16px; padding: 14px 15px; border-radius: 14px; background: var(--forest); color: white; }
.member-data-tools strong, .member-data-tools small { display: block; }
.member-data-tools strong { font-size: .72rem; }
.member-data-tools small { margin-top: 3px; color: rgba(255,255,255,.7); font-size: .59rem; }
.member-data-tools a { padding: 8px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; color: white; font-size: .62rem; font-weight: 850; text-decoration: none; }
.member-search { display: grid; gap: 6px; margin-bottom: 12px; color: #45564b; font-size: .66rem; font-weight: 850; }
.member-search input { padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.member-settings-form { display: grid; gap: 14px; }
.member-settings-form label { display: grid; gap: 6px; color: #45564b; font-size: .68rem; font-weight: 800; }
.member-settings-form input[type="text"], .member-settings-form select, .member-settings-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: white; color: #243d2e; }
.profile-radius > span { display: flex; justify-content: space-between; }
.profile-radius input { width: 100%; accent-color: var(--forest); }
.profile-public { grid-template-columns: auto 1fr !important; align-items: start; gap: 10px !important; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.profile-public input { margin-top: 3px; accent-color: var(--forest); }
.profile-public strong, .profile-public small { display: block; }
.profile-public small { margin-top: 3px; color: var(--muted); font-size: .6rem; line-height: 1.45; }
.member-loading { opacity: .55; pointer-events: none; }

@media (max-width: 760px) {
    .account-card { left: 0; top: auto; bottom: 0; transform: none; width: 100%; max-height: 94dvh; border-radius: 22px 22px 0 0; }
    #account-signed-in { min-height: 0; }
    .member-hero { grid-template-columns: auto 1fr; padding: 19px 18px 14px; }
    .member-hero .secondary.compact { grid-column: 1 / -1; width: 100%; }
    .member-tabs { padding-left: 10px; padding-right: 10px; }
    .member-content { height: calc(94dvh - 190px); min-height: 360px; }
    .member-panel { padding: 18px 14px 28px; }
    .member-stats { grid-template-columns: repeat(2, 1fr); }
    .member-quick-actions { grid-template-columns: 1fr; }
    .member-observation-card { grid-template-columns: 42px minmax(0, 1fr); }
    .member-observation-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto auto auto; }
    .member-observation-actions select { max-width: none; }
    .member-data-tools { grid-template-columns: 1fr 1fr; }
    .member-data-tools > div { grid-column: 1 / -1; }
    .member-data-tools a { text-align: center; }
}

/* v1.4 verification and moderation */
.field-help { display:block; margin-top:5px; color:var(--muted); font-size:.58rem; font-weight:650; line-height:1.35; }
.verification-explainer { margin-top:12px; padding:13px 14px; border:1px solid rgba(189,131,54,.35); border-radius:13px; background:#fff9eb; color:#4e4b34; }
.verification-explainer strong { display:block; color:#7b5a20; font-size:.7rem; }
.verification-explainer p { margin:4px 0 0; font-size:.62rem; line-height:1.5; }
.verification-badge { display:inline-flex !important; width:max-content; margin-top:6px; padding:4px 8px; border-radius:999px; font-style:normal; font-size:.56rem !important; font-weight:900; letter-spacing:.02em; white-space:nowrap !important; }
.verification-badge.unreviewed { background:#fff2c9; color:#7b5a20; }
.verification-badge.community { background:#e6f3e5; color:#245c32; }
.verification-badge.expert { background:#dfeef7; color:#225979; }
.verification-badge.rejected { background:#f8e4e1; color:#92382f; }
.review-note, .detail-review-note { color:#8a4038 !important; white-space:normal !important; line-height:1.4; }
#moderation-count:not(:empty) { display:inline-grid; place-items:center; min-width:20px; height:20px; margin-left:5px; padding:0 6px; border-radius:999px; background:#b64b39; color:#fff; font-size:.58rem; }
.moderation-note { margin:0 0 14px; padding:13px 14px; border:1px solid #d7e1d7; border-radius:13px; background:#edf4ec; color:#476052; font-size:.64rem; line-height:1.5; }
.moderation-list { display:grid; gap:12px; }
.moderation-card { display:grid; grid-template-columns:140px minmax(0,1fr); gap:14px; padding:14px; border:1px solid var(--line); border-radius:16px; background:#fff; box-shadow:0 8px 24px rgba(24,61,39,.06); }
.moderation-photo { min-height:125px; overflow:hidden; border-radius:12px; background:#e9efe8; display:grid; place-items:center; }
.moderation-photo img { width:100%; height:100%; min-height:125px; object-fit:cover; }
.moderation-no-photo { color:var(--muted); font-size:.65rem; font-weight:800; }
.moderation-copy { min-width:0; }
.moderation-title { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.moderation-title strong, .moderation-title em { display:block; }
.moderation-title strong { color:var(--forest-2); font-size:.82rem; }
.moderation-title em { margin-top:3px; color:#617468; font-size:.65rem; }
.moderation-copy > p { margin:7px 0 0; color:var(--muted); font-size:.61rem; line-height:1.45; }
.moderation-copy blockquote { margin:10px 0; padding:10px 12px; border-left:3px solid var(--gold); background:#faf7ee; color:#4e5c53; font-size:.63rem; line-height:1.5; }
.moderation-copy textarea { width:100%; margin-top:10px; padding:10px 11px; border:1px solid var(--line); border-radius:10px; background:#fbfcfa; color:#243d2e; resize:vertical; }
.moderation-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.moderation-actions button { padding:9px 12px; border:1px solid #b8c9ba; border-radius:10px; background:#edf5ec; color:var(--forest); font-size:.62rem; font-weight:900; }
.moderation-actions button:nth-child(2) { background:#e8f1f7; color:#255b79; border-color:#bfd2df; }
.moderation-actions button.danger { background:#fff1ef; color:#973a31; border-color:#e2bdb8; }

@media (max-width:760px) {
    .moderation-card { grid-template-columns:1fr; }
    .moderation-photo { max-height:220px; }
    .moderation-actions { display:grid; grid-template-columns:1fr 1fr; }
    .moderation-actions button.danger { grid-column:1 / -1; }
}
