:root{font:100%/1.5 -apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",Inter,system-ui,sans-serif;color:#1d1d1f;background:#f5f5f7;--blue:#007aff;--blue-deep:#005ecb;--ink:#1d1d1f;--muted:#6e6e73;--line:rgba(0,0,0,.09);--glass:rgba(255,255,255,.72);--green:#248a3d;--amber:#b06a00}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(900px 560px at 82% -20%,#dcecff 0%,transparent 65%),#f5f5f7;color:var(--ink)}button,input{font:inherit}.shell{max-width:1180px;margin:auto;padding:22px 28px 20px}.topbar{height:50px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:700;letter-spacing:-.035em}.brand img{width:30px;height:30px;border-radius:9px;box-shadow:0 5px 18px #007aff26}.health{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}.health i{width:7px;height:7px;border-radius:50%;background:#ff9f0a;box-shadow:0 0 0 4px #ff9f0a18}.health i.ok{background:#34c759;box-shadow:0 0 0 4px #34c75918}.hero{display:flex;align-items:end;justify-content:space-between;padding:83px 0 48px}.eyebrow{margin:0 0 14px;color:var(--blue);font-size:11px;font-weight:700;letter-spacing:.13em}.hero h1{max-width:680px;margin:0;font-size:clamp(40px,6vw,70px);line-height:1.03;letter-spacing:-.065em;font-weight:700}.hero h1 em{font-style:normal;color:var(--blue)}.lede{max-width:610px;margin:23px 0 0;color:var(--muted);font-size:15px;line-height:1.65}.hero-chip{padding:10px 14px;border:1px solid rgba(0,0,0,.1);border-radius:999px;background:rgba(255,255,255,.5);backdrop-filter:blur(16px);color:#4c4c50;font-size:11px;white-space:nowrap;box-shadow:0 3px 16px #00000008}.chip-dot{display:inline-block;width:6px;height:6px;margin-right:7px;border-radius:50%;background:var(--blue)}.workspace{display:grid;grid-template-columns:1.18fr .82fr;gap:18px}.card{border:1px solid rgba(255,255,255,.82);border-radius:24px;background:var(--glass);backdrop-filter:blur(24px) saturate(140%);box-shadow:0 18px 50px rgba(31,38,51,.09),0 1px 2px #00000008;padding:21px}.card-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:16px}.card h2{margin:0 0 4px;font-size:16px;letter-spacing:-.02em}.card-head p{margin:0;color:var(--muted);font-size:12px}.badge{border:1px solid #34c75955;border-radius:999px;padding:5px 9px;color:var(--green);background:#34c75912;font-size:10px;font-weight:600}.badge.neutral{border-color:var(--line);background:#00000004;color:var(--muted)}.video-wrap{position:relative;height:370px;overflow:hidden;border-radius:17px;background:#e9edf2;box-shadow:inset 0 0 0 1px #0000000d}.video-wrap video{width:100%;height:100%;object-fit:contain;background:#101820;transform:scaleX(-1)}.video-empty{position:absolute;inset:0;display:grid;place-content:center;text-align:center;color:#7f8790}.camera-icon{display:grid;place-items:center;width:47px;height:47px;margin:0 auto 12px;border:1px solid #007aff45;border-radius:15px;background:#fff;color:var(--blue);font-size:24px;box-shadow:0 8px 25px #007aff1a}.video-empty p{margin:0;font-size:12px;line-height:1.6}.guide{position:absolute;inset:14%;border:1px solid #fff9;border-radius:36px;box-shadow:0 0 0 100vmax #001a3312;pointer-events:none}.guide span{position:absolute;width:12px;height:12px;border-color:#fff;border-style:solid;filter:drop-shadow(0 1px 2px #0004)}.guide span:nth-child(1){left:-1px;top:-1px;border-width:2px 0 0 2px}.guide span:nth-child(2){right:-1px;top:-1px;border-width:2px 2px 0 0}.guide span:nth-child(3){left:-1px;bottom:-1px;border-width:0 0 2px 2px}.guide span:nth-child(4){right:-1px;bottom:-1px;border-width:0 2px 2px 0}.motion-label{position:absolute;bottom:12px;left:12px;padding:6px 9px;border-radius:8px;background:#0008;color:#fff;font-size:10px;backdrop-filter:blur(12px)}.controls{display:flex;gap:9px;margin-top:15px}.controls button,.upload{cursor:pointer;border-radius:11px;padding:10px 14px;font-size:12px;font-weight:600;transition:transform .16s ease,background .16s ease,box-shadow .16s ease}.controls button:active,.upload:active{transform:scale(.97)}.primary{border:1px solid var(--blue);background:var(--blue);color:#fff;box-shadow:0 5px 14px #007aff26}.primary:hover{background:var(--blue-deep)}.secondary{border:1px solid var(--line);background:#ffffffa8;color:#3c3c40}.secondary:hover{background:#fff}.controls button:disabled{cursor:not-allowed;opacity:.42}.play{font-size:10px;margin-right:4px}.upload{display:inline-flex;align-items:center}.upload input{display:none}.result{min-height:475px}.result-empty{height:390px;display:grid;place-content:center;text-align:center;color:#8a8a8f}.result-mark{margin-bottom:12px;color:#007aff80;font-size:46px;line-height:1}.result-empty p{margin:0 0 6px;color:#55555a;font-size:14px}.result-empty small{max-width:220px;font-size:11px;line-height:1.6}.top-one{display:flex;align-items:end;justify-content:space-between;padding:18px 0;border-bottom:1px solid var(--line)}.label{display:block;margin-bottom:8px;color:var(--blue);font-size:10px;font-weight:700;letter-spacing:.06em}.top-one strong{font-size:30px;line-height:1;letter-spacing:-.05em}.confidence{color:var(--blue);font-size:14px;font-variant-numeric:tabular-nums}.probes{padding-top:14px}.probe{display:grid;grid-template-columns:22px 1fr 48px;gap:9px;align-items:center;margin:11px 0;font-size:12px}.probe .rank{color:#8e8e93;font-size:11px;font-variant-numeric:tabular-nums}.probe .bar{height:5px;margin-top:6px;overflow:hidden;border-radius:999px;background:#0000000b}.probe .fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#5ac8fa,var(--blue))}.probe .pct{text-align:right;color:#77777c;font-size:10px;font-variant-numeric:tabular-nums}.quality-panel{margin-top:17px;padding:12px 13px;border:1px solid var(--line);border-radius:13px;background:#fff9;color:#6e6e73;font-size:11px;line-height:1.6}.quality-panel.good{border-color:#34c75955;background:#34c7590d;color:var(--green)}.quality-panel.warn{border-color:#ff9f0a55;background:#ff9f0a0d;color:var(--amber)}.warning{margin-top:5px}.warning b{font-weight:700}.warning code{margin-left:4px;color:#8e8e93;font-size:9px}footer{display:flex;justify-content:space-between;padding:18px 3px 0;color:#8e8e93;font-size:10px}.splash{position:fixed;z-index:10;inset:0;display:grid;place-items:center;background:#fff;clip-path:inset(0);animation:splash-wipe 520ms cubic-bezier(.76,0,.2,1) 1740ms forwards}.splash-word{display:flex;align-items:center;color:#1677ff;font-size:clamp(52px,11vw,132px);font-weight:700;letter-spacing:-.08em;line-height:1}.splash-word span{display:inline-block;will-change:transform,opacity;animation:letter-out 220ms cubic-bezier(.7,0,.2,1) forwards}.splash-word span:nth-child(2){animation-delay:410ms}.splash-word span:nth-child(3){animation-delay:470ms}.splash-word span:nth-child(4){animation-delay:530ms}.splash-word span:nth-child(5){animation-delay:590ms}.splash-word span:nth-child(6){animation-delay:650ms}.splash-word span:nth-child(7){animation-delay:710ms}.splash-word span:nth-child(8){animation-delay:770ms}.splash-word span:nth-child(9){animation-delay:830ms}.splash-word .keep{animation:keep-s 440ms cubic-bezier(.2,.9,.2,1) 1190ms forwards}.splash img{position:absolute;width:0;border-radius:24%;opacity:0;will-change:transform,opacity,width;animation:icon-in 430ms cubic-bezier(.2,.9,.2,1) 1260ms forwards}@keyframes letter-out{to{opacity:0;transform:translateX(-22px) scaleX(.6)}}@keyframes keep-s{to{opacity:0;transform:translateX(2px) scale(.5)}}@keyframes icon-in{0%{width:0;opacity:0;transform:scale(.45) rotate(-8deg)}65%{width:83px;opacity:1;transform:scale(1.08) rotate(2deg)}100%{width:72px;opacity:1;transform:scale(1) rotate(0)}}@keyframes splash-wipe{to{clip-path:inset(0 0 0 100%)}}@media(max-width:820px){.shell{padding:18px 16px}.hero{display:block;padding:66px 0 31px}.hero-chip{display:inline-block;margin-top:21px}.workspace{grid-template-columns:1fr}.video-wrap{height:310px}.result{min-height:0}.result-empty{height:220px}}@media(prefers-reduced-motion:reduce){.splash{animation:none;opacity:0;visibility:hidden}.splash-word span{animation:none}.splash img{animation:none}.controls button,.upload{transition:none}}@media(prefers-reduced-transparency:reduce){.card,.hero-chip{background:#fff;backdrop-filter:none}}

html,body{height:100%;overflow:hidden}.shell{height:100vh;display:flex;flex-direction:column;padding-top:16px;padding-bottom:14px}.topbar{flex:0 0 50px}.workspace{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px}.card{height:100%;min-height:0}.capture{display:flex;flex-direction:column}.capture .video-wrap{flex:1;min-height:0;height:auto}.result{overflow:hidden}.resultBody{min-height:0}.probes{min-height:0}.hero{display:none}.card h2{font-size:20px}.card-head p{font-size:13px}.controls{flex:0 0 auto}.result-empty{height:100%}@media(max-width:820px){html,body{overflow:hidden}.shell{padding:12px}.workspace{display:grid;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) minmax(0,1fr);gap:12px}.video-wrap{height:auto;min-height:0}.card{padding:16px}.result-empty{height:100%}}
.badge.active{color:var(--amber);border-color:#ff9f0a66;background:#ff9f0a12}.badge.processing{color:var(--blue);border-color:#007aff55;background:#007aff12}
.camera-icon{position:relative}.camera-icon:before{content:"";display:block;width:24px;height:16px;border:2px solid var(--blue);border-radius:5px}.camera-icon:after{content:"";position:absolute;left:17px;top:16px;width:8px;height:8px;border:2px solid var(--blue);border-radius:50%;transform:translate(-50%,-50%)}
[hidden]{display:none!important}.video-empty[hidden]{display:none!important}

/* Camera first, recognition below; let the live image use the full capture area. */
.workspace{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(300px,1.28fr) minmax(190px,.72fr);gap:14px}
.capture.card{display:flex;flex-direction:column;min-height:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none}
.capture .card-head{flex:0 0 auto;align-items:center;margin:0 2px 10px}
.capture .video-wrap{flex:1;min-height:0;height:auto;border-radius:12px;background:#101820;box-shadow:none}
.video-wrap video{display:block;object-fit:contain;background:#101820}
.guide{display:none}
.controls{flex:0 0 auto;align-items:center;margin-top:10px}
.controls #captureBtn{min-width:156px}
.keyboard-hint{color:var(--muted);font-size:11px}
.keyboard-hint kbd{margin:0 3px;padding:2px 6px;border:1px solid #0000001a;border-radius:5px;background:#ffffffa8;color:#4c4c50;font:600 10px/1.4 -apple-system,BlinkMacSystemFont,system-ui,sans-serif;box-shadow:0 1px 0 #00000012}

/* Keep the application bar in place while the SLT workspace loads in the shell. */
.shell{position:relative}
.shell.slt-mode .workspace,.shell.slt-mode footer{display:none}
.slt-view{display:none;min-height:0;flex:1;overflow:hidden;border:1px solid rgba(255,255,255,.82);border-radius:18px;background:rgba(255,255,255,.72);box-shadow:0 18px 50px rgba(31,38,51,.09),0 1px 2px #00000008;animation:app-content-in 420ms cubic-bezier(.2,.9,.2,1) both}
.shell.slt-mode .slt-view{display:flex}
.slt-view iframe{display:block;width:100%;height:100%;min-height:0;border:0;background:#f5f5f7}
.view-splash{position:absolute;z-index:4;inset:0;display:grid;place-items:center;background:#fff;opacity:0;visibility:hidden;pointer-events:none}
.view-splash.is-running{visibility:visible;opacity:1}
.view-splash.is-leaving{animation:view-wipe 480ms cubic-bezier(.76,0,.2,1) forwards}
.view-splash-word{color:#1677ff;font-size:clamp(48px,9vw,112px);font-weight:700;letter-spacing:-.08em;line-height:1;opacity:0;transform:translateY(18px) scale(.94)}
.view-splash.is-running .view-splash-word{animation:view-word 420ms cubic-bezier(.2,.9,.2,1) forwards}
.view-splash.is-loading .view-splash-word{animation:view-loading 1300ms ease-in-out 420ms infinite}
.view-splash.is-loading::after{content:"";position:absolute;top:calc(50% + 76px);width:34px;height:34px;border:2px solid #007aff22;border-top-color:#007aff;border-radius:50%;animation:view-spinner 900ms linear infinite}
@keyframes view-word{55%{opacity:1;transform:translateY(0) scale(1.03)}100%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes view-loading{0%,100%{opacity:.62;transform:translateY(0) scale(.97);filter:blur(.2px)}50%{opacity:1;transform:translateY(-8px) scale(1.04);filter:blur(0)}}
@keyframes view-spinner{to{transform:rotate(360deg)}}
@keyframes view-wipe{from{opacity:1;clip-path:inset(0)}to{opacity:0;clip-path:inset(0 0 0 100%);visibility:hidden}}
@keyframes app-content-in{from{opacity:0;transform:translateY(10px) scale(.995)}to{opacity:1;transform:none}}
@media(max-width:820px){.slt-view{border-radius:14px}.view-splash{inset:0}}
@media(prefers-reduced-motion:reduce){.slt-view{animation:none}.view-splash.is-running{animation:none;opacity:0;visibility:hidden}.view-splash-word,.view-splash.is-loading::after{animation:none}}
.result{min-height:0;overflow:auto}
.result-empty{height:auto;min-height:100px}
@media(max-width:820px){html,body{height:auto;min-height:100%;overflow:auto}.shell{height:auto;min-height:100vh;padding:12px}.topbar{flex-basis:44px}.workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(280px,56vh) minmax(190px,auto);gap:16px}.capture.card{height:auto}.capture .video-wrap{height:auto;min-height:0}.result{height:auto;min-height:190px}.result-empty{min-height:100px}.controls{flex-wrap:wrap}.hero{display:none}footer{padding-bottom:4px}}

/* ISLR workspace and app switcher. */
.site-layout{min-height:100vh;display:grid;grid-template-columns:232px minmax(0,1fr)}
.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:24px 15px 18px;border-right:1px solid rgba(0,0,0,.07);background:rgba(250,250,252,.82);backdrop-filter:blur(22px)}
.side-brand{display:flex;align-items:center;gap:11px;padding:2px 9px 30px;color:var(--ink);text-decoration:none}
.side-brand img{width:36px;height:36px;border-radius:11px;box-shadow:0 5px 18px #007aff26}
.side-brand strong{display:block;font-size:17px;line-height:1.15;letter-spacing:-.035em}
.side-brand small{display:block;margin-top:3px;color:var(--muted);font-size:10px}
.side-label{margin:0 9px 9px;color:#85858a;font-size:9px;font-weight:700;letter-spacing:.13em}
.side-nav{display:grid;gap:5px}
.nav-item{min-width:0;display:flex;align-items:center;gap:10px;padding:10px 9px;border:1px solid transparent;border-radius:12px;color:#48484d;text-decoration:none;transition:background .16s ease,border-color .16s ease,transform .16s ease}
.nav-item:hover{background:#fff;border-color:#0000000d;transform:translateY(-1px)}
.nav-item.active{border-color:#007aff20;background:#007aff0c;color:#075fc2;box-shadow:inset 2px 0 #007aff}
.nav-icon{width:29px;height:29px;flex:0 0 29px;display:grid;place-items:center;border:1px solid #007aff20;border-radius:9px;background:#007aff0c;color:var(--blue);font-size:13px;font-weight:700}
.slt-icon{border-color:#48a99b2b;background:#48a99b12;color:#338c80}
.nav-copy{min-width:0;display:grid;gap:2px}
.nav-copy strong{font-size:12px;font-weight:650}
.nav-copy small{overflow:hidden;color:var(--muted);font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.nav-current{width:6px;height:6px;margin-left:auto;border-radius:50%;background:#34c759}
.nav-external{margin-left:auto;color:#8e8e93;font-size:14px}
.sidebar-foot{display:flex;align-items:center;gap:8px;margin-top:auto;padding:12px 9px 0;border-top:1px solid var(--line);color:var(--muted);font-size:10px}
.sidebar-status{width:7px;height:7px;border-radius:50%;background:#34c759;box-shadow:0 0 0 4px #34c75918}
.shell{width:100%;max-width:1320px;margin:0 auto;padding:17px clamp(18px,3vw,42px) 16px}
.topbar{flex:0 0 58px}
.page-title .eyebrow{margin:0 0 1px;font-size:8px;letter-spacing:.12em}
.page-title h1{margin:0;font-size:19px;line-height:1.15;letter-spacing:-.035em}
.health{padding:7px 10px;border:1px solid var(--line);border-radius:999px;background:#ffffffa8;font-size:10px}
.workspace{grid-template-rows:minmax(280px,1.22fr) minmax(180px,.78fr);gap:12px}
.capture .video-wrap{border-radius:16px}
.capture .card-head{margin-bottom:8px}
.card-head{margin-bottom:11px}
footer{padding-top:12px}
.splash{pointer-events:none}
@media(max-width:820px){
  .site-layout{display:block}
  .sidebar{z-index:5;height:auto;position:sticky;top:0;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:0 12px;padding:9px 12px;border-right:0;border-bottom:1px solid var(--line)}
  .side-brand{padding:0;gap:8px}
  .side-brand img{width:30px;height:30px;border-radius:9px}
  .side-brand strong{font-size:14px}
  .side-brand small,.side-label,.sidebar-foot{display:none}
  .side-nav{display:flex;justify-content:flex-end;gap:5px}
  .nav-item{gap:7px;padding:6px 8px;border-radius:10px}
  .nav-item.active{box-shadow:inset 0 -2px #007aff}
  .nav-icon{width:25px;height:25px;flex-basis:25px;border-radius:8px;font-size:11px}
  .nav-copy small,.nav-current{display:none}
  .nav-copy strong{font-size:11px}
  .nav-external{font-size:12px}
  .shell{padding:10px 12px}
  .topbar{height:46px;flex-basis:46px}
  .page-title .eyebrow{font-size:7px}
  .page-title h1{font-size:16px}
  .health{gap:6px;padding:6px 8px;font-size:9px}
}
