:root{font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:#eaf1e9;color:#1d402e}*{box-sizing:border-box}body{margin:0}.shell{max-width:530px;min-height:100dvh;margin:auto;padding:0;background:#f8fbf7;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 5px 35px #1c4a2a18}header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#fff;border-bottom:1px solid #dae8d9;position:relative;z-index:2}.brand{display:flex;align-items:center;gap:9px;font-size:23px;font-weight:800;letter-spacing:-.4px;color:#1f5a2a}.logo{width:34px;height:34px;display:block}.logo svg{width:100%;height:100%;display:block}.brand small{display:block;font-size:9px;font-weight:700;letter-spacing:1.7px;color:#648570}.leaf{font-size:30px}.status{background:#2e6b30;color:#fff;border-radius:9px;padding:7px 16px;font-size:13px;font-weight:800;letter-spacing:1px;box-shadow:inset 0 -2px 0 #1f4d22}main{flex:1}.screen{padding:24px 20px}.hidden{display:none!important}.hero{background:linear-gradient(145deg,#133e2d,#2c7a4a);color:white;border-radius:22px;padding:25px 23px;margin-bottom:18px;overflow:hidden}.eyebrow{color:#c9e9d1;font-size:10px;letter-spacing:1.4px;font-weight:800}.hero-art{font-size:40px;text-align:center;padding:23px 0 10px;letter-spacing:10px}.hero h1{font-size:29px;line-height:1.15;margin:12px 0}.hero p{font-size:14px;color:#e0f1e3;line-height:1.55;margin-bottom:0}.btn{width:100%;display:block;border:0;border-radius:12px;padding:15px;margin:10px 0;font:inherit;font-size:15px;font-weight:750;cursor:pointer}.primary{background:#267246;color:#fff}.secondary{background:#e2eee1;color:#225c39}.outline{background:#fff;color:#286643;border:1px solid #b8d3bd}.danger{background:#fff0ee;color:#9c3431}.feature{margin-top:23px;background:#edf5e9;border-radius:16px;padding:18px}.feature p{color:#54745c;font-size:14px;line-height:1.5;margin:8px 0}.fine,.muted{color:#65806a;font-size:13px;line-height:1.5}.fine{text-align:center}.back{border:0;background:none;color:#286746;font:inherit;font-weight:750;padding:6px 0;cursor:pointer}h2{font-size:26px;line-height:1.2;margin:16px 0 9px}.choices{display:grid;gap:12px;margin-top:24px}.choice{display:flex;align-items:center;gap:15px;background:white;border:1px solid #d6e6d6;border-radius:14px;padding:17px;text-align:left;color:#245339;font:inherit;font-weight:750;cursor:pointer}.choice .emoji{font-size:29px}.choice .arrow{margin-left:auto}label{display:block;font-size:14px;font-weight:750;margin:18px 0 7px}label span{color:#bc4747}input,textarea{width:100%;font:inherit;border:1px solid #b7cbb9;border-radius:11px;padding:12px;background:white;color:#1d402e}input:focus,textarea:focus{outline:3px solid #a5d5b3}.hint{background:#eaf3e7;border-radius:11px;padding:13px;margin:18px 0;font-size:12px;color:#4c6d53;line-height:1.5}.record{border:1px solid #d8e7d6;background:white;border-radius:14px;padding:16px;margin:13px 0}.record h3{margin:0 0 8px}.record p{margin:8px 0;overflow-wrap:anywhere;white-space:pre-wrap;font-size:14px}.record small{color:#66806b}.check{margin:40px auto 20px;background:#dbefdf;color:#2a8b50;width:90px;height:90px;border-radius:50%;display:grid;place-items:center;font-size:52px}.center{text-align:center}footer{padding:22px 20px;border-top:1px solid #dfebdf;text-align:center;color:#77907a;font-size:11px}@media(min-width:600px){body{padding:22px}.shell{min-height:calc(100dvh - 44px);border-radius:22px}}
.shell.on-home footer{display:none}
.home{position:relative;flex:1;min-height:calc(100dvh - 59px);padding:0 18px 150px;background:#7fb86a url(./forest.svg) center bottom/cover no-repeat;display:flex;flex-direction:column}
.home-hero{text-align:center;padding:23vh 0 0}
@media(min-height:900px){.home-hero{padding-top:200px}}
.home h1{margin:0;font-size:clamp(46px,13vw,64px);font-weight:900;letter-spacing:-1px;color:#1f5a2a;line-height:1;text-shadow:0 0 2px #fff,0 0 14px #ffffffcc,0 2px 0 #fff}
.tagline{margin:10px 0 0;font-size:clamp(17px,4.8vw,21px);font-weight:650;color:#173f20;text-shadow:0 0 8px #ffffffee,0 0 2px #fff}
.menu{display:grid;gap:14px;margin-top:34px}
.menu-btn{display:flex;align-items:center;gap:16px;width:100%;padding:12px 16px;border:1px solid #ffffffaa;border-radius:14px;background:#ffffffe0;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);box-shadow:0 4px 12px #0b2a1233;color:#173f20;font:inherit;font-size:clamp(17px,4.8vw,20px);font-weight:650;text-align:left;cursor:pointer;transition:transform .12s,background .12s}
.menu-btn:hover{background:#fffffff2}.menu-btn:active{transform:scale(.98)}
.menu-btn:focus-visible{outline:3px solid #f4c865;outline-offset:2px}
.mi{width:36px;height:36px;flex:none}.mi svg{width:100%;height:100%;display:block}
.ml{flex:1}.chev{font-size:30px;line-height:1;color:#173f20;font-weight:500;margin-top:-3px}
.off-card{background:#fff;border:1px solid #d8e7d6;border-radius:14px;padding:6px 16px;margin:18px 0}
.off-row{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #edf3ec;font-size:14px}.off-row:last-child{border:0}
.off-row b.good{color:#2a8b50}.off-row b.bad{color:#b2552a}
/* ---------- Field journal templates ---------- */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#formScreen{padding:12px 10px 24px}
#formScreen .back{margin-left:6px}
.journal{--g:#2f6f2a;--pill:#e2f1c8;--ink:#17361a;background:#fff;border:3px solid #3d8a33;border-radius:20px;overflow:hidden;margin-top:6px;box-shadow:0 6px 20px #1c4a2a26;color:var(--ink)}
.j-head{display:block;width:100%;height:auto}
.j-body{padding:6px 12px 16px}
.j-main{display:block}
.j-fields{display:grid;gap:10px}
.j-row{display:grid;grid-template-columns:minmax(118px,40%) 1fr;gap:8px;align-items:stretch}
.j-label{display:flex;align-items:center;gap:6px;margin:0;padding:4px 8px 4px 4px;background:var(--pill);border-radius:12px;font-size:14px;font-weight:800;line-height:1.1;color:var(--ink);letter-spacing:-.2px}
.j-label img{width:38px;height:38px;object-fit:contain;flex:none}
.j-input{position:relative;display:flex}
.j-input input{width:100%;height:100%;min-height:46px;margin:0;border:2px solid var(--g);border-radius:12px;background:#fff;padding:10px 12px;font-size:15px}
.j-input input:focus{outline:3px solid #b9e19b;outline-offset:0}
.j-row.invalid .j-input input{border-color:#c0392b;outline:3px solid #f4c1b8}
.gps-mini{position:absolute;right:5px;top:50%;transform:translateY(-50%);border:0;background:#e9f5df;border-radius:8px;width:32px;height:32px;font-size:16px;cursor:pointer}
.j-input:has(.gps-mini) input{padding-right:42px}
.j-side,.j-art{display:none}
.j-notes{margin-top:14px;border:2px solid var(--g);border-radius:14px;background:#fff;position:relative}
.j-notes-label{display:flex;align-items:center;gap:6px;margin:0;font-size:17px;font-weight:800;color:var(--ink)}
.j-notes-label img{width:38px;height:38px;object-fit:contain}
.j-notes textarea{display:block;width:100%;border:0;border-radius:0 0 12px 12px;background:transparent repeating-linear-gradient(#0000 0 31px,#8db884 31px 32px);background-attachment:local;line-height:32px;padding:0 14px 8px;font-size:15px;resize:vertical;min-height:170px}
.j-notes textarea:focus{outline:none}.j-notes:focus-within{outline:3px solid #b9e19b}
.colon{display:none}.j-label span,.j-notes-label span{color:inherit}.j-row>*{min-width:0}

/* Carbon cycle: separate pills, spiral notebook + carbon cycle illustration */
.j-carbon .j-row{grid-template-columns:minmax(0,44%) 1fr}.j-carbon .j-label{font-size:13px;overflow-wrap:anywhere;border-radius:12px 22px 22px 12px;background:linear-gradient(90deg,#d4ecb3,#e8f5d6)}
.j-carbon .j-input input{border-color:#3b7f3d;border-width:2px}
.j-carbon .j-notes-wrap{display:grid;grid-template-columns:1fr 38%;gap:8px;align-items:center}
.j-carbon .j-art{display:block;width:100%;height:auto}
.j-carbon .j-notes{border-radius:14px;padding-left:16px;background:#fdfdf3;background-image:radial-gradient(circle at 6px 50%,#fff 3px,#2f6f2a 3.5px,#2f6f2a 5px,#0000 5.5px);background-size:12px 26px;background-repeat:repeat-y;background-position:-1px 10px}
.j-carbon .j-notes-label{padding:8px 6px 2px}
.j-carbon .j-notes textarea{min-height:190px;padding-left:4px}

/* Plant: joined pill rows, plant illustration on the right */
.j-plant{--g:#5b9b3c}
.j-plant .j-main{display:grid;grid-template-columns:minmax(0,1fr) 22%;gap:4px;align-items:center}
.j-plant .j-side{display:block;width:100%;height:auto}
.j-plant .j-row{grid-template-columns:minmax(0,52%) minmax(0,1fr);gap:0;background:#e5f3d3;border:2px solid #5b9b3c;border-radius:12px;padding:3px}
.j-plant .j-label{background:none;font-size:13px;padding:0 4px 0 0;gap:3px}
.j-plant .j-label img{width:30px;height:30px}
.j-plant .j-input input{border:2px solid #5b9b3c;min-height:40px;border-radius:10px}
.j-plant .j-notes{margin-top:26px;padding-top:4px}
.j-plant .j-notes-label{position:absolute;top:-20px;left:12px;background:#e5f3d3;border:2px solid #5b9b3c;border-radius:12px;padding:2px 10px 2px 4px;font-size:16px}
.j-plant .colon{display:inline}
.j-plant .j-notes textarea{padding-top:26px}

/* Reptile: blob icons, field notes label left of box, lizard bottom */
.j-reptile{--g:#1f6b2a}
.j-reptile .j-label{background:radial-gradient(ellipse at 22% 50%,#d6efb2 0 34%,#0000 35%),linear-gradient(90deg,#e7f6cf,#f4fbe9);border-radius:30px 14px 14px 30px}
.j-reptile .j-label img{width:44px;height:44px}
.j-reptile .j-input input{border-color:#1f6b2a;border-radius:14px}
.j-reptile .j-notes{display:grid;grid-template-columns:minmax(118px,40%) 1fr;gap:8px;border:0;background:none}
.j-reptile .j-notes:focus-within{outline:none}
.j-reptile .j-notes-label{align-self:start;background:linear-gradient(90deg,#e7f6cf,#f4fbe9);border-radius:30px 14px 14px 30px;padding:4px;font-size:15px}
.j-reptile .j-notes-label img{width:46px;height:46px}
.j-reptile .colon{display:inline}
.j-reptile .j-notes textarea{border:2px solid #1f6b2a;border-radius:14px;background:#fff;min-height:150px;line-height:1.5;padding:10px 12px}
.j-reptile .j-notes textarea:focus{outline:3px solid #b9e19b}
.j-foot{display:block;width:100%;height:auto}.j-foot[hidden]{display:none}

/* Animal: framed rows on soft green, notes label inside panel, frog bottom */
.j-animal{--g:#2b6b2a;background:linear-gradient(#f3faec,#e6f4dc)}
.j-animal .j-row{grid-template-columns:minmax(122px,38%) 1fr;gap:0;border:2px solid #2b6b2a;border-radius:14px;background:#e3f2cf;overflow:hidden}
.j-animal .j-label{background:none;border-radius:0;font-size:14.5px;padding-left:6px}
.j-animal .j-input input{border:0;border-left:2px solid #2b6b2a;border-radius:12px;min-height:46px}
.j-animal .j-notes{display:grid;grid-template-columns:minmax(122px,38%) 1fr;background:#e3f2cf;border-radius:14px;overflow:hidden}
.j-animal .j-notes-label{align-self:start;flex-direction:row;padding:10px 6px;font-size:16px}
.j-animal .j-notes textarea{background:#fff;border-left:2px solid #2b6b2a;border-radius:12px;min-height:170px;line-height:1.5;padding:10px 12px}
.j-animal .j-foot{width:42%;margin-top:-30px;-webkit-mask-image:linear-gradient(90deg,#000 70%,#0000),linear-gradient(#0000,#000 30%);mask-image:linear-gradient(90deg,#000 70%,#0000);}

/* Field tools: camera, voice, GPS */
.tools{margin-top:16px;background:#eef7e6;border:2px dashed #8cbf74;border-radius:14px;padding:12px}
.tools h3{margin:0 0 10px;font-size:16px}.tools h3 small{font-size:11px;font-weight:700;color:#4c7a45;background:#d9eecb;border-radius:20px;padding:2px 8px;margin-left:6px;vertical-align:middle}
.tool-btns{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.tool{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 4px;border:2px solid #2f6f2a;border-radius:12px;background:#fff;color:#1d4a22;font:inherit;font-weight:800;font-size:14px;cursor:pointer}
.tool span{font-size:26px;line-height:1}.tool b{font-weight:800}
.tool:active{transform:scale(.97)}
.tool.recording{background:#c62828;border-color:#8e1b1b;color:#fff;animation:pulse 1.2s infinite}
@keyframes pulse{50%{box-shadow:0 0 0 6px #c6282833}}
.linkish{display:block;margin:8px auto 0;border:0;background:none;color:#2f6f2a;text-decoration:underline;font:inherit;font-size:13px;cursor:pointer}
.gps-out,.rec-out{margin-top:10px;background:#fff;border-radius:10px;padding:10px 12px;font-size:14px}
.gps-out a,.gps-line a{color:#22663a;font-weight:700;margin-left:6px}
.rec-out{color:#8e1b1b;font-weight:700;display:flex;align-items:center;gap:8px}
.rec-out[hidden],.gps-out[hidden]{display:none}
.rec-dot{width:12px;height:12px;border-radius:50%;background:#c62828;animation:blink 1s infinite}@keyframes blink{50%{opacity:.2}}
.photo-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px;margin-top:10px}
.photo-list:empty,.audio-list:empty{display:none}
.thumb{position:relative;display:block;aspect-ratio:1;border-radius:10px;overflow:hidden;background:#dfe9dc}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.rm{position:absolute;top:4px;right:4px;width:26px;height:26px;border-radius:50%;border:0;background:#000a;color:#fff;font-size:18px;line-height:1;cursor:pointer}
.clip{display:flex;align-items:center;gap:8px;margin-top:8px;background:#fff;border-radius:10px;padding:6px 8px;font-size:13px;font-weight:700}
.clip audio{flex:1;min-width:0;height:36px}
.rm-a,.del-one{border:0;background:#fff0ee;color:#9c3431;border-radius:8px;padding:6px 10px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.del-one{margin-top:10px}
@media(max-width:380px){.j-label{font-size:12.5px}.j-label img{width:30px;height:30px}.j-row{grid-template-columns:minmax(104px,40%) 1fr}}
