/* === assets/scanner-v41.css === */
/* FAIR E CARDS SCANNER V3.8 | Verified dependency order | self-hosted */

/* ==== ORIGINAL scanner-v30.css ==== */
:root{color-scheme:dark;--bg:#07111e;--panel:#101e30;--panel2:#152941;--line:#283e56;--text:#edf5ff;--muted:#a1b5cb;--blue:#62c4ff;--primary:#1576d0;--green:#69e0af;--red:#ff9ca9;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at top right,#102e4a 0,transparent 45%),var(--bg);color:var(--text);font-size:15px;line-height:1.5}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,.linkbutton{background:var(--primary);color:#fff;border:1px solid #529ce3;border-radius:12px;padding:12px 18px;font-weight:650;cursor:pointer;text-align:center;display:inline-block;text-decoration:none;min-height:44px}button:hover,.linkbutton:hover{filter:brightness(1.15);text-decoration:none}button:disabled{opacity:.55;cursor:wait}.secondary,.smallbutton{background:#182d43;border:1px solid var(--line);color:var(--text)}.danger{background:#472436;color:#ffd5da;border-color:#815063}.smallbutton{border-radius:10px;padding:8px 12px;font-size:13px}.skip{position:absolute;left:-999px}.skip:focus{left:12px;top:12px;z-index:20;background:var(--bg);padding:12px}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--blue);outline-offset:3px}.top{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 30px;border-bottom:1px solid var(--line);background:#091526;position:sticky;top:0;z-index:5}.brand{display:flex;flex-direction:column;line-height:1.1;letter-spacing:.06em;color:#dcecff;font-weight:900;font-size:23px}.brand small{font-size:10px;color:var(--blue);letter-spacing:.22em;margin-top:6px}.topright,.actions,.tags,.tabs{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.pill,.tags span{border:1px solid var(--line);padding:6px 10px;border-radius:99px;color:var(--muted);font-size:12px}.shell{display:flex;max-width:1550px;margin:auto}.side{width:220px;flex:none;position:sticky;top:76px;height:calc(100vh - 76px);overflow:auto;border-right:1px solid var(--line);padding:24px 16px}.side a{display:block;color:var(--muted);padding:10px 13px;border-radius:9px;margin:3px 0}.side a.active,.tabs a.active{background:#193b5d;color:#e2f4ff;box-shadow:inset 3px 0 var(--blue);font-weight:700}.main{padding:30px;max-width:1280px;min-width:0;flex:1}.pagehead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}h1,h2,h3,p{margin:0 0 12px}h1{font-size:clamp(26px,4vw,42px);line-height:1.12;letter-spacing:-.04em}h2{font-size:21px;letter-spacing:-.025em}h3{font-size:17px}p{color:var(--muted)}article,.quick{border:1px solid var(--line);background:var(--panel);border-radius:18px;padding:20px;margin-bottom:16px;min-width:0;overflow-wrap:anywhere}.eyebrow{font-size:11px;font-weight:750;letter-spacing:.13em;color:var(--blue);display:block;margin-bottom:8px}.hero{display:grid;grid-template-columns:1fr 1fr;gap:24px;background:linear-gradient(120deg,#142f4a,#101e30 65%);padding:28px;border:1px solid #365674;border-radius:22px;margin-bottom:18px;align-items:center}.hero.auth{min-height:60vh;max-width:1050px;margin:30px auto}.auth h1{font-size:clamp(40px,7vw,78px)}.auth article{margin:0}.big{font-size:clamp(32px,5vw,58px);line-height:1.1;letter-spacing:-.05em}.viz{min-width:0}.chart{width:100%;height:180px;display:block;max-width:100%;margin-top:12px}.metrics,.quickgrid,.cardgrid,.fields,.split{display:grid;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr))}.metrics{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:16px}.metrics article,.metrics>div{margin:0;padding:16px;border:1px solid var(--line);border-radius:14px;background:#102238}.metrics span{display:block;color:var(--muted);font-size:13px}.metrics strong{display:block;font-size:24px;letter-spacing:-.03em}.quickgrid{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:20px}.quick{color:var(--text);margin:0;display:block}.quick:hover{border-color:var(--blue);text-decoration:none;background:var(--panel2)}.num{display:inline-flex;border:1px solid #326089;background:#183650;color:var(--blue);padding:6px 10px;border-radius:9px;font-size:13px;margin-bottom:12px}.cardgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.carditem{display:flex;align-items:flex-start;gap:16px;margin:0}.cardmark{display:grid;place-content:center;width:64px;aspect-ratio:5/7;background:linear-gradient(140deg,#254b70,#0c182a 60%);border:1px solid #56789c;color:#d0eaff;font-weight:850;flex:none;border-radius:7px;font-size:17px}.cardmark span{display:inline;color:var(--blue)}.muted,.micro{color:var(--muted)}.micro{font-size:12px}.textlink{color:var(--blue);font-size:13px;font-weight:700}.notice{border:1px solid #39618a;background:#17324e;padding:14px 16px;border-radius:12px;margin-bottom:16px}.error{border-color:#925566;background:#412538;color:#ffced4}.positive{color:var(--green)}form{display:grid;gap:12px;margin:12px 0}label{display:grid;gap:6px;font-weight:600;color:#d5e5f7;font-size:13px;min-width:0}input,select,textarea{background:#091625;border:1px solid #405670;color:var(--text);border-radius:10px;padding:11px 12px;width:100%;min-width:0;min-height:44px}textarea{min-height:110px;resize:vertical}input[type=checkbox]{width:20px;min-height:20px;accent-color:var(--primary)}.check{display:flex;align-items:flex-start;gap:10px;font-weight:400;color:var(--muted)}.inlineform,.resultrow{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid var(--line);padding:12px 0;white-space:pre-wrap;overflow-wrap:anywhere}.resultrow>*{min-width:0}.resultrow span{text-align:right}.tabs{margin-bottom:16px}.tabs a{background:#14273d;padding:10px 15px;border-radius:10px;color:var(--muted)}.camera{aspect-ratio:4/5;max-height:550px;position:relative;border-radius:15px;background:#03080e;overflow:hidden;display:grid;place-items:center}.camera video{width:100%;height:100%;position:absolute;inset:0;object-fit:cover}.frame{position:absolute;left:16%;right:16%;top:10%;bottom:10%;border:2px dashed #b2d9ff;border-radius:17px;box-shadow:0 0 0 100vmax #0003;pointer-events:none}.camera p{position:absolute;bottom:0;left:0;right:0;text-align:center;font-size:12px;background:#000b;padding:6px;margin:0;color:#e8f5ff}.preview{max-width:140px;max-height:180px;object-fit:contain;border:1px solid var(--line);border-radius:8px}.actions{margin:12px 0}details{margin:12px 0;border-top:1px solid var(--line);padding:12px 0}summary{cursor:pointer;font-weight:650}hr{border:0;border-top:1px solid var(--line);margin:20px 0}footer{color:var(--muted);font-size:12px;padding:25px 0}.bottom,.mobilemenu{display:none}.onboard{border-color:#2e6ca0}.mobilemenu a{display:block;padding:10px}.busyform[aria-busy=true]{opacity:.75}@media(max-width:1000px){.quickgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.side{width:175px}.main{padding:22px}.hero{padding:20px}.split{grid-template-columns:1fr}}@media(max-width:720px){.top{height:62px;padding:0 15px}.brand{font-size:19px}.brand small{font-size:8px}.topright .pill,.topright .smallbutton:first-of-type{display:none}.side{display:none}.main{padding:18px 14px 140px}.hero,.split{grid-template-columns:1fr}.hero.auth{margin:0;min-height:0}.hero{gap:10px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metrics strong{font-size:21px}.cardgrid{grid-template-columns:1fr}.quickgrid{gap:9px}.quick,article{padding:14px}.quick h3{font-size:15px}.fields{gap:10px}.pagehead .linkbutton{padding:9px 12px;font-size:12px}.bottom{display:flex;position:fixed;bottom:calc(8px + env(safe-area-inset-bottom));left:10px;right:10px;background:#10263bf5;backdrop-filter:blur(12px);border:1px solid #405d78;border-radius:20px;padding:7px;z-index:10;justify-content:space-around;box-shadow:0 10px 30px #0008}.bottom a{display:flex;min-width:48px;flex-direction:column;align-items:center;color:#b4c9e1;font-size:12px;padding:4px 7px;border-radius:11px}.bottom a span{font-size:22px;line-height:1.2}.bottom a.active{background:#224e76;color:#fff}.bottom a.scanbtn{background:#1378d3;color:#fff}.mobilemenu{display:block;position:fixed;bottom:calc(76px + env(safe-area-inset-bottom));right:14px;z-index:9;background:#132a40;border:1px solid #405d78;padding:10px 14px;border-radius:12px;margin:0;max-height:55vh;overflow:auto;box-shadow:0 8px 20px #0005}.mobilemenu:not([open]){padding:6px 12px}.mobilemenu summary{font-size:12px}.camera{max-height:440px}}@media(max-width:360px){.fields{grid-template-columns:1fr}.brand{font-size:16px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.gamebar{display:flex;align-items:end;justify-content:flex-end;gap:8px;margin:0 0 16px}.gamebar label{width:min(240px,65%)}progress{width:100%;height:16px;accent-color:var(--blue)}.carditem[hidden]{display:none}.cardmark{font-size:11px;text-align:center;letter-spacing:.08em;line-height:1.2}

/* V2.4: transparent camera guide; full-frame capture. */
[hidden]{display:none!important}.camera video{object-fit:contain}.frame{left:50%;top:50%;width:min(68%, 240px);height:auto;aspect-ratio:63/88;max-height:72%;right:auto;bottom:auto;transform:translate(-50%,-50%);box-shadow:none}.camera p{z-index:2}.preview{max-height:420px;object-fit:contain}.photo-status{padding:10px 0;overflow-wrap:anywhere}#photoStatus:not(:empty){padding:12px 0}#photoStatus.error{color:#ffb4b4}#liveResult{scroll-margin-top:20px}button:disabled{opacity:.55;cursor:not-allowed}

/* V3: independent Scanner theme, with original Fair E Cards assets. */
:root{--bg:#050914;--panel:#101827;--panel2:#18263d;--line:#293b55;--text:#edf5ff;--muted:#a9bdd4;--blue:#66d7ff;--primary:#1266b4;--green:#78e6b3;--red:#ffb5c1;--gutter:clamp(18px,3vw,44px);--header:96px;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body{background:radial-gradient(ellipse at 75% 0,#102d4f 0,transparent 55%),var(--bg);line-height:1.65;isolation:isolate;min-height:100vh}.fec-energy{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden;background:url("v30-energy-static.svg") center/cover no-repeat;opacity:.18}.fec-energy:before,.fec-intro-energy:before,.fec-intro-energy:after{content:"";position:absolute;inset:-8%;background:url("v30-energy-motion.svg") center/cover no-repeat;animation:fec-energy-drift 11s ease-in-out infinite alternate;opacity:.65}.fec-energy:before{opacity:.7}.fec-intro-energy:after{filter:hue-rotate(95deg);transform:scaleX(-1);animation:fec-energy-pulse 7s ease-in-out infinite alternate}.fec-intro-energy{position:absolute;inset:0;overflow:hidden;pointer-events:none;background:radial-gradient(ellipse at 50% 50%,#0c2446 0,transparent 62%),#040711}.fec-intro{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:24px;overflow:auto}.fec-intro-content{position:relative;width:min(660px,100%);text-align:center;padding:clamp(16px,5vw,48px);background:radial-gradient(ellipse,#081528dd 0,transparent 75%)}.fec-intro-content img{display:block;width:100%;height:auto;max-height:230px;object-fit:contain;filter:drop-shadow(0 0 24px #009cff55);margin:0 auto 22px}.fec-intro-kicker{display:block;color:#78d8ff;font-size:11px;letter-spacing:.24em;font-weight:750;margin-bottom:10px}.fec-intro h2{font-size:clamp(23px,4vw,36px);letter-spacing:-.035em;margin-bottom:22px}.fec-intro-track{width:min(320px,90%);height:4px;border-radius:5px;background:#21334f;margin:24px auto 14px;overflow:hidden}.fec-intro-track span{display:block;width:35%;height:100%;background:linear-gradient(90deg,#008cff,#65e8ff,#e666df);animation:fec-track 1.6s ease-in-out infinite}.fec-intro p{color:#b9cce2;font-size:13px}.fec-intro button{margin-top:10px}.fec-intro.fec-leaving{animation:fec-exit .35s ease both}.fec-intro-open{overflow:hidden}.fec-intro[hidden]{display:none!important}@keyframes fec-energy-drift{0%{transform:translate(-2%,0) scale(1.02);opacity:.38}100%{transform:translate(2%,1%) scale(1.12);opacity:.85}}@keyframes fec-energy-pulse{0%{opacity:.15}100%{opacity:.75}}@keyframes fec-track{0%{transform:translateX(-110%)}100%{transform:translateX(300%)}}@keyframes fec-exit{to{opacity:0}}
.top{height:var(--header);padding:0 var(--gutter);background:#080e1bf2;backdrop-filter:blur(18px);border-color:#263a54;gap:16px}.brand{align-items:flex-start;min-width:0;gap:3px}.brand img{width:clamp(145px,19vw,240px);height:auto;max-height:60px;object-fit:contain}.brand small{font-size:9px;letter-spacing:.24em;margin:0 0 0 4px}.shell{max-width:1680px}.side{width:238px;top:var(--header);height:calc(100dvh - var(--header));padding:28px 18px;background:#080f1be3}.side a{padding:11px 15px;margin:4px 0;border:1px solid transparent}.side a:hover{background:#13243a;text-decoration:none}.side a.active{border-color:#31587d;background:#142b46}.main{padding:var(--gutter);max-width:1420px}.pagehead{margin-bottom:24px}.gamebar{margin-bottom:24px}.hero,article,.quick{background:linear-gradient(145deg,#111d2fee,#0b1322f5);border:1px solid #30435d;box-shadow:0 10px 28px #0002;border-radius:17px}.hero{padding:clamp(22px,3vw,38px);gap:28px}.hero.auth{width:100%;max-width:1120px;min-height:58vh}.auth h1{font-size:clamp(38px,5vw,72px)}article,.quick{padding:clamp(18px,2vw,26px)}h1{font-size:clamp(30px,4vw,46px);letter-spacing:-.045em}h2{font-size:clamp(20px,2vw,25px)}p{line-height:1.65}label{font-size:14px}input,select,textarea{background:#080f1d;border-color:#40546d;border-radius:9px;min-height:46px}button,.linkbutton{border-radius:10px;min-height:46px;padding:11px 17px}button:not(.secondary):not(.danger):not(.smallbutton),.linkbutton:not(.secondary){background:linear-gradient(135deg,#0864b8,#174c99);border-color:#4884bb}.metrics,.quickgrid,.fields,.split,.cardgrid{gap:18px}.metrics article,.metrics>div{padding:20px;background:#102136}.metrics strong{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.camera{border:1px solid #345679;background:#02050a}.frame{border:2px solid #63d9ff;box-shadow:0 0 20px #00a5ff55}.preview{max-width:min(100%,360px)}.photo-status:not(:empty){background:#0d233b;border:1px solid #345674;border-radius:9px;padding:12px!important;margin-top:8px}.resultrow{gap:12px;align-items:flex-start}.resultrow span{max-width:70%;text-align:left}.topright{justify-content:flex-end}.topright a{white-space:nowrap}.auth .tags span{color:#c6d9ef}.bottom{background:#080f1df5}.bottom a.active{background:#17395c}.mobilemenu{background:#0b1728}footer{border-top:1px solid var(--line);margin-top:26px;color:#a8bad0}
@media(max-width:1000px){.side{width:190px;padding:22px 12px}.main{padding:24px}.top{padding:0 20px}}@media(max-width:720px){:root{--header:78px;--gutter:16px}.top{padding:0 12px}.brand img{max-width:155px;max-height:43px}.brand small{font-size:8px;letter-spacing:.13em}.topright .smallbutton{padding:8px;min-height:38px}.main{padding:20px 14px 160px}.hero.auth{margin:4px auto}.hero,article,.quick{padding:17px}.pagehead{align-items:flex-start;flex-wrap:wrap;margin-bottom:18px}.metrics,.quickgrid,.fields{gap:12px}.metrics strong{font-size:20px}.gamebar{justify-content:stretch}.gamebar label{flex:1;width:auto}.bottom a{min-width:40px;padding:5px 6px}.resultrow{flex-direction:column}.resultrow span{max-width:100%}.fec-energy{opacity:.10}}@media(max-width:390px){.fields,.metrics{grid-template-columns:1fr}.topright{gap:5px}.brand img{width:130px}.bottom a{font-size:11px}}@media(prefers-reduced-motion:reduce){.fec-energy:before,.fec-intro-energy:before,.fec-intro-energy:after,.fec-intro-track span,.fec-intro.fec-leaving{animation:none!important}.fec-intro-track span{width:100%}.fec-intro-energy:after{display:none}.fec-intro-energy{background:#071323 url("v30-energy-static.svg") center/cover no-repeat}}

.fec-energy:after{content:"";position:absolute;inset:-8%;background:url("v30-energy-motion.svg") center/cover no-repeat;filter:hue-rotate(95deg);transform:scaleX(-1);animation:fec-energy-pulse 9s ease-in-out infinite alternate;opacity:.35}@media(prefers-reduced-motion:reduce){.fec-energy:after{display:none}}


/* ==== ORIGINAL experience-v31.css ==== */
/* Scanner experience layer */
.side a,.mobilemenu a{display:flex;align-items:center;gap:11px}.fec31-icon{width:21px;height:21px;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;color:#72bdf8;transition:transform .22s,filter .22s}.side a:hover .fec31-icon,.side a.active .fec31-icon,.bottom a:hover .fec31-icon{color:#83e5ff;filter:drop-shadow(0 0 5px #00baff);transform:translateY(-2px)}.side a.active{box-shadow:inset 3px 0 #33caff,0 0 16px #007dff20}.bottom a .fec31-icon{width:23px;height:23px}.quick,.metrics article,.carditem{transition:transform .2s,border-color .2s,box-shadow .2s}.quick:hover,.carditem:hover{transform:translateY(-3px);border-color:#438dd0;box-shadow:0 10px 30px #008aff19}.fec31-tools{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:16px 0}.fec31-tools label{flex:1;min-width:135px}.fec31-tools p{flex-basis:100%;margin:0;color:#a6c7e5}.fec31-insights small{display:block;color:#a6c7e5;margin-top:8px}.fec31-photo-tools{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.fec31-photo-tools p{flex-basis:100%;margin:0;color:#a6c7e5}.fec31-zoom{max-width:100%!important;width:100%!important;object-fit:contain}.carditem[hidden]{display:none!important}.main :focus-visible{outline:2px solid #72dcff;outline-offset:3px}.main>article,.main>section{animation:fec31-enter .28s ease-out both}@keyframes fec31-enter{from{opacity:.7;transform:translateY(5px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.main>article,.main>section{animation:none}.fec31-icon,.quick,.metrics article,.carditem{transition:none}.quick:hover,.carditem:hover{transform:none}}
.fec31-photo-tools[hidden]{display:none!important}


/* ==== ORIGINAL studio-v32.css ==== */
/* FEC V3.2: scoped premium workspace and inspection tools */
:root{--fec32-line:#294766;--fec32-glow:#42c5ff;--fec32-pink:#f24bb9;--fec32-soft:#a9bfd8}body{font-size:15px;letter-spacing:.005em}h1,h2,h3{letter-spacing:-.025em;line-height:1.18}h2{font-size:clamp(1.15rem,2vw,1.48rem)}h3{font-size:1.05rem}.main>article,.main>section,.quickgrid,.metrics{margin-block:clamp(12px,2vw,22px)}article{border-color:var(--fec32-line);border-radius:18px}.pagehead{gap:12px}.side a{position:relative;overflow:hidden;transition:transform .2s ease,background .2s ease,box-shadow .2s ease}.side a.active::after{content:"";position:absolute;inset:20% 0 20% auto;width:3px;border-radius:4px;background:linear-gradient(#45caff,#ef55c8);box-shadow:0 0 12px #44bfff}.side a.active .fec31-icon{filter:drop-shadow(0 0 6px #19aaff);animation:fec32-breathe 3.6s ease-in-out infinite}.quick{position:relative;overflow:hidden;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}.quick .fec31-icon{display:block;width:32px;height:32px;margin-bottom:12px;color:#62c4ff;transition:transform .25s ease,filter .25s ease}.quick:hover .fec31-icon,.side a:hover .fec31-icon{transform:translateY(-2px) scale(1.13);filter:drop-shadow(0 0 7px #43c6ff)}.quick:hover{transform:translateY(-3px);border-color:#4679a2;box-shadow:0 12px 32px #02081990}.quick:active,button:active:not(:disabled),.linkbutton:active{transform:translateY(1px)}.fec32-nav-search{font-size:12px;color:var(--fec32-soft);margin:12px 0}.fec32-nav-search input{min-width:0;width:100%;font-size:13px}.fec32-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.fec32-grid article{min-width:0}.fec32-kpis{display:grid;gap:10px;margin-block:14px}.fec32-kpis div{display:flex;gap:14px;align-items:center;padding:10px 12px;background:#081525;border:1px solid #25405c;border-radius:12px}.fec32-kpis strong{font-size:1.3rem;min-width:2rem;color:#7fd6ff;font-variant-numeric:tabular-nums}.fec32-bar{display:grid;grid-template-columns:1fr auto;gap:4px 10px;margin:12px 0}.fec32-bar progress{grid-column:1/-1;width:100%;height:8px}.fec32-chip{display:inline-block;font-size:.75rem;padding:4px 8px;margin-block:5px;border:1px solid #a87842;color:#ffcd92;border-radius:100px}.fec32-batch{margin:18px 0}.fec32-batch progress{width:100%;height:10px;accent-color:#41c8ff}.fec32-queue-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:12px;border-bottom:1px solid var(--fec32-line);overflow-wrap:anywhere}.fec32-queue-row span{color:var(--fec32-soft)}.fec32-done span{color:#72e0b7}.fec32-failed span{color:#ff9ca9}.fec32-inspect{margin:14px 0;padding:14px;border:1px solid var(--fec32-line);border-radius:16px;background:#081525;min-width:0}.fec32-inspect-canvas{display:block;max-width:100%;max-height:520px;width:auto;height:auto;margin:12px auto;border:1px solid #35597b;border-radius:8px}.fec32-quality{font-size:.85rem;overflow-wrap:anywhere;color:#a8c5dd}.fec32-measure{min-width:0;border:1px solid var(--fec32-line);padding:16px;border-radius:14px}.fec32-ratio{margin:12px 0;padding:12px;border-radius:8px;background:#081525;color:#8ce3ff;font-variant-numeric:tabular-nums}.fec32-history{margin-block:12px}.fec32-history summary{cursor:pointer;padding-block:8px}.fec32-history p{overflow-wrap:anywhere}.fec32-inspect[hidden],.fec32-history[hidden],.carditem[hidden],.side a[hidden]{display:none!important}@keyframes fec32-breathe{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.8;transform:scale(1.08)}}@media(max-width:760px){.fec32-grid{grid-template-columns:1fr}.main>article,.main>section{margin-block:12px}.fec32-queue-row{grid-template-columns:1fr}.fec32-inspect{padding:10px}.fec32-inspect .actions button{flex:1 1 42%}.fec32-measure{padding:12px}.fec32-inspect-canvas{max-height:420px}.topright .pill{display:none}.pagehead h1{font-size:1.65rem}}@media(prefers-reduced-motion:reduce){.side a,.quick,.quick .fec31-icon,.side a.active .fec31-icon{animation:none!important;transition:none!important;transform:none!important}}@media print{body{background:white!important;color:#111!important}.top,.side,.bottom,.mobilemenu,.gamebar,.fec-energy,.fec-intro,.pagehead>a,button,.skip,.actions,.camera,.fec31-photo-tools,footer{display:none!important}.shell,.main{display:block!important;width:100%!important;max-width:none!important;padding:0!important;margin:0!important}article,.fec32-measure,.fec32-inspect,.fec32-ratio{background:white!important;color:#111!important;border:1px solid #aaa!important;box-shadow:none!important;break-inside:avoid}.micro,.muted,.eyebrow,.fec32-quality{color:#333!important}input,textarea,select{background:white!important;color:#111!important;border:1px solid #aaa!important}.fec32-history[hidden]{display:none!important}}

@media print{body.fec32-printing .main>*:not(.fec32-print-target){display:none!important}body.fec32-printing .fec32-print-target form{display:none!important}}


/* ==== ORIGINAL workspace-v33.css ==== */
/* Fair E Cards — V3.3 restrained application shell. Loaded after V3.2. */
:root{--header:72px;--gutter:28px;--sidebar:240px;--bg:#0b111b;--panel:#111a27;--panel2:#172333;--line:#2a394b;--text:#edf1f6;--muted:#aab8c8;--blue:#76c9f4;--primary:#1266b4;--fec32-line:#2a394b;--fec32-soft:#aab8c8;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body{background:var(--bg);font-size:14px;line-height:1.5;letter-spacing:normal;min-width:0}.fec-energy{opacity:.035}.fec-energy:before,.fec-energy:after{animation:none;opacity:.3}.top{height:var(--header);padding:0 24px 0 20px;gap:20px;background:#0e1622;backdrop-filter:none;border-bottom:1px solid var(--line)}.top .brand{width:calc(var(--sidebar) - 20px);flex:none;align-items:flex-start;gap:0}.brand img{width:166px;max-height:44px;height:auto;object-fit:contain}.brand small{font-size:11px;letter-spacing:.065em;text-transform:uppercase;color:#afbdcc;margin:0 0 0 4px;font-weight:600}.fec33-header-context{display:flex;gap:13px;align-items:center;min-width:0;color:var(--muted);font-size:13px}.fec33-header-context span:last-child{color:var(--text);font-weight:600}.fec33-header-divider{height:15px;width:1px;background:var(--line)}.topright{margin-left:auto;gap:8px;flex-wrap:nowrap}.topright .pill{border:0;padding:4px 8px;color:var(--muted);font-size:12px}.topright .smallbutton{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:7px 11px;background:#172333;border:1px solid var(--line);font-weight:550;font-size:13px}.topright svg,.fec33-empty svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;color:var(--blue);flex:none}
.shell{max-width:none;width:100%;margin:0;align-items:flex-start;min-height:calc(100dvh - var(--header))}.side{width:var(--sidebar);height:calc(100dvh - var(--header));top:var(--header);padding:16px 12px;display:flex;flex-direction:column;background:#0e1622;overflow:hidden;border-right:1px solid var(--line)}.fec33-side-head{padding:0 4px 12px;flex:none}.fec33-side-head .eyebrow{color:var(--muted);font-size:11px;letter-spacing:.09em;margin:0 0 9px}.fec32-nav-search{margin:0;display:block}.fec32-nav-search input{height:35px;min-height:35px;padding:7px 10px;border-radius:6px;font-size:13px;background:#0a121e}.fec33-nav{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#3a4a5e transparent;padding:0 3px 8px 0;overscroll-behavior:contain}.fec33-nav-group{margin:0 0 15px}.fec33-nav-group h2{font:600 11px/1.4 system-ui,sans-serif;letter-spacing:.045em;color:#9daebf;margin:0 0 5px;padding:0 9px}.side a,.mobilemenu a{font-size:13px;line-height:1.3;gap:10px;margin:1px 0;padding:8px 10px;border-radius:6px;border:1px solid transparent;min-height:36px;transition:background .15s,color .15s,border-color .15s;transform:none}.side a:hover,.mobilemenu a:hover{background:#1a2a3c;color:#fff}.side a.active,.mobilemenu a.active{background:#192e45;border-color:#35546f;color:#eaf5ff;font-weight:650;box-shadow:inset 2px 0 #58b9f1}.side a.active::after{display:none}.fec31-icon{width:18px;height:18px;stroke-width:1.65;color:#84a9c8;transition:transform .16s ease,color .16s ease}.side a.active .fec31-icon,.side a:hover .fec31-icon,.bottom a:hover .fec31-icon{animation:none;filter:none;color:#8ed5ff;transform:none}.side a:hover .fec31-icon{transform:translateX(2px)}.fec33-side-bottom{flex:none;border-top:1px solid var(--line);padding:10px 2px 0}.fec33-side-bottom a{display:flex;justify-content:space-between;min-height:29px;font-size:12px;padding:5px 8px}.fec33-side-bottom>span{display:block;font-size:11px;color:#91a2b5;padding:6px 8px 0}.fec33-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%)}
.main{width:calc(100% - var(--sidebar));max-width:none;padding:25px clamp(20px,2.3vw,44px) 0;min-height:calc(100dvh - var(--header));flex:1;display:flex;flex-direction:column;min-width:0}.pagehead{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin:0 0 20px;padding:0;flex-wrap:wrap}.pagehead .eyebrow{font-size:12px;letter-spacing:0;text-transform:none;font-weight:500;color:var(--muted);margin:0 0 5px}.pagehead h1{font-size:30px;letter-spacing:-.025em;font-weight:650;line-height:1.15;margin:0}.fec33-page-actions{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.gamebar{margin:0;align-items:flex-end;gap:7px;justify-content:flex-start}.gamebar label{width:clamp(140px,14vw,220px);font-size:11px;color:var(--muted);gap:4px}.gamebar select{height:38px;min-height:38px;padding:7px 9px}.gamebar button,.fec33-scan-action{min-height:38px;padding:8px 13px;font-size:13px}.fec33-scan-action{white-space:nowrap}.main>article,.main>section,.quickgrid,.metrics{margin:0 0 16px;animation:none}.main>h2{margin:8px 0 12px}.main>p:last-of-type{margin-bottom:20px}.hero,article,.quick,.metrics article,.metrics>div{background:var(--panel);border:1px solid var(--line);border-radius:9px;box-shadow:none}.hero,article,.quick{padding:20px}.hero{gap:24px}.hero.dashboard{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;padding:22px 24px;min-height:0}.dashboard .big{font-size:clamp(30px,3.2vw,46px);letter-spacing:-.035em;font-weight:650;font-variant-numeric:tabular-nums;line-height:1.15;margin:0 0 10px}.dashboard p{font-size:13px;line-height:1.5;margin:0 0 13px}.dashboard .viz{border-left:1px solid var(--line);padding-left:24px}.dashboard .chart{height:136px}.fec33-empty{display:flex;align-items:center;gap:12px;min-height:92px;color:var(--muted);padding:8px 0}.fec33-empty svg{width:34px;height:34px;color:#809ab3}.fec33-empty strong{color:var(--text);font-weight:600;font-size:13px}.fec33-empty p{margin:4px 0 0;font-size:12px}.onboard{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 20px!important;background:#111e2c;border-color:#2f465d}.onboard h2{font-size:16px;margin:0 0 4px}.onboard p{margin:0;font-size:13px}.onboard a{flex:none}.eyebrow{font-size:11px;letter-spacing:.045em;font-weight:650;color:#a3b6c9;margin-bottom:7px}h2{font-size:18px;letter-spacing:-.015em;font-weight:650;line-height:1.3;margin-bottom:10px}h3{font-size:15px;font-weight:650;letter-spacing:0;line-height:1.35}p{line-height:1.55;margin-bottom:12px}.metrics,.quickgrid,.fields,.split,.cardgrid,.fec32-grid{gap:14px}.metrics article,.metrics>div{padding:15px;min-width:0}.metrics span{font-size:12px;line-height:1.4}.metrics strong{font-size:clamp(18px,1.8vw,26px);line-height:1.25;font-weight:650;margin-top:5px}.fec31-insights small{font-size:11px;line-height:1.4;margin-top:6px;color:var(--muted)}.fec33-overview-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}.fec33-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:6px 0 10px}.fec33-section-head h2,.fec33-section-head p{margin:0}.fec33-section-head p{font-size:12px}.quickgrid{grid-template-columns:repeat(3,minmax(0,1fr))}.quick{position:relative;padding:16px 36px 16px 16px;min-height:99px;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:12px;row-gap:4px;align-content:center;transition:background .16s,border-color .16s}.quick .fec31-icon{width:24px;height:24px;grid-row:1/3;grid-column:1;margin:0;color:#76b9e6;align-self:center}.quick h3{grid-column:2;margin:0}.quick p{grid-column:2;margin:0;font-size:12px;color:var(--muted)}.quick .textlink{position:absolute;right:13px;top:50%;transform:translateY(-50%);font-size:17px;color:var(--muted)}.quick:hover,.carditem:hover{background:#152232;transform:none;box-shadow:none;border-color:#42617e}.quick:hover .fec31-icon{transform:translateY(-2px);filter:none;color:#92d7ff}.fec32-grid article{margin:0}.fec32-kpis div,.fec32-inspect,.fec32-ratio,.fec32-measure{border-radius:7px;background:#0d1623}.fec32-kpis div{padding:9px 11px}.fec32-kpis strong{font-size:18px}.fec32-inspect{padding:14px}.cardmark{background:#182535;border-color:#3b4e64}.carditem{gap:13px}.carditem>div:last-child{min-width:0}.carditem h3{overflow-wrap:anywhere}.fields label,label{font-size:13px;font-weight:550}input,select,textarea{border-radius:6px;border-color:#3a4b60;background:#0a121f;min-height:40px;padding:9px 11px}textarea{min-height:96px}input[type=checkbox]{min-height:20px}button,.linkbutton{min-height:40px;padding:9px 14px;border-radius:6px;font-size:13px;font-weight:600;line-height:1.4;transition:background .15s,border-color .15s}button:not(.secondary):not(.danger):not(.smallbutton),.linkbutton:not(.secondary){background:#1265b1;border-color:#3c87cf}button:hover,.linkbutton:hover{filter:none;border-color:#77b9e7}button:active:not(:disabled),.linkbutton:active{transform:translateY(1px)}.secondary{background:#1a2a3c;border-color:#364a60}.tabs a{border-radius:6px;padding:9px 12px}.notice{padding:12px 15px;border-radius:7px}.frame{box-shadow:none;border-color:#8ad5ff;border-radius:10px}.camera{border-radius:8px}.chart{max-width:100%}.fec33-footer{margin-top:auto;padding:20px 0 18px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.fec33-footer-main,.fec33-footer-meta{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap}.fec33-footer-main strong{font-size:14px;font-weight:650;color:var(--text)}.fec33-footer-main p{margin:3px 0 0;font-size:12px}.fec33-footer nav{display:flex;flex-wrap:wrap;gap:15px}.fec33-footer a{color:#b8cce0}.fec33-footer-meta{margin-top:13px;font-size:11px;color:#a4b4c6}.hero.auth{min-height:0;margin:35px auto;max-width:980px;padding:28px;gap:38px}.auth h1{font-size:clamp(30px,4vw,48px)}.auth article{padding:24px}body[data-workspace=guest] .main{width:100%;max-width:1100px;margin:auto}.mobilemenu,.bottom{display:none}
@media(min-width:1700px){.main{padding-left:36px;padding-right:36px}}@media(max-width:1300px){.fec33-overview-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1050px){:root{--sidebar:212px}.top{padding-left:16px}.top .brand{width:calc(var(--sidebar) - 16px)}.fec33-header-context{display:none}.side{padding:13px 9px}.main{padding:20px 20px 0}.quickgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.fec33-page-actions{gap:8px}}
@media(max-width:900px){:root{--header:64px}.top{padding:0 14px;gap:8px}.top .brand{width:auto;flex:0 1 auto}.brand img{width:143px;max-height:39px}.brand small{font-size:10px}.topright{gap:6px}.topright .pill,.topright .fec33-header-alert{display:none}.topright .smallbutton{padding:7px 9px;font-size:12px;min-height:36px}.side{display:none}.shell{display:block}.main,body[data-workspace=guest] .main{width:100%;padding:18px 16px 94px;min-height:calc(100dvh - var(--header))}body[data-workspace=guest] .main{padding-bottom:10px}.pagehead{gap:12px;margin-bottom:16px}.pagehead h1{font-size:26px}.fec33-page-actions{margin:0;flex:0 1 auto}.gamebar label{width:150px}.fec33-overview-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.mobilemenu{display:block;position:static;background:transparent;border:0;box-shadow:none;padding:0!important;margin:0;max-height:none;overflow:visible}.mobilemenu summary{list-style:none;display:flex;align-items:center;gap:5px;background:#172333;border:1px solid var(--line);border-radius:6px;padding:7px 9px;font-size:12px;min-height:36px}.mobilemenu summary::-webkit-details-marker{display:none}.fec33-mobile-links{position:absolute;right:12px;top:calc(var(--header) - 4px);width:min(300px,calc(100vw - 24px));max-height:calc(100dvh - var(--header) - 80px);overflow:auto;background:#101b29;border:1px solid #41556d;border-radius:8px;padding:8px;box-shadow:0 8px 25px #0006;overscroll-behavior:contain;z-index:15}.mobilemenu:not([open]) .fec33-mobile-links{display:none}.bottom{display:flex;position:fixed;bottom:0;left:0;right:0;padding:6px 8px calc(6px + env(safe-area-inset-bottom));border:0;border-top:1px solid var(--line);border-radius:0;background:#0e1622;box-shadow:none;backdrop-filter:none;z-index:10;justify-content:space-around;gap:3px}.bottom a{flex:1;max-width:110px;min-width:0;padding:6px 4px;font-size:11px;border-radius:6px;line-height:1.4;gap:3px}.bottom a .fec31-icon{width:21px;height:21px}.bottom a.active{background:#20384f;color:#fff}.bottom a.scanbtn{background:#1265b1;color:#fff}.bottom a.scanbtn svg{color:white}.hero.auth{margin:10px auto;min-height:0}.hero.dashboard{padding:18px;gap:18px}.fec33-footer{padding-bottom:10px}}
@media(max-width:600px){.main{padding:16px 12px 92px}.pagehead{align-items:flex-start}.pagehead h1{font-size:26px}.fec33-page-actions{width:100%;align-items:flex-end;justify-content:space-between;gap:8px}.gamebar{flex:1;min-width:0}.gamebar label{flex:1;width:auto;min-width:0}.gamebar select{width:100%}.gamebar button,.fec33-scan-action{font-size:12px;padding:8px 10px}.hero.dashboard{grid-template-columns:1fr;padding:17px;gap:12px}.dashboard .viz{border-left:0;border-top:1px solid var(--line);padding:15px 0 0}.fec33-empty{min-height:65px}.onboard{padding:13px!important;align-items:flex-start;flex-wrap:wrap;gap:8px}.onboard a{min-height:34px}.metrics,.fec33-overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.metrics article,.metrics>div{padding:12px}.metrics strong{font-size:21px}.quickgrid{gap:9px}.quick{padding:12px;display:block;min-height:112px}.quick .fec31-icon{margin-bottom:7px;width:21px;height:21px}.quick .textlink{right:10px;top:20px}.quick h3{font-size:14px;margin:0 0 5px}.quick p{font-size:12px}.fec32-grid,.cardgrid,.split,.hero.auth{grid-template-columns:1fr}.hero.auth{padding:18px;gap:20px}.hero.auth article{padding:16px}.main>article,.main>section,.quickgrid,.metrics{margin-bottom:12px}article{padding:15px}.fec33-section-head p{display:none}.fec33-footer-main,.fec33-footer-meta{gap:9px}.fec33-footer nav{gap:12px}.resultrow{align-items:flex-start}.topright .smallbutton svg{display:none}}
@media(max-width:360px){.brand img{width:116px}.mobilemenu summary span{display:none}.top{padding:0 10px}.fields{grid-template-columns:1fr}.fec33-page-actions{flex-wrap:wrap}.gamebar{flex-basis:100%}.fec33-scan-action{width:100%}}
@media(prefers-reduced-motion:reduce){.fec31-icon,.quick,.side a,button,.linkbutton{transition:none!important;animation:none!important;transform:none!important}}@media print{.top,.side,.bottom,.mobilemenu,.fec33-page-actions,.fec33-footer,.fec-energy,.fec-intro{display:none!important}.shell,.main{display:block!important;width:100%!important;padding:0!important;max-width:none!important;min-height:0!important}article,.hero,.quick,.metrics>div,.metrics article{background:white!important;color:#111!important;border-color:#aaa!important}.fec33-empty,.eyebrow,p{color:#333!important}}


/* ==== ORIGINAL catalogue-v34.css ==== */
/* Professional reference catalogue. No generated card artwork. */
.fec34-sectionhead{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;margin-bottom:16px}.fec34-sectionhead h2{margin:0 0 4px}.fec34-sectionhead p{margin:0;color:var(--muted)}.fec34-providerstatus,.fec34-quick,.fec34-pagination,.fec34-filter{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0}.fec34-providerstatus span,.fec34-source,.fec34-favourite{font-size:11px;font-weight:600;color:#aabed2;display:inline-block;border:1px solid var(--line);border-radius:4px;padding:3px 7px;line-height:1.4}.fec34-search{display:grid;grid-template-columns:minmax(130px,1fr) minmax(160px,2fr) minmax(100px,1fr) auto;align-items:end;gap:12px;margin:12px 0 20px}.fec34-search label,.fec34-quick label,.fec34-filter label{margin:0;min-width:0}.fec34-search button{min-height:40px}.fec34-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr));gap:12px;align-items:start}.fec34-gallery .fec34-tile,.fec34-featured>div{min-width:0;border:1px solid var(--line);border-radius:8px;background:var(--panel);overflow:hidden;padding:12px;transition:border-color .18s,box-shadow .18s}.fec34-tile:hover{border-color:#517698;box-shadow:0 3px 12px #0002}.fec34-art{margin:0;display:flex;align-items:center;justify-content:center;min-width:0;aspect-ratio:245/337;background:#0b121c;border:1px solid var(--line);border-radius:6px;overflow:hidden;color:var(--muted);position:relative}.fec34-art img{position:absolute;inset:0;height:100%;width:100%;object-fit:contain;padding:5px;box-sizing:border-box}.fec34-art img[hidden],.fec34-art span[hidden]{display:none!important}.fec34-noart{font-size:12px;text-align:center;padding:10px;line-height:1.4}.fec34-tile-body{padding-top:12px}.fec34-gallery h3{font-size:15px;line-height:1.35;margin:8px 0 3px;overflow-wrap:anywhere}.fec34-gallery p{margin:3px 0;font-size:12px;overflow-wrap:anywhere}.fec34-tile form{margin-top:12px}.fec34-tile form button{width:100%}.fec34-featured{grid-template-columns:repeat(4,minmax(0,1fr));max-width:960px}.fec34-featured .fec34-art{max-width:145px;margin:auto}.fec34-manage{display:grid;grid-template-columns:minmax(110px,210px) minmax(0,1fr);gap:20px;align-items:start;padding:12px 0}.fec34-manage .fec34-art{max-width:210px}.fec34-manage h3{margin-top:0}.fec34-prices{border:1px solid var(--line);border-radius:6px;padding:8px;margin:8px 0;background:#0e1622}.fec34-prices summary{cursor:pointer;font-size:12px}.fec34-quote{display:flex;align-items:start;gap:10px;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line);font-size:12px}.fec34-quote:last-child{border-bottom:0}.fec34-quote strong{white-space:nowrap;flex:none}.fec34-quote span{min-width:0;overflow-wrap:anywhere;text-align:right}.fec34-quote small{display:block;color:var(--muted);font-size:10px}.fec34-market-row{display:grid;grid-template-columns:80px minmax(0,1fr);gap:14px;padding:12px 0;border-bottom:1px solid var(--line)}.fec34-market-row h3{margin:0}.carditem>.fec34-art{width:100%;max-width:118px;align-self:start}.carditem>div{min-width:0}.carditem .fec34-favourite{color:#e2c47f}.fec34-filter{gap:16px}.fec34-filter>label:first-child{flex:1;min-width:160px}.fec34-filter .check{display:flex;align-items:center}.carditem.fec34-excluded{display:none!important}.fec34-quick form,.fec34-pagination form{margin:0}.fec34-quick button{min-height:34px}.fec34-pagination{justify-content:flex-end}.fec34-sectionhead a{flex:none}@media(max-width:1000px){.fec34-search{grid-template-columns:1fr 1fr}.fec34-gallery{grid-template-columns:repeat(auto-fill,minmax(min(100%,150px),1fr))}}@media(max-width:640px){.fec34-search{grid-template-columns:1fr}.fec34-featured{grid-template-columns:repeat(2,minmax(0,1fr))}.fec34-sectionhead{display:block}.fec34-sectionhead a{margin-top:8px}.fec34-manage{grid-template-columns:1fr}.fec34-manage .fec34-art{width:150px}.fec34-gallery{gap:8px}.fec34-tile{padding:8px!important}.fec34-gallery h3{font-size:14px}.fec34-market-row{grid-template-columns:66px minmax(0,1fr)}}@media(prefers-reduced-motion:reduce){.fec34-tile{transition:none}}


/* ==== ORIGINAL studio-v35.css ==== */
/* Collector Studio: restrained workspace, image-first tools, accessible interactions. */
body[data-workspace=member]{--sidebar:246px}.fec35-side-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.fec35-side-title .eyebrow{margin:0}.fec35-side-title button{min-height:28px;width:30px;padding:2px 7px;font-size:20px;line-height:1}.fec35-command{display:flex;align-items:center;gap:8px;font-weight:500}.fec35-command svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.6}.fec35-command kbd{font:10px system-ui;border:1px solid #435368;border-radius:3px;padding:2px 4px;color:var(--muted)}.fec35-vault-tools{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}.fec35-vault-tools>div:first-child{flex:1;min-width:170px}.fec35-vault-tools h2{margin:0 0 3px}.fec35-vault-tools p{margin:0}.fec35-vault-tools label{margin:0;min-width:0}.fec35-view{display:flex;gap:4px}.fec35-view button[aria-pressed=true]{background:#203b55;border-color:#5688ab;color:#e6f5ff}.fec35-vault-tools .check{align-self:center}.fec35-section{display:flex;justify-content:space-between;gap:12px;align-items:start}.fec35-section h3{margin:0 0 5px}.fec35-section p{max-width:75ch;font-size:13px;color:var(--muted)}.fec35-tag{font-size:11px;padding:3px 7px;border:1px solid var(--line);border-radius:4px;color:#afc8de}.fec35-owned{padding:16px;margin:12px 0 20px;border:1px solid var(--line);border-radius:8px;background:#0e1724}.fec35-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 18px}.fec35-photo-cell{min-width:0;padding:14px;border:1px solid var(--line);border-radius:6px}.fec35-photo-cell h4{margin:0 0 10px;font-size:14px}.fec35-photo-cell figure{margin:0 0 10px}.fec35-photo-cell figure img{display:block;width:100%;height:235px;object-fit:contain;background:#080e17;border-radius:4px}.fec35-photo-cell figcaption{font-size:11px;color:var(--muted);margin-top:5px}.fec35-placeholder{height:180px;display:grid;place-items:center;background:#0a111b;border:1px dashed #3c4c60;color:var(--muted);border-radius:6px;margin-bottom:12px;font-size:13px}.fec35-photo-cell input[type=file]{max-width:100%;font-size:12px}.fec35-photo-cell form{margin:8px 0 0}.fec35-owned-thumb figcaption{position:absolute;bottom:0;left:0;right:0;background:#090e18ed;color:#d4e8fa;font-size:10px;text-align:center;padding:3px}.fec35-match{color:#93cbe9;font-weight:500}.fec34-search{grid-template-columns:minmax(110px,1fr) minmax(140px,1.35fr) minmax(90px,.8fr) minmax(120px,1fr) auto}.fec35-excluded{display:none!important}.fec35-list .cardgrid{grid-template-columns:1fr}.fec35-list .carditem{display:grid;grid-template-columns:65px minmax(0,1fr);align-items:center;padding:10px 15px;gap:15px}.fec35-list .carditem>.fec34-art{width:65px;max-width:65px}.fec35-list .carditem h3{margin:4px 0}.fec35-list .carditem p{margin:3px 0}.fec35-dialog{background:#101a28;border:1px solid #40546b;border-radius:10px;color:#e4edf7;width:min(520px,calc(100vw - 28px));max-height:85dvh;padding:18px;box-shadow:0 20px 80px #0009;overflow:auto}.fec35-dialog[open]{animation:fec35-enter .16s ease-out}.fec35-dialog::backdrop{background:#030812c9}.fec35-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.fec35-dialog-head h2{margin:0;font-size:18px}.fec35-dialog-head button{min-height:32px;padding:4px 11px;font-size:19px}.fec35-tool-list{display:grid;gap:2px;margin:12px 0 0}.fec35-tool-list a{display:flex;justify-content:space-between;padding:10px 12px;border-radius:4px;color:#dbe6f0;text-decoration:none;border:1px solid transparent}.fec35-tool-list a:hover,.fec35-tool-list a:focus-visible,.fec35-tool-list a[aria-current=page]{background:#1b3045;border-color:#375977}.fec35-tool-list a[hidden]{display:none}.fec35-viewer{width:min(800px,calc(100vw - 28px))}.fec35-image-stage{height:min(55dvh,530px);overflow:auto;background:#080f19;border:1px solid var(--line);border-radius:5px;display:grid;place-items:center}.fec35-image-stage img{max-width:100%;max-height:100%;object-fit:contain;transform-origin:center;--fec35-scale:1;--fec35-angle:0deg;transform:rotate(var(--fec35-angle)) scale(var(--fec35-scale))}.fec35-image-stage img.fec35-z2{--fec35-scale:2}.fec35-image-stage img.fec35-r1{--fec35-angle:90deg}.fec35-image-stage img.fec35-r2{--fec35-angle:180deg}.fec35-image-stage img.fec35-r3{--fec35-angle:270deg}.fec35-preview-button{position:absolute;right:5px;bottom:5px;z-index:1;min-height:28px!important;padding:4px 7px!important;font-size:11px!important;background:#14243a!important;color:#e5f1ff;border:1px solid #58718e!important}.fec35-photo-cell figure{position:relative}.fec35-preview-button:hover{background:#285477!important}.fec35-viewer .actions{margin-top:12px}.fec35-side-title button:hover{color:#a9dcff}.fec35-dialog p{overflow-wrap:anywhere}.fec35-command:hover svg{transform:scale(1.08);transition:transform .16s}.fec35-vault-tools [hidden]{display:none!important}@keyframes fec35-enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:901px){body.fec35-compact{--sidebar:180px}.fec35-compact .side{padding-left:8px;padding-right:8px}.fec35-compact .fec33-nav a{font-size:12px;gap:7px;padding:8px}.fec35-compact .fec33-side-bottom{font-size:11px}.fec35-compact .fec33-nav-group h2{font-size:10px}.fec35-compact .fec33-header-context{display:none}.fec35-compact .fec35-side-title button{transform:rotate(180deg)}}
@media(max-width:1100px){.fec34-search{grid-template-columns:1fr 1fr}.fec35-command kbd{display:none}}@media(max-width:900px){.fec35-command span{display:none}.fec35-command{min-width:36px;justify-content:center}.fec35-photo-cell figure img{height:200px}}@media(max-width:600px){.fec35-photo-grid,.fec34-search{grid-template-columns:1fr}.fec35-owned{padding:10px}.fec35-photo-cell{padding:10px}.fec35-vault-tools{padding:12px;align-items:stretch}.fec35-vault-tools>label{flex:1 1 100%}.fec35-vault-tools .check{flex-basis:auto}.fec35-dialog{padding:13px}.fec35-list .carditem{grid-template-columns:56px minmax(0,1fr)}.fec35-list .carditem>.fec34-art{width:56px}.fec35-command{padding:6px!important}.fec35-section{display:block}.fec35-section .fec35-tag{margin-bottom:5px}}@media(prefers-reduced-motion:reduce){.fec35-dialog[open],.fec35-command svg{animation:none;transition:none;transform:none}}@media print{.fec35-vault-tools,.fec35-command,.fec35-dialog,.fec35-preview-button{display:none!important}.fec35-owned,.fec35-photo-cell{background:white!important;color:#111!important}}
.fec35-preview-button[hidden]{display:none!important}.fec35-coverage{display:flex;align-items:center;flex-wrap:wrap;gap:16px;border:1px solid var(--line);border-radius:8px;background:var(--panel);padding:16px}.fec35-coverage>div:first-child{flex:1 1 240px}.fec35-coverage h2{margin:0 0 4px}.fec35-coverage p{margin:0}.fec35-coverage>div:not(:first-child){flex:0 1 160px;display:grid;gap:4px}.fec35-coverage strong{font-size:20px;font-weight:600}.fec35-coverage span{font-size:12px;color:var(--muted)}@media(max-width:600px){.fec35-coverage{gap:12px}.fec35-coverage>div:not(:first-child){flex:1 1 120px}}


/* ==== ORIGINAL inventory-v365.css ==== */
/* Fair E Cards V3.65 — sober collector inventory, no ornamental over-animation */
.fec37-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 15px;padding:16px 18px;border:1px solid var(--line,#34495d);background:#101b28;border-radius:8px}.fec37-intro h2{margin:3px 0 4px;font-size:21px;letter-spacing:-.025em}.fec37-intro p{margin:0;max-width:74ch;font-size:13px;color:var(--muted,#9fb0c2)}.fec365-inline-form,.fec365-binder-edit{display:grid;grid-template-columns:minmax(140px,1fr) minmax(180px,1.4fr) auto;align-items:end;gap:12px}.fec365-inline-form>label,.fec365-binder-edit>label{min-width:0}.fec365-binder-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:11px;margin:15px 0 22px}.fec365-binder-tile{display:flex;flex-direction:column;gap:7px;text-decoration:none!important;padding:17px;border:1px solid #34495a;border-radius:9px;color:#e3eef8!important;background:#101a26;transition:border-color .17s,background .17s,transform .17s;min-width:0}.fec365-binder-tile:hover,.fec365-binder-tile:focus-visible{border-color:#6daed4;background:#162537;transform:translateY(-2px)}.fec365-binder-tile.selected{border-color:#76b7dc;background:#182e42}.fec365-binder-tile.archived{opacity:.62}.fec365-binder-emblem{display:grid;place-items:center;width:36px;height:42px;border:1px solid #3b7190;border-left:5px solid #4f9dc8;border-radius:4px;background:#15283a;font-size:21px;line-height:1;color:#87c8e9}.fec365-binder-tile strong{font-size:14px;overflow-wrap:anywhere}.fec365-binder-tile .micro{color:#a1b6c8}.fec365-sheet-title{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.fec365-sheet-title h2{margin:0 0 5px}.fec365-sheet-title p{margin:0}.fec365-pocket-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px;background:#0c1521;border:1px solid #30485e;border-radius:7px;margin-bottom:17px}.fec365-pocket{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:232px;padding:10px;border:1px solid #42617e;border-radius:6px;background:#15263a;min-width:0;overflow:hidden}.fec365-pocket.empty{border-style:dashed;background:#111d2b}.fec365-pocket-number{position:absolute;z-index:1;top:8px;left:9px;color:#a9c5d9;font-size:11px}.fec365-pocket-detail{width:100%;display:flex;flex-direction:column;align-items:center;text-decoration:none!important;gap:4px;color:#eaf1f8!important;min-width:0}.fec365-pocket-detail img{width:100%;max-width:108px;height:150px;object-fit:contain;border-radius:4px}.fec365-pocket-detail strong,.fec365-pocket-detail small{display:block;width:100%;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fec365-pocket-detail strong{font-size:12px}.fec365-pocket-detail small{font-size:10px;color:#a2b8c9}.fec365-pocket-empty-art{height:145px;display:grid;place-items:center;color:#66849b;font-size:11px;letter-spacing:3px}.fec365-add-pocket{text-align:center;padding:18px 8px;font-size:12px;color:#8ac9f0!important;text-decoration:none}.fec365-add-pocket:hover{text-decoration:underline}.fec365-binder-edit{grid-template-columns:minmax(100px,1fr) minmax(140px,1fr) auto auto;border-top:1px solid #33475a;padding-top:15px}.fec365-binder-edit .check{max-width:200px;font-size:12px}.fec365-copy-form .fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.fec365-copy-form .fields label{min-width:0}.fec365-copy-form>.actions{margin-top:12px}.fec365-copy-search{max-width:380px}.fec365-copy-list{display:flex;flex-direction:column;gap:0;margin-top:12px;border-top:1px solid var(--line,#34495d)}.fec365-copy-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--line,#34495d)}.fec365-copy-row>div:first-child{flex:1;min-width:0}.fec365-copy-row strong{font-size:14px}.fec365-copy-row small{color:#9eafc0}.fec365-copy-row .micro{margin:4px 0}.fec365-copy-row .actions{display:flex;align-items:center;gap:7px;flex-shrink:0}.fec365-copy-row .actions button,.fec365-copy-row .actions .linkbutton{min-height:35px;padding:7px 11px;font-size:12px}.fec365-copy-row[hidden]{display:none!important}.fec365-note{padding:11px 13px;border-left:3px solid #5796bd;background:#101d2b;color:#bfd1df;border-radius:3px;font-size:13px;margin:12px 0}.fec365-binder-edit button,.fec365-inline-form button{white-space:nowrap}
@media(max-width:850px){.fec365-binder-edit{grid-template-columns:repeat(2,minmax(0,1fr))}.fec365-inline-form{grid-template-columns:repeat(2,minmax(0,1fr))}.fec365-inline-form>button{grid-column:1/-1}.fec365-copy-form .fields{grid-template-columns:repeat(2,minmax(0,1fr))}.fec365-pocket{min-height:184px}.fec365-pocket-detail img{height:115px}}
@media(max-width:560px){.fec365-inline-form,.fec365-binder-edit,.fec365-copy-form .fields{grid-template-columns:1fr}.fec365-pocket-grid{padding:7px;gap:6px}.fec365-pocket{padding:6px;min-height:160px}.fec365-pocket-detail img{height:100px;max-width:78px}.fec365-pocket-detail strong{font-size:10px}.fec365-pocket-number{top:3px;left:5px;font-size:9px}.fec365-add-pocket{font-size:10px;padding:20px 3px}.fec365-copy-row{flex-direction:column;align-items:flex-start}.fec365-copy-row .actions{width:100%}.fec365-binder-list{grid-template-columns:repeat(2,minmax(0,1fr))}.fec365-binder-tile{padding:12px}}
@media(prefers-reduced-motion:reduce){.fec365-binder-tile{transition:none}.fec365-binder-tile:hover{transform:none}}


/* ==== ORIGINAL recognition-v37.css ==== */
/* FEC Scanner 3.7: functional card preparation and text recognition studio */
.fec37-studio{margin:16px 0 24px;border:1px solid #36536b;border-radius:9px;background:#101b29;padding:18px;box-shadow:none!important}.fec37-title{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}.fec37-title h2{margin:0 0 5px;font-size:20px}.fec37-title p{max-width:72ch;margin:0;color:#a8bed0;font-size:13px}.fec37-label{display:inline-flex;align-items:center;gap:6px;border:1px solid #42617a;padding:5px 9px;color:#a7d7f2;border-radius:5px;font-size:11px;font-weight:600;letter-spacing:.02em}.fec37-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.8fr);gap:17px;margin-top:17px}.fec37-columns>div{min-width:0}.fec37-stage{min-height:210px;display:grid;place-items:center;padding:12px;background:#0a121d;border:1px solid #30495c;border-radius:6px;overflow:hidden}.fec37-stage canvas{display:block;max-width:100%;max-height:500px;width:auto;height:auto;touch-action:none;cursor:crosshair}.fec37-controlrow{display:flex;flex-wrap:wrap;gap:8px;margin:11px 0}.fec37-controlrow button{font-size:12px;padding:9px 12px;min-height:38px}.fec37-help{font-size:12px;line-height:1.6;color:#a7b9c9;margin:7px 0 11px}.fec37-status{padding:10px 12px;min-height:40px;border:1px solid #355875;background:#0e2232;border-radius:5px;color:#cbe4f4;font-size:12px}.fec37-status.fec37-error{color:#ffc6c6;border-color:#9a6262;background:#392126}.fec37-out{margin-top:13px;border:1px solid #30495c;padding:11px;border-radius:6px}.fec37-out img{display:block;max-width:100%;max-height:250px;margin:0 auto 10px;border-radius:5px;object-fit:contain}.fec37-auth{border:1px solid #314d63;border-radius:6px;padding:12px;margin:12px 0;background:#0d1825}.fec37-auth label{font-weight:400;display:flex;gap:10px;align-items:start;font-size:12px;line-height:1.55;color:#b2c8d9}.fec37-auth input{flex-shrink:0;min-width:17px;min-height:17px;margin-top:2px}.fec37-ocr-result{border:1px solid #3b5e78;background:#111f2e;border-radius:7px;margin-top:14px;padding:14px}.fec37-ocr-result h3{margin:0 0 8px;font-size:15px}.fec37-ocr-result pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#0a1320;padding:10px;border-radius:4px;max-height:180px;overflow:auto;font-size:12px;color:#d2e3f0}.fec37-ocr-result p{font-size:13px;line-height:1.5}.fec37-quality{font-size:12px;color:#a9c1d2;margin:8px 0}.fec37-studio button{transition:background-color .16s,border-color .16s,transform .16s}.fec37-studio button:not(:disabled):hover{transform:translateY(-1px)}.fec37-studio button:focus-visible{outline:2px solid #8ed7ff;outline-offset:2px}.fec37-studio button:disabled{cursor:wait;opacity:.6}.fec37-source{margin:8px 0}.fec37-source input{max-width:100%;font-size:13px}.fec37-meta{color:#819bad;font-size:12px;margin-top:12px}
@media(max-width:880px){.fec37-columns{grid-template-columns:1fr}.fec37-stage{min-height:160px}.fec37-stage canvas{max-height:430px}}
@media(max-width:480px){.fec37-studio{padding:12px}.fec37-controlrow button{flex:1 1 auto}.fec37-title h2{font-size:18px}}
@media(prefers-reduced-motion:reduce){.fec37-studio button{transition:none}.fec37-studio button:not(:disabled):hover{transform:none}}


/* ==== V3.8 responsive/performance layer ==== */
/* SCANNER 3.8 / Layout, motion, responsiveness and accessibility. No external dependencies. */
:root{--fec38-header:68px;--fec38-ink:#0c131e;--fec38-line:#2e4357;--fec38-focus:#8cdbff;--fec38-mobile-nav:66px}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--fec38-header) + 12px);-webkit-text-size-adjust:100%}
body{overflow-x:clip;text-rendering:optimizeLegibility}
button,input,select,textarea{touch-action:manipulation}
img,video,canvas,svg{max-width:100%}
img{height:auto}
button,.linkbutton,summary,.side a,.bottom a{ -webkit-tap-highlight-color:transparent}
button:focus-visible,.linkbutton:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--fec38-focus)!important;outline-offset:3px!important}
.top{height:var(--fec38-header);min-height:var(--fec38-header);gap:12px;background:#0c1522;z-index:25}
.shell{min-height:calc(100dvh - var(--fec38-header))}
.side{height:calc(100dvh - var(--fec38-header));top:var(--fec38-header);overscroll-behavior:contain}
.main{min-height:calc(100dvh - var(--fec38-header));min-width:0;overflow:visible}
.main>*,.fec37-columns>*,.fec365-copy-row>div,.fec35-coverage>*,.fec34-gallery>*{min-width:0}
.main h1,.main h2,.main h3{overflow-wrap:break-word}
.fec33-footer{padding-bottom:24px}
.cardgrid,.fec34-gallery{align-items:stretch}
.carditem,.fec365-binder-tile,.fec34-gallery>div{overflow:hidden}
.carditem img,.fec34-reference,.fec35-owned-thumb img{object-fit:contain;aspect-ratio:3/4}
.fec34-reference,.fec34-art img{max-width:100%;height:auto}
.carditem,.fec34-gallery>div,.fec365-binder-tile{content-visibility:auto;contain-intrinsic-size:auto 260px}
.fec37-stage{min-width:0;isolation:isolate}
.fec37-stage canvas{max-width:100%;touch-action:none;user-select:none}
.fec37-columns{grid-template-columns:minmax(0,1fr) minmax(0,.88fr)}
.fec37-controlrow{align-items:stretch}
.fec37-controlrow>button{max-width:100%}
.fec365-pocket-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.fec365-pocket{min-width:0}
.fec365-pocket-detail img{aspect-ratio:3/4}
.fec38-table-scroll{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;border-radius:7px}
.fec38-table-scroll>table{min-width:540px;width:100%}
.fec38-table-scroll:focus-visible{outline:2px solid var(--fec38-focus);outline-offset:2px}
.fec38-file-meta{font-size:12px;line-height:1.45;color:#adc5d7;padding:7px 10px;margin:5px 0 9px;background:#112232;border-left:2px solid #438ec2;border-radius:3px;overflow-wrap:anywhere}
.fec38-file-meta[hidden]{display:none!important}
.fec38-offline{position:fixed;z-index:90;left:50%;top:calc(var(--fec38-header) + 8px);transform:translateX(-50%);max-width:min(calc(100vw - 28px),460px);border:1px solid #b5813b;background:#30261b;color:#fff0d7;box-shadow:0 7px 22px #0007;border-radius:8px;padding:10px 15px;text-align:center;font-size:13px}
.fec38-offline[hidden]{display:none!important}
.fec38-progress{position:fixed;z-index:89;top:0;left:0;right:0;height:2px;pointer-events:none;background:transparent}
.fec38-progress::after{content:"";display:block;width:25%;height:100%;background:#66b9ef;transform:translateX(-100%);animation:fec38-progress 1.15s ease-in-out infinite}
.fec38-progress[hidden]{display:none!important}
@keyframes fec38-progress{to{transform:translateX(450%)}}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  .side .fec31-icon,.bottom .fec31-icon,.fec33-header-alert svg,.smallbutton svg{transition:transform .14s ease,color .14s ease}
  .side a:hover .fec31-icon,.fec33-header-alert:hover svg,.smallbutton:hover svg{transform:translateY(-2px)}
  .bottom a:hover .fec31-icon{transform:translateY(-1px)}
}
@media(min-width:1250px){.main{padding-left:clamp(22px,2vw,36px);padding-right:clamp(22px,2vw,36px)}.main>article,.main>section,.main>.cardgrid,.main>.quickgrid,.main>.metrics{max-width:1780px}}
@media(min-width:1900px){.main{padding-right:max(34px,calc((100vw - 1880px)/2))}}
@media(max-width:1100px){
 .fec33-overview-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
 .main{padding-left:20px;padding-right:20px}
 .fec37-columns{grid-template-columns:minmax(0,1fr)}
 .cardgrid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
}
@media(max-width:900px){
 :root{--fec38-header:60px}
 .top{padding:0 14px;gap:8px}
 .brand img{max-width:138px;height:auto}
 .topright{gap:6px}
 .fec33-header-context{display:none}
 .topright .smallbutton{padding:7px 9px;min-height:40px}
 .main{width:100%;padding:17px 17px calc(var(--fec38-mobile-nav) + env(safe-area-inset-bottom) + 25px);min-height:calc(100dvh - var(--fec38-header))}
 .shell{width:100%;min-height:calc(100dvh - var(--fec38-header))}
 .side{display:none!important}
 .mobilemenu{display:block}
 .bottom{position:fixed;display:flex;align-items:stretch;justify-content:space-around;z-index:23;left:0;right:0;bottom:0;min-height:calc(var(--fec38-mobile-nav) + env(safe-area-inset-bottom));padding:3px 5px max(3px,env(safe-area-inset-bottom));background:#0e1826;border-top:1px solid #2c4258;box-shadow:0 -6px 26px #0004}
 .bottom a{flex:1;max-width:120px;min-width:0;min-height:50px;padding:6px 2px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;line-height:1.1}
 .bottom .fec31-icon{height:20px;width:20px;flex:none}
 .bottom a.scanbtn{border-radius:9px;transform:none;min-height:50px}
 .bottom a.active{color:#e8f5ff}
 .fec33-footer{padding-bottom:5px}
 .pagehead{align-items:flex-start;gap:10px;margin-bottom:14px}
 .pagehead h1{font-size:clamp(23px,4.5vw,29px)}
 .fec37-studio{margin-top:12px}
 .fec365-copy-form .fields{grid-template-columns:repeat(2,minmax(0,1fr))}
 .fec365-pocket{min-height:170px}
}
@media(max-width:650px){
 .top{padding-inline:11px}
 .brand img{max-width:124px;max-height:40px}
 .topright .pill,.topright .fec33-header-alert{display:none}
 .topright .smallbutton:not(.fec35-command){display:none}
 .fec35-command{display:flex!important}
 .fec35-command span,.fec35-command kbd{display:none}
 .mobilemenu summary{min-height:44px;min-width:44px;display:flex;align-items:center;justify-content:center;padding:7px!important}
 .mobilemenu summary svg{width:23px;height:23px}
 .mobilemenu .fec33-mobile-links{position:fixed!important;top:var(--fec38-header);left:8px;right:8px;bottom:calc(var(--fec38-mobile-nav) + env(safe-area-inset-bottom) + 6px);z-index:40;max-height:none!important;overflow:auto;overscroll-behavior:contain;background:#101b2a;border:1px solid #39536a;border-radius:8px;box-shadow:0 15px 30px #0009;padding:11px}
 .mobilemenu .fec33-mobile-links a{min-height:43px;font-size:14px;padding:11px 14px}
 .main{padding:15px 13px calc(var(--fec38-mobile-nav) + env(safe-area-inset-bottom) + 18px)}
 .pagehead{flex-direction:column;align-items:stretch}
 .fec33-page-actions,.gamebar{width:100%;max-width:100%;align-items:stretch}
 .gamebar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
 .gamebar label{width:auto;min-width:0}
 .gamebar select,.gamebar button{min-height:44px;width:100%}
 .fec33-scan-action{width:100%;min-height:44px;text-align:center}
 .main .metrics,.fec33-overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .quickgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hero.dashboard{grid-template-columns:minmax(0,1fr)}
 .dashboard .viz{border-left:0;border-top:1px solid var(--line);padding:12px 0 0}
 .fec37-studio{padding:13px}
 .fec37-stage{padding:5px;min-height:150px}
 .fec37-stage canvas{max-height:clamp(260px,58vh,440px)}
 .fec37-controlrow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .fec37-controlrow button{white-space:normal;min-width:0;min-height:44px;padding:10px 8px}
 .fec37-source input{width:100%;font-size:16px}
 .fec365-binder-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .fec365-pocket-grid{padding:7px;gap:5px}
 .fec365-pocket{min-height:145px;padding:4px}
 .fec365-pocket-detail img{max-width:76px;height:auto;max-height:100px}
 .fec365-pocket-detail strong{font-size:11px}
 .fec365-copy-form .fields,.fec365-inline-form,.fec365-binder-edit{grid-template-columns:1fr}
 .fec35-dialog{max-width:calc(100vw - 18px);max-height:calc(100dvh - env(safe-area-inset-bottom) - 24px);overflow:auto}
 .fec35-image-stage{max-height:52dvh;overflow:auto}
 .fields,.split{grid-template-columns:minmax(0,1fr)}
 .fec34-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tabs{max-width:100%;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scroll-snap-type:x proximity;padding-bottom:5px}
 .tabs>a{flex:0 0 auto;white-space:nowrap;scroll-snap-align:start;min-height:44px;display:inline-flex;align-items:center}
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px}
 .fec33-footer-main,.fec33-footer-meta{flex-direction:column;gap:9px}
}
@media(max-width:370px){
 .main{padding-inline:10px}
 .brand img{max-width:110px}
 .topright .smallbutton{padding:5px 7px}
 .quickgrid{grid-template-columns:1fr}
 .fec365-binder-tile{padding:9px}
 .fec365-pocket-detail img{max-width:62px}
 .fec365-pocket{min-height:135px}
 .fec365-add-pocket{font-size:10px;line-height:1.25}
 .bottom a{font-size:10px}
}
@media(hover:none){.quick:hover,.carditem:hover,.fec365-binder-tile:hover{transform:none;box-shadow:none}.side a:hover .fec31-icon{transform:none}}
body.fec38-save-data .fec-energy,body.fec38-save-data .fec-intro-energy{display:none!important}
@media(prefers-reduced-data:reduce){.fec-energy{display:none}.fec-intro-energy{display:none}}
@media(prefers-contrast:more){:root{--line:#7795af;--muted:#c0d4e6}.quick,.carditem,article{border-color:#738da7}.side a.active,.bottom a.active{outline:2px solid #c2ebff}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.fec38-progress::after,.fec31-icon,.fec-energy,.fec-intro-energy{animation:none!important}.side a,.quick,.carditem,.fec365-binder-tile,button,.linkbutton{transition:none!important;transform:none!important}}
@media print{.fec38-offline,.fec38-progress,.mobilemenu{display:none!important}.main{overflow:visible!important}article,.carditem,.fec365-pocket{break-inside:avoid}html{scroll-behavior:auto}}


/* FEC Scanner V4.0 | scoped commercial foundation and collection insights */
:root{--fec40-surface:#111c2c;--fec40-subtle:#172538;--fec40-border:#31445a;--fec40-accent:#58b7eb}
.fec40-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:8px 0 22px}
.fec40-heading h2{margin:5px 0 3px;font-size:clamp(1.45rem,2vw,2rem);font-weight:700;letter-spacing:-.03em}
.fec40-heading p{margin:0;max-width:75ch;color:var(--muted)}
.fec40-eyebrow{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:#91cfe9}
.fec40-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.fec40-kpis .fec40-kpi{background:var(--fec40-surface);border:1px solid var(--fec40-border);border-radius:10px;padding:18px 18px 16px;min-width:0}
.fec40-kpi span{display:block;font-size:.79rem;color:var(--muted);margin-bottom:10px}
.fec40-kpi strong{font-size:clamp(1.2rem,1.7vw,1.8rem);font-variant-numeric:tabular-nums;line-height:1.15;overflow-wrap:anywhere;color:var(--text)}
.fec40-kpi small{display:block;color:var(--muted);font-size:.72rem;margin-top:10px}
.fec40-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:16px;align-items:start}
.fec40-section{background:var(--fec40-surface);border:1px solid var(--fec40-border);border-radius:10px;padding:20px;margin:0 0 16px;min-width:0}
.fec40-section h3{font-size:1.07rem;font-weight:700;margin:0 0 8px}
.fec40-section .micro{color:var(--muted)}
.fec40-facts{list-style:none;margin:0;padding:0}.fec40-facts li{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #29384c;padding:11px 0;font-size:.9rem}.fec40-facts li:last-child{border-bottom:0}.fec40-facts strong{font-variant-numeric:tabular-nums}
.fec40-meter{height:7px;background:#243447;border-radius:999px;overflow:hidden;margin-top:6px}.fec40-meter>span{height:100%;display:block;background:#51a8db;border-radius:999px}
.fec40-history{display:grid;gap:10px;max-height:360px;overflow:auto}.fec40-entry{display:grid;grid-template-columns:94px 1fr 105px;align-items:center;gap:12px;font-size:.84rem}.fec40-entry .fec40-meter{margin:0}.fec40-entry .fec40-meter>span{background:#4da8d5}.fec40-entry strong{text-align:right;font-variant-numeric:tabular-nums;font-size:.84rem}
.fec40-steps{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 18px}.fec40-step{border:1px solid var(--fec40-border);border-radius:999px;padding:6px 12px;font-size:.8rem;color:var(--muted)}.fec40-step.current{color:#f2f8ff;background:#203d55;border-color:#5bb6e9}
.fec40-tablewrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border:1px solid var(--fec40-border);border-radius:9px}
.fec40-table{border-collapse:collapse;width:100%;min-width:780px;font-size:.82rem}.fec40-table th{text-align:left;background:#19293c;white-space:nowrap;font-weight:650}.fec40-table th,.fec40-table td{padding:10px 12px;border-bottom:1px solid #283a4e;vertical-align:top}.fec40-table td{overflow-wrap:anywhere;max-width:240px}.fec40-table tr:last-child td{border-bottom:0}
.fec40-form{display:grid;gap:16px}.fec40-form input[type=file]{width:100%;max-width:100%;min-width:0}.fec40-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.fec40-muted{color:var(--muted)}
.fec40-badges{display:flex;gap:8px;flex-wrap:wrap}.fec40-tag{border:1px solid #3d5b72;padding:4px 9px;border-radius:6px;font-size:.74rem;white-space:nowrap;color:#bbd8ec}
.fec40-empty{border:1px dashed #476178;padding:20px;border-radius:10px;color:var(--muted)}
.fec40-section .fec40-actions button,.fec40-section .fec40-actions .linkbutton{min-height:42px}
.fec40-import-warning{border-left:3px solid #e2ab60;padding:10px 14px;background:#292435;color:#f4dfc9;font-size:.87rem}
@media(max-width:1200px){.fec40-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.fec40-grid{grid-template-columns:1fr}}
@media(max-width:600px){.fec40-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.fec40-kpis .fec40-kpi{padding:13px}.fec40-section{padding:15px}.fec40-heading{align-items:flex-start}.fec40-entry{grid-template-columns:76px 1fr 78px;gap:7px;font-size:.72rem}.fec40-entry strong{font-size:.72rem}}
@media(max-width:350px){.fec40-kpis{grid-template-columns:1fr}}
@media(prefers-reduced-motion:no-preference){.fec40-kpis .fec40-kpi{transition:border-color .2s ease,transform .2s ease}.fec40-kpis .fec40-kpi:hover{border-color:#5a8cac;transform:translateY(-2px)}}

.fec40-trend{width:100%;height:9px;accent-color:#4da8d5}.fec40-confirm-form{margin-top:18px}.fec40-cancel-form{margin-top:8px}


/* ==== FEC V4.1 Professional Workspace Shell ==== */

:root{--fec41-header:74px;--fec41-side:#0d1623;--fec41-panel:#121f2d;--fec41-line:#273d51;--fec41-blue:#69bffa;--fec41-blue-strong:#238ad4;--fec41-faint:#9fb3c7;--fec38-header:var(--fec41-header)}
html{scroll-padding-top:calc(var(--fec41-header) + 18px)}
body[data-workspace="member"]{--sidebar:258px;background:#0b1420}
.top.fec41-top{height:var(--fec41-header);min-height:var(--fec41-header);padding:0 clamp(13px,1.4vw,26px);display:flex;gap:20px;align-items:center;border-bottom:1px solid var(--fec41-line);background:#0c1624;position:sticky;top:0;z-index:80;box-shadow:none;overflow:visible}
.fec41-brand{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:0;flex:none;padding:5px 0;text-decoration:none;border:0!important;background:transparent!important;min-width:152px;align-self:stretch}
.fec41-brand img{width:150px!important;height:48px!important;max-height:48px;object-fit:contain;object-position:center}
.fec41-brand small{letter-spacing:.12em;font-size:9px;font-weight:650;color:#85b3d3;margin-top:-3px;line-height:1.1}
.fec41-top-context{display:flex;align-items:center;gap:12px;min-width:0;font-size:12px;color:#94a9be;margin-right:auto;white-space:nowrap}
.fec41-top-context strong{color:#ebf4ff;font-weight:600;overflow:hidden;text-overflow:ellipsis}
.fec41-top-sep{color:#547089}
.fec41-top-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex:none}
.fec41-currency{padding:5px 7px;color:#a8bccd;letter-spacing:.04em;font:600 10px/1.3 system-ui,sans-serif}
.fec41-top-actions .smallbutton,.fec41-top-scan,.fec41-popover-toggle,.fec41-mobilemenu>summary{height:38px;min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:0 12px!important;border:1px solid #354b60!important;border-radius:7px!important;color:#dce8f5!important;background:#162538!important;font-size:12px!important;line-height:1.25;box-shadow:none!important;font-weight:550;text-decoration:none;cursor:pointer;white-space:nowrap}
.fec41-top-actions svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.fec41-top-actions .fec41-top-scan{border-color:#3179ae!important;background:#12568d!important;color:#f6fbff!important}
.fec41-top-actions :is(a,button,summary):hover{border-color:#6697bd!important;background:#213850!important;transform:none;box-shadow:none!important}
.fec41-top-actions :is(a,button,summary):focus-visible{outline:2px solid #97d8ff!important;outline-offset:3px}
.fec41-popover{position:relative;min-width:0}
.fec41-popover summary{list-style:none}
.fec41-popover summary::-webkit-details-marker{display:none}
.fec41-popover .fec41-down{width:13px;height:13px;transition:transform .18s ease}
.fec41-popover[open] .fec41-down{transform:rotate(180deg)}
.fec41-popover[open] .fec41-popover-toggle{border-color:#5f91b8!important;background:#203951!important}
.fec41-popover-panel{position:absolute;top:calc(100% + 11px);right:0;width:294px;max-width:calc(100vw - 20px);padding:8px;background:#101c2b;border:1px solid #38536c;border-radius:11px;box-shadow:0 20px 40px #0008;z-index:101}
.fec41-popover-title{padding:11px 12px 13px;border-bottom:1px solid #2e4357;display:grid;gap:4px;margin-bottom:5px}
.fec41-popover-title strong{font:650 14px/1.2 system-ui,sans-serif;color:#ebf5ff}
.fec41-popover-title small{font-size:11px;color:#9eb5c9}
.fec41-popover-panel>a{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:11px 12px;color:#edf5fe!important;text-decoration:none;border-radius:7px;font-size:13px;font-weight:600}
.fec41-popover-panel>a span{font-size:11px;font-weight:400;color:#a6bdd0}
.fec41-popover-panel>a:hover,.fec41-popover-panel>a:focus-visible{background:#21344a}
.fec41-popover-note{margin:8px 10px 6px;color:#adc0d3;font-size:11px;line-height:1.45}
.fec41-logout-form{margin:5px 0 0;border-top:1px solid #2e4357;padding:7px 3px 3px}
.fec41-signout{width:100%;min-height:35px;text-align:left;padding:8px 10px!important;background:transparent!important;color:#f6c1c7!important;border:0!important;box-shadow:none!important;font-size:12px!important;font-weight:600}
.fec41-signout:hover{background:#482c38!important}
.fec41-shell{min-height:calc(100dvh - var(--fec41-header))}
.fec41-side{background:var(--fec41-side);border-right:1px solid var(--fec41-line);height:calc(100dvh - var(--fec41-header));top:var(--fec41-header);padding:15px 12px 15px;display:flex;flex-direction:column;gap:0;scrollbar-width:thin;scrollbar-color:#49647d transparent;z-index:35}
.fec41-side-head{padding:0 5px 10px!important;flex:none}
.fec41-side-head .fec35-side-title{margin-bottom:11px}
.fec41-side-head .eyebrow{color:#a6cbe3;font-weight:700;letter-spacing:.09em;font-size:10px}
.fec41-side-collapse{border:1px solid #38536a!important;border-radius:6px!important;background:#17283b!important;color:#c6e8ff!important;min-width:30px;width:30px;height:29px!important;line-height:1!important;font-size:20px!important;padding:0!important}
.fec41-side .fec32-nav-search input{width:100%;min-height:37px!important;border:1px solid #35495c;border-radius:7px;background:#0b1726;color:#ecf6ff;font-size:12px!important;padding:8px 10px}
.fec41-side-quick{display:grid;grid-template-columns:1fr auto;gap:7px;padding:0 5px 16px;flex:none}
.fec41-side-quick a{min-height:36px;display:flex;align-items:center;justify-content:center;border-radius:6px;border:1px solid #37516b;font-size:12px;font-weight:650;text-decoration:none!important;padding:7px 10px;white-space:nowrap}
.fec41-side-quick .fec41-quick-primary{background:#175a94;color:#fff;border-color:#337cb4}
.fec41-side-quick .fec41-quick-secondary{background:#1a2b3d;color:#c6dfef}
.fec41-side-quick a:hover{filter:brightness(1.15);transform:none}
.fec41-nav{min-height:0;flex:1 1 auto;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#3c5a72 transparent;padding-right:2px}
.fec41-nav-group{display:block;margin:0 0 5px!important;padding:0;border:0!important;background:transparent!important}
.fec41-nav-group>summary{list-style:none;display:flex;align-items:center;gap:8px;min-height:35px;padding:8px 10px;margin:0 0 2px;border-radius:6px;color:#a9bed1;font:650 10px/1.3 system-ui,sans-serif;letter-spacing:.075em;text-transform:uppercase;cursor:pointer;user-select:none}
.fec41-nav-group>summary::-webkit-details-marker{display:none}
.fec41-nav-group>summary:hover{background:#182a3d;color:#e4f5ff}
.fec41-group-label{flex:1;min-width:0}
.fec41-group-total{font-weight:600;letter-spacing:0;color:#8fa9c2;background:#17293a;border:1px solid #2b445c;border-radius:5px;padding:1px 5px}
.fec41-nav-group>summary svg{width:14px;height:14px;stroke:#a7c6df;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none;transition:transform .2s ease}
.fec41-nav-group[open]>summary svg{transform:rotate(180deg)}
.fec41-group-items{padding:2px 0 8px;display:grid;gap:3px}
.fec41-group-items a{position:relative;display:flex;align-items:center;gap:10px;min-height:38px!important;padding:9px 12px!important;color:#bad0e4!important;border-radius:7px!important;font-size:12px!important;font-weight:500!important;line-height:1.3;text-decoration:none;border:1px solid transparent!important;background:transparent!important;transition:background .18s,border-color .18s,color .18s}
.fec41-group-items a svg{width:18px;height:18px;flex:none;stroke:#87b5d5!important;stroke-width:1.65;fill:none;transition:transform .25s ease,stroke .25s ease;transform-origin:center;backface-visibility:visible}
.fec41-group-items a:hover{background:#172a3e!important;color:#f5fbff!important;border-color:#294962!important}
.fec41-group-items a.active,.fec41-group-items a[aria-current="page"]{background:#1b354d!important;color:#fff!important;border-color:#37638a!important;box-shadow:inset 3px 0 0 #39b6fa!important;font-weight:650!important}
.fec41-group-items a.active svg{stroke:#76ccff!important}
.fec41-active-mark{margin-left:auto;width:5px;height:5px;border-radius:50%;background:#5dccff;box-shadow:0 0 7px #4abfff}
.fec41-nav-label{min-width:0;overflow:hidden;text-overflow:ellipsis}
.fec41-side-bottom{flex:none;margin-top:10px;padding:13px 6px 4px;border-top:1px solid #2b4156;display:grid;gap:3px}
.fec41-side-bottom>strong{font:700 10px/1.2 system-ui;color:#a9cce8;letter-spacing:.09em;padding:2px 7px}
.fec41-side-bottom a{padding:7px 8px;min-height:31px;color:#bfd8ef;font-size:12px;display:flex;align-items:center;justify-content:space-between;text-decoration:none;border-radius:5px}
.fec41-side-bottom a:hover{background:#1c2f43}
.fec41-side-bottom>span{font-size:10px;color:#899daf;padding:6px 7px 1px}
/* 4.1 page title and contextual navigation used on all 18 modules */
.main{min-width:0!important;padding-top:clamp(15px,1.5vw,24px)}
.fec41-pagehead{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;flex-wrap:wrap;margin:0 0 21px!important;padding:2px 0 17px;border-bottom:1px solid #283d50;position:relative;background:transparent}
.fec41-page-title{min-width:0;flex:1 1 350px}
.fec41-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:#91a8bd;font-size:11px;margin:0 0 11px;line-height:1.4}
.fec41-breadcrumb a{color:#a6c7e1;text-decoration:none}
.fec41-breadcrumb strong{color:#edf8ff;font-weight:650}
.fec41-page-title-line{display:flex;flex-wrap:wrap;align-items:center;gap:13px}
.fec41-page-title-line h1{margin:0!important;font-size:clamp(26px,2.1vw,34px)!important;line-height:1.1;letter-spacing:-.03em;font-weight:650}
.fec41-page-context{border:1px solid #2f526b;background:#162838;color:#afcfdf;border-radius:5px;padding:5px 9px;font-size:11px;font-weight:600}
.fec41-page-description{max-width:72ch;margin:10px 0 10px!important;color:#a8bfd2;font-size:13px;line-height:1.55}
.fec41-page-related{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}
.fec41-page-related a{border:1px solid #2e475f;background:#142333;border-radius:5px;color:#c9dff2;padding:6px 9px;text-decoration:none;font-size:11px;font-weight:600;display:inline-flex;align-items:center;gap:8px}
.fec41-page-related a span{font-size:12px;color:#8ad3ff;transition:transform .18s ease}
.fec41-page-related a:hover{background:#1c3448;border-color:#537fa2}
.fec41-page-related a:hover span{transform:translate(2px,-2px)}
.fec41-page-actions{flex:0 1 370px;align-self:flex-start;display:flex;justify-content:flex-end;gap:8px;align-items:flex-end;flex-wrap:wrap}
.fec41-page-actions .gamebar{display:flex;align-items:flex-end;gap:8px;min-width:0}
.fec41-page-actions .gamebar label{font-size:11px;margin:0!important}
.fec41-page-actions .gamebar select{min-width:145px;max-width:210px;min-height:37px!important;background:#111d2b;border:1px solid #39526a;color:#e5f3ff}
.fec41-page-actions .gamebar button,.fec41-page-actions .linkbutton{min-height:37px!important;padding:8px 13px!important;font-size:12px!important;border-radius:6px!important;white-space:nowrap}
/* Structured footer with clear destination links, not artificial metrics. */
.fec41-footer{margin-top:46px!important;padding:25px 0 20px!important;border-top:1px solid #2e4256;color:#aebed0;background:transparent!important}
.fec41-footer-top{display:grid;grid-template-columns:minmax(180px,1.65fr) repeat(3,minmax(120px,1fr));gap:25px;align-items:start}
.fec41-footer-brand img{width:133px;height:auto;max-height:42px;object-fit:contain;object-position:left center;margin:0 0 8px}
.fec41-footer-brand strong{display:block;color:#e0f0fb;font-size:13px;font-weight:650}
.fec41-footer-brand p{max-width:235px;margin:6px 0 0;font-size:12px;color:#98acbf;line-height:1.5}
.fec41-footer-links{display:grid!important;align-content:start!important;align-items:start!important;gap:10px!important}
.fec41-footer-links strong{font-size:11px!important;font-weight:700!important;letter-spacing:.07em;color:#b6d9ef;text-transform:uppercase}
.fec41-footer-links a{display:block;color:#b9cddf!important;text-decoration:none!important;font-size:12px;line-height:1.4}
.fec41-footer-links a:hover{color:#fff!important;text-decoration:underline!important}
.fec41-footer-bottom{display:flex;gap:18px;justify-content:space-between;align-items:center;flex-wrap:wrap;border-top:1px solid #253a4d;margin-top:25px;padding-top:14px;font-size:11px;color:#95abbc}
.fec41-footer-bottom a{color:#bcdcf1}
.fec41-mobilemenu,.fec41-mobile-scrim{display:none}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 .fec41-group-items a:hover svg,.fec41-group-items a:focus-visible svg{transform:rotateY(180deg);stroke:#9addff!important}
 .fec41-side-quick a:hover{box-shadow:0 2px 12px #195d8e36}
 .fec41-popover-toggle svg:first-child{transition:transform .22s ease}
 .fec41-popover-toggle:hover svg:first-child{transform:rotateY(180deg)}
}
@media(min-width:901px){body.fec35-compact{--sidebar:196px}.fec35-compact .fec41-side{padding-left:8px;padding-right:8px}.fec35-compact .fec41-group-items a{padding:9px!important}.fec35-compact .fec41-side-quick{grid-template-columns:1fr}.fec35-compact .fec41-group-total{display:none}.fec35-compact .fec41-group-items a{font-size:11px!important}}
@media(max-width:1270px){.fec41-top-context>span:first-child{display:none}.fec41-page-actions{flex-basis:320px}.fec41-top-scan span{display:none}.fec41-footer-top{grid-template-columns:1.4fr 1fr 1fr;gap:18px}.fec41-footer-links:last-child{grid-column:2/-1}}
@media(max-width:900px){.top.fec41-top{height:66px;min-height:66px;--fec41-header:66px;padding:0 12px;gap:10px}.fec41-brand{min-width:120px}.fec41-brand img{width:128px!important;height:39px!important}.fec41-brand small{font-size:8px}.fec41-top-context{display:none}.fec41-currency{display:none}.fec41-top-actions{gap:6px}.fec41-top-actions .fec41-popover-toggle{padding:0 9px!important}.fec41-top-actions .fec41-popover-toggle>span,.fec41-popover .fec41-down{display:none}.fec41-top-scan{display:none!important}.fec41-top-actions .fec35-command{padding:0 9px!important}.fec41-mobilemenu{display:block;position:static;z-index:115}.fec41-mobilemenu>summary{list-style:none;padding:0 11px!important;height:38px;border-radius:7px}.fec41-mobilemenu>summary::-webkit-details-marker{display:none}.fec41-mobilemenu>summary svg{width:18px;height:18px}.fec41-mobilemenu>summary span{display:none}.fec41-mobile-scrim:not([hidden]){display:block;position:fixed;z-index:105;inset:66px 0 0;background:#000b;backdrop-filter:blur(2px)}.fec41-mobile-panel{position:fixed;z-index:116;top:66px;right:0;bottom:0;width:min(360px,92vw);max-height:calc(100dvh - 66px);overflow-y:auto;overscroll-behavior:contain;background:#101d2d;border-left:1px solid #37536c;box-shadow:-16px 0 35px #0008;padding:16px 16px 105px;display:flex;flex-direction:column;gap:14px}.fec41-mobile-head{display:flex;align-items:center;justify-content:space-between;color:#e8f4ff;padding-bottom:12px;border-bottom:1px solid #344c64}.fec41-mobile-head button{min-width:36px;height:36px;font-size:26px!important;line-height:1;color:#e6f4ff;background:#1a2e43;border:1px solid #46617a;border-radius:5px}.fec41-mobile-panel .fec33-mobile-links{display:grid;gap:15px;position:static;inset:auto;width:auto;max-height:none;padding:0!important;background:transparent;border:0;box-shadow:none;overflow:visible}.fec41-mobile-group{display:grid;gap:3px}.fec41-mobile-group strong{font-size:10px;letter-spacing:.09em;text-transform:uppercase;color:#9ebed7;margin:4px 0}.fec41-mobile-group a{display:flex;min-height:40px;align-items:center;border-radius:6px;padding:10px 11px;color:#d4e8f7;background:transparent;font-size:13px;text-decoration:none;gap:9px}.fec41-mobile-group a svg{width:18px;height:18px;stroke:#81b4d9;fill:none}.fec41-mobile-group a.active{border:1px solid #3b6d91;background:#203d55;color:#fff}.fec41-mobile-group a:hover{background:#20344c}.fec41-pagehead{padding:2px 0 15px}.fec41-footer-top{grid-template-columns:repeat(3,1fr)}.fec41-footer-brand{grid-column:1/-1}.fec41-footer-links:last-child{grid-column:auto}.fec41-footer{padding-bottom:100px!important}}
@media(max-width:650px){.top.fec41-top{padding:0 9px}.fec41-brand{min-width:108px}.fec41-brand img{width:113px!important;height:38px!important}.fec41-brand small{letter-spacing:.06em}.fec41-top-actions .fec35-command{min-width:36px!important}.fec41-top-actions .fec35-command span,.fec41-top-actions .fec35-command kbd{display:none}.fec41-top-actions .fec35-command svg{display:block!important}.fec41-top-actions .fec41-popover-toggle{width:36px;min-width:36px;padding:0!important}.fec41-popover-panel{right:-42px;width:min(285px,calc(100vw - 20px))}.fec41-popover.fec41-account .fec41-popover-panel{right:-14px}.fec41-pagehead{display:block}.fec41-page-title-line{gap:9px}.fec41-page-title-line h1{font-size:26px!important}.fec41-page-context{font-size:10px}.fec41-page-description{font-size:12px}.fec41-page-actions{margin-top:15px;justify-content:flex-start}.fec41-page-actions .gamebar{width:100%;flex:1}.fec41-page-actions .gamebar label{flex:1;min-width:0}.fec41-page-actions .gamebar select{width:100%;min-width:0;max-width:none}.fec41-page-actions .linkbutton{flex:1 0 auto;text-align:center}.fec41-footer-top{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px}.fec41-footer-brand{grid-column:1/-1}.fec41-footer-links:last-child{grid-column:1/-1}.fec41-footer-bottom{display:grid;gap:10px}.fec41-footer{margin-top:25px!important}}
@media(max-width:370px){.fec41-brand img{width:98px!important}.fec41-brand{min-width:96px}.fec41-top-actions{gap:4px}.fec41-top-actions .fec35-command{padding:0 6px!important}.fec41-top-actions .fec41-popover-toggle,.fec41-mobilemenu>summary{width:33px;min-width:33px;padding:0!important}.fec41-page-related{gap:5px}.fec41-page-related a{font-size:10px}}
@media(prefers-reduced-motion:reduce){.fec41-group-items a svg,.fec41-nav-group summary svg,.fec41-popover .fec41-down,.fec41-page-related a span{transition:none!important;transform:none!important}}
@media print{.fec41-top,.fec41-side,.fec41-page-related,.fec41-page-actions,.fec41-mobile-scrim,.fec41-mobilemenu,.fec41-footer{display:none!important}.fec41-pagehead{margin-bottom:12px!important}.fec41-page-title-line h1{color:#111!important}.fec41-page-description{color:#333!important}}

/* V4.1 mobile drawer stacking fix: header must sit above scrim and nav must remain in the drawer. */
@media(max-width:900px){.fec41-mobile-scrim:not([hidden]){z-index:79}.fec41-mobile-panel nav.fec33-mobile-links{position:static!important;inset:auto!important;width:100%!important;max-height:none!important;display:grid!important;overflow:visible!important;box-shadow:none!important;padding:0!important}}

.fec41-page-icon{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;background:#172d42;border:1px solid #345b79;border-radius:8px;flex:none}.fec41-page-icon svg{width:22px;height:22px;fill:none;stroke:#79cdff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}@media(max-width:650px){.fec41-page-icon{width:33px;height:33px}.fec41-page-icon svg{width:19px;height:19px}}@media(hover:hover) and (prefers-reduced-motion:no-preference){.fec41-page-icon:hover svg{transform:rotateY(180deg);transition:transform .35s ease}}

/* === assets/scanner-v42.css === */
/* Fair E Cards Scanner V4.2 — functional camera and workspace refinement.
 * Scoped after v4.1; no external fonts/assets; reduced-motion aware.
 */
:root{--fec42-line:#2d4053;--fec42-muted:#a9bdcf;--fec42-cyan:#6fc9f1;--fec42-surface:#101b29}
.main:has(.fec42-studio-layout){width:100%;max-width:none;min-width:0}
.fec42-studio-layout{display:grid!important;grid-template-columns:minmax(0,1.55fr) minmax(315px,.82fr)!important;align-items:start;gap:18px!important;width:100%;max-width:none!important;margin-bottom:20px}
.fec42-studio-layout>article{width:100%;max-width:none;min-width:0;margin:0;padding:18px;background:#101a28;border:1px solid #2c4256;border-radius:10px;overflow:visible;box-shadow:none}
.fec42-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;min-width:0;margin-bottom:15px}
.fec42-panel-head h2{font-size:20px;letter-spacing:-.025em;line-height:1.18;color:#f0f6fd;margin:3px 0 6px;font-weight:650}
.fec42-panel-head p{font-size:12px;color:#a7b8c7;margin:0;line-height:1.5;max-width:58ch}
.fec42-kicker{color:#83c8eb;font:700 10px/1.3 system-ui,sans-serif;letter-spacing:.11em}
.fec42-camera-state{display:inline-flex;gap:8px;align-items:center;white-space:nowrap;color:#a8bac8;background:#162332;border:1px solid #30485c;border-radius:6px;padding:7px 10px;font-size:11px;font-weight:650}
.fec42-led{width:7px;height:7px;border-radius:50%;background:#8899a7;flex:none}
.fec42-camera-state[data-state="live"]{color:#c4e9d8;border-color:#3b655c;background:#152a28}
.fec42-camera-state[data-state="live"] .fec42-led{background:#69c8a5;box-shadow:0 0 0 3px #69c8a522}
.fec42-camera-state[data-state="error"]{color:#ffd0ca;border-color:#694747;background:#2a2024}
.fec42-camera-state[data-state="error"] .fec42-led{background:#e79791}
.fec42-camera{--fec42-ratio:16 / 9;position:relative;display:block!important;aspect-ratio:var(--fec42-ratio)!important;width:100%!important;max-width:100%!important;min-height:0;max-height:min(68vh,720px)!important;overflow:hidden!important;border:1px solid #344d62!important;border-radius:8px!important;background:#050a10!important;isolation:isolate;margin:0!important}
.fec42-camera video{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain!important;background:#050a10;transform:none}
.fec42-camera[data-preview-mode="fill"] video{object-fit:cover!important}
.fec42-camera .frame{display:block;position:absolute;top:50%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);width:min(31%,250px);height:min(73%,440px);max-height:73%;aspect-ratio:63 / 88;border:1px solid #7dc9ef!important;border-radius:9px!important;pointer-events:none;box-shadow:0 0 0 1px #07131f33!important;opacity:.92;z-index:2;transition:opacity .18s ease}
.fec42-camera.fec42-hide-guide .frame{opacity:0}
.fec42-camera .fec42-corner{position:absolute;display:block;width:22px;height:22px;border:3px solid #a0e3ff}
.fec42-camera .fec42-tl{left:-2px;top:-2px;border-right:0;border-bottom:0;border-top-left-radius:8px}
.fec42-camera .fec42-tr{right:-2px;top:-2px;border-left:0;border-bottom:0;border-top-right-radius:8px}
.fec42-camera .fec42-bl{left:-2px;bottom:-2px;border-right:0;border-top:0;border-bottom-left-radius:8px}
.fec42-camera .fec42-br{right:-2px;bottom:-2px;border-left:0;border-top:0;border-bottom-right-radius:8px}
.fec42-stage-top{position:absolute;top:0;left:0;right:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 13px;background:linear-gradient(180deg,#040a11d9,transparent);pointer-events:none}
.fec42-source-tag,.fec42-video-size{font-size:11px;font-weight:650;color:#e5f4ff;text-shadow:0 1px 2px #000a}
.fec42-video-size{font-variant-numeric:tabular-nums;color:#bed4e6}
.fec42-camera p#cameraHint{position:absolute;bottom:0;left:0;right:0;z-index:3;background:linear-gradient(0deg,#03070de8,#03070d9c);padding:13px 16px;margin:0;line-height:1.45;font-size:12px;color:#e0eafa;text-align:center}
.fec42-controlbar{display:grid;gap:9px;margin-top:12px;min-width:0}
.fec42-control-main{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:8px;margin:0!important;padding:0}
.fec42-control-main button{width:auto!important;flex:0 0 auto;min-height:40px!important;padding:9px 13px!important;border-radius:6px!important;font-size:12px!important;font-weight:650}
.fec42-control-main #camera{background:#166bb1;border-color:#4888c2}
.fec42-control-main #capture,.fec42-control-main #captureBack{background:#1e3d59;border-color:#3e6888}
.fec42-control-main #cameraStop{background:#1a2634;border-color:#394b5e}
.fec42-control-tools{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:9px 0 0;border-top:1px solid #2e4356}
.fec42-tool-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;min-height:36px;padding:7px 9px;border:1px solid #344c61;border-radius:6px;background:#131f2d;color:#b9d0e1;font-size:11px;font-weight:650;white-space:nowrap;box-shadow:none;transition:color .15s ease,background .15s ease,border-color .15s ease}
.fec42-tool-button svg{width:15px;height:15px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:none}
.fec42-tool-button:hover,.fec42-tool-button:focus-visible{background:#203549;border-color:#5886a5;color:#fff}
.fec42-tool-button[aria-pressed="true"]{background:#1b3850;color:#e1f5ff;border-color:#5086a9}
.fec42-capture-note,.fec42-photo-disclaimer{font-size:11px!important;line-height:1.55!important;color:#a2b5c5!important;margin:11px 0 0!important}
.fec42-photo-panel #photoForm{display:grid;gap:11px;margin:9px 0 0}
.fec42-photo-panel #photoForm label{font-size:12px;font-weight:650;color:#d2e1ed;gap:8px}
.fec42-photo-panel input[type="file"]{background:#0d1723;border:1px dashed #486278;border-radius:6px;padding:11px;color:#d4e7f5;font-size:12px;width:100%;height:auto;min-height:55px}
.fec42-photo-panel input[type="file"]::file-selector-button{background:#20394f;color:#e1f5ff;border:1px solid #466f8d;padding:7px 9px;border-radius:5px;margin-right:10px;cursor:pointer}
.fec42-photo-panel .preview{display:block;max-width:min(100%,220px)!important;max-height:290px!important;object-fit:contain;margin:0 auto;border:1px solid #38556e;border-radius:6px;background:#07111e}
.fec42-photo-panel .preview[hidden]{display:none!important}
.fec42-photo-panel .fec42-submit{width:100%;padding:11px 15px;border-radius:6px;background:#186eb5;border-color:#4a94c8}
.fec42-photo-panel .fec38-file-meta{border-radius:5px}
.fec42-camera:fullscreen{max-height:none!important;max-width:none!important;width:100vw!important;height:100vh!important;aspect-ratio:auto!important;border-radius:0!important;border:0!important}
.fec42-camera:fullscreen video{width:100%;height:100%}
/* Intentional one-shot icon motion: never a perpetual dashboard animation. */
.fec41-side .fec41-nav-group>summary{transition:color .18s ease,background .18s ease}
.fec41-side .fec41-nav-group[open]>summary{color:#d9edf9;background:#142537}
.fec41-nav-group[open] .fec41-group-items{animation:fec42-nav-unfold .18s cubic-bezier(.18,.75,.3,1) both}
@keyframes fec42-nav-unfold{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
.fec41-group-items a{transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease!important}
.fec41-group-items a svg{transform:none!important;backface-visibility:hidden}
.fec41-group-items a:focus-visible{outline-offset:-2px}
.fec41-side .fec41-nav-group>summary:focus-visible{outline:2px solid #75c8f4;outline-offset:1px}
.fec41-side-bottom a,.fec41-footer-links a{transition:color .16s ease,background .16s ease}
.fec41-popover[open] .fec41-popover-panel{animation:fec42-menu-in .18s cubic-bezier(.2,.7,.2,1) both}
@keyframes fec42-menu-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
.fec41-pagehead .fec41-page-icon{transition:transform .2s ease}
.fec41-pagehead .fec41-page-icon:hover{transform:translateY(-2px)}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 .fec41-group-items a:hover svg,.fec41-group-items a:focus-visible svg{animation:fec42-icon-flip .42s ease-in-out both;transform:none!important}
 .fec41-top-actions .fec41-top-scan:hover svg{animation:fec42-icon-flip .42s ease-in-out both}
 @keyframes fec42-icon-flip{0%{transform:rotateY(0)}50%{transform:rotateY(85deg) scale(.93)}100%{transform:rotateY(0)}}
}
@media(max-width:1260px){
 .fec42-studio-layout{grid-template-columns:minmax(0,1.3fr) minmax(300px,.9fr)!important}
 .fec42-panel-head{flex-wrap:wrap}
}
@media(max-width:1050px){
 .fec42-studio-layout{grid-template-columns:minmax(0,1fr)!important}
 .fec42-studio-layout>article{padding:17px}
 .fec42-photo-panel #photoForm{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
 .fec42-photo-panel #photoForm .fec42-submit,.fec42-photo-panel #photoStatus{grid-column:1/-1}
 .fec42-camera{max-height:600px!important}
}
@media(max-width:650px){
 .fec42-studio-layout{gap:11px!important}
 .fec42-studio-layout>article{padding:12px;border-radius:7px}
 .fec42-panel-head{align-items:flex-start;gap:8px;margin-bottom:11px}
 .fec42-panel-head h2{font-size:18px}
 .fec42-camera{aspect-ratio:var(--fec42-ratio)!important;max-height:min(63dvh,500px)!important;border-radius:6px!important}
 .fec42-camera .frame{width:min(41%,210px);height:69%}
 .fec42-camera .fec42-corner{width:17px;height:17px}
 .fec42-camera p#cameraHint{padding:9px 10px;font-size:11px}
 .fec42-stage-top{padding:8px 10px}
 .fec42-control-main{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .fec42-control-main button{width:100%!important;white-space:normal}
 .fec42-control-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .fec42-control-tools .fec42-tool-button{min-width:0;width:100%;min-height:40px}
 .fec42-photo-panel #photoForm{grid-template-columns:minmax(0,1fr)}
 .fec42-photo-panel #photoForm .fec42-submit,.fec42-photo-panel #photoStatus{grid-column:auto}
 .fec41-pagehead{margin-bottom:14px!important}
}
@media(prefers-reduced-motion:reduce){
 .fec41-nav-group[open] .fec41-group-items,.fec41-popover[open] .fec41-popover-panel{animation:none!important}
 .fec41-group-items a svg,.fec41-top-actions svg,.fec41-pagehead .fec41-page-icon,.fec42-camera .frame{animation:none!important;transition:none!important;transform:none}
 .fec42-camera .frame{transform:translate(-50%,-50%)!important}
 .fec42-tool-button{transition:none}
}
/* Override the older generic "every non-secondary button is primary blue" rule. */
.fec42-control-tools button.fec42-tool-button{background:#131f2d!important;border-color:#344c61!important;color:#b9d0e1!important;box-shadow:none!important}
.fec42-control-tools button.fec42-tool-button[aria-pressed="true"]{background:#1b3850!important;color:#e1f5ff!important;border-color:#5086a9!important}
.fec42-control-tools button.fec42-tool-button:hover{background:#203549!important;border-color:#5886a5!important;color:#fff!important}

/* === assets/scanner-v43.css === */
/* Fair E Cards Scanner V4.3 | work-focused tabs and responsive Camera Studio.
   Loaded after V4.1 and optional V4.2; deliberately restrained and no third-party assets. */
:root{--f43-blue:#66bbef;--f43-line:#2a4055;--f43-panel:#101a27;--f43-sub:#9fb4c8}
.main{min-width:0}
.fec43-workspace{width:100%;min-width:0;max-width:100%;margin:8px 0 20px;color:#e8f1fc}
.fec43-tabs{display:flex;align-items:stretch;gap:4px;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:4px 4px 12px;margin:0 0 17px;border-bottom:1px solid var(--f43-line);-webkit-overflow-scrolling:touch}
.fec43-workspace button.fec43-tab{appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;gap:7px;min-height:43px!important;min-width:108px;padding:11px 16px!important;border:1px solid transparent!important;border-radius:7px!important;color:#a5bad0!important;background:transparent!important;font:650 13px/1.25 system-ui,sans-serif!important;letter-spacing:0!important;box-shadow:none!important;white-space:nowrap;cursor:pointer;position:relative;transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease}
.fec43-workspace button.fec43-tab:hover{background:#17273a!important;color:#fff!important}
.fec43-workspace button.fec43-tab[aria-selected="true"]{color:#effaff!important;background:#1b344b!important;border-color:#3c6685!important}
.fec43-workspace button.fec43-tab[aria-selected="true"]::after{content:"";height:2px;background:#65c9fb;border-radius:3px;position:absolute;bottom:-13px;left:12px;right:12px}
.fec43-workspace button.fec43-tab:focus-visible{outline:2px solid #9bdcff!important;outline-offset:2px!important}
.fec43-panels,.fec43-panel{min-width:0;width:100%}
.fec43-panel[hidden]{display:none!important}
.fec43-panel{min-height:180px;animation:fec43-reveal .2s ease both}
.fec43-panel-intro{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px 18px;padding:0 2px 14px;margin-bottom:14px;border-bottom:1px solid #23364a}
.fec43-panel-intro h2{margin:0!important;font:690 17px/1.3 system-ui,sans-serif!important;letter-spacing:-.015em;color:#eef6ff}
.fec43-panel-intro p{margin:0!important;color:var(--f43-sub);font:400 12px/1.5 system-ui,sans-serif}
.fec43-panel>article,.fec43-panel>.fec43-card,.fec43-panel>section,.fec43-panel>div{max-width:100%;min-width:0}
.fec43-panel>article,.fec43-panel>.fec43-card{background:var(--f43-panel)!important;border:1px solid #2a3c50!important;border-radius:9px!important;box-shadow:none!important;padding:19px!important;margin:0 0 14px!important;overflow:visible}
.fec43-panel>.fec43-card>h2,.fec43-panel>.fec43-card>h3{margin-top:0;font-size:17px}
.fec43-panel .fec43-card .fields,.fec43-panel .fec43-card .metrics{min-width:0}
.fec43-panel .fec43-card .resultrow{max-width:100%}
.fec43-panel .fec43-card form{max-width:100%}
.fec43-panel :is(input,select,textarea){max-width:100%;min-width:0}
.fec43-panel .actions{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.fec43-panel :is(.fec34-gallery,.fec35-gallery,.fec31-cardgrid,.quickgrid,.fec32-grid){min-width:0;max-width:100%}
.fec43-panel :is(table,.fec34-pagination){max-width:100%}
.fec43-panel [hidden]{display:none!important}
.fec43-empty{padding:24px!important;border:1px dashed #385068!important;background:#101d2a!important;color:#b4c8da}
.fec43-empty p{line-height:1.55;margin-top:0}
.fec43-workspace .fec43-panel .fec34-catalogue{display:block}
.fec43-related{display:flex;flex-wrap:wrap;gap:5px;padding:0;margin:0 0 24px!important;border:0!important;background:transparent!important;max-width:100%}
.fec43-related a{font-size:12px;padding:8px 12px;border:1px solid #2d4053;border-radius:6px;color:#a8c4db;background:#101b29}
.fec43-related a.active{background:#163954;color:#d9f5ff;border-color:#416a89}
/* Camera and photo intake each occupy one full task view, rather than competing columns. */
.fec43-workspace .fec43-panel #cameraBox{--fec42-ratio:16 / 9;position:relative;isolation:isolate;width:100%!important;max-width:100%!important;height:auto!important;min-height:0;max-height:min(74dvh,780px)!important;aspect-ratio:var(--fec42-ratio)!important;margin:0 auto!important;border:1px solid #3a5770!important;border-radius:9px!important;overflow:hidden!important;background:#02070d!important}
.fec43-workspace .fec43-panel #cameraBox video{position:absolute;inset:0;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;background:#03080e;transform:none;transition:transform .2s ease}
.fec43-workspace .fec43-panel #cameraBox[data-preview-mode="fill"] video{object-fit:cover!important}
.fec43-workspace .fec43-panel #cameraBox[data-fec43-view="portrait"]{aspect-ratio:3/4!important;max-width:min(100%,530px)!important;max-height:min(75dvh,680px)!important}
.fec43-workspace .fec43-panel #cameraBox[data-fec43-view="portrait"] video{object-fit:cover!important}
.fec43-workspace .fec43-panel #cameraBox[data-fec43-view="inspect"] video{object-fit:cover!important;transform:scale(1.4)!important}
.fec43-workspace .fec43-panel #cameraBox .frame{pointer-events:none}
.fec43-workspace .fec43-panel #cameraBox[data-fec43-view="portrait"] .frame{width:65%;height:74%;max-width:350px}
.fec43-workspace .fec43-panel #cameraBox[data-fec43-view="inspect"] .frame{opacity:.38}
.fec43-workspace .fec43-panel #cameraBox:fullscreen{width:100vw!important;height:100vh!important;max-width:none!important;max-height:none!important;aspect-ratio:auto!important;border-radius:0!important}
.fec43-panel #cameraBox + .actions,.fec43-panel .fec42-controlbar{margin-top:14px!important}
.fec43-camera-modes{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding-top:12px;margin-top:12px;border-top:1px solid #283d51}
.fec43-camera-modes>span{font:650 11px system-ui,sans-serif;color:#a5bacd;margin-right:6px}
.fec43-workspace .fec43-camera-modes button{min-height:36px!important;width:auto!important;padding:7px 12px!important;color:#b4cbe0!important;background:#162536!important;border:1px solid #354d63!important;border-radius:6px!important;font:600 12px system-ui,sans-serif!important;box-shadow:none!important}
.fec43-workspace .fec43-camera-modes button[aria-pressed="true"]{color:#eaf7ff!important;background:#1e4867!important;border-color:#4b9bd0!important}
.fec43-workspace .fec43-camera-modes button:hover{border-color:#6da9cf!important}
.fec43-workspace .fec43-panel #photoForm{max-width:860px;margin-inline:auto}
.fec43-workspace .fec43-panel #photoForm :is(input[type="file"],.preview){max-width:100%}
.fec43-workspace .fec43-panel .fec42-photo-panel{max-width:1100px;margin-inline:auto!important}
.fec43-panel .fec42-panel-head{margin-bottom:14px}
.fec43-workspace .fec43-panel .fec37-studio{max-width:100%}
.fec43-panel .fec32-grid,.fec43-panel .fec34-gallery{overflow-x:auto}
.fec43-panel .fec35-dialog{max-width:min(95vw,900px)}
/* Navigation motion as feedback, not perpetual decoration. */
.fec41-side .fec41-nav-group>summary{transition:background-color .18s ease,color .18s ease}
.fec41-side .fec41-nav-group summary svg{transition:transform .22s cubic-bezier(.2,.7,.2,1)}
.fec41-side .fec41-nav-group[open]>summary svg{transform:rotate(180deg)}
.fec41-group-items a{transition:background-color .16s ease,transform .16s ease,color .16s ease}
@media(hover:hover){.fec41-group-items a:hover{transform:translateX(2px)}.fec43-workspace button.fec43-tab:hover{transform:translateY(-1px)}}
.fec41-footer{background:#0f1926!important;border-top:1px solid #2b4053!important}
.fec41-pagehead{margin-bottom:18px!important}
@keyframes fec43-reveal{from{opacity:.7;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){.fec43-panel-intro{display:block}.fec43-panel-intro p{margin-top:4px!important}.fec43-panel>article,.fec43-panel>.fec43-card{padding:16px!important}.fec43-tabs{margin-bottom:13px}.fec43-workspace .fec43-panel #cameraBox{max-height:66dvh!important}}
@media(max-width:650px){.fec43-workspace{margin-top:0}.fec43-tabs{gap:3px;padding:2px 2px 10px}.fec43-workspace button.fec43-tab{min-width:auto!important;font-size:12px!important;min-height:42px!important;padding:10px 11px!important}.fec43-panel-intro{padding-bottom:10px;margin-bottom:12px}.fec43-panel>article,.fec43-panel>.fec43-card{padding:12px!important;border-radius:7px!important;margin-bottom:10px!important}.fec43-workspace .fec43-panel #cameraBox{max-height:60dvh!important;border-radius:6px!important}.fec43-workspace .fec43-panel #cameraBox[data-fec43-view="portrait"]{max-width:min(100%,420px)!important;max-height:62dvh!important}.fec43-camera-modes>span{flex-basis:100%}.fec43-camera-modes button{flex:1 1 0}.fec43-related{overflow-x:auto;flex-wrap:nowrap}.fec43-related a{white-space:nowrap}}
@media(prefers-reduced-motion:reduce){.fec43-panel,.fec43-workspace button.fec43-tab,.fec41-group-items a,.fec41-side .fec41-nav-group>summary svg,.fec43-workspace .fec43-panel #cameraBox video{animation:none!important;transition:none!important}.fec41-group-items a:hover{transform:none!important}}

/* === assets/scanner-v44.css === */
/* Fair E Cards Scanner V4.4 — finished workspace shell and task navigation.
   Restrained design; real compact sidebar; no changes to authenticated back-end. */
:root{--fec44-rail:76px;--fec44-border:#2c4157;--fec44-ink:#0c1520;--fec44-blue:#7abde7}
body[data-workspace="member"] .fec41-shell{width:100%;max-width:none!important;margin:0;align-items:stretch;min-width:0}
body[data-workspace="member"] .main{flex:1 1 auto;max-width:none;min-width:0}
body[data-workspace="member"] .fec41-side{width:var(--sidebar);flex:0 0 var(--sidebar);max-width:var(--sidebar);min-width:0;transition:width .22s ease,flex-basis .22s ease,max-width .22s ease;padding-bottom:16px}
.fec44-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;clip-path:inset(50%)!important}
.fec44-rail{display:none;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;align-content:start;gap:0;padding:0 2px 22px;flex:1}
.fec44-rail::-webkit-scrollbar{display:none}
.fec44-rail-group{display:grid;gap:3px;padding:7px 0;border-bottom:1px solid #26384b}
.fec44-rail-group:last-child{border-bottom:0}
.fec44-rail-link{position:relative;min-height:43px;width:100%;display:flex!important;align-items:center;justify-content:center;border:1px solid transparent;border-radius:8px!important;padding:9px!important;color:#abc8e0!important;background:transparent!important;overflow:visible!important}
.fec44-rail-link svg{height:20px;width:20px;flex:none;fill:none;stroke:#8fbad9;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease,stroke .18s ease}
.fec44-rail-fallback{font-size:14px;font-weight:700}
.fec44-rail-link.active,.fec44-rail-link[aria-current="page"]{background:#213b52!important;border-color:#3d7297!important;color:#eaf8ff!important;box-shadow:inset 3px 0 0 #5eb9eb!important}
.fec44-rail-link:hover,.fec44-rail-link:focus-visible{background:#1a3045!important;border-color:#3b607b!important;text-decoration:none!important}
.fec44-rail-link.active svg{stroke:#8bdbff}
@media(hover:hover){.fec44-rail-link:hover svg{transform:rotateY(160deg);stroke:#a7e0ff}.fec44-rail-link:is(:hover,:focus-visible)::after{content:attr(data-tip);position:fixed;left:calc(var(--fec44-rail) + 12px);top:auto;transform:translateY(-12px);z-index:150;background:#10273a;border:1px solid #51738e;border-radius:6px;box-shadow:0 8px 30px #0009;color:#ecf8ff;white-space:nowrap;font:600 12px system-ui,sans-serif;padding:9px 12px;pointer-events:none}}
/* Real 76px sidebar with all modules reachable, not the older 196px half-collapse. */
@media(min-width:901px){
 body[data-workspace="member"].fec35-compact{--sidebar:var(--fec44-rail)!important}
 body.fec35-compact .fec41-side{width:var(--fec44-rail)!important;flex-basis:var(--fec44-rail)!important;max-width:var(--fec44-rail)!important;padding:12px 8px!important;overflow-x:visible}
 body.fec35-compact .fec41-side-head{display:flex;align-items:center;justify-content:center;padding:0 0 10px!important}
 body.fec35-compact .fec35-side-title{width:100%;display:flex;justify-content:center;margin:0!important}
 body.fec35-compact .fec41-side-collapse{height:42px!important;width:46px!important;min-width:46px!important;transform:none!important;font-size:22px!important}
 body.fec35-compact .fec41-side-head .eyebrow,
 body.fec35-compact .fec41-side .fec32-nav-search,
 body.fec35-compact .fec41-side-quick,
 body.fec35-compact .fec41-nav,
 body.fec35-compact .fec41-side-bottom{display:none!important}
 body.fec35-compact .fec44-rail{display:grid}
}
.fec41-side-collapse{transition:background .17s ease,border-color .17s ease,color .17s ease}
.fec41-side-collapse:hover{background:#234363!important;border-color:#6aa3cb!important;color:#eaf8ff!important}
.fec41-side-collapse:focus-visible,.fec44-rail-link:focus-visible{outline:2px solid #b1ddf9!important;outline-offset:2px!important}
/* Expanded navigation: consistent disclosure alignment and purposeful interactive motion. */
.fec41-nav-group>summary{border-radius:7px!important;min-height:39px!important;gap:9px!important}
.fec41-nav-group>summary:hover{background:#1b3044!important}
.fec41-group-items a{border-radius:7px!important}
.fec41-group-items a .fec41-nav-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fec41-group-items a svg{transition:transform .22s ease,stroke .22s ease}
@media(hover:hover){.fec41-group-items a:hover svg{transform:rotateY(150deg) translateY(-1px)!important}}
/* Page headers, tabs, content density and consistent form spacing across 18 routes. */
.fec41-pagehead{border-bottom:1px solid #294056;padding-bottom:17px!important;margin-bottom:14px!important}
.fec41-page-description{max-width:72ch}
.fec43-workspace{margin-top:4px!important}
.fec43-tabs{gap:5px!important;margin-bottom:16px!important;padding-bottom:12px!important;scrollbar-width:thin}
.fec43-workspace button.fec43-tab{border-radius:7px!important;min-height:42px!important}
.fec43-panel-intro{border-bottom:1px solid #273b4e!important}
.fec43-panel-intro h2{font-size:16px!important}
.fec43-panel>article,.fec43-panel>.fec43-card{padding:clamp(14px,1.3vw,22px)!important;border-radius:9px!important;margin-bottom:13px!important;box-shadow:none!important}
.fec43-panel :is(.fields,.split,.metrics,.quickgrid,.cardgrid){min-width:0}
.fec43-panel :is(input,select,textarea){min-width:0;max-width:100%;border-radius:7px}
.fec43-panel :is(button,.linkbutton){border-radius:7px}
.fec43-panel .actions{gap:8px}
.fec43-panel .actions>*{max-width:100%;min-width:0}
.fec43-panel .fec34-gallery img,.fec43-panel .fec35-photo-grid img{object-fit:contain}
.fec44-table-region{max-width:100%;width:100%;overflow-x:auto;scrollbar-width:thin;overscroll-behavior-x:contain;border-radius:6px}
.fec44-table-region>table{min-width:max-content;max-width:none!important}
.fec44-table-region:focus-visible{outline:2px solid #8fd4ff;outline-offset:3px}
.fec44-workflow{margin-top:15px;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;border-top:1px solid #2c4055;padding:15px 0 8px}
.fec44-workflow[hidden]{display:none!important}
.fec44-workflow-counter{margin-right:auto;color:#9fb9ce;font-size:12px;font-variant-numeric:tabular-nums}
.fec44-workflow-button{min-height:37px!important;padding:8px 12px!important;font-size:12px!important;border:1px solid #39546e!important;background:#172b3e!important;color:#dfedfa!important;box-shadow:none!important;border-radius:6px!important}
.fec44-workflow-button:hover:not(:disabled){background:#24435e!important;border-color:#6795b4!important}
.fec44-workflow-button:disabled{opacity:.4;cursor:default}
.fec44-camera-tools{margin:15px 0!important;padding:0!important;border:1px solid #314b61!important;border-radius:8px;background:#122132}
.fec44-camera-tools>summary{min-height:42px;display:flex;align-items:center;padding:10px 14px!important;list-style:none;color:#bed5e9;font-size:12px;font-weight:650}
.fec44-camera-tools>summary::-webkit-details-marker{display:none}
.fec44-camera-tools>summary::after{content:"+";margin-left:auto;font-size:19px;color:#8fbddb}
.fec44-camera-tools[open]>summary::after{content:"−"}
.fec44-camera-tools-inner{border-top:1px solid #314b61;padding:11px 13px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.fec44-camera-tools-inner button{min-width:0;flex:0 1 auto}
/* Visual refinement to a genuine app footer, not a large promotional block. */
.fec41-footer{background:#0e1723!important;border-top:1px solid #2c4359!important;margin-top:32px!important}
.fec41-footer-top{gap:22px!important}
.fec41-footer-links a{min-height:26px;display:flex;align-items:center}
.fec41-footer-bottom{color:#9cbbd0}
/* Mobile navigation remains a full drawer, never the desktop icon rail. */
@media(max-width:900px){
 body[data-workspace="member"] .fec41-side{display:none!important}
 .fec44-rail{display:none!important}
 .fec41-mobile-panel{box-shadow:-16px 0 42px #0009!important}
 .fec41-mobile-group a{min-height:44px!important;border-radius:7px}
 .fec41-mobile-head button:focus-visible,.fec41-mobilemenu summary:focus-visible{outline:2px solid #95d9ff;outline-offset:3px}
 .fec41-pagehead{padding-bottom:12px!important}
 .fec44-table-region{margin-inline:-3px;width:calc(100% + 6px)}
}
@media(max-width:650px){
 .fec43-workspace .fec43-panel #cameraBox{width:100%!important;max-width:100%!important}
 .fec43-panel>article,.fec43-panel>.fec43-card{padding:13px!important}
 .fec44-workflow{gap:6px}
 .fec44-workflow-counter{flex-basis:100%;margin-bottom:2px}
 .fec44-workflow-button{flex:1 1 0;min-height:44px!important}
 .fec43-workspace button.fec43-tab{min-height:44px!important}
 .fec44-camera-tools-inner button{flex:1 1 140px;min-height:43px!important}
 .fec41-footer-top{gap:15px!important}
 .fec41-footer-bottom{line-height:1.6}
 .fec43-panel :is(.fec35-photo-grid,.fec40-grid,.fec32-grid){grid-template-columns:minmax(0,1fr)!important}
}
@media(prefers-reduced-motion:reduce){
 body .fec41-side,.fec44-rail-link svg,.fec41-group-items a svg,.fec41-side-collapse,.fec44-workflow-button{transition:none!important;animation:none!important;transform:none!important}
}
@media print{.fec44-rail,.fec44-workflow,.fec44-camera-tools>summary{display:none!important}}
/* Fixed-position tooltip is rendered outside the scrolling rail to avoid clipping. */
.fec44-rail-tooltip{position:fixed;z-index:180;pointer-events:none;max-width:240px;overflow-wrap:anywhere;background:#122b40;border:1px solid #567e9b;border-radius:7px;padding:9px 12px;box-shadow:0 10px 32px #0008;color:#eef9ff;font:600 12px/1.35 system-ui,sans-serif}
.fec44-rail-tooltip[hidden]{display:none!important}
@media(hover:hover){.fec44-rail-link:is(:hover,:focus-visible)::after{content:none!important}}

/* === assets/scanner-v45.css === */
/* Fair E Cards Scanner V4.5 — deliberate professional design and working appearance preferences.
   Only CSS and user-interface state; no modification of business logic or private data. */
:root[data-fec-theme="dark"]{
 color-scheme:dark;
 --bg:#0b111a;--panel:#121c29;--panel2:#192638;--line:#2c3c50;
 --text:#e8eef5;--muted:#a8b6c8;--blue:#8acbef;--primary:#176aa8;
 --fec41-side:#101924;--fec41-panel:#15202d;--fec41-line:#2c3c50;
 --fec40-surface:#141f2c;--fec40-subtle:#1a2939;--fec40-border:#32465b;
 --fec45-bg:#0b111a;--fec45-header:#101822;--fec45-side:#101924;
 --fec45-panel:#141f2c;--fec45-soft:#1b2a3a;--fec45-field:#0e1926;
 --fec45-line:#314357;--fec45-fg:#e8eef5;--fec45-muted:#a9b9c9;
 --fec45-accent:#5fb4e2;--fec45-active:#1d354c;--fec45-shadow:0 8px 20px rgba(0,0,0,.17);
}
:root[data-fec-theme="light"]{
 color-scheme:light;
 --bg:#f4f7fa;--panel:#fff;--panel2:#f0f4f8;--line:#c9d4df;
 --text:#17283c;--muted:#546779;--blue:#105f9c;--primary:#075f9b;
 --green:#13744a;--red:#a73448;
 --fec41-side:#f6f8fb;--fec41-panel:#fff;--fec41-line:#d0dae4;
 --fec40-surface:#fff;--fec40-subtle:#f1f5fa;--fec40-border:#d0dbe5;
 --fec45-bg:#f4f7fa;--fec45-header:#fff;--fec45-side:#f7f9fc;
 --fec45-panel:#fff;--fec45-soft:#edf3f8;--fec45-field:#fff;
 --fec45-line:#cbd7e2;--fec45-fg:#1a2c40;--fec45-muted:#53687a;
 --fec45-accent:#086da8;--fec45-active:#deecf7;--fec45-shadow:0 8px 20px rgba(23,43,67,.065);
}
:root{font-synthesis:none}
:root[data-fec-theme] body{background:var(--fec45-bg);color:var(--fec45-fg);line-height:1.48;letter-spacing:normal}
:root[data-fec-theme] .fec-energy{opacity:.08!important;pointer-events:none}
:root[data-fec-theme] .fec41-top{background:var(--fec45-header)!important;border-bottom:1px solid var(--fec45-line)!important;box-shadow:none!important}
:root[data-fec-theme] .fec41-side{background:var(--fec45-side)!important;border-color:var(--fec45-line)!important;box-shadow:none!important}
:root[data-fec-theme] .main{color:var(--fec45-fg)}
:root[data-fec-theme] .fec41-pagehead{border-color:var(--fec45-line)!important}
:root[data-fec-theme] .fec41-page-title-line h1{font-weight:680!important;letter-spacing:-.025em!important}
:root[data-fec-theme] :is(.fec41-page-description,.fec41-breadcrumb,.micro,.muted){color:var(--fec45-muted)!important}
:root[data-fec-theme] :is(article,.quick,.metrics>div,.metrics article,.fec40-kpi,.fec40-section,.fec43-card,.fec43-panel>article){
 border-radius:9px!important;box-shadow:none!important}
:root[data-fec-theme] :is(button,.linkbutton,.smallbutton,.fec41-page-related a){border-radius:7px!important}
:root[data-fec-theme] :is(.fec41-nav-group>summary,.fec41-group-items a){border-radius:6px!important}
:root[data-fec-theme] :is(input,select,textarea){border-radius:6px!important}
:root[data-fec-theme] :is(.fec41-top,.fec41-side,.fec41-footer,.fec43-tabs) svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}
:root[data-fec-theme] :is(a,button,summary,input,textarea,select):focus-visible{outline:2px solid var(--fec45-accent)!important;outline-offset:3px}
/* Header appearance control: always accessible, even on small screens. */
.fec45-appearance-menu{position:relative!important;margin:0!important;padding:0!important;border:0!important;min-width:0;flex:none}
.fec45-appearance-menu>summary{list-style:none;display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:7px 11px;border:1px solid var(--fec45-line);background:var(--fec45-panel);border-radius:7px;color:var(--fec45-fg);font-size:12px;font-weight:600;white-space:nowrap;cursor:pointer;user-select:none}
.fec45-appearance-menu>summary::-webkit-details-marker{display:none}
.fec45-appearance-menu>summary svg{width:17px;height:17px;flex:none;stroke:var(--fec45-accent);stroke-width:1.7;fill:none}
.fec45-appearance-menu[open]>summary,.fec45-appearance-menu>summary:hover{background:var(--fec45-soft);border-color:var(--fec45-accent)}
.fec45-appearance-popover{position:absolute;right:0;top:calc(100% + 9px);z-index:220;width:min(286px,calc(100vw - 20px));padding:15px;background:var(--fec45-panel);border:1px solid var(--fec45-line);border-radius:9px;box-shadow:var(--fec45-shadow);color:var(--fec45-fg)}
.fec45-appearance-popover>strong{font-size:14px;font-weight:700}
.fec45-appearance-popover>p{margin:5px 0 12px;font-size:12px;color:var(--fec45-muted)!important}
.fec45-theme-options{display:grid;gap:5px;margin:0;padding:0;border:0;min-width:0}
.fec45-theme-options>label{display:grid;grid-template-columns:19px 1fr;align-items:center;column-gap:10px;row-gap:1px;min-height:49px;margin:0;padding:8px 10px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--fec45-fg);cursor:pointer;font-size:13px;font-weight:600}
.fec45-theme-options>label:hover,.fec45-theme-options>label:has(input:checked){background:var(--fec45-soft);border-color:var(--fec45-line)}
.fec45-theme-options input{grid-row:span 2;width:17px!important;height:17px!important;min-height:17px!important;margin:0;accent-color:var(--fec45-accent)}
.fec45-theme-options small{grid-column:2;color:var(--fec45-muted);font-size:11px;font-weight:400}
.fec45-sr{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);clip-path:inset(50%);overflow:hidden;white-space:nowrap}
/* Real preferences page control (device-local, no misleading account sync). */
.fec45-pref-card{padding:clamp(16px,2vw,24px)!important;background:var(--fec45-panel)!important;border:1px solid var(--fec45-line)!important;color:var(--fec45-fg)!important}
.fec45-pref-head h2{margin:4px 0 6px!important;font-size:19px;font-weight:680}
.fec45-pref-head p{color:var(--fec45-muted)!important;font-size:13px;margin:0 0 16px}
.fec45-kicker{font-size:10px;font-weight:750;letter-spacing:.09em;color:var(--fec45-accent)}
.fec45-pref-options{border:0;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.fec45-pref-options legend{font-size:12px;color:var(--fec45-muted);font-weight:650;margin-bottom:9px}
.fec45-pref-options label{display:flex;align-items:flex-start;gap:9px;min-height:77px;padding:13px;background:var(--fec45-soft);border:1px solid var(--fec45-line);border-radius:7px;cursor:pointer;color:var(--fec45-fg)}
.fec45-pref-options label:has(input:checked){border-color:var(--fec45-accent);box-shadow:inset 0 0 0 1px var(--fec45-accent)}
.fec45-pref-options input{width:18px!important;height:18px!important;min-height:18px!important;margin:2px 0 0;accent-color:var(--fec45-accent)}
.fec45-pref-options label span{display:grid;gap:5px}
.fec45-pref-options strong{font-size:13px;color:var(--fec45-fg)}
.fec45-pref-options small{font-size:11px;line-height:1.4;color:var(--fec45-muted);font-weight:400}
#fec45ThemeStatus{margin:14px 0 0}
/* Actual sidebar SVGs: previous versions animate a separate selector that could be missing. */
.fec41-group-items a>.fec45-motion-icon,.fec44-rail-link>.fec45-motion-icon{width:18px!important;height:18px!important;flex:none;transform:perspective(80px) rotateY(0deg) translateY(0)!important;transition:transform .55s cubic-bezier(.18,.8,.18,1),stroke .18s ease,color .18s ease!important;backface-visibility:visible;transform-origin:center!important;will-change:auto;stroke:var(--fec45-muted)!important;fill:none!important}
.fec41-group-items a{gap:10px!important;min-height:41px!important;font-size:12.5px!important;transition:background-color .15s,border-color .15s!important}
.fec41-group-items a[aria-current="page"]{font-weight:650!important}
.fec41-group-items a[aria-current="page"]>.fec45-motion-icon{stroke:var(--fec45-accent)!important}
.fec41-nav-group>summary svg{transition:transform .22s ease!important}
.fec41-nav-group[open]>summary svg{transform:rotate(180deg)!important}
.fec44-rail-link>.fec45-motion-icon{width:20px!important;height:20px!important}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
 .fec41-group-items a:hover>.fec45-motion-icon,.fec41-group-items a:focus-visible>.fec45-motion-icon,
 .fec44-rail-link:hover>.fec45-motion-icon,.fec44-rail-link:focus-visible>.fec45-motion-icon{transform:perspective(80px) rotateY(360deg) translateY(-1px)!important;stroke:var(--fec45-accent)!important}
}
/* Bring motion to keyboard interaction as well, without constant attention-grabbing looping. */
@media (hover:none) and (prefers-reduced-motion:no-preference){
 .fec41-group-items a:active>.fec45-motion-icon,.fec44-rail-link:active>.fec45-motion-icon{transform:scale(1.12)!important}
}
/* Neutral software styling in DARK and LIGHT. Original logo is retained as supplied. */
:root[data-fec-theme="dark"] :is(.fec41-footer,.fec41-footer-bottom){background:#101822!important;border-color:#2c3c50!important}
:root[data-fec-theme="dark"] :is(.fec41-top,.fec41-side){background:#101822!important}
:root[data-fec-theme="dark"] .fec41-pagehead{background:transparent!important}
:root[data-fec-theme="dark"] :is(.fec41-popover-panel,.fec41-mobile-panel){background:#152130!important;border-color:#33485f!important}
:root[data-fec-theme="dark"] .fec41-group-items a.active{background:#1d3448!important}
:root[data-fec-theme="dark"] .fec43-panel>article{background:#141f2b!important;border-color:#314357!important}
:root[data-fec-theme="light"] body{background:#f4f7fa!important;color:#192b40!important}
:root[data-fec-theme="light"] .fec-energy{opacity:.015!important}
:root[data-fec-theme="light"] :is(.fec41-top,.fec41-side,.fec41-footer){background:#fff!important;border-color:#cbd7e2!important;color:#203246!important}
:root[data-fec-theme="light"] .fec41-side{background:#f8fafc!important}
:root[data-fec-theme="light"] .fec41-brand{background:#101925;border-radius:6px;padding:3px 8px;min-width:0}
:root[data-fec-theme="light"] :is(.fec41-top-context,.fec41-top-context strong,.fec41-currency,.fec41-page-title h1,.fec41-page-title-line h1,.fec41-breadcrumb strong,h1,h2,h3){color:#182a3c!important}
:root[data-fec-theme="light"] :is(p,.fec41-page-description,.micro,.muted,.fec41-breadcrumb){color:#526578!important}
:root[data-fec-theme="light"] :is(article,.quick,.metrics>div,.metrics article,.fec40-section,.fec40-kpi,.fec43-panel>article,.fec43-card,.fec37-studio,.fec35-dialog){background:#fff!important;border-color:#cbd7e2!important;color:#192b40!important;box-shadow:none!important}
:root[data-fec-theme="light"] :is(.hero,.hero.dashboard,.fec37-intro,.fec43-panel-intro){background:#edf3f8!important;border-color:#cbd7e2!important;color:#192b40!important}
:root[data-fec-theme="light"] :is(.fec41-nav-group>summary,.fec41-group-total,.fec41-nav-label,.fec41-side-bottom strong,.fec41-side-bottom a){color:#354a5c!important}
:root[data-fec-theme="light"] .fec41-nav-group>summary:hover{background:#e8f0f7!important}
:root[data-fec-theme="light"] .fec41-group-items a{color:#344a60!important;background:transparent!important}
:root[data-fec-theme="light"] .fec41-group-items a:hover{background:#e6eff6!important;border-color:#c1d4e4!important;color:#143b59!important}
:root[data-fec-theme="light"] .fec41-group-items a.active,:root[data-fec-theme="light"] .fec41-group-items a[aria-current="page"]{color:#0d456f!important;background:#dfedf7!important;border-color:#a5cbe5!important;box-shadow:inset 3px 0 #0879b4!important}
:root[data-fec-theme="light"] :is(.fec41-nav-group>summary svg,.fec41-group-items a svg,.fec44-rail-link svg){stroke:#446881!important}
:root[data-fec-theme="light"] .fec41-group-items a[aria-current="page"] svg{stroke:#0a6ea9!important}
:root[data-fec-theme="light"] :is(.fec44-rail,.fec44-rail-group){border-color:#d3dfe8!important}
:root[data-fec-theme="light"] .fec44-rail-link{color:#314a60!important}
:root[data-fec-theme="light"] .fec44-rail-link:hover{background:#e8f0f7!important;border-color:#b8d5e6!important}
:root[data-fec-theme="light"] .fec44-rail-link.active{background:#dcecf8!important;border-color:#a7cadf!important;color:#0a5789!important;box-shadow:inset 3px 0 #0879b4!important}
:root[data-fec-theme="light"] :is(.fec41-side .fec32-nav-search input,.fec41-page-actions select,input,select,textarea){background:#fff!important;border-color:#b7c7d6!important;color:#182a3c!important}
:root[data-fec-theme="light"] :is(input,textarea)::placeholder{color:#677b8a!important;opacity:1}
:root[data-fec-theme="light"] label{color:#243d51!important}
:root[data-fec-theme="light"] :is(.secondary,.smallbutton,.fec41-side-collapse,.fec41-page-related a,.fec44-workflow-button,.fec41-popover-toggle,.fec41-mobilemenu>summary){background:#f0f5f9!important;color:#243c50!important;border-color:#bfcedb!important}
:root[data-fec-theme="light"] :is(.secondary,.smallbutton,.fec44-workflow-button):hover{background:#e4eff7!important;color:#133d60!important}
:root[data-fec-theme="light"] :is(.fec41-popover-panel,.fec41-mobile-panel,.fec41-mobile-group a,.fec45-appearance-popover){background:#fff!important;border-color:#cbd7e2!important;color:#1c3045!important}
:root[data-fec-theme="light"] :is(.fec41-popover-panel a,.fec41-popover-title strong,.fec41-popover-title small,.fec41-mobile-head strong,.fec41-mobile-group strong){color:#274158!important}
:root[data-fec-theme="light"] :is(.fec41-popover-panel a span,.fec41-popover-note){color:#5a7081!important}
:root[data-fec-theme="light"] :is(.fec41-popover-panel a:hover,.fec41-mobile-group a:hover){background:#eaf2f8!important}
:root[data-fec-theme="light"] :is(.fec43-tabs,.fec43-panel-intro,.fec43-panel,.fec43-workspace,.fec41-pagehead,.fec41-side-bottom,.fec44-workflow){border-color:#ccd8e3!important}
:root[data-fec-theme="light"] .fec43-tab{background:#eff4f8!important;color:#364d60!important;border-color:#c7d5e0!important}
:root[data-fec-theme="light"] .fec43-tab[aria-selected="true"]{background:#deedf7!important;color:#095c90!important;border-color:#79b1d4!important}
:root[data-fec-theme="light"] :is(.fec365-binder-tile,.fec365-pocket,.fec365-pocket-grid,.fec35-coverage,.fec40-form,.fec40-empty,.fec32-inspect,.fec34-gallery>div){background:#f9fbfd!important;border-color:#cbd7e2!important;color:#203448!important}
:root[data-fec-theme="light"] :is(.fec365-binder-tile strong,.fec365-pocket-detail strong,.fec40-kpi strong){color:#203448!important}
:root[data-fec-theme="light"] :is(.fec365-binder-tile small,.fec365-pocket-detail small){color:#586d7e!important}
:root[data-fec-theme="light"] :is(.fec41-footer-brand strong,.fec41-footer-links strong,.fec41-footer-links a,.fec41-footer-bottom,.fec41-footer-bottom a){color:#3a5367!important}
:root[data-fec-theme="light"] .fec41-mobile-scrim:not([hidden]){background:rgba(21,40,60,.42)!important}
:root[data-fec-theme="light"] :is(.notice,.fec365-note){background:#e9f3fa!important;color:#214c69!important;border-color:#96bbd7!important}
:root[data-fec-theme="light"] .error{background:#fff0f1!important;color:#852d40!important;border-color:#d99eac!important}
:root[data-fec-theme="light"] .bottom{background:#fff!important;border-color:#c9d6e3!important}
:root[data-fec-theme="light"] .bottom a{color:#344d60!important}
:root[data-fec-theme="light"] .bottom a.active{background:#e0edf7!important;color:#0b598e!important}
:root[data-fec-theme="light"] .bottom a.scanbtn{background:#116ca7!important;color:#fff!important}
:root[data-fec-theme="light"] :is(.fec41-footer,.fec41-footer-bottom){border-color:#d5e0e9!important}
/* Native camera black stage, photographs and the cinematic intro remain colour-accurate in both themes. */
:root[data-fec-theme="light"] :is(.camera,#cameraBox,.fec37-stage,.fec35-image-stage,.fec-intro){color:#e9f4ff}
@media(max-width:900px){.fec45-appearance-menu>summary{min-width:37px;justify-content:center;padding:7px 9px}.fec45-appearance-menu>summary span{display:none}.fec45-appearance-popover{right:-38px}.fec45-pref-options{grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){.fec45-appearance-menu>summary{min-width:34px;padding:7px}.fec45-appearance-menu>summary svg{width:17px}.fec45-appearance-popover{right:-56px}.fec45-theme-options>label{min-height:50px}.fec45-pref-options{gap:8px}}
@media(max-width:370px){.fec45-appearance-menu>summary{min-width:32px;padding:6px}.fec45-appearance-popover{right:-35px}}
@media(prefers-reduced-motion:reduce){.fec45-motion-icon,.fec41-group-items a>.fec45-motion-icon,.fec44-rail-link>.fec45-motion-icon,.fec41-nav-group>summary svg{transition:none!important;animation:none!important;transform:none!important}}
@media print{.fec45-appearance-menu{display:none!important}:root[data-fec-theme="dark"] body{background:#fff!important;color:#111!important}}
/* Explicit final-state light overrides for legacy selectors carrying !important. */
html[data-fec-theme="light"] body .fec41-group-items a.active,
html[data-fec-theme="light"] body .fec41-group-items a[aria-current="page"]{
 background:#dfeef8!important;color:#0d496f!important;border-color:#a2c9df!important;box-shadow:inset 3px 0 #087eae!important}
html[data-fec-theme="light"] body .fec41-group-items a.active .fec41-nav-label,
html[data-fec-theme="light"] body .fec41-group-items a[aria-current="page"] .fec41-nav-label{color:#0b4e79!important}
html[data-fec-theme="light"] body .fec43-workspace button.fec43-tab{color:#334a60!important;background:#eff4f8!important;border-color:#c7d5df!important}
html[data-fec-theme="light"] body .fec43-workspace button.fec43-tab[aria-selected="true"]{color:#075c90!important;background:#deedf7!important;border-color:#7db4d5!important}
html[data-fec-theme="light"] body .fec41-brand{background:#132235!important;color:#fff!important;border-radius:5px;padding:4px 8px!important}
html[data-fec-theme="light"] body .fec41-side-quick a{color:#24506b!important;background:#e8f1f7!important;border-color:#bccddb!important}
html[data-fec-theme="light"] body .fec41-side-quick .fec41-quick-primary{color:#fff!important;background:#176ba2!important;border-color:#0c639a!important}

/* === assets/scanner-v46.css === */
/* Fair E Cards Scanner V4.6 — unified functional polish; loaded after V4.5.
   Scoped CSS only; no changes to capture pixels, forms, endpoints or persistence. */
:root[data-fec-theme]{--fec46-focus:var(--fec45-accent);--fec46-panel:var(--fec45-panel);--fec46-line:var(--fec45-line);--fec46-muted:var(--fec45-muted);--fec46-fg:var(--fec45-fg)}
body[data-workspace="member"] .main{padding-inline:clamp(14px,1.65vw,30px)!important}
body[data-workspace="member"] .fec41-pagehead{gap:14px!important;margin-bottom:16px!important}
:root[data-fec-theme] .fec43-panel-intro{background:transparent!important;padding:0 0 13px!important;margin-bottom:15px!important;border-bottom-color:var(--fec46-line)!important}
:root[data-fec-theme] .fec43-panel-intro h2{color:var(--fec46-fg)!important}
:root[data-fec-theme] .fec43-panel-intro p{color:var(--fec46-muted)!important}
:root[data-fec-theme] .fec43-panel>article,:root[data-fec-theme] .fec43-panel>.fec43-card{background:var(--fec46-panel)!important;border:1px solid var(--fec46-line)!important;border-radius:11px!important;box-shadow:none!important}
:root[data-fec-theme] .fec43-workspace button.fec43-tab{color:var(--fec46-muted)!important;background:transparent!important}
:root[data-fec-theme] .fec43-workspace button.fec43-tab[aria-selected="true"]{background:var(--fec45-active)!important;color:var(--fec46-fg)!important;border-color:var(--fec46-line)!important}
:root[data-fec-theme] .fec43-workspace button.fec43-tab:hover{background:var(--fec45-soft)!important;color:var(--fec46-fg)!important}
/* Repair the screenshot's near-black numbers and labels on the collection-health KPIs. */
:root[data-fec-theme] .fec43-panel .fec32-kpis{display:grid;gap:9px;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));max-width:100%}
:root[data-fec-theme] .fec43-panel .fec32-kpis>div{display:flex!important;align-items:center;gap:12px;padding:13px 15px!important;min-height:63px!important;border:1px solid var(--fec46-line)!important;background:var(--fec45-soft)!important;border-radius:9px!important;color:var(--fec46-fg)!important}
:root[data-fec-theme] .fec43-panel .fec32-kpis>div strong{font-size:23px!important;font-weight:750!important;line-height:1.1!important;color:var(--fec46-fg)!important;min-width:28px}
:root[data-fec-theme] .fec43-panel .fec32-kpis>div span{font-size:13px!important;line-height:1.45!important;color:var(--fec46-muted)!important;opacity:1!important}
:root[data-fec-theme] .fec365-dashboard-note{background:var(--fec45-soft)!important;color:var(--fec46-fg)!important;border-color:var(--fec46-line)!important}
:root[data-fec-theme] .fec365-dashboard-note .micro{color:var(--fec46-muted)!important}
:root[data-fec-theme] .fec43-panel .fec35-coverage{min-width:0;max-width:100%}
:root[data-fec-theme] .fec43-panel :is(h2,h3,.fec42-panel-head h2){color:var(--fec46-fg)}
:root[data-fec-theme] .fec43-panel :is(.fec42-panel-head p,.fec42-capture-note,.fec42-photo-disclaimer){color:var(--fec46-muted)!important;line-height:1.55}
/* Camera canvas: sensible centred width, stable dimensions while device is off.
   Do NOT alter video stream or canvas capture; visual framing is strictly presentational. */
:root[data-fec-theme] .fec43-panel .fec42-capture-panel{max-width:1120px!important;width:100%;margin-inline:auto!important;display:grid;gap:13px}
:root[data-fec-theme] .fec43-panel .fec42-capture-panel .fec42-panel-head{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:0!important}
:root[data-fec-theme] .fec43-panel #cameraBox{width:100%!important;max-width:980px!important;aspect-ratio:16/10!important;max-height:min(58dvh,630px)!important;min-height:245px!important;margin:0 auto!important;border:1px solid #365f7c!important;border-radius:13px!important;background:radial-gradient(ellipse at 50% 40%,#0b2237,#030c16 75%)!important;box-shadow:0 15px 38px rgba(0,0,0,.13)!important}
:root[data-fec-theme] .fec43-panel #cameraBox video{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important;background:transparent!important}
:root[data-fec-theme] .fec43-panel #cameraBox[data-preview-mode="fill"] video{object-fit:cover!important}
:root[data-fec-theme] .fec43-panel #cameraBox[data-fec43-view="portrait"]{max-width:min(100%,490px)!important;aspect-ratio:3/4!important;max-height:min(64dvh,660px)!important}
:root[data-fec-theme] .fec43-panel #cameraBox[data-fec43-view="portrait"] video{object-fit:contain!important}
:root[data-fec-theme] .fec43-panel #cameraBox[data-fec43-view="inspect"] video{object-fit:cover!important;transform:scale(1.4)!important}
:root[data-fec-theme] .fec43-panel #cameraBox:fullscreen{max-width:none!important;max-height:none!important;min-height:0!important;width:100vw!important;height:100dvh!important;aspect-ratio:auto!important;border-radius:0!important}
:root[data-fec-theme] .fec43-panel #cameraBox .frame{inset:auto!important;position:absolute!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;width:min(62%,360px)!important;height:72%!important;max-height:78%!important;border-radius:7px;box-sizing:border-box;pointer-events:none}
:root[data-fec-theme] .fec43-panel #cameraBox[data-fec43-view="portrait"] .frame{width:66%!important;height:76%!important}
:root[data-fec-theme] .fec43-panel #cameraBox #cameraHint{position:absolute;left:50%;bottom:15px;transform:translateX(-50%);max-width:calc(100% - 28px);width:max-content;text-align:center;background:rgba(9,24,39,.85)!important;color:#e5f2fc!important;border:1px solid rgba(119,173,210,.25);padding:9px 14px!important;border-radius:8px;z-index:4;font-size:12px;line-height:1.45}
:root[data-fec-theme] .fec43-panel .fec42-controlbar{max-width:980px;width:100%;margin:0 auto!important;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 18px;padding:13px!important;border:1px solid var(--fec46-line);border-radius:10px;background:var(--fec45-soft)!important}
:root[data-fec-theme] .fec43-panel .fec42-control-main{display:flex;flex:1 1 350px;flex-wrap:wrap;gap:8px;margin:0!important}
:root[data-fec-theme] .fec43-panel .fec42-controlbar button{min-height:40px!important;border-radius:7px!important;font-size:12px!important}
:root[data-fec-theme] .fec43-panel .fec42-control-tools{display:flex;flex:1 1 300px;flex-wrap:wrap;justify-content:flex-end;gap:6px}
:root[data-fec-theme] .fec43-panel .fec43-camera-modes{max-width:980px;width:100%;margin:0 auto!important;padding:7px 0 3px!important;border-top:0!important;display:flex;flex-wrap:wrap;align-items:center;gap:7px}
:root[data-fec-theme] .fec43-panel .fec43-camera-modes>span{color:var(--fec46-muted)!important}
:root[data-fec-theme] .fec43-panel .fec43-camera-modes button{background:var(--fec45-soft)!important;color:var(--fec46-fg)!important;border-color:var(--fec46-line)!important}
:root[data-fec-theme] .fec43-panel .fec43-camera-modes button[aria-pressed="true"]{background:var(--fec45-active)!important;color:var(--fec46-fg)!important;border-color:var(--fec45-accent)!important}
:root[data-fec-theme] .fec43-panel .fec42-capture-note{max-width:980px;margin:0 auto!important;width:100%}
/* Preserve full image proportions for front/back photographs. Never use object-fit:cover. */
:root[data-fec-theme] .fec43-panel .fec42-photo-panel{max-width:930px!important;width:100%;margin-inline:auto!important}
:root[data-fec-theme] .fec43-panel #photoForm{max-width:100%!important;min-width:0;display:grid;gap:15px}
:root[data-fec-theme] .fec43-panel #photoForm label{max-width:100%;min-width:0}
:root[data-fec-theme] .fec43-panel #photoForm input[type="file"]{width:100%!important;max-width:100%!important;box-sizing:border-box;padding:12px!important;border:1px dashed var(--fec46-line)!important;background:var(--fec45-soft)!important;border-radius:9px!important}
:root[data-fec-theme] .fec43-panel #photoForm img.preview:not([hidden]){display:block!important;position:relative!important;max-width:min(100%,560px)!important;width:auto!important;height:auto!important;max-height:min(62dvh,690px)!important;object-fit:contain!important;object-position:center!important;margin:3px auto 12px!important;padding:12px;background:var(--fec45-soft);border:1px solid var(--fec46-line);border-radius:11px;box-sizing:border-box;box-shadow:none!important}
:root[data-fec-theme] .fec43-panel #photoForm img.preview[hidden]{display:none!important}
:root[data-fec-theme] .fec43-panel #photoForm #photoStatus{overflow-wrap:anywhere;color:var(--fec46-muted)}
:root[data-fec-theme] .fec43-panel #photoForm button[type="submit"]{justify-self:start;min-height:43px}
/* Short contextual capture guidance, injected only where the current camera exists. */
.fec46-capture-tips{display:flex;flex-wrap:wrap;gap:8px;align-items:center;max-width:980px;width:100%;margin:0 auto;padding:0;list-style:none}
.fec46-capture-tips li{border:1px solid var(--fec46-line);background:var(--fec45-soft);color:var(--fec46-muted);padding:7px 11px;border-radius:6px;font-size:11px;line-height:1.35}
.fec46-capture-tips li::before{content:"✓";font-weight:800;color:var(--fec45-accent);margin-right:7px}
.fec46-photo-caption{max-width:560px;margin:-5px auto 2px!important;text-align:center;font-size:12px;color:var(--fec46-muted);line-height:1.45}
:root[data-fec-theme] .fec43-panel .fec44-camera-tools{max-width:980px;margin-inline:auto!important;background:var(--fec45-soft)!important;border-color:var(--fec46-line)!important}
:root[data-fec-theme] .fec43-panel .fec44-camera-tools>summary{color:var(--fec46-fg)!important}
:root[data-fec-theme] .fec43-panel .fec44-workflow{border-top-color:var(--fec46-line)!important}
:root[data-fec-theme] .fec44-workflow-counter{color:var(--fec46-muted)!important}
:root[data-fec-theme] .fec41-footer{background:var(--fec45-panel)!important;border-color:var(--fec46-line)!important}
:root[data-fec-theme] .fec41-footer :is(a,strong,.fec41-footer-bottom){color:var(--fec46-muted)!important}
@media(max-width:900px){:root[data-fec-theme] .fec43-panel #cameraBox{max-height:56dvh!important;min-height:210px!important}}
@media(max-width:650px){body[data-workspace="member"] .main{padding-inline:12px!important}:root[data-fec-theme] .fec43-panel #cameraBox{aspect-ratio:4/5!important;max-height:57dvh!important;min-height:260px!important}:root[data-fec-theme] .fec43-panel #cameraBox .frame{width:73%!important;height:72%!important}:root[data-fec-theme] .fec43-panel #cameraBox[data-fec43-view="landscape"]{aspect-ratio:4/3!important;min-height:220px!important}:root[data-fec-theme] .fec43-panel .fec42-controlbar{padding:10px!important}:root[data-fec-theme] .fec43-panel .fec42-controlbar button{flex:1 1 auto}:root[data-fec-theme] .fec43-panel .fec42-control-tools{justify-content:flex-start}:root[data-fec-theme] .fec43-panel .fec42-capture-panel{gap:10px}:root[data-fec-theme] .fec43-panel #photoForm img.preview:not([hidden]){max-height:55dvh!important;padding:8px}}
@media(prefers-reduced-motion:reduce){.fec46-capture-tips,.fec43-panel #cameraBox{scroll-behavior:auto!important}}

/* === assets/scanner-v47.css === */
/* Fair E Cards Scanner V4.7 — cohesive collector workspace; progressive styling layer.
   Intentionally never modifies scanner image data, authentication, network or forms. */
:root[data-fec-theme]{
 --fec47-radius:12px;--fec47-radius-sm:8px;
 --fec47-border:var(--fec45-line);--fec47-surface:var(--fec45-panel);
 --fec47-quiet:var(--fec45-soft);--fec47-ink:var(--fec45-fg);
 --fec47-muted:var(--fec45-muted);--fec47-blue:var(--fec45-accent);
 --fec47-ease:cubic-bezier(.2,.8,.2,1);
}
:root[data-fec-theme="light"]{--fec47-shadow:0 2px 8px rgba(15,41,66,.035),0 16px 35px rgba(15,41,66,.028)}
:root[data-fec-theme="dark"]{--fec47-shadow:0 4px 18px rgba(0,0,0,.12)}
/* Visual hierarchy and touch targets across all modules. */
:root[data-fec-theme] body[data-workspace="member"] .main{padding:clamp(15px,2vw,32px)!important;min-width:0}
:root[data-fec-theme] :is(.fec41-pagehead,.fec43-workspace,.fec43-panel,.fec41-shell){min-width:0}
:root[data-fec-theme] .fec41-pagehead{padding-bottom:16px!important;margin-bottom:18px!important}
:root[data-fec-theme] .fec41-page-title-line h1{font-size:clamp(24px,2.1vw,33px)!important;line-height:1.15!important;letter-spacing:-.035em!important}
:root[data-fec-theme] .fec41-page-description{font-size:13px!important;line-height:1.55!important;max-width:72ch}
:root[data-fec-theme] :is(.fec43-card,.fec43-panel>article,.fec43-panel>.fec43-card,.metrics>div,.quick,article.fec45-pref-card){border:1px solid var(--fec47-border)!important;border-radius:var(--fec47-radius)!important;box-shadow:var(--fec47-shadow)!important}
:root[data-fec-theme] :is(.fec43-panel,.fec43-workspace) :is(h2,h3){letter-spacing:-.02em!important}
:root[data-fec-theme] .fec43-panel-intro{margin-bottom:14px!important}
:root[data-fec-theme] .fec43-panel-intro h2{font-size:16px!important;line-height:1.35!important}
:root[data-fec-theme] .fec43-tabs{display:flex!important;flex-wrap:wrap;gap:8px!important;padding:0 0 11px!important;margin-bottom:13px!important;overflow-x:auto;scrollbar-width:thin}
:root[data-fec-theme] .fec43-tab{min-height:42px!important;padding:9px 15px!important;border:1px solid var(--fec47-border)!important;border-radius:var(--fec47-radius-sm)!important;white-space:nowrap;transition:background .16s,color .16s,border-color .16s,transform .16s var(--fec47-ease)}
:root[data-fec-theme] .fec43-tab[aria-selected="true"]{box-shadow:inset 0 -2px 0 var(--fec47-blue)!important}
:root[data-fec-theme] .fec43-tab:not([aria-selected="true"]):hover{transform:translateY(-1px)}
:root[data-fec-theme] :is(button,.linkbutton,.smallbutton,.fec41-page-related a){min-height:36px;transition:background .16s,color .16s,border-color .16s,box-shadow .16s,transform .16s var(--fec47-ease)}
:root[data-fec-theme] :is(button,.linkbutton,.smallbutton):active:not(:disabled){transform:translateY(1px)}
:root[data-fec-theme] :is(button,input,select,textarea,summary,a):focus-visible{outline:3px solid var(--fec47-blue)!important;outline-offset:3px!important}
:root[data-fec-theme] :is(input,textarea,select){max-width:100%;border-color:var(--fec47-border)!important}
:root[data-fec-theme] :is(input,textarea,select):focus{border-color:var(--fec47-blue)!important}
:root[data-fec-theme] :is(.fec41-side,.fec41-top,.fec41-footer){border-color:var(--fec47-border)!important}
:root[data-fec-theme] .fec41-group-items a{position:relative;min-height:42px!important;padding-block:9px!important}
:root[data-fec-theme] .fec41-group-items a[aria-current="page"]{box-shadow:inset 3px 0 var(--fec47-blue);background:var(--fec45-active)!important;color:var(--fec47-ink)!important}
:root[data-fec-theme] .fec41-group-items a:hover{background:var(--fec47-quiet)!important}
:root[data-fec-theme] .fec41-nav-group>summary{min-height:41px;display:flex;align-items:center}
/* SVG nav motion should be unmistakable, but avoid spinning or layout shifts. */
:root[data-fec-theme] .fec41-group-items a>.fec45-motion-icon,:root[data-fec-theme] .fec44-rail-link>.fec45-motion-icon{transform:none!important;transition:transform .22s var(--fec47-ease),stroke .2s ease!important}
:root[data-fec-theme] :is(.fec41-group-items a,.fec44-rail-link):is(:hover,:focus-visible)>.fec45-motion-icon{transform:translateY(-2px) scale(1.12)!important;stroke:var(--fec47-blue)!important}
/* Collection Health: never dark text on dark panels. */
:root[data-fec-theme] .fec43-panel .fec32-kpis>div{background:var(--fec47-quiet)!important;border:1px solid var(--fec47-border)!important;box-shadow:none!important;gap:14px!important}
:root[data-fec-theme] .fec43-panel .fec32-kpis>div strong{color:var(--fec47-ink)!important;opacity:1!important}
:root[data-fec-theme] .fec43-panel .fec32-kpis>div span{color:var(--fec47-muted)!important;opacity:1!important}
/* Consistent camera station and card-shaped guide. Framing is visual only. */
:root[data-fec-theme] .fec43-panel .fec42-capture-panel{max-width:1120px!important;gap:12px!important}
:root[data-fec-theme] .fec43-panel #cameraBox{isolation:isolate!important;overflow:hidden!important;max-width:880px!important;aspect-ratio:16/10!important;max-height:560px!important;min-height:255px!important;border:1px solid #476c88!important;border-radius:14px!important;background:radial-gradient(ellipse at center,#102942 0%,#07131e 72%,#020a12 100%)!important;box-shadow:0 12px 28px rgba(4,22,40,.18)!important}
:root[data-fec-theme] .fec43-panel #cameraBox::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:1;background:linear-gradient(transparent 49.87%,rgba(82,185,238,.10) 50%,transparent 50.13%);opacity:.3}
:root[data-fec-theme] .fec43-panel #cameraBox .frame{width:auto!important;height:min(76%,440px)!important;aspect-ratio:2.5/3.5!important;max-width:76%!important;max-height:83%!important;border:2px solid rgba(126,209,250,.85)!important;border-radius:12px!important;box-shadow:0 0 0 999px rgba(0,0,0,.15),0 0 30px rgba(51,157,221,.12)!important}
:root[data-fec-theme] .fec43-panel #cameraBox[data-fec43-view="portrait"]{width:min(100%,495px)!important;aspect-ratio:3/4!important;max-height:650px!important}
:root[data-fec-theme] .fec43-panel #cameraBox[data-fec43-view="portrait"] .frame{height:72%!important;max-width:75%!important}
:root[data-fec-theme] .fec43-panel #cameraBox:fullscreen{width:100vw!important;max-width:none!important;max-height:none!important;border-radius:0!important}
:root[data-fec-theme] .fec43-panel #cameraBox #cameraHint{width:auto!important;max-width:min(92%,400px)!important;bottom:13px!important;padding:9px 13px!important;line-height:1.5!important;box-shadow:0 6px 18px rgba(0,0,0,.25)}
:root[data-fec-theme] .fec43-panel .fec42-controlbar{gap:10px 14px!important;max-width:880px!important;padding:13px!important;border-radius:10px!important}
:root[data-fec-theme] .fec43-panel .fec43-camera-modes,:root[data-fec-theme] .fec43-panel .fec46-capture-tips,:root[data-fec-theme] .fec43-panel .fec42-capture-note{max-width:880px!important}
:root[data-fec-theme] .fec43-panel .fec46-capture-tips li{font-size:12px!important;padding:9px 12px!important}
:root[data-fec-theme] .fec43-panel #photoForm img.preview:not([hidden]){max-width:min(100%,490px)!important;max-height:min(67dvh,680px)!important;object-fit:contain!important;object-position:center!important;padding:14px!important;box-shadow:var(--fec47-shadow)!important}
/* Functional keyboard-accessible workspace jump overlay. */
.fec47-jump-trigger{display:inline-flex;gap:8px;align-items:center;justify-content:center;white-space:nowrap;padding:8px 12px;font-weight:600;font-size:12px;border:1px solid var(--fec47-border)!important;border-radius:8px;background:var(--fec47-surface)!important;color:var(--fec47-ink)!important;cursor:pointer}
.fec47-jump-trigger svg{width:17px;height:17px;stroke:var(--fec47-blue);fill:none;stroke-width:2}
.fec47-jump-trigger kbd{font-size:10px;padding:2px 4px;border-radius:4px;border:1px solid var(--fec47-border);color:var(--fec47-muted);font-family:inherit}
.fec47-jump-dialog{border:1px solid var(--fec47-border)!important;border-radius:15px!important;background:var(--fec47-surface)!important;color:var(--fec47-ink)!important;width:min(560px,calc(100vw - 24px));max-height:min(80dvh,680px);padding:0!important;box-shadow:0 30px 100px rgba(0,0,0,.32)!important;overflow:hidden}
.fec47-jump-dialog::backdrop{background:rgba(5,16,31,.66);backdrop-filter:blur(3px)}
.fec47-jump-head{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:17px 18px;border-bottom:1px solid var(--fec47-border)}
.fec47-jump-head strong{font-size:16px;letter-spacing:-.02em}
.fec47-jump-close{font-size:12px!important;min-height:32px!important}
.fec47-jump-body{padding:15px 18px 18px}
.fec47-jump-body input{width:100%!important;min-height:46px!important;padding:12px 13px!important;background:var(--fec45-field)!important;color:var(--fec47-ink)!important;border:1px solid var(--fec47-border)!important;border-radius:8px!important}
.fec47-jump-results{display:grid;gap:5px;max-height:min(48dvh,370px);overflow-y:auto;padding:11px 2px 2px}
.fec47-jump-results a{display:flex;align-items:center;justify-content:space-between;min-height:41px;gap:12px;padding:9px 11px;border-radius:8px;border:1px solid transparent;color:var(--fec47-ink)!important;text-decoration:none!important;font-size:13px;font-weight:600}
.fec47-jump-results a:hover,.fec47-jump-results a:focus-visible{background:var(--fec47-quiet)!important;border-color:var(--fec47-border)!important}
.fec47-jump-results small{font-size:11px;color:var(--fec47-muted);font-weight:400}
.fec47-jump-empty{font-size:13px;color:var(--fec47-muted);padding:12px}
.fec47-jump-hint{font-size:11px;color:var(--fec47-muted);padding-top:10px;margin:0}
@media(max-width:900px){:root[data-fec-theme] .fec41-page-title-line h1{font-size:25px!important}}
@media(max-width:650px){:root[data-fec-theme] body[data-workspace="member"] .main{padding:12px!important}:root[data-fec-theme] .fec43-panel #cameraBox{min-height:235px!important;max-height:53dvh!important;aspect-ratio:4/5!important}:root[data-fec-theme] .fec43-panel #cameraBox[data-fec43-view="landscape"]{aspect-ratio:4/3!important}:root[data-fec-theme] .fec43-panel #cameraBox .frame{height:67%!important;max-width:68%!important}:root[data-fec-theme] .fec43-panel .fec42-controlbar{padding:10px!important}:root[data-fec-theme] .fec43-tab{min-height:42px!important}:root[data-fec-theme] .fec41-page-title-line h1{font-size:23px!important}.fec47-jump-trigger kbd{display:none}.fec47-jump-trigger{padding:8px 9px!important}}
@media(prefers-reduced-motion:reduce){:root[data-fec-theme] :is(.fec43-tab,.fec41-group-items a>.fec45-motion-icon,.fec44-rail-link>.fec45-motion-icon,button){transition:none!important;animation:none!important;transform:none!important}}

/* === assets/scanner-v48.css === */
/* Fair E Cards Scanner V4.8 — live geometric guide + calm premium capture controls */
body[data-workspace="member"] .fec43-panel #cameraBox{isolation:isolate}
body[data-workspace="member"] #cameraBox .fec48-track{position:absolute!important;inset:0;display:block;width:100%;height:100%;pointer-events:none;z-index:3;overflow:visible;filter:drop-shadow(0 0 7px rgba(20,170,245,.18))}
body[data-workspace="member"] #cameraBox .fec48-track[hidden]{display:none!important}
body[data-workspace="member"] #cameraBox .fec48-polygon{fill:rgba(0,174,239,.045);stroke:#6edcff;stroke-width:2.4;stroke-linejoin:round;stroke-dasharray:14 7;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 3px #00aeef)}
body[data-workspace="member"] #cameraBox .fec48-point{fill:#f6fcff;stroke:#00aeef;stroke-width:2.5;vector-effect:non-scaling-stroke}
body[data-workspace="member"] #cameraBox:not(.fec48-tracked) .fec48-track{opacity:0}
body[data-workspace="member"] #cameraBox.fec48-tracked .frame{opacity:.08!important;box-shadow:none!important}
body[data-workspace="member"] #cameraBox.fec42-hide-guide .fec48-track{display:none!important}
body[data-workspace="member"] .fec48-assist{margin-top:14px;padding:17px 18px;background:linear-gradient(125deg,rgba(23,53,79,.95),rgba(8,29,47,.98));border:1px solid #355b79;border-radius:12px;color:#eaf2fa;box-shadow:0 7px 26px rgba(0,0,0,.08)}
body[data-workspace="member"] .fec48-assist-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:13px}
body[data-workspace="member"] .fec48-assist-head strong{color:#f6fbff;font-size:15px;letter-spacing:.01em}
body[data-workspace="member"] .fec48-beta{display:inline-flex;align-items:center;gap:6px;font-size:10px;color:#b6d7e9;font-weight:650;letter-spacing:.07em;text-transform:uppercase}
body[data-workspace="member"] .fec48-beta:before{content:"";height:7px;width:7px;border-radius:50%;background:#00aeef;box-shadow:0 0 9px #00aeef}
body[data-workspace="member"] .fec48-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
body[data-workspace="member"] .fec48-toggle{display:flex!important;align-items:flex-start;gap:10px;padding:12px;border:1px solid rgba(117,164,196,.35);background:rgba(8,24,40,.55);border-radius:9px;min-width:0;cursor:pointer;color:#eaf2fa!important}
body[data-workspace="member"] .fec48-toggle input{width:20px!important;height:20px!important;flex:0 0 auto;accent-color:#00aeef;margin:1px 0 0!important;cursor:pointer}
body[data-workspace="member"] .fec48-toggle-word{display:flex;flex-direction:column;gap:4px;min-width:0}
body[data-workspace="member"] .fec48-toggle strong{font-size:13px;line-height:1.3;color:#fff!important}
body[data-workspace="member"] .fec48-toggle small{font-size:11px;line-height:1.4;color:#b5cbda!important}
body[data-workspace="member"] .fec48-session{display:flex;align-items:flex-end;gap:12px;margin-top:12px;flex-wrap:wrap}
body[data-workspace="member"] .fec48-select-label{display:flex;gap:5px;flex-direction:column;color:#cde5f4;font-size:11px}
body[data-workspace="member"] .fec48-select-label select{min-width:150px;background:#112d44;color:#fff;border:1px solid #486a86;border-radius:7px;padding:10px}
body[data-workspace="member"] .fec48-again{font-size:12px;min-height:40px;margin:0}
body[data-workspace="member"] .fec48-again[hidden]{display:none!important}
body[data-workspace="member"] .fec48-status{min-height:19px;margin:13px 0 8px!important;color:#c8ddeb!important;font-size:12px;line-height:1.45}
body[data-workspace="member"] .fec48-assist[data-status="ready"] .fec48-status{color:#8be4ff!important}
body[data-workspace="member"] .fec48-assist[data-status="captured"] .fec48-status{color:#bff3ca!important}
body[data-workspace="member"] .fec48-assist[data-status="warning"] .fec48-status{color:#f6d391!important}
body[data-workspace="member"] .fec48-progress{height:5px;border-radius:99px;overflow:hidden;background:#234258}
body[data-workspace="member"] .fec48-progress-fill{display:block;height:100%;width:0;background:linear-gradient(90deg,#00aeef,#9fe9ff);border-radius:99px;transition:width .3s ease}
@media(max-width:750px){body[data-workspace="member"] .fec48-options{grid-template-columns:1fr}body[data-workspace="member"] .fec48-assist{padding:13px}body[data-workspace="member"] .fec48-assist-head{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){body[data-workspace="member"] .fec48-progress-fill{transition:none!important}}

/* === assets/scanner-v49.css === */
/* Fair E Cards Scanner V4.9 — four-corner correction and original/corrected review.
   Isolated selectors; older routes and assets retain their existing styles. */
body[data-workspace="member"] .fec49-prep{margin:14px 0 0;padding:20px;border:1px solid rgba(94,167,204,.34);border-radius:14px;background:linear-gradient(132deg,rgba(8,24,40,.97),rgba(19,45,66,.95));box-shadow:0 14px 32px rgba(0,0,0,.12);color:#eaf2fa}
body[data-workspace="member"] .fec49-prep-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
body[data-workspace="member"] .fec49-title{font-size:16px;font-weight:750;letter-spacing:-.012em;color:#fff}
body[data-workspace="member"] .fec49-local{font-size:10px;font-weight:750;letter-spacing:.085em;text-transform:uppercase;color:#a5e5f6;border:1px solid rgba(0,174,239,.35);padding:5px 9px;border-radius:99px}
body[data-workspace="member"] .fec49-note{font-size:12px;line-height:1.65;color:#b8d2e3;margin:8px 0 16px!important;max-width:75ch}
body[data-workspace="member"] .fec49-prep-options{display:flex;align-items:end;gap:15px;flex-wrap:wrap}
body[data-workspace="member"] .fec49-control{display:flex!important;align-items:center;gap:10px;flex:1 1 245px;min-width:0;font-size:13px;font-weight:600;color:#f0f7fb!important;border:1px solid rgba(124,178,210,.26);border-radius:10px;padding:12px;cursor:pointer;background:rgba(7,28,44,.7)}
body[data-workspace="member"] .fec49-control input{width:19px!important;height:19px!important;flex-shrink:0;margin:0!important;accent-color:#00aeef}
body[data-workspace="member"] .fec49-format{display:flex!important;flex-direction:column;gap:6px;flex:1 1 215px;font-size:11px;font-weight:750;color:#bbd6e6!important;letter-spacing:.025em;margin:0!important}
body[data-workspace="member"] .fec49-format select{width:100%;height:43px;background:#0b2b42;color:#f1faff;border:1px solid #48718c;border-radius:9px;padding:8px 10px;font-size:12px}
body[data-workspace="member"] .fec49-side-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:16px}
body[data-workspace="member"] .fec49-side{min-width:0;border:1px solid rgba(133,187,215,.22);border-radius:11px;background:rgba(4,17,30,.48);padding:13px;display:grid;align-content:start;gap:7px}
body[data-workspace="member"] .fec49-side-label{font-size:12px;font-weight:750;color:#f7fbff}
body[data-workspace="member"] .fec49-side-state{min-height:31px;font-size:11px;color:#a4c7da;line-height:1.4}
body[data-workspace="member"] .fec49-side-actions{display:flex;gap:7px;flex-wrap:wrap}
body[data-workspace="member"] .fec49-side-actions button{padding:8px 11px;min-height:35px;min-width:0!important;font-size:11px;line-height:1.3;border-radius:7px;margin:0!important}
body[data-workspace="member"] .fec49-side-actions button:disabled{opacity:.4;cursor:not-allowed}
body[data-workspace="member"] .fec49-status{font-size:11px;line-height:1.6;color:#b9dce9!important;margin:13px 0 0!important;min-height:17px}
body[data-workspace="member"] .fec49-prep[data-status="warning"] .fec49-status{color:#ffd49b!important}
body[data-workspace="member"] .fec49-prep[data-status="ready"] .fec49-status{color:#a5e9d7!important}
body[data-workspace="member"] .fec49-dialog{border:1px solid #4b82a7;border-radius:16px;background:#071c30;color:#eaf2fa;padding:22px;box-shadow:0 24px 65px rgba(0,0,0,.6);width:min(760px,calc(100vw - 22px));max-height:calc(100dvh - 22px);overflow:auto}
body[data-workspace="member"] .fec49-dialog::backdrop{background:rgba(2,10,21,.82);backdrop-filter:blur(3px)}
body[data-workspace="member"] .fec49-dialog-head h3{font-size:19px;color:#fff;margin:0 0 8px}
body[data-workspace="member"] .fec49-dialog-head p{font-size:12px;color:#bed7e8;margin:0 0 14px;line-height:1.6}
body[data-workspace="member"] .fec49-edit-canvas{display:block;max-width:100%;height:auto;max-height:min(58dvh,650px);width:auto;margin:0 auto;background:#020911;border:1px solid #3b6a88;border-radius:8px;touch-action:none;cursor:crosshair}
body[data-workspace="member"] .fec49-dialog-status{font-size:12px;color:#b8d6e8;margin:13px 0!important}
body[data-workspace="member"] .fec49-dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
body[data-workspace="member"] .fec49-dialog-actions button{margin:0!important;min-height:42px;font-size:12px}
body[data-workspace="member"] .fec49-side-actions button:focus-visible,body[data-workspace="member"] .fec49-dialog button:focus-visible,body[data-workspace="member"] .fec49-format select:focus-visible{outline:2px solid #78dbff;outline-offset:3px}
/* Make original / corrected photo preview a consistent card-sized image, without accidental cropping. */
body[data-workspace="member"] #photoForm #frontPreview,body[data-workspace="member"] #photoForm #backPreview{display:block;object-fit:contain;object-position:center;width:auto!important;height:auto!important;max-width:100%!important;max-height:min(48vh,470px)!important;margin:9px auto 17px!important;background:rgba(4,14,29,.56);border:1px solid rgba(112,163,197,.28);border-radius:10px;padding:7px}
body[data-workspace="member"] #photoForm #frontPreview[hidden],body[data-workspace="member"] #photoForm #backPreview[hidden]{display:none!important}
@media(max-width:880px){body[data-workspace="member"] .fec49-side-rows{grid-template-columns:1fr}body[data-workspace="member"] .fec49-prep{padding:14px}body[data-workspace="member"] .fec49-side-actions button{flex:1 1 42%}}
@media(max-width:500px){body[data-workspace="member"] .fec49-dialog{padding:12px}body[data-workspace="member"] .fec49-dialog-actions button{flex:1 1 35%}}
@media(prefers-reduced-motion:reduce){body[data-workspace="member"] .fec49-prep *{scroll-behavior:auto!important;transition:none!important}}

/* === assets/scanner-v51.css === */
/* Fair E Cards Scanner V5.1 -- Devices and Pricing */
.fec51-intro{display:flex;gap:1.25rem;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;margin-bottom:1rem}
.fec51-intro h2{margin:.25rem 0 .5rem;font-size:clamp(1.3rem,2.1vw,1.95rem)}
.fec51-intro p{margin:0;max-width:66ch;opacity:.78}
.fec51-kicker{font-size:.7rem;letter-spacing:.13em;text-transform:uppercase;font-weight:800;color:#80bce6}
.fec51-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;align-items:start}
.fec51-panel{min-width:0;padding:1.15rem;border-radius:12px;border:1px solid var(--fec45-line,#345064);background:var(--fec45-panel,#142438);box-shadow:0 10px 28px rgba(0,0,0,.08)}
.fec51-panel h3{margin:0 0 .55rem;font-size:1.08rem}.fec51-panel p{line-height:1.5}
.fec51-panel input,.fec51-panel select{width:100%;max-width:100%;box-sizing:border-box}
.fec51-panel .actions{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:.6rem}
.fec51-status{padding:.75rem;border:1px solid rgba(125,173,210,.35);border-radius:8px;min-height:1.2rem;overflow-wrap:anywhere}
.fec51-status[data-kind=good]{border-color:#3da68d}.fec51-status[data-kind=warn]{border-color:#d5a353}
.fec51-owned{display:flex;gap:.8rem;justify-content:space-between;align-items:center;padding:.9rem 0;border-top:1px solid rgba(137,164,185,.22)}
.fec51-owned strong{display:block}.fec51-owned small{display:block;opacity:.75;overflow-wrap:anywhere}.fec51-owned .actions{margin:0}
.fec51-flash{outline:2px solid #2ebfd9;outline-offset:2px;border-radius:4px}
.fec51-quote{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin-top:1rem}
.fec51-quote div{padding:.75rem;border:1px solid rgba(137,164,185,.25);border-radius:8px}
.fec51-quote small{display:block;opacity:.8}.fec51-quote strong{display:block;margin-top:.35rem;font-size:1.05rem}
.fec51-disclaimer{font-size:.86rem;opacity:.78;line-height:1.55}
.fec51-camera-preview{max-width:100%;max-height:200px;object-fit:contain;display:block;margin:1rem auto}
.fec51-panel a{overflow-wrap:anywhere}
@media(max-width:820px){.fec51-layout{grid-template-columns:minmax(0,1fr)}.fec51-panel{padding:1rem}.fec51-owned{align-items:flex-start;flex-wrap:wrap}.fec51-quote{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.fec51-flash{transition:none}}

/* Explicit daylight appearance and improved text contrast */
html[data-fec-theme="light"] .fec51-panel, html[data-theme="light"] .fec51-panel{background:#fff;color:#172638;border-color:#cbd7e1}
html[data-fec-theme="light"] .fec51-kicker{color:#135c8e}
html[data-fec-theme="light"] .fec51-status{border-color:#a5becf;background:#f3f8fc;color:#172638}
html[data-fec-theme="light"] .fec51-quote div{border-color:#d1dce5}

/* === assets/scanner-v52.css === */
/* V5.2 — card dossier. Scoped selectors avoid altering older Scanner modules. */
.fec52-dossier{--f52-bg:rgba(19,31,51,.72);--f52-edge:rgba(173,196,228,.2);--f52-ink:#f0f5fd;--f52-dim:#b9c6d8;--f52-cyan:#76d8f7;display:grid;gap:18px;max-width:1440px;width:100%;min-width:0;margin:0 auto 24px}
html[data-fec-theme="light"] .fec52-dossier,html[data-theme="light"] .fec52-dossier{--f52-bg:#fff;--f52-edge:#d7dfe9;--f52-ink:#12273e;--f52-dim:#4f6075;--f52-cyan:#047ca6}
.fec52-dossier *,form[data-fec52-form] *{box-sizing:border-box}
.fec52-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;background:var(--f52-bg);padding:clamp(18px,2.5vw,28px);border:1px solid var(--f52-edge);border-radius:14px}
.fec52-hero h2{font-size:clamp(1.4rem,2vw,2.1rem);margin:4px 0 10px;color:var(--f52-ink)}
.fec52-hero p{margin:0;line-height:1.55;color:var(--f52-dim);max-width:60ch}
.fec52-hero-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.fec52-state{padding:16px 20px;border:1px solid var(--f52-edge);border-left:4px solid #3fa7d7;background:var(--f52-bg);border-radius:10px;display:flex;gap:8px 16px;flex-wrap:wrap;align-items:baseline;color:var(--f52-ink)}
.fec52-state span{color:var(--f52-dim);font-size:.93rem}
.fec52-evidence{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0}
.fec52-evidence-face{padding:18px;background:var(--f52-bg);border:1px solid var(--f52-edge);border-radius:12px;min-width:0;display:flex;flex-direction:column;gap:12px;color:var(--f52-ink)}
.fec52-face-heading{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.fec52-face-heading h3{margin:0;font-size:1.1rem;color:var(--f52-ink)}
.fec52-chip{font-size:.73rem;padding:4px 10px;border-radius:99px;font-weight:750;letter-spacing:.02em}
.fec52-chip.has-photo{background:rgba(20,163,106,.16);color:#36d69b}
.fec52-chip.needs-photo{background:rgba(197,125,44,.18);color:#eab770}
.fec52-evidence-face>a{display:flex;justify-content:center;align-items:center;min-height:260px;max-height:480px;background:rgba(8,14,25,.3);border-radius:10px;overflow:hidden;padding:12px}
.fec52-evidence-face img{display:block;max-height:440px;max-width:100%;object-fit:contain;aspect-ratio:5/7;height:auto;width:auto;filter:none}
.fec52-evidence-face small{color:var(--f52-dim)}
.fec52-missing-photo{min-height:260px;border:1px dashed var(--f52-edge);border-radius:10px;display:grid;place-content:center;gap:12px;text-align:center;padding:24px;color:var(--f52-dim)}
.fec52-missing-photo span{font-size:2rem;letter-spacing:.3em;font-weight:750;color:var(--f52-cyan)}
.fec52-missing-photo p{margin:0}
.fec52-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0}
.fec52-panel{min-width:0;border:1px solid var(--f52-edge);border-radius:12px;padding:clamp(16px,2vw,24px);background:var(--f52-bg);color:var(--f52-ink)}
.fec52-panel>h3{margin:0 0 18px;font-size:1.16rem;color:var(--f52-ink)}
.fec52-panel>p{line-height:1.6;color:var(--f52-dim)}
.fec52-details{margin:0;display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.fec52-details div{border-bottom:1px solid var(--f52-edge);padding:9px 0;display:grid;grid-template-columns:minmax(110px,.85fr) minmax(0,1.25fr);gap:16px}
.fec52-details div:last-child{border:0}
.fec52-details dt{font-size:.86rem;color:var(--f52-dim)}
.fec52-details dd{margin:0;font-weight:620;overflow-wrap:anywhere;color:var(--f52-ink)}
.fec52-panel form,.fec52-panel fieldset{min-width:0}
.fec52-facts{border:1px solid var(--f52-edge);border-radius:10px;padding:16px;margin:0 0 16px}
.fec52-facts legend{font-weight:750;color:var(--f52-ink);padding:0 6px}
.fec52-facts p{color:var(--f52-dim);font-size:.9rem}
.fec52-facts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.fec52-facts-grid label,.fec52-upload{min-width:0;display:flex;flex-direction:column;gap:7px;font-size:.9rem}
.fec52-facts-grid input,.fec52-upload input{min-width:0;width:100%}
.fec52-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0 20px}
.fec52-upload{border:1px dashed var(--f52-edge);border-radius:10px;padding:16px;background:rgba(109,167,223,.04)}
.fec52-upload span,.fec52-upload small{color:var(--f52-dim);font-weight:400;line-height:1.45}
.fec52-upload.fec52-must-provide{border-color:rgba(205,147,66,.9)}
.fec52-upload-preview{width:100%;max-height:250px;object-fit:contain;border-radius:8px;background:rgba(0,0,0,.12)}
.fec52-upload-preview[hidden]{display:none!important}
.fec52-rule,.fec52-privacy{font-size:.88rem;line-height:1.55;color:var(--f52-dim)}
.fec52-client-status{min-height:1.5em;font-size:.9rem;line-height:1.5}
form[data-fec52-form]{min-width:0}
form[data-fec52-form] .fields{min-width:0}
@media(max-width:980px){.fec52-facts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.fec52-evidence,.fec52-sections{grid-template-columns:minmax(0,1fr)}.fec52-hero-actions{width:100%}.fec52-evidence-face>a{min-height:200px}}
@media(max-width:540px){.fec52-facts-grid,.fec52-upload-grid{grid-template-columns:minmax(0,1fr)}.fec52-details div{grid-template-columns:minmax(0,1fr);gap:4px}.fec52-evidence-face{padding:12px}.fec52-missing-photo{min-height:220px}.fec52-panel{padding:15px}}
@media(prefers-reduced-motion:reduce){.fec52-dossier *,form[data-fec52-form] *{animation:none!important;transition:none!important}}

.fec52-reference{padding-top:12px;margin-top:18px;border-top:1px solid var(--f52-edge)}
.fec52-reference h4{margin:0 0 12px}
.fec52-reference-content{display:grid;grid-template-columns:minmax(100px,180px) minmax(0,1fr);gap:14px;align-items:start}
.fec52-reference .fec34-art{margin:0;min-width:0;max-width:180px}.fec52-reference .fec34-art img{max-width:100%;height:auto}
@media(max-width:540px){.fec52-reference-content{grid-template-columns:minmax(0,1fr)}}
form[data-fec52-form] select,form[data-fec52-form] input,form[data-fec52-form] textarea{max-width:100%;min-width:0}
form[data-fec52-form] select{width:100%}

/* === assets/scanner-v53.css === */
/* Fair E Cards Scanner V5.3 — responsive layout system.
   Restrained structural rules; no changes to scanner optics, database or form logic.
   Loaded after every previous Scanner CSS layer. */
:root[data-fec-theme]{
  --f53-gap:clamp(12px,1.25vw,20px);
  --f53-pad:clamp(14px,1.7vw,24px);
  --f53-line:var(--fec45-line,#cbd7e2);
  --f53-ink:var(--fec45-fg,#1c3045);
  --f53-muted:var(--fec45-muted,#526779);
  --f53-surface:var(--fec45-panel,#fff);
  --f53-soft:var(--fec45-soft,#eff4f8);
  --f53-accent:var(--fec45-accent,#176ba2);
}
html{min-width:320px}body{min-width:320px}
:root[data-fec-theme] body[data-workspace="member"] :is(.fec41-shell,.main,.fec43-workspace,.fec43-panel,.fec43-panels,.fec42-studio-layout,.fec42-capture-panel,.fec42-photo-panel,.fec50-flow,.fec51-layout,.fec52-dossier){min-width:0;max-width:100%}
:root[data-fec-theme] body[data-workspace="member"] .fec41-shell{width:100%;margin:0;max-width:none!important}
:root[data-fec-theme] body[data-workspace="member"] .main{flex:1 1 0;max-width:none!important;width:0;min-width:0;padding:clamp(16px,1.8vw,30px)!important}
:root[data-fec-theme] body[data-workspace="member"] .main :is(article,.quick,.fec43-card,.fec40-section,.fec51-panel,.fec52-panel,.fec52-evidence-face){min-width:0;overflow-wrap:anywhere}
:root[data-fec-theme] body[data-workspace="member"] .main :is(.metrics,.quickgrid,.cardgrid,.fields,.split,.fec40-grid,.fec32-grid,.fec34-gallery,.fec35-photo-grid,.fec42-studio-layout,.fec52-evidence,.fec52-sections,.fec52-facts-grid,.fec52-upload-grid){max-width:100%;min-width:0}
:root[data-fec-theme] body[data-workspace="member"] .main :is(img,svg,video,canvas){max-width:100%}
:root[data-fec-theme] body[data-workspace="member"] :is(input,select,textarea){min-width:0;max-width:100%;font-size:16px}
:root[data-fec-theme] body[data-workspace="member"] input[type=file]{width:100%;overflow:hidden;white-space:normal;overflow-wrap:anywhere}
:root[data-fec-theme] body[data-workspace="member"] input[type=file]::file-selector-button{max-width:100%;font-size:13px;padding:9px 12px;margin-right:9px;border:1px solid var(--f53-line);border-radius:7px;background:var(--f53-soft);color:var(--f53-ink);cursor:pointer}
/* Headers and page actions are independent, never squeezed into unreadable columns. */
:root[data-fec-theme] body[data-workspace="member"] .fec41-top{height:auto!important;min-height:64px!important;gap:clamp(8px,1vw,16px);padding:8px clamp(12px,1.3vw,22px)!important;align-items:center}
:root[data-fec-theme] body[data-workspace="member"] .fec41-brand{max-width:208px;min-width:0;flex-shrink:1}
:root[data-fec-theme] body[data-workspace="member"] .fec41-brand img{max-width:100%;height:auto;object-fit:contain}
:root[data-fec-theme] body[data-workspace="member"] .fec41-top-context{min-width:0;max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:root[data-fec-theme] body[data-workspace="member"] .fec41-top-actions{min-width:0;flex:0 1 auto;flex-wrap:wrap;justify-content:flex-end;gap:7px;margin-left:auto}
:root[data-fec-theme] body[data-workspace="member"] .fec41-top-actions :is(button,a,summary){min-height:40px;align-items:center}
:root[data-fec-theme] body[data-workspace="member"] .fec41-pagehead{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px 22px!important;margin-bottom:18px!important;padding-bottom:16px!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-page-title{min-width:0}
:root[data-fec-theme] body[data-workspace="member"] .fec41-breadcrumb{display:flex;gap:8px;flex-wrap:wrap;min-width:0;line-height:1.4}
:root[data-fec-theme] body[data-workspace="member"] .fec41-page-title-line{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
:root[data-fec-theme] body[data-workspace="member"] .fec41-page-title-line h1{min-width:0;overflow-wrap:anywhere;margin:0!important;font-size:clamp(23px,2vw,32px)!important;line-height:1.18!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-page-description{line-height:1.55!important;max-width:76ch;margin:9px 0 10px!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-page-related{display:flex;gap:7px;flex-wrap:wrap;min-width:0}
:root[data-fec-theme] body[data-workspace="member"] .fec41-page-related a{min-width:0;max-width:100%;overflow-wrap:anywhere}
:root[data-fec-theme] body[data-workspace="member"] .fec41-page-actions{display:flex;flex:0 1 auto;min-width:0;max-width:360px;justify-content:flex-end;align-items:flex-end;gap:9px;flex-wrap:wrap}
:root[data-fec-theme] body[data-workspace="member"] .fec41-page-actions .gamebar{display:flex;align-items:end;gap:8px;margin:0;min-width:0;max-width:100%;flex:1 1 220px}
:root[data-fec-theme] body[data-workspace="member"] .fec41-page-actions .gamebar label{width:auto;flex:1 1 160px;min-width:0}
:root[data-fec-theme] body[data-workspace="member"] .fec41-page-actions .gamebar select{width:100%}
:root[data-fec-theme] body[data-workspace="member"] .fec41-page-actions .linkbutton{flex:0 0 auto;white-space:nowrap}
/* Calm cards, measured spacing and no text printed below its background. */
:root[data-fec-theme] body[data-workspace="member"] .main> :is(article,.hero,.fec50-flow,.fec51-intro,.fec51-layout,.fec52-dossier,.notice){max-width:100%}
:root[data-fec-theme] body[data-workspace="member"] :is(.hero.dashboard,.metrics>article,.quickgrid>.quick,.fec43-panel>article,.fec43-panel>.fec43-card,.fec51-panel,.fec52-panel,.fec52-evidence-face){border-radius:12px!important;box-shadow:none!important}
:root[data-fec-theme] body[data-workspace="member"] :is(.fec43-panel>article,.fec43-panel>.fec43-card,.fec51-panel,.fec52-panel){padding:var(--f53-pad)!important}
:root[data-fec-theme] body[data-workspace="member"] .hero.dashboard{gap:clamp(16px,2vw,32px);padding:var(--f53-pad)!important;min-width:0}
:root[data-fec-theme] body[data-workspace="member"] .hero.dashboard>*{min-width:0;max-width:100%}
:root[data-fec-theme] body[data-workspace="member"] .hero.dashboard .big{font-size:clamp(28px,3.5vw,50px)!important;line-height:1.12!important;overflow-wrap:anywhere}
:root[data-fec-theme] body[data-workspace="member"] .metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr));gap:12px!important}
:root[data-fec-theme] body[data-workspace="member"] .metrics>*{min-width:0;margin:0!important;padding:clamp(13px,1.3vw,20px)!important}
:root[data-fec-theme] body[data-workspace="member"] .metrics strong{line-height:1.2!important;overflow-wrap:anywhere}
:root[data-fec-theme] body[data-workspace="member"] .quickgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px!important}
:root[data-fec-theme] body[data-workspace="member"] .quickgrid>*{min-width:0;margin:0!important;padding:16px!important}
:root[data-fec-theme] body[data-workspace="member"] .fec32-kpis>div{color:var(--f53-ink)!important}
:root[data-fec-theme] body[data-workspace="member"] .fec32-kpis>div :is(strong,b){color:var(--f53-ink)!important;opacity:1!important}
:root[data-fec-theme] body[data-workspace="member"] .fec32-kpis>div :is(span,small,p){color:var(--f53-muted)!important;opacity:1!important}
:root[data-fec-theme] body[data-workspace="member"] :is(.fields,.split,.cardgrid){gap:12px!important;grid-template-columns:repeat(2,minmax(0,1fr))}
:root[data-fec-theme] body[data-workspace="member"] .fec43-tabs{max-width:100%;min-width:0;display:flex;flex-wrap:nowrap!important;overflow-x:auto!important;gap:7px!important;padding:4px 1px 12px!important;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
:root[data-fec-theme] body[data-workspace="member"] .fec43-tab{flex:0 0 auto;scroll-snap-align:start;white-space:nowrap}
:root[data-fec-theme] body[data-workspace="member"] .fec43-panel-intro{display:flex;gap:9px 16px;flex-wrap:wrap;align-items:center;justify-content:space-between;min-width:0}
:root[data-fec-theme] body[data-workspace="member"] .fec43-panel-intro>*{min-width:0}
:root[data-fec-theme] body[data-workspace="member"] :is(.actions,.fec37-controlrow,.fec42-controlbar,.fec42-control-main,.fec42-control-tools,.fec40-actions,.fec43-camera-modes,.fec44-camera-tools-inner,.fec51-panel .actions,.fec50-actions,.fec52-hero-actions){min-width:0;max-width:100%;flex-wrap:wrap;gap:8px 10px}
:root[data-fec-theme] body[data-workspace="member"] :is(.actions,.fec37-controlrow,.fec42-controlbar,.fec42-control-main,.fec42-control-tools,.fec40-actions,.fec43-camera-modes,.fec44-camera-tools-inner) > *{min-width:0;max-width:100%}
:root[data-fec-theme] body[data-workspace="member"] .inlineform{flex-wrap:wrap;align-items:end;gap:10px}
:root[data-fec-theme] body[data-workspace="member"] .resultrow{min-width:0;white-space:normal;gap:8px 15px}
:root[data-fec-theme] body[data-workspace="member"] :is(.resultrow,.fec51-owned) :is(strong,small,span){overflow-wrap:anywhere}
/* Scanning: keep the live tracking overlay and actual video behaviour unmodified. */
:root[data-fec-theme] body[data-workspace="member"] .fec42-studio-layout{display:grid;gap:14px!important;align-items:start}
:root[data-fec-theme] body[data-workspace="member"] .fec42-studio-layout>article{min-width:0;width:100%;max-width:100%}
:root[data-fec-theme] body[data-workspace="member"] .fec42-capture-panel{width:100%!important;max-width:1040px!important;margin-inline:auto!important;gap:12px!important}
:root[data-fec-theme] body[data-workspace="member"] #cameraBox{width:100%!important;max-width:100%!important;min-width:0!important;min-height:265px!important;max-height:620px!important;aspect-ratio:16/10!important;margin-inline:auto;overflow:hidden;border-radius:13px!important}
:root[data-fec-theme] body[data-workspace="member"] #cameraBox[data-fec43-view="portrait"]{width:min(100%,510px)!important;aspect-ratio:3/4!important;max-height:640px!important}
:root[data-fec-theme] body[data-workspace="member"] #cameraBox:fullscreen{max-width:none!important;max-height:none!important;width:100vw!important;height:100dvh!important;aspect-ratio:auto!important;border-radius:0!important}
:root[data-fec-theme] body[data-workspace="member"] .fec42-controlbar{padding:12px!important;gap:8px!important}
:root[data-fec-theme] body[data-workspace="member"] .fec42-photo-panel{min-width:0;width:100%}
:root[data-fec-theme] body[data-workspace="member"] :is(.fec42-photo-panel,.fec35-photo-grid,.fec34-gallery,.fec52-evidence-face) img{object-fit:contain;object-position:center;max-width:100%;height:auto}
:root[data-fec-theme] body[data-workspace="member"] .fec42-photo-panel img.preview{max-width:100%!important;width:auto!important;max-height:min(65dvh,600px)!important}
/* Dossier and device workspace share the same readable mobile design. */
:root[data-fec-theme] body[data-workspace="member"] .fec50-flow{padding:var(--f53-pad)!important;gap:14px}
:root[data-fec-theme] body[data-workspace="member"] .fec50-steps{gap:7px;min-width:0}
:root[data-fec-theme] body[data-workspace="member"] .fec50-step{min-width:0;overflow-wrap:anywhere}
:root[data-fec-theme] body[data-workspace="member"] .fec50-actions>*{min-width:0;max-width:100%}
:root[data-fec-theme] body[data-workspace="member"] .fec51-layout{gap:14px;grid-template-columns:repeat(2,minmax(0,1fr))}
:root[data-fec-theme] body[data-workspace="member"] .fec51-owned{gap:10px;flex-wrap:wrap}
:root[data-fec-theme] body[data-workspace="member"] .fec52-dossier{gap:14px}
:root[data-fec-theme] body[data-workspace="member"] .fec52-evidence,.fec52-sections{gap:14px;grid-template-columns:repeat(2,minmax(0,1fr))}
:root[data-fec-theme] body[data-workspace="member"] .fec52-facts-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
:root[data-fec-theme] body[data-workspace="member"] .fec52-upload-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
:root[data-fec-theme] body[data-workspace="member"] .fec52-hero{gap:12px;padding:var(--f53-pad)!important}
:root[data-fec-theme] body[data-workspace="member"] .fec52-evidence-face>a{max-width:100%;min-height:180px;padding:12px}
:root[data-fec-theme] body[data-workspace="member"] .fec52-evidence-face img{max-width:100%;max-height:390px;object-fit:contain}
:root[data-fec-theme] body[data-workspace="member"] .fec52-facts-grid label,.fec52-upload{min-width:0}
/* Long catalogue/admin tables scroll within an explicitly keyboard-reachable region. */
:root[data-fec-theme] body[data-workspace="member"] :is(.fec53-table-scroll,.fec44-table-region){width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
:root[data-fec-theme] body[data-workspace="member"] .fec53-table-scroll{border:1px solid var(--f53-line);border-radius:10px}
:root[data-fec-theme] body[data-workspace="member"] .fec53-table-scroll table{width:max-content;min-width:100%;max-width:none!important;border-collapse:collapse}
:root[data-fec-theme] body[data-workspace="member"] .fec53-table-scroll :is(th,td){white-space:normal;min-width:100px;max-width:340px;overflow-wrap:anywhere;padding:10px 12px}
:root[data-fec-theme] body[data-workspace="member"] .fec53-table-scroll:focus-visible{outline:3px solid var(--f53-accent);outline-offset:3px}
:root[data-fec-theme] body[data-workspace="member"] .fec53-scroll-hint{margin:6px 0 12px!important;font-size:11px;color:var(--f53-muted)}
/* Footer does not compete with task content. */
:root[data-fec-theme] body[data-workspace="member"] .fec41-footer{margin-top:30px!important;max-width:100%;min-width:0}
:root[data-fec-theme] body[data-workspace="member"] .fec41-footer-top{gap:18px!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-footer-links{min-width:0}
:root[data-fec-theme] body[data-workspace="member"] .fec41-footer-bottom{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
/* Sidebar stays stable on large screens, drawer controls mobile. */
@media(min-width:901px){
 :root[data-fec-theme] body[data-workspace="member"] .fec41-side{position:sticky;min-width:0;max-height:calc(100dvh - var(--fec41-header,64px));overflow-y:auto}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-mobilemenu{display:none!important}
}
@media(max-width:1240px){
 :root[data-fec-theme] body[data-workspace="member"] .fec41-top-context{display:none!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-pagehead{grid-template-columns:minmax(0,1fr)!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-page-actions{max-width:none;justify-content:flex-start;width:100%}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-page-actions .gamebar{flex:0 1 320px}
 :root[data-fec-theme] body[data-workspace="member"] .fec51-layout{grid-template-columns:minmax(0,1fr)}
 :root[data-fec-theme] body[data-workspace="member"] .fec52-facts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
 :root[data-fec-theme] body[data-workspace="member"] .fec41-side{display:none!important}
 :root[data-fec-theme] body[data-workspace="member"] .main{width:100%;flex:1 1 auto;padding:18px!important;padding-bottom:calc(104px + env(safe-area-inset-bottom))!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-top{min-height:62px!important;gap:8px}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-top-actions{margin-left:auto;flex-wrap:nowrap}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-footer-top{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec52-evidence,.fec52-sections{grid-template-columns:minmax(0,1fr)}
 :root[data-fec-theme] body[data-workspace="member"] .fec42-studio-layout{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:650px){
 :root[data-fec-theme] body[data-workspace="member"] .main{padding:12px!important;padding-bottom:calc(102px + env(safe-area-inset-bottom))!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-top{padding:7px 10px!important;min-height:56px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-brand{max-width:145px;flex:0 1 145px}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-brand small{font-size:8px;letter-spacing:.08em}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-top-actions{gap:5px;flex-shrink:0}
 :root[data-fec-theme] body[data-workspace="member"] :is(.fec41-currency,.fec35-command,.fec41-alerts){display:none!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-account .fec41-popover-toggle{min-width:38px;min-height:40px;justify-content:center;padding:8px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-account .fec41-popover-toggle :is(span,.fec41-down){display:none!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-top-scan{min-width:38px;min-height:40px;padding:8px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-top-scan span{display:none}
 :root[data-fec-theme] body[data-workspace="member"] .fec45-appearance-menu>summary{min-width:38px;padding:8px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-mobilemenu>summary{min-width:43px;min-height:43px;padding:8px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-pagehead{gap:11px!important;padding-bottom:12px!important;margin-bottom:13px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-breadcrumb{font-size:10px;gap:6px}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-page-title-line h1{font-size:clamp(22px,5.8vw,27px)!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-page-description{font-size:12px!important;margin:7px 0 9px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-page-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;width:100%;align-items:stretch}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-page-actions .gamebar{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-page-actions .gamebar label{min-width:0;width:100%}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-page-actions .gamebar button{min-width:70px;min-height:44px}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-page-actions>.linkbutton{width:100%;text-align:center;min-height:43px}
 :root[data-fec-theme] body[data-workspace="member"] :is(.fields,.split,.cardgrid,.quickgrid,.fec40-grid,.fec32-grid,.fec34-gallery,.fec35-photo-grid){grid-template-columns:minmax(0,1fr)!important}
 :root[data-fec-theme] body[data-workspace="member"] .metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 :root[data-fec-theme] body[data-workspace="member"] .metrics>*{padding:13px!important}
 :root[data-fec-theme] body[data-workspace="member"] .metrics strong{font-size:clamp(18px,4.6vw,22px)!important}
 :root[data-fec-theme] body[data-workspace="member"] .hero.dashboard{grid-template-columns:minmax(0,1fr)!important;gap:12px!important;padding:16px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec43-panel>article,:root[data-fec-theme] body[data-workspace="member"] .fec43-panel>.fec43-card,:root[data-fec-theme] body[data-workspace="member"] .fec51-panel,:root[data-fec-theme] body[data-workspace="member"] .fec52-panel{padding:14px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec43-tabs{margin-bottom:12px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec43-tab{min-height:44px!important;padding:10px 13px!important}
 :root[data-fec-theme] body[data-workspace="member"] :is(.fec42-controlbar,.fec42-control-main,.fec42-control-tools,.fec37-controlrow,.fec44-camera-tools-inner,.fec50-actions,.fec51-panel .actions){display:flex;flex-wrap:wrap;gap:8px!important}
 :root[data-fec-theme] body[data-workspace="member"] :is(.fec42-controlbar,.fec42-control-main,.fec42-control-tools,.fec37-controlrow,.fec44-camera-tools-inner,.fec50-actions,.fec51-panel .actions)> :is(button,a,.linkbutton){flex:1 1 130px;min-height:44px!important;white-space:normal;overflow-wrap:anywhere}
 :root[data-fec-theme] body[data-workspace="member"] #cameraBox{aspect-ratio:4/3!important;min-height:220px!important;max-height:58dvh!important;border-radius:10px!important}
 :root[data-fec-theme] body[data-workspace="member"] #cameraBox[data-fec43-view="portrait"]{width:100%!important;aspect-ratio:3/4!important;max-height:70dvh!important}
 :root[data-fec-theme] body[data-workspace="member"] #cameraBox:fullscreen{height:100dvh!important;max-height:none!important;aspect-ratio:auto!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec42-controlbar{padding:10px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec50-flow{padding:14px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec50-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 :root[data-fec-theme] body[data-workspace="member"] .fec52-facts-grid,.fec52-upload-grid{grid-template-columns:minmax(0,1fr)}
 :root[data-fec-theme] body[data-workspace="member"] .fec52-details div{grid-template-columns:minmax(0,1fr);gap:4px}
 :root[data-fec-theme] body[data-workspace="member"] .fec52-evidence-face{padding:13px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec52-hero{padding:14px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec52-hero-actions{width:100%}
 :root[data-fec-theme] body[data-workspace="member"] .fec52-hero-actions>a{flex:1 1 130px;text-align:center}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-footer-top{grid-template-columns:minmax(0,1fr)!important;gap:13px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-footer-brand{max-width:100%}
 :root[data-fec-theme] body[data-workspace="member"] .resultrow{flex-direction:column;align-items:flex-start}
 :root[data-fec-theme] body[data-workspace="member"] .resultrow span{text-align:left}
 :root[data-fec-theme] body[data-workspace="member"] .fec51-owned{align-items:flex-start}
}
@media(max-width:365px){
 :root[data-fec-theme] body[data-workspace="member"] .fec41-brand{max-width:122px;flex-basis:122px}
 :root[data-fec-theme] body[data-workspace="member"] .metrics{grid-template-columns:minmax(0,1fr)!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec50-steps{grid-template-columns:minmax(0,1fr)}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-page-title-line h1{font-size:22px!important}
}
@media(prefers-reduced-motion:reduce){:root[data-fec-theme] body[data-workspace="member"] *{scroll-behavior:auto!important} :root[data-fec-theme] body[data-workspace="member"] :is(.fec41-side,.fec43-tab,.fec45-motion-icon){animation:none!important;transition:none!important}}
@media print{:root[data-fec-theme] body[data-workspace="member"] :is(.fec41-top,.fec41-side,.fec41-mobilemenu,.bottom,.fec41-page-actions,.fec43-tabs,.fec41-footer){display:none!important}:root[data-fec-theme] body[data-workspace="member"] .main{width:100%!important;max-width:none!important;padding:0!important}}

/* === assets/scanner-v54.css === */
/* Fair E Cards Scanner V5.4 — Responsive structural design system.
   Applies only to member workspace. No changes to camera overlays or backend. */
:root[data-fec-theme] body[data-workspace="member"]{
  --f54-border:var(--fec45-line,#cfdae5);
  --f54-panel:var(--fec45-panel,#ffffff);
  --f54-soft:var(--fec45-soft,#edf3f7);
  --f54-ink:var(--fec45-fg,#203448);
  --f54-muted:var(--fec45-muted,#607589);
  --f54-radius:12px;
  --f54-gap:clamp(12px,1.25vw,18px);
  --f54-content:1360px;
}
:root[data-fec-theme] body[data-workspace="member"] :is(.fec41-top,.fec41-footer,.fec41-pagehead,.fec41-mobile-panel,.fec54-tools-panel,.fec54-filters,.fec54-page-index){box-sizing:border-box}
:root[data-fec-theme] body[data-workspace="member"] :is(.main,.fec41-shell,.fec41-pagehead,.fec41-top-actions,.fec41-page-actions,.fec54-tools,.fec54-tools-panel,.fec41-footer-top,.fec54-page-index){min-width:0}
:root[data-fec-theme] body[data-workspace="member"] .main{flex:1 1 0;width:0;min-width:0;max-width:none!important;padding:clamp(16px,2vw,28px)!important}
:root[data-fec-theme] body[data-workspace="member"] .main > :not(dialog){max-width:var(--f54-content);margin-left:auto;margin-right:auto}
:root[data-fec-theme] body[data-workspace="member"] :is(.main article,.main section,.main form,.main fieldset,.main .split,.main .fields,.fec42-studio-layout,.fec52-evidence,.fec52-facts-grid,.fec52-upload-grid){min-width:0;max-width:100%}
:root[data-fec-theme] body[data-workspace="member"] .main :is(input,select,textarea,button){max-width:100%}
:root[data-fec-theme] body[data-workspace="member"] .main :is(h1,h2,h3,p,dt,dd,label){overflow-wrap:break-word}
:root[data-fec-theme] body[data-workspace="member"] .main :is(.onboard,.fec34-discover,.fec35-coverage,.fec51-panel,.fec52-panel,.fec42-photo-panel,.fec42-capture-panel,.quickgrid>.quick,.metrics>article){border-radius:var(--f54-radius)!important;box-shadow:none!important}
:root[data-fec-theme] body[data-workspace="member"] .main :is(.metrics,.quickgrid,.cardgrid,.fec35-photo-grid,.fec52-upload-grid,.fec52-facts-grid){gap:var(--f54-gap)!important}
:root[data-fec-theme] body[data-workspace="member"] .main :is(.fec52-upload-grid,.fec52-facts-grid,.fec52-evidence,.fec52-sections)>*{min-width:0}
:root[data-fec-theme] body[data-workspace="member"] .main input[type=file]{width:100%;max-width:100%;white-space:normal;min-width:0}
/* Main application header has exactly four decision points: Scan, Tools, Account, and Menu. */
:root[data-fec-theme] body[data-workspace="member"] .top.fec41-top{height:auto!important;min-height:62px!important;display:flex;align-items:center;gap:12px;padding:8px clamp(10px,1.4vw,22px)!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-brand{flex:0 1 auto;max-width:210px;min-width:0}
:root[data-fec-theme] body[data-workspace="member"] .fec41-brand img{height:auto!important;max-height:45px!important;max-width:100%;object-fit:contain}
:root[data-fec-theme] body[data-workspace="member"] .fec41-top-actions{margin-left:auto!important;display:flex;align-items:center;flex:0 0 auto;gap:8px;flex-wrap:nowrap!important;justify-content:flex-end}
:root[data-fec-theme] body[data-workspace="member"] .fec41-top-actions > .fec54-tools{position:relative;display:block!important;flex:0 0 auto}
:root[data-fec-theme] body[data-workspace="member"] .fec54-tools-trigger,
:root[data-fec-theme] body[data-workspace="member"] .fec54-filter-trigger,
:root[data-fec-theme] body[data-workspace="member"] .fec54-related>summary,
:root[data-fec-theme] body[data-workspace="member"] .fec54-page-index>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;cursor:pointer;border-radius:8px;border:1px solid var(--f54-border);background:var(--f54-panel);color:var(--f54-ink);padding:10px 13px;font-size:13px;font-weight:650;line-height:1.3;min-height:42px}
:root[data-fec-theme] body[data-workspace="member"] :is(.fec54-tools-trigger,.fec54-filter-trigger,.fec54-related>summary,.fec54-page-index>summary)::-webkit-details-marker{display:none}
:root[data-fec-theme] body[data-workspace="member"] .fec54-tools-trigger svg{height:18px;width:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
:root[data-fec-theme] body[data-workspace="member"] .fec54-tools-panel{position:absolute;z-index:300;top:calc(100% + 8px);right:0;width:min(335px,calc(100vw - 20px));max-height:min(75dvh,580px);overflow-y:auto;overscroll-behavior:contain;display:grid;gap:9px;padding:14px;border:1px solid var(--f54-border);border-radius:12px;background:var(--f54-panel);box-shadow:0 18px 38px #071c3029;color:var(--f54-ink)}
:root[data-fec-theme] body[data-workspace="member"] .fec54-menu-heading{font-size:12px;text-transform:uppercase;letter-spacing:.07em;color:var(--f54-muted);margin-bottom:4px}
:root[data-fec-theme] body[data-workspace="member"] .fec54-tools-panel > :is(button,details){position:relative;display:block!important;width:100%;max-width:100%;margin:0!important;min-height:42px}
:root[data-fec-theme] body[data-workspace="member"] .fec54-tools-panel > button{display:flex!important;align-items:center;justify-content:flex-start;gap:10px;text-align:left}
:root[data-fec-theme] body[data-workspace="member"] .fec54-tools-panel :is(.fec45-appearance-popover,.fec41-popover-panel){position:static!important;right:auto!important;top:auto!important;left:auto!important;width:100%!important;max-width:100%!important;max-height:none;box-shadow:none!important;border:1px solid var(--f54-border)!important;margin:6px 0 0!important;border-radius:9px!important;padding:12px!important;background:var(--f54-soft)!important;color:var(--f54-ink)!important}
:root[data-fec-theme] body[data-workspace="member"] .fec54-tools-panel :is(.fec45-appearance-trigger,.fec41-popover-toggle){width:100%;display:flex;justify-content:flex-start;gap:10px;min-height:42px;padding:10px!important;text-align:left}
:root[data-fec-theme] body[data-workspace="member"] .fec54-tools-panel :is(.fec45-appearance-trigger,.fec41-popover-toggle) span{display:inline!important}
:root[data-fec-theme] body[data-workspace="member"] .fec54-tools-panel button :is(span,kbd){display:inline}
:root[data-fec-theme] body[data-workspace="member"] .fec41-top-actions .fec41-top-scan{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-height:42px!important;padding:9px 15px!important;white-space:nowrap}
/* Clean page headings: title and actions are independent zones. */
:root[data-fec-theme] body[data-workspace="member"] .fec41-pagehead{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:16px 24px!important;align-items:start;border-bottom:1px solid var(--f54-border);padding:3px 0 19px!important;margin-bottom:20px!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-page-title-line{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
:root[data-fec-theme] body[data-workspace="member"] .fec41-page-title-line h1{font-size:clamp(23px,2.1vw,32px)!important;line-height:1.2!important;margin:0!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-page-description{font-size:13px!important;line-height:1.55;max-width:70ch;margin:8px 0!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-page-actions{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:9px;max-width:100%;width:auto}
:root[data-fec-theme] body[data-workspace="member"] .fec54-filters{position:relative;flex:0 1 auto;max-width:100%}
:root[data-fec-theme] body[data-workspace="member"] .fec54-filters .gamebar{position:absolute;z-index:90;top:calc(100% + 6px);right:0;display:flex;align-items:end;flex-wrap:wrap;gap:9px;width:min(335px,calc(100vw - 26px));padding:15px!important;border:1px solid var(--f54-border);border-radius:10px;background:var(--f54-panel);box-shadow:0 14px 30px #081c3025}
:root[data-fec-theme] body[data-workspace="member"] .fec54-filters .gamebar label{min-width:0;flex:1 1 100%;width:100%}
:root[data-fec-theme] body[data-workspace="member"] .fec54-filters .gamebar select{width:100%}
:root[data-fec-theme] body[data-workspace="member"] .fec54-filters .gamebar button{min-height:42px}
:root[data-fec-theme] body[data-workspace="member"] .fec54-related{margin:10px 0 0;max-width:min(365px,100%)}
:root[data-fec-theme] body[data-workspace="member"] .fec54-related>summary{min-height:36px;padding:7px 10px;background:transparent;font-size:12px;font-weight:600}
:root[data-fec-theme] body[data-workspace="member"] .fec54-related nav.fec41-page-related{display:flex!important;flex-wrap:wrap;gap:7px;margin:8px 0 0!important;min-width:0}
/* On-page directory is compact until opened. */
:root[data-fec-theme] body[data-workspace="member"] .fec54-page-index{width:100%;max-width:var(--f54-content);margin:0 auto 18px!important;border:1px solid var(--f54-border);border-radius:10px;background:var(--f54-panel)}
:root[data-fec-theme] body[data-workspace="member"] .fec54-page-index>summary{border:0;background:transparent;min-height:43px;padding:10px 14px}
:root[data-fec-theme] body[data-workspace="member"] .fec54-page-index-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:7px;padding:0 13px 13px}
:root[data-fec-theme] body[data-workspace="member"] .fec54-page-index-links a{display:block;border:1px solid var(--f54-border);border-radius:7px;padding:9px 11px;background:var(--f54-soft);color:var(--f54-ink);font-size:12px;text-decoration:none;overflow-wrap:anywhere}
:root[data-fec-theme] body[data-workspace="member"] .main [id^="fec54-section-"]{scroll-margin-top:100px}
/* Secondary sections can be reduced without hiding scan, identification or account forms. */
:root[data-fec-theme] body[data-workspace="member"] .fec54-disclosure-card{position:relative}
:root[data-fec-theme] body[data-workspace="member"] .fec54-section-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:37px;padding:8px 12px;border-radius:8px;border:1px solid var(--f54-border);background:var(--f54-soft);color:var(--f54-ink);font-size:12px;font-weight:650;cursor:pointer;margin:8px 0 10px}
:root[data-fec-theme] body[data-workspace="member"] .fec54-disclosure-card.fec54-collapsed > :not(h2):not(h3):not(strong):not(.fec54-section-toggle){display:none!important}
/* Sections, cards and forms use defined content density, not compressed columns. */
:root[data-fec-theme] body[data-workspace="member"] .main :is(.hero.dashboard,.fec50-flow,.fec51-panel,.fec52-panel,.fec42-capture-panel,.fec42-photo-panel){padding:clamp(14px,1.5vw,22px)!important}
:root[data-fec-theme] body[data-workspace="member"] .main :is(.hero.dashboard,.fec42-studio-layout,.fec51-layout,.fec52-evidence,.fec52-sections){gap:clamp(12px,1.5vw,20px)!important}
:root[data-fec-theme] body[data-workspace="member"] .main :is(.fec52-facts-grid,.fec52-upload-grid,.fields,.fec35-photo-grid){grid-template-columns:repeat(2,minmax(0,1fr))}
:root[data-fec-theme] body[data-workspace="member"] .main :is(button,.linkbutton,.fec43-tab){min-height:39px}
:root[data-fec-theme] body[data-workspace="member"] .main :is(.fec42-controlbar,.fec42-control-main,.fec42-control-tools,.fec37-controlrow,.actions){gap:8px;flex-wrap:wrap}
:root[data-fec-theme] body[data-workspace="member"] .main #cameraBox{width:100%;max-width:100%;min-width:0;overflow:hidden}
:root[data-fec-theme] body[data-workspace="member"] .main :is(.fec35-photo-grid,.fec52-evidence,.fec52-upload-grid) img{max-width:100%;height:auto;object-fit:contain}
:root[data-fec-theme] body[data-workspace="member"] .fec53-table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
/* Footer: four measured zones on wide screens, expandable sections on mobile. */
:root[data-fec-theme] body[data-workspace="member"] .fec41-footer{margin-top:35px!important;padding:22px clamp(14px,1.5vw,24px) 17px!important;border-top:1px solid var(--f54-border)}
:root[data-fec-theme] body[data-workspace="member"] .fec41-footer-top{display:grid!important;grid-template-columns:minmax(180px,1.5fr) repeat(3,minmax(130px,1fr))!important;gap:16px 24px!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-footer-links{display:block!important;min-width:0;grid-column:auto!important}
:root[data-fec-theme] body[data-workspace="member"] .fec54-footer-disclosure{display:block;width:100%}
:root[data-fec-theme] body[data-workspace="member"] .fec54-footer-summary{list-style:none;padding:0 0 10px;font-weight:700;font-size:12px;color:var(--f54-ink)}
:root[data-fec-theme] body[data-workspace="member"] .fec54-footer-summary::-webkit-details-marker{display:none}
:root[data-fec-theme] body[data-workspace="member"] .fec54-footer-contents{display:grid;gap:10px}
:root[data-fec-theme] body[data-workspace="member"] .fec54-footer-contents a{font-size:12px;line-height:1.45}
:root[data-fec-theme] body[data-workspace="member"] .fec41-footer-bottom{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px!important;margin-top:20px;padding-top:14px}
:root[data-fec-theme] body[data-workspace="member"] :is(.fec54-tools-trigger,.fec54-filter-trigger,.fec54-mobile-summary,.fec54-footer-summary,.fec54-page-index>summary,.fec54-section-toggle):focus-visible{outline:3px solid #4ba9e0!important;outline-offset:3px}
@media(max-width:1250px){
 :root[data-fec-theme] body[data-workspace="member"] .fec41-top-context{display:none!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-pagehead{grid-template-columns:minmax(0,1fr)!important;gap:11px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-page-actions{justify-content:flex-start!important;width:100%}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-footer-top{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-footer-brand{grid-column:1/-1}
}
@media(max-width:900px){
 :root[data-fec-theme] body[data-workspace="member"] .main{width:100%!important;flex:1 1 auto;padding:clamp(12px,2.6vw,20px)!important;padding-bottom:calc(100px + env(safe-area-inset-bottom))!important}
 :root[data-fec-theme] body[data-workspace="member"] .top.fec41-top{min-height:58px!important;padding:7px 10px!important;gap:8px}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-brand{max-width:150px;min-width:0}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-brand img{max-height:38px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-top-actions{gap:6px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-top-actions .fec41-top-scan{display:inline-flex!important;min-width:39px;padding:8px 9px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-top-actions .fec41-top-scan span{display:none!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec54-tools-trigger{height:40px;min-height:40px;padding:8px!important;justify-content:center}
 :root[data-fec-theme] body[data-workspace="member"] .fec54-tools-trigger span{display:none}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-account .fec41-popover-toggle{height:40px;min-height:40px;min-width:39px;padding:8px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-account .fec41-popover-toggle span{display:none!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-mobilemenu>summary{display:flex!important;align-items:center;justify-content:center;width:40px;min-width:40px;height:40px;min-height:40px;padding:8px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-mobile-panel{top:64px!important;right:8px!important;left:auto!important;bottom:auto!important;width:min(360px,calc(100vw - 16px))!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 77px)!important;height:auto!important;padding:14px!important;border:1px solid #45627a!important;border-radius:12px!important;box-shadow:0 20px 42px #07162280!important;overflow-y:auto!important;overscroll-behavior:contain;gap:12px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-mobile-panel nav.fec33-mobile-links{display:grid!important;gap:7px!important;min-width:0;overflow:visible!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec54-mobile-group{display:block!important;border:1px solid #3b5269;border-radius:9px;background:#142b40;padding:0!important;min-width:0}
 :root[data-fec-theme] body[data-workspace="member"] .fec54-mobile-summary{display:flex;align-items:center;justify-content:space-between;list-style:none;padding:12px 13px;color:#e4f0fa;font-size:12px;font-weight:700;letter-spacing:.035em;cursor:pointer;min-height:44px}
 :root[data-fec-theme] body[data-workspace="member"] .fec54-mobile-summary::-webkit-details-marker{display:none}
 :root[data-fec-theme] body[data-workspace="member"] .fec54-mobile-summary::after{content:"+";font-size:17px;color:#a9c9dd;font-weight:400}
 :root[data-fec-theme] body[data-workspace="member"] .fec54-mobile-group[open] .fec54-mobile-summary::after{content:"−"}
 :root[data-fec-theme] body[data-workspace="member"] .fec54-mobile-links{display:grid;gap:4px;padding:0 8px 9px}
 :root[data-fec-theme] body[data-workspace="member"] .fec54-mobile-links a{display:flex!important;min-height:40px!important;padding:9px 12px!important;border-radius:7px;font-size:13px}
 :root[data-fec-theme] body[data-workspace="member"] .fec54-mobile-links a[aria-current=page]{background:#245a7c;border:1px solid #67a8d2;color:#fff}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-footer-top{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-footer-brand{grid-column:1/-1}
}
@media(max-width:760px){
 :root[data-fec-theme] body[data-workspace="member"] .main{padding:13px 12px!important;padding-bottom:calc(94px + env(safe-area-inset-bottom))!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-pagehead{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;padding-bottom:14px!important;margin-bottom:14px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-breadcrumb{font-size:11px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-page-title-line h1{font-size:clamp(23px,5.8vw,29px)!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-page-actions{display:flex!important;gap:8px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-page-actions>.fec33-scan-action{display:none!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec54-related{margin-top:8px}
 :root[data-fec-theme] body[data-workspace="member"] .main :is(.fields,.split,.cardgrid,.quickgrid,.fec40-grid,.fec32-grid,.fec34-gallery,.fec35-photo-grid,.fec42-studio-layout,.fec52-evidence,.fec52-sections,.fec52-facts-grid,.fec52-upload-grid){grid-template-columns:minmax(0,1fr)!important}
 :root[data-fec-theme] body[data-workspace="member"] .main .metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 :root[data-fec-theme] body[data-workspace="member"] .main .metrics > article{padding:13px!important}
 :root[data-fec-theme] body[data-workspace="member"] .main .hero.dashboard{grid-template-columns:minmax(0,1fr)!important;gap:13px!important}
 :root[data-fec-theme] body[data-workspace="member"] .main :is(.fec52-panel,.fec51-panel,.fec42-capture-panel,.fec42-photo-panel,.fec50-flow){padding:15px!important}
 :root[data-fec-theme] body[data-workspace="member"] .main :is(.fec42-controlbar,.fec42-control-main,.fec42-control-tools,.fec37-controlrow,.actions){display:flex!important;flex-wrap:wrap!important;gap:8px!important}
 :root[data-fec-theme] body[data-workspace="member"] .main :is(.fec42-controlbar,.fec42-control-main,.fec42-control-tools,.fec37-controlrow,.actions)>:is(button,a,.linkbutton){min-height:43px!important;flex:1 1 120px;white-space:normal;text-align:center}
 :root[data-fec-theme] body[data-workspace="member"] .main #cameraBox{aspect-ratio:4/3!important;min-height:210px!important;max-height:57dvh!important}
 :root[data-fec-theme] body[data-workspace="member"] .main #cameraBox[data-fec43-view="portrait"]{aspect-ratio:3/4!important;width:100%!important;max-height:70dvh!important}
 :root[data-fec-theme] body[data-workspace="member"] .main #cameraBox:fullscreen{aspect-ratio:auto!important;max-height:none!important;height:100dvh!important}
 :root[data-fec-theme] body[data-workspace="member"] .main :is(.fec43-tabs,.tabs){overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;max-width:100%;white-space:nowrap}
 :root[data-fec-theme] body[data-workspace="member"] .main :is(.fec43-tabs .fec43-tab,.tabs>a){flex:0 0 auto;min-width:max-content}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-footer{padding:18px 12px calc(96px + env(safe-area-inset-bottom))!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-footer-top{grid-template-columns:minmax(0,1fr)!important;gap:0!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-footer-brand{grid-column:auto;padding-bottom:12px}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-footer-links{margin:0!important;padding:0!important;border-top:1px solid var(--f54-border)}
 :root[data-fec-theme] body[data-workspace="member"] .fec54-footer-summary{display:flex;justify-content:space-between;align-items:center;min-height:46px;padding:12px 2px!important;cursor:pointer}
 :root[data-fec-theme] body[data-workspace="member"] .fec54-footer-summary::after{content:"+";font-size:18px;font-weight:400;color:var(--f54-muted)}
 :root[data-fec-theme] body[data-workspace="member"] .fec54-footer-disclosure[open] .fec54-footer-summary::after{content:"−"}
 :root[data-fec-theme] body[data-workspace="member"] .fec54-footer-contents{padding:0 4px 14px;gap:10px}
 :root[data-fec-theme] body[data-workspace="member"] .fec54-footer-contents a{min-height:32px;display:flex;align-items:center}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-footer-bottom{display:grid!important;grid-template-columns:minmax(0,1fr);gap:8px!important;font-size:11px;line-height:1.6}
}
@media(max-width:380px){
 :root[data-fec-theme] body[data-workspace="member"] .fec41-brand{max-width:104px;flex:0 1 104px}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-brand small{font-size:7px}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-top-actions{gap:4px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec54-tools-trigger,:root[data-fec-theme] body[data-workspace="member"] .fec41-account .fec41-popover-toggle,:root[data-fec-theme] body[data-workspace="member"] .fec41-mobilemenu>summary{width:37px!important;min-width:37px!important}
 :root[data-fec-theme] body[data-workspace="member"] .main .metrics{grid-template-columns:minmax(0,1fr)!important}
}
@media(prefers-reduced-motion:reduce){:root[data-fec-theme] body[data-workspace="member"] :is(.fec54-tools-trigger,.fec54-mobile-summary,.fec54-section-toggle){transition:none!important;animation:none!important}}
@media print{:root[data-fec-theme] body[data-workspace="member"] :is(.fec54-tools,.fec54-filters,.fec54-related,.fec54-page-index,.fec54-section-toggle){display:none!important}}
/* Explicit disclosure hiding wins over previous releases' layout display rules. */
:root[data-fec-theme] body[data-workspace="member"] .fec54-tools:not([open])>.fec54-tools-panel,
:root[data-fec-theme] body[data-workspace="member"] .fec54-filters:not([open])>.gamebar,
:root[data-fec-theme] body[data-workspace="member"] .fec54-related:not([open])>.fec41-page-related,
:root[data-fec-theme] body[data-workspace="member"] .fec54-page-index:not([open])>.fec54-page-index-links,
:root[data-fec-theme] body[data-workspace="member"] .fec54-mobile-group:not([open])>.fec54-mobile-links,
:root[data-fec-theme] body[data-workspace="member"] .fec54-footer-disclosure:not([open])>.fec54-footer-contents{display:none!important}
/* Critical flex fix: legacy .main is a column flexbox; without width:100%,
   auto horizontal margins shrink cards to their intrinsic content width. */
:root[data-fec-theme] body[data-workspace="member"] .main > :not(dialog){width:100%!important;align-self:stretch;min-width:0;box-sizing:border-box}
:root[data-fec-theme] body[data-workspace="member"] .main > :is(.onboard,.fec34-discover,.fec35-coverage){display:flex;flex-direction:column;align-items:stretch;gap:8px}
:root[data-fec-theme] body[data-workspace="member"] .main > :is(.onboard,.fec34-discover,.fec35-coverage) .fec54-section-toggle{align-self:flex-start;margin:0 0 3px}

:root[data-fec-theme] body[data-workspace="member"] .fec41-mobile-head,
:root[data-fec-theme] body[data-workspace="member"] .fec41-mobile-head strong{color:#edf6ff!important}

/* === assets/scanner-v56.css === */
/* Fair E Cards Scanner V5.6 | Production shell and theme integration
   Only presentation and navigation. Never styles camera pixel buffers or alters captures. */
:root[data-fec-theme="light"] {
  color-scheme: light;
  --fec56-page:#f3f6fa; --fec56-surface:#fff; --fec56-surface2:#f8fafc;
  --fec56-line:#cad7e2; --fec56-ink:#182c40; --fec56-muted:#526a7e;
  --fec56-active:#e4f1fa; --fec56-accent:#126d9f; --fec56-hover:#eaf2f8;
  --fec56-shadow:0 12px 30px rgba(15,38,62,.08);
  --bg:var(--fec56-page);--panel:var(--fec56-surface);--panel2:var(--fec56-surface2);
  --line:var(--fec56-line);--text:var(--fec56-ink);--muted:var(--fec56-muted);
}
:root[data-fec-theme="dark"] {
  color-scheme: dark;
  --fec56-page:#0a1421; --fec56-surface:#122236; --fec56-surface2:#172b40;
  --fec56-line:#35516c; --fec56-ink:#ecf4fb; --fec56-muted:#b2c7d8;
  --fec56-active:#1c3f5d; --fec56-accent:#7cc9fa; --fec56-hover:#20384f;
  --fec56-shadow:0 12px 30px rgba(0,0,0,.20);
  --bg:var(--fec56-page);--panel:var(--fec56-surface);--panel2:var(--fec56-surface2);
  --line:var(--fec56-line);--text:var(--fec56-ink);--muted:var(--fec56-muted);
}
:root[data-fec-theme] body[data-workspace] { --fec41-header:64px;--header:64px; background:var(--fec56-page)!important; color:var(--fec56-ink)!important; }
:root[data-fec-theme] body[data-workspace] :is(.fec56-header,.fec56-header *, .fec56-scrim,.fec56-footer,.fec56-footer *){box-sizing:border-box}
body[data-workspace] .fec56-header { position:sticky!important; top:0; z-index:300; width:100%; min-height:64px; margin:0; background:#0b2033!important; color:#edf7ff!important; border-bottom:1px solid #31516d!important; box-shadow:0 1px 4px rgba(0,0,0,.16); }
body[data-workspace] .fec56-header-inner {display:flex; align-items:center; justify-content:space-between; gap:12px; max-width:1760px; min-height:64px; width:100%; padding:7px clamp(12px,2vw,26px); margin:auto;}
body[data-workspace] .fec56-brand {display:flex!important; align-items:center!important; flex:0 1 auto!important; min-width:0!important; gap:12px; height:46px; margin:0!important; padding:0!important; border:0!important; background:transparent!important; box-shadow:none!important; text-decoration:none!important; color:#d5edff!important; line-height:1!important; letter-spacing:0!important;}
body[data-workspace] .fec56-brand img {display:block!important; object-fit:contain!important; object-position:left center!important; width:clamp(118px,12vw,160px)!important; height:44px!important; max-height:44px!important; max-width:100%!important; flex:0 1 auto!important; margin:0!important; padding:0!important; border:0!important; background:transparent!important; border-radius:0!important; box-shadow:none!important;}
body[data-workspace] .fec56-brand-label {flex:none; font:750 10px/1.2 system-ui,sans-serif; letter-spacing:.14em; border-left:1px solid #47627a; padding-left:12px; color:#b7d2e4!important;}
.fec56-header-controls {display:flex; align-items:center; gap:8px; margin-left:auto; flex:none; min-width:0;}
body[data-workspace] .fec56-header :is(.fec56-scan,.fec56-menu>summary){display:inline-flex!important; align-items:center!important; justify-content:center!important; gap:8px!important; min-height:42px!important; padding:0 14px!important; margin:0!important; border:1px solid #517089!important; border-radius:8px!important; background:#18354c!important; color:#fff!important; box-shadow:none!important; font:700 13px/1.1 system-ui,sans-serif!important; text-decoration:none!important; white-space:nowrap!important; cursor:pointer!important;}
body[data-workspace] .fec56-header .fec56-scan {background:#1178b7!important; border-color:#2394d4!important;}
body[data-workspace] .fec56-header :is(.fec56-scan,.fec56-menu>summary):is(:hover,:focus-visible){background:#266085!important; border-color:#86c0e6!important;}
body[data-workspace] .fec56-header :is(.fec56-scan,.fec56-menu>summary) svg{height:18px!important;width:18px!important;flex:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none;}
body[data-workspace] .fec56-menu{position:static!important;display:block!important;flex:none!important;width:auto!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;}
body[data-workspace] .fec56-menu>summary {list-style:none!important;user-select:none}
body[data-workspace] .fec56-menu>summary::-webkit-details-marker{display:none}
body[data-workspace] .fec56-menu[open]>summary{background:#255b7e!important;border-color:#8ec5e9!important}
body[data-workspace] .fec56-menu-panel {position:fixed!important;top:calc(64px + 8px)!important;right:clamp(10px,2vw,26px)!important;left:auto!important;bottom:auto!important;z-index:330!important;display:block!important;width:min(380px,calc(100vw - 20px))!important;min-width:0!important;max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 82px)!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin;padding:0!important;margin:0!important;border:1px solid var(--fec56-line)!important;border-radius:13px!important;background:var(--fec56-surface)!important;color:var(--fec56-ink)!important;box-shadow:0 20px 60px rgba(0,0,0,.25)!important}
body[data-workspace] .fec56-menu:not([open])>.fec56-menu-panel{display:none!important}
body[data-workspace] .fec56-menu-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--fec56-line);background:var(--fec56-surface2)}
.fec56-menu-top strong{display:block;color:var(--fec56-ink);font-size:14px;line-height:1.3}
.fec56-menu-top small{display:block;color:var(--fec56-muted);font-size:12px;margin-top:3px}
body[data-workspace] .fec56-menu-top .fec56-close{display:grid!important;place-content:center;flex:none;min-width:36px!important;width:36px!important;min-height:36px!important;height:36px!important;border:1px solid var(--fec56-line)!important;border-radius:8px!important;background:var(--fec56-surface)!important;color:var(--fec56-ink)!important;padding:0!important;font:500 24px/1 system-ui!important;box-shadow:none!important;cursor:pointer}
body[data-workspace] .fec56-menu-content{display:grid;gap:0;min-width:0}
body[data-workspace] .fec56-menu-account{display:grid;gap:4px;padding:13px 15px 17px;min-width:0}
body[data-workspace] .fec56-menu-account :is(a,button.fec56-find,.fec56-logout button){display:flex!important;align-items:center;justify-content:space-between;gap:8px;width:100%!important;min-height:42px!important;padding:10px 12px!important;border:1px solid transparent!important;border-radius:8px!important;background:transparent!important;color:var(--fec56-ink)!important;text-align:left!important;text-decoration:none!important;box-shadow:none!important;font:600 13px/1.35 system-ui,sans-serif!important;white-space:normal!important;cursor:pointer}
body[data-workspace] .fec56-menu-account :is(a,button.fec56-find,.fec56-logout button):is(:hover,:focus-visible){background:var(--fec56-hover)!important;border-color:var(--fec56-line)!important}
.fec56-find kbd{font-size:10px;border:1px solid var(--fec56-line);color:var(--fec56-muted);border-radius:4px;padding:3px 5px;white-space:nowrap}
.fec56-menu-label{color:var(--fec56-muted);font-size:11px;letter-spacing:.08em;text-transform:uppercase;margin:0 0 5px;padding:0 12px}
body[data-workspace] .fec56-theme{margin:10px 0 8px!important;padding:12px!important;border:1px solid var(--fec56-line)!important;border-radius:10px!important;background:var(--fec56-surface2)!important;min-width:0!important;width:100%!important}
body[data-workspace] .fec56-theme legend{color:var(--fec56-ink)!important;font-size:12px;font-weight:700;padding:0 5px}
.fec56-theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
body[data-workspace] .fec56-theme-options label{display:flex!important;align-items:center;justify-content:center;gap:7px;min-height:40px!important;margin:0!important;padding:7px 8px!important;border:1px solid var(--fec56-line)!important;border-radius:8px!important;background:var(--fec56-surface)!important;color:var(--fec56-ink)!important;font:650 12px/1.2 system-ui!important;cursor:pointer;}
body[data-workspace] .fec56-theme-options input{width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;margin:0!important;padding:0!important;accent-color:#1785bf;}
body[data-workspace] .fec56-theme-options label:has(input:checked){border-color:var(--fec56-accent)!important;background:var(--fec56-active)!important;color:var(--fec56-ink)!important}
body[data-workspace] .fec56-logout{display:block!important;width:100%;margin:5px 0 0!important;padding:6px 0 0!important;border-top:1px solid var(--fec56-line)}
body[data-workspace] .fec56-logout button{color:var(--fec56-ink)!important}
body[data-workspace] .fec56-directory-wrap{display:none}
body[data-workspace] .fec56-scrim:not([hidden]){display:block;position:fixed;inset:64px 0 0;z-index:290;background:rgba(2,10,19,.46);backdrop-filter:blur(2px)}
/* Authoritative sidebar presentation, independently themed in both appearances. */
:root[data-fec-theme] body[data-workspace="member"] .fec41-side{top:64px!important;height:calc(100dvh - 64px)!important;background:var(--fec56-surface)!important;color:var(--fec56-ink)!important;border-right:1px solid var(--fec56-line)!important;box-shadow:none!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-side-head{padding:9px 5px 13px!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-side-head :is(.eyebrow,.fec35-side-title){color:var(--fec56-muted)!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-side .fec32-nav-search input{background:var(--fec56-surface2)!important;border-color:var(--fec56-line)!important;color:var(--fec56-ink)!important;min-height:42px!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-side-collapse{background:var(--fec56-surface2)!important;color:var(--fec56-ink)!important;border-color:var(--fec56-line)!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-nav-group{margin:3px 0!important;padding:0!important;border:0!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-nav-group>summary{min-height:44px!important;display:flex!important;align-items:center!important;gap:8px!important;padding:10px 11px!important;color:var(--fec56-muted)!important;background:transparent!important;border-radius:8px!important;font-size:11px!important;letter-spacing:.055em!important;font-weight:750!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-nav-group>summary:hover{background:var(--fec56-hover)!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-group-items{padding:2px 3px 5px!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-group-items a{min-height:41px!important;margin:2px 0!important;padding:9px 10px!important;border-radius:8px!important;background:transparent!important;color:var(--fec56-ink)!important;border:1px solid transparent!important;font-size:12px!important;box-shadow:none!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-group-items a:is(:hover,:focus-visible){background:var(--fec56-hover)!important;border-color:var(--fec56-line)!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-group-items a[aria-current="page"],:root[data-fec-theme] body[data-workspace="member"] .fec41-group-items a.active{background:var(--fec56-active)!important;border-color:var(--fec56-line)!important;box-shadow:inset 3px 0 var(--fec56-accent)!important;color:var(--fec56-ink)!important;font-weight:750!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-group-items :is(.fec41-nav-label,svg){color:inherit!important;stroke:currentColor!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-group-total{color:var(--fec56-muted)!important;border-color:var(--fec56-line)!important;background:var(--fec56-surface2)!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-side-bottom{border-color:var(--fec56-line)!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-side-bottom :is(a,strong){color:var(--fec56-muted)!important}
/* Cards, section controls and forms: consistent surface system without modifying video or previews. */
:root[data-fec-theme] body[data-workspace="member"] .main{flex:1 1 0!important;min-width:0!important;width:0!important;max-width:none!important;padding:clamp(16px,2.2vw,30px)!important;color:var(--fec56-ink)!important}
:root[data-fec-theme] body[data-workspace="member"] .main > :not(dialog){max-width:1450px!important;margin-inline:auto}
:root[data-fec-theme] body[data-workspace="member"] :is(.main article,.main .quick,.main .metrics article,.fec50-flow,.fec51-panel,.fec52-panel,.fec52-evidence-face){color:var(--fec56-ink)!important;border-color:var(--fec56-line)!important;box-shadow:none!important}
:root[data-fec-theme="light"] body[data-workspace="member"] :is(.main article,.main .quick,.main .metrics article,.fec50-flow,.fec51-panel,.fec52-panel,.fec52-evidence-face){background:var(--fec56-surface)!important}
:root[data-fec-theme="dark"] body[data-workspace="member"] :is(.main article,.main .quick,.main .metrics article,.fec50-flow,.fec51-panel,.fec52-panel,.fec52-evidence-face){background:var(--fec56-surface)!important}
:root[data-fec-theme] body[data-workspace="member"] :is(.main p,.main small,.main .muted,.main .micro,.fec41-page-description,.fec41-breadcrumb){color:var(--fec56-muted)!important}
:root[data-fec-theme] body[data-workspace="member"] :is(.main h1,.main h2,.main h3,.main strong,.main dt,.main dd){color:var(--fec56-ink)!important}
:root[data-fec-theme] body[data-workspace="member"] .main :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--fec56-surface2)!important;color:var(--fec56-ink)!important;border-color:var(--fec56-line)!important;box-shadow:none!important}
:root[data-fec-theme] body[data-workspace="member"] .main :is(input,select,textarea,button){min-width:0!important;max-width:100%!important}
:root[data-fec-theme] body[data-workspace="member"] .main :is(label,legend){color:var(--fec56-ink)!important}
:root[data-fec-theme] body[data-workspace="member"] .main :is(.secondary,.smallbutton){background:var(--fec56-surface2)!important;border-color:var(--fec56-line)!important;color:var(--fec56-ink)!important}
:root[data-fec-theme] body[data-workspace="member"] .main :is(.fec43-workspace,.fec43-panel,.fec43-tabs,.fec41-pagehead,.fec52-sections,.fec52-evidence){min-width:0!important}
:root[data-fec-theme] body[data-workspace="member"] .main :is(.quickgrid,.metrics,.fields,.split,.cardgrid,.fec52-upload-grid,.fec52-facts-grid){gap:clamp(10px,1.2vw,16px)!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-page-title-line{gap:10px!important;align-items:center!important;flex-wrap:wrap!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-page-title-line h1{font-size:clamp(25px,2.8vw,34px)!important;line-height:1.15!important;letter-spacing:-.03em!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-pagehead{padding:0 0 16px!important;margin-bottom:18px!important;gap:14px!important;border-bottom:1px solid var(--fec56-line)!important}

:root[data-fec-theme] body[data-workspace="member"] .fec54-related{display:none!important}
:root[data-fec-theme] body[data-workspace="member"] .fec54-page-index{display:none!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-page-context{background:var(--fec56-surface2)!important;border:1px solid var(--fec56-line)!important;color:var(--fec56-muted)!important}
:root[data-fec-theme] body[data-workspace="member"] .fec54-filters>summary{color:var(--fec56-ink)!important;background:var(--fec56-surface)!important;border-color:var(--fec56-line)!important}
:root[data-fec-theme] body[data-workspace="member"] .fec54-filters .gamebar{background:var(--fec56-surface)!important;border-color:var(--fec56-line)!important}
:root[data-fec-theme] body[data-workspace="member"] .fec35-compact .fec41-side{width:76px!important}
/* Single compact footer, never a second menu grid. */
body[data-workspace] .fec56-footer{margin:22px auto 0!important;padding:15px 0 16px!important;width:100%!important;max-width:1450px!important;border-top:1px solid var(--fec56-line)!important;background:transparent!important;color:var(--fec56-muted)!important;box-shadow:none!important}
.fec56-footer-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;min-width:0;font-size:11px;line-height:1.5}
.fec56-copyright{color:var(--fec56-ink);font-weight:700;white-space:nowrap}
.fec56-footer-note{flex:1 1 260px;text-align:center;color:var(--fec56-muted)}
body[data-workspace] .fec56-footer-help{position:relative;flex:none;margin:0!important;padding:0!important;border:0!important;background:transparent!important;min-width:0}
body[data-workspace] .fec56-footer-help>summary{list-style:none;display:flex;align-items:center;min-height:38px;padding:8px 11px;border:1px solid var(--fec56-line);border-radius:8px;color:var(--fec56-ink);background:var(--fec56-surface);font-weight:650;font-size:12px;cursor:pointer}
.fec56-footer-help>summary::-webkit-details-marker{display:none}
body[data-workspace] .fec56-footer-help nav{position:absolute;bottom:calc(100% + 7px);right:0;z-index:50;display:grid;gap:3px;min-width:185px;padding:9px;border:1px solid var(--fec56-line);border-radius:10px;background:var(--fec56-surface);box-shadow:var(--fec56-shadow)}
.fec56-footer-help nav a{display:block;min-height:38px;padding:9px;border-radius:7px;text-decoration:none;color:var(--fec56-ink);font-size:12px}
.fec56-footer-help nav a:hover{background:var(--fec56-hover)}
.fec56-footer-help:not([open]) nav{display:none!important}
/* Prevent stale mobile navigation/layout rules from competing with the one menu. */
body[data-workspace] :is(.mobilemenu,.fec41-mobilemenu,.fec41-mobile-scrim,.bottom,.fec55-header,.fec55-footer){display:none!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-page-actions>.fec33-scan-action{display:none!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-side-quick{display:none!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-page-related{display:none!important}
/* Keep native camera/video colours untouched in both themes. */
:root[data-fec-theme] body[data-workspace="member"] :is(.camera,.camera video,.fec37-stage,#cameraBox){color:#eff8ff!important}
:root[data-fec-theme] body[data-workspace="member"] .camera{background:#030b12!important}
@media(min-width:901px){body[data-workspace] .fec56-header{--fec41-header:64px!important}}
@media(max-width:900px){
 :root[data-fec-theme] body[data-workspace]{--fec41-header:58px;--header:58px}
 body[data-workspace] .fec56-header{min-height:58px}
 body[data-workspace] .fec56-header-inner{min-height:58px;padding:6px 11px;gap:8px}
 body[data-workspace] .fec56-brand img{width:clamp(105px,18vw,138px)!important;height:40px!important}
 body[data-workspace] .fec56-brand-label{font-size:9px;padding-left:9px}
 body[data-workspace] .fec56-header :is(.fec56-scan,.fec56-menu>summary){min-height:40px!important;height:40px!important;padding:0 11px!important}
 body[data-workspace] .fec56-menu-panel{top:58px!important;right:0!important;bottom:0!important;border-radius:0!important;border:0!important;border-left:1px solid var(--fec56-line)!important;max-height:calc(100dvh - 58px)!important;height:calc(100dvh - 58px)!important;width:min(430px,100vw)!important;max-width:100vw!important;box-shadow:-10px 4px 40px rgba(0,0,0,.3)!important}
 body[data-workspace] .fec56-scrim:not([hidden]){inset:58px 0 0}
 body[data-workspace] .fec56-directory-wrap{display:block;padding:16px 15px 8px;border-bottom:1px solid var(--fec56-line)}
 body[data-workspace] .fec56-nav-search-label{display:block;margin:0 0 7px;color:var(--fec56-muted);font-size:12px;font-weight:650}
 body[data-workspace] #fec56NavSearch{display:block;width:100%!important;height:42px!important;min-height:42px!important;margin:0 0 12px!important;padding:9px 12px!important;border:1px solid var(--fec56-line)!important;border-radius:8px!important;background:var(--fec56-surface2)!important;color:var(--fec56-ink)!important;font-size:14px!important;box-shadow:none!important}
 .fec56-directory{display:grid;gap:4px}
 body[data-workspace] .fec56-directory-group{margin:0!important;padding:0!important;border:1px solid var(--fec56-line)!important;border-radius:9px!important;background:var(--fec56-surface)!important}
 body[data-workspace] .fec56-directory-group>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;min-height:44px;padding:10px 13px;border-radius:8px;color:var(--fec56-ink);font-weight:750;font-size:13px;cursor:pointer}
 .fec56-directory-group>summary::-webkit-details-marker{display:none}
 body[data-workspace] .fec56-directory-group[open]>summary{border-radius:8px 8px 0 0;border-bottom:1px solid var(--fec56-line);background:var(--fec56-surface2)}
 .fec56-count{font-size:11px;font-weight:700;color:var(--fec56-muted);background:var(--fec56-surface2);border:1px solid var(--fec56-line);border-radius:5px;padding:2px 6px}
 .fec56-directory-links{display:grid;gap:3px;padding:7px}
 body[data-workspace] .fec56-directory-links a{display:flex;align-items:center;min-height:40px;padding:9px 11px;border-radius:7px;color:var(--fec56-ink)!important;text-decoration:none!important;font-size:13px}
 body[data-workspace] .fec56-directory-links a:is(:hover,:focus-visible),body[data-workspace] .fec56-directory-links a[aria-current="page"]{background:var(--fec56-active)!important;color:var(--fec56-ink)!important}
 body[data-workspace] .fec56-directory-links a[aria-current="page"]{box-shadow:inset 3px 0 var(--fec56-accent)!important;font-weight:750}
 .fec56-no-match{padding:6px 2px;color:var(--fec56-muted);font-size:13px}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-side{display:none!important}
 :root[data-fec-theme] body[data-workspace="member"] .main{width:100%!important;flex:1 1 auto!important;padding:16px 14px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-pagehead{gap:9px!important;padding:0 0 13px!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-page-title-line h1{font-size:clamp(24px,4vw,29px)!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-breadcrumb{display:none!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-page-context{display:none!important}
 :root[data-fec-theme] body[data-workspace="member"] .main :is(.metrics,.quickgrid,.fields,.split,.cardgrid,.fec52-upload-grid,.fec52-facts-grid){grid-template-columns:minmax(0,1fr)!important}
 :root[data-fec-theme] body[data-workspace="member"] .main :is(.hero.dashboard,.fec52-evidence,.fec52-sections,.fec51-layout){grid-template-columns:minmax(0,1fr)!important}
 :root[data-fec-theme] body[data-workspace="member"] .main :is(.fec42-controlbar,.fec42-control-main,.fec50-actions,.fec52-hero-actions){flex-wrap:wrap!important}
 :root[data-fec-theme] body[data-workspace="member"] .main :is(.fec42-controlbar,.fec42-control-main,.fec50-actions,.fec52-hero-actions) > *{max-width:100%!important}
 .fec56-footer-note{display:none}
 body[data-workspace] .fec56-footer{margin-top:20px!important;padding:12px 0 16px!important}
 body[data-workspace] .fec56-footer-inner{gap:8px;flex-wrap:wrap}
}
@media(max-width:430px){
 body[data-workspace] .fec56-brand-label{display:none!important}
 body[data-workspace] .fec56-brand img{width:clamp(101px,32vw,129px)!important;height:39px!important}
 body[data-workspace] .fec56-header-controls{gap:6px}
 body[data-workspace] .fec56-header :is(.fec56-scan,.fec56-menu>summary){min-height:39px!important;height:39px!important;padding:0 9px!important;font-size:12px!important;gap:6px!important}
 body[data-workspace] .fec56-header svg{width:17px!important;height:17px!important}
 body[data-workspace] .fec56-header-inner{padding:5px 9px}
 :root[data-fec-theme] body[data-workspace="member"] .main{padding:12px 11px!important}
 :root[data-fec-theme] body[data-workspace="member"] .main :is(.hero,.onboard,article,.quick){padding:clamp(12px,3.4vw,16px)!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec41-page-actions{max-width:100%;width:100%;align-items:flex-start!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec54-filters{width:100%!important}
 :root[data-fec-theme] body[data-workspace="member"] .fec54-filters>summary{width:100%!important;min-height:42px!important}
 .fec56-copyright{font-size:10px}
}
@media(max-width:330px){body[data-workspace] .fec56-brand img{width:99px!important}body[data-workspace] .fec56-header :is(.fec56-scan,.fec56-menu>summary){padding:0 7px!important}}
@media(prefers-reduced-motion:reduce){body[data-workspace] .fec56-header *,body[data-workspace] .fec56-menu *,body[data-workspace] .fec56-footer *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{body[data-workspace] :is(.fec56-header,.fec56-footer-help,.fec56-scrim,.fec41-side){display:none!important}:root[data-fec-theme] body[data-workspace="member"] .main{width:100%!important;max-width:none!important}}

/* === assets/scanner-v57-easy.css === */
/* Fair E Cards Scanner V5.7 — a deliberately small primary scan interface.
   Everything marked advanced remains in the DOM and is reachable on demand. */
body.fec57-easy .main{--fec57-line:var(--fec56-line,#d2dce6);--fec57-surface:var(--fec56-surface,#fff);--fec57-ink:var(--fec56-ink,#20354c);--fec57-muted:var(--fec56-muted,#50647b);--fec57-accent:var(--fec56-accent,#136ca2)}
body.fec57-easy .fec42-studio-layout{display:block!important;grid-template-columns:minmax(0,1fr)!important;max-width:1180px;margin-inline:auto;width:100%;min-width:0}
body.fec57-easy .fec42-capture-panel{width:100%!important;min-width:0!important;max-width:100%!important;display:flex;flex-direction:column;gap:12px;padding:clamp(12px,2.2vw,22px)!important;overflow:visible}
body.fec57-easy .fec42-capture-panel>.fec42-panel-head{display:none!important}
body.fec57-easy .main>.tabs{display:none!important}
body.fec57-easy .fec42-capture-panel .fec42-panel-head h2{font-size:clamp(18px,2vw,24px);margin:0}
body.fec57-easy .fec42-capture-panel .fec42-panel-head p{font-size:12px;margin:4px 0 0}
body.fec57-easy .fec57-simple{order:0;display:grid;gap:10px;width:100%;min-width:0}
body.fec57-easy .fec57-lead{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;min-width:0}
body.fec57-easy .fec57-lead-copy{min-width:0;flex:1 1 220px}
body.fec57-easy .fec57-lead-title{display:block;color:var(--fec57-ink);font-weight:800;letter-spacing:-.015em;font-size:clamp(17px,2vw,21px)}
body.fec57-easy .fec57-subtitle{font-size:13px!important;line-height:1.5;color:var(--fec57-muted)!important;margin:2px 0 0!important}
body.fec57-easy .fec57-pill{display:inline-flex;align-items:center;gap:7px;min-height:28px;max-width:100%;font-size:11px;font-weight:750;line-height:1.3;padding:5px 9px;border-radius:100px;border:1px solid var(--fec57-line);background:var(--fec57-surface);color:var(--fec57-ink);overflow-wrap:anywhere}
body.fec57-easy .fec57-pill::before{content:"";width:7px;height:7px;border-radius:50%;background:#9fb4c6;flex:none}
body.fec57-easy .fec57-pill[data-kind="ready"]::before{background:#20a369}
body.fec57-easy .fec57-pill[data-kind="waiting"]::before{background:#d99f22}
body.fec57-easy .fec57-pill[data-kind="fallback"]::before{background:#e28a40}
body.fec57-easy .fec57-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
body.fec57-easy .fec57-actions .fec57-action{display:inline-flex!important;align-items:center;justify-content:center;min-height:44px!important;min-width:130px;padding:11px 17px!important;border-radius:9px!important;margin:0!important;font-size:13px!important;font-weight:750!important;line-height:1.2!important;cursor:pointer}
body.fec57-easy .fec57-actions .fec57-shoot{background:var(--fec57-accent)!important;color:white!important;border:1px solid var(--fec57-accent)!important}
body.fec57-easy .fec57-actions .fec57-upload,body.fec57-easy .fec57-actions .fec57-retry{background:var(--fec57-surface)!important;color:var(--fec57-ink)!important;border:1px solid var(--fec57-line)!important}
body.fec57-easy .fec57-actions :is(button[disabled]){opacity:.48;cursor:not-allowed!important}
body.fec57-easy .fec57-actions button[hidden]{display:none!important}
body.fec57-easy .fec42-camera{width:100%;max-width:100%;height:auto!important;min-height:250px;aspect-ratio:4/3;max-height:min(66vh,680px);overflow:hidden;border-radius:12px!important;margin:0!important}
body.fec57-easy .fec42-camera video{height:100%!important;width:100%!important;object-fit:contain!important}
body.fec57-easy .fec48-assist{display:grid!important;gap:8px!important;margin:0!important;padding:10px 12px!important;border-radius:10px!important}
body.fec57-easy .fec48-assist .fec48-assist-head{display:none!important}
body.fec57-easy .fec48-assist .fec48-status{margin:0!important;font-size:12px!important;line-height:1.5!important}
body.fec57-easy .fec48-assist .fec48-session:empty{display:none}
body.fec57-easy .fec57-advanced{width:100%;min-width:0;border:1px solid var(--fec57-line);background:var(--fec57-surface);border-radius:10px;padding:0!important;margin:0!important;color:var(--fec57-ink)}
body.fec57-easy .fec57-advanced>summary{display:flex;align-items:center;min-height:44px;padding:10px 14px;list-style:none;cursor:pointer;font-size:13px;font-weight:750;color:var(--fec57-ink);border-radius:10px}
body.fec57-easy .fec57-advanced>summary::-webkit-details-marker{display:none}
body.fec57-easy .fec57-advanced>summary::after{content:"+";margin-left:auto;font-size:18px;line-height:1}
body.fec57-easy .fec57-advanced[open]>summary::after{content:"−"}
body.fec57-easy .fec57-advanced-inside{display:grid;gap:14px;padding:12px;border-top:1px solid var(--fec57-line);min-width:0}
body.fec57-easy .fec57-advanced-inside>*{width:100%;min-width:0;max-width:100%;margin:0!important}
body.fec57-easy .fec57-advanced-inside .fec42-controlbar,body.fec57-easy .fec57-advanced-inside .fec42-control-main{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
body.fec57-easy .fec57-advanced-inside :is(button,select){max-width:100%}
body.fec57-easy #fec37Studio{max-width:100%!important}
body.fec57-easy #fec50Flow[data-fec57-simplified="1"]{display:none!important}
body.fec57-easy .fec57-review{width:100%;max-width:1180px;margin:12px auto 20px;padding:0!important;border:1px solid var(--fec57-line);border-radius:12px;background:var(--fec57-surface);color:var(--fec57-ink);overflow:visible}
body.fec57-easy .fec57-review>summary{min-height:52px;display:flex;align-items:center;padding:13px 17px;cursor:pointer;font-size:15px;font-weight:750;list-style:none;color:var(--fec57-ink)}
body.fec57-easy .fec57-review>summary::-webkit-details-marker{display:none}
body.fec57-easy .fec57-review>summary::after{content:"+";margin-left:auto;font-size:20px}
body.fec57-easy .fec57-review[open]>summary::after{content:"−"}
body.fec57-easy .fec57-review .fec42-photo-panel{margin:0!important;max-width:100%!important;width:100%!important;border:0!important;border-top:1px solid var(--fec57-line)!important;border-radius:0 0 12px 12px!important;background:transparent!important;box-shadow:none!important;padding:clamp(12px,2.5vw,22px)!important;min-width:0!important}
body.fec57-easy .fec57-review .fec42-photo-panel form{width:100%;min-width:0}
body.fec57-easy .fec57-review .fec42-photo-panel label{max-width:100%;overflow-wrap:anywhere}
body.fec57-easy .fec57-review .fec42-photo-panel input[type=file]{width:100%;max-width:100%;min-width:0}
body.fec57-easy .fec57-review .fec42-photo-panel .preview{max-width:100%;width:auto;height:auto;max-height:440px;object-fit:contain;margin:8px auto;display:block}
body.fec57-easy .fec57-review .fec42-photo-panel .preview[hidden]{display:none!important}
body.fec57-easy .fec57-review button[type=submit]{min-height:46px!important;max-width:100%}
@media(max-width:650px){
 body.fec57-easy .fec42-capture-panel{gap:9px!important;padding:12px!important}
 body.fec57-easy .fec42-capture-panel .fec42-panel-head p{display:none}
 body.fec57-easy .fec57-simple{gap:9px}
 body.fec57-easy .fec57-lead{align-items:flex-start}
 body.fec57-easy .fec57-lead-title{font-size:18px}
 body.fec57-easy .fec57-subtitle{font-size:12px!important}
 body.fec57-easy .fec57-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.fec57-easy .fec57-actions .fec57-action{min-width:0;width:100%;padding:11px 8px!important;font-size:12px!important}
 body.fec57-easy .fec57-actions .fec57-retry:not([hidden]){grid-column:1/-1}
 body.fec57-easy .fec42-camera{min-height:220px;aspect-ratio:3/4;max-height:min(65dvh,540px)}
 body.fec57-easy .fec57-review>summary{min-height:48px;padding:12px 14px;font-size:14px}
 body.fec57-easy .fec57-advanced-inside{padding:10px}
}
@media(max-width:350px){body.fec57-easy .fec57-pill{font-size:10px}body.fec57-easy .fec57-actions .fec57-action{font-size:11px!important}}
@media(prefers-reduced-motion:reduce){body.fec57-easy :is(.fec57-simple,.fec57-advanced,.fec57-review) *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* === assets/scanner-v58-assist.css === */
/* Scanner V5.8: only the no-AI Scan flow; does not affect global header/footer */
body[data-fec43-page="scan"].fec57-easy #fec57Review>.fec58-panel {margin:0 0 14px;width:100%;min-width:0}
.fec58-panel{min-width:0;background:var(--fec45-card,#fff);border:1px solid var(--fec45-border,#cbd8e5);border-radius:14px;padding:clamp(14px,2vw,24px);color:var(--fec45-text,#1a2c40)}
.fec58-heading h3{font-size:clamp(1.08rem,2vw,1.35rem);line-height:1.3;margin:0 0 6px;color:inherit}
.fec58-heading p{font-size:.91rem;line-height:1.5;margin:0 0 16px;max-width:62ch;color:var(--fec45-muted,#50637b)}
.fec58-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}
.fec58-field{display:grid;gap:6px;min-width:0;font-size:.82rem;font-weight:600;color:inherit}
.fec58-field input,.fec58-field select{box-sizing:border-box;width:100%;min-width:0;height:44px;font-size:16px;line-height:1.3;padding:8px 10px;background:var(--fec45-input,#fff);color:var(--fec45-text,#1a2c40);border:1px solid var(--fec45-border,#b1c6d8);border-radius:9px}
.fec58-field input:focus-visible,.fec58-field select:focus-visible,.fec58-buttons button:focus-visible,.fec58-candidate:focus-visible{outline:2px solid #35b2ee;outline-offset:2px}
.fec58-buttons{display:flex;gap:8px;align-items:center;flex-wrap:wrap;grid-column:1/-1}
.fec58-buttons button,.fec58-jump{min-height:44px;padding:9px 14px;border-radius:9px;cursor:pointer;font-weight:650}
.fec58-buttons button:disabled{opacity:.55;cursor:default}
.fec58-status{font-size:.87rem;line-height:1.5;min-height:1.35rem;color:var(--fec45-muted,#50637b);margin:10px 0 0}
.fec58-status.fec58-error{color:#bb3434}
.fec58-results{margin-top:12px;min-width:0}.fec58-results:empty{display:none}
.fec58-results h4{font-size:1rem;margin:0 0 8px}
.fec58-candidates{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:8px}
.fec58-candidate{text-align:left;min-width:0;min-height:92px;padding:13px 14px;border:1px solid var(--fec45-border,#b1c6d8);border-radius:10px;background:var(--fec45-card,#fff);color:var(--fec45-text,#1a2c40);cursor:pointer;display:flex;flex-direction:column;gap:5px;overflow-wrap:anywhere}
.fec58-candidate strong{font-size:.98rem}.fec58-candidate span{font-size:.85rem}.fec58-candidate small{font-size:.76rem;color:var(--fec45-muted,#50637b)}
.fec58-candidate:hover{border-color:#2487c7;box-shadow:0 2px 14px rgba(23,107,157,.1)}
.fec58-ai{margin:12px 0 0;min-width:0;border:1px solid var(--fec45-border,#b1c6d8);border-radius:12px;overflow:hidden}
.fec58-ai>summary{padding:14px 16px;cursor:pointer;font-size:.91rem;font-weight:700;list-style-position:inside;color:var(--fec45-text,#1a2c40);background:var(--fec45-card,#fff)}
.fec58-ai>.fec42-photo-panel{margin:0!important;border:0!important;box-shadow:none!important;border-radius:0!important}
.fec58-jump{border:1px solid var(--fec45-border,#b1c6d8);background:transparent;color:inherit}
html[data-fec-theme="dark"] .fec58-panel,html[data-fec-theme="dark"] .fec58-candidate,html[data-fec-theme="dark"] .fec58-ai>summary{background:#14263b!important;color:#e8f2ff!important;border-color:#395169!important}
html[data-fec-theme="dark"] .fec58-field input,html[data-fec-theme="dark"] .fec58-field select{background:#0e1c2d!important;color:#f2f7ff!important;border-color:#49617b!important}
html[data-fec-theme="dark"] .fec58-heading p,html[data-fec-theme="dark"] .fec58-status,html[data-fec-theme="dark"] .fec58-candidate small{color:#bdd0e7!important}
@media(max-width:650px){.fec58-panel{padding:14px}.fec58-form{grid-template-columns:minmax(0,1fr);gap:10px}.fec58-buttons{flex-direction:column;align-items:stretch}.fec58-buttons button{width:100%}.fec58-candidates{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.fec58-candidate{transition:none!important}}

/* === assets/scanner-v59-recognize.css === */
/* V5.9: restrained recognition controls compatible with existing Scanner Light/Dark variables */
#fec59Recognition{margin:12px 0 18px;padding:clamp(14px,2vw,22px);background:var(--surface,#fff);color:var(--text,#193046);border:1px solid var(--border,#c9d5e1);border-radius:12px;min-width:0;box-sizing:border-box}
#fec59Recognition .fec59-title{display:grid;gap:4px;margin-bottom:10px}
#fec59Recognition h3{font-size:clamp(17px,2vw,21px);line-height:1.3;margin:0;color:inherit}
#fec59Recognition p{margin:0;max-width:80ch;line-height:1.5;overflow-wrap:anywhere}
.fec59-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:14px 0 10px}
.fec59-actions .fec59-primary{min-height:44px;min-width:140px;background:#1765a2;color:#fff;border:1px solid #1765a2;border-radius:8px;font-weight:700;cursor:pointer}
.fec59-actions .fec59-primary:disabled{opacity:.6;cursor:wait}
.fec59-auto{display:inline-flex;gap:8px;align-items:center;line-height:1.4;cursor:pointer}
.fec59-auto input{width:18px;height:18px;accent-color:#1765a2}
.fec59-status,.fec59-match-status{padding:8px 0;line-height:1.45;overflow-wrap:anywhere}
.fec59-status[data-error="1"]{color:#b54835}
.fec59-tech{margin-top:8px}.fec59-tech>summary{cursor:pointer;min-height:36px;display:list-item}.fec59-tech p{padding:10px 0}
.fec59-candidates{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:10px;min-width:0;margin-top:10px}
.fec59-result{display:flex;align-items:center;text-align:left;gap:10px;min-width:0;padding:12px;min-height:105px;width:100%;border:1px solid var(--border,#c5d1df);border-radius:10px;background:var(--surface,#fff);color:var(--text,#193046);cursor:pointer}
.fec59-result:hover,.fec59-result:focus-visible{border-color:#2b80bd;outline:2px solid #81bdeb;outline-offset:1px}
.fec59-art{flex:0 0 54px;width:54px;height:78px;background:#e6eef5;border-radius:5px;display:grid;place-items:center;overflow:hidden}
.fec59-art img{display:block;max-width:100%;max-height:100%;object-fit:contain}
.fec59-info{display:flex;flex-direction:column;gap:5px;flex:1 1 0;min-width:0}.fec59-info strong,.fec59-info small{overflow-wrap:anywhere;line-height:1.35}
.fec59-meta{display:flex;flex-direction:column;gap:3px;align-items:flex-end;flex:0 1 88px;min-width:68px;font-size:11px;text-align:right;line-height:1.3}
.fec59-meta b{font-size:15px}.fec59-meta small{font-size:10px;line-height:1.3}
html[data-fec-theme="dark"] #fec59Recognition,html[data-fec-theme="dark"] .fec59-result{background:#132337;color:#e8f1fa;border-color:#36516b}
html[data-fec-theme="dark"] .fec59-art{background:#243b53}
html[data-fec-theme="dark"] .fec59-auto,html[data-fec-theme="dark"] .fec59-tech{color:#e0ecf7}
html[data-fec-theme="dark"] .fec59-status[data-error="1"]{color:#ffb39e}
@media(max-width:650px){.fec59-actions{flex-direction:column;align-items:stretch}.fec59-actions .fec59-primary{width:100%}.fec59-candidates{grid-template-columns:minmax(0,1fr)}.fec59-result{gap:9px;padding:10px}.fec59-meta{flex-basis:76px}.fec59-art{flex-basis:44px;width:44px;height:65px}}
@media(prefers-reduced-motion:reduce){.fec59-result{transition:none!important}}

/* === assets/scanner-v510-ui.css === */
/* Fair E Cards Scanner V5.10. Calm product UI, integrated photo adjustment.
   Scope all structural changes to Scanner authenticated scan/grade views. */
body.fec510-active{
 --fec510-bg:var(--fec56-page,#f4f6f9);--fec510-panel:var(--fec56-surface,#fff);
 --fec510-panel-alt:var(--fec56-surface2,#f8fafc);--fec510-ink:var(--fec56-ink,#192c42);
 --fec510-muted:var(--fec56-muted,#526a7e);--fec510-line:var(--fec56-line,#ccdae6);
 --fec510-blue:#136ea9;--fec510-blue-ink:#fff;
 font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
}
html[data-fec-theme="dark"] body.fec510-active{--fec510-blue:#287eb4;--fec510-blue-ink:#fff}
body.fec510-active *{min-width:0}
body.fec510-active .fec56-header{min-height:60px!important;height:auto!important}
body.fec510-active .fec56-header-inner{width:100%!important;max-width:none!important;min-height:60px!important;margin:0!important;padding:5px clamp(12px,2vw,26px)!important;gap:12px!important}
body.fec510-active .fec56-brand{margin:0!important;gap:8px!important;flex:0 1 auto!important;justify-content:flex-start!important}
body.fec510-active .fec56-brand img{width:clamp(112px,10vw,142px)!important;height:42px!important;object-fit:contain!important;object-position:left center!important}
body.fec510-active .fec56-brand-label{padding-left:10px!important;font-size:10px!important;letter-spacing:.12em!important}
body.fec510-active .fec56-header-controls{margin-left:auto!important;flex:0 0 auto!important;gap:7px!important}
body.fec510-active .fec56-header :is(.fec56-menu>summary,.fec56-scan){height:40px!important;min-height:40px!important;border-radius:7px!important;padding:0 12px!important;box-shadow:none!important}
body.fec510-active .fec41-side{box-shadow:none!important}
body.fec510-active .main{box-sizing:border-box;max-width:none!important;width:100%!important;min-width:0!important;padding-inline:clamp(12px,2.2vw,30px)!important}
body.fec510-active .main>*{min-width:0!important}
body.fec510-active .fec41-pagehead{max-width:1320px!important;width:100%!important;margin-inline:auto!important;padding-bottom:13px!important;gap:12px!important}
body.fec510-active .fec41-page-description{font-size:13px!important;line-height:1.45!important;margin:3px 0 0!important}
body.fec510-active .fec41-page-related{display:none!important}
body.fec510-active .fec41-page-actions{flex:0 0 auto;max-width:min(100%,280px)}
body.fec510-active .fec41-page-title-line h1{font-size:clamp(24px,2.7vw,33px)!important;letter-spacing:-.035em!important}
body.fec510-active .tabs{width:100%;max-width:1260px!important;margin:8px auto 15px!important;gap:5px!important;padding:0!important;border:0!important;overflow-x:auto;scrollbar-width:thin}
body.fec510-active .tabs a{min-height:40px;white-space:nowrap;border-radius:7px!important;padding:10px 14px!important;font-weight:600!important;font-size:13px!important}
body.fec510-active #fec57Review{max-width:1260px!important;width:100%!important;margin:14px auto!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
body.fec510-active #fec57Review>summary{border:1px solid var(--fec510-line)!important;border-radius:9px!important;background:var(--fec510-panel)!important;color:var(--fec510-ink)!important;font-weight:700!important;font-size:14px!important;min-height:44px!important;padding:12px 16px!important;margin-bottom:8px!important}
body.fec510-active #fec57Review[open]>summary{margin-bottom:11px!important}
body.fec510-active #fec57Review .fec42-photo-panel{width:100%!important;max-width:100%!important;margin:0!important;border:1px solid var(--fec510-line)!important;border-radius:11px!important;padding:clamp(14px,2.2vw,26px)!important;background:var(--fec510-panel)!important;box-shadow:none!important;color:var(--fec510-ink)!important;overflow:visible!important}
body.fec510-active #fec57Review .fec42-photo-panel .fec42-panel-head{margin-bottom:10px!important}
body.fec510-active #fec57Review .fec42-photo-panel .fec42-panel-head h2{font-size:clamp(19px,2vw,24px)!important;letter-spacing:-.025em!important;line-height:1.23!important}
body.fec510-active #fec57Review .fec42-photo-panel .fec42-panel-head p{font-size:13px!important;line-height:1.5!important;max-width:70ch!important}
body.fec510-active #photoForm{display:block!important;width:100%!important;max-width:none!important;padding:0!important;margin:0!important;min-width:0!important}
body.fec510-active #photoForm>label:not(.check){display:block!important;width:100%!important;max-width:none!important;margin:8px 0 12px!important;font-size:12px!important;font-weight:650!important}
body.fec510-active #photoForm input[type=file]{display:block!important;min-height:44px!important;width:100%!important;max-width:none!important;padding:9px 11px!important;border-radius:8px!important;background:var(--fec510-panel-alt)!important;border:1px solid var(--fec510-line)!important;color:var(--fec510-ink)!important;font-size:13px!important;margin-top:6px!important}
body.fec510-active #fec50Flow{display:none!important}
body.fec510-active .fec510-desk{margin:12px 0 16px!important;padding:clamp(13px,2vw,23px)!important;width:100%!important;max-width:none!important;background:var(--fec510-panel-alt)!important;border:1px solid var(--fec510-line)!important;border-radius:10px!important;box-shadow:none!important;color:var(--fec510-ink)!important;box-sizing:border-box}
body.fec510-active .fec510-desk[hidden]{display:none!important}
.fec510-desk-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:15px}
.fec510-desk-head h3{font-size:clamp(18px,2vw,22px);letter-spacing:-.025em;line-height:1.2;margin:2px 0 6px;font-weight:750;color:var(--fec510-ink)}
.fec510-desk-head p{margin:0;max-width:64ch;font-size:13px;line-height:1.5;color:var(--fec510-muted)}
.fec510-eyebrow{font-size:10px;letter-spacing:.105em;color:var(--fec510-muted);font-weight:800}
.fec510-local{font-size:11px;color:var(--fec510-muted);border:1px solid var(--fec510-line);border-radius:5px;padding:5px 9px;white-space:nowrap;background:var(--fec510-panel)}
.fec510-layout{display:grid;grid-template-columns:minmax(0,460px) minmax(250px,1fr);gap:clamp(17px,3vw,42px);align-items:start;max-width:1050px;margin:auto}
.fec510-stage-part{width:100%;min-width:0}
.fec510-toolbar{margin-bottom:8px;display:flex;align-items:center;gap:8px}
body.fec510-active .fec510-toolbar select{min-height:40px!important;width:auto!important;max-width:100%!important;margin:0!important;padding:8px 30px 8px 11px!important;background:var(--fec510-panel)!important;color:var(--fec510-ink)!important;border:1px solid var(--fec510-line)!important;font-size:13px!important;border-radius:7px!important}
.fec510-stage{position:relative;overflow:hidden;margin:0 auto;width:min(100%,390px);aspect-ratio:5/7;max-height:62dvh;background:#15283a;border:1px solid #355874;border-radius:8px;touch-action:none;cursor:grab;outline-offset:3px;box-shadow:0 2px 8px rgba(0,0,0,.10)}
.fec510-stage:active{cursor:grabbing}
.fec510-canvas{display:block;width:100%;height:100%;object-fit:fill}
.fec510-guide{pointer-events:none;position:absolute;inset:2.5%;border:1.5px dashed rgba(255,255,255,.82);box-shadow:0 0 0 300px rgba(0,0,0,.10);border-radius:5px}
.fec510-guide::before,.fec510-guide::after{content:"";position:absolute;width:22px;height:22px;border-color:#73d0ff;border-style:solid}
.fec510-guide::before{left:-2px;top:-2px;border-width:3px 0 0 3px}
.fec510-guide::after{right:-2px;bottom:-2px;border-width:0 3px 3px 0}
.fec510-guide-label{position:absolute;top:8px;left:50%;transform:translateX(-50%);font-size:9px;font-weight:750;letter-spacing:.12em;border-radius:3px;background:rgba(10,25,40,.8);color:#ecf8ff;padding:4px 6px;white-space:nowrap}
.fec510-empty{position:absolute;inset:0;display:grid;place-items:center;text-align:center;color:#d0e2ef;font-size:13px;line-height:1.5;padding:30px;max-width:30ch;margin:auto;pointer-events:none}
.fec510-stage-note{font-size:12px;line-height:1.45;color:var(--fec510-muted);margin:8px auto 0;max-width:390px}
.fec510-controls{display:grid;align-content:start;gap:13px;padding-top:41px}
.fec510-control-title{font-size:16px;font-weight:750;margin:0;color:var(--fec510-ink)}
.fec510-placeholder{font-size:12px;line-height:1.5;color:var(--fec510-muted);margin:0}
.fec510-placeholder[hidden]{display:none!important}
.fec510-zoom-label{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;font-size:13px;font-weight:700;color:var(--fec510-ink)}
body.fec510-active .fec510-zoom-label input[type=range]{grid-column:1;min-width:0!important;width:100%!important;height:27px!important;accent-color:#2089c6;margin:0!important}
.fec510-zoom-value{grid-column:2;grid-row:2;font-size:12px;color:var(--fec510-muted);font-variant-numeric:tabular-nums}
.fec510-rotate-row,.fec510-action-row{display:flex;gap:8px;flex-wrap:wrap}
body.fec510-active .fec510-controls button{min-height:43px!important;padding:9px 13px!important;border-radius:7px!important;box-shadow:none!important;font-size:13px!important;line-height:1.2!important;font-weight:650!important;margin:0!important;flex:1 1 auto!important;max-width:100%!important}
body.fec510-active .fec510-controls .fec510-primary{background:var(--fec510-blue)!important;color:var(--fec510-blue-ink)!important;border:1px solid var(--fec510-blue)!important;flex:1 1 100%!important}
body.fec510-active .fec510-controls button:focus-visible,body.fec510-active .fec510-stage:focus-visible{outline:3px solid #5ebaff!important;outline-offset:2px}
.fec510-status{font-size:12px;line-height:1.5;margin:0;border-left:3px solid #3e8abd;padding:8px 10px;background:var(--fec510-panel);color:var(--fec510-ink);overflow-wrap:anywhere}
.fec510-status[data-error="1"]{border-left-color:#c45747}
.fec510-fine{font-size:11px;line-height:1.5;color:var(--fec510-muted);margin:0}
body.fec510-active .fec510-original-preview{margin:12px 0;border:1px solid var(--fec510-line);border-radius:8px;overflow:hidden;background:var(--fec510-panel)}
body.fec510-active .fec510-original-preview summary{display:block;cursor:pointer;padding:11px 13px;color:var(--fec510-ink);font-size:13px;font-weight:650}
body.fec510-active .fec510-original-preview .preview{display:block!important;max-width:280px!important;max-height:400px!important;width:auto!important;height:auto!important;object-fit:contain;margin:10px auto!important}
body.fec510-active .fec510-original-preview .preview[hidden]{display:none!important}
body.fec510-active #fec59Recognition{margin:15px 0 8px!important;padding:clamp(14px,2vw,20px)!important;border:1px solid var(--fec510-line)!important;border-radius:10px!important;background:var(--fec510-panel)!important;color:var(--fec510-ink)!important;box-shadow:none!important;width:100%!important;max-width:none!important}
body.fec510-active #fec59Recognition h3{font-size:18px!important;letter-spacing:-.02em!important}
body.fec510-active #fec59Recognition p{font-size:12px!important;line-height:1.5!important}
body.fec510-active #fec59Recognition .fec59-actions{gap:12px!important;margin:11px 0 4px!important}
body.fec510-active #fec59Recognition .fec59-primary{min-height:43px!important;border-radius:7px!important}
body.fec510-active #fec58Assist{margin:8px 0 16px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;max-width:100%!important}
body.fec510-active #fec58Assist .fec58-heading[hidden]{display:none!important}
body.fec510-active .fec510-more{margin:0!important;border:1px solid var(--fec510-line);border-radius:8px;background:var(--fec510-panel);overflow:hidden}
body.fec510-active .fec510-more>summary{padding:13px 15px;cursor:pointer;min-height:44px;color:var(--fec510-ink);font-weight:650;font-size:13px}
body.fec510-active .fec510-more>form,body.fec510-active .fec510-more>.fec58-results,body.fec510-active .fec510-more>.fec59-match-status{margin:0 14px 14px!important}
body.fec510-active .fec510-ai{border:1px solid var(--fec510-line);border-radius:8px;overflow:hidden;background:var(--fec510-panel-alt);margin:12px 0}
body.fec510-active .fec510-ai>summary{min-height:44px;padding:13px 15px;cursor:pointer;font-weight:650;font-size:13px;color:var(--fec510-ink)}
.fec510-ai-inside{border-top:1px solid var(--fec510-line);padding:14px;display:grid;gap:13px}
.fec510-ai-inside>p{font-size:12px;color:var(--fec510-muted);line-height:1.5;margin:0}
body.fec510-active .fec510-ai .check{font-size:12px;line-height:1.5;margin:0;color:var(--fec510-ink)}
body.fec510-active .fec510-ai button[type=submit]{width:100%;min-height:44px!important;margin:0!important}
body.fec510-active .fec42-photo-disclaimer{font-size:11px!important;color:var(--fec510-muted)!important;line-height:1.45!important;margin-top:12px!important}
body.fec510-active .fec57-review[open] .fec42-photo-panel{display:block!important}
body.fec510-active #fec57Easy{max-width:1260px!important;margin:0 auto!important}
body.fec510-active .fec42-capture-panel{max-width:1260px!important;margin:0 auto!important;width:100%!important}
body.fec510-active #confirmScan{max-width:1260px!important;margin-inline:auto!important;width:100%!important}
body.fec510-active #confirmScan h2{font-size:clamp(18px,2vw,23px)!important;line-height:1.2!important}
body.fec510-active .fec56-footer{margin-top:28px!important;min-height:0!important}
body.fec510-active .fec56-footer-inner{max-width:none!important;gap:9px!important;flex-wrap:wrap!important;padding:13px clamp(12px,2vw,26px)!important}
@media(max-width:900px){
 .fec510-layout{grid-template-columns:minmax(0,1fr);gap:13px}
 .fec510-stage{width:min(100%,365px);max-height:57dvh}
 .fec510-controls{padding-top:0;max-width:600px;margin:0 auto;width:100%}
 .fec510-desk-head{flex-wrap:wrap}
}
@media(max-width:650px){
 body.fec510-active .fec56-header-inner{padding:4px 12px!important;min-height:58px!important}
 body.fec510-active .fec56-brand{gap:6px!important}
 body.fec510-active .fec56-brand img{width:106px!important;height:37px!important}
 body.fec510-active .fec56-brand-label{font-size:9px!important;padding-left:7px!important}
 body.fec510-active .fec56-header :is(.fec56-scan,.fec56-menu>summary){min-height:38px!important;height:38px!important;padding:0 9px!important;font-size:12px!important}
 body.fec510-active .fec56-scan span{display:none}
 body.fec510-active .main{padding:10px 12px 20px!important;width:100%!important;overflow-x:clip}
 body.fec510-active .fec41-pagehead{margin-bottom:9px!important}
 body.fec510-active .fec41-breadcrumb{display:none!important}
 body.fec510-active .fec41-page-title-line h1{font-size:24px!important}
 body.fec510-active .fec41-page-actions{display:none!important}
 body.fec510-active .tabs{gap:5px!important;margin:5px auto 10px!important}
 body.fec510-active .tabs a{font-size:12px!important;padding:9px 10px!important}
 body.fec510-active #fec57Review>summary{font-size:13px!important;padding:11px 13px!important}
 body.fec510-active #fec57Review .fec42-photo-panel{padding:12px!important}
 body.fec510-active .fec510-desk{padding:12px!important;margin:9px 0!important}
 .fec510-local{display:none}
 .fec510-desk-head p{font-size:12px}
 .fec510-desk-head h3{font-size:19px}
 .fec510-stage{width:min(100%,310px);max-height:55dvh}
 .fec510-controls{gap:10px}
 .fec510-rotate-row,.fec510-action-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 body.fec510-active .fec510-controls .fec510-primary{grid-column:1/-1}
 body.fec510-active .fec510-controls button{padding:10px!important;font-size:12px!important}
 body.fec510-active #fec59Recognition{padding:13px!important}
 body.fec510-active #fec59Recognition .fec59-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
 body.fec510-active .fec56-footer-note{display:none!important}
}
@media(prefers-reduced-motion:reduce){body.fec510-active *,body.fec510-active *::before,body.fec510-active *::after{scroll-behavior:auto!important}}

/* Hidden state must win over the visual editor's display rules. */
body.fec510-active .fec510-empty[hidden],body.fec510-active .fec510-guide[hidden]{display:none!important}
body.fec510-active .fec510-editor-more{margin:0!important;border:1px solid var(--fec510-line)!important;border-radius:7px!important;background:var(--fec510-panel)!important}
body.fec510-active .fec510-editor-more>summary{cursor:pointer;min-height:40px;padding:11px 13px;font-size:12px;font-weight:650;color:var(--fec510-ink)}
body.fec510-active .fec510-editor-extra{border-top:1px solid var(--fec510-line);padding:10px;display:grid;gap:9px}
body.fec510-active .fec510-editor-extra>button{width:100%}

body.fec510-active .fec510-category{position:relative;max-width:100%;font-size:12px;font-weight:650;color:var(--fec510-ink)}
body.fec510-active .fec510-category>summary{cursor:pointer;min-height:38px;padding:10px 13px;border:1px solid var(--fec510-line);border-radius:7px;background:var(--fec510-panel);list-style:none;white-space:nowrap;color:var(--fec510-ink)}
body.fec510-active .fec510-category>summary::-webkit-details-marker{display:none}
body.fec510-active .fec510-category>.gamebar{position:absolute;z-index:15;top:calc(100% + 6px);right:0;width:min(320px,calc(100vw - 30px));padding:13px!important;margin:0!important;border:1px solid var(--fec510-line);border-radius:9px;background:var(--fec510-panel);box-shadow:0 12px 30px rgba(0,0,0,.15);display:flex;flex-wrap:wrap;gap:8px}
body.fec510-active .fec510-category:not([open])>.gamebar{display:none!important}

body.fec510-active .fec56-menu-account .fec510-category{width:100%;margin:0 0 6px!important}
body.fec510-active .fec56-menu-account .fec510-category>summary{min-height:42px;white-space:normal}
body.fec510-active .fec56-menu-account .fec510-category>.gamebar{position:static;width:100%;max-width:100%;box-shadow:none;min-width:0;margin:6px 0!important}

/* === assets/scanner-v511.css === */
/* Scanner 5.11 — compact professional workspace, existing theme tokens. */
body.fec510-active .fec510-desk{background:transparent!important;border:0!important;border-radius:0!important;padding:12px 0!important;margin:0!important}
body.fec510-active .fec510-desk-head{margin-bottom:12px;align-items:center}body.fec510-active .fec510-eyebrow,body.fec510-active .fec510-local,body.fec510-active .fec510-guide-label,body.fec510-active .fec510-control-title{display:none!important}
body.fec510-active .fec510-layout{grid-template-columns:minmax(0,1.25fr) minmax(220px,1fr);gap:24px;max-width:100%}
body.fec510-active .fec510-stage{width:min(100%,420px,calc(60dvh * 5 / 7));max-height:none!important;aspect-ratio:5/7;height:auto!important;border-radius:4px;box-shadow:none}
body.fec510-active .fec510-controls{padding-top:42px;gap:10px}body.fec510-active .fec510-controls button{min-height:38px!important;border-radius:4px!important;font-weight:600!important;padding:7px 10px!important}
body.fec510-active .fec510-zoom-label{font-weight:600;gap:3px}body.fec510-active .fec510-stage-note{margin-top:6px;font-size:12px}body.fec510-active .fec510-guide{box-shadow:none;border:1px solid #fff9;border-radius:0}
body.fec510-active .fec510-status{border:0!important;background:transparent!important;padding:0!important;font-size:12px!important}body.fec510-active .fec510-editor-more{border:0!important;background:transparent!important}body.fec510-active .fec510-editor-extra{border:0!important;padding:0!important}
body.fec510-active .fec510-original-preview{border:0!important;background:transparent!important}body.fec510-active .fec42-photo-panel{box-shadow:none!important;border:0!important}body.fec510-active .fec510-desk-head h3{font-size:20px;font-weight:650;letter-spacing:-.015em}
.fec511-grade-nav{color:var(--fec56-ink,#eaf2fa);font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap;padding:8px 10px}.fec511-grade-nav[aria-current=page]{text-decoration:underline;text-underline-offset:5px}.fec511-inspect{max-width:1320px;margin:24px auto!important;padding:clamp(14px,2.5vw,28px)!important;background:var(--fec510-panel,#18283b)!important;color:var(--fec510-ink,#eaf2fa);border:1px solid var(--fec510-line,#34495d);border-radius:6px;box-shadow:none!important}.fec511-inspect header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 20px;background:none!important;position:static!important;min-height:0!important;padding:0!important}.fec511-inspect h2{font-size:24px!important;margin:0 0 5px!important;letter-spacing:-.02em}.fec511-inspect h3{font-size:17px!important;margin:16px 0 10px!important}.fec511-inspect p{margin:6px 0;font-size:13px;line-height:1.5}.fec511-state,.fec511-note{color:var(--fec510-muted,#a9b8c9);font-size:12px}.fec511-inspect-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:28px}.fec511-tools{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.fec511-inspect button,.fec511-inspect select,.fec511-inspect input,.fec511-inspect textarea{font-size:13px!important;border-radius:4px!important;box-shadow:none!important;min-height:36px!important}.fec511-inspect button{margin:0!important;padding:7px 10px!important;min-width:0!important}.fec511-inspect label{display:block;font-size:13px!important;font-weight:500;margin:8px 0}.fec511-inspect select,.fec511-inspect textarea{width:100%;margin:4px 0}.fec511-inspect fieldset{border:0!important;border-bottom:1px solid var(--fec510-line,#34495d)!important;padding:10px 0!important;margin:0 0 10px!important;min-width:0}.fec511-inspect legend{font-size:13px;font-weight:650}.fec511-border-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.fec511-border-grid input{width:100%;box-sizing:border-box;padding:5px!important}.fec511-inspect canvas{display:block;background:#101923;width:100%;height:auto;aspect-ratio:1;border-radius:3px;cursor:crosshair;touch-action:pan-y;max-width:640px;margin:10px auto}.fec511-inspect #fec511Loupe{aspect-ratio:3/2;width:min(100%,240px);margin:8px 0;cursor:default}.fec511-inspect .fec511-check{display:flex;gap:8px;align-items:flex-start;line-height:1.5}.fec511-inspect .fec511-check input{width:18px!important;height:18px!important;min-height:0!important;margin:2px 0}.fec511-result{border-top:1px solid var(--fec510-line,#34495d);padding-top:12px;margin-top:18px}.fec511-result output{font-size:26px;font-weight:650;display:block;margin:10px 0}.fec511-reference{margin:16px 0;font-size:13px}.fec511-reference summary{cursor:pointer;padding:10px 0}.fec511-inspect :focus-visible{outline:2px solid #48a9ef!important;outline-offset:2px}
@media(max-width:760px){body.fec510-active .fec510-layout,.fec511-inspect-grid{grid-template-columns:1fr;gap:16px}body.fec510-active .fec510-controls{padding-top:0}body.fec510-active .fec510-stage{width:min(100%,340px,calc(58dvh * 5 / 7))}.fec511-inspect header{align-items:flex-start}.fec511-inspect h2{font-size:20px!important}.fec511-grade-nav{display:none}.fec511-border-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{body.fec510-active *{color:#000!important}body.fec510-active .fec511-inspect{background:#fff!important}body.fec510-active .fec511-inspect button{display:none!important}}
body.fec510-active #fec57Review .fec42-photo-panel{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}body.fec510-active .fec510-controls [hidden]{display:none!important}body.fec510-active .fec510-controls .fec510-rotate-row button{flex:1 1 0!important}

/* === assets/scanner-v514.css === */
/* V5.12 | Final shared presentation layer. Preserve feature-specific display contracts. */
:root[data-fec-theme="dark"]{--fec56-page:#10151c;--fec56-surface:#181f28;--fec56-surface2:#202a35;--fec56-line:#34414f;--fec56-ink:#edf2f7;--fec56-muted:#a7b5c4;--fec56-active:#243a50;--fec56-accent:#79c5ff;--fec56-hover:#263341;--fec510-panel:#181f28;--fec510-panel-alt:#202a35;--fec510-line:#34414f;--fec510-ink:#edf2f7;--fec510-muted:#a7b5c4;--fec510-blue:#1977bf;--fec510-blue-ink:#fff}
:root[data-fec-theme="light"]{--fec56-page:#f4f6f8;--fec56-surface:#fff;--fec56-surface2:#f5f7fa;--fec56-line:#d0d9e3;--fec56-ink:#182632;--fec56-muted:#4d6174;--fec56-active:#e3edf7;--fec56-accent:#12649a;--fec56-hover:#eaf0f6;--fec510-panel:#fff;--fec510-panel-alt:#f5f7fa;--fec510-line:#d0d9e3;--fec510-ink:#182632;--fec510-muted:#4d6174;--fec510-blue:#12649a;--fec510-blue-ink:#fff}
html body[data-workspace]{font:14px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:normal!important;background:var(--fec56-page)!important}
body[data-workspace] .fec-energy,body[data-workspace] #fecIntro{display:none!important}
body[data-workspace] .skip:focus{position:fixed;z-index:500;top:8px;left:8px}
body[data-workspace] .fec56-header{background:#121d2b!important;box-shadow:none!important;border-color:#34414f!important}
body[data-workspace] .fec56-header-inner{padding-inline:clamp(12px,2vw,28px)!important;gap:12px!important}
body[data-workspace] .fec56-brand img{width:150px!important;height:46px!important;object-fit:contain!important}
body[data-workspace] .fec56-brand-label{font-size:10px!important;letter-spacing:.09em!important;color:#b8c8d8!important}
body[data-workspace] .fec56-header-controls{gap:6px!important}
body[data-workspace] .fec56-header-controls :is(.fec512-vault-nav,.fec511-grade-nav){display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 12px;color:#e9f0f7!important;font-weight:600;font-size:13px;text-decoration:none;border-radius:5px;white-space:nowrap}
body[data-workspace] .fec56-header-controls :is(.fec512-vault-nav,.fec511-grade-nav):is(:hover,[aria-current=page]){background:#273b50!important;text-decoration:none}
body[data-workspace] .fec56-header :is(.fec56-scan,.fec56-menu>summary){border-radius:5px!important;box-shadow:none!important}
body[data-workspace] .fec56-menu-panel{border-radius:6px!important;box-shadow:0 10px 30px #0004!important}
body[data-workspace] .fec56-scrim:not([hidden]){backdrop-filter:none!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-side{border-right:1px solid var(--fec56-line)!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-nav-group>summary{font-size:12px!important;letter-spacing:0!important;text-transform:none!important;font-weight:650!important;border-radius:4px!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-group-items a{font-size:13px!important;border-radius:4px!important;min-height:38px!important}
:root[data-fec-theme] body[data-workspace="member"] .fec41-group-total{display:none!important}
:root[data-fec-theme] body[data-workspace="member"] .main{padding:clamp(16px,2.6vw,36px)!important;min-width:0!important}
:root[data-fec-theme] body[data-workspace="member"] .main .fec41-pagehead{background:transparent!important;box-shadow:none!important;border:0!important;border-bottom:1px solid var(--fec56-line)!important;border-radius:0!important;padding:0 0 18px!important;margin-bottom:24px!important}
body[data-workspace] .fec41-page-title-line h1{font-size:clamp(24px,3vw,32px)!important;font-weight:650!important;letter-spacing:-.025em!important;line-height:1.2!important}
body[data-workspace] .fec41-page-context{font-size:12px!important;border:0!important;background:transparent!important;letter-spacing:0!important;text-transform:none!important;font-weight:500!important}
body[data-workspace] .fec41-page-description{font-size:14px!important;line-height:1.5!important;max-width:70ch!important}
body[data-workspace] .fec41-breadcrumb{font-size:12px!important;font-weight:500!important}
body[data-workspace] .fec41-page-related{gap:8px!important}
body[data-workspace] .fec41-page-related a{border:0!important;border-radius:4px!important;background:transparent!important;padding:5px 8px!important;text-decoration:underline!important;text-underline-offset:3px}
:root[data-fec-theme] body[data-workspace] .main :is(article,.quick,.fec51-panel,.fec52-panel,.fec52-evidence-face,.fec50-flow){border-radius:6px!important;box-shadow:none!important}
:root[data-fec-theme] body[data-workspace] .main :is(h2,h3){letter-spacing:-.015em!important;line-height:1.3!important;font-weight:650!important}
:root[data-fec-theme] body[data-workspace] .main :is(button,.linkbutton,input:not([type=range]):not([type=checkbox]):not([type=radio]),select,textarea){border-radius:5px!important;box-shadow:none!important}
body[data-workspace] .main :is(button,.linkbutton){font-weight:600!important;letter-spacing:0!important}
body[data-workspace] .main :is(button,.linkbutton):hover{filter:none!important}
body[data-workspace] .main :is(a,button,input,select,summary,textarea,canvas):focus-visible,body[data-workspace] .fec56-header :focus-visible{outline:2px solid var(--fec56-accent)!important;outline-offset:3px!important}
body[data-workspace] .main [hidden]:not([data-fec512-face]){display:none!important}
body[data-workspace] .main .tabs{gap:5px!important;border-bottom:1px solid var(--fec56-line)!important;padding-bottom:5px!important}
body[data-workspace] .main .tabs a{border-radius:4px!important;box-shadow:none!important}
body[data-workspace] .main .tabs a.active{box-shadow:inset 0 -2px var(--fec56-accent)!important}
body[data-workspace] .main table{font-size:13px!important}
body[data-workspace] .main .notice{border-radius:5px!important;box-shadow:none!important}
body[data-workspace] .fec56-footer{background:transparent!important;box-shadow:none!important;border-top:1px solid var(--fec56-line)!important;border-radius:0!important}
/* Scan and grade: fewer boxes, consistent proportions and grouped tools. */
body.fec510-active .fec510-layout{grid-template-columns:minmax(0,1fr) minmax(230px,300px);gap:clamp(18px,3vw,36px);align-items:start}
body.fec510-active .fec510-stage{width:min(100%,440px,calc(64dvh * 5 / 7))!important;background:#101820!important}
body.fec510-active .fec510-controls{padding-top:0!important;gap:12px!important}
body.fec510-active .fec510-controls .fec510-rotate-row{display:flex!important;gap:6px!important}
body.fec510-active .fec510-controls .fec512-nudge button{min-height:36px!important}
body.fec510-active .fec510-controls .fec510-zoom-label{display:grid!important;grid-template-columns:1fr auto;gap:6px!important;font-size:13px!important}
body.fec510-active .fec510-controls .fec510-zoom-label input{grid-row:2!important}
body.fec510-active .fec510-controls .fec510-status{min-height:34px;color:var(--fec56-muted)!important}
body.fec510-active .fec510-desk-head p{margin:3px 0 0!important}
body.fec510-active .fec510-toolbar select{max-width:100%!important;min-height:38px!important}
body.fec510-active #fec59Recognition{border-radius:5px!important;box-shadow:none!important}
body.fec510-active .fec510-more,body.fec510-active .fec510-ai,body.fec510-active .fec512-preview-tools{border:0!important;border-top:1px solid var(--fec56-line)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
body.fec510-active .fec512-preview-tools{margin:12px 0!important}
body.fec510-active .fec512-preview-tools>summary{cursor:pointer;font-size:13px;font-weight:600;padding:10px 0}
body.fec510-active .fec511-inspect{padding:clamp(14px,2vw,24px)!important;border-radius:6px!important}
body.fec510-active .fec511-inspect-grid{grid-template-columns:minmax(0,1.2fr) minmax(260px,1fr);gap:24px}
body.fec510-active .fec511-inspect [data-fec512-face][hidden]{display:none!important}
body.fec510-active .fec511-inspect #fec511Evidence{width:min(100%,520px)!important;margin:10px auto!important}
body.fec510-active .fec511-inspect #fec511Loupe{width:min(100%,240px)!important}
body.fec510-active .fec511-inspect .fec511-tools button[aria-pressed="true"]{background:var(--fec56-active)!important;color:var(--fec56-ink)!important;border-color:var(--fec56-accent)!important}
body.fec510-active .fec511-inspect .fec511-border-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body.fec510-active .fec511-inspect .fec511-tools select{margin:0!important}
body.fec510-active .fec511-inspect #fec512Progress{font-size:13px;font-variant-numeric:tabular-nums;color:var(--fec56-muted)!important}
@media(max-width:1050px){body.fec510-active .fec510-layout,body.fec510-active .fec511-inspect-grid{grid-template-columns:minmax(0,1fr)!important;gap:16px!important}body.fec510-active .fec510-controls{max-width:600px!important;margin:auto!important;width:100%!important}}
@media(max-width:650px){body[data-workspace] .fec56-brand img{width:104px!important;height:36px!important}body[data-workspace] .fec56-brand-label{display:none!important}body[data-workspace] .fec56-header-controls{gap:3px!important}body[data-workspace] .fec56-header-controls :is(.fec511-grade-nav,.fec512-vault-nav){padding:6px 7px!important;font-size:12px!important;min-height:44px!important}body[data-workspace] .fec56-header-controls .fec512-vault-nav{display:none}body[data-workspace] .fec56-header :is(.fec56-scan,.fec56-menu>summary){min-height:44px!important}body[data-workspace] .fec56-scan{min-width:44px!important}body[data-workspace] .fec56-menu>summary{min-width:44px!important}body[data-workspace] .fec56-menu>summary span{display:none!important}body[data-workspace] .fec56-header-inner{gap:8px!important;padding-inline:10px!important}:root[data-fec-theme] body[data-workspace="member"] .main{padding:14px 12px 24px!important}:root[data-fec-theme] body[data-workspace="member"] .main .fec41-pagehead{margin-bottom:16px!important;padding-bottom:12px!important}body.fec510-active .fec510-stage{width:min(100%,350px,calc(60dvh * 5 / 7))!important}body.fec510-active .fec510-controls button,body.fec510-active .fec511-inspect button{min-height:44px!important}body.fec510-active .fec511-inspect .fec511-tools{gap:8px!important}body.fec510-active .fec511-inspect header{flex-wrap:wrap!important}}
@media(prefers-reduced-motion:reduce){body[data-workspace] :is(.fec56-header,.fec56-menu-panel,.fec41-side,.main button,.main a){transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media print{body[data-workspace][data-fec43-page=grade] .fec511-inspect [data-fec512-face][hidden]{display:block!important}body[data-workspace][data-fec43-page=grade] :is(.fec56-header,.fec41-side,.fec56-footer){display:none!important}}

/* V5.13 | Scanner-specific utility-first workspace, following existing theme tokens. */
:root[data-fec-theme] body.fec510-active .fec510-desk {padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;margin:16px 0!important;container-type:inline-size}
body.fec510-active .fec510-desk-head{margin:0 0 12px!important;align-items:center}
body.fec510-active .fec510-eyebrow,body.fec510-active .fec510-local,body.fec510-active .fec510-guide-label:empty{display:none!important}
body.fec510-active .fec510-layout{grid-template-columns:minmax(0,1fr) minmax(235px,280px)!important;gap:20px!important;max-width:none!important}
body.fec510-active .fec510-stage{--fec513-aspect:.714285714;aspect-ratio:var(--fec513-aspect)!important;width:min(100%,460px,calc(70dvh * var(--fec513-aspect)))!important;height:auto!important;max-height:none!important;box-shadow:none!important;border-radius:4px!important;border:0!important;background:#101820!important}
body.fec510-active .fec510-canvas{width:100%!important;height:100%!important;object-fit:contain!important}
/* Canvas itself is the export boundary; do not advertise an inset crop that does not match the JPEG. */
body.fec510-active .fec510-guide{inset:0!important;box-shadow:none!important;border:1px solid #c3d9ea99!important;border-radius:2px!important}
body.fec510-active .fec510-guide::before,body.fec510-active .fec510-guide::after{width:18px;height:18px;border-color:#87d5ff}
body.fec510-active .fec510-guide::before{left:0;top:0}body.fec510-active .fec510-guide::after{right:0;bottom:0}
body.fec510-active .fec510-toolbar:has(select[hidden]){display:none!important}
body.fec510-active .fec510-controls{display:grid!important;gap:10px!important;align-content:start!important;max-width:none!important;width:100%!important;margin:0!important}
body.fec510-active .fec510-controls :is(.fec510-rotate-row,.fec513-utility){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px!important}
body.fec510-active .fec510-controls button{min-height:40px!important;padding:7px 9px!important;margin:0!important;font-size:13px!important;white-space:normal!important}
body.fec510-active .fec510-controls .fec513-fine{display:grid;gap:6px}
body.fec510-active .fec510-controls .fec510-zoom-label{margin:0!important}
body.fec510-active .fec510-controls .fec510-status{min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;font-size:12px!important;line-height:1.5!important}
body.fec510-active .fec510-controls .fec510-editor-more{border:0!important;border-top:1px solid var(--fec56-line)!important;background:transparent!important;border-radius:0!important;margin:0!important}
body.fec510-active .fec510-controls .fec510-editor-more>summary{padding:8px 0!important;font-size:12px!important}
body.fec510-active .fec513-format-label{display:grid;gap:4px;font-size:12px}
body.fec510-active .fec510-controls .fec510-action-row{margin:0!important}
body.fec510-active .fec510-stage-note{font-size:12px!important;line-height:1.4!important;text-align:center;margin:6px 0 0!important}
body.fec513-scan .fec42-studio-layout,body.fec513-scan #fec57Review{max-width:1180px!important}
body.fec513-scan .fec42-capture-panel[data-camera=off] :is(#cameraBox,.fec48-assist){display:none!important}
body.fec513-scan .fec42-capture-panel[data-camera=off] .fec513-camera-options{display:none!important}
body.fec513-scan .fec42-capture-panel[data-camera=active] .fec42-camera{width:min(100%,760px)!important;margin-inline:auto!important;min-height:0!important;aspect-ratio:4/3!important;height:auto!important;max-height:56dvh!important}
body.fec513-scan .fec57-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
body.fec513-scan .fec57-actions button{flex:0 1 auto!important;min-width:0!important;width:auto!important;min-height:44px!important;padding:9px 13px!important;margin:0!important;font-size:13px!important}
body.fec513-scan .fec57-actions button[hidden]{display:none!important}
body.fec513-scan .fec57-actions .fec57-shoot:disabled{display:none!important}
body.fec513-scan .fec57-advanced{border:0!important;border-top:1px solid var(--fec56-line)!important;background:transparent!important;border-radius:0!important}
body.fec513-scan .fec57-advanced>summary{padding-inline:0!important}
body.fec513-scan .fec513-camera-options .fec48-toggle{margin:0!important;padding:4px 0!important;border:0!important;background:transparent!important}
body.fec513-scan #fec57Review .fec42-photo-panel{padding:clamp(12px,2vw,22px)!important}
body.fec513-scan #fec57Review .fec42-panel-head .fec42-kicker{display:none!important}
body.fec513-scan #fec57Review .fec42-panel-head p{margin:4px 0!important}
body.fec513-scan #fec59Recognition{border:0!important;border-top:1px solid var(--fec56-line)!important;border-radius:0!important;padding:16px 0 8px!important;margin:12px 0!important;background:transparent!important}
body.fec513-scan #fec59Recognition .fec59-title p{font-size:13px!important}
body.fec513-scan .fec59-result{border-radius:4px!important;box-shadow:none!important}
body.fec513-scan .fec510-desk[data-has-photo=no] .fec510-layout{display:none!important}
body.fec513-scan .fec510-desk[data-has-photo=no] .fec510-desk-head{display:none!important}
body.fec513-scan .fec510-desk[data-has-photo=no]{margin:0!important}
body.fec513-scan .fec510-desk[data-dirty=yes] .fec510-action-row button{outline:2px solid var(--fec56-accent)!important;outline-offset:2px}
@container(max-width:590px){body.fec510-active .fec510-layout{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}body.fec510-active .fec510-stage{width:min(100%,340px,calc(63dvh * var(--fec513-aspect)))!important}}
@media(max-width:650px){body.fec510-active .fec510-layout{grid-template-columns:minmax(0,1fr)!important}body.fec510-active .fec510-controls button{min-height:44px!important}body.fec513-scan .fec57-actions button{flex:1 1 120px!important}body.fec513-scan .fec42-capture-panel[data-camera=active] .fec42-camera{aspect-ratio:3/4!important;max-height:52dvh!important}}

/* V5.14 | Framing controls and restrained workspace hierarchy */
body.fec510-active #fec57Review,body.fec510-active #fec510Desk{width:100%!important;min-width:0!important;box-sizing:border-box!important}
body.fec510-active .fec514-framing{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
body.fec510-active .fec510-controls .fec514-framing button{min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;padding-inline:5px!important;overflow-wrap:anywhere!important}
body.fec510-active .fec514-framing button[aria-pressed=true]{border-color:var(--fec56-accent)!important;background:var(--fec56-active)!important;color:var(--fec56-ink)!important}
body.fec510-active .fec510-stage.fec514-grid .fec510-guide{background:linear-gradient(to right,transparent calc(33.333% - .5px),#829caf99 33.333%,transparent calc(33.333% + .5px),transparent calc(66.666% - .5px),#829caf99 66.666%,transparent calc(66.666% + .5px)),linear-gradient(to bottom,transparent calc(33.333% - .5px),#829caf99 33.333%,transparent calc(33.333% + .5px),transparent calc(66.666% - .5px),#829caf99 66.666%,transparent calc(66.666% + .5px))!important;pointer-events:none}
body.fec510-active .fec510-controls .fec510-control-title{font-size:14px!important;text-transform:none!important;letter-spacing:0!important}
body.fec510-active .fec510-controls .fec510-action-row button{width:100%!important;min-height:44px!important}
body.fec513-scan .fec57-lead-title{font-size:18px!important;letter-spacing:0!important}
body.fec513-scan .fec57-simple{box-shadow:none!important;border:0!important;background:transparent!important;padding:0!important}
body.fec513-scan .fec57-review>summary{font-size:15px!important;letter-spacing:0!important;text-transform:none!important}
body.fec513-scan .fec510-controls .fec513-utility button:disabled{opacity:.55!important}
body.fec510-active .fec510-desk[data-dirty=yes] .fec510-action-row button{outline:0!important;box-shadow:0 0 0 2px var(--fec56-accent)!important}
@media(max-width:420px){body.fec510-active .fec514-framing button{font-size:12px!important;padding-inline:4px!important}body.fec513-scan .fec57-actions{gap:6px!important}}

/* === assets/scanner-v515.css === */
/* Fair E Cards V5.15: shared workspace typography, progressive disclosure and guided steps.
   Use the existing V5.14 light/dark tokens, preserving feature-specific selectors. */
:root[data-fec-theme] body[data-workspace=member] .main{--fec515-gutter:clamp(14px,2.2vw,30px);--fec515-gap:clamp(14px,2vw,24px);padding:var(--fec515-gutter)!important}
:root[data-fec-theme] body[data-workspace=member] .main .fec41-pagehead{margin-bottom:18px!important;padding-bottom:14px!important}
:root[data-fec-theme] body.fec515-guided .main .fec41-page-related{display:none!important} /* Same routes remain in primary menu. */
:root[data-fec-theme] body[data-workspace=member] .main .fec43-workspace{margin:0 0 24px!important;color:var(--fec56-ink)!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
:root[data-fec-theme] body[data-workspace=member] .main .fec43-tabs{display:flex!important;flex-wrap:wrap!important;gap:0 12px!important;padding:0!important;margin:0 0 22px!important;overflow:visible!important;border:0!important;border-bottom:1px solid var(--fec56-line)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
:root[data-fec-theme] body[data-workspace=member] .main .fec43-tabs .fec43-tab{min-width:0!important;min-height:46px!important;margin:0!important;padding:10px 8px!important;flex:0 1 auto!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;color:var(--fec56-muted)!important;box-shadow:none!important;transform:none!important;white-space:normal!important;font-size:14px!important}
:root[data-fec-theme] body[data-workspace=member] .main .fec43-tab[aria-selected=true]{border-bottom-color:var(--fec56-accent)!important;color:var(--fec56-ink)!important}
:root[data-fec-theme] body[data-workspace=member] .main .fec43-tab::after{display:none!important}
:root[data-fec-theme] body[data-workspace=member] .main .fec43-panel{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;display:block}
:root[data-fec-theme] body[data-workspace=member] .main .fec43-panel[hidden]{display:none!important}
:root[data-fec-theme] body[data-workspace=member] .main .fec43-panel-intro{padding:0 0 10px!important;margin:0 0 10px!important;border:0!important;background:transparent!important;box-shadow:none!important}
:root[data-fec-theme] body[data-workspace=member] .main .fec43-panel-intro h2{font-size:19px!important;margin:0 0 4px!important}
:root[data-fec-theme] body[data-workspace=member] .main .fec43-panel-intro p{margin:0!important;color:var(--fec56-muted)!important}
:root[data-fec-theme] body[data-workspace=member] .main .fec43-panel>article{margin:0 0 var(--fec515-gap)!important;padding:var(--fec515-gap)!important;min-width:0!important;border:1px solid var(--fec56-line)!important;background:var(--fec56-surface)!important;box-shadow:none!important}
:root[data-fec-theme] body[data-workspace=member] .main .fec43-panel>article>h2{margin:0 0 10px!important;font-size:19px!important}
:root[data-fec-theme] body[data-workspace=member] .main .fec43-panel .fields{gap:14px!important}
:root[data-fec-theme] body[data-workspace=member] .main .fec43-panel .fec51-panel{width:100%!important;min-width:0!important}
body[data-workspace=member] .fec43-workspace .fec44-workflow{display:none!important}
body[data-workspace=member] .main [data-fec515-off]{display:none!important}
body[data-workspace=member] .main .fec515-flow{margin:0 0 16px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;max-width:1180px;width:100%;margin-inline:auto!important;scroll-margin-top:100px}
body[data-workspace=member] .main .fec515-step-list{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:0!important;border-bottom:1px solid var(--fec56-line);padding:0!important;margin:0 0 18px!important;background:transparent!important;min-width:0}
body[data-workspace=member][data-fec43-page=grade] .main .fec515-step-list{grid-template-columns:repeat(3,minmax(0,1fr))}
body[data-workspace=member] .main button.fec515-step{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;width:100%!important;min-width:0!important;min-height:54px!important;margin:0!important;padding:9px 8px!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;color:var(--fec56-muted)!important;text-align:left!important;font-size:14px!important;box-shadow:none!important;white-space:normal!important;line-height:1.3!important;transform:none!important}
body[data-workspace=member] .main button.fec515-step[aria-current=step]{color:var(--fec56-ink)!important;border-bottom-color:var(--fec56-accent)!important;font-weight:700!important}
body[data-workspace=member] .main button.fec515-step:disabled{opacity:.48!important;cursor:default!important}
.fec515-step-number{display:inline-grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border:1px solid var(--fec56-line);border-radius:50%;font-size:12px;font-variant-numeric:tabular-nums}
.fec515-step[aria-current=step] .fec515-step-number{background:var(--fec510-blue);color:#fff;border-color:transparent}
.fec515-step-lead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.fec515-step-copy{min-width:0}.fec515-step-copy h2{font-size:21px!important;margin:0 0 4px!important}.fec515-step-copy p{margin:0!important;color:var(--fec56-muted)!important;font-size:14px!important}
body[data-workspace=member] .main .fec515-help-trigger{width:auto!important;min-width:0!important;flex:none;padding:8px 12px!important;min-height:44px!important}
body.fec515-guided .main .fec54-page-index{display:none!important}
body.fec515-guided .main>.tabs{display:flex!important;flex-wrap:wrap!important;margin:0 0 16px!important;border:0!important;padding:0!important}
body[data-fec43-page=bulk] .main>.fec43-secondary-links{display:flex!important;flex-wrap:wrap!important}
/* Native hidden cannot be overridden for route navigation; script removes that attribute. */
body.fec515-guided .main #fec57Review{border:0!important;background:transparent!important;box-shadow:none!important;margin:0 auto 18px!important;padding:0!important}
body.fec515-guided .main #fec57Review>summary{display:none!important}
body.fec515-guided .main #fec57Review .fec42-photo-panel{padding:var(--fec515-gap,18px)!important;border:1px solid var(--fec56-line)!important;background:var(--fec56-surface)!important;border-radius:6px!important}
body.fec515-guided .main #fec57Review .fec42-panel-head{margin:0 0 12px!important}
body.fec515-guided .main .fec42-capture-panel{box-shadow:none!important;border:1px solid var(--fec56-line)!important;background:var(--fec56-surface)!important;padding:var(--fec515-gap,18px)!important;margin:0!important}
body.fec515-guided .main .fec42-capture-panel .fec57-simple{padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important}
body.fec515-guided .main .fec42-capture-panel>.fec46-capture-tips{display:none!important} /* duplicate tips moved to Help */
body.fec515-guided .main .fec42-capture-panel #cameraBox{border-radius:5px!important;box-shadow:none!important;background:#0c141d!important}
body.fec515-guided .main .fec58-panel{margin:0!important;padding:var(--fec515-gap,18px)!important;border:1px solid var(--fec56-line)!important;background:var(--fec56-surface)!important;border-radius:6px!important;box-shadow:none!important}
body.fec515-guided .main .fec58-panel .fec59-recognition{border:0!important;border-bottom:1px solid var(--fec56-line)!important;padding:0 0 18px!important;margin:0 0 18px!important}
body.fec515-guided .main .fec510-desk-head{margin:0 0 10px!important}
body.fec515-guided .main .fec510-controls{background:transparent!important;border:0!important;box-shadow:none!important}
body.fec515-guided .main .fec510-controls .fec510-status{margin:0!important;min-height:0!important}
body.fec515-guided .main .fec510-stage{border-radius:4px!important}
body.fec515-guided .main .fec515-alternatives{display:none;gap:10px;flex-wrap:wrap;margin:14px 0 0!important}
body.fec515-guided[data-fec515-step=identify] .main .fec515-alternatives{display:flex}
body.fec515-guided .main .fec515-step-footer{display:flex;justify-content:flex-end;gap:10px;max-width:1180px;margin:16px auto 26px!important;padding:14px 0 0!important;border-top:1px solid var(--fec56-line);width:100%;min-width:0}
body.fec515-guided .main .fec515-step-footer button{width:auto!important;min-width:min(160px,48%)!important;min-height:44px!important;margin:0!important}
body.fec515-guided .main .fec515-step-footer button[hidden]{display:none!important}
body.fec515-guided .main .fec515-grade-capture{display:flex;gap:8px;flex-wrap:wrap}
body.fec515-guided .main .fec515-grade-capture button{width:auto!important;min-height:44px!important}
body.fec515-guided .main .fec515-help{width:min(580px,calc(100% - 24px));max-height:calc(100dvh - 40px);overflow:auto;padding:22px!important;color:var(--fec56-ink)!important;background:var(--fec56-surface)!important;border:1px solid var(--fec56-line)!important;border-radius:8px!important;box-shadow:0 16px 48px #0005!important}
body.fec515-guided .main .fec515-help:not([open]){display:none!important}.fec515-help::backdrop{background:#0009}
.fec515-help-head{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--fec56-line);padding-bottom:12px;margin-bottom:18px}.fec515-help-head h2{margin:0!important;font-size:20px!important}.fec515-help-head button{width:auto!important}.fec515-help h3{font-size:15px!important;margin:16px 0 4px!important}.fec515-help p{margin:0!important;line-height:1.6!important;color:var(--fec56-muted)!important}
@media(max-width:700px){:root[data-fec-theme] body[data-workspace=member] .main .fec43-tabs{gap:0 6px!important}:root[data-fec-theme] body[data-workspace=member] .main .fec43-tabs .fec43-tab{font-size:13px!important;padding:8px 6px!important}body[data-workspace=member] .main button.fec515-step{font-size:12px!important;flex-direction:column!important;justify-content:center!important;text-align:center!important;gap:4px!important;min-height:66px!important;padding:7px 3px!important}.fec515-step-number{width:22px;height:22px;flex-basis:22px}.fec515-step-copy h2{font-size:19px!important}.fec515-step-copy p{font-size:13px!important}.fec515-step-lead{gap:8px}body.fec515-guided .main .fec515-step-footer button{flex:1 1 0!important;min-width:0!important}body.fec515-guided .main .fec515-alternatives>*{flex:1 1 140px!important}body.fec515-guided .main .fec515-help{padding:16px!important}}
@media print{body.fec515-guided .main :is(.fec515-flow,.fec515-step-footer,.fec515-help,.fec515-alternatives){display:none!important}}
@media(prefers-reduced-motion:reduce){body[data-workspace=member] .main :is(.fec43-tab,.fec515-step,.fec515-help){transition:none!important;animation:none!important}}

body.fec515-guided[data-fec43-page=grade][data-fec515-camera=off] .main .fec42-camera{display:none!important}

/* === source/workspace.css === */
/* V5.16 layout and component contracts. Existing feature-specific canvas geometry,
   hidden states and application form semantics remain owned by their controllers. */
:root[data-fec-theme] {
 --fec16-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 --fec16-expanded:246px; --fec16-rail:76px; --fec16-gutter:clamp(16px,2vw,32px);
 --fec16-content:1600px; --fec16-gap:16px; --fec16-radius:6px;
}
:root[data-fec-theme="light"]{--fec16-page:#f4f6f8;--fec16-surface:#fff;--fec16-soft:#edf2f6;--fec16-ink:#182a3b;--fec16-muted:#526679;--fec16-line:#cbd6df;--fec16-accent:#145f9c;--fec16-art:#e9eef3;--fec56-page:var(--fec16-page);--fec56-surface:var(--fec16-surface);--fec56-surface2:var(--fec16-soft);--fec56-ink:var(--fec16-ink);--fec56-muted:var(--fec16-muted);--fec56-line:var(--fec16-line);--fec56-accent:var(--fec16-accent)}
:root[data-fec-theme="dark"]{--fec16-page:#101820;--fec16-surface:#18232f;--fec16-soft:#202e3c;--fec16-ink:#edf3f8;--fec16-muted:#b4c3d2;--fec16-line:#3b4d60;--fec16-accent:#80caff;--fec16-art:#0b111a;--fec56-page:var(--fec16-page);--fec56-surface:var(--fec16-surface);--fec56-surface2:var(--fec16-soft);--fec56-ink:var(--fec16-ink);--fec56-muted:var(--fec16-muted);--fec56-line:var(--fec16-line);--fec56-accent:var(--fec16-accent)}
:root[data-fec-theme][data-fec-design="516"] {font-family:var(--fec16-font);scrollbar-gutter:stable;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace]{font:400 15px/1.55 var(--fec16-font)!important;letter-spacing:normal!important;background:var(--fec16-page)!important;color:var(--fec16-ink)!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .fec41-shell{display:grid!important;grid-template-columns:var(--fec16-expanded) minmax(0,1fr)!important;width:100%!important;max-width:none!important;align-items:start!important;margin:0!important;gap:0!important}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member].fec35-compact .fec41-shell{grid-template-columns:var(--fec16-rail) minmax(0,1fr)!important}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .fec41-side{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;transition:none!important}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;max-width:none!important;min-width:0!important;padding:var(--fec16-gutter)!important;margin:0!important;box-sizing:border-box!important;--fec16-canvas:min(100%,var(--fec16-content),calc(100vw - var(--fec16-expanded) - 2 * var(--fec16-gutter) - 20px))}
/* The expanded sidebar defines a stable desktop content measure in BOTH states. */
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main > :not(dialog){width:var(--fec16-canvas)!important;max-width:var(--fec16-canvas)!important;min-width:0!important;margin-inline:auto!important;align-self:center!important;box-sizing:border-box!important}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main > .fec41-pagehead{margin-bottom:18px!important;padding:0 0 18px!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main > .fec43-workspace{margin-bottom:24px!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main :is(.fec43-panel,.fec43-panels,.fec43-tabs){width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec43-panel-intro{min-height:0!important;margin:0 0 12px!important;padding:0!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec43-panel{animation:none!important;min-height:0!important}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace] .fec56-header-inner{max-width:none!important;width:100%!important;box-sizing:border-box!important;padding-inline:var(--fec16-gutter)!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace] .fec56-brand img{object-fit:contain!important;width:140px!important;max-width:100%!important;height:42px!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .fec41-side :is(a,summary,input,button){font-family:var(--fec16-font)!important;font-size:13px!important;letter-spacing:normal!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .fec41-side .fec41-side-collapse{font-size:20px!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .fec41-side a:hover svg{transform:none!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .fec44-rail-link::after{display:none!important;} /* existing real tooltip owns rail help */
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main :is(h1,h2,h3,h4,p,label,legend,small,summary,button,input,select,textarea,th,td,dt,dd,.linkbutton,.micro,.muted,.fec34-source,.fec35-match){font-family:var(--fec16-font)!important;letter-spacing:normal!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec41-page-title-line h1{font-size:clamp(24px,2vw,32px)!important;font-weight:700!important;line-height:1.2!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main :is(h2,.fec43-panel-intro h2){font-size:20px!important;font-weight:650!important;line-height:1.3!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main h3{font-size:16px!important;font-weight:650!important;line-height:1.35!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main h4{font-size:14px!important;font-weight:650!important;line-height:1.4!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main :is(p,label,legend,summary,th,td,dt,dd){font-size:14px!important;line-height:1.55!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main :is(.micro,.muted,small,.fec41-page-description,.fec43-panel-intro p,.fec35-match,.fec34-source){font-size:13px!important;line-height:1.5!important;color:var(--fec16-muted)!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main :is(.eyebrow,.fec42-kicker,.fec41-breadcrumb,.fec41-page-context){font-size:12px!important;line-height:1.5!important;color:var(--fec16-muted)!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main :is(article,.fec43-card,.quick,.fec51-panel,.fec52-panel,.fec52-evidence-face){border-radius:var(--fec16-radius)!important;box-shadow:none!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),select,textarea){font-size:14px!important;font-weight:400!important;line-height:1.45!important;border-radius:var(--fec16-radius)!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),select){min-height:42px!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main :is(button,.linkbutton){font-size:14px!important;line-height:1.3!important;font-weight:600!important;border-radius:var(--fec16-radius)!important;letter-spacing:normal!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main :is(.fec43-tab,.fec515-step){border-radius:0!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main :is(.fec43-tabs,.fec515-step-list){gap:0 8px!important;margin-bottom:16px!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec43-tab{min-height:44px!important;padding-inline:10px!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec43-panel>article{padding:clamp(14px,1.5vw,22px)!important;margin-bottom:16px!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main :is(.fields,.quickgrid,.metrics,.cardgrid,.fec52-facts-grid,.fec52-upload-grid){gap:var(--fec16-gap)!important;}
/* Catalogue: equal-width responsive tiles, unoccluded card art and secondary metadata disclosure. */
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec34-gallery:not(.fec34-featured){display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr))!important;align-items:stretch!important;gap:16px!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec34-gallery .fec34-tile{display:flex!important;flex-direction:column!important;min-width:0!important;overflow:visible!important;padding:12px!important;border:1px solid var(--fec16-line)!important;background:var(--fec16-surface)!important;color:var(--fec16-ink)!important;border-radius:var(--fec16-radius)!important;box-shadow:none!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec34-art{background:var(--fec16-art)!important;border:1px solid var(--fec16-line)!important;border-radius:4px!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec34-art img{width:100%!important;height:100%!important;max-width:100%!important;object-fit:contain!important;padding:4px!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec34-tile-body{display:flex!important;flex:1 1 auto;flex-direction:column;gap:6px;padding:8px 0 0!important;min-width:0!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec34-tile-body :is(p,h3){margin:0!important;overflow-wrap:anywhere!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec34-tile-body h3{font-size:16px!important;line-height:1.35!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec34-tile-body .fec34-source{align-self:flex-start;border:0!important;background:transparent!important;padding:0!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec34-tile-body form{margin-top:auto!important;padding-top:6px!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec34-tile-body form button{min-height:42px!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec34-prices,:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec516-reference-id{background:var(--fec16-soft)!important;color:var(--fec16-ink)!important;border:1px solid var(--fec16-line)!important;border-radius:var(--fec16-radius)!important;padding:8px 10px!important;margin:2px 0!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main :is(.fec34-prices,.fec516-reference-id) summary{color:var(--fec16-ink)!important;font-size:13px!important;line-height:1.4!important;cursor:pointer;overflow-wrap:anywhere;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec516-reference-id code{display:block;overflow-wrap:anywhere;white-space:normal;font-size:12px;padding-top:8px;color:var(--fec16-muted);}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main button.fec516-inspect{position:static!important;inset:auto!important;display:inline-flex!important;justify-content:center!important;align-items:center!important;transform:none!important;min-height:36px!important;width:100%!important;margin:6px 0 0!important;padding:6px 10px!important;background:var(--fec16-soft)!important;color:var(--fec16-ink)!important;border:1px solid var(--fec16-line)!important;font-size:13px!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main button.fec516-inspect[hidden]{display:none!important;}
/* Keep non-catalogue owned-card thumbnails' layout intact. Full viewer follows the same tokens. */
:root[data-fec-theme][data-fec-design="516"] body[data-workspace] :is(dialog.fec35-dialog,dialog.fec515-help){background:var(--fec16-surface)!important;color:var(--fec16-ink)!important;border:1px solid var(--fec16-line)!important;border-radius:10px!important;font-family:var(--fec16-font)!important;max-width:calc(100% - 24px)!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important;box-shadow:0 12px 36px #0004!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace] dialog::backdrop{background:#07121db0!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace] .fec35-viewer .fec35-image-stage{background:var(--fec16-art)!important;border:1px solid var(--fec16-line)!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace] .fec35-dialog :is(p,small,.micro){color:var(--fec16-muted)!important;font-size:14px!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec511-inspect{width:100%!important;max-width:none!important;margin-inline:auto!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec511-inspect :is(h3,legend){color:var(--fec16-ink)!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main :is(.fec515-flow,.fec42-studio-layout,#fec57Review){max-width:100%!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace] :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--fec16-accent)!important;outline-offset:3px!important;}
@media(max-width:900px){:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .fec41-shell,:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member].fec35-compact .fec41-shell{display:block!important;grid-template-columns:none!important;}:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main{--fec16-canvas:100%;--fec16-gutter:16px;}:root[data-fec-theme][data-fec-design="516"] body[data-workspace] .fec56-header-inner{padding-inline:12px!important;}:root[data-fec-theme][data-fec-design="516"] body[data-workspace] .fec56-brand img{width:110px!important;height:36px!important;}}
@media(max-width:600px){:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main{--fec16-gutter:12px;--fec16-gap:12px;}:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec34-gallery:not(.fec34-featured){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec34-gallery .fec34-tile{padding:8px!important;}:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec34-tile-body h3{font-size:14px!important;}:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),select,textarea){font-size:16px!important;}:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec43-tab{font-size:13px!important;padding-inline:6px!important;}:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec515-step{font-size:12px!important;}}
@media(max-width:360px){:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec34-gallery:not(.fec34-featured){grid-template-columns:1fr!important;}}
@media print{:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .fec41-shell{display:block!important;}:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main{--fec16-canvas:100%;padding:0!important;}:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main button.fec516-inspect{display:none!important;}}
/* Metric typography is an intentional exception to section heading sizes. */
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .hero.dashboard .big{font-size:clamp(30px,3.5vw,48px)!important;line-height:1.12!important;font-weight:700!important;font-variant-numeric:tabular-nums;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .hero.dashboard{padding:clamp(16px,2vw,24px)!important;min-height:0!important;background:var(--fec16-soft)!important;border-radius:var(--fec16-radius)!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec365-dashboard-note{background:var(--fec16-surface)!important;border-color:var(--fec16-line)!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec33-overview-metrics{grid-template-columns:repeat(auto-fit,minmax(min(100%,172px),1fr))!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec33-overview-metrics article{padding:16px!important;min-height:0!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec33-overview-metrics article span{font-size:13px!important;color:var(--fec16-muted)!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec33-overview-metrics article strong{font-size:22px!important;font-weight:700!important;line-height:1.2!important;font-variant-numeric:tabular-nums;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .quickgrid .quick{min-height:0!important;padding:16px!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec34-gallery .fec34-tile .fec34-prices[open]{max-height:none!important;overflow:visible!important;}
@media(max-width:900px){:root[data-fec-theme][data-fec-design="516"]{scrollbar-gutter:auto;}}

:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec41-breadcrumb a{color:var(--fec16-accent)!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member][data-fec43-page=index] .main #fec43-panel-index-overview>.fec43-panel-intro{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;}

/* V5.17: CSP-safe dashboard, condition evidence and compact disclosures. */
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec365-dashboard-note{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:14px 0 18px;padding:13px 16px;border:1px solid var(--fec16-line);border-radius:var(--fec16-radius);background:var(--fec16-surface)!important;color:var(--fec16-ink)!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec365-dashboard-note .micro{color:var(--fec16-muted)!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec511-inspect #fec517EvidenceReason{color:var(--fec16-ink)!important;background:var(--fec16-soft)!important;border:1px solid var(--fec16-line);border-radius:var(--fec16-radius);padding:10px 12px;margin:8px 0;overflow-wrap:anywhere;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec511-inspect #fec517EvidenceReason[hidden]{display:none!important;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec517-table-scroll{max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain;}
:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec517-table-scroll:focus-visible{outline:2px solid var(--fec16-accent);outline-offset:2px;}
@media(max-width:600px){:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec365-dashboard-note{gap:8px;padding:12px;}:root[data-fec-theme][data-fec-design="516"] body[data-workspace=member] .main .fec365-dashboard-note .linkbutton{min-height:44px;}}

/* V5.19: contextual links on demand; retain complete navigation. */
.fec519-related{margin-top:8px}.fec519-related>summary{cursor:pointer;font-size:13px;font-weight:600}.fec519-related:not([open])>.fec41-page-related{display:none!important}.fec519-related[open]>.fec41-page-related{display:flex!important;flex-wrap:wrap}.fec56-directory-group .fec56-count{display:none!important}

/* V5.20: reuse navigation and existing capture panels. */
html[data-fec-release="520"] .fec48-options label[hidden],html[data-fec-release="520"] .fec42-controlbar [hidden]{display:none!important}
html[data-fec-release="520"] .fec42-controlbar select{max-width:100%;min-width:0}

/* V5.21 bulk camera — same workspace design, no global navigation changes */
#fec521Bulk .fec521-camera{position:relative;background:#101820;max-width:780px;margin:12px auto;aspect-ratio:4/3;overflow:hidden;border-radius:8px}#fec521Video{width:100%;height:100%;object-fit:contain;display:block}#fec521Bulk .fec521-guide{position:absolute;left:32%;right:32%;top:12%;bottom:12%;border:2px dashed #9dc8ee;border-radius:8px;pointer-events:none}#fec521Bulk .fec521-queue-head{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:16px}#fec521Bulk .fec521-queue-head h3{margin:0 auto 0 0}#fec521Rows{display:grid;gap:0}#fec521Bulk .fec521-row{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line,#8192a344)}#fec521Bulk .fec521-row img{width:64px;height:86px;object-fit:contain;border-radius:4px;background:#101820}#fec521Bulk .fec521-row p{margin:3px 0;overflow-wrap:anywhere}#fec521Bulk .fec521-row .actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}#fec521Bulk #fec521Review{margin-top:16px}#fec521Bulk #fec521Candidates{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}#fec521Bulk [hidden]{display:none!important}@media(max-width:600px){#fec521Bulk .fec521-row{grid-template-columns:48px minmax(0,1fr)}#fec521Bulk .fec521-row img{width:48px;height:64px}#fec521Bulk .fec521-row .actions{grid-column:2;justify-content:flex-start}#fec521Bulk .fec521-camera{aspect-ratio:3/4}#fec521Bulk .fec521-guide{left:20%;right:20%}}
