/* Grab — web. Monochrome graphite + liquid glass. Hairlines, Inter, tabular numerals. */
@font-face { font-family: "Inter"; src: url(/fonts/inter-latin.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Dark is the default: graphite, not pitch black. Light mirrors it. "System" follows the phone. */
:root {
  --bg: #0F1012; --bg2: #131417; --bg3: #191A1D; --bg4: #222326;
  --line: rgba(255, 250, 244, .075); --line2: rgba(255, 250, 244, .13);
  --text: #F3F2EF; --text2: #9C9A96; --text3: #63625F;
  --ink: #F5F4F1; --on-ink: #101113;
  --danger: #D07A76;
  --bar-bg: rgba(15, 16, 18, .94);
  /* ambient light behind the hero, so glass has something to bend */
  --amb1: rgba(255, 248, 238, .085); --amb2: rgba(255, 252, 248, .035);
  /* liquid glass */
  --g-fill: rgba(42, 44, 48, .42);
  --g-solid: rgba(31, 32, 36, .96);
  --g-edge1: rgba(255, 255, 255, .30); --g-edge2: rgba(255, 255, 255, .05); --g-edge3: rgba(255, 255, 255, .12);
  --g-sheen: rgba(255, 255, 255, .07);
  --g-hi: rgba(255, 255, 255, .10);
  --g-shadow: 0 18px 40px -12px rgba(0, 0, 0, .60), 0 2px 8px rgba(0, 0, 0, .28);
  --g-blur: blur(20px) saturate(180%);
  --drop: rgba(255, 255, 255, .11); --drop-hi: rgba(255, 255, 255, .24); --drop-shadow: 0 6px 16px -4px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.3, 1.32, .52, 1);
  --pad: 24px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tabbar-h: 62px;
  --tabbar-gap: max(14px, calc(var(--safe-b) - 12px));
  --top-h: 52px;
  color-scheme: dark;
}
@supports (transition-timing-function: linear(0, 1)) {
  /* a real spring: quick, one soft overshoot, settles */
  :root { --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.8%, 1.077 23.3%, 1.093 26.9%, 1.077 31.4%, 1.024 39.9%, .999 48.6%, .994 57.1%, 1 80%, 1); }
}
:root[data-theme="light"] {
  --bg: #F4F4F2; --bg2: #EFEFEC; --bg3: #E8E8E5; --bg4: #DEDEDA;
  --line: rgba(20, 18, 14, .08); --line2: rgba(20, 18, 14, .14);
  --text: #121212; --text2: #6E6D69; --text3: #A3A29E;
  --ink: #121212; --on-ink: #FFFFFF;
  --danger: #A8433E;
  --bar-bg: rgba(244, 244, 242, .94);
  --amb1: rgba(255, 255, 255, .9); --amb2: rgba(255, 255, 255, .5);
  --g-fill: rgba(255, 255, 255, .55);
  --g-solid: rgba(250, 250, 248, .97);
  --g-edge1: rgba(255, 255, 255, .95); --g-edge2: rgba(0, 0, 0, .06); --g-edge3: rgba(255, 255, 255, .7);
  --g-sheen: rgba(255, 255, 255, .45);
  --g-hi: rgba(255, 255, 255, .8);
  --g-shadow: 0 16px 36px -14px rgba(0, 0, 0, .22), 0 1px 4px rgba(0, 0, 0, .06);
  --drop: rgba(0, 0, 0, .065); --drop-hi: rgba(255, 255, 255, .9); --drop-shadow: 0 4px 12px -4px rgba(0, 0, 0, .14);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] {
    --bg: #F4F4F2; --bg2: #EFEFEC; --bg3: #E8E8E5; --bg4: #DEDEDA;
    --line: rgba(20, 18, 14, .08); --line2: rgba(20, 18, 14, .14);
    --text: #121212; --text2: #6E6D69; --text3: #A3A29E;
    --ink: #121212; --on-ink: #FFFFFF;
    --danger: #A8433E;
    --bar-bg: rgba(244, 244, 242, .94);
    --amb1: rgba(255, 255, 255, .9); --amb2: rgba(255, 255, 255, .5);
    --g-fill: rgba(255, 255, 255, .55);
    --g-solid: rgba(250, 250, 248, .97);
    --g-edge1: rgba(255, 255, 255, .95); --g-edge2: rgba(0, 0, 0, .06); --g-edge3: rgba(255, 255, 255, .7);
    --g-sheen: rgba(255, 255, 255, .45);
    --g-hi: rgba(255, 255, 255, .8);
    --g-shadow: 0 16px 36px -14px rgba(0, 0, 0, .22), 0 1px 4px rgba(0, 0, 0, .06);
    --drop: rgba(0, 0, 0, .065); --drop-hi: rgba(255, 255, 255, .9); --drop-shadow: 0 4px 12px -4px rgba(0, 0, 0, .14);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overscroll-behavior: none; background: var(--bg); }
body {
  margin: 0; background: transparent; position: relative; color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 15px; line-height: 1.45; font-weight: 400; letter-spacing: -0.006em;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden; overscroll-behavior: none;
  -webkit-touch-callout: none;
}
input, .selectable { -webkit-touch-callout: default; -webkit-user-select: text; user-select: text; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; flex: none; fill: currentColor; }
.bi { width: 18px; height: 18px; flex: none; fill: currentColor; }
:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; border-radius: 10px; }
.num, .tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum", "cv11"; }

/* ---------- type ---------- */
.over, .eyebrow { margin: 0; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text2); }
.title-lg { margin: 0; padding: 32px 0 0; font-size: 34px; line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; }
.lede { margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: var(--text2); max-width: 32em; }
.lede b { color: var(--text); font-weight: 500; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--bar-bg); padding-top: var(--safe-t); }
.top-in { max-width: 640px; margin: 0 auto; height: var(--top-h); display: flex; align-items: center; justify-content: space-between;
  padding: 0 calc(var(--pad) + env(safe-area-inset-right, 0px)) 0 calc(var(--pad) + env(safe-area-inset-left, 0px)); }
.brand { font-weight: 600; font-size: 17px; letter-spacing: -0.03em; color: var(--text); }
.brand-lg { font-size: 40px; letter-spacing: -0.045em; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text2); font-variant-numeric: tabular-nums; }
.status .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text3); transition: background .3s var(--ease); }
.status.on { color: var(--text); }
.status.on .dot { background: var(--text); animation: blink 1.8s var(--ease) infinite; }
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: .25 } }

.main { max-width: 640px; margin: 0 auto; min-height: calc(100vh - var(--top-h));
  padding: 0 calc(var(--pad) + env(safe-area-inset-right, 0px)) calc(var(--tabbar-h) + var(--tabbar-gap) + 48px) calc(var(--pad) + env(safe-area-inset-left, 0px)); }
.view { animation: rise .3s var(--out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
@keyframes sink { to { opacity: 0; transform: translateY(-8px) } }
.fade-in { animation: rise .28s var(--out) both; }

/* tab bar + hero: see "liquid glass" layer at the end */

/* ---------- input ---------- */
.field { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.field.reveal { animation: rise .25s var(--out) both; }
.field > * { min-width: 0; }
.input-wrap { position: relative; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 6px 0 16px;
  background: transparent; border-radius: 12px; border: 1px solid var(--line2); transition: border-color .2s var(--ease); }
.input-wrap:focus-within { border-color: var(--text2); }
.input-wrap .ic-lead { color: var(--text3); width: 18px; height: 18px; }
.input-wrap input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 16px; font-weight: 400; }
.input-wrap input::placeholder { color: var(--text3); }
.chip-btn { display: inline-flex; align-items: center; height: 38px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--text2); transition: color .2s var(--ease), background .2s; }
.chip-btn:hover { color: var(--text); background: var(--bg3); }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--text2); transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--bg3); color: var(--text); }
.icon-btn .ic { width: 18px; height: 18px; }
.search { margin-top: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; font-weight: 500; font-size: 15px; letter-spacing: -0.01em;
  height: 48px; padding: 0 20px; transition: opacity .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease); user-select: none; -webkit-user-select: none; white-space: nowrap; border: 1px solid transparent; }
.btn:active { transform: scale(.985); }
a.btn { text-decoration: none; }
.btn-xl { height: 52px; font-size: 15px; }
.btn-sm { height: 40px; font-size: 14px; padding: 0 16px; border-radius: 10px; }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { opacity: .9; }
.btn-line { background: transparent; color: var(--text); border-color: var(--line2); }
.btn-line:hover { border-color: var(--text2); }
.btn[disabled] { opacity: .3; pointer-events: none; }
.btn .ic { width: 18px; height: 18px; }
.btn .btn-label { overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.btn.loading { position: relative; }
.btn.loading .btn-label, .btn.loading .ic { opacity: 0; }
.btn.loading::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }
.text-btn { font-size: 13px; font-weight: 500; color: var(--text2); padding: 6px 0; transition: color .2s; }
.text-btn:hover { color: var(--text); }
.text-btn.danger { color: var(--danger); }
.text-link { display: block; margin: 16px auto 0; padding: 8px; font-size: 13px; font-weight: 500; color: var(--text2); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--text); }

/* ---------- lists ---------- */
.block { margin-top: 48px; }
.block-tight { margin-top: 32px; }
.block-head { display: flex; align-items: center; justify-content: space-between; height: 32px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; transition: opacity .2s; }
.rows li:last-child .row { border-bottom: 0; }
.row:active { opacity: .6; }
.thumb { width: 48px; height: 48px; border-radius: 10px; background: var(--bg3); flex: none; overflow: hidden; display: grid; place-items: center; color: var(--text2); position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(.15); }
.thumb .ic { width: 20px; height: 20px; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { margin-top: 2px; font-size: 13px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.row-end { flex: none; color: var(--text3); display: flex; align-items: center; }
.row-end .ic { width: 16px; height: 16px; }
.bar { height: 1px; background: var(--line2); overflow: hidden; margin-top: 10px; }
.bar > i { display: block; height: 100%; width: 100%; background: var(--text); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.empty { padding: 24px 0 8px; }
.empty-title { margin: 0; font-size: 15px; font-weight: 500; }
.empty-sub { margin: 4px 0 0; color: var(--text2); font-size: 14px; max-width: 30em; }
.kbd { display: inline-block; padding: 0 6px; border-radius: 4px; border: 1px solid var(--line2); color: var(--text); font-weight: 500; font-size: 12.5px; line-height: 20px; }
.back { display: inline-flex; align-items: center; gap: 4px; margin: 24px 0 0 -4px; padding: 6px 4px; font-size: 13px; font-weight: 500; color: var(--text2); }
.back .ic { width: 16px; height: 16px; }
.back:hover { color: var(--text); }

/* ---------- inline flow ---------- */
body.flowing #homeActive, body.flowing #homeRecent { display: none !important; }
body.flowing .hero { display: none; }
.flow { padding-top: 16px; }
.flow.in { animation: rise .3s var(--out) both; }
.flow.out { animation: sink .18s var(--ease) both; }
.flow-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 40px; }
.flow-back { display: inline-flex; align-items: center; gap: 4px; margin-left: -4px; padding: 8px 4px; font-size: 13px; font-weight: 500; color: var(--text2); transition: color .2s; }
.flow-back .ic { width: 16px; height: 16px; }
.flow-back:hover { color: var(--text); }
.stepper { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.stepper li { width: 22px; height: 2px; background: var(--line2); border-radius: 1px; font-size: 0; overflow: hidden; transition: background .3s var(--ease); }
.stepper li.past { background: var(--text2); }
.stepper li.on { background: var(--text); }
.flow-body { padding-top: 16px; }
.flow-foot { position: sticky; bottom: 0; z-index: 5; margin: 24px calc(-1 * var(--pad)) calc(-1 * (var(--tabbar-h) + var(--tabbar-gap) + 48px)); padding: 28px var(--pad) calc(var(--tabbar-h) + var(--tabbar-gap) + 14px); background: linear-gradient(180deg, transparent 0, var(--bg) 26px); }
.flow-foot:empty { display: none; }
.flow-foot.static { position: static; border-top: 0; margin: 8px calc(-1 * var(--pad)) 0; padding-bottom: 12px; background: none; }
.flow-foot > .btn { width: 100%; }
.foot-row { display: flex; gap: 8px; align-items: center; }
.foot-row .btn { flex: 1; width: auto; min-width: 0; }
.foot-col { display: grid; gap: 8px; }
.foot-col .btn { width: 100%; }
.foot-note { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: var(--text2); text-align: center; }
.flow-foot .text-link { margin-top: 8px; }

/* analyzing */
.an-head { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.an-title { margin: 12px 0 0; font-size: 32px; line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; }
.an-url { margin-top: 8px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); animation: rise .28s var(--out) both; }
.step-dot { position: relative; width: 20px; height: 20px; flex: none; margin-top: 1px; display: grid; place-items: center; color: var(--text); }
.step-dot svg { width: 18px; height: 18px; }
.step-dot::before { content: ""; position: absolute; inset: 2px; border-radius: 50%; border: 1px solid var(--line2); transition: opacity .2s; }
.step.active .step-dot::before { border-color: var(--line2); border-top-color: var(--text); animation: spin .9s linear infinite; }
.step.done .step-dot::before, .step.fail .step-dot::before, .step.skip .step-dot::before { opacity: 0; }
.step.done .chk path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .3s var(--out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0 } }
.step.fail .step-dot { color: var(--danger); }
.step.skip .step-dot { color: var(--text2); }
.step-main { min-width: 0; flex: 1; }
.step-label { font-size: 15px; font-weight: 400; color: var(--text); overflow-wrap: anywhere; }
.step.active .step-label { color: var(--text); }
.step.skip .step-label { color: var(--text2); }
.step-detail { margin-top: 2px; font-size: 13px; color: var(--text2); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.step-fail { margin-top: 24px; }
.step-fail b { display: block; margin-top: 8px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.step-fail p { margin: 8px 0 0; color: var(--text2); font-size: 14px; line-height: 1.55; }
.step-actions { display: flex; gap: 8px; margin-top: 24px; }
.step-actions .btn { flex: 1; }
.err-over { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--danger); }

/* media result */
.m-head { display: block; }
.m-thumb { position: relative; width: 100%; aspect-ratio: 2 / 1; border-radius: 12px; overflow: hidden; background: var(--bg3); border: 1px solid var(--line); }
.m-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .4s var(--ease); }
.m-thumb img.ok { opacity: 1; }
.m-thumb .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.72); color: #fff; font-size: 11px; font-weight: 500; padding: 3px 6px; border-radius: 4px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.m-meta { min-width: 0; flex: 1; }
.m-head .m-meta { margin-top: 16px; }
.m-site { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text2); }
.m-site .ic, .m-site .bi { width: 14px; height: 14px; color: var(--text); }
.m-title { margin: 8px 0 0; font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -0.025em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.m-by { margin-top: 4px; font-size: 13px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.badge-line { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; font-weight: 500; color: var(--text2); }
.badge-line .ic { width: 14px; height: 14px; color: var(--text); }

.seg-hint { margin: 0; font-size: 12px; color: var(--text2); min-height: 18px; }
.opts-head { display: flex; justify-content: space-between; margin-top: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.opts { list-style: none; margin: 0; padding: 0; }
.opt { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 56px; padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; transition: opacity .2s; }
.opts li:last-child .opt { border-bottom: 0; }
.opt:active { opacity: .6; }
.radio { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line2); flex: none; display: grid; place-items: center; transition: border-color .2s var(--ease); }
.radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text); transform: scale(0); transition: transform .22s var(--out); }
.opt[aria-checked="true"] .radio { border-color: var(--text); }
.opt[aria-checked="true"] .radio::after { transform: scale(1); }
.opt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.opt-title { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: var(--text2); transition: color .2s; display: flex; align-items: center; gap: 8px; }
.opt[aria-checked="true"] .opt-title { color: var(--text); }
.opt-tag { font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text2); }
.opt-sub { margin-top: 2px; font-size: 12px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt-size { flex: none; font-size: 13px; color: var(--text2); font-variant-numeric: tabular-nums; }
.opt-size.muted { color: var(--text3); }

/* job head (progress / done) */
.j-head { display: flex; gap: 16px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.j-head .thumb { width: 56px; height: 56px; }
.j-title { margin: 4px 0 0; font-size: 15px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.j-head .m-by { margin-top: 2px; }

/* progress */
.prog { padding-top: 32px; }
.prog-top { display: flex; justify-content: space-between; }
.prog-top #pStage { color: var(--text); }
.prog-num { margin-top: 8px; font-size: 96px; line-height: 1; font-weight: 300; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.prog-num small { font-size: 32px; font-weight: 300; letter-spacing: -0.02em; color: var(--text2); margin-left: 4px; }
.bar-lg { margin-top: 24px; height: 2px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0 0; border-top: 1px solid var(--line); }
.stats > div { padding: 16px 0 0; }
.stats > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.stats dt { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text2); }
.stats dd { margin: 6px 0 0; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats dd i { font-style: normal; color: var(--text2); font-weight: 400; }
.stats-2 { grid-template-columns: 1fr 1fr; }
.stages { list-style: none; display: flex; justify-content: space-between; margin: 32px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.stage { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); transition: color .3s var(--ease); }
.stage.past { color: var(--text2); }
.stage.on { color: var(--text); }

/* done */
.done-wrap { padding-top: 32px; text-align: center; }
.done-mark { width: 72px; height: 72px; margin: 0 auto; color: var(--text); }
.done-mark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.done-mark circle { stroke: var(--line2); stroke-dasharray: 196; stroke-dashoffset: 196; animation: draw .5s var(--out) forwards; }
.done-mark path { stroke-width: 1.75; stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw .35s var(--out) .3s forwards; }
.done-title { margin: 24px 0 0; font-size: 28px; font-weight: 600; letter-spacing: -0.035em; }
.done-wrap .stats { text-align: left; margin-top: 32px; }
.done-sub { margin: 16px 0 0; font-size: 12px; color: var(--text3); overflow-wrap: anywhere; text-align: left; }

/* errors */
.err-wrap { padding-top: 32px; }
.err-title { margin: 8px 0 0; font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -0.03em; }
.err-text { margin: 8px 0 0; color: var(--text2); font-size: 14px; line-height: 1.55; }
.err { color: var(--danger); font-size: 13px; margin: 0; }

/* skeleton */
.sk { background: var(--bg3); border-radius: 6px; animation: skel 1.4s var(--ease) infinite; }
.sk-line { height: 12px; margin-top: 8px; }
.m-thumb.sk { border: 0; }
@keyframes skel { 0%,100% { opacity: 1 } 50% { opacity: .5 } }

/* direct file */
.f-card { display: flex; gap: 16px; align-items: center; }
.f-icon { width: 64px; height: 64px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--text2); }
.f-icon img { width: 100%; height: 100%; object-fit: cover; }
.f-icon .ic { width: 24px; height: 24px; }
.f-preview { margin-top: 24px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); }
.f-preview img { display: block; width: 100%; max-height: 56vh; object-fit: contain; }

/* page scan */
.g-head { padding-bottom: 16px; }
.g-title { margin: 8px 0 0; font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -0.025em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g-sub { margin-top: 4px; font-size: 13px; color: var(--text2); font-variant-numeric: tabular-nums; }
.filters { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin: 0 0 16px; }
.filters::-webkit-scrollbar { display: none; }
.filter { position: relative; flex: none; padding: 10px 0 12px; font-size: 13px; font-weight: 500; color: var(--text2); font-variant-numeric: tabular-nums; transition: color .2s; }
.filter::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--text); transform: scaleX(0); transition: transform .25s var(--out); }
.filter[aria-pressed="true"] { color: var(--text); }
.filter[aria-pressed="true"]::after { transform: scaleX(1); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.tile { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--bg2); border: 1px solid var(--line); transition: opacity .2s; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.tile img.ok { opacity: 1; }
.tile .glyph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--text3); font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.tile .glyph .ic { width: 22px; height: 22px; }
.tile .meta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 4px 6px; font-size: 9.5px; font-weight: 500; letter-spacing: .06em; color: #fff; background: rgba(0,0,0,.6); font-variant-numeric: tabular-nums; }
.tile .sel { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); background: rgba(0,0,0,.35); display: grid; place-items: center; color: transparent; transition: background .2s, color .2s; }
.tile .sel .ic { width: 12px; height: 12px; }
.tile[aria-checked="true"] { border-color: var(--text); }
.tile[aria-checked="true"] .sel { background: #fff; border-color: #fff; color: #000; }
.tile[aria-checked="true"]::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--text); border-radius: 6px; pointer-events: none; }
.grid-empty { padding: 32px 0; color: var(--text2); font-size: 14px; }

/* ---------- settings ---------- */
.over.set-over { margin: 40px 0 8px; }
.title-lg + .over.set-over { margin-top: 32px; }
.group { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.set-row { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; text-decoration: none; color: inherit; }
.group > .set-row:last-child { border-bottom: 0; }
.set-main { flex: 1; min-width: 0; }
.set-title { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.set-title.danger { color: var(--danger); }
.set-sub { margin-top: 2px; font-size: 13px; color: var(--text2); line-height: 1.5; overflow-wrap: anywhere; }
.set-sub b { color: var(--text); font-weight: 500; }
.set-val { font-size: 14px; font-weight: 500; color: var(--text2); font-variant-numeric: tabular-nums; }
.set-btn { transition: opacity .2s; }
.set-btn:active { opacity: .6; }
.set-btn .chev { width: 16px; height: 16px; color: var(--text3); }
.select { appearance: none; -webkit-appearance: none; font-size: 14px; font-weight: 500; color: var(--text2); background: transparent; border: 0; outline: 0;
  height: 40px; padding: 0 22px 0 8px; border-radius: 8px; max-width: 56%; flex: none; text-align: right; text-align-last: right; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A8A8A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 10l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0 center; background-size: 16px; }
.select:hover { color: var(--text); }
.select option { color: #000; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--text); word-break: break-all; }
.pill-ok { width: 6px; height: 6px; border-radius: 50%; background: var(--text3); flex: none; }
.pill-ok.ok { background: var(--text); }
.pill-ok.bad { background: var(--danger); }
.fineprint { margin: 40px 0 0; text-align: center; color: var(--text3); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.dev-head { padding: 20px 0; }
.dev-by { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text2); }
.dev-name { margin-top: 6px; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.dev-ic { width: 20px; height: 20px; color: var(--text); }

/* ---------- supported sites ---------- */
.brand-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.brand-card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--text2); min-width: 0; }
.brand-card .bi { width: 20px; height: 20px; color: var(--text); }
.brand-card span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.anypage { display: flex; gap: 16px; align-items: flex-start; margin-top: 32px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.anypage-ic { color: var(--text); }
.list-meta { margin: 12px 0 8px; font-size: 12px; color: var(--text2); font-variant-numeric: tabular-nums; }
.site-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; font-size: 13px; color: var(--text2); }
.site-list li { padding: 7px 0; border-bottom: 1px solid var(--line); break-inside: avoid; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-list mark { background: none; color: var(--text); font-weight: 600; }

/* ---------- lock ---------- */
.lock { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: grid; place-items: center; padding: 24px; }
.lock-card { width: min(360px, 100%); display: grid; gap: 16px; }
.lock-card .lede { margin: 0 0 8px; }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--tabbar-h) + var(--tabbar-gap) + 16px); transform: translate(-50%, 8px); opacity: 0;
  max-width: calc(100% - 48px); padding: 12px 18px; border-radius: 999px; background: var(--g-solid); border: 1px solid var(--line2); box-shadow: var(--g-shadow); color: var(--text); font-size: 13px; font-weight: 500;
  transition: opacity .2s var(--ease), transform .25s var(--out); pointer-events: none; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- standalone (home screen app) ---------- */
.standalone body { -webkit-user-select: none; user-select: none; }

/* ---------- larger screens ---------- */
@media (min-width: 820px) {
  :root { --pad: 32px; --top-h: 64px; }
  .main { max-width: 680px; }
  .top-in { max-width: 1120px; }
  .display { font-size: 56px; }
  .hero { padding-top: 56px; }
  .flow-foot { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-list { columns: 3; }
  .main { padding-bottom: 80px; }
  body.flowing .main { max-width: 1040px; }
  .flow:not(.media):not(.wide) > * { max-width: 616px; margin-left: auto; margin-right: auto; }
  .flow.media .flow-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: start; }
  .flow.media .m-head { grid-column: 1; grid-row: 1 / span 6; position: sticky; top: calc(var(--top-h) + 24px); }
  .flow.media .m-thumb { aspect-ratio: 16 / 10; }
  .flow.media .m-title { font-size: 24px; -webkit-line-clamp: 3; }
  .flow.media .seg, .flow.media .seg-hint, .flow.media .opts-head, .flow.media .opts { grid-column: 2; }
  .flow.media .seg { margin-top: 0; }
  .flow.media .flow-foot { margin-left: calc(50% + 28px); }
  .flow-foot { bottom: 0; }
  .toast { bottom: 32px; }
}
@media (max-width: 360px) {
  :root { --pad: 20px; }
  .display { font-size: 34px; }
  .prog-num { font-size: 80px; }
}
/* ======================================================================
   Liquid glass layer (v3)
   ====================================================================== */

/* ambient light: one large soft radial behind the hero, a fainter one lower down */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(85% 48% at 50% 4%, var(--amb1), transparent 72%),
    radial-gradient(60% 40% at 100% 78%, var(--amb2), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); }

/* the glass material */
/* .glass = the material (fill, rim, sheen). Real backdrop blur only on the two small controls: tab bar + segmented toggle. */
.glass { position: relative; isolation: isolate; background: var(--g-fill);
  box-shadow: var(--g-shadow), inset 0 1px 0 var(--g-hi), inset 0 -1px 0 rgba(255, 255, 255, .025); }
/* specular sheen: brightest at the top edge, gone by the middle */
.glass::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, var(--g-sheen) 0%, transparent 46%),
              radial-gradient(90% 70% at 18% -10%, var(--g-sheen), transparent 60%); }
/* refraction edge: a 1px rim that catches light top-left and again bottom-right */
.glass::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(155deg, var(--g-edge1) 0%, var(--g-edge2) 34%, var(--g-edge2) 62%, var(--g-edge3) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
/* no backdrop-filter, a low-end phone, or reduced transparency: solid translucent fill, same shape */
.tabbar.glass, .seg.glass { -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .tabbar.glass, .seg.glass { background: var(--g-solid); } }
.lite .glass, .lite .tabbar.glass, .lite .seg.glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--g-solid); }
.lite body::before { background: radial-gradient(85% 48% at 50% 4%, var(--amb1), transparent 72%), var(--bg); }
.lite .tabbar.moving .tab-drop i, .lite .seg.moving .pill { scale: none; }

/* the droplet: the selected thumb inside a glass control */
.drop { border-radius: 999px; background: var(--drop);
  box-shadow: var(--drop-shadow), inset 0 1px 0 var(--drop-hi), inset 0 -1px 0 rgba(255, 255, 255, .05), inset 0 0 0 .5px rgba(255, 255, 255, .08); }

/* ---------- tab bar: floating glass capsule ---------- */
.tabbar { position: fixed; z-index: 35; left: 50%; bottom: var(--tabbar-gap); transform: translateX(-50%);
  width: min(340px, calc(100% - 48px)); height: var(--tabbar-h); border-radius: 999px; --ti: 0; }
.tabbar-in { position: relative; height: 100%; padding: 5px; display: grid; grid-template-columns: repeat(3, 1fr); }
.tab-drop { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3); pointer-events: none;
  transform: translateX(calc(var(--ti) * 100%)); transition: transform .62s var(--spring); }
.tab-drop i { position: absolute; inset: 0; border-radius: 999px; background: var(--drop);
  box-shadow: var(--drop-shadow), inset 0 1px 0 var(--drop-hi), inset 0 -1px 0 rgba(255, 255, 255, .05), inset 0 0 0 .5px rgba(255, 255, 255, .07);
  transition: scale .34s var(--out); }
.tab-drop i::after { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(80% 60% at 30% 0%, rgba(255, 255, 255, .14), transparent 70%); }
.tabbar.moving .tab-drop i { scale: 1.14 .9; transition: scale .18s var(--ease); }
.tab { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 999px;
  font-size: 10px; font-weight: 500; letter-spacing: .01em; color: var(--text2); transition: color .25s var(--ease), transform .2s var(--ease); }
.tab:active { transform: scale(.96); }
.tab .ic { width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--text); }
.tab-ic { position: relative; display: grid; }
.tab-badge { position: absolute; top: -4px; right: -9px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--text); color: var(--bg); font-size: 9.5px; font-weight: 600; display: grid; place-items: center; font-style: normal; font-variant-numeric: tabular-nums; }

/* ---------- hero ---------- */
.hero { padding: 36px 0 0; }
.hero.out { animation: sink .18s var(--ease) both; }
.eyebrow { margin-bottom: 16px; }
.display { margin: 0; font-size: 38px; line-height: 1.05; font-weight: 600; letter-spacing: -0.04em; }
.display span { color: var(--text2); }

.paste { margin-top: 36px; display: grid; gap: 12px; }
.paste-card { display: flex; align-items: center; gap: 16px; min-height: 88px; padding: 16px; border-radius: 24px; background: rgba(48, 50, 54, .38);
  transition: transform .25s var(--out); }
:root[data-theme="light"] .paste-card { background: rgba(255, 255, 255, .7); }
.paste-card:active:not(.manual) { transform: scale(.985); }
.pc-hit { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.paste-card.manual .pc-hit { display: none; }
.pc-hit:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }

.dl-glyph { position: relative; flex: none; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: var(--text);
  background: var(--drop); box-shadow: inset 0 1px 0 var(--drop-hi), inset 0 0 0 .5px rgba(255, 255, 255, .06); overflow: hidden; }
.dl-glyph svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.dl-arrow { transform-box: view-box; }
.paste-card.got .dl-arrow { animation: drop-in .7s var(--out) both; }
.paste-card.got .dl-tray { animation: tray .7s var(--out) both; }
.paste-card.reading .dl-arrow, .paste-card.busy .dl-arrow { animation: drop-loop 1.1s var(--ease) infinite; }
@keyframes drop-in { 0% { transform: translateY(-14px); opacity: 0 } 45% { opacity: 1 } 70% { transform: translateY(2px) } 100% { transform: none; opacity: 1 } }
@keyframes tray { 0%, 55% { transform: none } 72% { transform: translateY(1.6px) } 100% { transform: none } }
@keyframes drop-loop { 0% { transform: translateY(-12px); opacity: 0 } 35% { opacity: 1 } 70% { transform: translateY(3px); opacity: 1 } 100% { transform: translateY(8px); opacity: 0 } }
.dl-tray { transform-box: view-box; }

.pc-body { flex: 1; min-width: 0; display: grid; }
.pc-body > * { grid-area: 1 / 1; min-width: 0; }
.pc-empty, .pc-link { display: flex; flex-direction: column; gap: 3px; transition: opacity .25s var(--ease), transform .3s var(--out); }
.pc-title { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.pc-sub { font-size: 13px; color: var(--text2); }
.pc-link { opacity: 0; transform: translateY(6px); pointer-events: none; }
.paste-card.has-link .pc-empty { opacity: 0; transform: translateY(-6px); }
.paste-card.has-link .pc-link { opacity: 1; transform: none; }
.pc-site { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text2); }
.pc-site .bi, .pc-site .ic { width: 14px; height: 14px; color: var(--text); }
.pc-url { font-size: 16px; font-weight: 500; letter-spacing: -0.012em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-input { display: none; }
.pc-input input { width: 100%; height: 44px; border: 0; outline: 0; background: transparent; font-size: 16px; font-weight: 500; letter-spacing: -0.012em; padding: 0; }
.pc-input input::placeholder { color: var(--text3); font-weight: 400; }
.paste-card.manual .pc-input { display: block; }
.paste-card.manual .pc-empty, .paste-card.manual .pc-link { display: none; }
.pc-chip { position: relative; z-index: 3; flex: none; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text);
  background: var(--drop); box-shadow: inset 0 1px 0 var(--drop-hi); }
.pc-clear { position: relative; z-index: 3; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--text2); background: var(--drop); }
.pc-clear svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.paste-card.nudge { animation: nudge .36s var(--ease); }
@keyframes nudge { 20% { transform: translateX(-4px) } 45% { transform: translateX(4px) } 70% { transform: translateX(-2px) } 100% { transform: none } }

/* the one solid button: white, with a quiet specular top edge */
.btn-ink { background: linear-gradient(180deg, #FFFFFF 0%, #ECEBE8 100%); color: var(--on-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .3), 0 10px 24px -12px rgba(0, 0, 0, .7); }
:root[data-theme="light"] .btn-ink { background: linear-gradient(180deg, #2A2A2A 0%, #121212 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 22px -10px rgba(0, 0, 0, .45); }
.btn-dl { height: 56px; border-radius: 18px; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; gap: 10px; }
.btn-dl .dl-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-dl.ready .dl-ic { animation: nudge-down 1.8s var(--ease) 2; }
@keyframes nudge-down { 0%, 60%, 100% { transform: none } 75% { transform: translateY(2px) } }
.btn-line { border-color: var(--line2); background: rgba(255, 255, 255, .02); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.flow-foot .btn, .step-actions .btn { border-radius: 16px; }

.grab-hint { margin: 2px 0 0; font-size: 13px; color: var(--text2); text-align: center; min-height: 0; }
.grab-hint:empty { display: none; }
.grab-hint.warn { color: var(--text); }
.manual-toggle { display: block; margin: 0 auto; padding: 10px 8px; font-size: 13px; font-weight: 500; color: var(--text2);
  text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 5px; text-decoration-thickness: 1px; transition: color .2s var(--ease); }
.manual-toggle:hover { color: var(--text); }

.sites-link { margin: 32px 0 0; width: 100%; display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--text2); text-align: left; transition: color .2s var(--ease); }
.sites-link:hover { color: var(--text); }
.sites-link .logos { display: inline-flex; gap: 14px; color: var(--text); }
.sites-link .bi { width: 16px; height: 16px; }
.sites-text { flex: 1; font-size: 13px; font-weight: 500; letter-spacing: 0; font-variant-numeric: tabular-nums; text-align: right; }
.sites-text b { font-weight: 400; color: var(--text3); margin-right: 4px; }
.sites-link > .ic { width: 16px; height: 16px; }

/* ---------- glass segmented control (Video + Audio / Video only / Audio only) ---------- */
.seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 999px; padding: 4px; margin: 24px 0 10px; }
.seg .pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 999px; background: var(--drop);
  box-shadow: var(--drop-shadow), inset 0 1px 0 var(--drop-hi), inset 0 -1px 0 rgba(255, 255, 255, .05), inset 0 0 0 .5px rgba(255, 255, 255, .08);
  transition: transform .62s var(--spring), scale .34s var(--out); }
.seg .pill::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(80% 70% at 30% 0%, rgba(255, 255, 255, .14), transparent 70%); }
.seg.moving .pill { scale: 1.1 .9; transition: transform .62s var(--spring), scale .18s var(--ease); }
.seg button { position: relative; z-index: 1; height: 40px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text2); display: flex; align-items: center; justify-content: center; transition: color .25s var(--ease); white-space: nowrap; }
.seg button .ic { display: none; }
.seg button[aria-pressed="true"] { color: var(--text); }
.seg button[disabled] { opacity: .3; pointer-events: none; }

/* ---------- cards get a quiet glass surface (no blur: nothing moves behind them, keeps phones fast) ---------- */
.m-thumb { border-radius: 20px; border: 0; box-shadow: var(--g-shadow), inset 0 0 0 1px var(--line); }
.thumb { border-radius: 12px; }
.prog, .done-wrap { position: relative; isolation: isolate; border-radius: 24px; padding: 24px 20px 20px; margin-top: 24px; background: var(--g-fill);
  box-shadow: var(--g-shadow), inset 0 1px 0 var(--g-hi); }
.prog::after, .done-wrap::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(155deg, var(--g-edge1) 0%, var(--g-edge2) 34%, var(--g-edge2) 62%, var(--g-edge3) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.done-wrap { padding-top: 32px; }
.prog .stats, .done-wrap .stats { border-top-color: var(--line); }
.bar-lg { height: 4px; border-radius: 2px; background: var(--line2); }
.bar-lg > i { border-radius: 2px; background: var(--text); }
.lite .prog, .lite .done-wrap { background: var(--g-solid); }
.j-head { border-bottom: 0; padding-bottom: 0; }

/* ---------- larger screens: the glass capsule moves to the top bar ---------- */
@media (min-width: 820px) {
  :root { --tabbar-h: 44px; }
  .tabbar { top: 10px; bottom: auto; width: 360px; z-index: 31; }
  .tabbar-in { padding: 4px; }
  .tab-drop { top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); }
  .tab { flex-direction: row; font-size: 13px; letter-spacing: -0.005em; }
  .tab .ic, .tab-ic .ic { display: none; }
  .tab:hover { color: var(--text); }
  .tab-badge { position: static; margin-left: 6px; }
  .tab-ic { display: inline-flex; order: 2; }
  .display { font-size: 56px; }
  .hero { padding-top: 64px; }
  .paste { margin-top: 44px; grid-template-columns: minmax(0, 1fr) 200px; align-items: stretch; }
  .paste-card { grid-column: 1; }
  .btn-dl { grid-column: 2; height: auto; min-height: 88px; border-radius: 24px; }
  .grab-hint, .manual-toggle { grid-column: 1 / -1; }
  .manual-toggle { display: none; }
  .flow-foot { bottom: 0; padding-bottom: 20px; margin-bottom: 0; }
}
@media (max-width: 360px) {
  .paste-card { gap: 12px; padding: 14px; }
  .dl-glyph { width: 48px; height: 48px; border-radius: 16px; }
  .tabbar { width: calc(100% - 32px); }
}

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