:root {
  --forest: #17261d;
  --forest-2: #20352a;
  --forest-3: #2c4738;
  --moss: #7b8e66;
  --sage: #b4bea9;
  --paper: #f5f2e9;
  --paper-2: #ebe7db;
  --white: #fffef9;
  --ink: #1c241f;
  --muted: #687269;
  --line: #d9d7ce;
  --copper: #b97045;
  --gold: #d0a95e;
  --shadow: 0 18px 50px rgba(23, 38, 29, .09);
  --radius: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .16; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E"); z-index: 20; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.topbar { height: 88px; padding: 0 max(24px, calc((100vw - 1240px)/2)); display: flex; align-items: center; justify-content: space-between; background: rgba(23,38,29,.97); color: var(--white); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(14px); }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 14px; letter-spacing: .11em; }
.brand-mark { display: grid; place-items: center; width: 70px; height: 70px; flex: 0 0 70px; overflow: visible; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 7px 9px rgba(0,0,0,.3)); }
.brand strong { display: block; font-family: Georgia, serif; font-size: 1.05rem; letter-spacing: .18em; }
.brand small { display: block; color: var(--sage); font-size: .61rem; letter-spacing: .19em; margin-top: 1px; }
.top-actions { display: flex; gap: 10px; }
.sync-pill { min-width: 132px; padding: 7px 11px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; color: var(--white); background: rgba(255,255,255,.08); text-align: left; }
.sync-pill:hover { background: rgba(255,255,255,.13); }
.sync-pill strong, .sync-pill small { display: block; line-height: 1.2; }
.sync-pill strong { font-size: .68rem; }
.sync-pill small { margin-top: 2px; color: var(--sage); font-size: .58rem; }
.sync-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(208,169,94,.12); }
.sync-pill.online .sync-dot { background: #86aa74; box-shadow: 0 0 0 4px rgba(134,170,116,.13); }
.sync-pill.offline .sync-dot, .sync-pill.error .sync-dot { background: #cf815c; box-shadow: 0 0 0 4px rgba(207,129,92,.13); }
.sync-pill.syncing .sync-dot { animation: syncPulse 1s ease-in-out infinite; }
@keyframes syncPulse { 50% { transform: scale(.65); opacity: .55; } }
.backup-menu { position: relative; }
.backup-menu-panel { position: absolute; top: calc(100% + 9px); right: 0; z-index: 40; width: 290px; padding: 7px; border: 1px solid rgba(23,38,29,.12); border-radius: 14px; color: var(--ink); background: var(--white); box-shadow: 0 18px 55px rgba(8,17,12,.24); }
.backup-menu-panel[hidden] { display: none; }
.backup-menu-panel > button { width: 100%; padding: 11px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 10px; color: var(--ink); background: transparent; text-align: left; }
.backup-menu-panel > button:hover, .backup-menu-panel > button:focus-visible { background: var(--paper); outline: none; }
.backup-menu-panel strong, .backup-menu-panel small { display: block; }
.backup-menu-panel strong { font-size: .78rem; }
.backup-menu-panel small { margin-top: 1px; color: var(--muted); font-size: .67rem; }
.menu-icon { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; border-radius: 9px; color: var(--forest-3); background: #e9ede5; }
.menu-icon svg { width: 18px; height: 18px; }
.btn { border: 0; border-radius: 12px; padding: 11px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; transition: .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--copper); color: #fff; box-shadow: 0 7px 18px rgba(185,112,69,.24); }
.btn-primary:hover { background: #a96139; }
.btn-ghost { background: rgba(255,255,255,.08); color: inherit; border: 1px solid rgba(255,255,255,.14); }
.btn-ghost:hover { background: rgba(255,255,255,.13); }
main { max-width: 1240px; margin: 0 auto; padding: 0 24px 64px; }
.hero { min-height: 340px; margin: 0 -24px; padding: 54px 24px 46px; display: flex; align-items: end; justify-content: space-between; gap: 30px; position: relative; color: var(--white); background: var(--forest); border-radius: 0 0 34px 34px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(12,24,17,.93) 0%, rgba(19,38,27,.72) 48%, rgba(19,38,27,.22) 100%), linear-gradient(0deg, rgba(13,25,18,.58), transparent 65%); }
.hero::after { content: ""; position: absolute; z-index: 1; right: -40px; bottom: -80px; width: 430px; height: 250px; background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23d4c39b' opacity='.13'%3E%3Cpath d='M0 180C80 75 145 75 220 150S335 80 400 25'/%3E%3Cpath d='M0 210C85 100 160 105 225 175S340 105 400 55'/%3E%3Cpath d='M75 220c70-95 135-70 180-25s105 15 145-60'/%3E%3C/g%3E%3C/svg%3E") center/cover; }
.hero > :not(.hero-photo) { position: relative; z-index: 2; }
.hero-photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 54%; filter: saturate(.82) contrast(1.05); }
.eyebrow, .kicker { margin: 0 0 9px; font-size: .69rem; letter-spacing: .18em; font-weight: 800; color: var(--moss); }
.eyebrow { color: #d4c39b; display: flex; align-items: center; gap: 8px; }
.pulse { width: 7px; height: 7px; background: #d4c39b; border-radius: 50%; box-shadow: 0 0 0 5px rgba(212,195,155,.12); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { margin-bottom: 10px; font-size: clamp(2.35rem, 5vw, 4.25rem); line-height: .98; letter-spacing: -.04em; }
h1 em { color: #d4c39b; font-weight: 400; }
.hero-copy { color: #cbd2c9; max-width: 620px; margin-bottom: 0; font-size: 1.05rem; }
.hero-aside { display: grid; gap: 9px; min-width: 235px; }
.distance-pill { display: flex; align-items: center; gap: 12px; padding: 14px 17px; border-radius: 14px; color: var(--forest); background: #d4c39b; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.distance-pill svg { width: 24px; height: 24px; color: var(--forest-3); }
.distance-pill span, .distance-pill strong, .distance-pill small { display: block; }
.distance-pill small { font-size: .61rem; letter-spacing: .12em; font-weight: 800; }
.distance-pill strong { margin-top: 1px; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; line-height: 1.05; font-weight: 500; }
.privacy-pill { display: flex; align-items: center; gap: 12px; min-width: 235px; padding: 14px 17px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.privacy-pill svg { color: #d4c39b; }
.privacy-pill strong, .privacy-pill small { display: block; }
.privacy-pill strong { font-size: .84rem; }
.privacy-pill small { font-size: .72rem; color: var(--sage); }
.dashboard, .hunts { padding-top: 48px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: 2rem; letter-spacing: -.025em; }
.muted { color: var(--muted); font-size: .86rem; margin-bottom: 3px; }
.season-heading-actions { display: flex; align-items: end; justify-content: end; flex-wrap: wrap; gap: 10px; }
.season-heading-actions .muted { flex-basis: 100%; text-align: right; }
.season-select-label span { display: block; margin: 0 0 3px 3px; color: var(--muted); font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.season-select-label select, .compare-season-btn { height: 40px; border: 1px solid var(--line); border-radius: 10px; color: var(--forest-3); background: var(--white); font-size: .74rem; font-weight: 800; }
.season-select-label select { min-width: 135px; padding: 0 34px 0 11px; }
.compare-season-btn { padding: 0 13px; }
.compare-season-btn:hover, .compare-season-btn.active { color: #fff; background: var(--forest-3); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.stat-card { min-width: 0; background: var(--white); border: 1px solid rgba(23,38,29,.08); border-radius: var(--radius); padding: 23px; min-height: 178px; display: flex; flex-direction: column; box-shadow: 0 7px 25px rgba(23,38,29,.04); }
.stat-card.featured { background: var(--forest); color: var(--white); }
.stat-icon { width: 36px; height: 36px; display: grid; place-items: center; background: var(--paper); color: var(--forest-3); border-radius: 11px; margin-bottom: 22px; }
.featured .stat-icon { background: rgba(255,255,255,.1); color: #d4c39b; }
.stat-card > p { color: var(--muted); font-size: .8rem; font-weight: 700; margin: 0; }
.featured > p { color: var(--sage); }
.stat-card strong { margin: 2px 0 5px; font-family: Georgia, serif; font-size: 2.1rem; line-height: 1; font-weight: 500; }
.stat-card #totalTime { font-size: 1.65rem; }
.stat-card strong small { font-family: inherit; font-size: .94rem; color: var(--muted); }
.featured strong small { color: var(--sage); }
.stat-foot { margin-top: auto; color: var(--muted); font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.featured .stat-foot { color: var(--sage); }
.stat-comparison-period { margin: 7px 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.stat-comparison { margin-top: 5px; }
.stat-change { display: flex; align-items: baseline; gap: 5px; min-height: 44px; padding: 10px 0; color: var(--muted); font-size: .875rem; line-height: 1.4; font-variant-numeric: tabular-nums; list-style: none; cursor: pointer; border-radius: 4px; }
.stat-change::-webkit-details-marker { display: none; }
.stat-change::after { content: "+"; margin-left: auto; padding-left: 3px; flex-shrink: 0; color: var(--muted); font-size: 1rem; line-height: 1; }
.stat-comparison[open] > .stat-change::after { content: "−"; }
.stat-change:hover { text-decoration: underline; text-underline-offset: 3px; }
.stat-change:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; }
.stat-change > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.stat-change-arrow { flex: 0 0 auto; font-size: 1rem; line-height: 1; font-weight: 700; }
.stat-change.up { color: #46733f; }
.stat-change.down { color: #a1453b; }
.stat-change.missing { font-size: .8125rem; }
.featured .stat-change { color: #c4ceb9; }
.featured .stat-change.up { color: #acdaa0; }
.featured .stat-change.down { color: #f3ada2; }
.stat-change[hidden], .stat-comparison-period[hidden], .stat-comparison[hidden] { display: none; }
.stat-comparison-details { padding: 12px 0 1px; border-top: 1px solid var(--line); color: var(--ink); }
.stat-comparison-values { display: grid; gap: 12px; margin: 0 0 12px; }
.stat-comparison-values > div { min-width: 0; padding-left: 10px; border-left: 2px solid #c6d2bf; }
.stat-comparison-values dt { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px; font-size: .875rem; font-weight: 700; }
.stat-comparison-values dt span { color: var(--muted); font-size: .8125rem; font-weight: 400; }
.stat-comparison-values dd { margin: 0; overflow-wrap: anywhere; }
.stat-comparison-values .stat-comparison-value { margin-top: 3px; font-size: 1rem; line-height: 1.4; font-weight: 750; font-variant-numeric: tabular-nums; }
.stat-comparison-values .stat-comparison-basis { margin-top: 2px; color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.stat-comparison-details .stat-comparison-note { margin: 9px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.featured .stat-change::after, .featured .stat-comparison-values dt span, .featured .stat-comparison-basis, .featured .stat-comparison-note { color: #c4ceb9; }
.featured .stat-comparison-details { border-color: #ffffff30; color: var(--white); }
.featured .stat-comparison-values > div { border-color: #a1bf9566; }
.featured .stat-change:focus-visible { outline-color: #c4dcb8; }
.ascent-card { background: linear-gradient(145deg, #fffef9, #eef1e9); }
.bird-trip-card { background: linear-gradient(145deg, #fffef9, #f2eadf); }
.season-comparison-panel { min-height: 0; margin-top: 15px; }
.season-comparison { display: grid; gap: 13px; }
.comparison-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.comparison-metric { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #faf9f4; }
.comparison-metric small, .comparison-metric strong, .comparison-metric span { display: block; }
.comparison-metric small { color: var(--muted); font-size: .61rem; text-transform: uppercase; letter-spacing: .07em; }
.comparison-metric strong { margin-top: 3px; font-family: Georgia, serif; font-size: 1.18rem; }
.comparison-metric span { margin-top: 3px; color: var(--muted); font-size: .65rem; }
.comparison-metric .positive { color: #52734d; }
.comparison-metric .negative { color: #9a5d3b; }
.comparison-bars { display: grid; gap: 8px; }
.comparison-bar-row { display: grid; grid-template-columns: 110px 1fr 1fr; align-items: center; gap: 8px; color: var(--muted); font-size: .68rem; }
.comparison-bar { height: 28px; display: flex; align-items: center; padding: 0 9px; border-radius: 8px; color: #fff; background: var(--forest-3); font-weight: 800; min-width: 42px; }
.comparison-bar.previous { background: var(--copper); }
.season-comparison-empty { min-height: 170px; display: grid; place-content: center; padding: 24px; border: 1px dashed var(--line); border-radius: 13px; text-align: center; background: #faf9f4; }
.season-comparison-empty strong { color: var(--forest-3); font-family: Georgia, serif; font-size: 1.05rem; }
.season-comparison-empty p { max-width: 590px; margin: 6px auto 0; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.season-comparison-context { display: flex; flex-wrap: wrap; gap: 7px; }
.season-comparison-context > span { padding: 7px 9px; display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; color: var(--muted); background: var(--paper); font-size: .62rem; }
.season-comparison-context strong { color: var(--forest-3); }
.quality-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #a64f3f; box-shadow: 0 0 0 3px rgba(166,79,63,.1); }
.quality-dot.medium { background: #b78731; box-shadow: 0 0 0 3px rgba(183,135,49,.12); }
.quality-dot.good { background: #59815c; box-shadow: 0 0 0 3px rgba(89,129,92,.12); }
.season-like-for-like { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.season-like-for-like section { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #faf9f4; }
.season-like-for-like h4 { margin: 2px 0 10px; color: var(--forest-3); font-family: Georgia, serif; font-size: .9rem; font-weight: 500; }
.season-like-for-like section > p:not(.kicker) { margin: 7px 0 0; color: var(--muted); font-size: .62rem; line-height: 1.5; }
.like-for-like-values { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.like-for-like-values span { padding: 9px; border-radius: 10px; background: #fff; }
.like-for-like-values small, .like-for-like-values strong, .like-for-like-values em { display: block; }
.like-for-like-values small { color: var(--muted); font-size: .59rem; font-weight: 850; }
.like-for-like-values strong { margin-top: 2px; color: var(--forest-3); font-family: Georgia, serif; font-size: 1.15rem; }
.like-for-like-values em { color: var(--muted); font-size: .57rem; font-style: normal; }
.season-area-rows { display: grid; gap: 6px; }
.season-area-rows > span { padding: 8px 9px; border-radius: 9px; background: #fff; }
.season-area-rows strong, .season-area-rows small { display: block; }
.season-area-rows strong { color: var(--forest-3); font-size: .67rem; }
.season-area-rows small { margin-top: 2px; color: var(--muted); font-size: .58rem; }
.hunt-comparison-panel { min-height: 0; margin-top: 15px; }
.comparison-panel-head { gap: 22px; }
.panel-helper { max-width: 660px; margin: 5px 0 0; color: var(--muted); font-size: .72rem; }
.comparison-pickers { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 12px; padding: 13px; border-radius: 13px; background: var(--paper); }
.comparison-pickers label > span { display: block; margin: 0 0 4px 3px; color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.comparison-pickers select { width: 100%; height: 42px; padding: 0 34px 0 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--forest-3); background: var(--white); font-size: .76rem; font-weight: 750; }
.comparison-pickers select:disabled { opacity: .58; }
.comparison-vs { align-self: center; padding-top: 18px; color: var(--muted); font-family: Georgia, serif; font-size: .8rem; font-style: italic; }
.hunt-comparison { margin-top: 12px; }
.comparison-results { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 12px; }
.comparison-divider { display: grid; place-items: center; color: var(--muted); }
.comparison-divider::before, .comparison-divider::after { content: ""; width: 1px; height: 100%; grid-area: 1 / 1; background: var(--line); }
.comparison-divider span { z-index: 1; padding: 7px 4px; background: var(--white); font-family: Georgia, serif; font-size: .7rem; font-style: italic; }
.comparison-result-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #faf9f4; }
.comparison-result-card header { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.comparison-result-card header p { margin: 0; color: var(--muted); font-size: .67rem; }
.comparison-result-card h4 { margin: 1px 0 5px; color: var(--forest-3); font-family: Georgia, serif; font-size: 1.08rem; }
.comparison-result-card header button { flex: 0 0 auto; padding: 7px 9px; border: 0; border-radius: 8px; color: #fff; background: var(--forest-3); font-size: .66rem; font-weight: 800; }
.comparison-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.comparison-stat-grid div { min-width: 0; padding: 9px; border-radius: 9px; background: var(--white); }
.comparison-stat-grid small, .comparison-stat-grid strong { display: block; }
.comparison-stat-grid small { color: var(--muted); font-size: .59rem; letter-spacing: .04em; text-transform: uppercase; }
.comparison-stat-grid strong { margin-top: 2px; overflow-wrap: anywhere; color: var(--forest-3); font-size: .73rem; }
.comparison-context { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 7px; }
.comparison-context > span { padding: 9px; border-radius: 9px; background: #eef1e9; }
.comparison-context small, .comparison-context strong { display: block; }
.comparison-context small { color: var(--muted); font-size: .61rem; }
.comparison-context strong { margin-top: 1px; color: var(--forest-3); font-size: .71rem; }
.comparison-species { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.comparison-species span { padding: 5px 7px; border-radius: 20px; color: var(--muted); background: var(--paper-2); font-size: .64rem; }
.comparison-species strong { color: var(--forest-3); }
.comparison-empty { min-height: 120px; display: grid; place-items: center; color: var(--muted); text-align: center; font-size: .78rem; }
.hunting-assistant-panel { min-height: 0; margin-top: 15px; overflow: hidden; background: linear-gradient(145deg, #fffef9 0%, #f0f3ea 100%); }
.assistant-intro { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 14px; }
.assistant-intro h3 { margin: 0; color: var(--forest-3); font-size: 1.35rem; }
.assistant-intro p:not(.kicker) { max-width: 720px; margin: 4px 0 0; color: var(--muted); font-size: .75rem; }
.assistant-mark { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; color: #d7c49a; background: var(--forest); box-shadow: 0 8px 20px rgba(23,38,29,.16); }
.assistant-mark svg { width: 25px; height: 25px; }
.owner-only-chip { padding: 5px 8px; border: 1px solid #ccd8c6; border-radius: 20px; color: #4d6549; background: #edf3e9; font-size: .61rem; font-weight: 800; white-space: nowrap; }
.assistant-connection-notice { display: flex; align-items: center; gap: 9px; padding: 10px 12px; margin-top: 14px; border: 1px solid #dbcda8; border-radius: 11px; color: #6a5834; background: #fbf6e8; font-size: .69rem; }
.assistant-connection-notice[hidden] { display: none; }
.assistant-connection-notice > span:nth-child(2) { flex: 1; }
.assistant-connection-notice button { flex: 0 0 auto; padding: 6px 9px; border: 1px solid #bcae88; border-radius: 8px; color: var(--forest-3); background: rgba(255,255,255,.78); font-size: .63rem; font-weight: 800; }
.assistant-connection-pulse { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #b88c3e; box-shadow: 0 0 0 0 rgba(184,140,62,.35); animation: assistantConnectionPulse 1.8s ease-out infinite; }
.assistant-quick-prompts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.assistant-quick-prompts button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 20px; color: var(--forest-3); background: rgba(255,255,255,.78); font-size: .67rem; font-weight: 750; }
.assistant-quick-prompts button:hover, .assistant-quick-prompts button:focus-visible { border-color: var(--moss); background: #fff; outline: none; }
.assistant-quick-prompts button:disabled, .assistant-compose textarea:disabled { cursor: not-allowed; opacity: .53; }
.assistant-form { margin-top: 11px; }
.assistant-form > label { display: block; margin: 0 0 5px 3px; color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.assistant-compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 8px; }
.assistant-compose textarea { width: 100%; min-height: 58px; max-height: 150px; padding: 11px 13px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--white); font-size: .78rem; line-height: 1.45; }
.assistant-compose textarea:focus { border-color: var(--moss); outline: 3px solid rgba(123,142,102,.13); }
.assistant-compose .btn { min-width: 106px; }
.assistant-compose .btn:disabled { cursor: wait; opacity: .7; transform: none; }
.assistant-response { padding: 14px 15px; margin-top: 12px; border: 1px solid #ccd8c6; border-radius: 13px; background: rgba(255,255,255,.78); }
.assistant-response.error { border-color: #e0c5b6; background: #fbf2ed; }
.assistant-response.loading { color: var(--muted); }
.assistant-response-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.assistant-response-head strong { color: var(--forest-3); font-size: .75rem; }
.assistant-response-head span { color: var(--muted); font-size: .61rem; text-align: right; }
.assistant-log-choice { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; color: var(--muted); font-size: .875rem; }
.assistant-log-choice select { max-width: 100%; min-height: 36px; padding: 5px 26px 5px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--forest); background: var(--white); font-size: .875rem; }
.assistant-log-choice > span { flex-basis: 100%; font-size: .8125rem; }
.assistant-log-basis { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.assistant-log-basis summary { cursor: pointer; color: var(--forest-3); }
.assistant-log-basis p { margin: 9px 0; }
.assistant-log-basis small { display: block; margin-top: 3px; font-size: .8125rem; }
.assistant-conversation-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 12px 0; color: var(--muted); font-size: .8125rem; }
.assistant-conversation-bar button { border: 1px solid var(--line); background: transparent; color: var(--forest-3); border-radius: 8px; min-height: 36px; padding: 6px 10px; cursor: pointer; }
.assistant-history { border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.45); margin: 0 0 14px; padding: 10px 12px; }
.assistant-history summary { color: var(--forest-3); cursor: pointer; font-size: .8125rem; }
.assistant-history article { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; font-size: .875rem; line-height: 1.65; overflow-wrap: anywhere; }
.assistant-history article > small { display: block; color: var(--muted); }
.assistant-history article > strong { display: block; margin: 5px 0; }
.assistant-history h4 { margin: 12px 0 5px; }
.assistant-conversation-notice { color: var(--forest-3); font-size: .875rem; line-height: 1.5; }
.assistant-conversation-notice.error { color: #863f2d; }
.assistant-current-question { border-left: 2px solid #bdcab6; padding-left: 10px; color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.assistant-trip-link { display: inline; min-height: 36px; padding: 5px 8px; margin: 2px 3px; border: 1px solid #c7d4bf; border-radius: 7px; background: #f1f5ec; color: var(--forest-3); font: inherit; font-size: .8em; line-height: 1.6; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.assistant-trip-link:hover { background: #e3eddc; border-color: var(--forest-3); }
.assistant-trip-link:focus-visible, .assistant-conversation-bar button:focus-visible { outline: 2px solid var(--forest-3); outline-offset: 3px; }
.assistant-weather { padding: 10px; margin: 0 0 11px; border: 1px solid #d8dfd1; border-radius: 11px; background: #f3f6ef; }
.assistant-weather[hidden] { display: none; }
.assistant-weather-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.assistant-weather-head strong { color: var(--forest-3); font-size: .68rem; }
.assistant-weather-head span { color: var(--muted); font-size: .58rem; }
.assistant-weather-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 6px; }
.assistant-weather-card { min-width: 0; padding: 7px 8px; border-radius: 8px; background: rgba(255,255,255,.8); }
.assistant-weather-card strong, .assistant-weather-card span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assistant-weather-card strong { color: var(--forest-3); font-size: .65rem; }
.assistant-weather-card span { margin-top: 2px; color: var(--muted); font-size: .59rem; }
.assistant-weather-more { align-self: center; color: var(--muted); font-size: .58rem; }
#huntingAssistantAnswer { color: var(--ink); font-size: .86rem; line-height: 1.75; overflow-wrap: anywhere; }
#huntingAssistantAnswer p { margin: 0 0 .8em; }
#huntingAssistantAnswer > p:first-child { color: var(--forest-3); font-size: .96rem; }
#huntingAssistantAnswer h4, .assistant-source-content h4 { margin: 1.2em 0 .35em; color: var(--forest-3); font-size: .84rem; font-family: inherit; }
#huntingAssistantAnswer ul, #huntingAssistantAnswer ol { margin: .45em 0 1em; padding-left: 1.4em; }
#huntingAssistantAnswer li { margin: .5em 0; padding-left: .2em; }
.assistant-citation { margin: 0 .16em; color: var(--forest-3); text-decoration: underline; text-underline-offset: .2em; font-size: .82em; }
.assistant-citation:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; }
.assistant-sources { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; line-height: 1.65; overflow-wrap: anywhere; }
.assistant-sources summary { cursor: pointer; width: fit-content; }
.assistant-sources ul { padding-left: 1.25em; }
.assistant-source-note { margin: 0; }
.assistant-privacy { display: flex; align-items: center; gap: 7px; margin: 10px 0 0; color: var(--muted); font-size: .62rem; }
.assistant-privacy svg { width: 15px; height: 15px; flex: 0 0 15px; color: var(--moss); }
.hunting-assistant-panel.assistant-attention { animation: assistantAttention .95s ease-out; }
.next-hunt-panel { min-height: 0; margin-top: 15px; overflow: hidden; background: linear-gradient(145deg, #fffef9 0%, #f4efe4 100%); }
.planner-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; }
.planner-head h3 { margin: 0; color: var(--forest-3); font-size: 1.35rem; }
.planner-controls { display: flex; align-items: end; gap: 8px; flex: 0 0 auto; }
.planner-controls label > span { display: block; margin: 0 0 4px 3px; color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.planner-controls input { height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--forest-3); background: var(--white); font-size: .75rem; font-weight: 750; }
.planner-controls .btn { height: 42px; padding-top: 0; padding-bottom: 0; font-size: .72rem; }
.planner-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }
.planner-empty { grid-column: 1 / -1; min-height: 115px; display: grid; place-items: center; padding: 18px; border: 1px dashed var(--line); border-radius: 13px; color: var(--muted); background: rgba(255,255,255,.46); font-size: .75rem; text-align: center; }
.planner-area { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.78); }
.planner-area.top { border-color: #b7c6ac; background: #f3f7ef; box-shadow: 0 8px 20px rgba(42,65,47,.07); }
.planner-area-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.planner-rank { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--forest-3); font-size: .68rem; font-weight: 900; }
.planner-area h4 { flex: 1; min-width: 0; margin: 1px 0 0; overflow: hidden; color: var(--forest-3); font-family: Georgia, serif; font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.planner-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 11px; }
.planner-metrics > span { padding: 8px; border-radius: 9px; background: var(--paper); }
.planner-metrics small, .planner-metrics strong { display: block; }
.planner-metrics small { color: var(--muted); font-size: .58rem; text-transform: uppercase; letter-spacing: .04em; }
.planner-metrics strong { margin-top: 2px; color: var(--forest-3); font-size: .71rem; }
.planner-weather { margin: 8px 0 0; color: var(--muted); font-size: .67rem; line-height: 1.5; }
.planner-area-actions { display: flex; gap: 7px; margin-top: 10px; }
.planner-area-actions button { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--forest-3); background: #fff; font-size: .62rem; font-weight: 800; }
.planner-area-actions button:hover, .planner-area-actions button:focus-visible { border-color: var(--moss); outline: none; }
.planner-note { margin: 10px 0 0; color: var(--muted); font-size: .62rem; }
.lefty-companion { position: fixed; right: clamp(9px, 1.8vw, 24px); bottom: max(8px, env(safe-area-inset-bottom)); z-index: 29; width: clamp(116px, 10vw, 148px); pointer-events: none; }
.lefty-companion[hidden], .lefty-speech[hidden] { display: none; }
.lefty-companion-button { position: relative; width: 100%; padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.lefty-companion-button:focus-visible { outline: 3px solid rgba(216,194,141,.92); outline-offset: 3px; border-radius: 46% 46% 18px 18px; }
.lefty-companion-image { display: block; width: 100%; height: auto; transform-origin: 52% 93%; filter: drop-shadow(0 13px 12px rgba(17,28,21,.28)); clip-path: polygon(0 0, 72% 0, 74% 22%, 93% 35%, 95% 67%, 100% 74%, 100% 100%, 0 100%); pointer-events: none; animation: leftyBreathe 4.2s ease-in-out infinite; }
.lefty-companion-image.lefty-frames-ready { clip-path: none; }
.lefty-companion-button:hover .lefty-companion-image { animation-play-state: paused; }
.lefty-nameplate { position: absolute; right: -1px; bottom: 4px; display: grid; min-width: 74px; padding: 7px 10px 6px; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; color: #fff; background: rgba(23,38,29,.94); box-shadow: 0 7px 20px rgba(13,23,17,.27); backdrop-filter: blur(8px); text-align: left; pointer-events: auto; }
.lefty-nameplate strong { font-size: .69rem; letter-spacing: .15em; line-height: 1; }
.lefty-nameplate small { margin-top: 3px; color: #d7c49a; font-size: .48rem; letter-spacing: .03em; }
.lefty-connection-dot { position: absolute; right: 4px; bottom: 43px; width: 11px; height: 11px; border: 2px solid var(--white); border-radius: 50%; background: #ba8e41; box-shadow: 0 2px 8px rgba(19,31,23,.28); }
.lefty-connection-dot.connected { background: #6f9a63; }
.lefty-connection-dot.checking { animation: assistantConnectionPulse 1.4s ease-out infinite; }
.lefty-speech { position: absolute; right: 78%; bottom: 72%; width: 232px; padding: 15px 36px 14px 16px; border: 1px solid rgba(23,38,29,.13); border-radius: 17px 17px 5px 17px; color: var(--forest-3); background: rgba(255,254,249,.97); box-shadow: 0 16px 40px rgba(16,29,20,.2); pointer-events: auto; animation: leftySpeechIn .38s cubic-bezier(.2,.9,.25,1.25); }
.lefty-speech::after { content: ""; position: absolute; right: -10px; bottom: 18px; width: 20px; height: 20px; border-right: 1px solid rgba(23,38,29,.13); border-bottom: 1px solid rgba(23,38,29,.13); background: rgba(255,254,249,.97); transform: rotate(-45deg); }
.lefty-speech strong, .lefty-speech span, .lefty-speech small { display: block; }
.lefty-speech strong { font-family: Georgia, serif; font-size: 1rem; }
.lefty-speech span { margin-top: 1px; font-family: Georgia, serif; font-size: .91rem; }
.lefty-speech small { margin-top: 6px; color: var(--muted); font-size: .57rem; font-weight: 700; letter-spacing: .03em; }
.lefty-speech-close { position: absolute; z-index: 1; right: 7px; top: 7px; width: 25px; height: 25px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--muted); background: transparent; }
.lefty-speech-close:hover, .lefty-speech-close:focus-visible { color: var(--forest-3); background: var(--paper-2); outline: none; }
.lefty-speech-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
@keyframes leftyBreathe { 0%, 100% { transform: translateY(0) rotate(0); } 45% { transform: translateY(-4px) rotate(-.45deg); } 65% { transform: translateY(-2px) rotate(.35deg); } }
@keyframes leftySpeechIn { from { opacity: 0; transform: translate(10px, 9px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes assistantConnectionPulse { 0% { box-shadow: 0 0 0 0 rgba(184,140,62,.38); } 70%, 100% { box-shadow: 0 0 0 8px rgba(184,140,62,0); } }
@keyframes assistantAttention { 0%, 100% { box-shadow: var(--shadow); } 35% { box-shadow: 0 0 0 4px rgba(123,142,102,.22), 0 18px 50px rgba(23,38,29,.16); } }
.visual-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 15px; margin-top: 15px; }
.map-trend-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 15px; margin-top: 15px; }
.bird-map-panel { min-height: 0; margin-top: 15px; }
.bird-map-head { gap: 18px; }
.bird-map-controls { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.segmented { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--paper-2); }
.segmented button { padding: 6px 10px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: .65rem; font-weight: 800; }
.segmented button.active { color: #fff; background: var(--forest-3); box-shadow: 0 2px 7px rgba(23,38,29,.18); }
.season-map.bird-observation-map { height: 280px; }
.bird-map-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.privacy-note { margin: 8px 2px 0; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .65rem; }
.privacy-note svg { width: 15px; height: 15px; color: var(--moss); }
.insights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; }
.advanced-insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 15px; }
.priority-insights-grid .panel { min-height: 280px; }
.lifetime-panel { margin-top: 15px; padding: 21px 24px 12px; }
.lifetime-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.lifetime-heading h3 { margin: 3px 0 0; font-family: Georgia, serif; font-size: 1.3rem; color: var(--forest-3); }
.lifetime-years { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.lifetime-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin: 18px 0 13px; }
.lifetime-totals > div { border-left: 2px solid var(--sage); padding-left: 13px; }
.lifetime-totals span, .lifetime-totals strong, .lifetime-totals small { display: block; }
.lifetime-totals span { font-size: .875rem; color: var(--muted); }
.lifetime-totals strong { margin-top: 3px; font-family: Georgia, serif; font-size: 1.45rem; color: var(--forest-3); }
.lifetime-totals small { margin-top: 3px; font-size: .75rem; color: var(--muted); }
.lifetime-coverage { margin: 8px 0; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.lifetime-areas { border-top: 1px solid var(--line); }
.lifetime-areas summary { cursor: pointer; padding: 12px 0; color: var(--forest-3); font-size: .875rem; font-weight: 700; }
.lifetime-table-wrap { overflow-x: auto; }
.lifetime-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.lifetime-table th, .lifetime-table td { padding: 9px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lifetime-table th { color: var(--muted); font-size: .8125rem; }
.lifetime-table th:first-child, .lifetime-table td:first-child { text-align: left; padding-left: 0; }
.lifetime-table button { background: none; border: 0; color: var(--forest-3); padding: 3px 0; font-weight: 700; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.lifetime-table small { display: block; font-size: .75rem; color: var(--muted); }
.lifetime-area-total { margin: 0 0 10px; font-size: .875rem; line-height: 1.5; }
.lifetime-trip { display: flex; justify-content: space-between; gap: 15px; width: 100%; padding: 14px 0; text-align: left; border: 0; border-top: 1px solid var(--line); background: none; font-size: 1rem; color: var(--forest-3); }
.lifetime-trip:hover { background: var(--paper); }
.lifetime-trip > span:last-child { text-align: right; flex-shrink: 0; }
.lifetime-trip small { display: block; margin-top: 4px; color: var(--muted); font-size: .8125rem; }
@media (max-width: 600px) {
  .lifetime-panel { padding: 18px 16px 8px; }
  .lifetime-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 10px; }
  .lifetime-totals strong { font-size: 1.25rem; }
  .lifetime-table th, .lifetime-table td { padding: 9px 7px; }
}
.contact-weather-panel { min-height: 0; margin-top: 15px; overflow: hidden; background: linear-gradient(150deg, #fffef9 0%, #f1f4ed 100%); }
.contact-weather-panel-head { align-items: end; gap: 20px; }
.contact-weather-panel-head .panel-helper { max-width: 720px; }
.contact-weather-species { flex-wrap: wrap; justify-content: flex-end; flex: 0 0 auto; }
.contact-weather-analysis { display: grid; gap: 13px; }
.contact-weather-basis { padding: 12px 13px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #d9e0d4; border-radius: 13px; background: rgba(255,255,255,.76); }
.contact-weather-basis > div { min-width: 0; display: flex; align-items: center; gap: 11px; }
.contact-weather-basis-icon { width: 37px; height: 37px; flex: 0 0 37px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--forest-3); font-size: .68rem; font-weight: 900; letter-spacing: -.02em; }
.contact-weather-basis p { min-width: 0; margin: 0; }
.contact-weather-basis strong, .contact-weather-basis small { display: block; }
.contact-weather-basis strong { color: var(--forest-3); font-size: .73rem; }
.contact-weather-basis small { margin-top: 2px; color: var(--muted); font-size: .61rem; line-height: 1.45; }
.contact-weather-basis > .evidence-quality { flex: 0 0 auto; }
.contact-weather-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-weather-factor { min-width: 0; padding: 14px; border: 1px solid #dfe2d9; border-radius: 14px; background: rgba(255,254,249,.92); }
.contact-weather-factor-head { min-height: 40px; display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.contact-weather-factor-head h4 { margin: 0; color: var(--forest-3); font-family: Georgia, serif; font-size: .94rem; font-weight: 500; }
.contact-weather-factor-head p { margin: 1px 0 0; color: var(--muted); font-size: .58rem; }
.contact-weather-factor-head > span { flex: 0 0 auto; padding: 3px 6px; border-radius: 12px; color: var(--muted); background: var(--paper); font-size: .55rem; font-weight: 800; }
.contact-weather-rows { display: grid; gap: 5px; margin-top: 8px; }
.contact-weather-row { width: 100%; min-width: 0; padding: 8px; display: grid; grid-template-columns: minmax(126px, .95fr) minmax(70px, 1fr) 64px; align-items: center; gap: 9px; border: 0; border-radius: 9px; color: inherit; background: transparent; text-align: left; }
.contact-weather-row:hover, .contact-weather-row:focus-visible { background: #eef2e9; outline: none; }
.contact-weather-row-title, .contact-weather-value { min-width: 0; }
.contact-weather-row-title strong, .contact-weather-row-title small, .contact-weather-value strong, .contact-weather-value small { display: block; }
.contact-weather-row-title strong { overflow: hidden; color: var(--forest-3); font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.contact-weather-row-title small { margin-top: 1px; color: var(--muted); font-size: .54rem; }
.contact-weather-track { height: 8px; overflow: hidden; border-radius: 8px; background: var(--paper-2); }
.contact-weather-track i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--moss), #9dac89); }
.contact-weather-value { text-align: right; }
.contact-weather-value strong { color: var(--forest-3); font-family: Georgia, serif; font-size: .96rem; line-height: 1; }
.contact-weather-value small { margin-top: 2px; color: var(--muted); font-size: .52rem; white-space: nowrap; }
.contact-weather-factor-empty { min-height: 74px; display: grid; place-items: center; color: var(--muted); font-size: .65rem; text-align: center; }
.contact-weather-empty { min-height: 138px; padding: 24px; display: grid; place-content: center; border: 1px dashed #ccd5c6; border-radius: 14px; text-align: center; background: rgba(255,255,255,.47); }
.contact-weather-empty strong { color: var(--forest-3); font-family: Georgia, serif; font-size: 1rem; font-weight: 500; }
.contact-weather-empty p { max-width: 560px; margin: 5px auto 0; color: var(--muted); font-size: .68rem; }
.contact-weather-method { margin: 0; color: var(--muted); font-size: .59rem; line-height: 1.5; }
.effort-analysis-panel { min-height: 0; margin-top: 15px; overflow: hidden; background: linear-gradient(145deg, #fffef9 0%, #f2f4ee 100%); }
.effort-analysis-head { align-items: end; gap: 20px; }
.effort-analysis-head .panel-helper { max-width: 710px; }
.effort-analysis-status { flex: 0 0 auto; padding: 5px 9px; border: 1px solid #d2dacd; border-radius: 20px; color: var(--forest-3); background: rgba(255,255,255,.76); font-size: .59rem; font-weight: 850; }
.effort-analysis { display: grid; gap: 11px; }
.effort-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.effort-overview > div { min-width: 0; padding: 13px; border: 1px solid #dce1d8; border-radius: 13px; background: rgba(255,255,255,.8); }
.effort-overview small, .effort-overview strong, .effort-overview span { display: block; }
.effort-overview small { color: var(--muted); font-size: .59rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.effort-overview strong { margin-top: 3px; color: var(--forest-3); font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.effort-overview span { margin-top: 2px; color: var(--muted); font-size: .61rem; }
.effort-dimensions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.effort-dimension { position: relative; min-width: 0; overflow: visible; border: 1px solid var(--line); border-radius: 13px; background: #faf9f4; }
.effort-dimension > button { width: 100%; min-height: 125px; padding: 13px 36px 13px 13px; border: 0; border-radius: inherit; color: inherit; background: transparent; text-align: left; }
.effort-dimension > button:hover, .effort-dimension > button:focus-visible { background: #f0f3eb; outline: none; }
.effort-dimension p, .effort-dimension strong, .effort-dimension span, .effort-dimension small { display: block; }
.effort-dimension p { margin: 0; color: var(--muted); font-size: .58rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.effort-dimension strong { margin-top: 5px; overflow: hidden; color: var(--forest-3); font-family: Georgia, serif; font-size: 1.02rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.effort-dimension span { margin-top: 7px; color: var(--muted); font-size: .62rem; }
.effort-dimension span b { color: var(--forest-3); font-size: .76rem; }
.effort-dimension small { margin-top: 3px; color: var(--muted); font-size: .55rem; line-height: 1.45; }
.effort-dimension.empty { min-height: 125px; padding: 13px; display: flex; flex-direction: column; justify-content: space-between; }
.effort-dimension.empty div > p { margin: 0; }
.effort-dimension.empty > small { max-width: 190px; }
.effort-profile-empty { padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px dashed #becbb7; border-radius: 13px; background: rgba(255,255,255,.64); }
.effort-profile-empty strong { color: var(--forest-3); font-size: .75rem; }
.effort-profile-empty p { max-width: 680px; margin: 3px 0 0; color: var(--muted); font-size: .65rem; line-height: 1.5; }
.effort-profile-empty button { flex: 0 0 auto; padding: 8px 10px; border: 1px solid #bdc9b7; border-radius: 9px; color: #fff; background: var(--forest-3); font-size: .64rem; font-weight: 850; }
.effort-method { margin: 0; color: var(--muted); font-size: .58rem; line-height: 1.5; }
.evidence-quality { position: relative; }
.evidence-quality summary { min-height: 28px; padding: 5px 9px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #d8ded3; border-radius: 18px; color: var(--forest-3); background: #fffef9; cursor: pointer; font-size: .58rem; font-weight: 850; list-style: none; white-space: nowrap; }
.evidence-quality summary::-webkit-details-marker { display: none; }
.evidence-quality summary i { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #a64f3f; box-shadow: 0 0 0 3px rgba(166,79,63,.1); }
.evidence-quality.medium summary i { background: #b78731; box-shadow: 0 0 0 3px rgba(183,135,49,.12); }
.evidence-quality.good summary i { background: #59815c; box-shadow: 0 0 0 3px rgba(89,129,92,.12); }
.evidence-quality[open] summary { border-color: #b8c4b3; }
.evidence-quality-popover { position: absolute; z-index: 20; top: calc(100% + 7px); right: 0; width: min(290px, 78vw); padding: 11px 12px; border: 1px solid #d7ddd2; border-radius: 11px; color: var(--ink); background: #fffef9; box-shadow: 0 14px 34px rgba(23,38,29,.16); white-space: normal; }
.evidence-quality-popover strong, .evidence-quality-popover p, .evidence-quality-popover small { display: block; }
.evidence-quality-popover strong { color: var(--forest-3); font-size: .68rem; }
.evidence-quality-popover p { margin: 4px 0; color: var(--ink); font-size: .62rem; line-height: 1.45; }
.evidence-quality-popover small { color: var(--muted); font-size: .55rem; line-height: 1.45; }
.evidence-quality.dot-only { position: absolute; z-index: 3; top: 8px; right: 8px; }
.evidence-quality.dot-only summary { width: 26px; min-height: 26px; padding: 0; }
.panel { min-height: 340px; padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid rgba(23,38,29,.08); box-shadow: 0 7px 25px rgba(23,38,29,.04); }
.panel-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 12px; }
.panel h3 { font-size: 1.25rem; margin: 0; }
.legend-dot { color: var(--muted); font-size: .7rem; display: flex; align-items: center; gap: 7px; }
.legend-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); }
.chart { height: 250px; display: grid; place-items: center; }
.chart-scroll { width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-color: #c6c2b7 transparent; scrollbar-width: thin; }
.chart-scroll svg { min-width: 100%; height: 100%; display: block; overflow: visible; }
.chart .grid-line { stroke: #e7e5dc; stroke-width: 1; }
.chart .bar { fill: var(--copper); rx: 5; transition: .2s; }
.chart .distance-trip { cursor: pointer; outline: none; }
.chart .distance-trip:hover .bar, .chart .distance-trip:focus .bar { fill: #965830; filter: drop-shadow(0 3px 4px rgba(23,38,29,.2)); }
.chart text { font-family: inherit; fill: var(--muted); font-size: 10px; }
.chart .bar-label { fill: var(--ink); font-weight: 700; }
.chart-empty { color: var(--muted); text-align: center; font-size: .82rem; }
.chart-empty svg { display: block; width: 42px; height: 42px; margin: 0 auto 10px; color: var(--sage); }
.monthly-distance-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 7px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.monthly-summary-card { min-width: 0; padding: 9px 10px; border-radius: 10px; background: var(--paper); }
.monthly-summary-card span, .monthly-summary-card strong, .monthly-summary-card small { display: block; }
.monthly-summary-card span { color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.monthly-summary-card strong { margin-top: 2px; color: var(--forest-3); font-family: Georgia, serif; font-size: .92rem; }
.monthly-summary-card small { margin-top: 1px; color: var(--muted); font-size: .63rem; }
.bird-chart { padding-top: 8px; display: grid; gap: 17px; }
.bird-row { display: grid; grid-template-columns: 72px 1fr 46px; gap: 11px; align-items: center; }
.bird-name strong { display: block; font-family: Georgia, serif; font-size: .97rem; }
.bird-name small { color: var(--muted); font-size: .66rem; }
.bars { display: grid; gap: 6px; }
.bar-track { height: 9px; background: var(--paper-2); border-radius: 9px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: inherit; min-width: 0; transition: width .35s ease; }
.bar-fill.obs { background: var(--moss); }
.bar-fill.shot { background: var(--copper); }
.bird-rate { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: var(--forest-3); background: var(--paper); font-size: .7rem; font-weight: 800; }
.bird-legend { padding-top: 2px; border-top: 1px solid var(--line); display: flex; gap: 18px; color: var(--muted); font-size: .66rem; }
.bird-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bird-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.map-panel, .trend-panel { min-height: 430px; }
.map-key, .legend-line { color: var(--muted); font-size: .7rem; display: flex; align-items: center; gap: 7px; }
.map-key i { width: 9px; height: 9px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 4px rgba(185,112,69,.13); }
.legend-line::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--copper); }
.season-map { width: 100%; height: 330px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #e5e9df; }
.season-map svg { width: auto; height: auto; }
.season-map .leaflet-control-attribution { font-size: .58rem; }
.season-map .leaflet-popup-content { margin: 12px 14px; font: 12px/1.45 Inter, ui-sans-serif, system-ui, sans-serif; }
.season-map .leaflet-popup-content strong { display: block; margin-bottom: 2px; color: var(--forest); font-family: Georgia, serif; font-size: .88rem; }
.map-popup-open { margin-top: 7px; padding: 6px 9px; border: 0; border-radius: 7px; color: #fff; background: var(--forest-3); font: 800 .66rem/1 Inter, ui-sans-serif, system-ui, sans-serif; }
.map-popup-open:hover, .map-popup-open:focus-visible { background: var(--forest); }
.map-status { margin: 8px 2px 0; color: var(--muted); font-size: .67rem; }
.bird-marker-label { min-width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid #fffef9; border-radius: 50%; color: #fff; font: 800 10px/1 Inter, sans-serif; box-shadow: 0 3px 9px rgba(18,30,22,.28); }
.bird-marker-label.lirype { background: #71855d; }
.bird-marker-label.orrfugl { background: #445f64; }
.bird-marker-label.tiur { background: #9a6843; }
.bird-marker-label.rugde { background: #bd7c55; }
.trend-chart { height: 245px; display: grid; place-items: center; }
.trend-chart svg { width: 100%; height: 100%; overflow: visible; }
.trend-chart .trend-grid { stroke: #e7e5dc; stroke-width: 1; }
.trend-chart .trend-area { fill: rgba(185,112,69,.12); stroke: none; }
.trend-chart .trend-line { fill: none; stroke: var(--copper); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.trend-chart .trend-dot { fill: var(--white); stroke: var(--copper); stroke-width: 3; }
.trend-chart text { font-family: inherit; fill: var(--muted); font-size: 10px; }
.trend-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 10px; }
.trend-summary div { padding: 10px; border-radius: 11px; background: var(--paper); }
.trend-summary small, .trend-summary strong { display: block; }
.trend-summary small { color: var(--muted); font-size: .6rem; text-transform: uppercase; letter-spacing: .07em; }
.trend-summary strong { margin-top: 2px; font-family: Georgia, serif; font-size: 1rem; font-weight: 500; }
.insight-panel { min-height: 260px; }
.insight-content { display: grid; gap: 8px; }
.insight-method-note { margin: 0 0 3px; color: var(--muted); font-size: .59rem; line-height: 1.45; }
.insight-empty { min-height: 150px; display: grid; place-items: center; color: var(--muted); text-align: center; font-size: .78rem; }
.insight-table { width: 100%; min-width: 0; border-collapse: collapse; }
.insight-table th { padding: 8px 7px; background: transparent; border-bottom: 1px solid var(--line); }
.insight-table td { padding: 10px 7px; font-size: .72rem; }
.insight-table td:first-child { font-weight: 800; }
.insight-table-link { padding: 0; border: 0; color: var(--forest-3); background: transparent; font: inherit; font-weight: 800; text-align: left; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.insight-table-link:hover, .insight-table-link:focus-visible { color: var(--copper); text-decoration-color: currentColor; }
.insight-name-cell { display: grid; justify-items: start; gap: 4px; }
.confidence-chip { width: fit-content; padding: 3px 6px; display: inline-flex; align-items: center; border: 1px solid transparent; border-radius: 20px; color: var(--muted); background: var(--paper-2); font-size: .6rem; font-weight: 800; line-height: 1.2; }
.confidence-chip.low { color: #805f38; border-color: #e4d4bb; background: #f8f0e2; }
.confidence-chip.medium { color: #4e6567; border-color: #cfdbda; background: #ebf1f0; }
.confidence-chip.good { color: #4e6849; border-color: #d0ddcb; background: #edf3e9; }
.confidence-chip.single { color: var(--muted); border-color: var(--line); background: var(--paper); }
.rank { width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--forest-3); font-size: .65rem; font-weight: 900; }
.season-moments { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 15px; margin-top: 15px; }
.season-moments figure { min-height: 230px; margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--forest); box-shadow: 0 7px 25px rgba(23,38,29,.08); }
.season-moments .moment-card { cursor: pointer; }
.season-moments .moment-card:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }
.season-moments img { z-index: 1; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center 42%; filter: saturate(.84) contrast(1.04); transition: transform .45s ease; }
.season-moments figure:hover img { transform: scale(1.025); }
.season-moments figure::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, rgba(10,20,14,.82), rgba(10,20,14,0) 68%); pointer-events: none; }
.season-moments figcaption { position: absolute; z-index: 3; left: 22px; right: 22px; bottom: 19px; color: #fff; pointer-events: none; }
.season-moments figcaption span, .season-moments figcaption strong { display: block; }
.season-moments figcaption span { color: #d4c39b; font-size: .62rem; letter-spacing: .15em; font-weight: 800; }
.season-moments figcaption strong { margin-top: 3px; font-family: Georgia, serif; font-size: 1.25rem; font-weight: 500; }
.season-moments .moment-main { background: linear-gradient(rgba(23,38,29,.46), rgba(23,38,29,.46)), linear-gradient(140deg,#1b3528,#465b3d) center 40% / cover; }
.season-moments .moment-main::before { content: ""; position: absolute; inset: -14px; z-index: 0; background: inherit; filter: blur(10px); transform: scale(1.08); }
.season-moments .moment-main img { object-fit: contain; object-position: center; filter: saturate(.86) contrast(1.03) drop-shadow(0 9px 14px rgba(0,0,0,.18)); }
.season-moments .moment-lefty { background: linear-gradient(rgba(23,38,29,.48), rgba(23,38,29,.48)), linear-gradient(140deg,#1b3528,#465b3d) center 24% / cover; }
.season-moments .moment-lefty::before { content: ""; position: absolute; inset: -14px; z-index: 0; background: inherit; filter: blur(10px); transform: scale(1.08); }
.season-moments .moment-lefty img { object-fit: contain; object-position: center; filter: saturate(.87) contrast(1.03) drop-shadow(0 9px 14px rgba(0,0,0,.18)); }
.hunts-heading { margin-bottom: 18px; }
.data-quality-summary { margin: -5px 0 12px; padding: 12px 13px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #ded7c8; border-radius: 12px; color: var(--forest-3); background: #f5f0e4; font-size: .7rem; }
.data-quality-summary[hidden], .insight-selection-notice[hidden] { display: none; }
.quality-summary-copy { flex: 0 1 330px; }
.quality-summary-copy > span, .quality-summary-copy > small { display: block; color: var(--muted); }
.quality-summary-copy strong { display: block; color: var(--forest-3); font-size: .76rem; }
.quality-summary-copy > small { margin-top: 2px; font-size: .64rem; }
.quality-summary-actions { flex: 1; display: flex; align-items: center; justify-content: end; gap: 9px; }
.quality-summary-actions > button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #c4b997; border-radius: 9px; color: var(--forest-3); background: rgba(255,255,255,.78); font-size: .64rem; font-weight: 850; }
.quality-summary-actions > button:hover, .quality-summary-actions > button:focus-visible { border-color: var(--copper); background: #fff; outline: none; }
.quality-trip-list { flex: 1; display: flex; flex-wrap: wrap; justify-content: end; gap: 6px; }
.quality-trip-list button { min-width: 0; padding: 6px 9px; border: 1px solid #d7cfbf; border-radius: 9px; color: var(--forest-3); background: rgba(255,255,255,.62); text-align: left; }
.quality-trip-list button:hover, .quality-trip-list button:focus-visible { border-color: var(--copper); background: #fff; }
.quality-trip-list button span, .quality-trip-list button small { display: block; white-space: nowrap; }
.quality-trip-list button span { max-width: 145px; overflow: hidden; text-overflow: ellipsis; font-size: .67rem; font-weight: 800; }
.quality-trip-list button small { margin-top: 1px; color: var(--muted); font-size: .57rem; }
.quality-more { align-self: center; color: var(--muted); font-size: .63rem; font-weight: 800; }
.insight-selection-notice { margin: -4px 0 10px; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #cdd8c8; border-radius: 11px; color: var(--forest-3); background: #edf3e9; }
.insight-selection-notice span small, .insight-selection-notice span strong { display: block; }
.insight-selection-notice span small { color: var(--muted); font-size: .56rem; font-weight: 900; letter-spacing: .09em; }
.insight-selection-notice span strong { margin-top: 1px; font-size: .72rem; }
.insight-selection-notice button { padding: 6px 8px; border: 0; border-radius: 7px; color: var(--forest-3); background: rgba(255,255,255,.75); font-size: .64rem; font-weight: 800; }
.filter-bar { display: grid; grid-template-columns: minmax(210px, 1.45fr) repeat(5, minmax(110px, .7fr)) auto; gap: 9px; padding: 12px; background: var(--forest); border-radius: 16px 16px 0 0; color: var(--white); }
.filter-bar label { min-width: 0; }
.filter-bar label > span:not(.sr-only) { display: block; color: var(--sage); font-size: .6rem; text-transform: uppercase; letter-spacing: .11em; margin: 0 0 3px 3px; }
.filter-bar input, .filter-bar select { width: 100%; height: 39px; padding: 0 11px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: rgba(255,255,255,.08); color: var(--white); outline: none; font-size: .77rem; }
.filter-bar input:focus, .filter-bar select:focus { border-color: #d4c39b; box-shadow: 0 0 0 3px rgba(212,195,155,.1); }
.filter-bar option { color: var(--ink); }
.search-field { position: relative; align-self: end; }
.search-field input { padding-left: 37px; }
.search-field svg { position: absolute; left: 11px; bottom: 9px; color: var(--sage); }
.filter-reset { border: 0; background: transparent; color: #d4c39b; font-size: .72rem; font-weight: 700; align-self: end; height: 39px; padding: 0 8px; }
.table-shell { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; }
table { width: 100%; border-collapse: collapse; min-width: 1320px; }
th { padding: 13px 16px; text-align: left; color: var(--muted); background: #eeece4; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .09em; font-size: .61rem; }
td { padding: 16px; border-bottom: 1px solid #e6e3d9; font-size: .78rem; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #faf8f2; }
.hunt-row { cursor: pointer; }
.hunt-row:focus-visible { position: relative; outline: 3px solid rgba(123,142,102,.36); outline-offset: -3px; background: #f4f5ef; }
.hunt-row:focus-visible td:first-child::before { content: "Opne tur"; display: inline-block; padding: 3px 6px; margin: 0 0 5px; border-radius: 6px; color: var(--white); background: var(--forest-3); font-size: .58rem; font-weight: 800; letter-spacing: .03em; }
.date-place strong { display: block; font-size: .82rem; }
.date-place small, .td-muted { color: var(--muted); }
.quality-table-mark { margin-top: 6px; padding: 4px 7px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #ded7c8; border-radius: 20px; color: #7a6748; background: #f8f2e5; font-size: .59rem; font-weight: 800; }
.quality-table-mark i { width: 5px; height: 5px; border-radius: 50%; background: #b98249; }
.quality-table-mark:hover, .quality-table-mark:focus-visible { border-color: #c49a68; background: #fff8e9; }
.height-lines { display: grid; gap: 2px; margin-top: 4px; }
.height-lines span { color: var(--muted); font-size: .65rem; white-space: nowrap; }
.height-lines span.registered { color: var(--forest-3); }
.distance-cell strong { font-family: Georgia, serif; font-size: 1rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { padding: 4px 7px; border-radius: 7px; background: #edf0e9; color: var(--forest-3); font-size: .65rem; font-weight: 700; white-space: nowrap; }
.tag.shot { background: #f3e5dc; color: #8c4c2b; }
.success-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 20px; color: #41613f; background: #e5eee1; font-size: .65rem; font-weight: 800; }
.success-badge.zero { color: var(--muted); background: #eeeDE7; }
.note-cell { max-width: 220px; }
.note-preview { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; color: var(--muted); }
.map-chip { margin-top: 5px; border: 0; background: transparent; color: var(--copper); padding: 0; font-size: .67rem; font-weight: 800; }
.entry-links { display: flex; flex-wrap: wrap; gap: 10px; }
.condition-summary { display: block; max-width: 150px; color: var(--forest-3); font-size: .7rem; line-height: 1.45; }
.row-actions { display: flex; justify-content: end; gap: 3px; }
.detail-link { display: inline-flex; align-items: center; gap: 5px; }
.icon-btn { border: 0; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: transparent; color: var(--muted); }
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.icon-btn.danger:hover { background: #f7e6e1; color: #983f31; }
.empty-state { min-width: 100%; padding: 55px 24px; text-align: center; color: var(--muted); }
.empty-state h3 { color: var(--ink); margin: 0 0 6px; font-size: 1.3rem; }
.empty-state p { margin: 0 auto 18px; max-width: 380px; font-size: .82rem; }
.empty-icon { margin: 0 auto 14px; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; color: var(--moss); background: var(--paper); }
.empty-icon svg { width: 42px; height: 42px; fill: currentColor; stroke: none; }
.empty-state.compact { padding: 35px 20px; }
.table-footer { display: flex; justify-content: space-between; color: var(--muted); font-size: .7rem; padding: 10px 3px; }
.table-footer p { margin: 0; }
dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgba(8,17,12,.67); backdrop-filter: blur(4px); }
.hunt-dialog { width: min(680px, calc(100vw - 24px)); max-height: 92vh; border-radius: 22px; background: var(--white); color: var(--ink); box-shadow: 0 32px 90px rgba(0,0,0,.35); overflow: hidden; }
.hunt-dialog form { display: flex; flex-direction: column; max-height: 92vh; }
.field-mode-dialog { width: min(620px, calc(100vw - 24px)); max-height: 92vh; border-radius: 22px; color: var(--ink); background: var(--white); box-shadow: 0 32px 90px rgba(0,0,0,.38); overflow: hidden; }
.field-mode-dialog form { display: flex; flex-direction: column; max-height: 92vh; }
.field-mode-head p:not(.kicker) { max-width: 470px; margin: 4px 0 0; color: var(--muted); font-size: .7rem; }
.field-mode-body { overflow-y: auto; padding: 20px 25px; display: grid; gap: 16px; }
.field-journey-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field-journey-actions button { min-height: 66px; padding: 11px 12px; border: 1px solid #ccd6c6; border-radius: 12px; color: var(--forest-3); background: #f1f5ed; text-align: left; }
.field-journey-actions button:last-child { border-color: var(--line); background: var(--paper); }
.field-journey-actions strong, .field-journey-actions span { display: block; }
.field-journey-actions strong { font-size: .9rem; }
.field-journey-actions span { margin-top: 3px; font-size: .8rem; font-weight: 400; }
.field-sync-status { margin: -5px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.journey-frame { max-height: 92vh; display: flex; flex-direction: column; }
.journey-dialog .dialog-head, .journey-dialog .dialog-actions { flex-shrink: 0; }
.journey-dialog .field-mode-head p:not(.kicker) { font-size: .875rem; }
.journey-body { gap: 16px; font-size: 1rem; }
.journey-body label > span:first-child, .journey-body legend { font-size: .875rem; }
.journey-body input, .journey-body select, .journey-body textarea { min-width: 0; font-size: 1rem; min-height: 44px; }
.journey-body label small { display: block; margin: 5px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.journey-summary { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--forest-3); line-height: 1.5; }
.journey-summary.ready { background: #edf4e9; border-color: #c4d3bb; }
.journey-summary.attention { background: #fbf1de; border-color: #dfc69a; }
.readiness-checks { padding: 0; margin: 0; list-style: none; }
.readiness-checks li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.readiness-checks p { margin: 4px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.readiness-mark { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; }
.readiness-mark.ready { background: #e0eddb; color: #345334; }
.readiness-mark.attention { background: #f6e6c9; color: #825014; }
.journey-gps { display: flex; align-items: center; gap: 12px; }
.journey-gps p { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.journey-gps .btn { flex-shrink: 0; color: var(--forest-3); border-color: var(--line); }
.journey-note { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.offline-map-section { padding: 18px; border: 1px solid #cbd6c2; border-radius: 15px; background: #f2f6ee; }
.offline-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.offline-section-head h3 { margin: 3px 0 0; font-size: 1.25rem; color: var(--forest-3); }
.offline-section-head .kicker { margin: 0; font-size: .75rem; }
.offline-map-symbol { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #57734a; background: #e0ead7; font-size: 2rem; }
.offline-map-section > p { margin: 10px 0 14px; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.offline-map-section > small { display: block; margin-top: 12px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.offline-map-section > .btn { min-height: 44px; }
.offline-map-list { margin: 10px 0 0; padding: 0; list-style: none; }
.offline-map-list li { padding: 14px 0; border-bottom: 1px solid #d8e0d1; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.offline-pack-copy { min-width: 0; }
.offline-pack-copy strong, .offline-pack-copy span, .offline-pack-copy small { display: block; overflow-wrap: anywhere; }
.offline-pack-copy strong { font-size: .9375rem; color: var(--forest-3); }
.offline-pack-copy span { margin-top: 4px; font-size: .875rem; color: #775527; }
.offline-pack-copy span.offline-pack-ready { color: #3c6638; }
.offline-pack-copy small { margin-top: 4px; font-size: .75rem; color: var(--muted); }
.offline-pack-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.offline-pack-actions button { min-height: 44px; border: 1px solid #c6d2bd; border-radius: 9px; padding: 8px 12px; color: var(--forest-3); background: #fffdf8; font-size: .875rem; font-weight: 700; }
.offline-pack-actions .offline-remove { border-color: transparent; background: transparent; color: var(--muted); font-weight: 500; padding: 8px; }
.offline-map-section > .offline-storage-status { margin: 12px 0 0; font-size: .8rem; }
.offline-map-dialog { width: min(900px, calc(100vw - 24px)); }
.offline-map-body { display: flex; flex-direction: column; gap: 12px; }
.offline-map-body #offlineAreaSetup label > span { font-size: .875rem; }
.offline-area-map { height: clamp(280px, 43dvh, 460px); flex-shrink: 0; border: 1px solid #cbd2c2; border-radius: 12px; overflow: hidden; background: #e9ece3; }
.offline-area-map .leaflet-control-attribution { font-size: 10px; }
.offline-map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.offline-map-toggles { display: flex; flex-wrap: wrap; gap: 14px; }
.offline-map-toggles label { display: flex; align-items: center; gap: 7px; font-size: .875rem; min-height: 44px; }
.offline-map-body .offline-map-toggles input { width: 20px; min-height: 20px; height: 20px; padding: 0; accent-color: var(--forest-3); }
.offline-map-toolbar .btn { min-height: 44px; color: var(--forest-3); border-color: var(--line); }
.offline-map-message { padding: 11px 13px; border-radius: 10px; background: #edf3e7; color: #395637; font-size: .875rem; line-height: 1.5; }
.offline-map-message.attention { background: #faf0dd; color: #775023; }
.offline-map-body progress { width: 100%; height: 10px; accent-color: var(--forest-3); }
#offlineAreaSetup[hidden], #offlineMapProgress[hidden], #pauseOfflineDownload[hidden], #downloadOfflineArea[hidden] { display: none; }
#offlineMapPositionStatus:empty { display: none; }
.lefty-cached-tile { background: #e8ebe3; }
.lefty-cached-tile img { display: block; width: 100%; height: 100%; max-width: none !important; max-height: none !important; }
.lefty-cached-tile.missing { box-shadow: inset 0 0 0 1px #d6ddce; background: repeating-linear-gradient(135deg, #e8ebe3 0, #e8ebe3 12px, #e1e6da 12px, #e1e6da 13px); }
.offline-map-hint { padding: 5px 8px; max-width: 200px; border-radius: 5px; color: #40533b; background: rgba(255,253,245,.94); font: 11px/1.35 sans-serif; box-shadow: 0 1px 4px #0002; }
@media (max-width: 600px) {
  .offline-map-section { padding: 14px; }
  .offline-map-list li { align-items: flex-start; flex-direction: column; gap: 8px; }
  .offline-pack-actions { width: 100%; justify-content: space-between; }
  .offline-map-dialog .offline-map-body { padding: 14px; }
  .offline-map-dialog .offline-area-map { height: 38dvh; min-height: 270px; }
  .offline-map-toolbar { gap: 6px; }
  .offline-map-toolbar .btn { padding: 8px 10px; }
  .offline-map-toggles { gap: 8px; }
}
.journey-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.finish-trip-fields { display: grid; gap: 16px; min-width: 0; padding: 0; margin: 0; border: 0; }
.finish-trip-fields[hidden], .finish-gpx-actions[hidden], .journey-checkbox[hidden] { display: none; }
.finish-gpx { padding: 14px; display: grid; gap: 10px; border: 1px dashed #bcc9b4; border-radius: 12px; background: #f6f8f2; }
.finish-gpx input[type=file] { max-width: 100%; font-size: .875rem; }
.finish-gpx-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.finish-gpx-actions button { min-height: 44px; padding: 9px 12px; font-size: .875rem; }
.journey-body .journey-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; line-height: 1.5; }
.journey-body .journey-checkbox input { width: 22px; height: 22px; min-height: 22px; flex-shrink: 0; accent-color: var(--forest-3); }
.journey-body .journey-checkbox[hidden] { display: none; }
.finish-birds { padding: 0; margin: 0; min-width: 0; border: 0; }
.finish-birds legend { margin-bottom: 8px; color: var(--forest-3); font-weight: 800; }
.journey-error { margin: 0; padding: 12px 14px; border: 1px solid #d6a491; border-radius: 10px; color: #753b2b; background: #fff1e9; font-size: .875rem; line-height: 1.5; }
.journey-dialog button:disabled { opacity: .5; cursor: default; }
.journey-dialog button:focus-visible, .field-journey-actions button:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }
@media (max-width: 600px) {
  .journey-frame { max-height: 100dvh; }
  .journey-dialog .dialog-actions { flex-wrap: wrap; }
  .journey-dialog .dialog-actions .btn { flex: 1; min-height: 46px; }
  .journey-grid { grid-template-columns: minmax(0,1fr); }
  .finish-birds .journey-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .journey-gps { align-items: flex-start; }
  .field-journey-actions button { padding: 10px; }
}
.field-mode-body label > span:first-child { display: block; margin: 0 0 5px 3px; color: var(--forest-3); font-size: .69rem; font-weight: 800; }
.field-mode-body label b { color: var(--copper); }
.field-mode-body input, .field-mode-body select, .field-mode-body textarea { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #faf9f4; outline: none; }
.field-mode-body input:focus, .field-mode-body select:focus, .field-mode-body textarea:focus { border-color: var(--moss); box-shadow: 0 0 0 3px rgba(123,142,102,.12); }
.field-event-switch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding: 4px; border-radius: 13px; background: var(--paper-2); }
.field-event-switch button { min-height: 54px; padding: 7px 9px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; }
.field-event-switch button span, .field-event-switch button small { display: block; }
.field-event-switch button span { color: var(--forest-3); font-size: .875rem; font-weight: 850; }
.field-event-switch button small { margin-top: 2px; font-size: .75rem; }
.field-event-switch button.active { color: #e1d3b0; background: var(--forest-3); box-shadow: 0 4px 12px rgba(23,38,29,.16); }
.field-event-switch button.active span { color: #fff; }
.field-photo-field { padding: 13px; border: 1px dashed #bfcab8; border-radius: 12px; background: #f3f6f0; }
.field-photo-field[hidden] { display: none; }
.field-photo-field input { padding: 8px; background: #fff; }
.field-photo-field small { display: block; margin: 6px 2px 0; color: var(--muted); font-size: .62rem; }
.field-new-trip { padding: 12px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; border: 1px solid #dfd7c7; border-radius: 12px; background: #f8f3e9; }
.field-new-trip[hidden] { display: none; }
.field-new-trip p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .64rem; }
.field-species-fieldset { padding: 0; border: 0; }
.field-species-fieldset legend { margin-bottom: 7px; color: var(--forest-3); font-size: .69rem; font-weight: 800; }
.field-species-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.field-species-grid button { min-height: 52px; padding: 7px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 11px; color: var(--forest-3); background: #faf9f4; font-size: .68rem; font-weight: 800; }
.field-species-grid button.active { color: #fff; border-color: var(--forest-3); background: var(--forest-3); box-shadow: 0 5px 14px rgba(23,38,29,.16); }
.field-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-contact-grid label[hidden], #fieldHeightSource[hidden], #adjustFieldBirdPoint[hidden], .contact-picker[hidden] { display: none; }
.field-stepper { display: grid; grid-template-columns: 40px 1fr 40px; }
.field-mode-body .field-stepper input { position: relative; z-index: 1; border-radius: 0; text-align: center; }
.field-stepper button { border: 1px solid var(--line); color: var(--forest-3); background: #eef1e9; font-size: 1.1rem; font-weight: 800; }
.field-stepper button:first-child { border-radius: 10px 0 0 10px; }
.field-stepper button:last-child { border-radius: 0 10px 10px 0; }
.field-gps-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid #d5decf; border-radius: 12px; background: #f0f4ed; }
.field-gps-card.error { border-color: #e2c9b9; background: #fbf2ec; }
.field-gps-dot { width: 9px; height: 9px; border-radius: 50%; background: #b98a41; box-shadow: 0 0 0 4px rgba(185,138,65,.12); }
.field-gps-card.ready .field-gps-dot { background: #64865c; box-shadow: 0 0 0 4px rgba(100,134,92,.13); }
.field-gps-card strong, .field-gps-card small { display: block; }
.field-gps-card strong { color: var(--forest-3); font-size: .71rem; }
.field-gps-card small { margin-top: 2px; color: var(--muted); font-size: .61rem; }
.field-gps-card button { padding: 7px 8px; border: 1px solid #cbd6c5; border-radius: 8px; color: var(--forest-3); background: #fff; font-size: .61rem; font-weight: 800; }
.field-offline-note { display: flex; align-items: center; gap: 7px; margin: -3px 0 0; color: var(--muted); font-size: .62rem; }
.field-offline-note svg { width: 15px; height: 15px; color: var(--moss); }
.field-mode-fab { display: none; }
.completion-dialog { width: min(590px, calc(100vw - 24px)); max-height: 92vh; border-radius: 22px; color: var(--ink); background: var(--white); box-shadow: 0 32px 90px rgba(0,0,0,.38); overflow: hidden; }
.completion-dialog[open] { display: flex; flex-direction: column; }
.completion-dialog .dialog-head, .completion-dialog .dialog-actions { flex-shrink: 0; }
.completion-content { min-height: 0; max-height: min(62vh, 590px); overflow-y: auto; padding: 20px 25px; }
.completion-safety { padding: 13px 14px; border: 1px solid #cad7c3; border-radius: 12px; color: var(--forest-3); background: #eef3ea; }
.completion-safety strong, .completion-safety p { display: block; }
.completion-safety strong { font-size: .75rem; }
.completion-safety p { margin: 4px 0 0; color: var(--muted); font-size: .68rem; line-height: 1.5; }
.completion-preview-list { display: grid; gap: 7px; margin-top: 13px; }
.completion-preview-list > div { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; background: #faf9f4; }
.completion-preview-list > div > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--forest-3); font-size: .7rem; font-weight: 900; }
.completion-preview-list p, .completion-trip-preview p, .completion-network-note { margin: 0; }
.completion-preview-list strong, .completion-preview-list small { display: block; }
.completion-preview-list strong { color: var(--forest-3); font-size: .72rem; }
.completion-preview-list small { margin-top: 2px; color: var(--muted); font-size: .62rem; }
.completion-trip-preview { padding-top: 13px; margin-top: 13px; border-top: 1px solid var(--line); }
.completion-trip-preview strong { color: var(--forest-3); font-size: .72rem; }
.completion-trip-preview p { margin-top: 3px; color: var(--muted); font-size: .65rem; line-height: 1.5; }
.completion-network-note { margin-top: 12px; color: var(--muted); font-size: .61rem; line-height: 1.5; }
.completion-complete { min-height: 155px; display: grid; align-content: center; justify-items: center; padding: 20px; text-align: center; }
.completion-complete strong { color: var(--forest-3); font-family: Georgia, serif; font-size: 1.15rem; }
.completion-complete p { max-width: 410px; margin: 6px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.completion-actions { border-top: 1px solid var(--line); }
.completion-status { padding: 15px; margin-bottom: 16px; border: 1px solid #cad7c3; border-radius: 12px; background: #eef3ea; font-size: .875rem; line-height: 1.5; }
.completion-status.warning { background: #fff8e9; border-color: #dec99c; }
.completion-status > div > strong { display: block; color: var(--forest-3); font-size: 1rem; }
.completion-status p { margin: 5px 0 0; }
.completion-status ul { list-style: none; padding: 0; margin: 12px 0 0; }
.completion-status li { padding: 10px 0; border-top: 1px solid #ccd3c5; overflow-wrap: anywhere; }
.completion-status li strong, .completion-status li span { display: block; }
.completion-status li span { margin-top: 3px; }
.completion-status.running > div > strong::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 2px solid #cad7c3; border-top-color: var(--forest-3); border-radius: 50%; animation: completion-spin 1s linear infinite; }
.completion-actions { flex-wrap: wrap; }
.completion-actions .btn { white-space: normal; }
@keyframes completion-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .completion-status.running > div > strong::before { animation: none; } }
.dialog-head { padding: 22px 25px 18px; display: flex; align-items: start; justify-content: space-between; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; font-size: 1.6rem; }
.form-scroll { overflow-y: auto; padding: 22px 25px; display: grid; gap: 19px; }
.form-grid.two { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
.form-grid.two.equal { grid-template-columns: 1fr 1fr; }
.trip-time-grid { display: grid; grid-template-columns: minmax(150px, .65fr) minmax(290px, 1.35fr); gap: 14px; }
.form-scroll label > span:first-child:not(.species-icon):not(.upload-icon) { display: block; color: var(--forest-3); font-size: .73rem; font-weight: 800; margin-bottom: 6px; }
.form-scroll label b { color: var(--copper); }
.form-scroll input, .form-scroll select, .form-scroll textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #faf9f4; color: var(--ink); padding: 11px 12px; outline: none; }
.form-scroll input:focus, .form-scroll select:focus, .form-scroll textarea:focus { border-color: var(--moss); box-shadow: 0 0 0 3px rgba(123,142,102,.12); }
.input-unit { position: relative; }
.input-unit input { padding-right: 45px; }
.input-unit span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .78rem; }
.duration-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duration-fields .input-unit:first-child input { padding-right: 62px; }
.manual-elevation-fieldset { padding: 13px; border: 1px solid #d7ddd1; border-radius: 13px; background: #f7f8f4; }
.manual-elevation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.elevation-override-row { width: fit-content; margin-top: 11px; display: flex; align-items: center; gap: 9px; cursor: pointer; }
.form-scroll .elevation-override-row input { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--forest-3); }
.form-scroll .elevation-override-row > span { display: inline; margin: 0; color: var(--forest-3); font-size: .7rem; font-weight: 750; }
.elevation-source-status { margin: 7px 0 0; color: var(--muted); font-size: .65rem; line-height: 1.45; }
.elevation-source-status.active { color: #476445; font-weight: 700; }
.conditions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.conditions-grid label:last-child { grid-column: span 1; }
.weather-auto-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 2px 0 10px; padding: 11px 12px; border: 1px solid #d7ddd1; border-radius: 11px; background: #f0f3ed; }
.weather-auto-row .field-help { margin: 0 0 2px; }
.weather-auto-row small { display: block; color: var(--muted); font-size: .64rem; }
.weather-auto-btn { flex: 0 0 auto; padding: 9px 11px; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 9px; color: #fff; background: var(--forest-3); font-size: .68rem; font-weight: 800; }
.weather-auto-btn:hover { background: var(--forest); }
.weather-auto-btn:disabled { opacity: .58; cursor: wait; }
.weather-auto-btn svg { width: 17px; height: 17px; }
.weather-auto-actions { flex: 0 0 auto; display: flex; gap: 7px; }
.weather-location-btn { padding: 9px 11px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #cdd5c7; border-radius: 9px; color: var(--forest-3); background: #fff; font-size: .68rem; font-weight: 800; }
.weather-location-btn:hover { background: #e9ede5; }
.weather-location-btn svg { width: 17px; height: 17px; }
.trip-location-picker { padding: 10px; margin: -2px 0 10px; border: 1px solid var(--line); border-radius: 12px; background: #eef1e9; }
.trip-location-picker-head, .trip-location-picker-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--forest-3); font-size: .68rem; font-weight: 700; }
.trip-location-picker-head { margin-bottom: 8px; }
.trip-location-picker-head button { border: 0; color: var(--copper); background: transparent; font-weight: 800; }
.trip-location-map-shell { position: relative; border-radius: 10px; overflow: hidden; }
.trip-location-map { width: 100%; height: 280px; background: #dfe5dc; cursor: crosshair; touch-action: none; }
.trip-location-picker-footer { margin-top: 9px; }
.trip-location-picker-footer > span { color: var(--muted); font-size: .64rem; line-height: 1.4; }
.trip-location-picker-footer > span.saved { color: #476445; }
.trip-location-picker-footer > button { flex: 0 0 auto; min-height: 40px; padding: 8px 11px; border: 0; border-radius: 9px; color: #fff; background: var(--forest-3); font-size: .66rem; font-weight: 800; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { color: var(--forest-3); font-size: .74rem; font-weight: 800; }
.field-help { color: var(--muted); font-size: .69rem; margin: 2px 0 9px; }
.fieldset-head { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.small-action { flex: 0 0 auto; padding: 8px 10px; border: 1px solid #cdd5c7; border-radius: 9px; color: var(--forest-3); background: #eef2ea; font-size: .66rem; font-weight: 800; }
.small-action:hover { background: #e4eadf; }
.bird-contact-list { display: grid; gap: 8px; }
.bird-contact-empty { padding: 12px; border: 1px dashed var(--line); border-radius: 11px; color: var(--muted); background: #faf9f4; font-size: .68rem; text-align: center; }
.bird-contact-row { display: grid; grid-template-columns: 1.1fr .6fr .6fr .8fr .9fr auto; align-items: end; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #faf9f4; }
.bird-contact-row label > span { margin-bottom: 4px !important; font-size: .61rem !important; text-transform: uppercase; letter-spacing: .05em; }
.bird-contact-row label, .bird-contact-row input, .bird-contact-row select { min-width: 0; }
.bird-contact-row input, .bird-contact-row select { padding: 8px !important; background: var(--white) !important; }
.contact-terrain-field { min-width: 0; grid-column: 1 / 3; }
.contact-work-field { grid-column: 3 / -1; min-width: 0; }
.bird-contact-row .contact-work-field > span { font-size: .875rem !important; text-transform: none; letter-spacing: normal; }
.contact-work-field select { min-height: 42px; font-size: .875rem; }
.contact-note-field { grid-column: 1 / -1; min-width: 0; }
.contact-height-source { grid-column: 1 / -1; margin: 0; color: var(--forest-3); font-size: .75rem; line-height: 1.5; }
.contact-photos { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid var(--line); font-size: .75rem; }
.contact-photos summary { cursor: pointer; color: var(--forest-3); }
.contact-photos > div { display: grid; gap: 8px; padding-top: 10px; }
.contact-photos label { display: flex; align-items: center; gap: 9px; overflow-wrap: anywhere; }
.contact-photos input[type="checkbox"] { width: 19px; height: 19px; flex: 0 0 auto; }
.contact-picker-head > div { display: flex; gap: 8px; flex-shrink: 0; }
.contact-picker-head button { min-height: 38px; padding: 6px 9px; }
.contact-picker.expanded { position: fixed; inset: 12px; z-index: 2500; margin: 0; display: flex; flex-direction: column; box-shadow: 0 8px 60px #12231566; }
.contact-picker.expanded .contact-picker-map-shell { flex: 1; min-height: 0; }
.contact-picker.expanded .contact-picker-map { height: 100%; }
.field-adjust-point { align-self: start; min-height: 44px; }
.contact-detail-photo { margin: 6px 6px 0 0; border: 0; background: #e9ede5; color: var(--forest-3); border-radius: 6px; padding: 5px 9px; cursor: pointer; }
.leaflet-control-layers { font-family: inherit; color: #263c2b; border-radius: 8px !important; }
.leaflet-control-layers-expanded { padding: 10px !important; }
.leaflet-control-layers label { font-size: 12px; margin: 4px 0; }
.leaflet-control-layers input { width: auto !important; padding: 0 !important; margin-right: 5px; }
.contact-terrain-field select { width: 100%; }
.contact-row-actions { display: flex; gap: 4px; padding-bottom: 1px; }
.contact-row-actions button { min-width: 34px; height: 34px; padding: 0 8px; border: 0; border-radius: 8px; color: var(--forest-3); background: #e9ede5; font-size: .62rem; font-weight: 800; }
.contact-row-actions button.remove { color: #8c4c2b; background: #f3e5dc; }
.contact-position { grid-column: 1 / -1; margin: -2px 0 0; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .62rem; }
.contact-position.exact { color: #476445; }
.contact-picker { padding: 10px; margin-top: 9px; border: 1px solid var(--line); border-radius: 12px; background: #eef1e9; }
.contact-picker-head { margin-bottom: 8px; display: flex; justify-content: space-between; gap: 12px; color: var(--forest-3); font-size: .68rem; font-weight: 700; }
.contact-picker-head button { border: 0; color: var(--copper); background: transparent; font-weight: 800; }
.contact-picker-map-shell { position: relative; border-radius: 10px; overflow: hidden; }
.contact-picker-map { width: 100%; height: 420px; background: #dfe5dc; cursor: crosshair; touch-action: none; }
.contact-picker-crosshair { position: absolute; z-index: 700; left: 50%; top: 50%; width: 24px; height: 24px; transform: translate(-50%, -50%); border: 2px solid rgba(255,254,249,.96); border-radius: 50%; box-shadow: 0 1px 5px rgba(16,31,21,.7); pointer-events: none; }
.contact-picker-crosshair::before, .contact-picker-crosshair::after { content: ""; position: absolute; left: 50%; top: 50%; background: #b97045; transform: translate(-50%, -50%); }
.contact-picker-crosshair::before { width: 14px; height: 2px; }
.contact-picker-crosshair::after { width: 2px; height: 14px; }
.contact-picker-footer { margin-top: 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.contact-picker-footer > span { color: var(--muted); font-size: .64rem; line-height: 1.4; }
.contact-picker-footer > span.saved { color: #476445; font-weight: 750; }
.contact-picker-footer button { flex: 0 0 auto; min-height: 40px; padding: 8px 11px; border: 0; border-radius: 9px; color: #fff; background: var(--forest-3); font-size: .66rem; font-weight: 800; }
.contact-picker-footer button:hover { background: var(--forest); }
.shot-events-head { align-items: center; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.shot-events-head strong { color: var(--forest-3); font-size: .7rem; }
.shot-event-list { display: grid; gap: 8px; margin-top: 2px; }
.shot-event-row { display: grid; grid-template-columns: .75fr .55fr 1fr 1.35fr auto; align-items: end; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #faf9f4; }
.shot-event-row label > span { margin-bottom: 4px !important; font-size: .59rem !important; text-transform: uppercase; letter-spacing: .05em; }
.shot-event-row input, .shot-event-row select { padding: 8px !important; background: var(--white) !important; }
.shot-event-row > button { min-height: 35px; padding: 0 9px; border: 0; border-radius: 8px; color: #8c4c2b; background: #f3e5dc; font-size: .62rem; font-weight: 800; }
.species-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.species-grid label { display: grid; grid-template-columns: 30px 1fr 54px; align-items: center; gap: 7px; padding: 7px; border: 1px solid var(--line); border-radius: 11px; background: #faf9f4; }
.species-grid label > span:nth-child(2) { font-size: .7rem; font-weight: 700; }
.species-grid input { padding: 7px; text-align: center; background: var(--white); }
.species-icon { width: 29px; height: 29px; border-radius: 8px; display: grid; place-items: center; font-size: .55rem; font-weight: 900; letter-spacing: .04em; }
.species-icon.lirype { background: #e8eadf; color: #56634b; }
.species-icon.orrfugl { background: #e3e8e8; color: #43595b; }
.species-icon.tiur { background: #ede5d9; color: #76593d; }
.species-icon.rugde { background: #efe1d4; color: #8a5636; }
.form-error { margin: 8px 0 0; color: #9a4234; font-size: .69rem; font-weight: 700; }
textarea { resize: vertical; }
.char-count { float: right; color: var(--muted); font-size: .64rem; margin-top: 3px; }
.upload-section { display: grid; gap: 10px; }
.upload-field { min-height: 86px; border: 1px dashed #b9b9af; border-radius: 13px; padding: 15px; display: flex; align-items: center; gap: 12px; position: relative; background: #faf9f4; cursor: pointer; overflow: hidden; }
.upload-field.upload-attention { border-color: var(--copper); box-shadow: 0 0 0 4px rgba(185,112,69,.15); animation: uploadPulse .9s ease-in-out 2; }
@keyframes uploadPulse { 50% { transform: scale(1.01); } }
.upload-field > input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-icon { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px; display: grid; place-items: center; color: var(--moss); background: #e9ede5; }
.upload-field strong, .upload-field small { display: block; }
.upload-field strong { font-size: .76rem; }
.upload-field small { color: var(--muted); font-size: .66rem; }
.image-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.image-preview-card { min-width: 0; margin: 0; border-radius: 11px; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }
.image-preview-visual { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.image-preview-card img { width: 100%; height: 100%; display: block; object-fit: cover; }
.image-preview-card button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgba(18,28,22,.78); }
.image-preview-card button:hover { background: #923e32; }
.image-preview-card button svg { width: 15px; height: 15px; }
.image-preview-card figcaption { padding: 8px; background: #faf9f4; }
.image-preview-card figcaption label { display: block; }
.image-preview-card figcaption label > span { display: block; margin: 0 0 3px; color: var(--muted); font-size: .56rem; font-weight: 800; text-transform: uppercase; }
.image-preview-card figcaption input { width: 100%; padding: 6px 7px; background: #fff; font-size: .67rem; }
.image-preview-card figcaption small { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: .54rem; text-overflow: ellipsis; white-space: nowrap; }
.image-preview-count { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .66rem; }
.route-upload-section { display: grid; gap: 10px; }
.route-preview { padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #faf9f4; }
.route-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.route-preview-head strong { display: block; font-size: .75rem; }
.route-preview-head small { color: var(--muted); font-size: .65rem; }
.route-preview-head button { border: 0; border-radius: 8px; padding: 7px 9px; background: #f1e3db; color: #8c4c2b; font-size: .65rem; font-weight: 800; }
.route-preview-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 6px; }
.route-preview-head button.apply { color: #fff; background: var(--forest-3); }
.route-map { width: 100%; min-height: 150px; display: block; border-radius: 10px; background: #e9ece5; }
.route-map .route-line { fill: none; stroke: var(--copper); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.route-map .route-shadow { fill: none; stroke: rgba(23,38,29,.13); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.route-map .route-start { fill: var(--forest); }
.route-map .route-end { fill: var(--copper); }
.elevation-profile { width: 100%; min-height: 190px; display: block; border-radius: 10px; background: #f4f3ed; }
.elevation-profile line { stroke: #d9d7ce; stroke-width: 1; }
.elevation-profile text { fill: var(--muted); font: 11px Inter, sans-serif; }
.elevation-profile .elevation-area { fill: rgba(123,142,102,.2); stroke: none; }
.elevation-profile .elevation-line { fill: none; stroke: var(--forest-3); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.route-subtitle { margin: 20px 0 8px; font-size: 1rem; }
.dialog-actions { padding: 14px 25px; border-top: 1px solid var(--line); display: flex; justify-content: end; gap: 9px; background: #f5f2ea; }
.dialog-actions .btn-ghost { color: var(--ink); border-color: var(--line); background: var(--white); }
.image-dialog { width: min(1000px, calc(100vw - 30px)); max-height: 92vh; border-radius: 18px; background: #111713; color: var(--white); box-shadow: 0 32px 90px rgba(0,0,0,.5); }
.image-dialog .icon-btn { position: absolute; z-index: 2; right: 10px; top: 10px; color: white; background: rgba(0,0,0,.4); }
.image-dialog img { display: block; width: 100%; max-height: 78vh; object-fit: contain; }
.image-dialog p { margin: 0; padding: 14px 18px; color: var(--sage); font-size: .78rem; }
.gallery-nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 44px; height: 54px; display: grid; place-items: center; border: 0; border-radius: 11px; color: #fff; background: rgba(0,0,0,.45); }
.gallery-nav:hover { background: rgba(0,0,0,.72); }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-nav[hidden] { display: none; }
.route-dialog { width: min(900px, calc(100vw - 26px)); max-height: 92vh; border-radius: 20px; background: var(--white); color: var(--ink); box-shadow: 0 32px 90px rgba(0,0,0,.4); overflow: auto; }
.route-dialog-content { padding: 22px 25px 26px; }
.route-dialog-content .route-map { min-height: 360px; }
.route-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-bottom: 15px; }
.route-summary div { padding: 12px; border-radius: 11px; background: var(--paper); }
.route-summary small, .route-summary strong { display: block; }
.route-summary small { color: var(--muted); font-size: .61rem; text-transform: uppercase; letter-spacing: .08em; }
.route-summary strong { margin-top: 3px; font-family: Georgia, serif; font-size: 1.05rem; }
.route-elevation-source { margin: -7px 0 13px; color: var(--muted); font-size: .65rem; }
.detail-dialog { width: min(980px, calc(100vw - 24px)); max-height: 94vh; border-radius: 20px; color: var(--ink); background: var(--white); box-shadow: 0 32px 90px rgba(0,0,0,.44); overflow: hidden; }
.detail-content { max-height: calc(94vh - 145px); padding: 24px 25px 30px; overflow-y: auto; }
.detail-hero { min-height: 190px; padding: 28px; display: flex; align-items: end; justify-content: space-between; gap: 20px; position: relative; overflow: hidden; border-radius: 17px; color: #fff; background: linear-gradient(135deg, var(--forest), var(--forest-3)); }
.detail-hero.has-photo { background-position: center; background-size: cover; }
.detail-hero.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,24,17,.92), rgba(12,24,17,.35)); }
.detail-hero > * { position: relative; z-index: 1; }
.detail-hero h3 { margin: 2px 0 5px; font-size: 2.25rem; }
.detail-hero p { margin: 0; color: #d7ddd2; }
.detail-hero-badge { padding: 10px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 11px; background: rgba(255,255,255,.1); font-size: .72rem; font-weight: 800; backdrop-filter: blur(6px); }
.detail-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.detail-kpis div { padding: 12px; border-radius: 11px; background: var(--paper); }
.detail-kpis small, .detail-kpis strong { display: block; }
.detail-kpis small { color: var(--muted); font-size: .59rem; text-transform: uppercase; letter-spacing: .07em; }
.detail-kpis strong { margin-top: 3px; font-family: Georgia, serif; font-size: 1rem; }
.detail-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 12px; }
.detail-card { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #faf9f4; }
.detail-card h4 { margin: 0 0 9px; font-family: Georgia, serif; font-size: 1.02rem; }
.detail-card p { margin: 0; color: var(--muted); font-size: .76rem; white-space: pre-wrap; }
.detail-route-card .route-summary { margin-top: 10px; }
.detail-birds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.detail-birds div { padding: 10px; border-radius: 10px; background: #eef1e9; }
.detail-birds small, .detail-birds strong { display: block; }
.detail-birds small { color: var(--muted); font-size: .61rem; }
.detail-birds strong { margin-top: 3px; color: var(--forest-3); font-size: .77rem; }
.detail-map { width: 100%; height: 330px; margin-top: 12px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: #e5e9df; }
.detail-map-legend { padding: 8px 3px 0; display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .66rem; }
.detail-map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.detail-map-legend i { width: 9px; height: 9px; border: 2px solid #fffef9; border-radius: 50%; box-shadow: 0 0 0 1px rgba(23,38,29,.2); }
.detail-map-legend .approximate i { background: transparent !important; border-color: var(--copper); border-style: dashed; }
.timeline-map-marker { width: 24px; height: 24px; display: grid; place-items: center; border: 2px solid #fffef9; border-radius: 50%; color: #fff; font: 800 8px/1 Inter, sans-serif; box-shadow: 0 3px 9px rgba(18,30,22,.3); }
.timeline-map-marker.shot { background: #9a4f36; }
.timeline-map-marker.photo { background: #42636a; }
.trip-timeline-card { padding: 18px; background: linear-gradient(145deg, #fbfaf6, #eef2ea); }
.timeline-heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.timeline-heading h4 { margin-top: 1px; }
.timeline-heading > span { color: var(--muted); font-size: .62rem; font-weight: 750; white-space: nowrap; }
.timeline-player { padding: 12px; margin-top: 10px; border: 1px solid #cfd9cb; border-radius: 12px; background: rgba(255,255,255,.82); }
.timeline-player.disabled { opacity: .78; }
.timeline-now { display: grid; grid-template-columns: 58px minmax(0, 1fr) minmax(160px, auto); align-items: baseline; gap: 9px; }
.timeline-now small { color: var(--copper); font-size: .72rem; font-weight: 900; }
.timeline-now strong { color: var(--forest-3); font-size: .76rem; }
.timeline-now span { overflow: hidden; color: var(--muted); font-size: .62rem; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.timeline-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; margin-top: 10px; }
.timeline-controls button { min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; color: #fff; background: var(--forest-3); font-size: .63rem; font-weight: 800; }
.timeline-controls button:last-child { color: var(--forest-3); background: var(--paper-2); }
.timeline-controls button:disabled { opacity: .45; }
.timeline-controls input { width: 100%; padding: 0; accent-color: var(--copper); }
.timeline-progress { height: 4px; margin: 10px 0 6px; overflow: hidden; border-radius: 10px; background: #e2e5dd; }
.timeline-progress i { width: 0; height: 100%; display: block; background: var(--copper); transition: width .1s linear; }
.timeline-player > p { margin: 0; color: var(--muted); font-size: .6rem; }
.trip-timeline-list, .untimed-events ol { margin: 13px 0 0; padding: 0; list-style: none; }
.timeline-event { display: grid; grid-template-columns: 48px 16px minmax(0, 1fr); gap: 8px; min-height: 52px; position: relative; opacity: .82; }
.timeline-event::before { content: ""; position: absolute; left: 63px; top: 23px; bottom: -4px; width: 1px; background: #d6dcd2; }
.timeline-event:last-child::before { display: none; }
.timeline-event-time { padding-top: 4px; color: var(--muted); font-size: .62rem; text-align: right; }
.timeline-event > i { z-index: 1; width: 12px; height: 12px; margin-top: 4px; border: 3px solid #f7f8f3; border-radius: 50%; background: var(--moss); box-shadow: 0 0 0 1px #c9d0c5; }
.timeline-event.bird > i { background: #71855d; }
.timeline-event.shot > i { background: #9a4f36; }
.timeline-event.photo > i { background: #42636a; }
.timeline-event.weather > i { background: #7189a0; }
.timeline-event.route > i { background: var(--forest-3); }
.timeline-event > div { padding: 0 8px 10px; border-radius: 8px; transition: background .18s ease; }
.timeline-event small, .timeline-event strong, .timeline-event p { display: block; }
.timeline-event small { color: var(--muted); font-size: .53rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.timeline-event strong { margin-top: 1px; color: var(--forest-3); font-size: .69rem; }
.timeline-event p { margin: 2px 0 0; color: var(--muted); font-size: .6rem; line-height: 1.4; }
.timeline-event[data-route-index] { cursor: pointer; }
.timeline-event[data-route-index]:focus-visible { border-radius: 9px; outline: 2px solid var(--copper); outline-offset: 2px; }
.timeline-event.passed { opacity: 1; }
.timeline-event.active > div { background: #fff; box-shadow: 0 4px 14px rgba(23,38,29,.08); }
.timeline-event.active > i { transform: scale(1.28); box-shadow: 0 0 0 5px rgba(185,112,69,.16); }
.untimed-events { padding-top: 10px; margin-top: 4px; border-top: 1px dashed var(--line); }
.untimed-events summary { color: var(--forest-3); cursor: pointer; font-size: .65rem; font-weight: 800; }
.untimed-events > p { margin: 5px 0 0; color: var(--muted); font-size: .58rem; }
.untimed-events .timeline-event { opacity: .7; }
.playback-pulse-marker { animation: playbackPulse 1.2s ease-out infinite; }
@keyframes playbackPulse { 0%, 100% { stroke-opacity: 1; fill-opacity: .18; } 55% { stroke-opacity: .45; fill-opacity: .05; } }
.detail-data-quality { border-color: #ded7c8; background: #f7f2e7; }
.detail-data-quality.complete { border-color: #d5dfd0; background: #eef4eb; }
.detail-data-quality ul { margin: 8px 0 12px; padding-left: 18px; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.detail-data-quality button { padding: 8px 11px; border: 0; border-radius: 8px; color: #fff; background: var(--forest-3); font-size: .68rem; font-weight: 800; }
.route-playback { margin-top: 9px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.route-playback button { padding: 8px 11px; border: 0; border-radius: 8px; color: #fff; background: var(--forest-3); font-size: .68rem; font-weight: 800; }
.route-playback p { margin: 0; color: var(--muted); font-size: .68rem; }
.detail-contacts { width: 100%; min-width: 0; }
.detail-contacts th, .detail-contacts td { padding: 8px 6px; font-size: .67rem; }
.detail-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.detail-gallery button { padding: 0; border: 0; border-radius: 11px; overflow: hidden; background: var(--paper-2); }
.detail-gallery img { width: 100%; aspect-ratio: 4/3; display: block; object-fit: cover; }
.report-dialog { width: min(1050px, calc(100vw - 24px)); max-height: 94vh; border-radius: 18px; background: #f5f2e9; color: var(--ink); box-shadow: 0 32px 90px rgba(0,0,0,.45); overflow: auto; }
.report-actions { position: sticky; top: 0; z-index: 3; padding: 11px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(23,38,29,.97); }
.report-actions .icon-btn { color: #fff; }
.report-mode { display: flex; align-items: center; gap: 9px; color: var(--sage); font-size: .7rem; font-weight: 800; }
.segmented.dark { background: rgba(255,255,255,.1); }
.segmented.dark button { color: var(--sage); }
.segmented.dark button.active { color: var(--forest); background: #d4c39b; }
.report-content { padding: 38px 45px 50px; }
.report-cover { position: relative; min-height: 190px; padding: 35px 190px 35px 35px; overflow: hidden; border-radius: 20px; color: #fff; background: linear-gradient(135deg, var(--forest), var(--forest-3)); }
.report-cover h1 { margin: 8px 0; font-size: 3.4rem; }
.report-cover p { margin: 0; color: var(--sage); }
.report-logo { position: absolute; right: 24px; top: 50%; width: 152px; height: 152px; object-fit: contain; filter: drop-shadow(0 16px 20px rgba(0,0,0,.28)); transform: translateY(-50%) rotate(1.5deg); }
.report-sharing-note { margin: 14px 0 0; padding: 12px 14px; border: 1px solid #d4c39b; border-radius: 11px; color: var(--forest-3); background: #f2ead8; font-size: .72rem; font-weight: 700; }
.report-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin: 18px 0 30px; }
.report-kpis div { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.report-kpis small, .report-kpis strong { display: block; }
.report-kpis small { color: var(--muted); font-size: .61rem; text-transform: uppercase; letter-spacing: .08em; }
.report-kpis strong { margin-top: 4px; font-family: Georgia, serif; font-size: 1.25rem; }
.report-section { margin-top: 27px; break-inside: avoid; }
.report-section h2 { padding-bottom: 7px; margin-bottom: 10px; border-bottom: 2px solid var(--forest); font-size: 1.45rem; }
.report-table { width: 100%; min-width: 0; border-collapse: collapse; }
.report-table th { padding: 8px; color: var(--muted); background: var(--paper-2); }
.report-table td { padding: 9px 8px; font-size: .7rem; }
.report-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.report-gallery figure { margin: 0; break-inside: avoid; }
.report-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.report-gallery figcaption { margin-top: 4px; color: var(--muted); font-size: .62rem; }
.report-routes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.report-route { padding: 10px; border: 1px solid var(--line); border-radius: 11px; break-inside: avoid; }
.report-route h3 { margin: 0 0 7px; font-size: .9rem; }
.report-route .route-map { min-height: 160px; }
.lefty-stats, .smart-insights { display: grid; gap: 8px; }
.lefty-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lefty-stat-grid div { padding: 11px; border-radius: 11px; background: var(--paper); }
.lefty-stat-grid small, .lefty-stat-grid strong { display: block; }
.lefty-stat-grid small { color: var(--muted); font-size: .61rem; text-transform: uppercase; letter-spacing: .06em; }
.lefty-stat-grid strong { margin-top: 3px; font-family: Georgia, serif; font-size: 1.03rem; }
.lefty-stats-note { margin: 2px 0 0; color: var(--muted); font-size: .68rem; }
.bird-work-overview { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.bird-work-overview > summary { cursor: pointer; color: var(--forest-3); font-size: .875rem; line-height: 1.5; }
.bird-work-overview > summary > span { display: block; padding-left: 17px; color: var(--muted); font-size: .8125rem; font-weight: 400; }
.bird-work-content { padding: 15px 0 4px; }
.bird-work-content p, .bird-work-legacy { font-size: .8125rem; line-height: 1.6; color: var(--muted); margin: 10px 0; }
.bird-work-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bird-work-metrics > div { padding: 12px; border-radius: 10px; background: var(--paper); }
.bird-work-metrics strong, .bird-work-metrics span { display: block; }
.bird-work-metrics strong { font: 1.65rem Georgia, serif; color: var(--forest-3); }
.bird-work-metrics span { margin-top: 6px; font-size: .8125rem; color: var(--muted); }
.bird-work-content h4 { font-size: .875rem; margin: 18px 0 8px; }
.bird-work-table-scroll { overflow-x: auto; }
.bird-work-content table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.bird-work-content th, .bird-work-content td { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: right; }
.bird-work-content th:first-child, .bird-work-content td:first-child { text-align: left; }
.bird-work-content button { padding: 0; border: 0; background: none; color: var(--forest-3); text-align: left; cursor: pointer; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
.bird-work-content button small { display: block; color: var(--muted); margin-top: 4px; font-size: .75rem; }
.bird-work-tag { display: inline-block; margin-top: 5px; font-size: .8125rem; color: var(--forest-3); }
.dog-work-row { display: grid; grid-template-columns: .75fr 1.7fr auto; align-items: end; gap: 10px; margin-bottom: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.dog-work-row > strong, .dog-work-row > small { grid-column: 1 / -1; font-size: .8125rem; }
.dog-work-row label { min-width: 0; }
.dog-work-row > small { color: var(--muted); }
.detail-empty-stands { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.detail-empty-stands > div { padding: 9px 0; }
.detail-empty-stands > div > strong { font-size: .875rem; }
.timeline-map-marker.dog, .timeline-event.dog > i { background: #7e704a; }
#fieldWorkTypeField[hidden] { display: none; }
.workload-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 13px 1px 7px; }
.workload-heading strong { color: var(--forest-3); font-size: .7rem; }
.workload-heading span { color: var(--muted); font-size: .6rem; text-align: right; }
.workload-window-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.workload-window { padding: 11px; border: 1px solid #dce0d6; border-radius: 11px; background: #f7f8f4; }
.workload-window > span, .workload-window > strong, .workload-window > small { display: block; }
.workload-window > span { color: var(--muted); font-size: .58rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.workload-window > strong { margin-top: 2px; color: var(--forest-3); font-family: Georgia, serif; font-size: .98rem; }
.workload-window > small { margin-top: 3px; color: var(--muted); font-size: .59rem; line-height: 1.4; }
.elevation-analysis { display: grid; gap: 10px; }
.elevation-row { display: grid; grid-template-columns: 74px 1fr 32px; align-items: center; gap: 8px; }
.elevation-row > span { color: var(--muted); font-size: .66rem; }
.elevation-row.interactive { width: 100%; padding: 4px; margin: -4px; border: 0; border-radius: 8px; background: transparent; font: inherit; text-align: left; }
.elevation-row.interactive:hover, .elevation-row.interactive:focus-visible { background: #f1f3eb; }
.elevation-track { height: 23px; display: flex; overflow: hidden; border-radius: 7px; background: var(--paper-2); }
.elevation-track i { min-width: 0; height: 100%; }
.elevation-track .lirype { background: #71855d; }
.elevation-track .orrfugl { background: #445f64; }
.elevation-track .tiur { background: #9a6843; }
.elevation-track .rugde { background: #bd7c55; }
.elevation-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 3px; color: var(--muted); font-size: .62rem; }
.elevation-legend span { display: inline-flex; align-items: center; gap: 5px; }
.elevation-legend i { width: 8px; height: 8px; border-radius: 50%; }
.elevation-source-note { margin: 1px 0 0; color: var(--muted); font-size: .58rem; line-height: 1.45; }
.elevation-confidence { margin-top: 1px; }
.smart-insight { position: relative; padding: 0; overflow: visible; border-left: 3px solid var(--moss); border-radius: 9px; background: var(--paper); }
.smart-insight.interactive:hover { border-left-color: var(--copper); }
.smart-insight-main { width: 100%; padding: 11px 42px 11px 12px; display: block; border: 0; border-radius: 8px; color: inherit; background: transparent; font: inherit; text-align: left; }
.smart-insight button.smart-insight-main:hover, .smart-insight button.smart-insight-main:focus-visible { background: #e9eee3; outline: none; }
.smart-insight-main strong { display: block; color: var(--forest-3); font-size: .74rem; }
.smart-insight-main span { display: block; margin-top: 2px; color: var(--muted); font-size: .67rem; }
.smart-insight-main small { display: block; margin-top: 5px; color: var(--copper); font-size: .59rem; font-weight: 800; }
.import-dialog { width: min(680px, calc(100vw - 24px)); border-radius: 20px; color: var(--ink); background: var(--white); box-shadow: 0 32px 90px rgba(0,0,0,.4); overflow: hidden; }
.import-content { min-height: 245px; padding: 22px 25px; }
.import-file { display: flex; align-items: center; gap: 12px; padding-bottom: 17px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.import-file strong, .import-file small { display: block; }
.import-file strong { font-size: .84rem; overflow-wrap: anywhere; }
.import-file small { margin-top: 2px; color: var(--muted); font-size: .68rem; }
.import-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.import-summary > div { padding: 12px 10px; border: 1px solid var(--line); border-radius: 11px; background: #faf9f4; }
.import-summary > div.new { border-color: #cbd8c2; background: #f0f4ec; }
.import-summary small, .import-summary strong, .import-summary span { display: block; }
.import-summary small { color: var(--muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .07em; }
.import-summary strong { margin: 2px 0; font-family: Georgia, serif; font-size: 1.6rem; line-height: 1.1; }
.import-summary span { color: var(--muted); font-size: .63rem; }
.import-safety { display: flex; gap: 11px; align-items: start; padding: 13px; margin-top: 15px; border-radius: 11px; color: var(--forest-3); background: var(--paper); }
.import-safety svg { flex: 0 0 20px; margin-top: 1px; }
.import-safety p { margin: 0; font-size: .72rem; }
.import-warning, .import-complete { margin: 13px 0 0; font-size: .7rem; font-weight: 700; }
.import-warning { color: #8c4c2b; }
.import-complete { padding: 10px 12px; border-radius: 9px; color: var(--forest-3); background: #e9ede5; }
.import-error { min-height: 190px; display: grid; place-content: center; text-align: center; }
.import-error strong { font-family: Georgia, serif; font-size: 1.2rem; }
.import-error p { max-width: 440px; margin: 6px auto 0; color: var(--muted); font-size: .78rem; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 30; min-width: 220px; max-width: 360px; padding: 13px 16px; border-radius: 11px; background: var(--forest); color: var(--white); font-size: .78rem; font-weight: 700; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .24s; }
.toast.show { opacity: 1; transform: translateY(0); }
@media (max-width: 980px) {
  .field-mode-top { display: none; }
  .field-mode-fab { position: fixed; left: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 28; min-height: 46px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 23px; color: #fff; background: rgba(44,71,56,.96); box-shadow: 0 10px 28px rgba(14,28,19,.25); font-size: .7rem; font-weight: 850; backdrop-filter: blur(9px); }
  .field-mode-fab svg { width: 19px; height: 19px; color: #d9c79e; }
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .visual-grid, .map-trend-grid, .insights-grid, .advanced-insights-grid { grid-template-columns: 1fr; }
  .effort-dimensions { grid-template-columns: 1fr 1fr; }
  .filter-bar { grid-template-columns: 1.5fr repeat(2, 1fr); }
  .filter-reset { align-self: center; }
}
@media (max-width: 680px) {
  .topbar { height: 72px; padding: 0 14px; }
  .brand { gap: 0; }
  .brand-mark { width: 58px; height: 58px; flex-basis: 58px; }
  .brand > span:last-child { display: none; }
  .brand strong { font-size: .9rem; }
  .brand small { font-size: .52rem; }
  #reportBtn { width: 38px; padding: 0; display: grid; place-items: center; }
  #reportBtn span { display: none; }
  #installAppBtn { width: 38px; padding: 0; display: grid; place-items: center; }
  #installAppBtn span { display: none; }
  .sync-pill { min-width: 38px; width: 38px; height: 38px; padding: 0; display: grid; place-items: center; }
  .sync-pill > span:last-child { display: none; }
  #backupMenuBtn { width: 38px; padding: 0; display: grid; place-items: center; }
  #backupMenuBtn > span { display: none; }
  .backup-menu-panel { position: fixed; top: 60px; right: 14px; width: min(290px, calc(100vw - 28px)); }
  .top-actions .btn-primary { padding: 9px 12px; font-size: .75rem; }
  main { padding: 0 14px 45px; }
  .hero { margin: 0 -14px; padding: 42px 18px 34px; min-height: 410px; display: block; }
  .hero::before { background: linear-gradient(0deg, rgba(12,24,17,.94) 0%, rgba(17,32,23,.66) 72%, rgba(17,32,23,.25) 100%); }
  .hero-photo { object-position: 67% 100%; }
  .hero-copy { font-size: .92rem; }
  .hero-aside { margin-top: 28px; width: 100%; }
  .distance-pill, .privacy-pill { width: 100%; }
  .dashboard, .hunts { padding-top: 34px; }
  .section-heading { align-items: start; flex-wrap: wrap; }
  .section-heading h2 { font-size: 1.65rem; }
  .section-heading .muted { display: none; }
  .season-heading-actions { width: 100%; align-items: start; justify-content: start; }
  .season-select-label { flex: 1; min-width: 125px; }
  .season-select-label select { width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .stat-card { min-height: 155px; padding: 16px; }
  .stat-icon { margin-bottom: 16px; }
  .stat-card strong { font-size: 1.65rem; }
  .stat-foot { font-size: .61rem; }
  .comparison-summary { grid-template-columns: 1fr 1fr; }
  .comparison-bar-row { grid-template-columns: 78px 1fr; }
  .comparison-bar-row .comparison-bar.previous { grid-column: 2; }
  .season-like-for-like { grid-template-columns: 1fr; }
  .comparison-panel-head { display: block; }
  .comparison-panel-head .segmented { margin-top: 12px; }
  .comparison-pickers { grid-template-columns: 1fr; }
  .comparison-vs { display: none; }
  .comparison-results { grid-template-columns: 1fr; }
  .comparison-divider { min-height: 24px; }
  .comparison-divider::before, .comparison-divider::after { width: 100%; height: 1px; }
  .comparison-divider span { padding: 3px 8px; }
  .comparison-stat-grid { grid-template-columns: 1fr 1fr; }
  .monthly-distance-summary { grid-template-columns: 1fr 1fr; }
  .planner-head { align-items: stretch; flex-direction: column; }
  .planner-controls { width: 100%; }
  .planner-controls label { flex: 1; }
  .planner-controls input { width: 100%; }
  .planner-results { grid-template-columns: 1fr; }
  .hunting-assistant-panel { min-height: 0; }
  .assistant-intro { grid-template-columns: auto minmax(0, 1fr); }
  .owner-only-chip { grid-column: 2; width: fit-content; }
  .assistant-compose { grid-template-columns: 1fr; }
  .assistant-compose .btn { min-height: 44px; }
  .assistant-response-head { display: block; }
  .assistant-response-head span { display: block; margin-top: 3px; text-align: left; }
  .assistant-connection-notice { align-items: flex-start; flex-wrap: wrap; }
  .assistant-connection-notice > span:nth-child(2) { flex-basis: calc(100% - 20px); }
  .assistant-connection-notice button { margin-left: 17px; }
  .panel { padding: 18px; min-height: 315px; }
  .priority-insights-grid .panel { min-height: 0; }
  .contact-weather-panel-head { display: block; }
  .contact-weather-species { width: 100%; margin-top: 12px; justify-content: start; }
  .contact-weather-basis { align-items: stretch; flex-direction: column; }
  .contact-weather-basis > .evidence-quality { align-self: start; }
  .contact-weather-grid { grid-template-columns: 1fr; }
  .effort-analysis-head { display: block; }
  .effort-analysis-status { display: inline-block; margin-top: 9px; }
  .effort-overview { grid-template-columns: 1fr; }
  .effort-dimensions { grid-template-columns: 1fr; }
  .effort-profile-empty { align-items: stretch; flex-direction: column; }
  .effort-profile-empty button { width: fit-content; }
  .season-map { height: 300px; }
  .bird-map-panel { min-height: 0; }
  .season-map.bird-observation-map { height: 250px; }
  .bird-map-head { display: block; }
  .bird-map-controls { margin-top: 12px; justify-content: start; }
  .bird-map-footer { display: block; }
  .map-panel, .trend-panel { min-height: 0; }
  .season-moments { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .season-moments figure { min-width: min(82vw, 420px); min-height: 260px; scroll-snap-align: start; }
  .desktop-new { display: none; }
  .data-quality-summary { align-items: stretch; flex-direction: column; }
  .quality-summary-copy { flex-basis: auto; }
  .quality-summary-actions { align-items: stretch; flex-direction: column; }
  .quality-summary-actions > button { align-self: start; }
  .quality-trip-list { justify-content: start; }
  .quality-trip-list button { flex: 1 1 125px; }
  .insight-selection-notice { align-items: stretch; }
  .filter-bar { grid-template-columns: 1fr 1fr; border-radius: 14px 14px 0 0; }
  .search-field { grid-column: 1 / -1; }
  .filter-reset { align-self: end; }
  .form-grid.two, .form-grid.two.equal, .species-grid, .trip-time-grid { grid-template-columns: 1fr; }
  .manual-elevation-grid { grid-template-columns: 1fr; }
  .conditions-grid { grid-template-columns: 1fr 1fr; }
  .weather-auto-row { align-items: stretch; flex-direction: column; }
  .weather-auto-actions { width: 100%; }
  .weather-auto-actions button { flex: 1; justify-content: center; }
  .weather-auto-btn { justify-content: center; }
  .trip-location-map { height: 300px; }
  .trip-location-picker-footer { align-items: stretch; flex-direction: column; }
  .trip-location-picker-footer > button { width: 100%; min-height: 46px; }
  .hunt-dialog { width: 100vw; max-height: 100dvh; border-radius: 18px 18px 0 0; margin: auto 0 0; }
  .hunt-dialog form { max-height: 100dvh; }
  .field-mode-dialog { width: 100vw; max-height: 100dvh; border-radius: 18px 18px 0 0; margin: auto 0 0; }
  .field-mode-dialog form { max-height: 100dvh; }
  .field-mode-body { padding: 18px 17px; }
  .field-new-trip { grid-template-columns: 1fr; }
  .field-new-trip p { grid-column: 1; }
  .field-species-grid { grid-template-columns: 1fr 1fr; }
  .field-contact-grid { grid-template-columns: 1fr 1fr; }
  .field-contact-grid label:last-child { grid-column: 1 / -1; }
  .field-gps-card { grid-template-columns: auto minmax(0, 1fr); }
  .field-gps-card button { grid-column: 2; width: fit-content; }
  .completion-dialog { width: 100vw; max-height: 100dvh; border-radius: 18px 18px 0 0; margin: auto 0 0; }
  .completion-content { max-height: calc(100dvh - 143px); padding: 18px 17px; }
  .dialog-head, .form-scroll, .dialog-actions { padding-left: 17px; padding-right: 17px; }
  .species-grid label { grid-template-columns: 32px 1fr 72px; }
  .fieldset-head { display: block; }
  .fieldset-head .small-action { margin-bottom: 9px; }
  .bird-contact-row { grid-template-columns: 1fr 1fr; }
  .bird-contact-row > label:first-child { grid-column: 1 / -1; }
  .contact-terrain-field, .contact-note-field, .contact-work-field { grid-column: 1 / -1; }
  .field-event-switch { grid-template-columns: 1fr 1fr; }
  .field-event-switch button span { font-size: .875rem; }
  .field-event-switch button small { font-size: .75rem; }
  .dog-work-row { grid-template-columns: 1fr auto; }
  .dog-work-row > label { grid-column: 1 / -1; }
  .contact-picker.expanded { inset: 5px; padding: 8px; }
  .contact-picker-head { align-items: center; }
  .contact-row-actions { align-self: end; }
  .contact-position { grid-column: 1 / -1; }
  .shot-event-row { grid-template-columns: 1fr 1fr; }
  .shot-event-row label:nth-child(4) { grid-column: 1 / -1; }
  .shot-event-row > button { justify-self: start; }
  .contact-picker-map { height: 350px; }
  .contact-picker-footer { align-items: stretch; flex-direction: column; }
  .contact-picker-footer button { width: 100%; min-height: 46px; }
  .image-preview-grid { grid-template-columns: repeat(3, 1fr); }
  .route-summary { grid-template-columns: 1fr 1fr; }
  .report-content { padding: 25px 20px 35px; }
  .report-actions { flex-wrap: wrap; }
  .report-mode { order: 3; width: 100%; justify-content: center; }
  .report-cover { min-height: 0; padding: 24px 96px 24px 22px; }
  .report-cover h1 { font-size: 2rem; }
  .report-logo { right: 12px; width: 82px; height: 82px; }
  .report-kpis { grid-template-columns: repeat(2, 1fr); }
  .report-gallery, .report-routes { grid-template-columns: 1fr; }
  .import-dialog { width: 100vw; max-height: 100dvh; border-radius: 18px 18px 0 0; margin: auto 0 0; }
  .import-content { padding: 18px 17px; }
  .import-summary { grid-template-columns: 1fr 1fr; }
  .detail-dialog { width: 100vw; max-height: 100dvh; border-radius: 18px 18px 0 0; margin: auto 0 0; }
  .detail-content { max-height: calc(100dvh - 143px); padding: 17px; }
  .detail-hero { min-height: 230px; padding: 20px; display: block; }
  .detail-hero-badge { display: inline-block; margin-top: 16px; }
  .detail-kpis { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-birds { grid-template-columns: 1fr; }
  .timeline-heading { display: block; }
  .timeline-heading > span { display: block; margin-top: 4px; }
  .timeline-now { grid-template-columns: 52px 1fr; }
  .timeline-now span { grid-column: 1 / -1; text-align: left; white-space: normal; }
  .timeline-controls { grid-template-columns: 1fr auto; }
  .timeline-controls input { grid-column: 1 / -1; grid-row: 1; }
  .timeline-controls button { grid-row: 2; }
  .detail-gallery { grid-template-columns: 1fr 1fr; }
  .lefty-companion { right: 5px; bottom: max(5px, env(safe-area-inset-bottom)); width: 106px; }
  .lefty-speech { right: 76%; bottom: 69%; width: min(220px, calc(100vw - 118px)); padding: 13px 33px 12px 14px; }
  .lefty-nameplate { right: 1px; bottom: 2px; min-width: 68px; padding: 6px 8px 5px; }
  .toast { left: 14px; right: 14px; bottom: 78px; max-width: none; }
}
@media (max-width: 440px) {
  .install-btn { display: none !important; }
  .trend-summary { grid-template-columns: 1fr; }
  .season-map { height: 280px; }
  .season-map.bird-observation-map { height: 230px; }
  .contact-weather-row { grid-template-columns: minmax(0, 1fr) 60px; }
  .contact-weather-track { grid-column: 1 / -1; grid-row: 2; }
  .contact-weather-value { grid-column: 2; grid-row: 1; }
}
@media print {
  @page { size: A4 portrait; margin: 12mm; }
  body { background: #fff; }
  body > *:not(.report-dialog) { display: none !important; }
  .report-dialog { display: block !important; position: static; width: 100%; max-height: none; margin: 0; border-radius: 0; box-shadow: none; overflow: visible; }
  .report-actions { display: none !important; }
  .report-content { padding: 0; }
  .report-cover { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .report-kpis { grid-template-columns: repeat(5, 1fr); }
  .report-gallery { grid-template-columns: repeat(3, 1fr); }
  .report-routes { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .lefty-companion-image, .lefty-speech, .lefty-connection-dot, .assistant-connection-pulse, .hunting-assistant-panel.assistant-attention { animation: none !important; }
}

/* Manual and optional details are reminders, not failed automatic lookups. */
.quality-table-mark.manual, .quality-table-mark.optional { color: var(--muted); background: transparent; border-color: #d9dbd3; }
.quality-table-mark.manual i, .quality-table-mark.optional i { background: transparent; border: 1px solid currentColor; }
.detail-data-quality.optional { border-color: var(--line); background: transparent; }

/* Optional details stay folded so Lefty's advice remains the focus. */
.assistant-hourly { margin-top: 9px; font-size: 11px; }
.assistant-hourly summary { cursor: pointer; color: var(--ink); font-weight: 600; }
.assistant-hourly-rows { max-height: 230px; overflow-y: auto; margin: 8px 0; font-variant-numeric: tabular-nums; }
.assistant-hourly-rows > div { display: grid; grid-template-columns: .7fr .8fr 1fr 1.2fr; gap: 6px; padding: 5px 0; border-bottom: 1px solid rgba(60, 70, 40, .08); }
.assistant-hourly-rows span { font-size: 10px; white-space: nowrap; }
.assistant-hourly > small { display: block; margin-top: 7px; line-height: 1.5; }

/* Three quiet forecasts form the seam between the toolbar and the landscape. */
.weather-strip { position: relative; z-index: 5; display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 24px; align-items: center; margin: 0 -24px; padding: 14px 26px; color: var(--forest); background: #f6f7f2; border-bottom: 1px solid #dce2d5; }
.weather-strip.weather-panel-open { z-index: 40; }
.weather-strip-heading { min-width: 0; }
.weather-strip-heading > label { display: block; margin-bottom: 3px; color: #68795b; font-size: .75rem; letter-spacing: .13em; font-weight: 750; }
.weather-strip-heading select { display: block; width: 100%; max-width: 235px; min-height: 30px; margin-left: -5px; padding: 3px 18px 3px 4px; border: 1px solid transparent; border-radius: 5px; color: var(--forest); background: transparent; font: inherit; font-size: .875rem; font-weight: 700; cursor: pointer; }
.weather-strip-heading select:hover { background: #e9eee2; }
.weather-strip-heading select:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; }
.weather-strip-status { display: block; margin-top: 2px; font-size: .75rem; line-height: 1.35; color: #65735c; }
.weather-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; gap: 4px; }
.weather-days > button { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 3px 12px; min-width: 0; padding: 5px 18px; text-align: left; color: inherit; background: transparent; border: 1px solid transparent; border-left-color: #dce2d5; border-radius: 0; cursor: pointer; }
.weather-days > button:hover, .weather-days > button[aria-expanded="true"] { background: #e9eee2; border-radius: 9px; border-color: transparent; }
.weather-days > button:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; border-radius: 9px; }
.weather-day-title { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: .875rem; font-weight: 650; text-transform: capitalize; }
.weather-day-title small { color: #68795b; font-size: .75rem; font-weight: 400; text-transform: none; }
.weather-symbol { display: block; width: 34px; height: 37px; flex-shrink: 0; align-self: center; color: #657764; }
.weather-symbol.sun, .weather-symbol .weather-sun { color: #aa7a26; }
.weather-symbol .weather-rain { color: #557f9b; }
.weather-symbol.unknown { color: #899083; }
.weather-day-values { display: flex; flex-direction: column; align-self: center; gap: 3px; min-width: 0; }
.weather-day-values strong { font-size: 1rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.weather-day-values small { color: #53634d; font-size: .75rem; line-height: 1.35; }
.weather-days > button.stale .weather-day-values { color: #727668; }
.weather-day-popover { position: fixed; z-index: 1; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px; background: #fffefa; border: 1px solid #d4ddca; border-radius: 15px; box-shadow: 0 18px 60px rgba(15, 33, 21, .23); }
.weather-day-popover[hidden] { display: none; }
.weather-popover-heading { position: sticky; top: -16px; z-index: 1; display: flex; align-items: start; justify-content: space-between; gap: 15px; margin: -16px -20px 4px; padding: 13px 20px 9px; background: #fffefa; }
.weather-popover-heading > div > span { font-size: .75rem; letter-spacing: .1em; color: #697a5a; }
.weather-popover-heading h3 { margin: 4px 0 0; font-size: 1.35rem; text-transform: capitalize; }
.weather-popover-heading > button { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border: 0; border-radius: 50%; background: #eef1e8; color: var(--forest); }
.weather-popover-heading > button svg { width: 17px; height: 17px; }
.weather-place-row { display: grid; grid-template-columns: minmax(100px, 1fr) 36px minmax(115px, 1fr); gap: 5px 12px; align-items: center; padding: 10px 0; border-top: 1px solid #e1e6d9; }
.weather-place-name strong, .weather-place-name small { display: block; }
.weather-place-name strong { font-size: .95rem; font-weight: 700; }
.weather-place-name small { margin-top: 4px; font-size: .8125rem; color: #65735c; }
.weather-place-values { display: flex; flex-direction: column; gap: 3px; text-align: right; font-variant-numeric: tabular-nums; }
.weather-place-values strong { font-size: 1rem; }
.weather-place-values span { font-size: .8125rem; color: #53634d; }
.weather-place-note { grid-column: 1 / -1; margin: 0; color: #6c7665; font-size: .75rem; line-height: 1.5; }
.weather-source-details { margin-top: 6px; color: #65735c; font-size: .75rem; line-height: 1.5; }
.weather-source-details summary { width: fit-content; padding: 5px 0; cursor: pointer; }
.weather-source-details p { margin: 7px 0; overflow-wrap: anywhere; }
.weather-place-name .weather-saved { color: #977139; font-size: .75rem; }
.weather-popover-foot { margin: 7px 0 0; padding-top: 12px; border-top: 1px solid #e1e6d9; color: #65735c; font-size: .75rem; line-height: 1.55; }
@media (max-width: 900px) {
  .weather-strip { grid-template-columns: 180px 1fr; gap: 12px; padding-left: 22px; padding-right: 22px; }
  .weather-days > button { padding: 5px 10px; gap: 3px 5px; grid-template-columns: 32px minmax(0, 1fr); }
  .weather-day-title small { display: none; }
  .weather-symbol { width: 29px; height: 33px; }
}
@media (max-width: 680px) {
  .weather-strip { margin: 0 -14px; padding: 12px 15px; grid-template-columns: 1fr; gap: 10px; }
  .weather-strip-heading { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
  .weather-strip-heading > label { margin: 0; }
  .weather-strip-heading select { width: auto; max-width: 100%; justify-self: end; margin: 0; }
  .weather-strip-status { grid-column: 1 / -1; font-size: .75rem; margin-top: 1px; }
  .weather-days > button { grid-template-columns: 28px minmax(0, 1fr); padding: 5px 8px; gap: 4px; }
  .weather-days > button:first-child { border-left-color: transparent; padding-left: 0; }
  .weather-day-values strong { font-size: .875rem; }
  .weather-day-values small { font-size: .75rem; }
  .weather-day-title { font-size: .8125rem; }
  .weather-day-popover { padding: 16px 14px 12px; }
  .weather-popover-heading { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  .weather-place-row { grid-template-columns: minmax(0, 1fr) 25px minmax(0, 1fr); gap: 6px; }
  .weather-place-name strong { overflow-wrap: anywhere; }
}
@media print { .weather-strip { display: none; } }


/* Additional bird categories use distinct, muted marker colours. */
.species-icon.fjellrype{background:#e3f0fa;color:#28678f}
.species-icon.orrhone{background:#eee7f5;color:#67488e}
.bird-marker-label.fjellrype{background:#4b9bd3}
.bird-marker-label.orrhone{background:#8a68b3}
.field-species-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:600px){.field-species-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Constrain the frame, scroll only the content, and reserve space for actions. */
:is(.field-mode-dialog,.hunt-dialog,.detail-dialog)[open]{
 display:flex;flex-direction:column;min-height:0;
 max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);
}
:is(.field-mode-dialog,.hunt-dialog)>form,
.field-mode-dialog>.journey-frame{
 display:flex;flex-direction:column;flex:1 1 auto;min-height:0;max-height:inherit;overflow:hidden;
}
:is(.field-mode-dialog,.hunt-dialog,.detail-dialog) :is(.dialog-head,.dialog-actions){flex:0 0 auto}
:is(.field-mode-dialog,.hunt-dialog,.detail-dialog) :is(.field-mode-body,.form-scroll,.detail-content){
 flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior-y:contain;
 -webkit-overflow-scrolling:touch;scroll-padding-block:16px;
}
:is(.field-mode-dialog,.hunt-dialog,.detail-dialog) .dialog-actions{
 position:static;flex-wrap:wrap;padding-bottom:max(14px,env(safe-area-inset-bottom));
}
@media(max-width:600px){
 :is(.field-mode-dialog,.hunt-dialog,.detail-dialog)[open]{
  position:fixed;inset:var(--field-viewport-top,0px) 0 auto;
  width:100%;max-width:100%;height:100vh;height:var(--field-viewport-height,100dvh);
  max-height:100vh;max-height:var(--field-viewport-height,100dvh);
  margin:0;border-radius:0;
 }
 :is(.field-mode-dialog,.hunt-dialog,.detail-dialog) .dialog-head{
  padding-top:max(14px,env(safe-area-inset-top));
 }
 :is(.field-mode-dialog,.hunt-dialog,.detail-dialog) :is(.dialog-head,.dialog-actions,.field-mode-body,.form-scroll,.detail-content){
  padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));
 }
 :is(.field-mode-dialog,.hunt-dialog,.detail-dialog) .dialog-actions{gap:8px}
 :is(.field-mode-dialog,.hunt-dialog,.detail-dialog) .dialog-actions .btn{
  flex:1 1 130px;min-width:0;min-height:48px;white-space:normal;overflow-wrap:anywhere;
 }
}


.field-photo-actions { display:flex; flex-wrap:wrap; gap:10px; margin:10px 0; }
.field-photo-actions .field-photo-choice { position:relative; display:flex; flex:1 1 160px; align-items:center; justify-content:center; min-width:0; min-height:52px; padding:12px; border:1px solid #b8c4ae; border-radius:12px; color:#263c2c; background:#fff; font-size:15px; font-weight:750; line-height:1.3; text-align:center; cursor:pointer; }
.field-photo-actions .field-photo-camera { background:#b97045; border-color:#b97045; color:#fff; }
.field-photo-choice > span { pointer-events:none; }
.field-photo-field .field-photo-choice > input[type="file"] { position:absolute; inset:0; z-index:1; display:block; width:100%; height:100%; margin:0; padding:0; opacity:0; cursor:pointer; }
.field-photo-choice:focus-within { outline:3px solid #315740; outline-offset:3px; }

