/* Snatch app replica — tokens and components transcribed from isloth/apps/mobile + packages/ui (main, d0a2ef10).
   Minimal light/dark themes, System font, 4-pt spacing, radii 3/6/10/14/20, accent #FFC800 with ink #111111. */
.app{
  --bg:#FFFFFF;--bg2:#F5F5F3;--card:#F5F5F3;--elev:#FFFFFF;
  --t1:#111111;--t2:#55554F;--t3:#6B6B66;--tinv:#FFFFFF;--tdis:#A8A8A2;
  --b1:#E4E3DE;--b2:#EAEAE6;--i1:#111111;--i2:#6B6B66;--i3:#8A8A84;--ph:#8A8A84;
  --acc:#FFC800;--on:#111111;--accs:rgba(255,200,0,.18);
  --nav-bg:rgba(255,255,255,.72);--nav-b:rgba(17,17,17,.08);--nav-sh:rgba(17,17,17,.14);
  --nav-act-bg:#111111;--nav-act-fg:#FFC800;--nav-in:#55554F;
  --err:#B3261E;--ok:#1E8E5A;--info:#2563EB;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Inter",system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;color:var(--t1);
}
.app.dark{
  --bg:#0E0E0F;--bg2:#1C1C1E;--card:#1C1C1E;--elev:#2C2C2E;
  --t1:#F5F5F2;--t2:#A1A19B;--t3:#8A8A84;--tinv:#111111;--tdis:#5A5A56;
  --b1:#2C2C2E;--b2:#262628;--i1:#F5F5F2;--i2:#A1A19B;--i3:#6E6E69;--ph:#6E6E69;
  --accs:rgba(255,200,0,.16);
  --nav-bg:rgba(30,30,32,.72);--nav-b:rgba(255,255,255,.10);--nav-sh:rgba(0,0,0,.55);
  --nav-act-bg:rgba(255,200,0,.16);--nav-act-fg:#FFC800;--nav-in:#A1A19B;
  --err:#F2B8B5;--ok:#4ADE80;--info:#60A5FA;
}
.app *{box-sizing:border-box}
.app svg.ic{display:block;flex:none}
/* type scale (theme.typography) */
.cap{font-size:12px;line-height:16px}.body{font-size:14px;line-height:20px}.sub{font-size:16px;line-height:22px}
.title{font-size:20px;line-height:26px}.head{font-size:24px;line-height:30px}.disp{font-size:32px;line-height:40px}
.w5{font-weight:500}.w6{font-weight:600}.w7{font-weight:700}
.c1{color:var(--t1)}.c2{color:var(--t2)}.c3{color:var(--t3)}

/* device screen 393 x 852 pt (iPhone 15/16 Pro), safe area top 59 / bottom 34 */
.screen{position:absolute;inset:0;width:393px;height:852px;overflow:hidden;background:var(--bg);color:var(--t1)}
.layer{position:absolute;inset:0;width:393px;height:852px;overflow:hidden;isolation:isolate}
.sb{position:absolute;left:0;right:0;top:0;height:54px;z-index:60;display:flex;justify-content:space-between;align-items:center;pointer-events:none;color:var(--t1)}
.sb.light{color:#fff}
.sb .tm{width:133px;text-align:center;font:600 17px/1 -apple-system,"SF Pro Text",system-ui,sans-serif;letter-spacing:-.2px;padding-top:6px}
.sb .ri{width:133px;display:flex;justify-content:center;gap:6px;align-items:center;padding-top:6px}
.home-ind{position:absolute;left:50%;bottom:8px;width:134px;height:5px;margin-left:-67px;border-radius:3px;background:var(--t1);opacity:.92;z-index:70}

/* TabTopBar: no visible title; 56-pt action row or 8-pt spacer under the safe area */
.ttb{padding-top:59px;background:var(--bg)}
.ttb .row{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 16px}
.ttb .sp{height:8px}
.tbi{width:44px;height:44px;border-radius:22px;display:flex;align-items:center;justify-content:center;background:var(--bg2);color:var(--i1)}
.tbt{height:36px;padding:0 14px;border-radius:18px;display:flex;align-items:center;background:var(--bg2);font-weight:600;font-size:14px}
/* AppHeader for pushed screens */
.hdr{padding-top:59px;background:var(--bg);border-bottom:.5px solid var(--b2)}
.hdr .bar{height:44px;display:flex;align-items:center;padding:0 8px}
.hdr .side{min-width:40px;display:flex;align-items:center;color:var(--t1)}
.hdr .side.r{justify-content:flex-end}
.hdr .tb{flex:1;text-align:center;min-width:0}

/* Minimal Glass floating tab bar: 66-pt capsule, 14-pt side gap, bottom gap 26 */
.tabbar{position:absolute;left:14px;right:14px;bottom:26px;height:66px;border-radius:33px;z-index:55;
  box-shadow:0 14px 36px var(--nav-sh);border:.5px solid var(--nav-b);overflow:hidden}
.tabbar::before{content:"";position:absolute;inset:0;background:var(--nav-bg);-webkit-backdrop-filter:blur(24px) saturate(170%);backdrop-filter:blur(24px) saturate(170%)}
.tabbar .row{position:relative;display:flex;align-items:center;height:100%;padding:0 5px;gap:2px}
.tabi{flex:1;height:56px;border-radius:28px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--nav-in);transition:none}
.tabi span{font-size:11px;letter-spacing:.1px;font-weight:500;line-height:13px}
.tabi.on{background:var(--nav-act-bg);color:var(--nav-act-fg)}
.tabi.on span{font-weight:700}

/* Scan (home) */
.scan .content{padding:4px 16px 0;display:flex;flex-direction:column;gap:10px}
.hero-card{min-height:136px;border-radius:20px;padding:18px;background:var(--bg2);display:flex;flex-direction:column;justify-content:space-between;gap:16px}
.app.dark .hero-card{border:.5px solid var(--b1)}
.hero-card .top{display:flex;align-items:center;justify-content:space-between}
.sq-acc{width:44px;height:44px;border-radius:12px;background:var(--acc);color:var(--on);display:flex;align-items:center;justify-content:center}
.pill-acc{padding:8px 14px;border-radius:999px;background:var(--acc);color:var(--on);font-weight:600;font-size:14px;line-height:20px}
.tiles{display:flex;flex-wrap:wrap;justify-content:space-between;row-gap:10px}
.tile{width:48.5%;min-height:96px;border-radius:16px;padding:14px;background:var(--bg2);display:flex;flex-direction:column;justify-content:space-between;gap:8px;color:var(--i1)}
.ip-head{display:flex;justify-content:space-between;align-items:center;padding:0 4px;margin-top:12px}
.ip-row{display:flex;align-items:center;gap:12px;padding:12px;border-radius:16px;background:var(--bg2)}
.ip-row .th{width:48px;height:48px;border-radius:10px;overflow:hidden;flex:none;background:var(--elev)}
.ip-row .th img{width:100%;height:100%;object-fit:cover;display:block}
.ip-row .bd{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.ip-row .tr{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.segs{display:flex;gap:4px}.seg{flex:1;height:4px;border-radius:2px;background:var(--b1)}.seg.f{background:var(--acc)}
.rdot{width:8px;height:8px;border-radius:4px;background:var(--acc);flex:none}
.res{display:flex;align-items:center;gap:6px}

/* Photo viewer ("shop the photo"): photo 42% of the height on black */
.viewer .imgarea{position:relative;height:358px;background:#000;overflow:hidden}
.viewer .imgarea .ph{position:absolute;left:50%;top:0;height:100%;transform:translateX(-50%)}
.viewer .imgarea .ph img{height:100%;display:block}
.hs{position:absolute;width:20px;height:20px;margin:-10px 0 0 -10px;border-radius:10px;border:2px solid var(--acc);background:rgba(255,200,0,.45);box-shadow:0 1px 2px rgba(0,0,0,.35)}
.hs.sel{width:24px;height:24px;margin:-12px 0 0 -12px;border-radius:12px;border:3px solid #fff;background:var(--acc);box-shadow:0 1px 3px rgba(0,0,0,.4)}
.selbox{position:absolute;border:2px solid var(--acc);border-radius:6px;background:rgba(255,200,0,.12)}
.ovbtn{position:absolute;top:8px;right:8px;width:40px;height:40px;border-radius:20px;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center}
.shape-chip{position:absolute;top:8px;left:8px;display:flex;align-items:center;gap:4px;padding:4px 8px;border-radius:999px;background:rgba(14,14,15,.8);color:#fff}
.spin{width:14px;height:14px;border-radius:50%;border:2px solid rgba(255,200,0,.25);border-top-color:var(--acc)}
.panel{padding:12px 12px 0;display:flex;flex-direction:column;gap:12px}
.ph-head{display:flex;align-items:flex-start;gap:8px}
.ph-head .tx{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.ph-head .eb{font-size:12px;line-height:16px;font-weight:600;color:var(--t2);text-transform:uppercase}
.ph-head .pr{display:flex;flex-direction:column;align-items:flex-end;padding-top:12px}
.ph-head .rm{padding-top:12px;color:var(--t2)}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{min-height:32px;padding:0 12px;border-radius:999px;border:1px solid var(--b1);display:flex;align-items:center;font-size:12px;font-weight:600;color:var(--t1)}
.chip.on{background:var(--t1);border-color:var(--t1);color:var(--bg)}
.plist{display:flex;gap:12px;padding-right:12px}
.pcard{width:152px;flex:none;display:flex;flex-direction:column;gap:4px}
.pcard .pim{position:relative;width:152px;height:128px;border-radius:10px;background:var(--bg2);display:flex;align-items:center;justify-content:center;overflow:hidden}
.app.dark .pcard .pim{background:#F5F5F3}
.pcard .pim img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.best{position:absolute;top:8px;left:8px;padding:2px 8px;border-radius:6px;background:var(--acc);color:var(--on);font-size:12px;line-height:16px;font-weight:700}
.pcard .t{font-size:12px;line-height:16px;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pcard .p{font-size:14px;line-height:20px;font-weight:700;white-space:nowrap}
.pcard .p small{font-size:12px;font-weight:500;color:var(--t2)}
.similar{border-radius:14px;background:var(--bg2);padding:12px 0;display:flex;flex-direction:column;gap:12px}
.similar .sh{display:flex;gap:8px;padding:0 12px;color:var(--t2)}
.slist{display:flex;gap:8px;padding:0 12px}
.scard{width:120px;flex:none;display:flex;flex-direction:column;gap:2px}
.scard .sim{width:120px;height:96px;border-radius:10px;background:#F5F5F3;display:flex;align-items:center;justify-content:center;overflow:hidden;margin-bottom:4px}
.scard .sim img{max-width:100%;max-height:100%;object-fit:contain}
.hint{padding:12px 12px 0;color:var(--t2)}
.actionbar{position:absolute;left:0;right:0;bottom:0;padding:8px 12px 42px;border-top:.5px solid var(--b2);background:var(--bg);z-index:20}
.btn-acc{height:48px;border-radius:10px;background:var(--acc);color:var(--on);display:flex;align-items:center;justify-content:center;font-size:16px;line-height:22px;font-weight:600}
.find-near{display:flex;align-items:center;justify-content:center;gap:8px;height:40px;border-radius:10px;background:var(--bg2);font-size:14px;font-weight:600}

/* Insights */
.srow{display:flex;align-items:center;gap:8px;margin:0 16px}
.sfield{flex:1;height:44px;border-radius:12px;background:var(--bg2);display:flex;align-items:center;gap:8px;padding:0 12px;color:var(--i2)}
.sfield .q{font-size:16px;color:var(--t1);white-space:nowrap}
.sfield .q.ph{color:var(--ph)}
.caret{display:inline-block;width:2px;height:20px;background:var(--acc);margin-left:1px;vertical-align:-4px}
.fchip{display:inline-flex;align-items:center;gap:4px;background:var(--t1);color:var(--tinv);height:32px;padding:0 12px;border-radius:999px;margin:12px 0 0 16px;font-size:12px;font-weight:600}
.igrid{display:flex;flex-wrap:wrap;gap:16px;padding:16px 16px 0}
.ocard{width:172.5px}
.ocard .crop{position:relative;width:172.5px;height:172.5px;border-radius:14px;overflow:hidden;background:var(--bg2)}
.ocard .crop img{position:absolute}
.kind{position:absolute;left:4px;bottom:4px;padding:2px 8px;border-radius:999px;background:var(--acc);color:var(--on);font-size:12px;line-height:16px;font-weight:600}
.abadge{position:absolute;top:4px;right:4px;padding:4px;border-radius:999px;background:var(--acc);color:var(--on)}
.ocard .lb{padding-top:8px;display:flex;flex-direction:column;gap:2px}
.ocard .lb .n{font-size:14px;line-height:20px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drawer{position:absolute;top:0;bottom:0;left:0;width:300px;background:var(--bg2);padding-top:50px;z-index:58;box-shadow:8px 0 30px rgba(0,0,0,.25)}
.drawer .dt{padding:0 16px 12px;border-bottom:1px solid var(--b1);font-size:16px;line-height:22px}
.dlist{padding:8px 0}
.ditem{display:flex;align-items:center;padding:12px 16px;border-radius:6px;margin:2px 8px;color:var(--t1)}
.ditem .di{width:28px;height:28px;margin-right:12px;display:flex;align-items:center;justify-content:center}
.ditem .dn{flex:1;font-size:14px;font-weight:500}
.ditem .cnt{min-width:24px;padding:2px 4px;border-radius:999px;background:var(--b1);text-align:center;font-size:12px;font-weight:600}
.ditem.on{background:var(--acc);color:var(--on)}
.ditem.on .dn{font-weight:700}
.ditem.on .cnt{background:var(--bg);color:var(--t1)}
.scrim{position:absolute;inset:0;background:rgba(0,0,0,.45);z-index:57}

/* Gallery */
.gtool{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px 8px}
.kswitch{display:flex;align-items:center;gap:4px;padding:3px;border-radius:23px;background:var(--bg2)}
.kseg{height:38px;min-width:44px;padding:0 12px;border-radius:19px;display:flex;align-items:center;justify-content:center;gap:6px;color:var(--t2)}
.kseg.on{padding:0 16px 0 12px;background:var(--elev);color:var(--t1);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.ggrid{display:flex;flex-wrap:wrap;gap:2px}
.gcell{position:relative;width:129.66px;height:129.66px;border-radius:3px;overflow:hidden;background:var(--bg2)}
.gcell img{width:100%;height:100%;object-fit:cover;display:block}
.gcell.aud{background:var(--acc);display:flex;align-items:center;justify-content:center}
.gcell .pend{position:absolute;inset:0;background:rgba(0,0,0,.35);display:flex;align-items:center;justify-content:center}
.gbadge{position:absolute;right:4px;bottom:4px;background:rgba(0,0,0,.55);border-radius:4px;padding:3px}

/* Audio detail */
.aud-screen{padding:71px 12px 0}
.aud-head{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.player{display:flex;align-items:center;gap:12px;padding:12px;border-radius:14px;background:var(--bg2)}
.player .trk{flex:1;height:4px;border-radius:2px;background:var(--b1);position:relative;overflow:hidden}
.player .trk i{position:absolute;left:0;top:0;bottom:0;background:var(--acc)}
.asec{margin-top:16px;display:flex;flex-direction:column;gap:8px}
.transcript{font-size:14px;line-height:24px;color:var(--t1)}
.concept{text-decoration:underline dotted;text-underline-offset:3px;text-decoration-color:var(--t2)}
.concept.hot{text-decoration-color:var(--acc);background:var(--accs);border-radius:3px}
.finding{padding:8px;border-radius:10px;border:1px solid var(--b2);display:flex;flex-direction:column;gap:2px}
.wave{display:flex;align-items:center;justify-content:space-evenly;height:80px;padding:0 10px}
.wave b{flex:1;max-width:4px;margin:0 .5px;border-radius:2px;background:var(--acc)}
.capbar{position:absolute;bottom:40px;left:50%;margin-left:-112.5px;width:225px;height:50px;border-radius:35px;background:#424242;display:flex;justify-content:space-between;align-items:center;padding:0 16px;color:#fff;z-index:30}

/* the content you're watching: a generic short-video player */
.reel{position:absolute;inset:0;background:#000;overflow:hidden}
.reel .vid{position:absolute;left:50%;top:50%;width:100%;height:100%;transform:translate(-50%,-50%)}
.reel .vid img{width:100%;height:100%;object-fit:cover;display:block}
.reel .glow{position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen}
.reel .shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.28) 0%,rgba(0,0,0,0) 18%,rgba(0,0,0,0) 62%,rgba(0,0,0,.62) 100%)}
.reel .rail{position:absolute;right:10px;bottom:150px;display:flex;flex-direction:column;align-items:center;gap:18px;color:#fff;font-size:12px;font-weight:600;text-shadow:0 1px 2px rgba(0,0,0,.4)}
.reel .rail div{display:flex;flex-direction:column;align-items:center;gap:3px}
.reel .who{position:absolute;left:14px;right:70px;bottom:96px;color:#fff;display:flex;flex-direction:column;gap:8px;text-shadow:0 1px 2px rgba(0,0,0,.5)}
.reel .who .u{display:flex;align-items:center;gap:8px;font-weight:600;font-size:14px}
.reel .who .av{width:30px;height:30px;border-radius:15px;background:linear-gradient(135deg,#FFC800,#B38F00);border:1.5px solid #fff}
.reel .who .fl{border:1px solid rgba(255,255,255,.8);border-radius:8px;padding:3px 10px;font-size:12px}
.reel .prog{display:none}
.reel .prog i{position:absolute;left:0;top:0;bottom:0;background:#fff}
.reel .nav{position:absolute;left:0;right:0;bottom:0;height:84px;background:#000;display:flex;justify-content:space-around;align-items:flex-start;padding-top:14px;color:#fff}

/* floating capture control (Android overlay button: rounded square, focus glyph, flashes white on capture) */
.fcap{position:absolute;width:52px;height:52px;border-radius:13px;background:rgba(240,240,240,.82);display:flex;align-items:center;justify-content:center;color:#5f5f5f;box-shadow:0 6px 18px rgba(0,0,0,.35);z-index:40}
.fcap.flash{background:#fff;color:#111}
.flash-layer{position:absolute;inset:0;background:#fff;z-index:45;pointer-events:none;opacity:0}
.tapring{position:absolute;width:56px;height:56px;margin:-28px 0 0 -28px;border-radius:50%;border:2.5px solid #fff;background:rgba(255,255,255,.22);z-index:80;pointer-events:none;opacity:0;box-shadow:0 0 0 1px rgba(0,0,0,.15)}
.hold-ring{position:absolute;width:64px;height:64px;margin:-32px 0 0 -32px;z-index:80;pointer-events:none}

/* phone hardware frame for compositions */
.dev{position:absolute;width:417px;height:876px;border-radius:66px;padding:12px;background:linear-gradient(150deg,#55555a 0%,#2a2a2d 18%,#1b1b1d 50%,#2a2a2d 82%,#4a4a4f 100%);box-shadow:inset 0 0 0 1.5px #6a6a70,inset 0 0 0 4px #151517,0 50px 100px rgba(0,0,0,.55)}
.dev>.glass{position:relative;width:393px;height:852px;border-radius:54px;overflow:hidden;background:#000}
.dev .island{position:absolute;top:11px;left:50%;width:126px;height:37px;margin-left:-63px;border-radius:19px;background:#000;z-index:90}
.dev .btn-side{position:absolute;right:-3px;top:220px;width:3px;height:96px;border-radius:2px;background:#3a3a3e}
.dev .btn-l1{position:absolute;left:-3px;top:180px;width:3px;height:56px;border-radius:2px;background:#3a3a3e}
.dev .btn-l2{position:absolute;left:-3px;top:250px;width:3px;height:56px;border-radius:2px;background:#3a3a3e}
