:root {
    font-family: 'Segoe UI', sans-serif;
    color: #23332b;
    background: #f7f8f5;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    --ink: #20342a;
    --muted: #758179;
    --line: #e5e9e3;
    --green: #2f6045;
    --green-dark: #1d392b;
    --green-light: #eef4ed;
    --rust: #b65335;
    --paper: #fbfcfa;
}

html, body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
    background: #f7f8f5;
}

body, button, input, select {
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
}

button, a, select {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

button:focus-visible, a:focus-visible, select:focus-visible {
    outline: 3px solid #9bb9a1;
    outline-offset: 3px;
}

h1, h2, h3, .brand-name {
    font-family: 'Segoe UI', sans-serif;
}

.page {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 500;
    display: flex;
    flex-direction: column;
    width: 256px;
    padding: 28px 18px 20px;
    color: #e7eee8;
    background: var(--green-dark);
}

main {
    width: calc(100% - 256px);
    min-height: 100vh;
    margin-left: 256px;
}

.content {
    min-height: 100vh;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1px 9px 35px;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.19);
    border-radius: 12px;
    color: #f5f7f2;
    background: rgba(255,255,255,.08);
    font-family: 'Segoe UI', sans-serif;
    font-size: 19px;
    font-weight: 800;
}

.brand-copy, .account-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.brand-name {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.3px;
}

.brand-tagline {
    margin-top: 2px;
    color: #9eb4a3;
    font-size: 10px;
    letter-spacing: .15px;
}

.primary-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-section-label {
    margin: 0 11px 9px;
    color: #8ca392;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.15px;
}

.primary-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #c5d2c8;
    font-size: 12px;
    font-weight: 500;
    transition: color .16s ease, background .16s ease;
}

.primary-nav .nav-link:hover, .primary-nav .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.095);
}

.primary-nav .nav-link.active {
    border-color: rgba(255,255,255,.08);
}

.nav-symbol {
    width: 18px;
    color: #a7c3ad;
    font-size: 20px;
    line-height: 1;
    text-align: center;
}

.sidebar-bottom {
    margin-top: auto;
}

.phase-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 7px 17px;
    color: #b8c8bc;
    font-size: 10px;
}

.phase-chip span, .landing-status i, .live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8bbd8c;
    box-shadow: 0 0 0 3px rgba(139,189,140,.13);
}

.account-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 7px 0;
    border-top: 1px solid rgba(255,255,255,.12);
}

.account-avatar, .preview-avatar {
    display: grid;
    width: 33px;
    height: 33px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #e8f0e9;
    background: #446c52;
    font-size: 10px;
    font-weight: 700;
}

.account-copy {
    flex: 1;
}

.account-name {
    overflow: hidden;
    max-width: 135px;
    color: #f0f3f0;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-copy a {
    margin-top: 3px;
    color: #9fb3a4;
    font-size: 9px;
}

.logout-button {
    border: 0;
    color: #b5c5b9;
    background: transparent;
    font-size: 17px;
    transform: rotate(45deg);
}

.sidebar-login {
    display: flex;
    justify-content: space-between;
    padding: 13px 10px 0;
    border-top: 1px solid rgba(255,255,255,.12);
    color: #eaf1eb;
    font-size: 11px;
}

.landing-page {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    overflow: hidden;
    padding: 33px clamp(28px, 5vw, 76px) 25px;
    background:
        radial-gradient(ellipse at 87% 48%, rgba(216,228,214,.34), transparent 35%),
        #f8f9f6;
}

.landing-topline, .landing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #858f87;
    font-size: 10px;
    letter-spacing: .2px;
}

.landing-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #526e59;
    font-size: 10px;
    font-weight: 600;
}

.landing-status i {
    display: inline-block;
    width: 6px;
    height: 6px;
    box-shadow: none;
}

.landing-copy {
    position: relative;
    z-index: 1;
    width: min(52%, 570px);
    margin: auto 0;
    padding: 58px 0 66px;
}

.eyebrow {
    margin: 0 0 14px;
    color: #768a79;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.landing-copy h1 {
    margin: 0;
    color: #263c30;
    font-size: clamp(36px, 4.6vw, 61px);
    font-weight: 600;
    letter-spacing: -2.9px;
    line-height: 1.1;
}

.landing-copy h1 span {
    color: #78927d;
    font-weight: 500;
}

.landing-description {
    max-width: 445px;
    margin: 24px 0 29px;
    color: #77827a;
    font-size: 13px;
    line-height: 1.85;
}

.button {
    display: inline-flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    gap: 19px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background .16s ease, transform .16s ease;
}

.button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.button-primary {
    color: white;
    background: var(--green);
}

.button-primary:hover:not(:disabled) {
    color: white;
    background: #244e38;
}

.button-primary:disabled {
    cursor: not-allowed;
    opacity: .48;
}

.landing-cta span {
    font-size: 16px;
    font-weight: 400;
}

.landing-preview {
    position: absolute;
    top: 50%;
    right: clamp(26px, 5vw, 75px);
    width: min(46%, 548px);
    transform: translateY(-47%);
}

.preview-map {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.48;
    border: 1px solid #dfe6dc;
    border-radius: 13px;
    background:
        linear-gradient(30deg, transparent 49.6%, rgba(255,255,255,.8) 49.9%, rgba(255,255,255,.8) 50.2%, transparent 50.5%),
        linear-gradient(143deg, transparent 49.7%, rgba(255,255,255,.65) 49.9%, rgba(255,255,255,.65) 50.2%, transparent 50.4%),
        radial-gradient(ellipse at 60% 48%, #e9eee4 0, #e1e9dd 40%, #d7e2d5 100%);
    box-shadow: 0 20px 60px rgba(42,65,47,.1);
}

.preview-map svg {
    width: 100%;
    height: 100%;
}

.map-contour {
    fill: none;
    stroke: rgba(255,255,255,.7);
    stroke-width: 2;
}

.map-boundary {
    fill: rgba(70,112,78,.17);
    stroke: #52795a;
    stroke-dasharray: 1 0;
    stroke-linejoin: round;
    stroke-width: 2.4;
}

.map-point {
    fill: #fff;
    stroke: #507857;
    stroke-width: 3;
}

.preview-map text {
    fill: #36573e;
    font-family: 'Segoe UI', sans-serif;
    font-size: 8px;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: central;
}

.preview-label, .preview-scale {
    position: absolute;
    left: 17px;
    display: inline-block;
    padding: 7px 9px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 5px;
    color: #516153;
    background: rgba(255,255,255,.77);
    font-size: 9px;
    backdrop-filter: blur(7px);
}

.preview-label { top: 16px; }
.preview-scale { bottom: 14px; color: #77847a; font-size: 8px; }

.preview-card {
    position: relative;
    z-index: 1;
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 9px;
    padding: 11px 13px;
    border: 1px solid #edf0ea;
    border-radius: 9px;
    color: #5a685e;
    background: #fff;
    box-shadow: 0 10px 35px rgba(42,65,47,.08);
    font-size: 9px;
}

.preview-card strong {
    margin-left: 5px;
    color: #354d3a;
    font-size: 9px;
    font-weight: 600;
}

.preview-card-top { margin: 0 0 -18px 21px; }
.preview-card-bottom { margin: -20px 0 0 auto; }
.preview-dot { width: 7px; height: 7px; border-radius: 50%; background: #57825e; }
.preview-avatar { width: 23px; height: 23px; color: #fff; font-size: 7px; }

.landing-footer {
    padding-top: 17px;
    border-top: 1px solid #e8ece6;
    font-size: 9px;
}

.footer-divider { padding: 0 5px; color: #b3bdb5; }

.field-page {
    min-height: 100vh;
    padding: 30px clamp(20px, 3.2vw, 48px) 38px;
}

.field-header {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.field-header > * { min-width: 0; max-width: 100%; }
.field-header > div { overflow-wrap: anywhere; }

.field-header .eyebrow {
    margin-bottom: 6px;
    font-size: 8px;
}

.field-header .eyebrow span { padding: 0 5px; color: #b5bdb5; }

.field-header h1 {
    margin: 0;
    color: var(--ink);
    font-size: 23px;
    font-weight: 650;
    letter-spacing: -.7px;
}

.workspace-badge {
    overflow-wrap: anywhere;
    padding: 8px 11px;
    border: 1px solid #e2e8e1;
    border-radius: 6px;
    color: #58685d;
    background: #fff;
    font-size: 10px;
}

.workspace-picker {
    display: flex;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #77827a;
    font-size: 10px;
}

.workspace-picker select {
    min-height: 44px;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 150px;
    padding: 8px 28px 8px 10px;
    border: 1px solid #e2e8e1;
    border-radius: 6px;
    color: #334438;
    background: white;
    font-size: 10px;
}

.map-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 286px;
    gap: 16px;
    align-items: stretch;
}

.map-shell, .boundary-panel {
    overflow: hidden;
    border: 1px solid #e4e9e2;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 24px rgba(29,57,43,.035);
}

.map-shell {
    display: flex;
    min-height: min(72vh, 690px);
    flex-direction: column;
}

.map-toolbar {
    display: flex;
    min-height: 45px;
    align-items: center;
    justify-content: space-between;
    padding: 0 13px;
    border-bottom: 1px solid #edf0eb;
}

.map-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #718076;
    font-size: 9px;
}

.live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    box-shadow: none;
}

.map-actions { display: flex; gap: 6px; }

.map-icon-button {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border: 1px solid #e6ebe5;
    border-radius: 6px;
    color: #586a5d;
    background: #fff;
    font-size: 16px;
    cursor: pointer;
}

.map-icon-button:hover:not(:disabled) { background: #f1f5f0; }
.map-icon-button:disabled { opacity: .45; cursor: default; }

.field-map {
    z-index: 0;
    min-height: 420px;
    flex: 1;
    background: #e6ebdf;
}

.map-legend {
    display: flex;
    min-height: 39px;
    align-items: center;
    gap: 16px;
    padding: 0 13px;
    color: #748077;
    font-size: 8px;
}

.map-legend span:not(.map-attribution-note) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-marker { width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: #b65335; box-shadow: 0 0 0 1px #b65335; }
.legend-line { width: 13px; border-top: 2px solid #b65335; }
.map-attribution-note { margin-left: auto; color: #98a29a; }

.boundary-marker-shell { border: 0; background: transparent; }

.facility-map-marker-shell { border: 0; background: transparent; }

.facility-map-marker {
    position: relative;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--facility-marker-color, #2f6045);
    box-shadow: 0 2px 9px rgba(20,35,25,.45);
}

.facility-map-marker svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.facility-highstand { --facility-marker-color: #8b4513; }
.facility-feeding { --facility-marker-color: #b77900; }
.facility-baiting { --facility-marker-color: #68727b; }
.facility-camera { --facility-marker-color: #29333d; }
.facility-fox-den { --facility-marker-color: #a0522d; }
.facility-other { --facility-marker-color: #2f6045; }
.event-harvest { --facility-marker-color: #dc2626; }
.event-wildloss { --facility-marker-color: #6b526d; }
.event-sighting { --facility-marker-color: #eab308; }
.event-sighting svg { stroke: #23332b; }
.sighting-shootable { position: absolute; right: -7px; bottom: -7px; display: grid; width: 18px; height: 18px; place-items: center; border: 1px solid white; border-radius: 50%; background: #b91c1c; }
.sighting-shootable svg { width: 14px; height: 14px; stroke: white; stroke-width: 2; }

.boundary-marker {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: var(--rust);
    box-shadow: 0 2px 9px rgba(40,55,43,.3);
    font-family: 'Segoe UI', sans-serif;
    font-size: 10px;
    font-weight: 700;
}

.boundary-panel {
    display: flex;
    min-height: min(72vh, 690px);
    flex-direction: column;
    padding: 18px 17px 14px;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-heading .eyebrow { margin-bottom: 4px; font-size: 8px; }
.panel-heading h2 { margin: 0; color: var(--ink); font-size: 16px; font-weight: 650; letter-spacing: -.3px; }

.point-count {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: #44654b;
    background: #edf4ed;
    font-size: 10px;
    font-weight: 700;
}

.panel-description {
    margin: 14px 0 20px;
    color: #77827a;
    font-size: 10px;
    line-height: 1.65;
}

.points-empty {
    display: flex;
    min-height: 130px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed #dfe6dd;
    border-radius: 7px;
    color: #9aa59b;
    text-align: center;
}

.points-empty span { font-size: 22px; }
.points-empty p { max-width: 160px; margin: 9px 0 0; font-size: 9px; line-height: 1.55; }

.point-list {
    display: flex;
    max-height: 340px;
    flex-direction: column;
    gap: 3px;
    overflow: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.point-list li {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 9px;
    padding: 0 3px;
    border-bottom: 1px solid #f0f2ef;
}

.point-number {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--rust);
    font-size: 8px;
    font-weight: 700;
}

.point-coordinates {
    flex: 1;
    color: #647168;
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}

.point-remove {
    width: 23px;
    height: 23px;
    border: 0;
    border-radius: 5px;
    color: #8b948d;
    background: transparent;
    font-size: 17px;
    cursor: pointer;
}

.point-remove:hover { color: #a33e28; background: #fbefec; }

.validation-note {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding: 11px 0;
    color: #77827a;
    font-size: 9px;
    line-height: 1.5;
}

.validation-note span { flex: 0 0 auto; font-size: 12px; }
.validation-ready { color: #42644a; }
.validation-pending { color: #8b7554; }

.panel-footer { padding-top: 11px; border-top: 1px solid #edf0eb; }
.panel-footer .button { width: 100%; }
.panel-footer p { margin: 9px 2px 0; color: #98a199; font-size: 8px; line-height: 1.5; text-align: center; }

.notice {
    margin: 0 0 14px;
    padding: 10px 13px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 10px;
}

.notice-error { border-color: #f1d8d1; color: #874330; background: #fdf2ef; }
.notice-success { border-color: #dce9dc; color: #42644a; background: #f1f7f0; }

.empty-state {
    display: flex;
    min-height: 45vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #758179;
    text-align: center;
}

.empty-icon { color: #6d8d72; font-size: 35px; }
.empty-state h2 { margin: 12px 0 4px; color: #33473a; font-size: 17px; }
.empty-state p { font-size: 10px; }

.login-page { max-width: 840px; margin: 0 auto; padding: 45px 24px; }

#blazor-error-ui {
    position: fixed;
    z-index: 1000;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: none;
    padding: 13px 18px;
    border: 1px solid #e6d3a8;
    border-radius: 7px;
    color: #594616;
    background: #fff8df;
    box-shadow: 0 4px 20px #0002;
    font-size: 12px;
}

#blazor-error-ui .dismiss { float: right; cursor: pointer; }

.map-quick-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
}

.map-quick-actions a {
    padding: 5px 9px;
    border: 1px solid #dfe7df;
    border-radius: 20px;
    color: var(--green);
    background: #f7faf6;
}

.map-quick-actions a:hover { background: var(--green-light); }
.event-legend-marker { width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1px var(--green); }

.map-screen {
    position: fixed;
    inset: 0;
    height: 100dvh;
    overflow: hidden;
    background: #27392e;
}

.map-screen .fullscreen-map { position: absolute; inset: 0; min-height: 0; height: 100%; }
.map-glass-button {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    padding: 11px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    color: #fff;
    background: rgba(25,43,33,.38);
    box-shadow: 0 3px 16px rgba(0,0,0,.2);
    backdrop-filter: blur(9px);
    cursor: pointer;
}
.map-glass-button:hover { background: rgba(25,43,33,.65); }
.map-glass-button:disabled { opacity: .5; cursor: not-allowed; }
.map-glass-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.map-menu-toggle, .map-notifications-toggle, .map-locate-toggle { position: absolute; top: max(16px, env(safe-area-inset-top)); z-index: 1100; }
.map-menu-toggle { left: max(16px, env(safe-area-inset-left)); }
.map-notifications-toggle { right: max(16px, env(safe-area-inset-right)); }
.map-locate-toggle { left: max(76px, calc(16px + 60px + env(safe-area-inset-left))); }
.map-unread-dot { position: absolute; top: 5px; right: 4px; width: 9px; height: 9px; border: 2px solid white; border-radius: 50%; background: #c3613c; }
.map-search-bar { position: absolute; top: max(16px, env(safe-area-inset-top)); left: 50%; z-index: 1100; transform: translateX(-50%); width: min(500px, calc(100% - 260px - env(safe-area-inset-left) - env(safe-area-inset-left)), calc(100% - 140px - env(safe-area-inset-right) - env(safe-area-inset-right))); }
.map-address-search { position: relative; display: flex; align-items: center; padding: 10px 16px; border: 1px solid rgba(255,255,255,.55); border-radius: 12px; background: rgba(25,43,33,.4); box-shadow: 0 3px 16px rgba(0,0,0,.2); backdrop-filter: blur(9px); }
.map-search-icon { width: 20px; height: 20px; margin-right: 10px; fill: none; stroke: white; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .7; flex-shrink: 0; }
.map-search-input { flex: 1; min-width: 0; border: none; background: transparent; color: white; font-size: 14px; outline: none; padding: 2px 0; }
.map-search-input::placeholder { color: rgba(255,255,255,.6); }
.map-search-input:disabled { opacity: .5; cursor: not-allowed; }
.map-search-clear { position: absolute; right: 12px; border: none; background: none; color: white; font-size: 20px; cursor: pointer; padding: 2px 8px; opacity: .7; }
.map-search-clear:hover { opacity: 1; }
.map-search-results { position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; padding: 8px 0; list-style: none; border: 1px solid rgba(255,255,255,.55); border-radius: 10px; background: rgba(25,43,33,.95); box-shadow: 0 4px 20px rgba(0,0,0,.3); backdrop-filter: blur(9px); max-height: 300px; overflow-y: auto; z-index: 1101; }
.map-search-results li { border-bottom: 1px solid rgba(255,255,255,.1); }
.map-search-results li:last-child { border-bottom: none; }
.map-search-results button { width: 100%; padding: 12px 16px; border: none; background: transparent; color: white; text-align: left; cursor: pointer; font-size: 13px; transition: background .15s ease; display: flex; align-items: center; gap: 10px; }
.map-search-results button:hover { background: rgba(255,255,255,.1); }
.result-name { display: block; font-weight: 500; flex: 1; }
.result-icon { font-size: 16px; flex-shrink: 0; }
.result-type { font-size: 11px; opacity: .7; flex-shrink: 0; }
.map-search-error { position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; padding: 10px 16px; border-radius: 10px; background: #d32f2f; color: white; font-size: 12px; box-shadow: 0 4px 20px rgba(0,0,0,.3); }
.map-status { position: absolute; top: 80px; left: 50%; z-index: 1200; width: min(460px, calc(100% - 32px)); transform: translateX(-50%); pointer-events: none; }
.map-status .notice { margin-bottom: 8px; box-shadow: 0 3px 15px #0002; }
.map-move-notice { position: absolute; top: 80px; left: 50%; z-index: 1200; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: #fbfcfa; box-shadow: 0 3px 15px #0003; }
.map-panel-backdrop { position: absolute; inset: 0; z-index: 1000; border: 0; background: rgba(0,0,0,.15); }
.map-drawer { position: absolute; z-index: 1050; box-sizing: border-box; max-height: calc(100dvh - 100px); overflow-y: auto; border: 1px solid #ffffff50; border-radius: 18px; backdrop-filter: blur(18px); box-shadow: 0 10px 40px #0004; }
.map-menu-panel { top: 76px; left: 16px; display: flex; flex-direction: column; width: min(340px, calc(100% - 32px)); padding: 26px 18px 20px; color: #e7eee8; background: rgba(24,49,35,.89); }
.map-panel-close { position: absolute; top: 5px; right: 8px; border: 0; padding: 4px 10px; color: inherit; background: transparent; font-size: 24px; cursor: pointer; }
.map-menu-panel .brand-lockup { padding-bottom: 22px; }
.map-menu-panel .brand-lockup { justify-content: flex-start; }
.map-menu-panel .brand-copy, .map-menu-panel .account-copy { display: flex; }
.map-menu-panel .nav-section-label, .map-menu-panel .primary-nav .nav-link > span:last-child,
.map-menu-panel .logout-button, .map-menu-panel .sidebar-login span { display: inline; }
.map-menu-panel .phase-chip { display: flex; }
.map-menu-panel .primary-nav .nav-link { justify-content: flex-start; padding: 0 12px; }
.map-menu-panel .account-card { justify-content: flex-start; }
.map-menu-panel .sidebar-bottom { margin-top: 24px; }
.map-menu-tools { display: grid; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #ffffff30; }
.map-menu-tools .workspace-picker { flex-wrap: wrap; color: #e7eee8; }
.map-menu-tools .button { border: 1px solid #ffffff50; color: inherit; background: #ffffff10; font-size: 12px; }
.map-notifications-panel { top: 76px; right: 16px; width: min(360px, calc(100% - 32px)); padding: 28px 20px 20px; color: var(--ink); background: rgba(251,252,250,.94); }
.map-notifications-panel h2 { font-size: 20px; }
.map-notifications-panel p { font-size: 14px; }
.map-notification { padding: 14px 0; border-bottom: 1px solid var(--line); }
.map-notification p { margin-bottom: 6px; }
.map-notification small { display: block; color: #58685d; }
.map-location-search { position: absolute; top: 16px; left: 76px; z-index: 900; width: min(340px, calc(100% - 92px)); padding: 12px; border: 1px solid #ffffff55; border-radius: 12px; color: white; background: #193321df; box-shadow: 0 3px 14px #0003; backdrop-filter: blur(9px); }
.map-location-search form { display: flex; align-items: end; gap: 8px; }
.map-location-search label { display: grid; flex: 1; gap: 5px; font-size: 12px; }
.map-location-search input { min-width: 0; padding: 8px; border: 1px solid #ffffff70; border-radius: 7px; color: var(--ink); background: white; }
.map-location-search .button { min-height: 36px; border-color: #ffffff70; color: white; background: #ffffff18; }
.map-location-search small { display: block; margin-top: 6px; font-size: 10px; opacity: .8; }
.map-location-search ul { max-height: 220px; overflow-y: auto; margin: 8px 0 0; padding: 0; list-style: none; }
.map-location-search li + li { border-top: 1px solid #ffffff30; }
.map-location-search li button { width: 100%; padding: 8px 2px; border: 0; color: white; background: transparent; text-align: left; font-size: 12px; }
.map-location-search li button:hover { text-decoration: underline; }
.map-location-search .notice { margin: 8px 0 0; font-size: 12px; }
.map-edit-hint { position: absolute; top: 16px; left: 430px; right: 80px; z-index: 900; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 10px 14px; border-radius: 12px; color: white; background: #193321b8; backdrop-filter: blur(9px); font-size: 13px; text-align: center; pointer-events: auto; }
.map-edit-hint .text-button { flex: 0 0 auto; color: #ffd2c5; }
.map-settings-backdrop { position: absolute; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 16px; background: #0005; }
.map-area-settings { box-sizing: border-box; width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; border-radius: 18px; background: #fbfcfa; box-shadow: 0 10px 40px #0005; }
.map-area-settings h2 { font-size: 22px; }
.map-area-settings .form-field, .map-area-settings .form-field input { font-size: 14px; }
.map-facility-dialog { position: relative; box-sizing: border-box; width: min(420px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; border-radius: 18px; color: #27382d; background: #fbfcfa; box-shadow: 0 10px 40px #0006; }
.map-facility-dialog h2 { margin: 0 30px 8px 0; font-size: 20px; }
.map-facility-dialog .map-panel-close { color: #526357; }
.map-facility-dialog-type { margin: 0 0 18px; color: #617468; font-size: 13px; }
.map-facility-dialog .form-field { margin: 12px 0; font-size: 12px; }
.map-facility-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.map-facility-dialog p { overflow-wrap: anywhere; }
.map-facility-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.map-facility-photos img { display: block; max-width: 100%; max-height: 220px; border-radius: 8px; object-fit: contain; }
.map-facility-delete { border-color: #a63b30; color: #a63b30; }
.map-hunter-list { display: grid; gap: 12px; margin: 18px 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; max-height: 220px; overflow-y: auto; }
.map-hunter-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.map-hunter-toggle { width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid #416347; border-radius: 50%; color: #285138; background: #edf5ec; font-size: 20px; line-height: 1; }
.map-hunter-toggle.is-selected { border-color: #a63b30; color: #a63b30; background: #fff0ec; }
.map-area-settings .field-hint { font-size: 12px; overflow-wrap: anywhere; }
.map-settings-points { max-height: 180px; overflow-y: auto; padding-left: 22px; font-size: 12px; }
.map-settings-points li { padding: 5px 0; }
.map-settings-points .text-button { margin-left: 8px; }
.boundary-midpoint { border: 1px solid white; border-radius: 50%; color: white; background: #2563ebc9; text-align: center; line-height: 18px; font-weight: bold; }
.photo-picker { display: grid; gap: 8px; margin: 16px 0; }
.photo-picker-actions, .photo-picker-selection { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.photo-picker-option { position: relative; border-color: var(--line); color: var(--ink); background: white; cursor: pointer; }
.photo-picker-option:focus-within { outline: 3px solid #9bb9a1; outline-offset: 3px; }
.photo-picker-option:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.photo-picker-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.map-pie-dock { position: absolute; bottom: max(30px, env(safe-area-inset-bottom)); left: 50%; z-index: 950; transform: translateX(-50%); }
.map-options-toggle { position: relative; z-index: 1; margin: 0 auto; }
.map-options-toggle-editing { border-color: #a63b30; color: white; background: #b94a38; box-shadow: 0 3px 12px #812f2670; }
.map-options-toggle-editing:hover:not(:disabled) { background: #a83d31; }

.map-pie {
    position: absolute;
    bottom: 50%;
    left: 50%;
    width: min(var(--pie-control-width), 100vw);
    height: auto;
    aspect-ratio: 2 / 1;
    transform: translateX(-50%);
    pointer-events: none;
    filter: drop-shadow(0 3px 10px #0003);
}

.map-pie-segments { display: block; width: 100%; height: 100%; overflow: visible; }
.pie-action { color: white; cursor: pointer; pointer-events: auto; }
.pie-sector { fill: var(--pie-color); stroke: rgba(255,255,255,.7); stroke-width: 1.5; }
.pie-icon { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.pie-action:hover .pie-sector, .pie-action:focus-visible .pie-sector { filter: brightness(1.2); stroke: white; stroke-width: 3; }
.pie-action:focus-visible { outline: none; }
.pie-action.is-active .pie-sector { stroke: white; stroke-width: 3; filter: brightness(1.2); }
.pie-submenu { animation: pie-submenu-in 180ms ease-out both; }
@keyframes pie-submenu-in { from { opacity: 0; } to { opacity: 1; } }
.pie-facility { --pie-color: rgba(37,99,235,.8); }
.pie-submenu-action.facility-highstand,
.pie-submenu-action.facility-feeding,
.pie-submenu-action.facility-baiting,
.pie-submenu-action.facility-camera,
.pie-submenu-action.facility-fox-den { --pie-color: var(--facility-marker-color); }
.pie-harvest { --pie-color: rgba(220,38,38,.8); }
.pie-sighting { --pie-color: rgba(250,204,21,.85); color: #23332b; }
.pie-wildloss { --pie-color: rgba(107,82,109,.9); }
.pie-save { --pie-color: rgba(22,163,74,.85); }
.pie-disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
    .pie-submenu { animation-duration: 1ms; }
}

.friend-request {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    align-items: end;
    gap: 12px;
    max-width: 700px;
}

@media (max-width: 760px) {
    .map-search-bar { top: calc(max(16px, env(safe-area-inset-top)) + 58px); left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); width: auto; max-width: 500px; margin: 0 auto; transform: none; }
    .map-status, .map-move-notice { top: calc(max(16px, env(safe-area-inset-top)) + 112px); }
    .map-drawer { z-index: 1110; }
    .map-location-search { top: 76px; left: 16px; width: calc(100% - 32px); }
    .map-edit-hint { top: 16px; left: 76px; right: 76px; padding: 8px; font-size: 11px; }
}

.friend-request .form-field { margin: 0; }
.social-list { display: grid; gap: 7px; margin-top: 14px; }
.social-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.social-row > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.social-row strong { overflow-wrap: anywhere; font-size: 11px; }
.social-row span { color: var(--muted); font-size: 9px; }
.notification-unread { border-color: #c9dbc9; background: #f5faf4; }
.social-page .privacy-note { margin-top: 16px; }
.statistics-period { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.statistics-period .form-field { min-width: 170px; }
.statistics-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.statistics-cards article {
    display: flex;
    min-height: 82px;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
}

.statistics-cards span { color: var(--muted); font-size: 10px; }
.statistics-cards strong { color: var(--green-dark); font-size: 24px; }
.statistics-table-wrap { overflow-x: auto; }
.statistics-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 10px; }
.statistics-table th, .statistics-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.statistics-table thead th { color: var(--muted); font-size: 9px; font-weight: 600; }

.journal-toolbar, .journal-filters, .editor-heading, .editor-actions, .list-heading, .admin-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.journal-toolbar { margin-bottom: 14px; }
.journal-filters { flex-wrap: wrap; justify-content: flex-start; }
.journal-filters label, .form-field { display: flex; min-width: 0; flex-direction: column; gap: 6px; color: #647168; font-size: 10px; }
.journal-filters select, .journal-filters input, .form-field input, .form-field select, .form-field textarea,
.admin-form input, .admin-form select, .share-controls select, .member-row select {
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid #dfe6df;
    border-radius: 6px;
    color: #334438;
    background: #fff;
    font-size: 10px;
}

.form-field textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-field-wide { grid-column: 1 / -1; }
.form-field fieldset { min-width: 0; margin: 0; }
.form-private { align-self: end; }
.journal-editor, .journal-list-panel, .admin-section, .shared-entry-card {
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 5px 24px rgba(29,57,43,.035);
}

.journal-editor { margin-bottom: 15px; }
.editor-heading { margin-bottom: 15px; }
.editor-heading h2, .list-heading h2, .admin-section-heading h2, .side-panel-heading h2 {
    margin: 2px 0 0;
    color: #33473a;
    font-size: 15px;
}

.editor-close { width: 30px; height: 30px; border: 0; border-radius: 6px; color: #7d8980; background: #f4f6f3; font-size: 20px; cursor: pointer; }
.editor-actions { justify-content: flex-end; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.button-secondary { border-color: #dfe6df; color: #506356; background: #f7f9f6; }
.button-secondary:hover:not(:disabled) { background: #edf3ec; }
.button-full { width: 100%; margin-top: 10px; }
.field-hint, .form-field small, .form-field .field-hint { color: #87928a; font-size: 9px; line-height: 1.5; }
.event-location-map { min-height: 210px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; }
.count-item-editor { display: grid; gap: 8px; }
.count-item-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, .4fr) auto; gap: 8px; align-items: center; }
.animal-row { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; margin: 8px 0; }
.checkbox-list { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.checkbox-choice { display: flex; align-items: center; gap: 7px; color: #58685d; font-size: 9px; }
.checkbox-choice input { width: auto; min-height: auto; accent-color: var(--green); }
.similar-results, .privacy-note { margin: 12px 0; padding: 10px; border-radius: 6px; color: #637368; background: #f4f7f3; font-size: 9px; line-height: 1.55; }
.similar-results { display: grid; gap: 5px; }
.journal-list-panel { min-width: 0; }
.journal-list-panel .list-heading { margin-bottom: 12px; }
.list-heading .eyebrow, .admin-section-heading .eyebrow { margin: 0; font-size: 8px; }
.subtle-count { color: #9aa59b; font-size: 10px; font-weight: 500; }
.text-button { padding: 5px 7px; border: 0; color: var(--green); background: transparent; font-size: 9px; text-align: left; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.danger-link { color: #9f4d36; }
.journal-entry-list, .shared-entry-list { display: grid; gap: 8px; }
.journal-entry-card { overflow: hidden; border: 1px solid #e8ece7; border-radius: 7px; background: #fff; }
.entry-summary { display: flex; width: 100%; align-items: center; gap: 10px; padding: 11px; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.entry-summary:hover, .entry-selected > .entry-summary { background: #f8faf7; }
.entry-type-icon { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 9px; font-size: 13px; }
.type-sighting { color: #456b4d; background: #eaf3e9; }
.type-wildloss { color: #6b526d; background: #f0eaf0; }
.type-harvest { color: #a44f35; background: #fbefeb; }
.type-count { color: #6a6244; background: #f5f2e7; }
.type-facility { color: #5f6e70; background: #edf2f2; }
.entry-summary-main { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.entry-summary-main strong { overflow: hidden; color: #33473a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.entry-summary-main > span, .entry-summary-meta { color: #87928a; font-size: 8px; }
.entry-summary-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; white-space: nowrap; }
.entry-details { display: grid; gap: 10px; padding: 12px; border-top: 1px solid #edf0eb; }
.entry-detail-grid { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.entry-detail-grid span { display: flex; flex-direction: column; gap: 3px; color: #58685d; font-size: 9px; }
.entry-detail-grid b { color: #98a199; font-size: 8px; font-weight: 500; }
.entry-notes { margin: 0; color: #58685d; font-size: 9px; line-height: 1.6; white-space: pre-wrap; }
.entry-count-items, .share-list { display: flex; flex-wrap: wrap; gap: 6px; }
.entry-count-items span, .share-list span { padding: 5px 8px; border-radius: 14px; color: #59695e; background: #f2f5f1; font-size: 8px; }
.observed-animals { display: grid; gap: 7px; color: #637168; font-size: 9px; }

.observed-animal-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 6px; background: #f6f8f5; }
.derived-status, .role-badge { padding: 4px 7px; border-radius: 12px; color: #466c4d; background: #edf5ec; font-size: 8px; }
.attachment-gallery { display: flex; flex-wrap: wrap; gap: 7px; }
.attachment-gallery a { display: block; width: 74px; height: 64px; overflow: hidden; border-radius: 5px; background: #f1f3f0; }
.attachment-gallery img { width: 100%; height: 100%; object-fit: cover; }
.attachment-upload { display: grid; gap: 4px; color: #869188; font-size: 8px; }
.share-controls, .share-list { display: flex; align-items: center; gap: 7px; }
.entry-history { display: grid; gap: 5px; color: #6f7d73; font-size: 8px; }
.entry-history summary { cursor: pointer; font-weight: 600; }
.entry-history span { padding: 2px 0; }
.journal-empty { display: grid; min-height: 130px; align-content: center; justify-items: center; gap: 8px; color: #849087; text-align: center; }
.journal-empty > span { color: #7c997f; font-size: 22px; }
.journal-empty strong { color: #506356; font-size: 10px; }
.journal-empty p { max-width: 250px; margin: 0; font-size: 9px; line-height: 1.55; }
.admin-section { margin-bottom: 15px; }
.admin-section-heading { margin-bottom: 13px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.admin-tabs button { padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #637168; font-weight: 600; cursor: pointer; }
.admin-tabs button.active { border-bottom-color: #47704e; color: #355d3d; }
.admin-table-wrap { width: 100%; overflow-x: auto; margin-top: 12px; }
.admin-table { width: 100%; border-collapse: collapse; color: #536359; font-size: 11px; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { color: #78867b; font-size: 10px; }
.admin-table select { max-width: 100%; }
.admin-actions { white-space: nowrap; }
.admin-actions button + button { margin-left: 10px; }
.admin-forms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; }
.admin-form { display: grid; align-content: start; gap: 10px; padding: 13px; border: 1px solid #edf0eb; border-radius: 7px; background: #fcfdfb; }
.admin-form h3 { margin: 0; color: #405447; font-size: 11px; }
.admin-form .form-field { gap: 5px; }
.admin-form input:not([type="checkbox"]):not([type="radio"]),
.admin-form select, .admin-form button[type="submit"] { min-height: 44px; min-width: 44px; }
.admin-form small { color: #87928a; font-size: 8px; line-height: 1.5; }
.admin-subarea-list { display: grid; gap: 4px; margin: 3px 0 0; padding: 0; list-style: none; }
.admin-subarea-list li, .audit-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); color: #637168; font-size: 9px; }
.member-admin-form, .sharing-policy-form, .audit-form { grid-column: 1 / -1; }
.member-table { display: grid; gap: 5px; }
.member-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(100px, .5fr) auto auto auto; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.member-email { overflow: hidden; color: #536359; font-size: 9px; text-overflow: ellipsis; }
.member-row select { min-height: 30px; padding: 5px 7px; font-size: 9px; }
.membership-status { font-size: 8px; }
.status-active { color: #47704e; }
.status-inactive { color: #a05b43; }
.assignment-section, .policy-table { display: grid; gap: 7px; margin-top: 12px; }
.assignment-section > strong { color: #526357; font-size: 9px; }
.assignment-group, .policy-group { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; color: #637168; font-size: 9px; }
.assignment-group summary, .policy-group summary { cursor: pointer; font-weight: 600; }
.assignment-group .checkbox-choice, .policy-group .checkbox-choice { margin-top: 8px; }
.invitation-created { display: grid; gap: 7px; padding: 10px; border: 1px solid #dfe9dd; border-radius: 6px; background: #f5f9f3; }
.invitation-created strong { color: #506356; font-size: 9px; }
.invitation-created small { color: #849087; font-size: 8px; line-height: 1.5; }
.audit-row time { color: #98a199; font-size: 8px; white-space: nowrap; }
.shared-entry-card { padding: 0; }
.shared-entry-card .entry-details { padding: 12px; }
.shared-entries-page .empty-state { min-height: 35vh; }

@media (max-width: 1050px) {
    .map-workspace { grid-template-columns: minmax(0, 1fr) 260px; gap: 11px; }
    .field-page { padding-right: 22px; padding-left: 22px; }
    .landing-preview { right: 25px; width: 44%; }
    .journal-content-grid { grid-template-columns: minmax(0, 1fr) 235px; }
    .member-row { grid-template-columns: minmax(100px, 1fr) minmax(90px, .5fr) auto auto; }
    .member-row .danger-link { grid-column: 2 / -1; justify-self: end; }
}

@media (max-width: 780px) {
    .sidebar {
        position: sticky;
        top: 0;
        bottom: auto;
        width: 65px;
        height: 100vh;
        padding: 18px 9px 12px;
    }

    main { width: calc(100% - 65px); margin-left: 0; }
    .brand-lockup { justify-content: center; padding: 0 0 25px; }
    .brand-copy, .nav-section-label, .primary-nav .nav-link > span:last-child, .phase-chip, .account-copy, .logout-button, .sidebar-login span { display: none; }
    .primary-nav .nav-link { justify-content: center; padding: 0; }
    .nav-symbol { font-size: 22px; }
    .account-card { justify-content: center; padding: 12px 0 0; }
    .sidebar .sidebar-login { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0; font-size: 20px; }
    .landing-copy { width: 57%; }
    .landing-preview { right: 18px; width: 43%; }
    .landing-copy h1 { font-size: clamp(32px, 5.2vw, 45px); letter-spacing: -1.8px; }
    .map-workspace { grid-template-columns: 1fr; }
    .map-shell { min-height: 55vh; }
    .field-map { min-height: 390px; }
    .boundary-panel { min-height: 0; }
    .point-list { max-height: 200px; }
    .validation-note { margin-top: 12px; }
    .statistics-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-forms-grid { grid-template-columns: 1fr; }
    .member-admin-form, .sharing-policy-form, .audit-form { grid-column: auto; }
}

@media (max-width: 560px) {
    .sidebar { width: 54px; padding-right: 7px; padding-left: 7px; }
    .brand-mark { width: 35px; height: 35px; }
    main { width: calc(100% - 54px); }
    .landing-page { padding: 22px 18px 15px; }
    .landing-topline > span:last-child { display: none; }
    .landing-copy { width: 100%; margin: 30px 0 0; padding: 25px 0 22px; }
    .landing-copy h1 { font-size: 39px; }
    .landing-description { max-width: 410px; margin: 17px 0 21px; font-size: 11px; }
    .landing-preview { position: relative; top: auto; right: auto; width: 100%; margin: 0 0 28px; transform: none; }
    .preview-map { aspect-ratio: 1.55; }
    .preview-card { padding: 9px 10px; }
    .landing-footer { gap: 12px; font-size: 8px; }
    .landing-footer span:last-child { text-align: right; }
    .field-page { padding: 22px 13px 25px; }
    .field-header { align-items: start; margin-bottom: 15px; }
    .field-header .workspace-picker { width: 100%; }
    .field-header h1 { font-size: 20px; }
    .workspace-badge { max-width: 100%; font-size: 9px; }
    .map-shell { min-height: 51vh; }
    .field-map { min-height: 340px; }
    .map-legend { gap: 9px; font-size: 7px; }
    .map-attribution-note { display: none; }
    .friend-request { grid-template-columns: 1fr; }
    .social-row { align-items: flex-start; flex-wrap: wrap; }
    .statistics-cards { gap: 7px; }
    .statistics-cards article { min-height: 75px; padding: 10px; }
    .statistics-cards strong { font-size: 20px; }
    .journal-toolbar { align-items: stretch; flex-direction: column; }
    .journal-filters { display: grid; grid-template-columns: 1fr 1fr; }
    .journal-filters label:first-child { grid-column: 1 / -1; }
    .form-grid { grid-template-columns: 1fr; }
    .form-field-wide { grid-column: auto; }
    .editor-actions { flex-wrap: wrap; }
    .animal-row { grid-template-columns: 1fr 1fr; }
    .member-row { grid-template-columns: 1fr auto; }
    .member-email { grid-column: 1 / -1; }
    .member-row .danger-link { grid-column: 1 / -1; justify-self: start; }
}
