:root {
  --ink:#193b2f; --ink-deep:#102f27; --leaf:#2d6150; --lime:#d5ed9a;
  --paper:#f8f9f3; --cream:#f0f4e8; --white:#fff; --line:#dce4d8;
  --muted:#617269; --red:#9f4540; --radius:22px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink); background:var(--paper); font-synthesis:none;
}
*,*::before,*::after { box-sizing:border-box }
[hidden] { display:none!important }
body { margin:0; font-size:16px; line-height:1.5; -webkit-font-smoothing:antialiased }
button,input,select,textarea { font:inherit }
a { color:inherit; text-decoration:none }
img { max-width:100%; display:block }
button { cursor:pointer }
:focus-visible { outline:3px solid #77b55f; outline-offset:3px }
.site-shell { min-height:100vh; display:flex; flex-direction:column }
.site-header { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:15px max(24px,calc((100vw - 1240px)/2)); background:#fff; border-bottom:1px solid var(--line); min-height:86px }
.brand { display:flex; align-items:center; gap:12px; flex-shrink:0 }
.brand-mark { width:52px; height:52px; border-radius:16px; background:#e6f2d4; display:flex; align-items:center; justify-content:center }
.brand-mark img { width:42px; height:42px }
.brand-label { display:flex; flex-direction:column; line-height:1.2 }
.brand-label strong { font-family:Georgia,serif; font-size:22px; letter-spacing:-.6px }
.brand-label small { font-size:12px; letter-spacing:1px; text-transform:uppercase; font-weight:650; margin-top:5px; color:var(--leaf) }
.top-nav { display:flex; align-items:center; gap:18px }
.nav-home { font-weight:650; color:var(--leaf); font-size:15px }
.nav-home:hover,.back-link:hover { text-decoration:underline }
.logout-form { margin:0 }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:14px 23px; min-height:48px; border:1px solid transparent; border-radius:100px; font-weight:730; font-size:15px; transition:transform .14s ease,background .14s ease,border-color .14s ease; text-align:center }
.btn:hover { transform:translateY(-1px) }
.btn-primary { background:var(--ink); color:#fff }
.btn-primary:hover { background:var(--leaf) }
.btn-small { min-height:39px; padding:9px 17px; font-size:14px }
.btn-text { color:var(--leaf); background:transparent; padding-inline:4px }
.btn-lime { background:var(--lime); color:var(--ink-deep); box-shadow:0 4px 16px #09241c36 }
.btn-lime:hover { background:#e2f5b8 }
.btn-ghost { border-color:var(--line); background:#fff; color:var(--ink) }
.btn-wide { width:100%; margin-top:10px }
.main-content { max-width:1288px; width:100%; margin:0 auto; padding:30px 24px 64px; flex:1 }
.site-footer { padding:24px; border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:10px; color:#7a867c; font-size:13px; width:100% }
h1,h2,h3,p { margin-top:0 }
h1,h2,h3 { letter-spacing:-.7px }
h1,h2 { font-family:Georgia,"Times New Roman",serif; font-weight:500 }
.eyebrow { display:block; font-size:12px; letter-spacing:2.2px; text-transform:uppercase; color:var(--leaf); font-weight:850; margin-bottom:12px }
.eyebrow-light { color:var(--lime) }
.muted { color:var(--muted) }
.hero { background:var(--ink-deep); color:#fff; border-radius:28px; min-height:390px; overflow:hidden; display:grid; grid-template-columns:1.05fr .95fr; position:relative }
.hero::before { content:""; position:absolute; width:420px; height:420px; border:1px solid #7bb88620; border-radius:50%; left:-170px; bottom:-300px; pointer-events:none }
.hero-copy { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; padding:50px clamp(28px,5vw,70px); position:relative; z-index:1 }
.hero h1 { font-size:clamp(36px,4vw,55px); line-height:1.08; margin-bottom:19px }
.hero h1 em { color:var(--lime); font-weight:400 }
.hero p { color:#dae8dc; max-width:450px; line-height:1.65; margin-bottom:28px }
.hero-photo-wrap { position:relative; min-height:320px; overflow:hidden }
.hero-photo { width:100%; height:100%; object-fit:cover; object-position:center 50% }
.hero-photo-wrap::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#102f2778,transparent 35%),linear-gradient(0deg,#08251d8c,transparent 50%); pointer-events:none }
.photo-caption { position:absolute; z-index:1; bottom:26px; left:30px; right:24px; display:flex; flex-direction:column; line-height:1.22; text-shadow:0 2px 9px #10221d }
.photo-caption span { color:var(--lime); font-size:12px; font-weight:780; text-transform:uppercase; letter-spacing:1.2px; margin-bottom:7px }
.photo-caption strong { font-family:Georgia,serif; font-size:28px; font-weight:500 }
.photo-caption small { margin-top:6px; opacity:.9 }
.hero-art { align-self:center; justify-self:center; width:280px; height:280px; border-radius:50%; display:grid; place-items:center; background:#285444 }
.hero-art img { width:180px }
.stats { display:grid; grid-template-columns:repeat(3,1fr); margin:24px 0 54px; gap:16px }
.stat { display:flex; align-items:center; gap:18px; min-height:106px; padding:20px 30px; background:#fff; border:1px solid var(--line); border-radius:18px }
.stat-icon { color:var(--leaf); background:#edf5e7; width:45px; height:45px; display:grid; place-items:center; border-radius:50%; font-size:22px; flex-shrink:0 }
.stat div { display:flex; flex-direction:column; gap:1px }
.stat strong { font-family:Georgia,serif; font-size:32px; font-weight:500; line-height:1.1 }
.stat div span { color:var(--muted); font-size:14px }
.section-header { display:flex; align-items:end; justify-content:space-between; gap:16px; margin:0 0 23px }
.section-header h2 { font-size:clamp(29px,3vw,37px); margin:0; line-height:1.2 }
.collection-count { font-size:14px; font-weight:700; color:var(--leaf); background:#eaf3e4; padding:8px 15px; border-radius:60px; white-space:nowrap }
.bird-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:23px }
.bird-card { display:block; border:1px solid var(--line); border-radius:20px; background:#fff; overflow:hidden; transition:transform .18s ease,box-shadow .18s ease }
.bird-card:hover { transform:translateY(-4px); box-shadow:0 13px 32px #173f2b13 }
.bird-cover { aspect-ratio:1.45; position:relative; background:#dfe7da; overflow:hidden }
.bird-cover img { width:100%; height:100%; object-fit:cover; transition:transform .25s ease }
.bird-card:hover .bird-cover img { transform:scale(1.035) }
.bird-placeholder { height:100%; display:grid; place-items:center; font-size:65px }
.count-pill { position:absolute; right:16px; top:16px; background:#fffef3f5; font-size:13px; padding:7px 12px; border-radius:60px; font-weight:760 }
.bird-info { padding:20px 22px 22px }
.bird-info h3 { font-family:Georgia,serif; font-weight:500; font-size:27px; margin:0 0 2px }
.bird-info p { font-style:italic; color:var(--muted); font-size:14px; margin-bottom:15px }
.last-seen { font-size:13px; color:var(--leaf); font-weight:750; border-top:1px solid #e8eee5; display:block; padding-top:13px }
.empty-state { background:#fff; border:1px dashed #becfba; border-radius:24px; padding:60px 20px; text-align:center; margin:20px auto; max-width:760px }
.empty-state h3 { font-family:Georgia,serif; font-size:27px; font-weight:500 }
.empty-state p { color:var(--muted); margin-bottom:24px }
.empty-icon { font-size:58px; margin-bottom:16px }
.notifications { margin:0 0 18px }
.notice { padding:13px 18px; border-radius:12px; font-weight:650; margin-bottom:8px; background:#e6f4df; color:#225b3e }
.notice-error { background:#fff0ee; color:#98423b }
.back-link { display:inline-block; color:var(--leaf); font-weight:650; font-size:15px; margin:0 0 25px }
.detail-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; padding:8px 0 34px }
.detail-heading h1,.form-heading h1 { font-size:clamp(42px,5vw,61px); line-height:1; margin:0 0 10px }
.latin { font-style:italic; font-size:16px; color:var(--muted); margin:0 }
.detail-layout { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(280px,.85fr); gap:34px; align-items:start }
.section-header.smaller h2 { font-size:30px }
.sighting-list { display:grid; gap:18px }
.sighting-card { display:grid; grid-template-columns:210px minmax(0,1fr); border:1px solid var(--line); border-radius:18px; background:#fff; overflow:hidden; min-height:200px }
.sighting-photo { width:100%; height:100%; min-height:200px; object-fit:cover; background:#e6ede0 }
.sighting-photo.no-photo { display:grid; place-items:center; font-size:65px }
.sighting-data { padding:21px 24px; min-width:0 }
.date-label { font-size:12px; font-weight:790; color:var(--leaf); text-transform:uppercase; letter-spacing:1.1px }
.sighting-data h3 { font-size:26px; font-family:Georgia,serif; font-weight:500; margin:4px 0 }
.sighting-meta { color:var(--muted); font-size:14px; margin-bottom:8px }
.sighting-note { white-space:pre-wrap; overflow-wrap:anywhere; margin:10px 0; color:#405248 }
.sighting-actions { display:flex; gap:18px; margin-top:12px }
.sighting-actions a,.sighting-actions button { color:var(--leaf); background:none; border:0; padding:0; font-size:14px; font-weight:750; text-decoration:underline }
.sighting-actions button { color:var(--red) }
.sighting-actions form { margin:0 }
.species-panel { background:#e8f0df; border-radius:22px; padding:32px 28px; position:sticky; top:20px }
.species-panel h2 { font-size:31px; margin-bottom:28px }
.fact { display:flex; gap:14px; border-top:1px solid #cad9c7; padding:20px 0 }
.fact-icon { background:#d2e4ca; flex-shrink:0; width:35px; height:35px; border-radius:50%; display:grid; place-items:center; font-size:20px; color:var(--leaf) }
.fact h3 { margin:0 0 5px; font-size:16px; font-weight:800; letter-spacing:0 }
.fact p { margin:0; color:#4c6754; font-size:14px; line-height:1.6 }
.form-heading { padding:4px 0 30px }
.form-heading p { color:var(--muted); margin:8px 0 0 }
.sighting-form { max-width:790px; background:#fff; border:1px solid var(--line); border-radius:24px; padding:14px 35px 32px }
.form-section { padding:26px 0 29px; border-bottom:1px solid var(--line) }
.form-section h2 { display:flex; align-items:center; gap:13px; font-family:Georgia,serif; font-size:26px; margin-bottom:23px }
.form-section h2 span { width:35px; height:35px; flex-shrink:0; background:#e7f0df; font:750 16px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; border-radius:50%; display:grid; place-items:center; color:var(--leaf) }
.field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px }
.field { display:flex; flex-direction:column; gap:8px }
.field.full { grid-column:1/-1 }
.field label { font-weight:730; font-size:15px }
.field input,.field select,.field textarea,.field-stack input { width:100%; border:1px solid #cbd7ca; border-radius:12px; padding:12px 14px; background:#fbfcf8; color:var(--ink); font-size:16px; outline:none; min-height:49px }
.field input:focus,.field select:focus,.field textarea:focus,.field-stack input:focus { border-color:#4e8669; box-shadow:0 0 0 3px #78b59429 }
.field textarea { resize:vertical; min-height:120px }
.field select { appearance:none; padding-right:42px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='m2 2 5 5 5-5' stroke='%232d6150' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-position:right 16px center; background-repeat:no-repeat }
.upload-zone { min-height:175px; border:2px dashed #a9c7aa; border-radius:15px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:25px 16px; background:#f5f9ef; cursor:pointer; gap:4px }
.upload-zone .upload-icon { display:grid; place-items:center; width:46px; height:46px; border-radius:50%; background:#e2eedb; color:var(--leaf); font-size:25px; margin-bottom:7px }
.upload-zone strong { color:var(--ink); font-size:16px }
.upload-zone span:not(.upload-icon) { color:var(--muted); font-size:13px }
.upload-zone #photo-preview { max-height:220px; max-width:100%; border-radius:12px; margin-top:13px; object-fit:contain }
.upload-zone .chosen-photo { font-weight:650; overflow-wrap:anywhere }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap }
.existing-photo { display:flex; align-items:center; gap:16px; margin:20px 0; color:var(--muted); font-size:14px }
.existing-photo img { width:100px; height:80px; border-radius:10px; object-fit:cover }
.existing-photo label { display:flex; align-items:center; gap:10px }
.existing-photo input { width:18px; height:18px }
.form-footer { display:flex; justify-content:end; gap:12px; padding-top:28px }
.login-layout { display:grid; grid-template-columns:1.1fr .9fr; overflow:hidden; border-radius:28px; border:1px solid var(--line); min-height:590px; background:white; max-width:1060px; margin:36px auto }
.login-decoration { background:radial-gradient(circle at 15% 80%,#376954 0,transparent 46%),var(--ink-deep); padding:72px 55px; position:relative; color:#fff }
.login-decoration h1 { font-size:clamp(41px,4vw,58px); line-height:1.09; margin-top:80px }
.login-decoration h1 em { color:var(--lime); font-weight:400 }
.login-decoration p { max-width:370px; color:#d6e6d9 }
.decoration-bird { position:absolute; right:40px; bottom:40px; font-size:100px; color:#aec88d50; transform:rotate(-18deg) }
.login-panel { padding:70px clamp(25px,4vw,65px); display:flex; flex-direction:column; justify-content:center }
.login-panel h2 { font-size:37px; line-height:1.16; margin-bottom:10px }
.login-panel p { margin-bottom:26px }
.field-stack { display:flex; flex-direction:column; gap:12px }
.field-stack label { font-size:15px; font-weight:750 }
.little-note { margin-top:24px!important; font-size:13px; color:var(--muted); text-align:center }
@media (max-width:900px) {
 .site-header { padding:14px 24px }
 .hero { grid-template-columns:1fr 1fr }
 .hero-copy { padding:40px 32px }
 .bird-grid { grid-template-columns:repeat(2,minmax(0,1fr)) }
 .detail-layout { grid-template-columns:1fr }
 .species-panel { position:static }
 .login-decoration { padding:60px 35px }
 .login-panel { padding:55px 30px }
}
@media (max-width:640px) {
 .site-header { min-height:75px; padding:11px 16px; gap:9px; flex-wrap:wrap }
 .brand { gap:8px }
 .brand-mark { width:42px; height:42px; border-radius:12px }
 .brand-mark img { width:35px; height:35px }
 .brand-label strong { font-size:19px }
 .brand-label small { font-size:10px; letter-spacing:.5px }
 .top-nav { gap:12px; width:100%; justify-content:space-between }
 .top-nav .nav-home { display:none }
 .btn-small { padding:9px 12px; font-size:13px }
 .main-content { padding:17px 14px 44px }
 .hero { grid-template-columns:1fr; border-radius:21px }
 .hero-copy { padding:35px 26px 31px }
 .hero h1 { font-size:38px }
 .hero p { margin-bottom:20px; font-size:15px }
 .hero-photo-wrap { min-height:230px; height:230px }
 .photo-caption { bottom:18px; left:22px }
 .stats { gap:9px; margin:15px 0 40px }
 .stat { flex-direction:column; justify-content:center; align-items:flex-start; padding:13px 12px; min-height:113px; gap:8px; border-radius:14px }
 .stat-icon { width:30px; height:30px; font-size:16px }
 .stat strong { font-size:26px }
 .stat div span { font-size:11px; line-height:1.15 }
 .section-header { align-items:start; flex-direction:column; gap:10px }
 .section-header h2 { font-size:31px }
 .bird-grid { grid-template-columns:1fr; gap:15px }
 .bird-cover { aspect-ratio:1.6 }
 .bird-info { padding:17px 20px }
 .detail-heading { align-items:flex-start; flex-direction:column }
 .detail-heading h1,.form-heading h1 { font-size:42px }
 .sighting-card { grid-template-columns:1fr }
 .sighting-photo { min-height:210px; max-height:320px }
 .sighting-data { padding:17px 20px }
 .species-panel { padding:25px }
 .sighting-form { padding:10px 20px 25px; border-radius:19px }
 .field-grid { grid-template-columns:1fr; gap:15px }
 .form-section h2 { font-size:23px }
 .form-footer { flex-direction:column-reverse }
 .form-footer .btn { width:100% }
 .login-layout { grid-template-columns:1fr; margin:8px auto }
 .login-decoration { min-height:230px; padding:30px }
 .login-decoration h1 { font-size:37px; margin:25px 0 12px }
 .login-decoration p { font-size:14px; margin:0 }
 .decoration-bird { display:none }
 .login-panel { padding:34px 26px 20px }
 .site-footer { flex-direction:column; align-items:center; gap:4px; font-size:12px }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important } }
