/* Same understated, blue-underlined tabs as view-species. */
.vpe-field-tabs { display: flex; overflow-x: auto; max-width: 100%; min-width: 0; margin-top: 1.25rem; border-bottom: 1px solid rgba(255,255,255,.08); scrollbar-width: none; -ms-overflow-style: none; }
.vpe-field-tabs::-webkit-scrollbar { display: none; width: 0; height: 0; }
.vpe-field-tabs button { flex: 0 0 auto; padding: .7rem 1.25rem; min-height: 44px; font-family: 'Inter', sans-serif; font-size: .85rem; font-weight: 600; color: #64748b; background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; }
.vpe-field-tabs button:hover { color: #94a3b8; }
.vpe-field-tabs button[aria-selected=true] { color: #f1f5f9; border-bottom-color: #3b82f6; }
.vpe-field-tabs button:focus-visible { outline: 2px solid #60a5fa; outline-offset: -3px; }
.vpe-field-panel { display: flex; flex-direction: column; gap: 1rem; min-width: 0; padding-top: 1rem; }
.vpe-field-panel[hidden] { display: none !important; }
.vpe-field-panel { font-family: 'Inter', system-ui, sans-serif; font-size: .875rem; line-height: 1.5; color: #cbd5e1; }
.vpe-field-panel :is(button, input, textarea, select) { font-family: inherit; }
body.ara-edit-mode-field .vpe-field-panel .category-current { font-size: .875rem; line-height: 1.4; }
body.ara-edit-mode-field .vpe-field-panel .category-pill { min-height: 44px; }
body.ara-edit-mode-field #editGpsTrackerCard .vpe-gps-status { font-size: .8rem; font-weight: 400; line-height: 1.5; margin: 12px 0 0; color: #94a3b8; }
body.ara-edit-mode-field #vpe-location-manual-toggle { font-size: .8rem; line-height: 1.25; font-weight: 600; min-height: 40px; }
body.ara-edit-mode-field .edit-measurement-direct-entry__hint { font-size: .75rem; line-height: 1.5; font-weight: 400; color: #94a3b8; }

/* VPE also hosts these age controls, without the Canopy Studio stylesheet. */
body.ara-edit-mode #editModeHistoryBlock .av-history-age-editor,
body.ara-edit-mode #editModeHistoryBlock .av-history-age-assessment { margin-top: 16px; padding: 16px; border: 1px solid #334155; border-radius: 12px; background: #111b2c; }
body.ara-edit-mode #editModeHistoryBlock [hidden] { display: none !important; }
body.ara-edit-mode .av-history-age-editor__header,
body.ara-edit-mode .av-history-age-assessment__header { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: center; }
body.ara-edit-mode .av-history-age-editor__header > span,
body.ara-edit-mode .av-history-age-assessment__header > span { font-size: 22px; color: #93c5fd; }
body.ara-edit-mode .av-history-age-editor__header small,
body.ara-edit-mode .av-history-age-assessment__header small { display: block; font-size: .7rem; font-weight: 500; color: #94a3b8; line-height: 1.4; }
body.ara-edit-mode .av-history-age-editor__header h4,
body.ara-edit-mode .av-history-age-assessment__header strong { display: block; margin: 3px 0 0; font-size: .95rem; font-weight: 600; color: #e2e8f0; }
body.ara-edit-mode .av-history-age-editor__intro,
body.ara-edit-mode .av-history-age-editor__hint,
body.ara-edit-mode .av-history-age-assessment__meta { margin: 10px 0; color: #94a3b8; font-size: .75rem; font-weight: 400; line-height: 1.5; }
body.ara-edit-mode .av-history-age-editor__ranges,
body.ara-edit-mode .av-history-age-assessment__ranges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
body.ara-edit-mode .av-history-age-editor__range,
body.ara-edit-mode .av-history-age-assessment__range { min-width: 0; padding: 12px; border: 1px solid #334155; border-radius: 10px; background: #0b1322; }
body.ara-edit-mode .av-history-age-editor__range-heading { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; align-items: start; }
body.ara-edit-mode .av-history-age-editor__range-heading > span { color: #93c5fd; font-size: 20px; }
body.ara-edit-mode .av-history-age-editor__range-heading strong { display: block; color: #e2e8f0; font-size: .8rem; line-height: 1.4; font-weight: 600; }
body.ara-edit-mode .av-history-age-editor__range-heading small { display: block; margin-top: 4px; color: #94a3b8; font-size: .7rem; line-height: 1.45; }
body.ara-edit-mode .av-history-age-editor__range-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
body.ara-edit-mode .av-history-age-editor__range-inputs input { min-width: 0; }
body.ara-edit-mode .av-history-age-assessment__range small,
body.ara-edit-mode .av-history-age-assessment__range strong { display: block; font-size: .8rem; line-height: 1.5; }
body.ara-edit-mode .av-history-age-assessment__details { margin-top: 12px; border-top: 1px solid #334155; padding-top: 10px; }
body.ara-edit-mode .av-history-age-assessment__details summary { cursor: pointer; font-size: .8rem; color: #93c5fd; }
body.ara-edit-mode .av-history-age-assessment__details-body { display: grid; gap: 8px; margin-top: 10px; }
body.ara-edit-mode .av-history-age-assessment__details-body :is(p, li, small),
body.ara-edit-mode .av-history-age-assessment__radial-list { font-size: .75rem; line-height: 1.5; color: #94a3b8; }
@media (max-width: 700px) { body.ara-edit-mode .av-history-age-editor__ranges, body.ara-edit-mode .av-history-age-assessment__ranges { grid-template-columns: 1fr; } }

.vpe-save-confirm { box-sizing: border-box; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; margin: auto; padding: 24px; border: 1px solid #334155; border-radius: 18px; background: #151e32; color: #e2e8f0; font-family: 'Inter', system-ui, sans-serif; box-shadow: 0 20px 70px #0008; }
.vpe-save-confirm::backdrop { background: #020617b8; }
.vpe-save-confirm__icon { display: block; margin-bottom: 12px; color: #6ee7b7; font-size: 28px; }
.vpe-save-confirm h2 { font-size: 1.1rem; line-height: 1.4; font-weight: 600; margin: 0 0 10px; }
.vpe-save-confirm p { font-size: .875rem; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.vpe-save-confirm .vpe-save-confirm__hint { margin-top: 8px; font-size: .75rem; color: #94a3b8; }
.vpe-save-confirm__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.vpe-save-confirm__actions button { min-height: 44px; padding: 10px 16px; border: 1px solid #475569; border-radius: 9px; background: #1e293b; color: #e2e8f0; font: 600 .8rem 'Inter', system-ui, sans-serif; }
.vpe-save-confirm__actions .vpe-save-confirm__submit { background: #10b981; border-color: #10b981; color: #052e24; }
.vpe-save-confirm__actions button:focus-visible { outline: 2px solid #93c5fd; outline-offset: 3px; }
body.ara-edit-mode-field { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
body.ara-edit-mode-field #adminSection { display: none !important; }
.vpe-field-photos { padding: 20px; border-radius: 16px; }
.vpe-field-photos h2 { font-size: 1rem; font-weight: 700; }
.vpe-field-photos .media-intro, .vpe-photo-status { font-size: .8rem; line-height: 1.5; }
.vpe-photo-status { color: #94a3b8; margin-top: 16px; }
body.ara-edit-mode-field :is(#photoRemoveModal, #addEvidenceOverlay) { position: fixed; inset: 0; z-index: 11000; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.75); }
body.ara-edit-mode-field :is(#photoRemoveModal, #addEvidenceOverlay).visible { display: flex; }
body.ara-edit-mode-field :is(#photoRemoveModal, #addEvidenceOverlay) .modal { width: min(100%, 480px); max-height: 85dvh; overflow-y: auto; border: 1px solid #334155; border-radius: 18px; padding: 20px; background: #151e32; }
body.ara-edit-mode-field .modal-title { font-weight: 700; margin-bottom: 12px; }
body.ara-edit-mode-field :is(#photoRemoveModal, #addEvidenceOverlay) .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
body.ara-edit-mode-field :is(#photoRemoveModal, #addEvidenceOverlay) .modal-actions button { padding: 10px 16px; border-radius: 8px; border: 1px solid #4f8fe9; background: #29466f; color: #f8fbff; }
body.ara-edit-mode-field :is(#photoRemoveModal, #addEvidenceOverlay) button:disabled { opacity: .5; }
#photoRemovePreview { max-width: 100%; max-height: 150px; border-radius: 8px; margin: 0 auto 12px; }
body.ara-edit-mode-field #seasonOverlay { z-index: 11000; }
body.ara-edit-mode-field #araSharedLightbox { z-index: 12000; }
@media (max-width: 600px) { .vpe-field-tabs button { padding-inline: 1rem; } .vpe-field-photos { padding: 16px; } }

#editMeasHeightCard { --border: #334155; }
#editMeasHeightCard [hidden], #vpe-map-offline[hidden] { display: none !important; }
.vpe-height-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.vpe-height-heading h3 { font-weight: 700; }
.vpe-height-units { display: flex; border: 1px solid #334155; border-radius: 10px; overflow: hidden; }
.vpe-height-units button { min-width: 44px; min-height: 40px; color: #94a3b8; }
.vpe-height-units button[aria-pressed=true] { color: #f8fbff; background: #29466f; }
#editMeasHeightCard label { display: block; color: #94a3b8; font-size: .8rem; margin: 10px 0 5px; }
#editMeasHeightCard input:not([type=hidden]) { width: 100%; min-width: 0; box-sizing: border-box; padding: 10px 12px; border: 1px solid #334155; border-radius: 10px; background: #0b1120; color: #e5edf7; }
.vpe-height-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vpe-height-hint { font-size: .75rem; color: #94a3b8; margin-top: 12px; line-height: 1.5; }
.vpe-height-result { margin-top: 16px; padding: 14px; border: 1px solid #28534d; border-radius: 12px; background: #10282b; }
.vpe-height-result h4 { color: #6ee7b7; font-size: .75rem; margin-bottom: 6px; }
#editMeasHeightCard #height-result-m { font-size: 1.2rem; font-weight: 700; }
#editMeasHeightCard #height-result-ft { color: #94a3b8; }
#editMeasClinoWrap { margin-top: 18px; }
#editMeasHeightCard .clino-readout { padding: 14px; border: 1px solid #334155; border-radius: 12px; background: #0b1a2f; }
#editMeasHeightCard .clino-readout .angle { font-size: 1.8rem; color: #60a5fa; font-weight: 700; }
#editMeasHeightCard .clino-readout .status { color: #94a3b8; font-size: .8rem; }
#editMeasHeightCard .clino-wrap { margin-top: 12px; }
#editMeasHeightCard .clino-controls { display: flex; gap: 8px; margin-top: 10px; }
#editMeasHeightCard :is(.clino-controls, .percent-capture-actions) button, #vpe-location-manual-toggle { border: 1px solid #475569; padding: 10px 12px; border-radius: 10px; color: #e5edf7; background: #1e293b; }
#editMeasHeightCard button:disabled, #editGpsTrackerCard button:disabled { opacity: .45; cursor: not-allowed; }
.vpe-gps-status { font-size: .8rem; line-height: 1.5; color: #94a3b8; margin-top: 12px; }
#editGpsTrackerCard { --danger: #f87171; --muted: #94a3b8; }
#editGpsTrackerCard .toggle-btn[aria-pressed=true], #editGpsTrackerCard .toggle-btn.active { background: #29466f; border-color: #60a5fa; }
#editGpsTrackerCard .acc-green { color: #86efac; background: #14532d; }
#editGpsTrackerCard .acc-amber { color: #fde68a; background: #713f12; }
#editGpsTrackerCard .acc-grey { color: #cbd5e1; background: #334155; }
body.ara-edit-mode-field #editLocationManualSection.vpe-manual-open { display: block !important; }

/* GPS card layout extracted from the existing tracker. */
.vpe-gps-layout-0 { display:flex;align-items:center;gap:8px;margin-bottom:12px; }
.vpe-gps-layout-1 { color:#60a5fa; }
.vpe-gps-layout-2 { font-size:0.8rem;font-weight:700;color:#93c5fd;text-transform:uppercase;letter-spacing:0.08em;margin:0; }
.vpe-gps-layout-3 { margin-left:auto;padding:3px 10px;border-radius:999px;font-size:0.7rem;font-weight:700; }
.vpe-gps-layout-4 { display:flex;flex-wrap:wrap;gap:8px; }
.vpe-gps-layout-5 { padding:7px 14px;border-radius:999px;border:1px solid rgba(96,165,250,0.5);background:rgba(59,130,246,0.18);color:#dbeafe;font-weight:700;font-size:0.8rem;cursor:pointer; }
.vpe-gps-layout-6 { padding:7px 14px;border-radius:999px;border:1px solid rgba(255,255,255,0.12);background:rgba(0,0,0,0.2);color:#d1d5db;font-weight:700;font-size:0.8rem;cursor:pointer; }
.vpe-gps-layout-7 { background:rgba(0,0,0,0.25);border:1px solid rgba(255,255,255,0.08);border-radius:12px;padding:10px 12px;margin-top:12px; }
.vpe-gps-layout-8 { margin:0 0 6px;font-size:0.7rem;color:#6ee7b7;text-transform:uppercase;letter-spacing:0.08em; }
.vpe-gps-layout-9 { margin:3px 0;color:#e5edf7;font-size:0.85rem; }
.vpe-gps-layout-10 { margin:3px 0;color:#d1d5db;font-size:0.85rem; }
.vpe-gps-layout-11 { padding:2px 8px;border-radius:999px;font-size:0.75rem;font-weight:600; }
.vpe-gps-layout-12 { margin:4px 0 0;color:#6b7280;font-size:0.72rem; }
.vpe-gps-layout-13 { background:rgba(0,0,0,0.25);border:1px solid rgba(255,255,255,0.08);border-radius:12px;padding:10px 12px;margin-top:10px; }
.vpe-gps-layout-14 { display:none; }
.vpe-gps-layout-15 { display:flex;flex-wrap:wrap;gap:8px;margin-top:10px; }
.vpe-gps-layout-16 { padding:6px 12px;border-radius:8px;border:1px solid rgba(16,185,129,0.4);background:rgba(16,185,129,0.12);color:#6ee7b7;font-weight:700;font-size:0.8rem;cursor:pointer; }
.vpe-gps-layout-17 { padding:6px 12px;border-radius:8px;border:1px solid rgba(239,68,68,0.4);background:rgba(239,68,68,0.08);color:#fca5a5;font-size:0.8rem;cursor:pointer; }
.vpe-gps-layout-18 { margin-top:12px;height:220px;border-radius:12px;overflow:hidden;border:1px solid rgba(255,255,255,0.08); }
.vpe-gps-layout-19 { display:flex;flex-wrap:wrap;gap:8px;margin-top:8px; }
.vpe-gps-layout-20 { padding:5px 10px;border-radius:8px;border:1px solid rgba(255,255,255,0.12);background:transparent;color:#d1d5db;font-size:0.75rem;cursor:pointer; }
