@font-face{font-family:Poppins;font-weight:400;src:url(brand/fonts/Poppins-Regular.ttf)}
@font-face{font-family:Poppins;font-weight:600;src:url(brand/fonts/Poppins-SemiBold.ttf)}
@font-face{font-family:Poppins;font-weight:700;src:url(brand/fonts/Poppins-Bold.ttf)}
.sbstrip{display:flex;height:4px}.sbstrip i{flex:1}
.sitebar{position:sticky;top:0;z-index:1000;background:#fff;border-bottom:1px solid rgba(0,0,0,.07);font-family:Poppins,system-ui,sans-serif}
.sb-in{max-width:1024px;margin:0 auto;height:56px;display:flex;align-items:center;gap:14px;padding:0 22px}
.sitebar .brand{display:flex;align-items:center;text-decoration:none;flex:0 0 auto;min-height:44px}.sitebar .brand img{height:34px;display:block}.sitebar .brand .ic{display:none;height:32px;width:32px}
.sitebar .sl{display:flex;gap:2px;margin-left:auto}
.sitebar .sl a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:7px 14px;border-radius:999px;font:500 13.5px/1.2 Poppins,system-ui,sans-serif;text-decoration:none;color:#1b1b1b;opacity:.85}
.sitebar .sl a:hover{opacity:1;background:rgba(0,0,0,.05)}.sitebar .sl a[aria-current=page]{opacity:1;font-weight:700}
.sitebar .scanpill{flex:0 0 auto;background:#2E5BFF;color:#fff;border-radius:999px;padding:8px 18px;font:600 13.5px/1.2 Poppins,system-ui,sans-serif;text-decoration:none;display:inline-flex;align-items:center;min-height:44px;transition:background .18s}
.sitebar .scanpill:hover{background:#2250ec}.scanpill .s{display:none}
.sitebar a:focus-visible{outline:none;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:2px}
.sitebar.sb-dark{background:rgba(16,22,21,.8);border-bottom-color:rgba(255,255,255,.12)}.sb-dark .sl a{color:#f5f5f7}.sb-dark .sl a:hover{background:rgba(255,255,255,.1)}
.scanban{display:block;max-width:1024px;margin:14px auto 0;padding:0 22px;text-decoration:none}
.sbi{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#1b1b1b;color:#fff;border-radius:20px;padding:16px 20px;font-family:Poppins,system-ui,sans-serif}
.sbi b{font-size:16px;font-weight:600;display:block}.sbi span span{font-size:13px;color:#b5b0b2;display:block;margin-top:2px;font-weight:400}
.sbi i{font-style:normal;font-size:14px;font-weight:600;background:#2E5BFF;border-radius:999px;padding:9px 18px;white-space:nowrap}
.sitefoot{border-top:1px solid #eae9ea;margin-top:30px;padding:26px 20px 36px;text-align:center;font:400 14px/1.9 Poppins,system-ui,sans-serif;color:#585254;background:#fff}
.sitefoot a{color:#1b1b1b;font-weight:600;text-decoration:none;margin:0 8px;white-space:nowrap}
@media(max-width:600px){.sb-in{padding:0 10px;gap:4px;height:52px}.sitebar .brand img.full{display:none}.sitebar .brand .ic{display:block}.sitebar .sl{gap:0;margin-left:2px}.sitebar .sl a{padding:7px 8px;font-size:12.5px}.scanpill .l{display:none}.scanpill .s{display:inline}.sitebar .scanpill{padding:8px 13px;margin-left:auto}.scanban{padding:0 12px;margin-top:10px}.sbi{padding:14px 16px;border-radius:18px}.sbi b{font-size:15px}}
@media(max-width:350px){.sitebar .sl a{padding:7px 5px;font-size:12px}.sitebar .scanpill{padding:8px 10px}}

/* Mobile header balance fix (0.2.8 preview): even link spacing, centered cluster, equal side insets */
@media(max-width:600px){
 .sb-in{padding:0 14px;gap:6px}
 .sitebar .sl{flex:1 1 auto;justify-content:center;gap:4px;margin-left:0;min-width:0}
 .sitebar .sl a{padding:7px 8px;font-size:12.5px;white-space:nowrap}
 .sitebar .scanpill{margin-left:0;flex:0 0 auto}
}
@media(max-width:380px){
 .sb-in{padding:0 12px;gap:4px}
 .sitebar .sl{gap:2px}
 .sitebar .sl a{padding:7px 6px;font-size:12px}
 .sitebar .scanpill{padding:8px 11px}
}

/* Fluid interactions, no tap boxes */
a,button,[role="button"],summary,input,select,textarea,label{-webkit-tap-highlight-color:transparent}
a,button,[role="button"],summary,select,label{transition:color .18s ease,background-color .18s ease,border-color .18s ease,opacity .18s ease,filter .18s ease,box-shadow .18s ease,transform .12s ease}
button:active,[role="button"]:active,a:active{filter:brightness(.94)}
[role="tabpanel"]:not([hidden]){animation:pcfade .22s ease both}
details>:not(summary){animation:pcfade .22s ease both}
@keyframes pcfade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}


/* Standing rule: no tap/focus boxes anywhere; keyboard focus keeps a subtle cue */
*:focus-visible{outline:none!important}
a:focus-visible{text-decoration:underline!important;text-underline-offset:3px;text-decoration-thickness:2px}
button:focus-visible,[role="button"]:focus-visible,summary:focus-visible,label:focus-visible{filter:brightness(.93)}
input:focus-visible,select:focus-visible,textarea:focus-visible{filter:brightness(.96)}

/* Sliding selection pill for segmented tab controls */
nav[role=tablist].seg-on{position:relative}
nav[role=tablist].seg-on>[role=tab]{position:relative;z-index:1;background:transparent!important;box-shadow:none!important}
nav[role=tablist].seg-on>.segpill{position:absolute;top:0;left:0;border-radius:var(--segpill-r,980px);background:var(--segpill-bg,#fff);box-shadow:var(--segpill-shadow,0 1px 4px rgba(0,0,0,.12));transition:transform .25s cubic-bezier(.4,0,.2,1),width .25s cubic-bezier(.4,0,.2,1),height .25s cubic-bezier(.4,0,.2,1);pointer-events:none;z-index:0}
/* Reveal fades for collapsible extra blocks */
#expertOnly:not([hidden]),#expertInfo:not([hidden]),#encodeFileWrap:not([hidden]){animation:pcfade .22s ease both}

/* Motion layer: messages and results fade/slide in, bars and states change smoothly.
   Shared easing: entrances decelerate cubic-bezier(0,0,.2,1), steady changes cubic-bezier(.4,0,.2,1). */
.chip,.verdict,.msgbox,.testrow{animation:pcfade .25s cubic-bezier(0,0,.2,1) both}
#meter>*{animation:pcfade .25s cubic-bezier(0,0,.2,1) both}
[role="tabpanel"]:not([hidden]),details>:not(summary){animation-timing-function:cubic-bezier(0,0,.2,1)}
.meter i{transition:background-color .3s cubic-bezier(.4,0,.2,1)}
.status,.capacity{transition:color .3s cubic-bezier(.4,0,.2,1)}

/* In-page anchor navigation scrolls smoothly instead of jumping (same pattern as index.html);
   the global reduced-motion guard above resets it to auto. */
html{scroll-behavior:smooth}
/* Generated part cards (prism-parts) get the standard entrance instead of popping in */
.pp-cell{animation:pcfade .25s cubic-bezier(0,0,.2,1) both}
/* Verified-result cards (camera page toggles [hidden]) get the standard entrance */
.result:not([hidden]){animation:pcfade .25s cubic-bezier(0,0,.2,1) both}

/* Motion layer batch 2: page entrance + scroll reveals */
@keyframes pcpage{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
body{animation:pcpage .28s cubic-bezier(0,0,.2,1) both}
.pc-sr{opacity:0;transform:translateY(12px);transition:opacity .45s cubic-bezier(0,0,.2,1),transform .45s cubic-bezier(0,0,.2,1)}
.pc-sr-in{opacity:1;transform:none}

/* Range sliders: custom thumb + track, smooth press feedback (reduced-motion killed by the global guard above) */
input[type=range]{-webkit-appearance:none;appearance:none;background:transparent;cursor:pointer}
input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:999px;background:color-mix(in srgb,var(--teal,#367464) 22%,#e4e2e3)}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:20px;height:20px;margin-top:-7px;border-radius:50%;background:#fff;border:2px solid var(--teal,#367464);box-shadow:0 1px 4px rgba(0,0,0,.2);transition:transform .14s cubic-bezier(.2,.8,.2,1),box-shadow .18s cubic-bezier(.2,.8,.2,1)}
input[type=range]::-moz-range-track{height:6px;border-radius:999px;background:color-mix(in srgb,var(--teal,#367464) 22%,#e4e2e3)}
input[type=range]::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#fff;border:2px solid var(--teal,#367464);box-shadow:0 1px 4px rgba(0,0,0,.2);transition:transform .14s cubic-bezier(.2,.8,.2,1),box-shadow .18s cubic-bezier(.2,.8,.2,1)}
input[type=range]:active::-webkit-slider-thumb{transform:scale(1.18);box-shadow:0 2px 8px rgba(0,0,0,.28)}
input[type=range]:active::-moz-range-thumb{transform:scale(1.18);box-shadow:0 2px 8px rgba(0,0,0,.28)}
input[type=range]:focus-visible{outline:none}
input[type=range]:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 4px color-mix(in srgb,var(--teal,#367464) 28%,transparent),0 1px 4px rgba(0,0,0,.2)}
input[type=range]:focus-visible::-moz-range-thumb{box-shadow:0 0 0 4px color-mix(in srgb,var(--teal,#367464) 28%,transparent),0 1px 4px rgba(0,0,0,.2)}

/* Narrow-screen safety: long unbreakable strings (URLs, IDs) wrap instead of overflowing */
body{overflow-wrap:break-word}
