:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#15283e;background:#edf3f9;font-size:16px}*{box-sizing:border-box}body{margin:0}.app{max-width:520px;min-height:100dvh;margin:auto;background:#fff;box-shadow:0 3px 30px #15283e14;padding-bottom:78px}header{display:flex;justify-content:space-between;align-items:center;padding:19px 20px 15px;border-bottom:1px solid #e8edf3}.brand{font-size:26px;font-weight:850;letter-spacing:-1px}.brand span{color:#1169ca}header small{color:#6b7c8c;font-size:11px}header b{font-weight:600;color:#1169ca}main{padding:18px 18px 25px}h1{font-size:22px;line-height:1.2;margin:18px 0 16px}h2{font-size:18px}p{line-height:1.45}.hint,.footerNote{font-size:13px;color:#68788b}.footerNote{margin-top:27px;padding:13px 0;border-top:1px solid #e4eaf1}.modes{display:flex;background:#edf3f9;border-radius:12px;padding:4px;gap:4px;margin:0 0 18px}.modes button{width:50%;border:0;border-radius:9px;background:transparent;padding:13px 6px;font-size:14px;font-weight:650;color:#53657b}.modes .on{background:white;color:#0f60b9;box-shadow:0 1px 6px #163e671b}label{display:block;font-size:13px;font-weight:650;margin:13px 0 6px}input,textarea{width:100%;border:1px solid #cbd8e6;border-radius:11px;padding:14px;font:inherit;color:#17293e;min-width:0;background:#fff}input:focus,textarea:focus{outline:2px solid #8bb6fa;outline-offset:1px}button{font:inherit;cursor:pointer;touch-action:manipulation}button:disabled{opacity:.5;cursor:default}.primary,.soft,.smallButton{border:0;border-radius:12px;padding:14px 16px;font-weight:700;font-size:14px}.primary{background:#126aca;color:white}.soft{background:#e9f2fd;color:#125db2}.full{width:100%;margin-top:13px}.smallButton{padding:9px;color:#1464ba;background:#edf3f9;font-size:12px}.stack{display:grid;gap:9px}.stack .full{margin:0}.camera{position:relative;background:#12212b;aspect-ratio:4/3;border-radius:15px;overflow:hidden}.camera video{width:100%;height:100%;object-fit:cover}.finder{position:absolute;left:13%;right:13%;top:23%;bottom:23%;border:3px solid #4ce6b8;border-radius:13px;pointer-events:none}.cameraPlaceholder{position:absolute;inset:0;color:white;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;font-size:45px;background:#13232d}.cameraPlaceholder small{font-size:13px}.cameraPlaceholder[hidden]{display:none}.buttonGrid{display:flex;gap:8px;margin-top:12px}.buttonGrid button{flex:1}.buttonGrid [hidden]{display:none}.status,.notice{margin:13px 0;border-radius:11px;padding:13px;background:#e8f1fa;color:#214760;font-size:13px;line-height:1.5}.good{background:#e8f7ef;color:#126b40}.warn{background:#fff4dc;color:#80520b}.neutral{background:#eff4f9;color:#536477}.card{border:1px solid #dde6ef;border-radius:13px;padding:16px;margin:13px 0;background:#fff;overflow-wrap:anywhere}.card h2{margin:0 0 10px}.kv{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #f0f2f4;padding:9px 0;font-size:13px}.kv:last-child{border-bottom:0}.kv span{color:#68788b;max-width:48%}.kv strong{font-size:13px;text-align:right;max-width:54%;overflow-wrap:anywhere;font-weight:650}details{border:1px solid #e0e8f0;border-radius:12px;padding:13px;margin-top:12px;font-size:14px}details summary{font-weight:650;cursor:pointer}.diagnostics{padding:12px;background:#f3f6fa;border-radius:8px;white-space:pre-wrap;word-break:break-word;font:12px/1.6 monospace;margin:13px 0}.upload{display:block;background:#e8f1ff;border-radius:12px;text-align:center;padding:15px;font-size:14px;margin:14px 0;cursor:pointer}.upload input{display:none}footer{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,520px);background:#fff;border-top:1px solid #dde6ee;display:flex;justify-content:space-around;padding:10px 5px max(11px,env(safe-area-inset-bottom));z-index:10}footer button{border:0;background:none;color:#28639f;font-weight:700;font-size:13px;padding:8px 12px}[hidden]{display:none!important}a{color:#156aca} .technical{font-size:12px;line-height:1.55;white-space:pre-wrap;word-break:break-all} .tag{font-size:12px;font-weight:700;color:#0f6da3} 

/* v0.9: surrounding UI only; camera geometry and video styles retained from v0.8. */
:root{color:#193b40;background:#eaf0ed}.app{background:#faf9f5;max-width:540px}header{background:#faf9f5;border-color:#d5e3dc}.brand span,a{color:#176d66}main{padding:24px 20px 30px}h1{font-size:27px;line-height:1.18;letter-spacing:-.7px;margin:12px 0}h2{line-height:1.3}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.8px;color:#176d66}.primary{background:#176d66}.soft,.smallButton{background:#e4efea;color:#175d58}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #8d6500;outline-offset:3px}footer{width:min(100%,540px);border-color:#d5e3dc}footer button{color:#175d58;min-height:44px}footer button[aria-current=page]{background:#e4efea;border-radius:10px}.notice,.status{background:#eaf0ed;color:#375b5c}.good{background:#e1f1e8;color:#175d41}.warn{background:#fff0d5;color:#78510e}.neutral{background:#eef0ef;color:#455a5c}.card{border-color:#d5e3dc}.risk{display:block;padding:13px 15px;border-radius:12px;background:#163f43;color:white;font-weight:750;margin:12px 0;font-size:18px}.risk.missing{background:#edf0ef;color:#455a5c;font-size:14px}.labelExample{border:2px solid #193b40;background:white;border-radius:10px;padding:20px;margin:24px 0;font-size:14px}.labelExample p{margin:8px 0 15px}.labelExample hr{border:0;border-top:1px solid #d5e3dc;margin:16px 0}.barcodeExample{height:40px;max-width:230px;background:repeating-linear-gradient(90deg,#193b40 0 2px,white 2px 5px,#193b40 5px 6px,white 6px 11px);margin-top:15px}.actions{display:flex;flex-wrap:wrap;gap:10px;margin:15px 0}.actions a{display:inline-block;padding:12px;border:1px solid #b8d3c8;border-radius:9px;text-decoration:none;font-size:13px;font-weight:700}li{margin:10px 0;line-height:1.5}details p{font-size:14px}.kv strong{font-size:14px}.upload{background:#e4efea;color:#175d58}input:focus,textarea:focus{outline-color:#176d66}.modes .on{color:#176d66}.card>h2{font-size:21px}.source{font-size:12px;color:#536866}.footerNote{line-height:1.5} @media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

/* v0.10: compact result hierarchy; camera geometry and decoding remain unchanged. */
.headerMark{font-size:10px;letter-spacing:1.4px;color:#647b7a}.resultHeading{font-size:23px;margin:0 0 18px}.productCard,.traceCard{background:white;border:1px solid #d5e3dc;border-radius:16px;padding:18px;margin:0 0 14px;overflow-wrap:anywhere}.productTop{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.matchLabel{font-size:12px;font-weight:650;color:#176d66}.classChip{font-size:12px;font-weight:750;background:#e4efea;color:#174e4c;border-radius:20px;padding:7px 10px}.productCard>h2{font-size:25px;margin:17px 0 14px;letter-spacing:-.4px}.productIdentifiers .kv{font-size:13px}.productIdentifiers .kv strong{font-size:14px;max-width:65%}.manufacturer{border:0;border-top:1px solid #e3ebe7;border-bottom:1px solid #e3ebe7;border-radius:0;padding:15px 0;margin:16px 0 0}.manufacturer summary{display:flex;gap:12px;justify-content:space-between;align-items:center;list-style:none}.manufacturer summary::-webkit-details-marker{display:none}.manufacturer summary small{display:block;font-size:10px;letter-spacing:1.3px;color:#647b7a;margin-bottom:6px}.manufacturer summary b{font-size:16px;font-weight:700;line-height:1.4}.summaryHint{color:#176d66;white-space:nowrap;font-size:12px}.manufacturer[open] .summaryHint{display:none}.manufacturerBody{padding-top:15px}.manufacturerBody address{font-style:normal;font-size:14px;line-height:1.6;padding-bottom:10px}.actions a{padding:10px;font-size:12px}.productMore{border:0;padding:15px 0;margin:0;border-radius:0}.officialProduct{display:inline-block;font-size:13px;font-weight:650;margin:4px 0 0}.traceCard h2{font-size:17px;margin:0 0 8px}.traceCard .kv{padding:7px 0}.traceCard .hint{font-size:12px}.traceCard details{border:0;border-top:1px solid #e3ebe7;border-radius:0;padding:12px 0 0}.traceNote{margin:10px 0 0}.source{margin:4px 0 14px;font-size:11px}.aboutApp{border:0;border-top:1px solid #d5e3dc;padding:15px 0 0;border-radius:0;margin-top:25px;color:#536866;font-size:12px}.aboutApp p{font-size:12px}.guideIntro{font-size:15px;margin-bottom:14px}.guideScope{font-size:12px;color:#536866;line-height:1.5;padding-bottom:12px}.realLabel{margin:0 -5px 14px}.realLabel img{display:block;width:100%;height:auto;background:white;border-radius:8px;border:1px solid #d5e3dc}.realLabel figcaption{margin:10px 5px;font-size:13px}.guidePoint summary{display:flex;align-items:center;gap:10px;list-style:none}.guidePoint summary::-webkit-details-marker{display:none}.pointNumber{display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px;height:24px;border-radius:50%;background:#176d66;color:white;font-size:12px}.guidePoint summary::after{content:'+';margin-left:auto;color:#176d66;font-size:18px}.guidePoint[open] summary::after{content:'−'}.aiList dt{font-weight:700;margin-top:14px;font-family:monospace;overflow-wrap:anywhere}.aiList dd{margin:5px 0 0;line-height:1.5}.guideSources{color:#536866}footer button{padding:8px 10px} @media(max-width:350px){main{padding-left:16px;padding-right:16px}.productCard,.traceCard{padding:15px}.manufacturer summary{flex-wrap:wrap}.productCard>h2{font-size:23px}}

.productCard>h2{text-wrap:balance;font-size:24px}.manufacturer summary{min-height:44px}.manufacturer[open] summary::after{content:"−";font-size:20px;color:#176d66}

.firstMarket{margin-top:12px;border-top:1px solid #e3ebe7;padding-top:5px}.firstMarket .hint{font-size:11px;line-height:1.5;margin:6px 0 0}.firstMarket .kv span{max-width:65%}.safetyInfo{border:0;border-bottom:1px solid #e3ebe7;border-radius:0;padding:15px 0;margin:0}.safetyInfo summary{font-size:13px;line-height:1.6}.safetyInfo summary small{display:block;font-size:11px;font-weight:400;color:#647b7a;margin-left:17px}.safetyInfo p,.safetyInfo a{font-size:13px}

.manufacturerCard{background:white;border:1px solid #d5e3dc;border-radius:16px;padding:18px;margin:0 0 14px;overflow-wrap:anywhere}.productCard h2,.manufacturerCard h2,.traceCard h2{font-size:18px;margin:0 0 12px}.productCard>h3,.manufacturerCard>h3{font-size:23px;line-height:1.3;text-wrap:balance;letter-spacing:-.4px;margin:12px 0 16px}.productCard .classChip{display:inline-block;margin-bottom:12px}.manufacturerCard .kv a{font-size:13px;text-align:right;max-width:60%;overflow-wrap:anywhere}.rawHeading{font-size:14px;margin:18px 0 8px}.rawCode{background:#f0f4f1;border-radius:8px;padding:12px;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-all}.traceCard .hint{font-size:12px;line-height:1.5}.safetyInfo h4{font-size:14px;margin:0 0 8px}

.conditions,.descriptionSection,.marketSection{border-top:1px solid #d5e3dc;padding-top:16px;margin-top:16px}.conditions>h3,.descriptionSection>h3,.marketSection>h3,.listHeading{font-size:16px;margin:0 0 10px}.condition{margin:14px 0;padding-left:10px;border-left:3px solid #b8d3c8}.condition h4{font-size:14px;line-height:1.4;margin:0 0 4px}.conditionCode,.registeredText small{font-size:11px;color:#647b7a}.registeredText p{font-size:14px;line-height:1.5;white-space:pre-wrap;margin:8px 0 2px;overflow-wrap:anywhere}.listHeading{margin-top:20px}.marketTable{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px;line-height:1.5}.marketTable th,.marketTable td{text-align:left;vertical-align:top;padding:9px 4px;border-bottom:1px solid #e3ebe7;overflow-wrap:anywhere;font-weight:400}.marketTable thead th{font-weight:700;color:#176d66}.marketTable th:first-child{width:36%}.traceCard .kv span{max-width:55%}.manufacturerCard .kv a{overflow-wrap:anywhere}

.languageMenu{position:relative}.languageMenu summary{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;cursor:pointer;list-style:none}.languageMenu summary::-webkit-details-marker{display:none}.languageMenu>div{position:absolute;right:0;top:46px;z-index:30;min-width:170px;background:white;box-shadow:0 6px 24px #183f4233;border:1px solid #cbddd7;border-radius:12px;padding:6px}.languageMenu button{display:flex;gap:10px;width:100%;align-items:center;background:white;color:#176d66;text-align:left}.accountHeader{display:flex;align-items:center;gap:4px}.dangerZone{margin-top:30px;padding-top:18px;border-top:1px solid #e0c8c4}.dangerZone button{color:#963b31}.codeDateStatus{padding:10px;border-left:3px solid #679a85;font-size:13px}.codeDateStatus.expired,.codeDateStatus.invalid{border-color:#ad4239;background:#fff0ed}.codeDateStatus small{display:block;margin-top:6px}header>div:first-child{min-width:0}header .brand{font-size:clamp(17px,4.4vw,26px)}.languageMenu:focus-within{outline-offset:3px}footer button{font-size:clamp(10px,2.6vw,14px)}

/* Compact language trigger: reset the generic details card, retain a 44px target. */
.accountHeader>.languageMenu{border:0;border-radius:0;padding:0;margin:0;flex:0 0 44px;width:44px;min-height:44px}
.accountHeader>.languageMenu>summary{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;gap:3px;font-size:12px;border:0;background:transparent}
.languageMenu>summary img{display:block;flex:0 0 24px;width:24px;height:16px}
footer{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center}
footer button{min-width:0;padding:8px 3px;white-space:nowrap;font-size:12px}
.registerSaveTools{margin:10px 0}.registerSaveTools button{width:100%}

.resultBack{display:inline-flex;align-items:center;min-height:44px;padding:8px 0;border:0;background:transparent;color:#176d66;font-size:14px;font-weight:650;margin:0 0 12px}
