:root {
  --canvas: #f5f5f7;
  --surface: #fff;
  --ink: #202027;
  --muted: #777780;
  --line: #e5e5eb;
  --accent: #ff633b;
  --accent-soft: #fff0ea;
  --radius: 24px;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
button:disabled { opacity: .5; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #e34f29; outline-offset: 4px; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* The rail is for real views and cameras; the frames own the rest of the canvas. */
.app-shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 100svh; }
.sidebar { position: sticky; top: 0; height: 100svh; padding: 23px 14px 20px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; margin-bottom: 16px; text-decoration: none; font-size: 25px; font-weight: 750; letter-spacing: -1.4px; }
.brand-icon { display: grid; place-items: center; width: 38px; height: 38px; background: var(--accent); border-radius: 13px; margin-right: 9px; transform: rotate(-7deg); transition: transform .25s; }
.brand:hover .brand-icon { transform: rotate(0); }
.brand svg { width: 29px; height: 25px; stroke-width: 1.9; }
.brand-period { color: var(--accent); }
.mobile-camera-guide { display: none; }
.sidebar-label { color: #93939c; text-transform: uppercase; letter-spacing: 1.7px; font-size: 10px; font-weight: 700; margin: 0 0 13px 12px; }
.camera-heading { display: flex; justify-content: space-between; align-items: center; margin: 12px 10px 0 0; }
.camera-heading .sidebar-label { margin-bottom: 0; }
.camera-total { color: #8d8d96; font-size: 11px; background: #e9e9ee; min-width: 20px; height: 20px; border-radius: 7px; text-align: center; padding: 1px 5px; }
.camera-list { margin-top: 15px; display: grid; gap: 6px; max-height: 35svh; overflow-y: auto; }
.sidebar-loading { font-size: 13px; padding-left: 12px; color: var(--muted); }
.camera-item { padding: 10px; display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; text-align: left; border-radius: 14px; color: #696974; transition: background .18s; }
.camera-item:hover { background: #ececf0; }
.camera-item.selected { background: var(--accent-soft); color: #8d3a22; }
.camera-avatar { width: 33px; height: 33px; border-radius: 11px; background: #e9e9ef; color: #81818a; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.camera-item.selected .camera-avatar { background: #ffd4c5; color: #8e3d25; }
.camera-copy { min-width: 0; }
.camera-name { display: block; font-size: 13px; line-height: 1.4; font-weight: 600; }
.camera-zone { display: block; font-size: 10px; color: #96969e; margin-top: 3px; }
.add-camera { display: flex; gap: 9px; align-items: center; margin: 12px 0 0; padding: 10px 13px; color: #81818b; border: 0; background: none; font-size: 12px; text-align: left; border-radius: 12px; }
.add-camera:hover { background: #ececf0; color: var(--ink); }
.add-camera span { font-size: 18px; }
.about-button { display: flex; align-items: center; gap: 9px; width: 100%; margin-top: 6px; padding: 10px 13px; border: 0; border-radius: 12px; background: transparent; color: #777782; font-size: 12px; text-align: left; transition: background .18s, color .18s; }
.about-button svg { width: 18px; height: 18px; }
.about-button:hover { background: #fff; color: var(--ink); }
.cost-summary { display: flex; flex-direction: column; gap: 4px; margin: auto 8px 0; padding-top: 24px; }
.cost-label { color: #858590; font-size: 11px; }
#cost-total { font-size: 23px; line-height: 1.4; letter-spacing: -.7px; font-weight: 600; }
#cost-meta { color: #90909b; font-size: 10px; line-height: 1.6; }
.sidebar-bottom { margin-top: 0; padding: 20px 7px 0; display: flex; align-items: flex-start; gap: 10px; }
.schedule-icon { width: 30px; height: 30px; background: #eaeaf0; border-radius: 11px; display: grid; place-items: center; color: #787884; }
.schedule-icon svg { width: 17px; height: 17px; }
.schedule-label { font-size: 11px; font-weight: 600; margin: 0 0 4px; }
#schedule { font-size: 10px; color: #8b8b95; margin: 0; line-height: 1.7; max-width: 142px; }

/* Open workspace, warm controls, a quieter filter bar. */
.workspace { min-width: 0; }
.masthead { height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(20px, 2.2vw, 36px); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 15px; font-size: 12px; color: #94949e; }
.breadcrumb svg { width: 12px; height: 12px; color: #b0b0b9; }
.breadcrumb strong { font-weight: 500; color: #565661; }
.connection { color: #85858e; font-size: 11px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.connection::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #acacb5; }
.connection.busy::before { background: var(--accent); box-shadow: 0 0 0 4px #ff633b17; animation: pulse 1.5s ease-in-out infinite; }
main { max-width: 1640px; margin: auto; padding: 0 clamp(20px, 2.2vw, 36px); }
.journal-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 12px 0 8px; animation: enter .4s ease both; }
.eyebrow { color: #96969e; font-size: 10px; font-weight: 600; letter-spacing: 2.1px; text-transform: uppercase; margin: 0 0 13px; }
h1 { margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -1.2px; line-height: 1.05; }
.title-dot { color: var(--accent); }
.intro { color: #909099; font-size: 14px; margin: 13px 0 0; letter-spacing: -.15px; }
.run-controls { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 42px; background: var(--accent); color: #24170f; border: 0; border-radius: 14px; font-size: 14px; font-weight: 650; padding: 0 15px; box-shadow: 0 5px 14px #ff633b15; transition: background .18s, transform .2s, box-shadow .2s; }
.primary svg { width: 18px; height: 18px; stroke-width: 1.8; }
.primary:hover:enabled { background: #ff7855; transform: translateY(-2px); box-shadow: 0 8px 22px #ff633b24; }
.primary:active:enabled { transform: translateY(0); }
.button-plus { font-size: 19px; font-weight: 400; margin-left: 7px; color: #873b25; }
#run-scope { margin: 4px 0 0; font-size: 10px; color: #9a9aa3; max-width: 200px; text-align: center; }
.run-status { font-size: 12px; color: #7b7b85; line-height: 1.7; }
.run-status:not(:empty) { margin-bottom: 6px; }
.run-status.busy { color: #b54222; }
.run-status.busy::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 9px; border: 1.5px solid #ed633e; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.filters { position: sticky; top: 0; z-index: 5; padding: 10px 0 12px; background: #f5f5f7f2; backdrop-filter: blur(15px); }
.filter-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.filter-picks { display: flex; gap: 10px; min-width: 0; }
.select-field { position: relative; display: flex; align-items: center; width: min(220px, 24vw); }
.select-field > svg { position: absolute; left: 15px; width: 16px; height: 16px; color: #8e8e99; pointer-events: none; z-index: 1; }
select, input[type=date] { appearance: none; -webkit-appearance: none; border: 1px solid transparent; background: #fff; color: #53535e; border-radius: 14px; padding: 11px 14px; min-height: 46px; font-size: 14px; width: 100%; transition: border-color .15s, box-shadow .15s; }
select:hover, input[type=date]:hover { border-color: #dcdce5; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath d='m5 6 3 3 3-3' fill='none' stroke='%238b8b96' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.4'/%3E%3C/svg%3E"); background-position: right 13px center; background-repeat: no-repeat; padding-right: 36px; }
.select-field select { padding-left: 42px; }
.filter-button { min-height: 46px; display: flex; align-items: center; gap: 9px; padding: 0 15px; border: 1px solid #e1e1e9; background: transparent; border-radius: 14px; color: #6f6f7a; font-size: 14px; }
.filter-button:hover, .filter-button[aria-expanded=true] { background: #fff; color: var(--ink); }
.filter-button svg { width: 16px; height: 16px; }
.filter-badge { display: grid; place-items: center; border-radius: 50%; min-width: 18px; height: 18px; background: var(--accent); color: #321d13; font-size: 10px; font-weight: 650; }
.advanced-filters { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; padding: 20px 0 3px; animation: panel-in .2s ease; }
.advanced-filters label { display: flex; flex-direction: column; gap: 8px; color: #81818c; font-size: 14px; }
.filter-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 10px; }
.toggles { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.toggle { position: relative; cursor: pointer; }
.toggle input { position: absolute; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.toggle span { display: flex; align-items: center; gap: 6px; border: 1px solid #dedee7; padding: 6px 12px; border-radius: 50px; color: #73737e; font-size: 14px; min-height: 36px; transition: color .18s, background .18s, border-color .18s; }
.toggle svg { width: 13px; height: 13px; stroke-width: 1.5; }
.toggle:hover span { border-color: #bcbcc8; color: #55555f; }
.toggle input:checked + span { color: #fff; background: var(--ink); border-color: var(--ink); }
.toggle input:checked + span svg { color: #ff9b7f; }
.toggle input:focus-visible + span { outline: 3px solid #e34f29; outline-offset: 4px; }
.text-button { background: none; border: 0; color: #888893; padding: 7px 6px; font-size: 12px; border-radius: 8px; }
.text-button:hover { color: var(--ink); }
.result-count { color: #858590; font-size: 12px; white-space: nowrap; }

/* One archive highlight, independent of gallery filters. */
.highlight { display: grid; grid-template-columns: minmax(250px, 38%) minmax(0, 1fr); padding: 7px; background: #fff; border-radius: 24px; margin: 6px 0 12px; overflow: hidden; animation: enter .3s ease; }
.highlight-image { position: relative; display: block; border: 0; background: #eeeef3; padding: 0; min-width: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 16/9; align-self: center; }
.highlight-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.highlight-image:hover img { transform: scale(1.025); }
.highlight-facts { position: absolute; bottom: 12px; left: 12px; border-radius: 8px; background: #25252ce8; padding: 5px 10px; color: #fff; font-size: 11px; font-weight: 600; backdrop-filter: blur(8px); }
.highlight-copy { padding: 14px 23px; align-self: center; min-width: 0; }
.highlight.has-fact { grid-template-columns: minmax(250px, 36%) minmax(0, 1fr) minmax(210px, 26%); }
.highlight-fact { position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-start; min-width: 0; padding: 19px 19px 15px; margin: 4px; border-radius: 12px; background: #24242b; color: #f4f0e7; overflow: hidden; }
.fact-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.fact-compass { width: 25px; height: 25px; color: #edc66d; stroke-width: 1.2; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.highlight-fact:hover .fact-compass { transform: rotate(35deg); }
.fact-kicker { font: 9px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace; text-transform: uppercase; letter-spacing: 1.1px; color: #edc66d; white-space: nowrap; }
.fact-heading-rule { flex: 1; height: 1px; background: #edc66d30; }
.fact-story { display: flow-root; flex: 1; }
.fact-mascot { float: right; width: 102px; height: auto; aspect-ratio: 1; object-fit: contain; margin: -7px -7px 4px 9px; shape-outside: ellipse(48% 48%); filter: drop-shadow(0 5px 8px #0003); transform-origin: 50% 85%; animation: guide-arrive .65s cubic-bezier(.2,.75,.2,1) both; transition: transform .35s cubic-bezier(.2,.75,.2,1); }
.highlight-fact:hover .fact-mascot { transform: translateY(-3px) rotate(-4deg); }
.fact-species { display: block; margin: 0 0 7px; font: 9px/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: 1.3px; text-transform: uppercase; color: #a8a3a1; overflow-wrap: anywhere; }
.highlight-fact h3 { font-size: clamp(19px, 1.45vw, 23px); line-height: 1.17; font-weight: 650; margin: 0 0 11px; letter-spacing: -.65px; text-wrap: pretty; }
.highlight-fact p { margin: 0; font-size: 13px; line-height: 1.7; color: #c9c5c3; text-wrap: pretty; }
.fact-source-line { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 10px; padding-top: 11px; margin-top: 15px; border-top: 1px solid #ffffff14; }
.fact-source-label { color: #8f8a8a; font: 8px/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace; text-transform: uppercase; letter-spacing: 1.1px; }
.highlight-fact a { font-size: 10px; line-height: 1.5; color: #d4cec4; text-decoration-color: #d4cec445; text-underline-offset: 3px; transition: color .18s; }
.highlight-fact a:hover { color: #edc66d; text-decoration-color: #edc66d; }
.highlight-fact a:focus-visible { outline-color: #edc66d; }
.highlight-copy .eyebrow { margin-bottom: 8px; font-size: 9px; }
.highlight-copy h2 { margin: 0 0 6px; font-size: clamp(21px, 2vw, 30px); line-height: 1.2; letter-spacing: -.8px; font-weight: 650; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.highlight-meta { font-size: 11px; color: #92929d; margin: 0; }
.highlight-reason { margin: 9px 0 13px; color: #777783; font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.highlight-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.shuffle-button { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; border: 0; border-radius: 12px; padding: 8px 12px; background: #f0f0f5; color: #43434f; font-size: 12px; font-weight: 600; transition: background .18s; }
.shuffle-button svg { width: 16px; height: 16px; }
.shuffle-button:hover:enabled { background: #e6e6ef; }
.highlight-note, .highlight-error { color: #90909b; font-size: 11px; margin: 9px 0 0; }
.highlight-error { margin: 0 0 10px; color: #a64225; }
.highlight[aria-busy=true] .shuffle-button svg { animation: spin 1.5s linear infinite; }

/* Compact, uniform tiles keep the full capture grid easy to scan. */
.stats-section { padding: 19px 0 13px; margin: 7px 0 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 21px; }
.stats-heading h2 { font-size: 17px; line-height: 1.3; letter-spacing: -.5px; font-weight: 600; margin: 0 0 3px; }
.stats-scope { color: #92929d; font-size: 11px; }
.stats-periods { display: flex; gap: 3px; background: #eaeaf0; padding: 3px; border-radius: 12px; }
.stats-periods button { border: 0; background: transparent; color: #92929d; border-radius: 9px; min-height: 29px; padding: 4px 12px; font-size: 11px; transition: background .18s, color .18s; }
.stats-periods button.active { background: #fff; color: #32323b; box-shadow: 0 2px 4px #20202706; }
.stats-periods button:hover { color: #32323b; }
.stats-layout { display: grid; grid-template-columns: minmax(240px, 33%) minmax(0, 1fr); gap: 27px; align-items: start; }
.activity-panel { min-width: 0; border-left: 1px solid var(--line); padding-left: 26px; }
.species-panel { min-width: 0; }
.stat-chart-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.stat-chart-heading h3 { font-size: 12px; font-weight: 600; color: #646471; margin: 0; }
.stat-chart-heading > span { color: #a0a0aa; font-size: 10px; }
.stat-chart { width: 100%; min-width: 0; overflow: hidden; }
.stat-chart svg { display: block; max-width: 100%; fill: initial; stroke: initial; }
.stat-caption { color: #a0a0aa; font-size: 10px; margin: 10px 0 0; line-height: 1.6; }
.stat-empty { font-size: 12px; line-height: 1.8; color: #94949f; margin: 23px 0; }
.heatmap-legend { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; margin: 12px 0 0 43px; color: #9b9ba5; font-size: 9px; }
.heatmap-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.heatmap-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.legend-none { background: #ececf1; border: 1px solid #e3e3eb; }
.legend-empty { background: #d7d7e1; }
.heatmap-scale i:nth-of-type(1) { background: #ffe5db; }
.heatmap-scale i:nth-of-type(2) { background: #ffb69e; }
.heatmap-scale i:nth-of-type(3) { background: #ff8b66; }
.heatmap-scale i:nth-of-type(4) { background: #ff633b; }
.heatmap-scale i:nth-of-type(5) { background: #c54021; }
.stats-bottom { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 17px; color: #90909c; font-size: 10px; }
#stats-error { color: #a64225; }
.stats-tooltip { position: fixed; z-index: 20; pointer-events: none; border-radius: 9px; background: #292931f5; color: #eeeef3; padding: 10px 13px; max-width: 225px; font-size: 11px; line-height: 1.7; white-space: pre-line; box-shadow: 0 5px 20px #17172318; }

/* The sighting sets the overview height; only the history heatmap is bounded. */
.overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 5px 0 10px; }
.overview.without-highlight { grid-template-columns: minmax(0, 1fr); }
.overview.without-highlight .highlight-stack { display: none; }
.highlight-stack { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.overview .highlight { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 5px; margin: 0; border-radius: 17px; overflow: hidden; }
.overview .highlight-image { flex: none; width: 100%; height: auto; aspect-ratio: 16 / 9; align-self: start; border-radius: 12px; }
.overview .highlight-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.highlight-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 8px; flex: none; min-width: 0; }
.highlight:not(.has-fact) .highlight-details { grid-template-columns: minmax(0, 1fr); }
.overview .highlight-copy { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; align-self: stretch; }
.overview .highlight-copy .eyebrow { display: none; }
.overview .highlight-copy h2 { font-size: 20px; margin: 0; }
.overview .highlight-meta { font-size: 10px; line-height: 1.4; }
.overview .highlight-reason { font-size: 11px; line-height: 1.4; margin: 2px 0 0; }
.overview .highlight-actions { flex-direction: row; align-items: center; justify-content: flex-start; gap: 3px 8px; margin-top: 4px; }
.overview .shuffle-button { min-height: 32px; font-size: 11px; padding: 6px 9px; gap: 6px; border-radius: 9px; }
.overview .shuffle-button svg { width: 13px; height: 13px; }
.overview #highlight-view { padding: 3px 5px; font-size: 9px; }
.overview .highlight-fact { grid-column: auto; padding: 11px 13px 10px; margin: 0; border-radius: 11px; }
.overview .fact-heading { margin-bottom: 7px; }
.overview .fact-compass { width: 19px; height: 19px; }
.overview .fact-kicker { font-size: 8px; }
.overview .fact-species { display: none; }
.overview .fact-mascot { width: 78px; margin: -4px -3px 2px 9px; }
.overview .highlight-fact h3 { font-size: 17px; margin-bottom: 5px; }
.overview .highlight-fact p { font-size: 12px; line-height: 1.5; }
.overview .fact-source-line { margin-top: 8px; padding-top: 7px; }
.overview .fact-source-line a { font-size: 9px; }
.overview .stats-section { display: flex; flex-direction: column; min-height: 370px; overflow: hidden; margin: 0; padding: 13px 15px 11px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.overview .stats-heading { flex-shrink: 0; margin-bottom: 10px; gap: 10px; }
.overview .stats-heading h2 { font-size: 15px; }
.overview .stats-scope { font-size: 10px; }
.overview .stats-periods button { min-height: 25px; font-size: 10px; padding: 3px 9px; }
.overview .stats-layout { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; gap: 12px; padding-right: 3px; }
.overview .species-panel, .overview .activity-panel { width: 100%; flex-shrink: 0; }
.overview .activity-panel { padding: 0; border: 0; }
.overview .stat-chart-heading { margin-bottom: 5px; }
.overview .stat-chart-heading h3 { font-size: 11px; }
.overview .stat-caption { display: none; }
.overview .stats-bottom { flex-shrink: 0; margin-top: 8px; font-size: 9px; line-height: 1.4; }
.heatmap-scroll { position: relative; max-height: 180px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; background: #fff; }
.heatmap-scroll .stat-chart { width: max-content; min-width: 100%; overflow: visible; }
.heatmap-scroll svg { max-width: none; }
.heatmap-top { position: sticky; top: 0; z-index: 1; background: #fff; }
.overview .heatmap-legend { margin: 7px 0 0 76px; gap: 8px; font-size: 8px; }
.journal-top .primary { min-height: 38px; }
.filters select, .filters input[type=date], .filter-button { min-height: 40px; }
.filters { padding-top: 8px; padding-bottom: 10px; }
.filter-bottom { margin-top: 8px; }
.toggle span { min-height: 32px; font-size: 12px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding-top: 3px; }
.gallery:empty { display: none; }
.observation { appearance: none; display: flex; flex-direction: column; padding: 5px; color: inherit; text-align: left; background: #fff; border: 1px solid #fff; border-radius: 12px; min-width: 0; overflow: hidden; position: relative; animation: enter .35s ease both; transition: transform .25s, box-shadow .25s; }
.observation:hover { transform: translateY(-2px); box-shadow: 0 14px 35px #2a293610; }
.image-wrap { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 9px; background: #eeeef3; }
.image-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.observation:hover img { transform: scale(1.035); }
.image-wrap .tag { position: absolute; top: 8px; left: 8px; display: flex; align-items: center; gap: 5px; background: #25252ce8; color: #fff; padding: 4px 7px; border: 1px solid #ffffff26; border-radius: 7px; font-size: 9px; font-weight: 550; backdrop-filter: blur(8px); }
.tag svg { width: 11px; height: 11px; }
.inspect { display: flex; align-items: center; justify-content: center; position: absolute; right: 12px; bottom: 12px; width: 33px; height: 33px; background: #ffffffed; backdrop-filter: blur(8px); color: #303038; border-radius: 50%; opacity: 0; transform: translateY(5px); transition: transform .25s, opacity .25s; }
.inspect svg { width: 15px; height: 15px; }
.observation:hover .inspect, .observation:focus-visible .inspect { opacity: 1; transform: translateY(0); }
.card-info { width: 100%; padding: 9px 6px 5px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; color: #9797a0; font-size: 10px; margin-bottom: 0; gap: 8px; flex-wrap: wrap; }
.card-meta .cam-caption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta time { white-space: nowrap; }
.observation h2 { font-size: 14px; font-weight: 650; letter-spacing: -.3px; line-height: 1.35; margin: 0 0 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.observation p { color: #858590; font-size: 14px; margin: 0; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.observation .card-error { color: #b7654a; }
.no-image { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #a4a4b2; }
.no-image > span { font-size: 40px; font-weight: 300; }
.no-image small { font-size: 11px; }
.more { display: flex; align-items: center; justify-content: center; gap: 30px; margin: 34px auto 0; padding: 13px 22px; border: 1px solid #dedee7; background: transparent; border-radius: 16px; color: #73737f; font-size: 12px; transition: background .18s; }
.more:hover { background: #fff; }
.more span { font-size: 18px; }
.empty { text-align: center; padding: 28px 20px 58px; min-height: 360px; animation: enter .4s ease both; }
.empty-art { width: 230px; margin: 0 auto 15px; }
.empty-art svg { width: 100%; height: auto; }
.art-shadow { fill: #e5e5ed; stroke: none; }
.art-orbit { stroke: #dbdbe5; stroke-dasharray: 3 6; stroke-width: 1; }
.art-spark { stroke: #ff9478; stroke-width: 1.8; }
.art-body, .art-ring { fill: #2a2a33; stroke: #2a2a33; stroke-width: 3; }
.art-bridge { fill: #2a2a33; stroke: none; }
.art-lens { fill: #ff8b68; stroke: #555561; stroke-width: 2; }
.art-glint { stroke: #ffe0d1; stroke-width: 3; }
.art-bird { stroke: #b3b3c2; stroke-width: 1.5; }
.empty .eyebrow { font-size: 9px; margin-bottom: 10px; }
.empty h2 { font-size: 28px; letter-spacing: -1px; font-weight: 600; margin: 0 0 10px; }
.empty p:not(.eyebrow) { color: #858590; font-size: 14px; line-height: 1.8; margin: 0 auto; max-width: 390px; }
.empty-action { margin-top: 21px; padding: 9px 15px; border: 0; background: #fff; color: #555560; border-radius: 13px; display: inline-flex; align-items: center; gap: 22px; font-size: 12px; transition: background .15s, transform .15s; }
.empty-action:hover { background: var(--accent-soft); transform: translateY(-1px); }
.empty-action span { color: #ed633e; font-size: 18px; }
.error { background: #ffede6; color: #a64225; border-radius: 16px; padding: 15px 18px; font-size: 13px; }
footer { display: flex; gap: 20px; justify-content: space-between; align-items: center; padding: 25px 0 30px; margin-top: 30px; border-top: 1px solid var(--line); color: #a1a1ac; font-size: 10px; }
.footer-brand { font-size: 15px; font-weight: 700; letter-spacing: -.7px; color: #b4b4be; }
.footer-brand span { font-size: 6px; vertical-align: baseline; margin-left: 2px; color: var(--accent); }
#model { text-align: right; }

/* Full-resolution image on the left, observation notes on the right. */
dialog { color: var(--ink); background: #fff; border: 0; border-radius: 30px; padding: 0; box-shadow: 0 32px 120px #12121e40; max-height: 92svh; }
dialog[open] { animation: modal-in .25s cubic-bezier(.2,.8,.2,1); }
dialog::backdrop { background: #18182085; backdrop-filter: blur(9px); }
.detail-dialog { width: min(1280px, 95vw); }
.detail-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 23px; }
.detail-toolbar .eyebrow { margin: 0; font-size: 10px; }
.close { display: grid; place-items: center; width: 36px; height: 36px; font-size: 16px; border: 0; border-radius: 50%; background: #f0f0f5; color: #73737f; }
.close:hover { background: #e5e5ed; color: var(--ink); }
#detail-content { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(330px, 1fr); }
#detail-content.no-detail-image { grid-template-columns: 1fr; }
.detail-image { display: block; width: 100%; height: 100%; min-height: 480px; max-height: calc(92svh - 66px); object-fit: contain; background: #16161b; }
.detail-body { padding: 10px 30px 30px; overflow-y: auto; max-height: calc(92svh - 66px); }
.detail-meta { color: #94949e; font-size: 11px; line-height: 1.7; }
.detail-body h2 { font-size: 30px; line-height: 1.18; letter-spacing: -1.1px; font-weight: 650; margin: 12px 0 17px; }
.detail-body .scene { font-size: 16px; line-height: 1.7; color: #71717d; }
.call-cost { font-size: 13px; font-weight: 600; margin: 8px 0 3px; }
.reason { background: #fff1ea; border-radius: 17px; padding: 17px; font-size: 14px; line-height: 1.7; color: #89432c; margin: 21px 0; }
.reason small { display: block; font-size: 10px; color: #b47861; margin-top: 8px; }
.detail-body h3 { margin: 26px 0 9px; color: #9696a0; text-transform: uppercase; font-size: 10px; letter-spacing: 1.4px; font-weight: 650; }
.animal-row { display: grid; grid-template-columns: 34px 1fr; gap: 11px; padding: 14px 0; border-bottom: 1px solid #eeeef3; }
.animal-count { display: grid; place-items: center; align-self: start; width: 34px; height: 34px; border-radius: 12px; background: #f2f2f6; color: #60606c; font-weight: 650; font-size: 12px; }
.animal-row strong { font-size: 14px; font-weight: 600; }
.animal-row p { margin: 4px 0 7px; color: #858590; font-size: 14px; line-height: 1.7; }
.confidence { display: flex; align-items: center; gap: 8px; font-size: 10px; color: #a0a0aa; }
.confidence meter { width: 45px; height: 4px; border: 0; border-radius: 4px; background: #ededf2; appearance: none; }
meter::-webkit-meter-bar { background: #ededf2; border: 0; border-radius: 4px; }
meter::-webkit-meter-optimum-value { background: #ff987b; border-radius: 4px; }
meter::-moz-meter-bar { background: #ff987b; border-radius: 4px; }
.detail-body ul { padding-left: 17px; font-size: 14px; color: #7b7b86; line-height: 1.8; }
.detail-body li::marker { color: #ff825d; }
.detail-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 25px; }
.detail-links a { display: inline-flex; align-items: center; gap: 8px; background: #f1f1f6; border-radius: 12px; font-size: 11px; color: #6d6d79; padding: 9px 12px; text-decoration: none; }
.detail-links a:hover { background: #e7e7f0; }
.detail-body details { border-top: 1px solid #eeeef3; padding-top: 17px; margin-top: 25px; }
.detail-body summary { cursor: pointer; color: #9696a1; font-size: 11px; }
.detail-body pre { color: #7c7c88; font: 11px/1.7 ui-monospace, monospace; white-space: pre-wrap; word-break: break-word; padding-top: 10px; }
.camera-dialog { width: min(560px, 94vw); }
.camera-help-body { padding: 5px 32px 34px; }
.camera-help-body h2 { font-size: 36px; letter-spacing: -1.4px; line-height: 1.15; font-weight: 600; margin: 0 0 20px; }
.camera-help-body p { font-size: 14px; color: #888893; line-height: 1.8; }
.camera-help-body code { font-size: 12px; color: #5e5e6c; }
.camera-help-body pre { padding: 20px; border-radius: 18px; background: #f3f3f7; color: #696976; font: 11px/1.8 ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; margin: 23px 0; }
.camera-help-body .primary { width: 100%; }
.about-dialog { width: min(550px, 94vw); }
.about-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 26px 18px; padding: 20px 22px; border-radius: 18px; background: #24242b; color: #f4f0e7; }
.about-hero .fact-kicker { margin: 0 0 12px; white-space: normal; }
.about-hero h2 { font-size: 30px; line-height: 1.12; letter-spacing: -1px; margin: 0; font-weight: 650; }
.about-hero img { width: 90px; height: auto; flex-shrink: 0; }
.about-body { padding: 0 28px 28px; font-size: 13px; line-height: 1.75; color: #777782; }
.about-body p { margin: 0 0 13px; }
.about-body ul { margin: 0 0 20px; padding-left: 18px; }
.about-body li { margin-bottom: 8px; padding-left: 3px; }
.about-body strong { color: #44444f; font-weight: 600; }
.about-body h3 { font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; font-weight: 600; color: #92929d; margin: 0 0 9px; }
.about-cameras { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.about-cameras a { color: #44444f; text-underline-offset: 4px; text-decoration-color: #d3d3dc; }
.about-cameras a:hover { color: #e45432; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px #ff633b08; } }
@keyframes enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes guide-arrive { from { opacity: 0; transform: translateY(9px) rotate(5deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }

@media (min-width: 1600px) {
  .gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .fact-heading { margin-bottom: 12px; }
  .fact-mascot { width: 115px; margin-top: -10px; }
  .highlight-fact h3 { max-width: 34ch; }
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .sidebar { padding: 23px 13px 20px; }
  .brand { font-size: 23px; }
  .brand-icon { width: 34px; height: 34px; border-radius: 11px; margin-right: 8px; }
  .brand svg { width: 26px; height: 22px; }
  main, .masthead { padding-left: 30px; padding-right: 30px; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 900px) {
  .overview { grid-template-columns: minmax(0, 1fr); height: auto; }
  .highlight-stack { max-height: none; }
  .overview .stats-section { height: 370px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 26px 15px; }
  .brand { margin: 0; font-size: 26px; }
  .mobile-camera-guide { position: absolute; top: 25px; right: 26px; display: flex; align-items: center; gap: 8px; background: #fff; border: 0; border-radius: 12px; padding: 7px 11px; font-size: 12px; color: #777780; }
  .brand-icon { width: 36px; height: 36px; border-radius: 12px; }
  .sidebar > .sidebar-label, .camera-heading, .camera-list, .add-camera, .sidebar-bottom { display: none; }
  .cost-summary { flex-direction: row; align-items: baseline; gap: 8px; margin: 12px 12px 0; padding-top: 0; flex-wrap: wrap; }
  #cost-total { font-size: 14px; letter-spacing: -.2px; }
  .masthead { height: 42px; }
  .journal-top { padding-top: 16px; }
  h1 { font-size: 30px; }
  .select-field { width: 200px; }
  #detail-content { grid-template-columns: minmax(0, 1fr) minmax(310px, 1fr); }
  .detail-body { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 600px) {
  .highlight-details { grid-template-columns: minmax(0, 1fr); }
  .stats-layout { grid-template-columns: 1fr; gap: 19px; }
  .activity-panel { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .stats-section { padding-top: 16px; }
  .stats-heading { margin-bottom: 17px; gap: 10px; }
  .stats-heading h2 { font-size: 16px; }
  .stats-scope { font-size: 10px; }
  .stats-periods button { padding-left: 10px; padding-right: 10px; }
  .sidebar { padding: 20px 20px 13px; }
  .brand { font-size: 25px; }
  main, .masthead { padding-left: 20px; padding-right: 20px; }
  .masthead { height: 38px; }
  .breadcrumb { font-size: 10px; gap: 9px; }
  .connection { font-size: 9px; gap: 5px; }
  .journal-top { padding: 16px 0 10px; gap: 12px; align-items: center; }
  .eyebrow { font-size: 8px; letter-spacing: 1.4px; margin-bottom: 11px; }
  h1 { font-size: 27px; letter-spacing: -1.2px; }
  .intro { font-size: 11px; max-width: 180px; margin-top: 10px; }
  .primary { min-height: 44px; border-radius: 15px; padding: 0 13px; font-size: 13px; gap: 7px; }
  .primary svg { width: 15px; height: 15px; }
  .button-plus { display: none; }
  .run-controls { padding-top: 0; }
  #run-scope { font-size: 9px; max-width: 100px; }
  .filter-toolbar { gap: 8px; align-items: flex-start; }
  .filter-picks { flex: 1; gap: 8px; }
  .select-field { min-width: 0; width: auto; flex: 1; }
  .select-field > svg { display: none; }
  .select-field select { padding-left: 12px; padding-right: 26px; background-position: right 9px center; }
  select, input[type=date] { font-size: 13px; min-height: 43px; border-radius: 13px; padding-top: 10px; padding-bottom: 10px; }
  .filter-button { min-height: 43px; padding: 0 11px; border-radius: 13px; font-size: 0; gap: 0; }
  .filter-button svg { width: 16px; height: 16px; }
  .filter-button .filter-badge { font-size: 9px; margin-left: 7px; }
  .advanced-filters { grid-template-columns: 1fr 1fr; }
  .advanced-filters label:last-child { grid-column: 1 / -1; }
  .filter-bottom { gap: 8px; margin-top: 10px; align-items: flex-end; }
  .toggles { gap: 5px; }
  .toggle span { font-size: 12px; padding: 5px 9px; min-height: 32px; gap: 4px; }
  .toggle svg { width: 11px; height: 11px; }
  .text-button { padding: 5px 3px; font-size: 10px; }
  .result-count { font-size: 11px; padding-bottom: 6px; }
  .filters { padding-top: 8px; padding-bottom: 10px; }
  .highlight { grid-template-columns: 1fr; margin-bottom: 8px; border-radius: 20px; padding: 5px; }
  .highlight.has-fact { grid-template-columns: 1fr; }
  .highlight-image { border-radius: 15px; width: 100%; }
  .highlight-copy { padding: 13px 12px 12px; }
  .highlight-copy h2 { font-size: 23px; }
  .highlight-reason { font-size: 13px; margin: 7px 0 10px; }
  .highlight-meta { font-size: 10px; }
  .highlight-copy .eyebrow { font-size: 8px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .observation { border-radius: 12px; }
  .image-wrap { aspect-ratio: 16/9; border-radius: 8px; }
  .card-info { padding: 8px 4px 4px; }
  .card-meta { font-size: 9px; }
  .observation h2 { font-size: 13px; }
  .observation p { font-size: 13px; }
  .empty { padding: 20px 10px 30px; }
  .empty-art { width: 200px; }
  .empty h2 { font-size: 25px; letter-spacing: -.9px; }
  .empty p:not(.eyebrow) { font-size: 14px; }
  .empty-action { font-size: 11px; }
  footer { flex-wrap: wrap; justify-content: flex-start; gap: 8px 18px; margin-top: 35px; font-size: 9px; padding-bottom: 25px; }
  .footer-brand { font-size: 13px; }
  #model { flex-basis: 100%; text-align: left; }
  dialog { border-radius: 25px; width: 96vw; max-height: 94svh; }
  .detail-toolbar { padding: 12px 17px; }
  #detail-content { display: block; }
  .detail-image { min-height: 0; max-height: 48svh; width: 100%; height: auto; aspect-ratio: 4/3; }
  .detail-body { padding: 22px 24px 28px; max-height: none; overflow: visible; }
  .detail-body h2 { font-size: 30px; }
  .camera-help-body { padding: 5px 25px 28px; }
  .camera-help-body h2 { font-size: 33px; }
  .camera-help-body pre { font-size: 10px; }
}
@media (max-width: 360px) {
  .gallery { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.filters select, .filters input[type=date] { padding-top: 8px; padding-bottom: 8px; }
