:root{--green:#17523c;--dark:#133e31;--ink:#173c2f;--muted:#4b665a;--edge:#d8e3da;--panel:#fffdf8;--soft:#e8f2e9}
*{box-sizing:border-box}
body{margin:0;position:absolute;inset:0;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;font:14px Tahoma,Arial,sans-serif;background:#f7f9f4;color:#173c2f;color:var(--ink)}
[hidden]{display:none!important}
button,input,select{font:inherit;color:inherit}
button{border:1px solid #d8e3da;background:#fff;border-radius:10px;min-height:38px;padding:5px 8px}
a{color:#17523c}
img{display:block;max-width:100%;object-fit:contain}
h1,h2,h3,p,figure{margin:0}p{line-height:1.9}
h1,h2{font-size:16px}h3{font-size:14px}
i[data-icon]{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle}
i svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
small,.muted{color:#4b665a;font-size:12px;line-height:1.7}
#header{display:flex;position:relative;z-index:600;align-items:center;justify-content:space-between;background:#17523c;color:#fff;padding:5px 10px;min-height:54px}
.brand{display:flex;align-items:center}.brand img{width:40px;height:40px;margin-left:6px}.brand b,.brand small{display:block}.brand small{color:#e1f4e8;font-size:10px}
#account{background:transparent;color:#fff;text-decoration:none;padding:7px 8px;border:1px solid #7ca18c;border-radius:8px;font-size:11px}
#map-screen,#reading{position:relative;flex:1;min-height:0}
#map{position:absolute;top:0;left:0;bottom:0;right:0;background:#e8eee3;z-index:0}
.map-top{position:absolute;top:9px;left:9px;right:9px;z-index:510}
.search-row{display:flex}.search-row input{flex:1;min-width:0;margin-left:6px}
input,select{border:1px solid #d8e3da;border-radius:10px;padding:9px;background:white;min-height:42px}
#map-search{box-shadow:0 2px 8px #0002}
#map-filters,#map-results,#layer-options{border:1px solid #d8e3da;border-radius:10px;background:#fff;padding:7px;margin-top:5px}
#map-filters{display:flex}#map-filters label{flex:1;margin:0 3px;font-size:11px}#map-filters select{display:block;width:100%;margin-top:2px;font-size:12px}
#map-results{max-height:203px;overflow:auto}#map-results button{display:block;width:100%;text-align:right;margin:2px 0}
.map-controls,#point-tools,#layer-options{position:absolute;top:60px;z-index:500}
.map-controls,#layer-options{left:9px}.map-controls button,#point-tools button{display:block;min-width:43px;min-height:43px;box-shadow:0 2px 6px #0002;margin-bottom:5px}
#layer-options{left:63px;top:105px;padding:3px}
#point-tools{right:8px}#point-tools button{font-size:10px;width:46px;padding:4px}#point-tools i{display:flex;margin:1px auto 2px}
#bottom-card,#nav-progress{position:absolute;z-index:495;bottom:16px;left:7px;right:7px;background:#fffdf8;border:1px solid #d8e3da;border-radius:15px;box-shadow:0 2px 12px #0002;overflow:hidden}
#nearby{padding:6px 7px}.tabs{display:flex;margin-bottom:5px}.tabs button{min-height:33px;margin-left:5px;font-size:11px}
.tabs [aria-pressed="true"],#navigation [aria-current="page"]{background:#e8f2e9;color:#17523c}
.photos{display:flex;overflow-x:auto}.photos button{width:116px;flex:0 0 116px;padding:3px;margin-left:5px;overflow:hidden;text-align:right;font-size:11px}
.photos img,.place-photo{width:100%;height:55px;object-fit:cover;border-radius:7px;background:#edf3eb}
.place-photo{display:flex;align-items:center;justify-content:center;color:#567465}
.photos b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#bottom-card.has-selected-point{right:63px}
#point-card{display:flex;align-items:center;padding:7px}
#point-picture{width:154px;flex:0 0 154px;margin-left:9px}
#point-picture>img,#point-picture>.place-photo{width:100%;height:106px;display:block;object-fit:contain;border-radius:8px;background:#f2f5ef}
#point-picture>.place-photo{display:flex;height:66px}
.point-card-caption{display:flex;min-width:0;flex:1;align-items:center}
.point-card-caption>div:first-child{min-width:0}
#point-card h2{font-size:13px}#point-card #point-distance{font-size:10px;margin:0 auto 0 5px;padding:0 4px}
#close-point,#close-detail,#page-back{min-width:38px}
#point-detail{padding:7px 10px;max-height:43vh;overflow:auto}
.detail-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px}.detail-head h2{font-size:15px}
.point-photo-grid{display:flex;flex-wrap:wrap;justify-content:flex-start}
.point-photo-grid img{width:100%;height:auto;max-height:190px;object-fit:contain;margin:0 auto 8px;border-radius:8px;background:#f2f5ef}
#point-detail-body p{margin-bottom:6px}#point-detail-body button,#point-detail-body a{margin:3px 0 4px 4px}
#nav-progress{padding:7px;display:flex;align-items:center;justify-content:space-between;font-size:12px}#nav-progress button{font-size:11px}
#notice{position:absolute;z-index:560;top:50%;left:10%;right:10%;padding:10px;background:#143d30;color:white;border-radius:10px;text-align:center}
#navigation{z-index:600;display:flex;border-top:1px solid #d8e3da;padding:3px;background:#fffdf8;flex-shrink:0}
#navigation button{flex:1;width:16%;min-width:0;min-height:48px;border:0;background:transparent;font-size:10px;padding:3px 0;color:#3c5b4f}#navigation i{display:flex;margin:0 auto 3px}
#reading{display:flex;flex-direction:column;background:#fffdf8}
.section-head{display:flex;align-items:center;background:#eff5ee;border-bottom:1px solid #d8e3da;padding:6px 9px}.section-head h1{margin-right:9px}
#page-body{flex:1;min-height:0;overflow:auto;padding:9px}
.controls{display:flex;margin-bottom:7px}.controls input{min-width:0;flex:1;margin-left:6px}.controls select{min-width:0;max-width:46%}
.fish-grid,.gallery-grid{display:flex;flex-wrap:wrap;justify-content:space-between}
.fish-grid button,.gallery-grid button{width:49%;margin-bottom:7px;padding:6px;text-align:center}
.fish-grid img{width:100%;height:66px;margin-bottom:4px;object-fit:contain}
.fish-grid .fish-placeholder{height:66px;display:flex;align-items:center;justify-content:center}
.gallery-grid img{width:100%;height:96px;object-fit:contain;border-radius:7px;margin-bottom:4px;background:#f2f5ef}
.card-list{margin-top:7px}.card-list button,.card-list a{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;text-align:right;margin-bottom:7px;background:#fff;border:1px solid #d8e3da;border-radius:9px;padding:7px;text-decoration:none}
.card-list button small,.card-list b{display:block}.card-list img{width:72px;height:49px;border-radius:7px;margin-right:7px;object-fit:cover}
.article,.species{padding:2px 4px 12px;overflow-wrap:break-word}
.header-actions{display:flex;align-items:center}
#rotate-screen{min-width:38px;min-height:36px;padding:0;margin-left:5px;background:transparent;border-color:#7ca18c;color:#fff}
#suggest-point{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;width:48px;min-height:44px;margin-bottom:5px;padding:3px 1px;background:#fff;border:1px solid #d8e3da;border-radius:10px;box-shadow:0 2px 6px #0002;color:#17523c;text-decoration:none;font-size:10px;line-height:1.2}
#suggest-point span{margin-top:2px}
#species-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10;display:flex;align-items:flex-end;justify-content:center;padding:10px;background:rgba(19,62,49,.24)}
#species-sheet{display:flex;flex-direction:column;width:100%;max-width:900px;max-height:85%;min-height:0;padding:8px 10px;border:1px solid #d8e3da;border-radius:15px;background:#fffdf8;box-shadow:0 3px 14px rgba(19,62,49,.28)}
#species-sheet>.detail-head{flex:none}
#species-content{min-height:0;overflow:auto}
.species{display:flex;align-items:flex-start}
.species-figure{margin:0 0 0 12px;width:40%;flex:0 0 40%}
.species-copy{flex:1;min-width:0}
.species-figure img{height:auto;display:block;object-fit:contain}
.species-figure figcaption{padding:12px;border:1px solid #d8e3da;border-radius:8px;background:#eff5ee}
@media(orientation:portrait){
  #point-card{display:block}
  #point-picture{width:100%;margin:0 0 5px}
  #point-picture>img{height:174px;max-height:26vh}
  .species{display:block}
  .species-figure{width:100%;margin:0 0 10px}
}
@media(orientation:landscape){
  .fish-grid button,.gallery-grid button,.point-photo-grid img{width:32%;margin:0 0 8px 2%}
  .fish-grid button:nth-child(3n),.gallery-grid button:nth-child(3n),.point-photo-grid img:nth-child(3n){margin-left:0}
  .point-photo-grid img{height:136px}
  .gallery-grid img{height:128px}
  #bottom-card.has-selected-point{left:64px}
  #point-tools{max-height:calc(100% - 64px);overflow:auto;scrollbar-width:none}
}
.article img,.species img{width:100%;max-height:230px;margin:6px auto 12px;border-radius:10px;object-fit:contain}
.article h2,.species h2,.species h3{margin:9px 0 5px}.species section{margin-top:12px;border-top:1px solid #d8e3da;padding-top:7px}
.article ul,.article ol{padding-right:23px}.article table{table-layout:fixed;width:100%;border-collapse:collapse}.article th,.article td{border:1px solid #d8e3da;padding:4px}
.primary{background:#17523c;color:#fff;border-color:#17523c}
.marker-pin{height:23px;width:23px;background:#176245;border:2px solid white;border-radius:50% 50% 50% 4px;transform:rotate(-45deg);box-shadow:0 1px 4px #173627}
.selected-marker .marker-pin{background:#d99124;transform:rotate(-45deg) scale(1.22)}
.fish-cursor{filter:drop-shadow(0 0 3px white);transform-origin:center}
#intro{position:absolute;top:0;bottom:0;left:0;right:0;z-index:2000;background:#12392d;color:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;overflow:hidden}
#intro img{width:100px;margin-top:4vh;z-index:1;animation:grow 1.9s ease-out both;animation-delay:1s}
#intro b,#intro small{z-index:1}#intro b{font-size:22px}#intro small{color:#e6f6ea}
#intro-art{position:absolute;left:9%;right:9%;top:28%;bottom:26%;display:flex;align-items:center}
#intro-art svg{width:100%;height:auto}
#intro-art path{fill:none;stroke:#a6d1b2;stroke-width:1.1;stroke-dasharray:900;stroke-dashoffset:900;animation:trace 1.75s ease forwards}
#intro-art circle{fill:#bfe3c5;animation:fall .7s ease both}
@keyframes trace{to{stroke-dashoffset:0}}
@keyframes fall{from{transform:translateY(-100px);opacity:0}to{transform:translateY(0);opacity:1}}
@keyframes grow{from{transform:scale(.65);opacity:0}to{transform:scale(1);opacity:1}}
@media(prefers-reduced-motion:reduce){#intro-art path,#intro-art circle,#intro img{animation-duration:.01s;animation-delay:0s!important}}

#search-submit{margin-left:4px}
#map-filters{flex-wrap:wrap}
#map-filters button{width:100%;margin-top:7px}
#member-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:700;display:flex;align-items:center;justify-content:center;padding:12px;background:rgba(19,62,49,.36)}
#member-panel{width:100%;max-width:440px;max-height:92%;min-height:0;display:flex;flex-direction:column;background:#fffdf8;border-radius:15px;border:1px solid #d8e3da;padding:10px 12px;box-shadow:0 3px 15px rgba(19,62,49,.28)}
#member-panel>.detail-head{flex:none}
#member-content{overflow:auto;min-height:0}
.member-form{display:flex;flex-direction:column}
.member-form label{display:block;margin:0 0 8px}
.member-form input:not([type=checkbox]),.member-form textarea{display:block;width:100%;margin-top:3px}
.member-form textarea{font:inherit;color:inherit;border:1px solid #d8e3da;border-radius:10px;padding:8px}
.member-form .member-terms{display:flex;align-items:center;font-size:12px;padding:3px 0}
.member-form .member-terms input{min-height:0;margin-left:5px}
.member-coordinate{display:flex;flex-wrap:wrap;margin-bottom:5px}
.member-coordinate label{flex:1;min-width:115px;font-size:12px}
.member-coordinate label:first-child{margin-left:6px}
#member-status{margin-top:7px;font-size:12px}
#member-status[data-error]{color:#a42627}

#suggestion-extra{padding:5px 0 9px}
#suggestion-extra summary{padding:6px 0}
#suggestion-extra select{display:block;width:100%}
