:root{color-scheme:light;--ink:#1A365D;--muted:#52677C;--green:#2E7D32;--brand:#4CAF50;--deep:#23632A;--paper:#F7FAFC;--surface:#FFFFFF;--soft-green:#E8F5E9;--soft-blue:#E8F3FC;--line:#D8E4ED;--gold:#63B3ED;--red:#B42332;--button-ink:#102A16;--radius:24px;--shadow:0 8px 28px rgba(26,54,93,.045)}

*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
a{color:var(--green);text-underline-offset:4px}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea,summary{touch-action:manipulation}
a,button{transition:background .15s,color .15s}
a:hover{color:var(--deep)}
[hidden]{display:none!important}
:focus-visible{outline:3px solid #24628E;outline-offset:4px}
.skip{position:absolute;top:-100px;left:16px;z-index:5;background:white;padding:12px}
.skip:focus{top:10px}

.site-header{background:var(--surface);border-bottom:1px solid var(--line)}
.header-inner{max-width:1180px;margin:auto;padding:20px 28px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:22px;font-weight:650;line-height:1.2;color:var(--ink)}
.brand b{font-weight:700}
.brand small{display:block;margin-top:5px;font-size:11px;font-weight:450;letter-spacing:1px;color:var(--muted)}
.brand-mark{display:grid;place-items:center;background:var(--soft-green);color:var(--ink);width:46px;height:46px;border-radius:16px}
nav{display:flex;align-items:center;gap:8px}
nav a,.nav-button{font-size:14px;font-weight:600;text-decoration:none;color:var(--muted);min-height:44px;display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border-radius:14px}
nav [aria-current]{color:var(--green);background:var(--soft-green);text-decoration:none}
.nav-button{border:0;background:transparent;cursor:pointer;padding:0}

.main{max-width:1180px;margin:auto;padding:46px 28px 72px;min-height:calc(100vh - 180px)}
h1,h2,h3,p{margin-top:0}
h1{font-family:inherit;line-height:1.12;font-size:44px;font-weight:750;letter-spacing:-1.3px;margin-bottom:18px;overflow-wrap:anywhere}
h2{font-size:23px;line-height:1.3;font-weight:650;margin-bottom:14px;overflow-wrap:anywhere}
h3{font-size:18px;line-height:1.4;margin-bottom:10px;overflow-wrap:anywhere}
p{color:var(--muted);margin-bottom:18px;overflow-wrap:anywhere}
.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:1.8px;font-weight:750;color:var(--green);margin-bottom:16px}
.lead{font-size:18px;max-width:510px;line-height:1.8}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 23px;border:1px solid var(--brand);border-radius:16px;background:var(--brand);color:var(--button-ink);text-decoration:none;font-weight:650;font-size:14px;cursor:pointer;line-height:1.4;text-align:center}
.button:hover{background:#43A047;color:var(--button-ink)}
.button.secondary{background:var(--surface);color:var(--ink);border-color:var(--line)}
.button.secondary:hover{background:var(--soft-blue)}
.button.small{min-height:44px;padding:10px 17px}
.button.full{width:100%;margin-top:24px}
.button:disabled{opacity:.6;cursor:wait}
.button.danger{background:var(--red);border-color:var(--red);color:#fff}
.actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:34px}
.page-heading p:last-child{margin-bottom:0}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:26px;box-shadow:var(--shadow)}
.three-col{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.two-col,.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:34px 0 18px}
.section-heading h2,.section-heading h3{margin:0}
.section-heading a{font-size:14px}
.stats .panel span{font-size:13px;color:var(--muted)}
.stats strong{display:block;font:750 42px/1.2 system-ui,sans-serif;margin-top:14px}

.trip-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px;text-decoration:none;color:var(--ink)}
.trip-row:hover{border-color:var(--green);background:var(--soft-green)}
.trip-row .eyebrow{margin-bottom:8px;display:block}
.trip-row h2,.trip-row h3{margin-bottom:6px}
.trip-row p{margin:0;font-size:14px}
.badge{flex-shrink:0;border-radius:30px;background:var(--soft-green);color:var(--green);padding:6px 13px;font-size:12px;font-weight:650}
.row-arrow{font-size:24px}
.empty{text-align:center;padding:52px 26px;grid-column:1/-1}
.empty p{max-width:520px;margin:0 auto 24px}
.empty h1{font-size:36px}
.empty-mark{display:inline-block;font:60px/1 Georgia,serif;color:var(--gold);margin-bottom:14px}
.back{display:inline-block;margin-bottom:22px;font-size:14px}
.detail-grid .panel h3{margin-top:20px;font-size:14px}
dl{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,1.6fr);gap:10px 16px;margin:0;font-size:14px}
dt{color:var(--muted)}
dd{margin:0;overflow-wrap:anywhere}
.preserve{white-space:pre-wrap}
.catch-card .section-heading{margin-top:0}
.catch-card .actions{margin-top:22px;font-size:14px}
.danger-link{color:var(--red);font-size:14px}
.end-actions{margin-top:40px}
.muted{color:var(--muted);font-size:14px}

label{display:block;font-size:14px;font-weight:650;margin:0 0 8px}
.required{font-size:11px;font-weight:400;color:var(--muted)}
input:not([type=checkbox]):not([type=hidden]),select,textarea{display:block;width:100%;max-width:100%;border:1px solid #71869B;border-radius:14px;padding:12px 14px;background:var(--surface);color:var(--ink);min-height:46px}
textarea{resize:vertical}
input:focus,select:focus,textarea:focus{border-color:var(--green)}
.field{margin-bottom:22px;min-width:0}
.invalid input,.invalid select,.invalid textarea{border-color:var(--red)}
.errorlist{color:var(--red);font-size:13px;list-style:none;padding:0;margin:8px 0 0}
.help{font-size:12px;margin:7px 0 0}
.notice{border:1px solid var(--line);border-radius:16px;padding:15px 18px;margin-bottom:22px;font-size:14px;color:var(--ink);white-space:pre-line;overflow-wrap:anywhere}
.notice.success{background:var(--soft-green);border-color:#A3CEA7}
.notice.error{background:#FFEEF0;border-color:#E8BBC1;color:#85212B}
.notice strong{display:block}
.record-form{max-width:760px}
.record-form .actions{margin-top:32px}
.narrow{max-width:680px;margin:auto}
.check{display:flex;align-items:flex-start;gap:12px;margin:30px 0}
.check input{width:20px;height:20px;margin:3px 0 0;flex-shrink:0}
.filters{margin-bottom:24px;padding:18px 24px}
summary{cursor:pointer;font-weight:650;font-size:14px;min-height:32px}
details[open] summary{margin-bottom:20px}
.filter-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:16px}
.filter-grid .field{margin:0 0 10px}
.filter-grid .notice{grid-column:1/-1}
.pagination{justify-content:center;flex-wrap:wrap;margin-top:28px;font-size:14px}
.auth-layout{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:start;max-width:980px;margin:30px auto}
.auth-intro{padding-top:28px}
.auth-panel{padding:34px}
.auth-panel input{margin-bottom:22px}
.auth-panel .help{margin-top:-14px;margin-bottom:22px}
.auth-links{display:flex;gap:12px 20px;flex-wrap:wrap;margin-top:26px;padding-top:24px;border-top:1px solid var(--line);font-size:12px}
.device-row{padding:16px 0;border-bottom:1px solid var(--line)}
.device-row span{display:block;font-size:13px;color:var(--muted)}
.device-row button{margin-top:12px}

.hero{display:grid;grid-template-columns:1.1fr 1fr;gap:60px;align-items:center;margin:15px 0 70px}
.hero h1{font-size:54px;line-height:1.1}
.hero .actions{margin-top:28px}
.water-art{position:relative;background:var(--soft-blue);border-radius:40px;height:410px;overflow:hidden}
.sun{position:absolute;width:75px;height:75px;border-radius:50%;background:var(--gold);top:65px;right:80px}
.horizon{position:absolute;background:#B6D8C0;width:140%;height:240px;top:180px;left:-20%;border-radius:50% 50% 0 0}
.ripple{position:absolute;border:2px solid #397F58;border-radius:50%;height:26px;left:26%;width:48%;top:235px}
.ripple.two{width:66%;height:36px;left:17%;top:260px;opacity:.55}
.ripple.three{width:80%;height:46px;left:10%;top:294px;opacity:.3}
.art-caption{position:absolute;bottom:28px;width:100%;text-align:center;font-size:9px;font-weight:700;letter-spacing:3px;color:var(--ink)}
.features article{padding:20px 0}
.features h2{font-size:19px}
.features p{font-size:14px}
.step{font-size:12px;color:var(--ink);border:1px solid var(--line);border-radius:50%;width:33px;height:33px;display:grid;place-items:center;margin-bottom:20px}
footer{max-width:1124px;margin:auto;padding:26px 0;border-top:1px solid var(--line);display:flex;align-items:center;flex-wrap:wrap;gap:24px;font-size:12px;color:var(--muted)}
footer span:first-child{font-weight:700;color:var(--ink)}
footer a{margin-left:auto}

@media(max-width:850px){.header-inner{align-items:flex-start;flex-direction:column;gap:20px}
nav{gap:22px;flex-wrap:wrap}
.hero,.auth-layout{gap:32px}
.hero h1{font-size:42px}
.water-art{height:340px}
.hero{margin-bottom:42px}
.auth-layout{margin:0 auto}
.auth-panel{padding:26px}
.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.page-heading h1{font-size:36px}
footer{margin:0 28px}
}

@media(max-width:600px){.main{padding:28px 18px 46px}
.header-inner{padding:18px}
.brand{font-size:20px}
.brand-mark{width:40px;height:40px}
nav{gap:8px 18px;width:100%}
nav a,.nav-button{font-size:13px}
.page-heading{align-items:flex-start;flex-direction:column;gap:20px;margin-bottom:24px}
.page-heading h1{font-size:34px}
.page-heading .actions{gap:10px}
.three-col.stats{gap:8px}
.stats .panel{padding:16px 10px}
.stats .panel span{font-size:11px}
.stats strong{font-size:32px}
.two-col,.detail-grid,.hero,.auth-layout,.features{grid-template-columns:1fr}
.panel{padding:22px 18px}
.hero{gap:30px;margin:0 0 36px}
.hero h1{font-size:40px}
.water-art{height:280px;border-radius:28px}
.sun{top:40px;width:55px;height:55px}
.horizon{top:130px}
.ripple{top:180px}
.ripple.two{top:204px}
.ripple.three{top:235px}
.art-caption{bottom:18px}
.hero .lead{font-size:16px}
.features{gap:0}
.features article{border-top:1px solid var(--line);padding-top:22px}
.auth-intro{padding-top:0}
.auth-intro h1{font-size:36px}
.auth-intro p:last-child{display:none}
.auth-layout{gap:10px}
.auth-panel{padding:24px 18px}
.empty{padding:38px 18px}
.filter-grid{grid-template-columns:1fr}
.section-heading{align-items:flex-start}
.section-heading h2{font-size:21px}
.section-heading a,.section-heading .muted{font-size:12px}
.trip-row{padding:20px 18px}
.trip-row h2{font-size:20px}
.trip-row .eyebrow{font-size:10px}
.trip-row .badge{padding:5px 9px}
footer{margin:0 18px;gap:12px;flex-wrap:wrap}
footer span:nth-child(2){display:none}
.button{padding:12px 18px}
.detail-grid{gap:16px}
dl{gap:10px}
.check{font-size:13px}
}

@media(prefers-reduced-motion:reduce){*{transition:none!important}
}


.maps-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:0 0 26px}
.maps-actions .help{flex-basis:100%;margin:0}
.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.photo-card{margin:0;min-width:0;border:1px solid var(--line);background:var(--surface);border-radius:20px;overflow:hidden}
.photo-link{display:block;background:var(--soft-blue);aspect-ratio:4/3;overflow:hidden}
.private-photo{width:100%;height:100%;object-fit:cover;display:block}
.photo-fallback{display:block;padding:25px;font-size:13px}
.photo-card figcaption{padding:14px}
.photo-card p{font-size:14px;margin-bottom:10px}
.photo-card .actions{gap:8px 14px;font-size:12px;margin-top:12px}
.photo-card .danger-link{font-size:12px}
.catch-card .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.catch-card h4{margin:24px 0 8px}
.add-photo{display:inline-block;margin-bottom:14px;font-size:14px}
@media(max-width:600px){.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.photo-card figcaption{padding:10px}
.photo-card .actions{align-items:flex-start;flex-direction:column}
.maps-actions{gap:14px}
.catch-card .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* Shared 24-unit icons: square viewport, one stroke weight, no emoji glyphs. */
.icon{width:22px;height:22px;flex:0 0 22px;display:inline-block;vertical-align:middle;pointer-events:none}

.button,.back,.add-photo,.danger-link,.maps-actions a,.actions a{gap:8px}

.button .icon{width:20px;height:20px;flex-basis:20px}

.brand-mark .icon{width:26px;height:26px;flex-basis:26px}

.back,.add-photo,.danger-link,.maps-actions a,.actions a{display:inline-flex;align-items:center;min-height:44px}

label .icon,dt .icon{width:18px;height:18px;margin-right:7px;color:var(--muted)}

.stat-label{display:flex;align-items:center;gap:10px}
.stat-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:var(--soft-blue);color:var(--ink)}

.stats .panel{background:linear-gradient(155deg,var(--surface),var(--soft-blue));border-color:var(--line)}

.empty-mark{display:grid;place-items:center;margin:0 auto 18px;width:68px;height:68px;border-radius:22px;background:var(--soft-green);color:var(--green)}
.empty-mark .icon{width:32px;height:32px}

.catch-title{display:flex;align-items:center;gap:10px}
.catch-title .icon{color:var(--green)}

.measurements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}
.measurement{padding:18px;border-radius:18px;background:var(--soft-blue);min-width:0}
.measurement span{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);margin-bottom:10px}
.measurement span .icon{margin:0}
.measurement strong{display:block;font-size:20px;line-height:1.35;font-weight:700;color:var(--ink)}

.photo-card{box-shadow:var(--shadow)}
.photo-card .actions{column-gap:12px;row-gap:4px}
.photo-card .actions .icon{width:18px;height:18px;flex-basis:18px}

@media(max-width:600px){nav{gap:5px}
nav a,.nav-button{padding:10px 9px}
.brand small{letter-spacing:.5px}
.stats .stat-label{flex-direction:column;align-items:flex-start;gap:8px}
.stat-icon{width:34px;height:34px;border-radius:11px}
.stat-icon .icon{width:20px;height:20px}
.measurement{padding:14px}
.measurement strong{font-size:18px}
.measurement span{font-size:11px}
.measurement span .icon{width:18px;height:18px;flex-basis:18px}
}

@media(prefers-color-scheme:dark){
:root{color-scheme:dark;--ink:#EAF1F8;--muted:#B5C6D7;--green:#8CD491;--deep:#A6E0AB;--paper:#1A202C;--surface:#222D3D;--soft-green:#263F30;--soft-blue:#273F58;--line:#3B4F64;--red:#FFB4BE;--shadow:0 8px 28px rgba(0,0,0,.12)}

.button.secondary{color:var(--ink)}
.button.danger{background:#B42332;border-color:#B42332;color:white}
.notice.error{background:#4B2631;border-color:#805161;color:#FFCDD3}
.notice.success{border-color:#477850}
.horizon{background:#355A4B}
.ripple{border-color:#8CCFA2}
:focus-visible{outline-color:#63B3ED}

}

/* Match Android amount and kg/lb entry on add and edit catch. */
.weight-entry{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:12px;align-items:start}
.weight-entry input,.weight-entry select{width:100%;min-width:0}

.length-entry{grid-template-columns:minmax(0,1fr) 120px}

.location-tip{position:relative;background:var(--soft-blue);margin-bottom:24px;padding-right:72px}
.location-tip[hidden]{display:none}
.location-tip h2{display:flex;align-items:center;gap:10px;font-size:18px;margin:0 0 10px}
.location-tip p{max-width:72ch;margin-bottom:16px}
.location-tip-close{position:absolute;top:12px;right:12px;width:44px;height:44px;border:0;border-radius:12px;background:transparent;color:var(--ink);font-size:28px;cursor:pointer}
.location-tip-close:hover{background:var(--surface)}
