
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600;700;800&display=swap');
:root{--green:#20533f;--green2:#173e30;--mint:#edf4ed;--paper:#f6f8f2;--ink:#1d3027;--muted:#718077;--line:#e1e9df;--white:#fff;--gold:#c59b57}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:"Be Vietnam Pro","DM Sans",sans-serif}button,input{font:inherit}button{cursor:pointer}.top{max-width:820px;margin:auto;padding:16px 20px;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;align-items:center;gap:10px}.brand-icon{width:46px;height:46px;object-fit:contain;display:block}.brand-copy{min-width:0}.brand-title{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.brand strong{font-size:19px}.version-pill{display:inline-flex;align-items:center;padding:2px 6px;border:1px solid #cfe0d1;border-radius:999px;background:#f0f6ef;color:#20533f;font-size:10px;font-weight:800;line-height:1.5;letter-spacing:.2px}.tag{font-size:9px;letter-spacing:1px;color:var(--muted);margin-top:2px}.language-switch{display:flex;align-items:center;gap:6px;padding:4px;background:#fff;border:1px solid var(--line);border-radius:99px}.flag{width:36px;height:34px;border:1px solid transparent;border-radius:99px;background:transparent;font-size:20px;display:grid;place-items:center;opacity:.62;filter:saturate(.8)}.flag.active{opacity:1;background:#edf5eb;border-color:#d5e5d3;filter:none;box-shadow:0 1px 3px #173e3015}main{max-width:820px;margin:auto;padding:8px 18px 90px}.hero{padding:20px 5px 15px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.5px;color:#78927a;text-transform:uppercase}.hero h1{font-size:clamp(27px,5vw,38px);line-height:1.16;letter-spacing:-1px;margin:9px 0}.hero p{font-size:14px;line-height:1.6;color:var(--muted);max-width:520px}.nav{display:flex;gap:8px;overflow:auto;padding:8px 0 16px}.nav button{white-space:nowrap;border:1px solid var(--line);border-radius:99px;padding:10px 14px;background:#fff;color:#5d6d62;font-size:12px;font-weight:700}.nav button.active{background:var(--green);border-color:var(--green);color:#fff}.panel{background:#fff;border:1px solid var(--line);border-radius:22px;padding:20px;box-shadow:0 8px 28px #263f2b0a}.head{display:flex;align-items:center;justify-content:space-between;gap:10px}.head h2{font-size:18px;margin:0}.pill{font-size:10px;font-weight:800;color:#55745c;background:var(--mint);border-radius:99px;padding:6px 9px}.muted{font-size:13px;line-height:1.6;color:var(--muted)}.groups{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:18px 0}.groups button{border:1px solid var(--line);border-radius:15px;background:#fff;padding:13px 6px;color:#526459;font-weight:700;font-size:12px}.groups button span{display:block;font-size:23px;margin-bottom:5px}.groups button.active{border-color:var(--green);background:#f0f6ef;color:var(--green)}.primary{width:100%;border:0;border-radius:15px;background:var(--green);color:#fff;padding:16px;font-size:15px;font-weight:800}.primary:disabled{opacity:.45;cursor:not-allowed}.hint{text-align:center;color:var(--muted);font-size:11px;margin-top:10px}.section{display:none}.section.active{display:block}.result{display:none;margin-top:16px;border:1px solid var(--line);background:#f8faf6;border-radius:17px;padding:15px}.result.show{display:block}.result h3{margin:0 0 5px;font-size:18px}
.common-name-wrap{margin-bottom:2px}
.common-name-wrap h3{margin:0 0 3px;font-size:26px;line-height:1.2;font-weight:650}
.common-name-wrap .small{font-size:11px;color:var(--muted);line-height:1.5;margin-bottom:4px}
.name-source{font-size:10px;color:var(--muted);margin-top:3px}
.latin{font-style:italic;color:#607766;font-size:13px}.score{font-size:12px;color:#607766;margin:9px 0}.candidate{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-top:1px solid var(--line);font-size:12px}
.taxonomy-box{margin-top:13px;padding:13px;border:1px solid var(--line);border-radius:13px;background:#fff}
.taxonomy-box h4{margin:0 0 8px;font-size:13px;color:var(--green)}
.taxonomy-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.taxonomy-group{min-width:0;padding:10px;border-radius:10px;background:#f3f7f1}
.taxonomy-group strong{display:block;font-size:11px;color:var(--muted);margin-bottom:6px}
.taxonomy-item{display:flex;justify-content:space-between;gap:8px;font-size:11px;padding:4px 0;border-top:1px solid #e2eadf}
.taxonomy-item span:first-child{overflow-wrap:anywhere}
.gbif-box{margin-top:12px;padding:13px;border:1px solid var(--line);border-radius:13px;background:#fff;font-size:12px;line-height:1.55}
.gbif-box h4{margin:0 0 7px;font-size:13px;color:var(--green)}
.gbif-taxonomy{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;margin-top:8px}
.gbif-taxonomy div{min-width:0}
.gbif-taxonomy small{display:block;color:var(--muted);font-size:10px}
.gbif-taxonomy strong{font-size:11px;overflow-wrap:anywhere}
.source-link{display:inline-block;margin-top:8px;color:var(--green);font-weight:700;text-decoration:underline}
.profile-note{font-size:10px;color:var(--muted);margin-top:8px;line-height:1.5}
@media(max-width:420px){.taxonomy-grid{grid-template-columns:1fr}.gbif-taxonomy{grid-template-columns:1fr 1fr}}

/* v3.55 — locked AI Discovery result experience */
.result{padding:0;border:0;background:transparent;overflow:visible}
.ns43-shell{display:grid;gap:14px}
.ns43-ident{background:#fff;border:1px solid #e3ebe1;border-radius:20px;padding:16px;box-shadow:0 8px 24px #183c2610}
.ns43-kicker{display:flex;align-items:center;gap:8px;background:#edf6e9;color:#20533f;border-radius:12px;padding:10px 12px;font-size:13px;font-weight:800;margin:-2px -2px 14px}
.ns43-kicker .ns43-dot{width:22px;height:22px;border-radius:7px;background:#d9ecd4;display:grid;place-items:center}
.ns43-name-row{display:grid;grid-template-columns:92px minmax(0,1fr);gap:13px;align-items:center}
.ns43-photo{width:92px;height:92px;border-radius:15px;overflow:hidden;background:#edf4ed;display:grid;place-items:center}
.ns43-photo img{width:100%;height:100%;object-fit:cover}
.ns43-photo .photo-placeholder{font-size:10px;text-align:center;padding:8px;color:#718077}
.ns43-title-line{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.ns43-title-line h3{font-size:25px;line-height:1.18;color:#174b32;margin:0;font-weight:800;overflow-wrap:anywhere}
.ns43-verified{flex-shrink:0;border-radius:99px;background:#e8f5e3;color:#276d37;padding:6px 9px;font-size:10px;font-weight:800}
.ns43-latin{font-size:13px;font-style:italic;color:#435b4b;margin-top:4px;overflow-wrap:anywhere}
.ns43-score-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:15px 0 7px;font-size:12px}
.ns43-level{background:#eaf5e5;color:#276d37;padding:5px 9px;border-radius:99px;font-weight:700;font-size:11px}
.ns43-score-track{height:11px;background:#e3f0df;border-radius:99px;overflow:hidden}
.ns43-score-fill{height:100%;background:linear-gradient(90deg,#16852f,#49a84b);border-radius:99px}
.ns43-score-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:5px;color:#516b59;font-size:11px}
.ns43-score-meta strong{font-size:20px;color:#183e29}
.ns43-proof{background:#eff7e9;border-radius:15px;padding:13px;margin-top:13px}
.ns43-proof h4{margin:0 0 8px;color:#1e4d31;font-size:14px}
.ns43-proof p{margin:5px 0;font-size:12px;line-height:1.5;color:#2c4434}
.ns43-proof .ns43-source{border-top:1px solid #dcebd7;padding-top:8px;margin-top:8px;font-size:10px;color:#66776a}
.ns43-section{background:#fff;border:1px solid #e3ebe1;border-radius:18px;padding:14px;box-shadow:0 6px 18px #183c2608}
.ns43-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px;color:#1d4d31;font-size:15px;font-weight:800}
.ns43-trait-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.ns43-trait{min-width:0;text-align:center}
.ns43-trait img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:11px;background:#edf4ed;display:block}
.ns43-trait strong{display:block;margin-top:5px;font-size:11px;color:#344a39}
.ns43-trait small{display:block;font-size:9px;color:#7b887d;line-height:1.35;margin-top:3px}
.ns43-tabs{display:flex;gap:6px;overflow-x:auto;padding:0 0 10px;scrollbar-width:none}
.ns43-tabs::-webkit-scrollbar{display:none}
.ns43-tabs button{white-space:nowrap;border:0;border-radius:10px;background:#f0f2ef;color:#526258;padding:9px 11px;font-size:11px;font-weight:700}
.ns43-tabs button.active{background:#21813b;color:#fff}
.ns43-tab-panel{font-size:12px;line-height:1.6;color:#35463a}
.ns43-tab-panel:empty{display:none}
.ns43-tab-panel .gbif-box,.ns43-tab-panel .plant-profile{margin-top:0}
.ns43-tab-panel .gbif-box{border:0;background:#f8faf7;padding:10px;margin:0 0 10px}
.ns43-tab-panel .knowledge-accordion{margin:7px 0;border:1px solid #e5ece3;border-radius:11px;background:#fff}
.ns43-tab-panel .knowledge-accordion summary{padding:10px;font-size:12px;font-weight:700;color:#31533a}
.ns43-tab-panel .knowledge-panel{padding:0 10px 10px}
.ns43-source-line{font-size:10px;color:#748176;margin-top:7px}
.ns43-source-line a{color:#286b3d}
.ns43-empty{padding:12px;background:#f7f9f6;border-radius:11px;color:#748176;font-size:11px}
.ns43-name-source{font-size:10px;color:#728075;margin-top:5px;line-height:1.45}
.ns43-name-source:empty{display:none}
@media(max-width:420px){
 .ns43-ident{padding:13px}.ns43-name-row{grid-template-columns:78px minmax(0,1fr);gap:10px}
 .ns43-photo{width:78px;height:78px}.ns43-title-line h3{font-size:21px}
 .ns43-trait-grid{gap:6px}.ns43-trait strong{font-size:10px}
 .ns43-section{padding:12px}
}

.warning{background:#fff8e9;color:#705b32;border:1px solid #f0e4c8;border-radius:13px;padding:11px;font-size:11px;line-height:1.5;margin-top:12px}.notice{padding:12px;border-radius:13px;background:#f2f6f1;color:#4c6652;font-size:12px;line-height:1.5;margin-top:12px}.camera{display:none;position:fixed;inset:0;background:#101713;z-index:10;color:#fff;flex-direction:column;padding:env(safe-area-inset-top) 16px env(safe-area-inset-bottom)}.camera.open{display:flex}.camtop{display:flex;justify-content:space-between;align-items:center;padding:14px 0}.camtop button{border:0;background:#ffffff20;color:white;border-radius:50%;width:40px;height:40px;font-size:20px}.view{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;position:relative}.view video,.view img{width:100%;height:100%;max-height:100%;object-fit:contain}.view video{display:block;object-fit:cover;max-width:100%;background:#050805;-webkit-transform:translateZ(0);transform:translateZ(0)}
/* iOS WebKit: suppress native video controls where inline preview is supported */
.view video::-webkit-media-controls,.view video::-webkit-media-controls-enclosure,
.view video::-webkit-media-controls-panel,.view video::-webkit-media-controls-start-playback-button{
  display:none!important;-webkit-appearance:none!important;opacity:0!important;pointer-events:none!important
}
.view video{pointer-events:none;object-fit:cover}
.camera{height:100vh;height:100dvh;overflow:hidden;overscroll-behavior:contain;box-sizing:border-box}.camera.open{touch-action:pan-y}.camcontrols{flex-shrink:0;padding-bottom:max(18px,env(safe-area-inset-bottom))}.camframe{position:absolute;inset:14% 7%;border:2px solid #ffffffb5;border-radius:24px;pointer-events:none}.camcontrols{padding:15px 0 22px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.camcontrols button{border:1px solid #ffffff55;border-radius:14px;padding:14px 8px;background:#ffffff18;color:#fff;font-weight:700}.camcontrols .shutter{background:#fff;color:#1c3327}.camcontrols .library{grid-column:1/-1;background:#fff;color:var(--green)}#galleryInput{display:none}.tabs-empty{text-align:center;padding:30px 10px;color:var(--muted);font-size:13px}.discovery{border:1px solid var(--line);border-radius:16px;padding:13px;margin-top:10px;display:flex;gap:12px;align-items:center}.thumb{width:62px;height:62px;object-fit:cover;border-radius:12px;background:var(--mint)}.discovery strong{display:block;font-size:13px}.discovery small{color:var(--muted);font-size:11px}.discovery button{margin-left:auto;border:0;background:none;color:#9a5b4b;font-size:11px}.cardview{margin:18px 0;padding:26px 15px;text-align:center;border-radius:20px;background:linear-gradient(145deg,#edf5e9,#d9e8d8);border:1px solid #d2e2d1}.cardview img{width:100%;max-height:180px;object-fit:contain;border-radius:12px}.cardview .species{font-size:23px;font-weight:800;margin:12px 0 3px}.cardview .scientific{font-size:13px;font-style:italic;color:#5e7964}.cardfoot{font-size:9px;letter-spacing:1.2px;color:#6e806f;margin-top:22px}.garden{min-height:220px;border-radius:20px;background:linear-gradient(#e4f0e5 0 60%,#a9c69b 60%);display:grid;place-items:center;text-align:center;padding:20px}.garden .plant{font-size:60px}.garden strong{display:block}.small{font-size:11px;color:var(--muted)}.footer{position:fixed;bottom:0;left:0;right:0;background:#ffffffed;border-top:1px solid var(--line);text-align:center;padding:10px;font-size:10px;color:#849087;backdrop-filter:blur(10px)}@media(min-width:650px){main{padding-left:26px;padding-right:26px}.panel{padding:25px}.top{padding-left:28px;padding-right:28px}}

/* NatureScan B3 icon system */
.language-switch{display:flex;align-items:center;gap:5px;padding:4px;border:1px solid var(--line);border-radius:999px;background:#fff}
.flag{width:38px;height:32px;border:0;border-radius:999px;background:transparent;display:grid;place-items:center;padding:5px;opacity:.58;transition:all .18s}
.flag img{display:block;width:25px;height:18px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px #00000012}
.flag.active{opacity:1;background:#eaf3e8;box-shadow:inset 0 0 0 1px #d4e5d1}
.nav{gap:9px;align-items:center}
.nav button{display:flex;align-items:center;gap:10px;padding:9px 15px;min-height:58px;font-size:12px}
.nav-icon{width:34px;height:34px;flex:0 0 34px;display:block}
.groups button{min-height:104px;padding:12px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:14px}
.group-icon{width:43px;height:43px;display:block}
.groups button span[data-i]{font-size:14px;margin:0}
@media(max-width:520px){.nav{gap:6px}.nav button{gap:5px;padding:8px 10px;min-height:54px;font-size:10px}.nav-icon{width:28px;height:28px;flex-basis:28px}.groups button{min-height:88px}.group-icon{width:36px;height:36px}}

/* v1.4: refined category symbols and cleaner navigation labels */
.nav button{gap:10px}
.nav-icon{width:36px;height:36px;flex:0 0 36px}
.groups button{border:0!important;box-shadow:none!important;background:transparent;padding:13px 8px;min-height:104px;border-radius:16px;gap:7px}
.groups button.active{background:#edf4ed;color:var(--green);outline:1px solid #d5e4d4;outline-offset:-1px}
.group-icon{width:45px;height:45px;stroke-linecap:round;stroke-linejoin:round}
.groups button span[data-i]{font-size:14px;font-weight:600}
@media(max-width:520px){.nav-icon{width:30px;height:30px;flex-basis:30px}.groups button{min-height:88px}.group-icon{width:38px;height:38px}}

/* v1.5 category icon polish */
.groups button{border:0!important;box-shadow:none!important;background:transparent;border-radius:16px;}
.groups button.active{background:#edf4ed;outline:1px solid #d8e6d6;outline-offset:-1px;}
.group-icon{width:46px;height:46px;stroke-linecap:round;stroke-linejoin:round;}
.nav button{gap:10px;}
.nav button span[data-i]{margin:0;}

/* v1.6 flat organic species icons: no outlines or heavy tile borders */
.groups{gap:10px}
.groups button{border:0!important;box-shadow:none!important;background:transparent!important;border-radius:18px;padding:12px 8px;min-height:108px;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px}
.groups button.active{background:#edf4e9!important;outline:0!important;color:var(--green)}
.group-icon{width:48px;height:48px;display:block;stroke:none!important}
.groups button span[data-i]{font-size:14px;font-weight:600;margin:0}
@media(max-width:520px){.groups{gap:7px}.groups button{min-height:92px}.group-icon{width:40px;height:40px}}

/* v1.7: exact user-approved raccoon and butterfly artwork */
.group-image{width:72px;height:72px;object-fit:contain;display:block;margin:0 auto;image-rendering:auto}
.groups button{gap:7px;border:0!important;box-shadow:none!important}
@media(max-width:520px){.group-image{width:60px;height:60px}}

/* v1.9: refined scan camera action icon */
.scan-camera-icon{width:21px;height:21px;display:inline-block;vertical-align:-5px;margin-right:7px;flex:none}
#openCamera{display:flex;align-items:center;justify-content:center;gap:2px}

/* v2.2: visual species profile with a verified reference photo */
.species-photo{position:relative;margin:-2px -2px 14px;border-radius:13px;overflow:hidden;background:#edf3eb;min-height:170px;display:grid;place-items:center}
.species-photo img{display:block;width:100%;height:clamp(250px,62vw,390px);object-fit:contain;background:#edf3eb}
.species-photo .photo-placeholder{padding:28px 14px;text-align:center;color:#718077;font-size:12px}
.photo-credit{font-size:10px;color:#718077;margin-top:5px;line-height:1.4}
.profile-section{margin-top:13px;padding-top:12px;border-top:1px solid var(--line)}
.profile-section h4{font-size:13px;margin:0 0 7px;color:var(--ink)}
.profile-section p{font-size:12px;line-height:1.55;margin:5px 0;color:#45594c}
.result .common-name-wrap h3{font-size:26px;line-height:1.2}
.result .latin{margin:3px 0 5px}


/* v2.10 Rich Plant Profile — compact encyclopedia layout */
.plant-profile{margin-top:14px;padding:0 1px;color:var(--ink)}
.plant-profile .profile-section{margin-top:13px;padding-top:12px;border-top:1px solid var(--line)}
.plant-profile h4{font-size:13px;margin:0 0 8px;color:var(--ink)}
.plant-profile p{font-size:12px;line-height:1.7;margin:5px 0;color:#45594c}
.plant-profile ul{margin:6px 0 0;padding-left:19px;font-size:12px;line-height:1.75}
.plant-profile .taxonomy-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px}
.plant-profile .taxon-cell small{display:block;color:var(--muted);font-size:10px;margin-bottom:2px}
.plant-profile .taxon-cell strong{font-size:12px;font-weight:600}
.plant-profile .knowledge-item{padding:8px 0;border-top:1px solid #edf1eb}
.plant-profile .knowledge-item:first-child{border-top:0}
.plant-profile .knowledge-source{display:block;margin-top:5px;font-size:10px;color:var(--muted)}
.plant-profile .knowledge-source a{color:var(--green);text-decoration:underline}
.plant-profile .profile-subhead{font-size:11px;font-weight:700;color:var(--green);margin:8px 0 3px}
.plant-profile .profile-empty{font-size:11px;color:var(--muted)}
@media(max-width:420px){.plant-profile .taxonomy-summary{grid-template-columns:1fr 1fr}}


/* v2.12 Encyclopedia: compact, source-labelled knowledge details */
.plant-profile .knowledge-panel ul{margin:7px 0;padding-left:19px}
.plant-profile .knowledge-panel li{padding:2px 0}
.plant-profile .occ-count{float:right;color:var(--muted);font-variant-numeric:tabular-nums}
.plant-profile .profile-note{font-size:10px;line-height:1.55;color:var(--muted);margin-top:8px}


/* NatureScan v3.4 — local plant knowledge base */
.ns-kb-box{margin-top:12px;padding:14px;border:1px solid #dce8dc;border-radius:14px;background:#f7faf6;color:#26392d;font-size:13px;line-height:1.55}
.ns-kb-box h4{margin:0 0 8px;color:#24563d;font-size:14px}
.ns-kb-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}
.ns-kb-meta div{padding:8px;background:#fff;border:1px solid #e6eee5;border-radius:9px;min-width:0}
.ns-kb-meta small{display:block;color:#718075;font-size:10px}
.ns-kb-meta strong{overflow-wrap:anywhere;font-size:12px}
.ns-kb-status{display:inline-block;padding:3px 7px;border-radius:20px;background:#fff1d9;color:#805719;font-size:10px;font-weight:700;margin-bottom:7px}
.ns-kb-note{font-size:11px;color:#657468;margin:8px 0 0}
.ns-kb-fields{margin:8px 0 0;padding-left:18px;color:#5c6d60;font-size:11px}
@media(max-width:420px){.ns-kb-meta{grid-template-columns:1fr 1fr}}


/* v3.55 — NatureScan AI Discovery layout and unified species profile */
.ns-result-card{overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(27,57,39,.06)}
.ns-result-card .species-photo{margin:0;border-radius:0;min-height:220px;background:#eef3eb}
.ns-result-card .species-photo img{height:clamp(250px,68vw,430px);object-fit:cover;background:#eef3eb}
.ns-result-card .photo-placeholder{display:flex;flex-direction:column;gap:7px;max-width:420px;font-size:12px;line-height:1.6}
.ns-result-main{padding:16px 16px 15px}
.ns-result-kicker{font-size:9px;letter-spacing:.13em;font-weight:800;color:#718477;margin-bottom:8px}
.ns-result-card .common-name-wrap h3{font-size:clamp(24px,6vw,30px);line-height:1.16;letter-spacing:-.025em}
.ns-result-card .latin{font-size:13px;margin:5px 0 10px}
.ns-result-badges{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:9px}
.ns-confidence,.ns-source-chip{display:inline-flex;align-items:center;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:750}
.ns-confidence{background:#eaf4ed;color:#24583b}
.ns-source-chip{background:#f1f4f1;color:#58675d}
.ns-result-note{font-size:11px;line-height:1.55;color:#718075;margin:10px 0 0}
.ns-result-facts{margin-top:14px}
.ns-section-heading{font-size:14px;font-weight:750;color:var(--ink);margin:0 0 7px}
.ns-result-facts .gbif-box{margin-top:0;padding:13px;border-radius:14px}
.ns-result-facts .gbif-taxonomy{grid-template-columns:repeat(2,minmax(0,1fr))}
.ns-result-details{margin-top:12px;border:1px solid var(--line);border-radius:13px;background:#fff;overflow:hidden}
.ns-result-details>summary{list-style:none;cursor:pointer;padding:13px 14px;font-size:12px;font-weight:750;color:var(--green);display:flex;align-items:center;justify-content:space-between;gap:10px}
.ns-result-details>summary::-webkit-details-marker{display:none}
.ns-result-details>summary:after{content:"＋";font-size:16px;color:#7a8a7d}
.ns-result-details[open]>summary:after{content:"−"}
.ns-result-details>*:not(summary){margin-left:13px;margin-right:13px}
.ns-result-details .plant-profile{margin-top:0}
.ns-result-details .ns-kb-box{margin-top:10px;margin-bottom:13px}
.ns-candidate-list{padding:0 13px 10px}
.ns-candidate-row{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid #edf1eb;font-size:11px}
.ns-candidate-row b{white-space:nowrap;color:#55745f}
.ns-result-card+.photo-credit{padding:0 3px}
.photo-credit{font-size:10px;line-height:1.55;overflow-wrap:anywhere}
.photo-credit a{color:var(--green);font-weight:700}
@media(min-width:700px){.ns-result-card{display:grid;grid-template-columns:minmax(250px,.9fr) minmax(300px,1.1fr);align-items:stretch}.ns-result-card .species-photo{min-height:330px;height:100%}.ns-result-card .species-photo img{height:100%;min-height:330px}.ns-result-main{align-self:center;padding:24px}.ns-result-facts,.ns-result-details{max-width:100%}}


/* v3.55 — requested micro-adjustments only: top-align species name and simplify photo credit */
.ns43-name-row{align-items:start}
.ns43-name-row>div:last-child{padding-top:7px}
.ns43-photo-wrap .photo-credit{font-size:9px;line-height:1.3;margin:4px 0 0;overflow-wrap:anywhere;color:#77857a}
.ns43-photo-wrap .photo-credit[hidden]{display:none!important}
.ns43-photo-wrap .photo-credit a{color:#286a43;text-decoration:underline;font-weight:600}


/* v3.66 camera-first multi-photo capture session */
.ns-capture-batch{flex:0 0 auto;padding:8px 0 2px;max-height:154px;overflow:hidden}
.ns-capture-batch-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;font-weight:800;color:#fff;margin-bottom:7px}
.ns-capture-batch-head span:last-child{font-size:10px;font-weight:600;color:#c8d8cb}
.ns-capture-organs{display:flex;gap:6px;overflow-x:auto;padding:0 0 7px;scrollbar-width:none}
.ns-capture-organs::-webkit-scrollbar,.ns-capture-thumbs::-webkit-scrollbar{display:none}
.ns-capture-organ{flex:0 0 auto;border:1px solid #ffffff55;border-radius:999px;padding:6px 10px;background:#ffffff16;color:#fff;font-size:10px;font-weight:700}
.ns-capture-organ.active{background:#e8f2e4;color:#20533f;border-color:#e8f2e4}
.ns-capture-thumbs{display:flex;gap:7px;overflow-x:auto;min-height:49px;padding-bottom:2px;scrollbar-width:none}
.ns-capture-thumb{position:relative;flex:0 0 52px;width:52px;height:48px;border-radius:9px;overflow:hidden;border:1px solid #ffffff66;background:#ffffff18}
.ns-capture-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.ns-capture-thumb small{position:absolute;left:0;right:0;bottom:0;padding:2px 3px;background:#102017c9;color:white;font-size:8px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ns-capture-thumb button{position:absolute;right:2px;top:2px;width:17px;height:17px;border:0;border-radius:50%;background:#102017d9;color:#fff;font-size:12px;line-height:15px;padding:0}
.ns-capture-empty{font-size:10px;color:#c8d8cb;padding:12px 2px}
.camcontrols .finish-batch{grid-column:1/-1;background:#dff0c9;color:#1d5038;border:0;min-height:44px}
.camcontrols .finish-batch:disabled{opacity:.45}
@media(max-height:700px){.ns-capture-batch{max-height:122px}.ns-capture-organ{padding:5px 8px}.ns-capture-thumb{height:40px;width:46px;flex-basis:46px}}



/* --- Original v3.68 style block --- */

.scan-source-backdrop{position:fixed;inset:0;z-index:100001;background:rgba(5,18,12,.72);display:flex;align-items:flex-end;justify-content:center;padding:16px;box-sizing:border-box}.scan-source-backdrop[hidden]{display:none!important}.scan-source-backdrop,.scan-source-sheet,.scan-source-sheet button{pointer-events:auto;touch-action:manipulation}.scan-source-sheet{width:min(100%,480px);box-sizing:border-box;background:#f8faf6;border-radius:22px;padding:22px 18px calc(18px + env(safe-area-inset-bottom));box-shadow:0 12px 42px #0005}.scan-source-sheet h3{margin:0 0 6px;color:#173f2f;font-size:19px}.scan-source-sheet p{margin:0 0 14px;color:#66766b;font-size:13px}.scan-source-sheet button{width:100%;min-height:52px;border-radius:14px;margin-top:9px;font-size:15px;font-weight:650}.scan-source-sheet .scan-source-library{background:#e8f1e7;border:1px solid #d7e5d5;color:#205640}.scan-source-sheet .scan-source-cancel{background:transparent;border:0;color:#647269;min-height:42px}
/* v2.10.1: expandable, source-backed plant knowledge sections */
.plant-profile .knowledge-accordion{border-top:1px solid var(--line);padding:10px 0}
.plant-profile .knowledge-accordion:last-child{border-bottom:1px solid var(--line)}
.plant-profile .knowledge-accordion summary{cursor:pointer;list-style:none;font-size:12px;font-weight:600;color:var(--ink);position:relative;padding-right:22px}
.plant-profile .knowledge-accordion summary::-webkit-details-marker{display:none}
.plant-profile .knowledge-accordion summary:after{content:'+';position:absolute;right:2px;top:-2px;color:var(--green);font-size:17px;font-weight:400}
.plant-profile .knowledge-accordion[open] summary:after{content:'−'}
.plant-profile .knowledge-panel{padding:7px 0 2px}

/* v2.12 Encyclopedia: compact, source-labelled knowledge details */
.plant-profile .knowledge-panel ul{margin:7px 0;padding-left:19px}
.plant-profile .knowledge-panel li{padding:2px 0}
.plant-profile .occ-count{float:right;color:var(--muted);font-variant-numeric:tabular-nums}
.plant-profile .profile-note{font-size:10px;line-height:1.55;color:var(--muted);margin-top:8px}


/* v3.55 visual refinement — faithfully follows the approved AI Discovery mobile layout */
:root{
  --ns43-ink:#173b28;
  --ns43-green:#19833a;
  --ns43-green-dark:#15552f;
  --ns43-mint:#edf6e9;
  --ns43-line:#e1eae0;
  --ns43-muted:#718075;
}
html,body{
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
#result.result{
  width:100%;
  max-width:100%;
  margin-top:14px;
  padding:0;
  border:0;
  background:transparent;
  overflow:visible;
}
.ns43-shell{
  display:flex;
  flex-direction:column;
  gap:12px;
  width:100%;
  max-width:100%;
}
.ns43-ident,.ns43-section{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  background:#fff;
  border:1px solid var(--ns43-line);
  border-radius:17px;
  box-shadow:0 5px 18px rgba(24,58,36,.045);
}
.ns43-ident{padding:13px 14px 14px}
.ns43-kicker{
  min-height:38px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 12px;
  padding:8px 11px;
  border-radius:11px;
  background:#edf6e9;
  color:#20533f;
  font-size:13px;
  line-height:1.25;
  letter-spacing:0;
  font-weight:750;
}
.ns43-kicker .ns43-dot{
  width:21px;height:21px;flex:0 0 21px;
  border-radius:7px;
  background:#d9ecd4;
  color:#1b7137;
  font-size:13px;
}
.ns43-name-row{
  display:grid;
  grid-template-columns:88px minmax(0,1fr);
  align-items:center;
  gap:11px;
  min-width:0;
}
.ns43-photo{
  position:relative;
  width:88px;height:88px;
  min-width:88px;
  border-radius:12px;
  overflow:hidden;
  background:#f1f6ef;
  border:1px solid #e6eee4;
  display:flex;
  align-items:center;
  justify-content:center;
}
.ns43-photo img{display:block;width:100%;height:100%;object-fit:cover}
.ns43-photo .photo-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:4px;
  width:100%;height:100%;
  box-sizing:border-box;
  padding:7px;
  color:#68796d;
  font-size:9px;
  line-height:1.35;
  text-align:center;
  background:linear-gradient(145deg,#f4f8f2,#eaf2e8);
}
.ns43-photo .photo-placeholder:before{
  content:"✦";
  display:grid;
  place-items:center;
  width:24px;height:24px;
  border-radius:8px;
  background:#dcebd7;
  color:#367348;
  font-size:14px;
}
.photo-credit{
  margin:5px 1px 0;
  color:#7a887c;
  font-size:9px;
  line-height:1.35;
}
.ns43-title-line{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:5px 7px;
  min-width:0;
}
.ns43-title-line h3{
  min-width:0;
  margin:0;
  color:#174b32;
  font-size:23px;
  line-height:1.12;
  letter-spacing:-.035em;
  font-weight:800;
  overflow-wrap:anywhere;
}
.ns43-verified{
  flex:0 0 auto;
  padding:5px 8px;
  border-radius:999px;
  background:#e8f5e3;
  color:#276d37;
  font-size:9px;
  line-height:1.2;
  font-weight:750;
}
.ns43-latin{
  margin-top:3px;
  color:#435b4b;
  font-size:12px;
  line-height:1.35;
  font-style:italic;
  overflow-wrap:anywhere;
}
.ns43-name-source{
  margin-top:4px;
  color:#788579;
  font-size:9px;
  line-height:1.35;
}
.ns43-name-source:empty{display:none}
.ns43-name-source a{color:#286b3d}
.ns43-score-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin:13px 0 6px;
  color:#263d2d;
  font-size:11px;
  line-height:1.3;
  font-weight:550;
}
.ns43-level{
  padding:5px 9px;
  border-radius:999px;
  background:#eaf5e5;
  color:#276d37;
  font-size:10px;
  line-height:1.15;
  font-weight:750;
  white-space:nowrap;
}
.ns43-score-track{height:9px;background:#e3f0df;border-radius:99px;overflow:hidden}
.ns43-score-fill{height:100%;background:#218c3b;border-radius:99px}
.ns43-score-meta{
  display:flex;align-items:center;justify-content:space-between;
  gap:8px;margin-top:4px;
  color:#647468;font-size:10px;line-height:1.3;
}
.ns43-score-meta strong{
  color:#173e29;font-size:19px;line-height:1;font-weight:800;
}
.ns43-proof{
  margin-top:11px;
  padding:11px 12px;
  border-radius:13px;
  background:#eff7e9;
  color:#263f2d;
}
.ns43-proof h4{
  margin:0 0 6px;
  color:#1e4d31;
  font-size:13px;
  line-height:1.3;
  font-weight:800;
}
.ns43-proof p{
  margin:4px 0;
  color:#344a38;
  font-size:11px;
  line-height:1.5;
}
.ns43-proof .ns43-source{
  margin-top:7px;padding-top:6px;
  border-top:1px solid #dcebd7;
  color:#6b7b6e;font-size:9px;line-height:1.35;
}
.ns43-section{
  padding:12px 13px 13px;
}
.ns43-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin:0 0 10px;
  color:#1d4d31;
  font-size:14px;
  line-height:1.3;
  font-weight:800;
}
.ns43-trait-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
}
.ns43-trait{
  min-width:0;
  text-align:center;
}
.ns43-trait-visual{
  width:100%;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:10px;
  background:#edf4eb;
}
.ns43-trait-visual img{
  display:block;
  width:100%;height:100%;
  object-fit:cover;
}
.ns43-trait strong{
  display:block;
  margin-top:5px;
  color:#304536;
  font-size:11px;
  line-height:1.25;
  font-weight:650;
}
.ns43-trait small{
  display:block;
  margin-top:3px;
  color:#7b887d;
  font-size:8px;
  line-height:1.25;
  overflow-wrap:anywhere;
}
.ns43-trait-placeholder{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  box-sizing:border-box;
  padding:5px;
  background:linear-gradient(145deg,#f2f7ef,#e5efe2);
  color:#6a8b6d;
}
.ns43-trait-placeholder span{
  display:grid;place-items:center;
  width:28px;height:28px;
  border-radius:9px;
  background:#dcebd7;
  color:#397448;
  font-size:20px;
  font-style:normal;
}
.ns43-trait-placeholder em{
  max-width:100%;
  color:#7a887c;
  font-size:7px;
  line-height:1.25;
  font-style:normal;
}
.ns43-tabs{
  display:flex;
  align-items:center;
  gap:5px;
  width:100%;
  overflow-x:auto;
  padding:0 0 8px;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.ns43-tabs::-webkit-scrollbar{display:none}
.ns43-tabs button{
  flex:0 0 auto;
  min-height:31px;
  padding:7px 9px;
  border:0;
  border-radius:9px;
  background:#f0f2ef;
  color:#526258;
  font-family:inherit;
  font-size:10px;
  line-height:1.2;
  font-weight:700;
}
.ns43-tabs button.active{background:#21813b;color:#fff}
.ns43-tab-panel{
  color:#35463a;
  font-size:11px;
  line-height:1.55;
}
.ns43-tab-panel:empty{display:none}
.ns43-tab-panel .gbif-box{
  margin:0;
  padding:10px;
  border:0;
  border-radius:11px;
  background:#f7faf6;
  color:#35463a;
  font-size:11px;
  line-height:1.5;
}
.ns43-tab-panel .gbif-box h4{
  margin:0 0 6px;
  color:#24563d;
  font-size:12px;
  line-height:1.3;
}
.ns43-tab-panel .gbif-taxonomy{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px 12px;
  margin-top:8px;
}
.ns43-tab-panel .gbif-taxonomy small{font-size:9px;color:#718075}
.ns43-tab-panel .gbif-taxonomy strong{font-size:10px;line-height:1.3}
.ns43-tab-panel .source-link{font-size:10px}
.ns43-tab-panel .profile-note{font-size:9px;line-height:1.4}
.ns43-source-line{
  margin-top:6px;
  color:#748176;
  font-size:9px;
  line-height:1.35;
}
.ns43-empty{
  padding:10px 11px;
  border-radius:10px;
  background:#f7f9f6;
  color:#748176;
  font-size:10px;
  line-height:1.45;
}
/* Keep the approved phone composition on desktop preview too: no two-column result card. */
@media(min-width:650px){
  #result.result{max-width:100%}
  .ns43-shell{display:flex;flex-direction:column;gap:12px}
  .ns43-ident{display:block;padding:14px}
  .ns43-name-row{grid-template-columns:92px minmax(0,1fr)}
  .ns43-photo{width:92px;height:92px}
}
@media(max-width:390px){
  .ns43-ident{padding:11px}
  .ns43-name-row{grid-template-columns:76px minmax(0,1fr);gap:9px}
  .ns43-photo{width:76px;height:76px;min-width:76px}
  .ns43-title-line h3{font-size:21px}
  .ns43-verified{font-size:8px;padding:4px 7px}
  .ns43-trait-grid{gap:5px}
  .ns43-trait strong{font-size:10px}
  .ns43-section{padding:11px}
  .ns43-tabs{gap:4px}
  .ns43-tabs button{padding:7px 8px;font-size:9px}
}


.ns43-evidence-list{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:5px;
}
.ns43-evidence-list li{
  position:relative;
  padding-left:19px;
  color:#344a38;
  font-size:10px;
  line-height:1.45;
}
.ns43-evidence-list li:before{
  content:"✓";
  position:absolute;left:0;top:0;
  display:grid;place-items:center;
  width:13px;height:13px;
  border-radius:50%;
  background:#d9edcf;
  color:#28763b;
  font-size:9px;font-weight:900;
}

/* v3.55 — typography tuned to the approved first reference */
html,body,.ns43-shell,.ns43-shell *{
  font-family:Roboto,"Arial", -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
  letter-spacing:normal;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
.ns43-title-line h3{
  font-size:25px;
  line-height:1.12;
  font-weight:800;
  letter-spacing:-.55px;
}
.ns43-latin{font-size:14px;line-height:1.3;font-weight:400}
.ns43-verified{font-size:10px;font-weight:700}
.ns43-score-head{font-size:12px;line-height:1.35}
.ns43-level{font-size:11px}
.ns43-score-meta{font-size:11px}
.ns43-score-meta strong{font-size:20px}
.ns43-proof{padding:12px 13px;border-radius:13px}
.ns43-proof h4{font-size:15px;line-height:1.3;font-weight:800}
.ns43-evidence-list{gap:6px}
.ns43-evidence-list li{font-size:12px;line-height:1.45;padding-left:20px}
.ns43-evidence-list li:before{width:14px;height:14px;font-size:10px}
.ns43-source-line,.ns43-name-source{font-size:10px;line-height:1.4}
.ns43-section-head{font-size:16px;line-height:1.3;font-weight:800}
.ns43-trait strong{font-size:13px;line-height:1.25;font-weight:600}
.ns43-trait small{font-size:9px}
.ns43-tabs button{font-size:12px;min-height:34px;padding:8px 10px;font-weight:650}
.ns43-tab-panel{font-size:13px;line-height:1.55}
.ns43-tab-panel .gbif-box{font-size:12px;line-height:1.55;padding:11px}
.ns43-tab-panel .gbif-box h4{font-size:14px}
.ns43-tab-panel .gbif-taxonomy small{font-size:10px}
.ns43-tab-panel .gbif-taxonomy strong{font-size:11px}
.ns43-tab-panel .source-link{font-size:11px}
.ns43-tab-panel .profile-note{font-size:10px}
.ns43-empty{font-size:12px;line-height:1.5}
@media(max-width:390px){
  .ns43-title-line h3{font-size:23px}
  .ns43-latin{font-size:13px}
  .ns43-proof h4{font-size:14px}
  .ns43-evidence-list li{font-size:11px}
  .ns43-section-head{font-size:15px}
  .ns43-tabs button{font-size:11px;padding:8px 9px}
  .ns43-tab-panel{font-size:12px}
}


/* v3.55 — typography scale matched to the approved phone mockup */
.ns43-shell,
.ns43-shell *{
  font-family:Arial,Helvetica,sans-serif !important;
  letter-spacing:normal !important;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
.ns43-shell{gap:16px}
.ns43-ident{padding:18px;border-radius:20px}
.ns43-kicker{font-size:17px;line-height:1.3;padding:12px 14px;gap:10px;margin-bottom:18px}
.ns43-kicker .ns43-dot{width:27px;height:27px;border-radius:9px}
.ns43-name-row{grid-template-columns:160px minmax(0,1fr);gap:18px}
.ns43-photo{width:160px;height:142px;border-radius:16px}
.ns43-photo .photo-placeholder{font-size:13px;line-height:1.4;padding:10px}
.ns43-title-line{gap:12px;align-items:center}
.ns43-title-line h3{font-size:36px;line-height:1.08;font-weight:800;letter-spacing:-.8px !important}
.ns43-verified{font-size:13px;padding:8px 12px;line-height:1.2}
.ns43-latin{font-size:21px;line-height:1.25;margin-top:7px}
.ns43-name-source{font-size:13px;line-height:1.4;margin-top:6px}
.ns43-score-head{font-size:18px;line-height:1.35;margin:19px 0 9px;gap:12px}
.ns43-level{font-size:15px;padding:7px 12px}
.ns43-score-track{height:13px}
.ns43-score-meta{font-size:14px;line-height:1.35;margin-top:7px}
.ns43-score-meta strong{font-size:31px;line-height:1;font-weight:800}
.ns43-proof{padding:17px 19px;border-radius:17px;margin-top:17px}
.ns43-proof h4{font-size:23px;line-height:1.25;font-weight:800;margin-bottom:12px}
.ns43-evidence-list{gap:9px}
.ns43-evidence-list li{font-size:17px;line-height:1.42;padding-left:27px}
.ns43-evidence-list li:before{width:19px;height:19px;font-size:13px}
.ns43-proof .ns43-source,.ns43-source-line{font-size:13px;line-height:1.4}
.ns43-section{padding:18px;border-radius:20px}
.ns43-section-head{font-size:23px;line-height:1.25;margin-bottom:15px}
.ns43-trait-grid{gap:11px}
.ns43-trait strong{font-size:18px;line-height:1.25;margin-top:8px}
.ns43-trait small{font-size:12px;line-height:1.35}
.ns43-trait img{border-radius:14px}
.ns43-tabs{gap:9px;padding-bottom:13px}
.ns43-tabs button{font-size:17px;line-height:1.2;padding:11px 16px;border-radius:12px;font-weight:700}
.ns43-tab-panel{font-size:17px;line-height:1.55}
.ns43-tab-panel .gbif-box{padding:15px;margin-bottom:12px}
.ns43-tab-panel .gbif-box h4{font-size:19px;line-height:1.3}
.ns43-tab-panel .gbif-box p,
.ns43-tab-panel .gbif-box li,
.ns43-tab-panel .plant-profile{font-size:16px;line-height:1.5}
.ns43-tab-panel .knowledge-accordion summary{font-size:16px;padding:13px}
.ns43-tab-panel .gbif-taxonomy small{font-size:13px}
.ns43-tab-panel .gbif-taxonomy strong{font-size:15px}
.ns43-tab-panel .source-link{font-size:14px}
@media(max-width:520px){
  .ns43-ident{padding:14px}
  .ns43-name-row{grid-template-columns:112px minmax(0,1fr);gap:12px}
  .ns43-photo{width:112px;height:112px}
  .ns43-title-line h3{font-size:27px;line-height:1.08}
  .ns43-latin{font-size:16px}
  .ns43-verified{font-size:10px;padding:6px 8px}
  .ns43-score-head{font-size:14px;margin:15px 0 7px}
  .ns43-level{font-size:12px;padding:6px 9px}
  .ns43-score-meta{font-size:12px}
  .ns43-score-meta strong{font-size:25px}
  .ns43-proof{padding:13px 14px}
  .ns43-proof h4{font-size:18px}
  .ns43-evidence-list li{font-size:14px;line-height:1.4;padding-left:22px}
  .ns43-evidence-list li:before{width:16px;height:16px;font-size:11px}
  .ns43-proof .ns43-source,.ns43-source-line{font-size:11px}
  .ns43-section{padding:13px}
  .ns43-section-head{font-size:18px}
  .ns43-trait-grid{gap:6px}
  .ns43-trait strong{font-size:14px}
  .ns43-trait small{font-size:10px}
  .ns43-tabs{gap:6px}
  .ns43-tabs button{font-size:13px;padding:9px 11px}
  .ns43-tab-panel{font-size:14px}
  .ns43-tab-panel .gbif-box h4{font-size:16px}
  .ns43-tab-panel .gbif-box p,
  .ns43-tab-panel .gbif-box li,
  .ns43-tab-panel .plant-profile{font-size:13px}
  .ns43-tab-panel .gbif-taxonomy small{font-size:11px}
  .ns43-tab-panel .gbif-taxonomy strong{font-size:12px}
}
@media(max-width:360px){
  .ns43-name-row{grid-template-columns:96px minmax(0,1fr);gap:10px}
  .ns43-photo{width:96px;height:96px}
  .ns43-title-line h3{font-size:24px}
  .ns43-latin{font-size:14px}
  .ns43-verified{font-size:9px}
  .ns43-evidence-list li{font-size:13px}
  .ns43-tabs button{font-size:12px;padding:8px 9px}
}


/* v3.55 — Be Vietnam Pro typography */
html,body,button,input,select,textarea,
.top,.top *,main,main *,#app,#app *, .ns43-shell,.ns43-shell *{
  font-family:"Be Vietnam Pro",sans-serif !important;
  font-optical-sizing:auto;
  font-synthesis:none;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body{font-weight:400}
h1,h2,h3,h4,.ns43-title-line h3,.ns43-section-head,.ns43-proof h4{
  font-family:"Be Vietnam Pro",sans-serif !important;
  font-weight:700;
}
.ns43-latin{font-family:"Be Vietnam Pro",sans-serif !important;font-style:italic;font-weight:400}
.ns43-name-source,.ns43-source-line,.photo-credit{font-weight:400}


/* v3.55 — Be Vietnam Pro compact typography system */
html,body,button,input,select,textarea,
.top,.top *,main,main *,#app,#app *, .ns43-shell,.ns43-shell *{
  font-family:"Be Vietnam Pro",sans-serif !important;
  font-optical-sizing:auto;
  font-synthesis:none;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
.ns43-shell{gap:12px}
.ns43-ident{padding:14px;border-radius:18px}
.ns43-kicker{font-size:14px;line-height:1.3;padding:10px 12px;gap:8px;margin-bottom:13px;font-weight:600}
.ns43-kicker .ns43-dot{width:23px;height:23px;border-radius:8px}
.ns43-name-row{grid-template-columns:112px minmax(0,1fr);gap:12px}
.ns43-photo{width:112px;height:112px;border-radius:14px}
.ns43-photo .photo-placeholder{font-size:10px;line-height:1.35;padding:8px}
.ns43-title-line{display:flex;align-items:center;gap:7px;min-width:0}
.ns43-title-line h3{
  flex:0 1 auto;min-width:0;max-width:100%;
  white-space:nowrap;overflow:visible;text-overflow:clip;
  font-size:29px;line-height:1.12;font-weight:700;letter-spacing:-.045em !important;
}
.ns43-verified{flex:0 0 auto;font-size:9px;padding:5px 7px;line-height:1.15;font-weight:600}
.ns43-latin{font-size:14px;line-height:1.28;margin-top:5px;font-weight:400;font-style:italic}
.ns43-name-source{font-size:10px;line-height:1.35;margin-top:4px}
.ns43-score-head{font-size:13px;line-height:1.35;margin:13px 0 7px;gap:9px;font-weight:600}
.ns43-level{font-size:10px;padding:5px 8px;font-weight:600}
.ns43-score-track{height:9px}
.ns43-score-meta{font-size:10px;line-height:1.35;margin-top:6px}
.ns43-score-meta strong{font-size:23px;line-height:1;font-weight:700}
.ns43-proof{padding:12px 13px;border-radius:14px;margin-top:13px}
.ns43-proof h4{font-size:17px;line-height:1.3;font-weight:700;margin-bottom:8px}
.ns43-evidence-list{gap:6px}
.ns43-evidence-list li{font-size:12px;line-height:1.4;padding-left:20px;font-weight:400}
.ns43-evidence-list li:before{width:14px;height:14px;font-size:9px}
.ns43-proof .ns43-source,.ns43-source-line{font-size:9px;line-height:1.35}
.ns43-section{padding:13px;border-radius:17px}
.ns43-section-head{font-size:17px;line-height:1.3;margin-bottom:11px;font-weight:700}
.ns43-trait-grid{gap:7px}
.ns43-trait strong{font-size:13px;line-height:1.25;margin-top:6px;font-weight:600}
.ns43-trait small{font-size:9px;line-height:1.3}
.ns43-trait img{border-radius:11px}
.ns43-tabs{gap:6px;padding-bottom:10px}
.ns43-tabs button{font-size:12px;line-height:1.2;padding:8px 11px;border-radius:10px;font-weight:600}
.ns43-tab-panel{font-size:12px;line-height:1.5}
.ns43-tab-panel .gbif-box{padding:11px;margin-bottom:9px}
.ns43-tab-panel .gbif-box h4{font-size:14px;line-height:1.3;font-weight:700}
.ns43-tab-panel .gbif-box p,
.ns43-tab-panel .gbif-box li,
.ns43-tab-panel .plant-profile{font-size:12px;line-height:1.5}
.ns43-tab-panel .knowledge-accordion summary{font-size:12px;padding:10px}
.ns43-tab-panel .gbif-taxonomy small{font-size:9px}
.ns43-tab-panel .gbif-taxonomy strong{font-size:11px}
.ns43-tab-panel .source-link{font-size:10px}
.ns43-empty{font-size:11px;line-height:1.4}
@media(max-width:520px){
  .ns43-ident{padding:12px}
  .ns43-name-row{grid-template-columns:96px minmax(0,1fr);gap:10px}
  .ns43-photo{width:96px;height:96px}
  .ns43-title-line h3{font-size:26px}
  .ns43-verified{font-size:8px;padding:4px 6px}
  .ns43-latin{font-size:13px}
  .ns43-score-head{font-size:12px;margin:11px 0 6px}
  .ns43-level{font-size:9px;padding:5px 7px}
  .ns43-score-meta{font-size:9px}
  .ns43-score-meta strong{font-size:21px}
  .ns43-proof{padding:11px 12px}
  .ns43-proof h4{font-size:16px}
  .ns43-evidence-list li{font-size:11px;line-height:1.4}
  .ns43-proof .ns43-source,.ns43-source-line{font-size:9px}
  .ns43-section{padding:12px}
  .ns43-section-head{font-size:16px}
  .ns43-trait strong{font-size:12px}
  .ns43-tabs button{font-size:11px;padding:7px 9px}
  .ns43-tab-panel{font-size:11px}
  .ns43-tab-panel .gbif-box h4{font-size:13px}
  .ns43-tab-panel .gbif-box p,
  .ns43-tab-panel .gbif-box li,
  .ns43-tab-panel .plant-profile{font-size:11px}
}
@media(max-width:360px){
  .ns43-name-row{grid-template-columns:82px minmax(0,1fr);gap:9px}
  .ns43-photo{width:82px;height:82px}
  .ns43-title-line h3{font-size:23px}
  .ns43-latin{font-size:12px}
  .ns43-name-source{font-size:9px}
  .ns43-evidence-list li{font-size:10px}
  .ns43-tabs button{font-size:10px;padding:7px 8px}
}


.ns43-english-common{font-size:11px;line-height:1.25;font-weight:600;color:#526b5a;margin-top:3px}
.ns43-english-common[hidden]{display:none!important}
@media(max-width:520px){.ns43-english-common{font-size:10px}}


/* v3.55 — low-match guidance, same evidence card */
.ns43-evidence-list .ns43-low-match-note{
  color:#596b5e;
  font-weight:500;
}
.ns43-evidence-list .ns43-low-match-note:before{
  content:"!";
  color:#946b16;
  background:#f7edcf;
}


/* v3.55 — evidence-backed overview and synchronized information tabs */
.ns43-overview-card{
  padding:13px 14px;margin:0 0 10px;border:1px solid #dfeade;
  border-radius:14px;background:#f1f7ed;color:#294735;
}
.ns43-overview-card>strong{display:block;font-size:14px;color:#20533f;margin-bottom:6px}
.ns43-overview-card p{font-size:13px;line-height:1.6;margin:0;color:#344b3a}
.ns43-overview-sources{font-size:10px;line-height:1.5;color:#718077;margin-top:7px}
.ns43-overview-sources a{color:#20533f;font-weight:700}
.ns43-overview-empty{background:#fafbf8}
.ns43-empty{padding:12px;border:1px dashed #d9e5d6;border-radius:12px;color:#718077;font-size:12px;line-height:1.55}



/* v3.55 — final mobile/desktop cascade overrides for approved hero alignment and photo credits */
.ns43-name-row{align-items:start!important}
.ns43-name-row>div:last-child{align-self:start!important;padding-top:18px!important;margin-top:0!important}
.ns43-photo-wrap .photo-credit{display:flex;flex-direction:column;align-items:flex-start;gap:2px;font-size:9px;line-height:1.25;margin:4px 0 0;overflow-wrap:anywhere;color:#77857a}
.ns43-photo-wrap .photo-credit[hidden]{display:none!important}
.ns43-photo-wrap .ns-photo-credit-links{display:block;white-space:nowrap}
.ns43-photo-wrap .ns-photo-credit-details{display:block;overflow-wrap:anywhere}
.ns43-photo-wrap .photo-credit a{color:#286a43;text-decoration:underline;font-weight:600}


/* v3.59 — precise name alignment and responsive title wrapping */
.ns43-name-row{align-items:start!important}
.ns43-name-row>div:last-child{align-self:start!important;padding-top:12px!important;margin-top:0!important;min-width:0}
.ns43-title-line{display:flex;align-items:flex-start;gap:6px;min-width:0;width:100%}
.ns43-title-line h3{
  flex:1 1 auto!important;min-width:0!important;width:auto!important;
  white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
  line-height:1.16!important;margin:0!important;
}
.ns43-verified{flex:0 0 auto;max-width:48%;white-space:normal;text-align:center;line-height:1.2}
@media(max-width:380px){
  .ns43-title-line{gap:5px}
  .ns43-verified{font-size:9px;padding:5px 7px}
}



/* --- Original v3.68 style block --- */


.ns59-multiscan{margin:14px 0 4px;padding:15px;border:1px solid var(--line);border-radius:20px;background:#fff;color:var(--ink);box-shadow:0 8px 22px rgba(32,83,63,.045)}
.ns59-ms-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px;color:var(--green);font-size:15px;font-weight:800}
.ns59-ms-tag{flex:none;padding:4px 8px;border-radius:99px;background:var(--mint);color:var(--green);font-size:10px;font-weight:800}
.ns59-multiscan>p{margin:7px 0 11px;color:var(--muted);font-size:12px;line-height:1.55}
.ns59-ms-primary,.ns59-ms-secondary,.ns59-ms-select{border:0;border-radius:12px;padding:10px 13px;font-size:12px;font-weight:700}
.ns59-ms-primary{background:var(--green);color:#fff}
.ns59-ms-secondary{background:#eef2ed;color:var(--green)}
.ns59-ms-latest{display:flex;align-items:center;gap:10px;margin:10px 0;padding:8px;border-radius:13px;background:#f5f8f3;color:var(--muted);font-size:11px;font-weight:700}
.ns59-ms-latest img{width:58px;height:58px;object-fit:cover;border-radius:10px}
.ns59-ms-candidate-list{display:grid;gap:9px}
.ns59-ms-candidate{display:grid;grid-template-columns:104px minmax(0,1fr);gap:11px;padding:9px;border:1px solid var(--line);border-radius:14px;background:#fff}
.ns59-ms-candidate.selected{border-color:var(--green);background:#f6faf5}
.ns59-ms-reference{min-height:100px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;border-radius:10px;overflow:hidden;background:#eef4eb;color:var(--muted);font-size:10px;text-align:center}
.ns59-ms-reference img{width:100%;height:100px;object-fit:cover}
.ns59-ms-reference small{padding:0 4px 5px;font-size:9px;line-height:1.3}
.ns59-ms-reference a{color:var(--green);font-weight:700}
.ns59-ms-candidate-info{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.ns59-ms-candidate-info strong{font-size:13px;line-height:1.35;color:var(--green)}
.ns59-ms-candidate-info i{font-size:11px;overflow-wrap:anywhere;color:#52685b}
.ns59-ms-candidate-info small{font-size:10px;line-height:1.4;color:var(--muted)}
.ns59-ms-select{margin-top:auto;padding:7px 9px;background:#edf4ed;color:var(--green);font-size:10px}
.ns59-ms-note{padding:8px 10px;border-radius:10px;background:#f5f8f3}
.ns59-ms-actions{display:flex;gap:8px;flex-wrap:wrap}
.ns59-ms-picked{padding:8px 10px;border-radius:10px;background:#edf5eb;color:var(--green)!important}
@media(max-width:420px){.ns59-multiscan{padding:12px}.ns59-ms-candidate{grid-template-columns:88px minmax(0,1fr);gap:8px}.ns59-ms-reference img{height:90px}.ns59-ms-reference{min-height:90px}}


/* v3.70 recognition provenance */
.ns370-engine-note{margin:12px 0;padding:10px 12px;border-left:3px solid #829b72;background:#f2f6ef;border-radius:8px;color:#415442;font-size:13px;line-height:1.55}

/* v3.80: keep the plant-only organ selector hidden for Animal and Insect capture. */
[hidden]{display:none!important}
