:root{
  --bg:#0d0d10; --surface:#17171c; --surface-2:#1f1f26; --line:#2b2b34;
  --text:#f2f2f5; --muted:#8e8e99; --accent:#e8486b; --ok:#2fbf71; --warn:#f0a132;
  --r:16px;
  /* The phone's safe areas (the notch at the top, the home bar at the bottom).
     Normally whatever the phone reports. In a home-screen app they are fixed to
     the values measured when it opened - see pinLayout in shared.js - because
     the phone reports them, and the screen's height, wrongly after you come
     back from another app. */
  --sat:env(safe-area-inset-top); --sab:env(safe-area-inset-bottom);
}
*{box-sizing:border-box}
/* Two quick taps on a phone mean "zoom in" unless the page says otherwise, so
   tapping Undo twice zoomed the screen. This keeps scrolling and pinch-zoom and
   drops only the double-tap zoom, everywhere. */
html{touch-action:manipulation}
body{margin:0;background:var(--bg);color:var(--text);
  font:15px/1.5 -apple-system,BlinkMacSystemFont,"SF Pro Text",Inter,system-ui,sans-serif;
  -webkit-font-smoothing:antialiased}
a{color:inherit}
/* laptop: a top bar lined up with the page's content column - brand left,
   tabs as one segmented pill in the middle, log out right */
nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;height:60px;
  padding:0 max(16px,calc((100vw - 1040px)/2 + 16px));border-bottom:1px solid var(--line);
  position:sticky;top:0;background:rgba(13,13,16,.8);backdrop-filter:blur(16px) saturate(1.4);z-index:50}
nav a{text-decoration:none}
nav .brand{justify-self:start;display:flex;align-items:center;gap:9px;font-size:15px;font-weight:800;
  letter-spacing:-.02em;color:var(--text)}
nav .brand i{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;
  background:linear-gradient(160deg,#f2668a,var(--accent));box-shadow:0 6px 16px -6px rgba(232,72,107,.8)}
nav .nt{display:flex;gap:2px;padding:4px;border-radius:99px;background:var(--surface);
  border:1px solid var(--line)}
nav .nt a{display:flex;align-items:center;gap:7px;padding:7px 15px 7px 13px;border-radius:99px;
  color:var(--muted);font-size:13px;font-weight:600;letter-spacing:.01em;transition:color .15s,background .15s}
nav .nt a svg{width:16px;height:16px;flex:none}
nav .nt a:hover{color:var(--text)}
nav .nt a.on{background:var(--surface-2);color:var(--text);box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)}
nav .nt a.on svg{color:var(--accent);stroke-width:2}
nav .out{justify-self:end;display:flex;align-items:center;gap:7px;padding:7px 12px;border-radius:99px;
  color:var(--muted);font-size:13px;font-weight:600;transition:color .15s,background .15s}
nav .out:hover{color:var(--text);background:var(--surface)}
/* No view transition between tabs: the browser animates a snapshot of the bar
   from the old page to the new one, and on an iPhone home-screen app that
   snapshot lands a few pixels off, which shows as a twitch. The bar is in the
   page's own HTML at the same spot on every tab, so a plain page change
   already leaves it standing still. */
#navslot{display:flex;align-items:center;margin-right:14px;min-width:0}
main{max-width:1040px;margin:0 auto;padding:18px 16px 40px;position:relative}
h1{font-size:20px;margin:0 0 4px;letter-spacing:-.01em}
.sub{color:var(--muted);font-size:13px;margin:0 0 20px}
.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
button,.btn{font:inherit;font-weight:600;font-size:13px;padding:9px 15px;border-radius:10px;
  border:1px solid var(--line);background:var(--surface-2);color:var(--text);cursor:pointer;
  transition:filter .12s,opacity .12s}
button:hover:not(:disabled){filter:brightness(1.25)}
button:disabled{opacity:.4;cursor:not-allowed}
button.primary{background:var(--accent);border-color:transparent}
button.ghost{background:transparent}
button.danger{color:#ff8098}
input,select,textarea{font:inherit;font-size:14px;padding:9px 12px;border-radius:10px;
  border:1px solid var(--line);background:var(--surface);color:var(--text);outline:none}
input:focus,select:focus{border-color:#45454f}
label{font-size:12px;color:var(--muted);display:block;margin-bottom:5px;font-weight:600}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px}
.muted{color:var(--muted)}
.pill{display:inline-block;font-size:11px;font-weight:700;padding:2px 8px;border-radius:99px;
  background:var(--surface-2);color:var(--muted);letter-spacing:.02em}
.pill.priv{background:#3a2a1a;color:var(--warn)}
.pill.pub{background:#16291f;color:var(--ok)}
.pill.age{background:#1d2233;color:#9fb4ff}
.pill.mut{background:#1b3327;color:var(--ok)}
.pill.ver{background:#16283f;color:#5fa8f5}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:200;pointer-events:none;
  display:flex;align-items:center;gap:11px;width:max-content;max-width:min(calc(100vw - 24px),440px);
  padding:10px 16px 10px 11px;border-radius:16px;font-size:13.5px;line-height:1.3;
  background:rgba(30,30,37,.94);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.09);box-shadow:0 18px 40px -14px rgba(0,0,0,.9);
  animation:toast-in .24s cubic-bezier(.2,.8,.3,1)}
@keyframes toast-in{from{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translate(-50%,0)}}
.toast .t-ic{flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;
  background:rgba(47,191,113,.16);color:var(--ok)}
.toast.bad .t-ic{background:rgba(255,93,122,.16);color:#ff7a93}
.toast .t-tx{min-width:0}
.toast .t-tx b{display:block;font-weight:650}
.toast .t-tx small{display:block;font-size:12px;color:var(--muted);margin-top:1px}
.toast.has-act{pointer-events:auto;padding-right:8px}
.toast button{flex:none;margin-left:6px;padding:8px 13px;border-radius:99px;font-size:12.5px;font-weight:700;
  color:#fff;background:rgba(255,255,255,.13);border:none}
.toast button:hover:not(:disabled){filter:none;background:rgba(255,255,255,.2)}
.toast.bad{border-color:rgba(255,93,122,.28)}
.toast.done{top:calc(84px + var(--sat));bottom:auto;background:var(--ok);border-color:transparent;color:#06170d;
  font-size:19px;font-weight:700;padding:16px 28px;border-radius:16px;text-align:center;
  box-shadow:0 14px 40px rgba(47,191,113,.35);animation:pop .28s cubic-bezier(.2,1.4,.4,1);display:block;pointer-events:none}
@keyframes pop{from{transform:translateX(-50%) scale(.85);opacity:0}}
.empty{text-align:center;color:var(--muted);padding:60px 20px;font-size:14px}

/* ---- swipe deck ---- */
#bar{max-width:820px;margin:0 auto 12px;display:flex;align-items:center;gap:10px}
.chip{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border-radius:99px;
  background:var(--surface);border:1px solid var(--line);color:var(--muted);
  font-size:12.5px;font-weight:600;line-height:1;white-space:nowrap;min-width:0;max-width:260px}
.chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chip:hover{color:var(--text)}
.chip.open{background:var(--surface-2);color:var(--text);border-color:#3a3a45}
.chip svg{flex:none;opacity:.85}
#panel{position:fixed;z-index:60;width:min(400px,calc(100vw - 24px));
  padding:14px;background:var(--surface-2);
  border:1px solid #3a3a45;border-radius:14px;display:grid;gap:12px;
  box-shadow:0 18px 44px rgba(0,0,0,.6)}
#panel[hidden]{display:none}
#panel .fgrp{display:grid;gap:5px}
#panel label{margin:0;font-size:11px;text-transform:uppercase;letter-spacing:.06em}
#panel select{width:100%}

#deck{position:relative;height:min(70vh,660px);min-height:420px;max-width:min(70vh,660px);
  margin:0 auto;touch-action:none;user-select:none}
.swipe{position:absolute;inset:0;border-radius:18px;overflow:hidden;background:var(--surface);
  border:1px solid var(--line);box-shadow:0 18px 44px rgba(0,0,0,.55);will-change:transform}
/* the photo is the whole card; name, counts and tags sit on it */
.swipe .photo{position:relative;overflow:hidden;background:var(--surface-2);height:100%}
.swipe .info{display:none}
.swipe .ovl{position:absolute;left:0;right:0;bottom:0;padding:110px 26px 24px;
  background:linear-gradient(transparent,rgba(0,0,0,.55) 28%,rgba(0,0,0,.93) 72%)}
.swipe .ovl-nm{font-size:30px;font-weight:700;letter-spacing:-.02em;line-height:1.15}
.swipe .ovl-hd{font-size:15px;color:#c8c8d2;margin-top:3px;display:inline-block;text-decoration:none}
.swipe .ovl-hd:hover{color:#fff}
.swipe .ovl-stat{font-size:14px;color:#d0d0d8;margin-top:9px}
.swipe .ovl-stat b{color:#fff;font-weight:700}
.swipe .ovl-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}
.swipe .ovl-tags .pill{font-size:12.5px;padding:4px 11px}
.swipe .ovl-bio{font-size:14px;color:#c2c2cc;line-height:1.45;margin-top:11px;
  white-space:pre-wrap;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;
  overflow:hidden}
.swipe .ovl-via{font-size:12.5px;color:#9a9aa5;margin-top:8px}
.swipe .photo .pic{height:100%}
.swipe .photo img{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}

.swipe .info{padding:34px 36px;overflow-y:auto;display:flex;flex-direction:column;gap:2px}
.swipe .info::-webkit-scrollbar{width:6px}
.swipe .info::-webkit-scrollbar-thumb{background:#33333d;border-radius:3px}
.swipe .nm{font-size:34px;font-weight:700;letter-spacing:-.02em;line-height:1.15}
.swipe .hd{font-size:16px;color:var(--muted);text-decoration:none;margin-top:5px}
.swipe .hd:hover{color:var(--text)}
.swipe .stat{font-size:15px;color:#9a9aa5;margin-top:16px}
.swipe .stat b{color:var(--text);font-weight:700}
.swipe .tags{margin-top:18px;display:flex;gap:7px;flex-wrap:wrap}
.swipe .tags .pill{font-size:12.5px;padding:4px 11px}
.swipe .sect{margin-top:24px;padding-top:22px;border-top:1px solid var(--line)}
.swipe .sect-h{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
  color:var(--muted);margin-bottom:10px}
.swipe .sect-b{font-size:16px;color:#c9c9d3;line-height:1.6;word-break:break-word}
.swipe .sect-b.bio{white-space:pre-wrap}

.stamp{position:absolute;top:26px;z-index:8;font-size:26px;font-weight:900;letter-spacing:.06em;
  padding:6px 14px;border:4px solid;border-radius:10px;opacity:0;transform:rotate(-14deg)}
.stamp.yes{left:20px;color:var(--ok);border-color:var(--ok)}
.stamp.no{right:20px;color:var(--accent);border-color:var(--accent);transform:rotate(14deg)}
.stamp.back{left:20px;color:var(--warn);border-color:var(--warn)}
.stamp.open{left:50%;top:42%;transform:translateX(-50%) rotate(-6deg);color:#5fa8f5;border-color:#5fa8f5;background:rgba(0,0,0,.35)}

#controls{display:flex;gap:18px;justify-content:center;align-items:center;margin-top:26px}
#controls button{border-radius:50%;padding:0;display:grid;place-items:center;
  background:var(--surface);border:1px solid var(--line)}
#controls .lg{width:76px;height:76px;font-size:29px}
#controls .sm{width:54px;height:54px;font-size:18px;color:var(--muted);transform:translateY(-11px)}
#controls .no{color:var(--accent)} #controls .yes{color:var(--ok)}
#controls .save{color:#5fa8f5}
#deck > .sharp{position:absolute;top:14px;right:14px;z-index:20;width:42px;height:42px;
  border-radius:50%;display:grid;place-items:center;color:#fff;
  padding:0;line-height:0;   /* the default button padding left less room than the icon needs, pushing it off centre */
  background:rgba(0,0,0,.55);border:1px solid rgba(255,255,255,.22);backdrop-filter:blur(10px)}
.sharp svg{display:block}
#deck > .sharp:hover:not(:disabled){background:rgba(0,0,0,.8)}
#deck > .sharp.done{opacity:0;pointer-events:none}

@media (max-width:720px){
  /* phone: photo owns the screen, details are a scroll away, nav at the bottom */

  /* iOS home-screen apps with a see-through status bar lay a page out too
     short, by the height of the status bar. Making the document that much
     taller gives every tab the full screen. (Tried limiting this to Swipe on
     2026-10-05: it broke the top of the other tabs on a real phone. It stays
     on all of them.) */
  html{min-height:calc(100% + env(safe-area-inset-top))}
  /* and no rubber-band: the page must not slide up and down under your thumb */
  html,body{overscroll-behavior:none}
  /* the tab bar is fixed across the top (see nav below), so the page starts under it */
  /* only pages that have the bar: log-in and welcome have none, and the space
     pushed their last line off the bottom of the screen */
  body:has(> nav){padding-top:calc(48px + var(--sat));padding-bottom:var(--sab)}
  .toast{bottom:calc(24px + var(--sab))}
  /* no backdrop-filter here: it would make nav a containing block and trap
     the fixed-position filter chip inside the bottom bar */
  /* the tab bar, across the top like Tinder's: four icons, the current one in
     accent. It covers the status bar area too, so nothing scrolls up under the clock. */
  nav{display:flex;height:auto;position:fixed;top:0;bottom:auto;left:0;right:0;border:none;
    justify-content:space-around;align-items:center;backdrop-filter:none;background:var(--bg);
    padding:var(--sat) 10px 0}
  nav .brand,nav .out{display:none}      /* Log out lives on Account on a phone */
  nav .nt{display:contents}
  nav .nt a{flex:1;display:grid;place-items:center;height:48px;padding:0;border-radius:12px;color:#6a6a76;
    -webkit-tap-highlight-color:transparent}
  nav .nt a svg{display:block;width:26px;height:26px}
  /* the label stays for screen readers, out of sight */
  nav .nt a span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  nav .nt a.on{background:none;box-shadow:none;color:var(--accent)}
  nav .nt a.on svg{stroke-width:2.1}

  main{padding:14px 12px 20px;max-width:100%}
  main:has(#deck){padding:0}
  /* The card, the way Tinder lays it out: it starts below the status bar, sits
     in from the screen edges with rounded corners, and leaves a row under it
     for the buttons. Pinned to the same screen edges the tab bar uses, so it
     can never slip behind the bar. touch-action:none: every drag on the card
     is ours, none of it scrolls or bounces the page. */
  #deck{position:fixed;top:calc(48px + var(--sat) + 4px);left:8px;right:8px;
    bottom:calc(var(--sab) + 92px);
    height:auto;margin:0;   /* fills the space between the top bar and the buttons */
    min-height:0;max-width:none;border-radius:0;touch-action:none}
  .swipe{grid-template-columns:1fr;grid-template-rows:none;display:block;border-radius:16px;
    overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;touch-action:none;
    scrollbar-width:none}
  .swipe::-webkit-scrollbar{display:none}
  .swipe .photo{height:100%;width:100%}
  /* The card fills the screen between the top bar and the buttons. The picture
     takes all of it except a strip under it for the name, so the name never
     covers the face. Profile pictures are square and this space is taller than
     wide, so a little is trimmed off each side - about an eighth on a tall
     phone, against nearly a quarter when the picture ran the card's full height. */
  .swipe .photo{display:flex;flex-direction:column;background:var(--surface)}
  /* The picture's box takes the leftover height and the image is pinned inside
     it. Sizing the <img> itself as the flexible item is not safe: Safari keeps
     an image at its own shape there, leaving a square picture and dead space. */
  .swipe .photo .pic{flex:1 1 0;min-height:0;height:auto;position:relative;overflow:hidden}
  .swipe .photo .pic img{position:absolute;inset:0}
  .swipe .ovl{position:static;flex:none;background:none;padding:13px 16px 15px;overflow:hidden}
  .swipe .ovl-nm{font-size:25px}
  .swipe .ovl-hd{font-size:14px}
  .swipe .ovl-stat{font-size:13.5px}
  .swipe .ovl-tags .pill{font-size:12px}
  .swipe .ovl-bio{font-size:13px}
  .swipe .ovl-via{font-size:12px}

  .swipe{overflow:hidden}

  /* the buttons, in a row under the card: undo, pass, save, open on Instagram */
  #controls{position:fixed;z-index:55;margin:0;left:0;right:0;top:auto;padding:0;gap:16px;
    bottom:calc(var(--sab) + 15px);justify-content:center;align-items:center}
  /* Home-screen app: the card and the buttons are placed from the TOP of the
     screen, using its real height, and nothing from the bottom edge. After a
     trip to another app an iPhone treats the page as shorter than the screen;
     anything hung from the bottom edge then slides up and shrinks, leaving a
     gap underneath. Placed from the top, they stay exactly where they were. */
  html.pinned #deck{bottom:auto;height:calc(var(--full-h) - var(--sat) - var(--sab) - 144px)}   /* 144 = bar 48 + 4, buttons 92 */
  html.pinned #controls{bottom:auto;top:calc(var(--full-h) - var(--sab) - 87px)}                 /* 87 = 15 below + the 72 row */
  html.pinned body:has(#deck) .toast:not(.done){bottom:auto;top:calc(var(--full-h) - var(--sab) - 160px)}
  #controls button{background:var(--surface);border:1px solid var(--line);
    box-shadow:0 10px 22px -12px rgba(0,0,0,.95);-webkit-tap-highlight-color:transparent}
  #controls .lg{width:62px;height:62px;font-size:24px}
  .stamp{top:62px}   /* below the deck pill in the card's corner */
  /* saving is this button now (a swipe right goes back), so it is the biggest and the only filled one */
  #controls .yes{width:72px;height:72px;background:rgba(47,191,113,.16);border-color:rgba(47,191,113,.55)}
  #controls .yes.scan{background:rgba(95,168,245,.16);border-color:rgba(95,168,245,.55)}
  #controls .yes svg{width:30px;height:30px}
  #controls .sm{width:48px;height:48px;font-size:16px;transform:none}
  #controls .undo{color:var(--warn)}
  #controls .sharp{color:#5fa8f5}
  #controls button:active{transform:scale(.93)}
  /* a thumb is less exact than the circle is big: each button also answers to a ring around it */
  #controls button{position:relative}
  #controls button::after{content:"";position:absolute;inset:-8px;border-radius:50%}
  #controls .sm{width:52px;height:52px}
  /* nothing may sit on top of that row */
  body:has(#deck) .toast:not(.done){bottom:calc(var(--sab) + 100px)}
  #panel{top:auto!important;bottom:calc(64px + var(--sab));left:12px!important;
    right:12px;width:auto}
}

/* ---- lists ---- */
.item{display:flex;gap:13px;padding:13px;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r);margin-bottom:9px;align-items:flex-start}
.item img.av{width:62px;height:62px;border-radius:12px;object-fit:cover;flex:none;background:var(--surface-2)}
.av-wrap{position:relative;width:62px;height:62px;border-radius:12px;flex:none;overflow:hidden;
  background:var(--surface-2);display:grid;place-items:center;font-size:22px;font-weight:800;
  color:#4d4d58}
.av-wrap img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.item .body{flex:1;min-width:0}
.item .nm{font-weight:700;font-size:15px}
.item .hd{font-size:12px;color:var(--muted)}
.item .bio{font-size:12px;color:#b6b6c0;margin-top:6px;white-space:pre-wrap;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.bar{height:5px;border-radius:99px;background:var(--surface-2);overflow:hidden;margin-top:9px;
  max-width:420px}
.bar i{display:block;height:100%;background:var(--ok);border-radius:99px;transition:width .4s}
.barlbl{font-size:11px;color:var(--muted);margin-top:5px}
.thumbs{display:flex;gap:4px;margin-top:8px}
.thumbs img{width:46px;height:46px;border-radius:7px;object-fit:cover}
.acts{display:flex;flex-direction:column;gap:6px;flex:none}
.acts button{padding:7px 11px;font-size:12px;white-space:nowrap}
.tabs{display:flex;gap:6px;margin-bottom:16px;border-bottom:1px solid var(--line);padding-bottom:12px}
.tabs button.on{background:var(--accent);border-color:transparent}

/* ---- sources page sections ---- */
.src-sect{margin-bottom:26px}
.src-sect h2{font-size:15px;margin:0 0 2px;display:flex;align-items:center;gap:8px}
.src-sect h2 span{font-size:12px;color:var(--muted);background:var(--surface-2);
  padding:1px 8px;border-radius:99px;font-weight:600}
.src-hint{font-size:12px;margin-bottom:10px}
.src-done summary{cursor:pointer;list-style:none;margin-bottom:10px}
.src-done summary::-webkit-details-marker{display:none}
.src-done summary h2::before{content:'▸';color:var(--muted);font-size:12px}
.src-done[open] summary h2::before{content:'▾'}
.src-done .item{opacity:.7}
.item.now{border-color:var(--ok);box-shadow:0 0 0 1px var(--ok) inset}
.tabs{display:flex;gap:4px;padding:4px;background:var(--surface);border:1px solid var(--line);
  border-radius:12px;margin-bottom:20px;width:max-content;max-width:100%}
.tabs button{background:none;border:none;color:var(--muted);padding:8px 16px;border-radius:9px}
.tabs button.on{background:var(--surface-2);color:var(--text)}
.tabs button span{font-size:11.5px;margin-left:5px;padding:1px 7px;border-radius:99px;background:var(--line)}

/* ---- swipe: the Private / Public switch ---- */
.sw-bar{display:flex;justify-content:center;align-items:center;gap:8px;margin:0 auto 14px}
.sw-tabs{margin:0}
@media (max-width:720px){
  /* phone: a small glass pill in the card's top-left corner, where a face rarely
     is. It shows the deck you are on; tap it to flip to the other. (Centred and
     full-size, it sat right over people's faces.) */
  .sw-bar{position:fixed;z-index:56;left:20px;right:auto;margin:0;
    top:calc(48px + var(--sat) + 16px)}
  .sw-tabs{padding:0;border-radius:99px;background:rgba(0,0,0,.5);
    backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-color:rgba(255,255,255,.2)}
  .sw-tabs button:not(.on){display:none}
  .sw-tabs button.on{display:flex;align-items:center;gap:6px;padding:6px 11px 6px 12px;font-size:12px;
    font-weight:700;border-radius:99px;background:none;color:#fff}
  .sw-tabs button.on::after{content:"";width:11px;height:11px;flex:none;opacity:.75;background:currentColor;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4L3 8l4 4M3 8h14M17 20l4-4-4-4M21 16H7'/%3E%3C/svg%3E") center/contain no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4L3 8l4 4M3 8h14M17 20l4-4-4-4M21 16H7'/%3E%3C/svg%3E") center/contain no-repeat}
}
/* on the Public deck the green button queues a scan */
#controls .yes.scan{color:#5fa8f5}

/* ---- review: photo grid, tap the circle once requested ---- */
.rv-tabs{margin:0 0 18px}
.rv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}
.rv{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.rv-pic{display:block}
.rv-pic img{width:100%;aspect-ratio:1;object-fit:cover;display:block;background:var(--surface-2)}
.rv-check{position:absolute;top:10px;right:10px;width:34px;height:34px;padding:0;border-radius:50%;
  display:grid;place-items:center;color:transparent;background:rgba(0,0,0,.45);
  border:2px solid rgba(255,255,255,.85);backdrop-filter:blur(8px)}
.rv-check:hover:not(:disabled){color:rgba(255,255,255,.7);filter:none}
.rv-check.on{background:var(--ok);border-color:var(--ok);color:#06170d}
.rv-drop{position:absolute;top:10px;left:10px;width:28px;height:28px;padding:0;border-radius:50%;
  font-size:12px;color:#fff;background:rgba(0,0,0,.45);border:none;backdrop-filter:blur(8px);
  opacity:0;transition:opacity .15s}
.rv:hover .rv-drop{opacity:1}
.rv-b{padding:10px 12px 12px}
.rv-nm{font-weight:700;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rv-hd{display:block;font-size:12px;color:var(--muted);text-decoration:none;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rv-hd:hover{color:var(--text);text-decoration:underline}
.rv-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}
.rv-tags .pill{font-size:10.5px;padding:2px 7px}
.rv-meta{margin-top:7px;font-size:11.5px;color:var(--muted)}
/* history: someone dropped from Review is dimmed, with a button to put her back */
.rv-out .rv-pic img{filter:saturate(.55) brightness(.72)}
.rv-check.rv-restore{color:#fff}
.rv-check.rv-restore:hover:not(:disabled){color:#fff;background:var(--accent);border-color:var(--accent)}
.pill.no{background:#26262e;color:var(--muted)}
/* the ✕ after its first tap: asks before deleting */
.rv-drop.armed{width:auto;padding:0 11px;border-radius:99px;font-size:11.5px;font-weight:700;
  background:var(--accent);opacity:1}
@media (max-width:720px){
  main .rv-tabs{margin:0 auto 14px}
  .rv-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .rv-drop{opacity:1}
}

/* "add to home screen" hint, iPhone Safari only (see shared.js) */
/* iPhone only, so it is placed for the phone layout: under the top bar. (It used to be given
   a top here and a bottom elsewhere, which stretched it over the whole screen.) */
.a2hs{position:fixed;z-index:70;left:12px;right:12px;top:calc(48px + var(--sat) + 10px);
  background:var(--surface-2);border:1px solid var(--line);border-radius:14px;padding:12px 40px 12px 14px;
  font-size:13px;line-height:1.55;color:var(--text);box-shadow:0 14px 40px -16px rgba(0,0,0,.9)}
.a2hs b{color:#ff8098}
.a2hs svg{color:var(--text)}
.a2hs-x{position:absolute;top:8px;right:8px;width:28px;height:28px;padding:0;border-radius:50%;
  font-size:12px;color:var(--muted);background:transparent;border:none}

/* place in line on the Sources page: a grip to drag the row by */
.grip{flex:none;align-self:stretch;width:38px;margin:-13px -13px -13px -6px;padding:0;border:none;
  background:none;color:#55555f;display:grid;place-items:center;cursor:grab;touch-action:none;
  border-radius:0 var(--r) var(--r) 0;-webkit-tap-highlight-color:transparent}
.grip:hover{color:var(--text)}
.item.dragging{position:relative;z-index:5;background:var(--surface-2);border-color:#3d3d49;
  box-shadow:0 20px 44px -14px rgba(0,0,0,.85)}
.item.dragging .grip{cursor:grabbing;color:var(--text)}
body.reordering{user-select:none;-webkit-user-select:none;cursor:grabbing}
.eta{color:var(--text);font-variant-numeric:tabular-nums;font-weight:600}

/* ---- swipe: the empty deck ---- */
.empty-state{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;
  text-align:center;padding:32px 28px;
  background:radial-gradient(55% 38% at 50% 34%, rgba(232,72,107,.20), transparent 72%)}
.es-art{position:relative;width:128px;height:150px;margin-bottom:30px;animation:es-float 4.5s ease-in-out infinite}
.es-art i{position:absolute;inset:0;border-radius:22px;border:1px solid rgba(255,255,255,.09);
  background:linear-gradient(160deg,#2a2a34,#1b1b22)}
.es-art i:nth-child(1){transform:rotate(-13deg) translate(-16px,6px);opacity:.55}
.es-art i:nth-child(2){transform:rotate(11deg) translate(16px,4px);opacity:.8}
.es-art i:nth-child(3){display:grid;place-items:center;color:#fff;
  background:linear-gradient(160deg,#f2668a,var(--accent));border-color:transparent;
  box-shadow:0 22px 44px -18px rgba(232,72,107,.85)}
@keyframes es-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
.es-h{font-size:25px;font-weight:800;letter-spacing:-.03em;line-height:1.2}
.es-p{color:var(--muted);font-size:14.5px;line-height:1.5;max-width:290px;margin-top:8px}
.es-status{display:inline-flex;align-items:center;gap:9px;margin-top:22px;padding:9px 15px;
  border-radius:99px;background:var(--surface);border:1px solid var(--line);font-size:13px;
  font-weight:600;font-variant-numeric:tabular-nums;max-width:100%}
.es-dot{width:8px;height:8px;border-radius:50%;background:var(--ok);flex:none;
  animation:es-pulse 1.6s ease-in-out infinite}
.es-dot.wait{background:var(--warn)}
@keyframes es-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.8)}}
.es-btn{display:inline-block;margin-top:18px;padding:11px 22px;border-radius:99px;text-decoration:none;
  font-size:14px;font-weight:700;color:var(--muted);border:1px solid var(--line)}
.es-btn.primary{color:#fff;border-color:transparent;
  background:linear-gradient(180deg,#f05a7b,var(--accent));box-shadow:0 10px 24px -10px rgba(232,72,107,.8)}
@media (prefers-reduced-motion:reduce){.es-art,.es-dot{animation:none}}

/* ---- swipe: keyboard legend under the card (laptop only) ---- */
.keys{display:flex;justify-content:center;gap:22px;margin-top:18px;font-size:12.5px;color:var(--muted)}
.keys span{display:inline-flex;align-items:center;gap:7px}
.keys kbd{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:7px;
  font:600 12px/1 inherit;font-family:inherit;color:var(--text);background:var(--surface);
  border:1px solid var(--line);border-bottom-width:2px}
@media (max-width:720px){.keys{display:none}}
@media (hover:none){.keys{display:none}}   /* a touch tablet has no arrow keys either */

/* ---- sources: the add box ---- */
/* one field holds everything: the @, the name, which list to scan, and Add */
.add{margin-bottom:18px;padding:12px;position:relative}
.add-field{display:flex;align-items:center;gap:6px;background:var(--bg);border:1px solid var(--line);
  border-radius:14px;padding:5px 5px 5px 15px;transition:border-color .15s}
.add-field:focus-within{border-color:#4d4d5a}
.add-field .at{color:var(--muted);font-weight:700;font-size:15px}
.add-field input{flex:1;min-width:0;border:none;background:none;padding:9px 6px;outline:none;font-size:15px}
/* a sliding switch: --n labels in a row and a highlight under label --i */
.seg{position:relative;display:flex;flex:none;padding:3px;border-radius:11px;
  background:var(--surface);border:1px solid var(--line)}
.seg::before{content:"";position:absolute;top:3px;bottom:3px;left:3px;
  width:calc((100% - 6px) / var(--n,2));border-radius:8px;background:#2b2b35;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.1),0 3px 10px -4px rgba(0,0,0,.8);
  transform:translateX(calc(100% * var(--i,0)));transition:transform .24s cubic-bezier(.3,.75,.3,1)}
.seg button{position:relative;flex:1;background:none;border:none;padding:7px 0;border-radius:8px;
  font-size:12.5px;font-weight:700;color:var(--muted);transition:color .2s}
.seg button:hover:not(:disabled){filter:none;color:var(--text)}
.seg button.on{color:#fff}
.scanwhat{display:flex;align-items:center;gap:10px;flex:none}
.scanwhat > span{font-size:12.5px;font-weight:600;color:var(--muted);white-space:nowrap}
.add-field .seg{width:200px}
/* Add stays the one pink thing in the box: it is the action, the switch is a setting */
.add-field > button{border-radius:10px;padding:9px 20px;font-weight:700}
@media (max-width:720px){
  /* phone: the switch takes a second line inside the same field, full width */
  .add-field{flex-wrap:wrap}
  .scanwhat{order:3;flex:1 1 100%;margin:6px 0 1px}
  .add-field .seg{flex:1;width:auto}
  .add-field .seg button{padding:9px 0}
}

/* ---- account page ---- */
.ac-head{display:flex;align-items:center;gap:18px;padding:10px 4px 22px}
.ac-av{flex:none;width:84px;height:84px;border-radius:50%;padding:3px;
  background:linear-gradient(150deg,#f7a1b6,var(--accent) 55%,#a52a4a);display:grid}
.ac-av img,.ac-av span{width:100%;height:100%;border-radius:50%;border:3px solid var(--bg);object-fit:cover;
  display:grid;place-items:center;background:var(--surface-2);font-size:30px;font-weight:800;color:var(--text)}
.ac-id{min-width:0}
.ac-name{font-size:23px;font-weight:800;letter-spacing:-.03em;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ac-sub{color:var(--muted);font-size:13.5px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ac-state{display:inline-flex;align-items:center;gap:7px;margin-top:9px;font-size:12px;font-weight:600;
  padding:5px 11px 5px 9px;border-radius:99px;background:var(--surface);border:1px solid var(--line)}
.ac-state i{width:7px;height:7px;border-radius:50%;background:var(--ok)}
.ac-state i.wait{background:var(--warn)} .ac-state i.bad{background:#ff5d7a}
.ac-state a{display:inline-flex;align-items:center;gap:7px;text-decoration:none}
.ac-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.ac-stat{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:14px 8px;text-align:center}
.ac-stat b{display:block;font-size:22px;font-weight:800;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.ac-stat span{font-size:11.5px;color:var(--muted);font-weight:600}
.ac-h{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:26px 4px 9px}
.ac-group{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.ac-stats + .ac-group,.ac-group + .ac-group{margin-top:22px}
.ac-row{display:flex;align-items:center;justify-content:space-between;gap:12px 14px;flex-wrap:wrap;padding:14px 16px}
.ac-row + .ac-row{border-top:1px solid var(--line)}
.ac-l{min-width:0;flex:1 1 150px}
.ac-row b{display:block;font-size:14.5px;font-weight:650}
.ac-row small{display:block;font-size:12.5px;color:var(--muted);margin-top:1px}
.ac-row > button{flex:none;padding:8px 16px;border-radius:99px;font-size:13px}
/* a read-only figure on the right of a row: the number, and what it counts */
.ac-val{flex:none;text-align:right}
.ac-val b{font-size:17px;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.ac-val small{font-size:11.5px;margin-top:0}
/* an on/off switch */
.ac-row > .sw{flex:none;width:50px;height:30px;padding:0;border-radius:99px;border:none;position:relative;
  background:#3a3a45;transition:background .2s}
.sw i{position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,.5);transition:transform .22s cubic-bezier(.3,.75,.3,1)}
.sw[aria-checked="true"]{background:var(--ok)}
.sw[aria-checked="true"] i{transform:translateX(20px)}
.sw:hover:not(:disabled){filter:none}
.ac-row .seg{width:230px;max-width:100%}
/* max age: label and value on one line, the slider under them */
.ac-age output{flex:none;font-size:14.5px;font-weight:700;font-variant-numeric:tabular-nums}
.ac-age input[type=range]{flex:1 1 100%;-webkit-appearance:none;appearance:none;height:28px;margin:0;padding:0;
  background:none;border:none;cursor:pointer;--fill:50%}
.ac-age input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:99px;
  background:linear-gradient(90deg,var(--accent) var(--fill),var(--surface-2) var(--fill))}
.ac-age input[type=range]::-moz-range-track{height:6px;border-radius:99px;
  background:linear-gradient(90deg,var(--accent) var(--fill),var(--surface-2) var(--fill))}
.ac-age input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;margin-top:-8px;
  border-radius:50%;background:#fff;border:none;box-shadow:0 2px 8px rgba(0,0,0,.6)}
.ac-age input[type=range]::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:#fff;border:none;
  box-shadow:0 2px 8px rgba(0,0,0,.6)}
.ac-out{text-decoration:none}
.ac-out b{color:#ff8098}
.ac-out:hover{background:var(--surface-2)}
/* laptop: the top bar already has Log out */
@media (min-width:721px){.ac-group.ac-bye{display:none}}
@media (max-width:720px){
  .ac-head{padding-top:6px}
  .ac-stats{grid-template-columns:repeat(2,1fr)}
}

/* ---- sources: three tabs, one list each ---- */
.src-cols > .src-col{display:none}
.src-cols[data-view="deck"] > [data-col="deck"],
.src-cols[data-view="scan"] > [data-col="scan"],
.src-cols[data-view="done"] > [data-col="done"]{display:block}
.src-col > header{margin-bottom:16px}
.src-col > header p{font-size:12.5px;color:var(--muted);margin:0}
.src-col .src-sect{margin-bottom:20px}
.src-col .src-sect > h2{font-size:11.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
  color:var(--muted);margin-bottom:8px}
.src-col .src-sect > h2 span{display:none}
.src-col[data-col="done"] .item{opacity:.75}
.src-none{font-size:13px;color:var(--muted);padding:22px 16px;text-align:center;border:1px dashed var(--line);
  border-radius:var(--r)}

/* sources: the search box on the Done tab */
.src-search{display:flex;align-items:center;gap:9px;margin:0 0 14px;padding:0 14px;border-radius:12px;
  background:var(--surface);border:1px solid var(--line);color:var(--muted);transition:border-color .15s}
.src-search[hidden]{display:none}
.src-search:focus-within{border-color:#4d4d5a}
.src-search input{flex:1;min-width:0;border:none;background:none;outline:none;padding:11px 0;font-size:15px;
  -webkit-appearance:none;appearance:none}
.src-search input::-webkit-search-cancel-button{-webkit-appearance:none;height:16px;width:16px;cursor:pointer;
  background:var(--muted);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}

/* sources: the options that drop down under the username box */
.sugg{position:absolute;z-index:60;left:12px;right:12px;top:calc(100% - 4px);padding:6px;border-radius:14px;
  background:var(--surface-2);border:1px solid #33333e;box-shadow:0 24px 50px -18px rgba(0,0,0,.95);
  max-height:min(60vh,420px);overflow-y:auto}
.sugg[hidden]{display:none}
.sg{display:flex;align-items:center;gap:11px;width:100%;padding:8px 10px;border:none;border-radius:10px;
  background:none;text-align:left;-webkit-tap-highlight-color:transparent}
.sg:hover:not(:disabled),.sg:active{filter:none;background:rgba(255,255,255,.06)}
.sg-av{position:relative;flex:none;width:36px;height:36px;border-radius:50%;overflow:hidden;display:grid;
  place-items:center;background:var(--surface);font-size:14px;font-weight:800;color:#5a5a66}
.sg-av img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.sg-t{flex:1;min-width:0}
.sg-t b{display:block;font-size:14px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sg-t small{display:block;font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sg-st{flex:none;font-size:11px;font-weight:700;color:var(--muted);background:var(--surface);
  padding:3px 9px;border-radius:99px}
.add-field .browse{flex:none;width:34px;height:34px;padding:0;border:none;border-radius:9px;background:none;
  color:var(--muted);display:grid;place-items:center}
.add-field .browse:hover:not(:disabled){filter:none;color:var(--text);background:var(--surface)}
.add-field .browse svg{transition:transform .2s}
.add-field .browse.open{color:var(--text)}
.add-field .browse.open svg{transform:rotate(180deg)}
.sg-h{position:sticky;top:-6px;z-index:1;margin:0 -6px;padding:9px 16px 7px;background:var(--surface-2);
  font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.sugg{-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
/* on Swipe the "make it an app" hint sits under the Private / Public row, not over it */
body:has(#deck) .a2hs{top:calc(48px + var(--sat) + 58px)}

/* a tag you can tap */
.pill-btn{display:inline-flex;align-items:center;gap:5px;border:1px solid #3a3a46;cursor:pointer;font-family:inherit;line-height:inherit}
.pill-btn:hover:not(:disabled){filter:none;color:var(--text);border-color:#55555f}

/* "Opening @name" - shown over the card while the phone hands over to Instagram */
.opening{position:fixed;z-index:210;left:50%;top:44%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:11px;
  padding:13px 18px 13px 15px;border-radius:16px;font-size:14px;white-space:nowrap;max-width:calc(100vw - 32px);
  background:rgba(20,20,26,.9);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.12);box-shadow:0 20px 44px -14px rgba(0,0,0,.9);
  animation:opening-in .16s ease-out}
.opening span{overflow:hidden;text-overflow:ellipsis}
.opening b{font-weight:700}
.opening i{flex:none;width:18px;height:18px;border-radius:50%;border:2.5px solid rgba(255,255,255,.22);
  border-top-color:#fff;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes opening-in{from{opacity:0;transform:translate(-50%,-46%)}}
/* the same card as a link to tap (Safari, after a swipe up) */
.opening.link{gap:10px;padding:15px 18px;font-size:15px;font-weight:600;color:#fff;text-decoration:none;
  background:linear-gradient(180deg,#f05a7b,var(--accent));border-color:transparent;
  box-shadow:0 18px 40px -12px rgba(232,72,107,.75);-webkit-tap-highlight-color:transparent}
.opening.link:active{transform:translate(-50%,-50%) scale(.97)}
.opening.link svg{flex:none}

/* the empty deck while a new account's first cards are being fetched */
.es-spin{flex:none;width:14px;height:14px;border-radius:50%;border:2px solid rgba(255,255,255,.2);border-top-color:#fff;
  animation:spin .7s linear infinite}
