/* Island PWA — same token language as settings/ui/style.css, tuned for phones. */
:root {
  --bg: #000;
  --text: rgba(255, 255, 255, 0.94);
  --text-2: rgba(255, 255, 255, 0.62);
  --text-3: rgba(255, 255, 255, 0.42);
  --card: rgba(255, 255, 255, 0.05);
  --card-2: rgba(255, 255, 255, 0.085);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-2: rgba(255, 255, 255, 0.15);
  --glass: rgba(18, 18, 22, 0.66);
  --pill: #050507;
  --accent: #7c8cff;
  --accent-2: #b07cff;
  --accent-grad: linear-gradient(135deg, #6d8bff 0%, #a77bff 100%);
  --focus: #b9c3ff;
  --pos: #4ade80;
  --neg: #ff6b6b;
  --warn: #fbbf24;
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --spring-soft: cubic-bezier(0.22, 1.2, 0.36, 1);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --r: 18px;
  --gutter: 16px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(109, 139, 255, 0.16), transparent 60%),
    radial-gradient(80% 40% at 100% 100%, rgba(167, 123, 255, 0.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: 10px; background: var(--accent); color: #000; }
.skip:focus { top: calc(8px + var(--safe-t)); }
.ic { flex: none; display: block; }
.muted { color: var(--text-2); }
.sm { font-size: 13px; }
.center { text-align: center; }
b { font-weight: 600; }

/* ---------- shell ---------- */
.app { min-height: 100vh; min-height: 100dvh; }
.top {
  position: sticky; top: 0; z-index: 20; display: flex; justify-content: center;
  padding: calc(10px + var(--safe-t)) var(--gutter) 10px;
  background: linear-gradient(#000 40%, rgba(0, 0, 0, 0));
}
.page {
  max-width: 560px; margin: 0 auto;
  padding: 6px var(--gutter) calc(104px + var(--safe-b));
  animation: pageIn 0.42s var(--spring-soft) both;
}
.pairing .page { padding-bottom: calc(32px + var(--safe-b)); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px) scale(0.99); } }
.page-title { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin: 8px 2px 16px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 4px 10px; }
.section-head h2 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.boot { min-height: 100vh; display: grid; place-items: start center; padding-top: calc(10px + var(--safe-t)); }
.boot-pill { animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.55; transform: scale(0.96); } }

/* ---------- the island pill ---------- */
.island-pill {
  --w: auto;
  display: inline-flex; align-items: center; gap: 9px; min-width: 120px; max-width: min(92vw, 360px);
  height: 36px; padding: 0 16px 0 14px; border-radius: 999px; background: var(--pill);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 32px rgba(0, 0, 0, 0.6), 0 6px 22px rgba(124, 140, 255, 0.16);
  font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap;
  transition: max-width 0.55s var(--spring), padding 0.45s var(--spring), box-shadow 0.4s var(--ease), transform 0.35s var(--spring);
}
.island-pill:active { transform: scale(0.96); }
.island-pill .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--pos); box-shadow: 0 0 10px var(--pos); transition: background 0.3s, box-shadow 0.3s; }
.island-pill.warn .dot { background: var(--warn); box-shadow: 0 0 10px var(--warn); animation: blink 1.4s ease-in-out infinite; }
.island-pill.bad .dot { background: var(--neg); box-shadow: 0 0 10px var(--neg); }
.island-pill.idle .dot { background: var(--accent-grad); box-shadow: 0 0 10px var(--accent); }
.island-pill .pill-text { overflow: hidden; text-overflow: ellipsis; animation: fadeIn 0.3s var(--ease); }
.island-pill.wide { height: 40px; padding: 0 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 12px 36px rgba(0, 0, 0, 0.6), 0 8px 26px rgba(167, 123, 255, 0.28); }
.np { display: flex; align-items: center; gap: 7px; min-width: 0; animation: fadeIn 0.35s var(--ease); }
.np .ic { color: var(--accent-2); }
.np-t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.np-a { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; }
.eq { display: flex; gap: 2px; align-items: flex-end; height: 14px; margin-left: 2px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--accent-grad); transform-origin: bottom; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s; } .eq i:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
@keyframes blink { 50% { opacity: 0.35; } }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- tab bar ---------- */
.tabbar {
  position: fixed; z-index: 30; left: 50%; bottom: calc(12px + var(--safe-b)); transform: translateX(-50%);
  width: min(calc(100vw - 2 * var(--gutter)), 420px); height: 64px; padding: 6px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: 24px; background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 0 0 1px var(--stroke-2), 0 18px 40px rgba(0, 0, 0, 0.55);
}
.tab-indicator {
  position: absolute; top: 6px; left: 6px; height: 52px; width: calc((100% - 12px) / 4);
  border-radius: 18px; background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: translateX(calc(var(--i) * 100%)); transition: transform 0.5s var(--spring);
}
.tab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-radius: 18px; color: var(--text-3); font-size: 11px; font-weight: 500;
  transition: color 0.25s var(--ease);
}
.tab .ic { transition: transform 0.4s var(--spring); }
.tab:active .ic { transform: scale(0.82); }
.tab[aria-current="page"] { color: var(--text); }
.tab[aria-current="page"] .ic { color: var(--accent); transform: translateY(-1px); }

/* ---------- cards & lists ---------- */
.card {
  background: var(--card); border-radius: var(--r); padding: 14px 16px;
  box-shadow: inset 0 0 0 1px var(--stroke);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.list > li { animation: rise 0.5s var(--spring-soft) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.empty { text-align: center; padding: 34px 20px; color: var(--text-2); border-radius: var(--r); border: 1px dashed var(--stroke-2); }
.empty .ic { margin: 0 auto 10px; color: var(--text-3); }
.empty p { margin: 4px 0; }
.empty-card { display: flex; align-items: center; gap: 12px; color: var(--text-3); }
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); color: var(--text-2); font-size: 11.5px; font-weight: 500;
}
.badge.accent { background: rgba(124, 140, 255, 0.18); color: #c6ccff; }
.banner {
  display: flex; gap: 10px; align-items: center; padding: 12px 14px; margin-bottom: 6px; border-radius: 14px;
  background: rgba(251, 191, 36, 0.1); color: #fde68a; box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.2); font-size: 13.5px;
}
.note { font-size: 13px; color: var(--text-2); padding: 10px 12px; margin: 12px 0 0; border-radius: 12px; background: rgba(124, 140, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(124, 140, 255, 0.16); }
.skeleton { height: 64px; border-radius: var(--r); margin-bottom: 8px; background: linear-gradient(90deg, var(--card) 0%, var(--card-2) 50%, var(--card) 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 14px; background: var(--card-2); color: var(--text); font-weight: 600; cursor: pointer;
  transition: transform 0.35s var(--spring), background 0.2s var(--ease), opacity 0.2s, box-shadow 0.2s;
}
.btn:active:not(:disabled) { transform: scale(0.95); }
.btn:disabled { opacity: 0.38; cursor: default; }
.btn.primary { background: var(--accent-grad); color: #fff; box-shadow: 0 8px 22px rgba(124, 140, 255, 0.32); }
.btn.ghost { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--stroke); font-weight: 500; }
.btn.subtle { background: transparent; box-shadow: none; color: var(--text-2); }
.btn.block { width: 100%; margin-top: 10px; }
.btn.sm { min-height: 38px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.btn.icon { min-height: 40px; width: 40px; padding: 0; border-radius: 12px; background: transparent; color: var(--text-2); }
.btn.icon:active { background: var(--card-2); }
.btn.icon.on { color: var(--accent); }
.btn.icon.danger { color: var(--text-3); }
.btn.icon.danger.confirm { width: auto; padding: 0 12px; background: rgba(255, 107, 107, 0.16); color: var(--neg); }
.btn.danger-ghost { background: transparent; color: var(--neg); box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.25); }
.btn.danger-ghost.confirm { background: rgba(255, 107, 107, 0.18); }
.btn.round { width: 48px; min-height: 48px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.07); }
.btn.round.big { width: 62px; min-height: 62px; background: #fff; color: #000; box-shadow: 0 8px 26px rgba(255, 255, 255, 0.12); }
.link { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font-weight: 500; }
.input, textarea {
  width: 100%; border: 0; border-radius: 14px; padding: 12px 14px; background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px var(--stroke-2); transition: box-shadow 0.2s var(--ease); font-size: 16px; /* ≥16px: no iOS zoom */
}
.input:focus, textarea:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
textarea { resize: none; display: block; line-height: 1.4; }
::placeholder { color: var(--text-3); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.err { color: var(--neg); font-size: 14px; margin: 10px 2px 0; }
.switch {
  position: relative; flex: none; width: 52px; height: 32px; border: 0; border-radius: 999px; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.14); transition: background 0.3s var(--ease);
}
.switch span { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); transition: transform 0.45s var(--spring); }
.switch.on { background: var(--accent-grad); }
.switch.on span { transform: translateX(20px); }
.switch:disabled { opacity: 0.4; }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 50; left: 0; right: 0; bottom: calc(88px + var(--safe-b)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 var(--gutter); }
.pairing .toasts { bottom: calc(20px + var(--safe-b)); }
.toast {
  max-width: 100%; padding: 11px 18px; border-radius: 999px; background: var(--pill); font-size: 14px; font-weight: 500;
  box-shadow: 0 0 0 1px var(--stroke-2), 0 12px 30px rgba(0, 0, 0, 0.6); animation: toastIn 0.5s var(--spring) both;
}
.toast.ok::before { content: "✓ "; color: var(--pos); }
.toast.error { color: #ffd0d0; box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.4), 0 12px 30px rgba(0, 0, 0, 0.6); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(0.9); } }

/* ---------- Pano ---------- */
.composer { padding: 10px; }
.composer textarea { background: transparent; box-shadow: none; padding: 8px 8px 10px; }
.composer-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
.clip {
  width: 100%; display: block; text-align: left; border: 0; cursor: pointer; padding: 14px 16px; border-radius: var(--r);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--stroke);
  transition: transform 0.35s var(--spring), background 0.2s var(--ease), box-shadow 0.3s var(--ease);
}
.clip:active { transform: scale(0.98); background: var(--card-2); }
.clip.copied { box-shadow: inset 0 0 0 1.5px rgba(74, 222, 128, 0.55); }
.clip-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; white-space: pre-wrap; font-size: 15px; }
.clip-meta { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--text-3); font-size: 12.5px; }
.clip-act { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); }
.copied .clip-act { color: var(--pos); animation: pop 0.45s var(--spring); }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }

/* ---------- Dosyalar ---------- */
.quota-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 17px; }
.quota p { margin: 10px 0 0; }
.bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent-grad); transition: width 0.6s var(--spring-soft); }
.bar.warn span { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.bar.danger span { background: linear-gradient(90deg, #ff8a8a, #ff5c5c); }
.bar.thin { height: 4px; margin: 8px 0 6px; }
.dropzone {
  width: 100%; margin-top: 10px; display: flex; align-items: center; gap: 14px; padding: 16px; text-align: left; cursor: pointer;
  border: 1.5px dashed var(--stroke-2); border-radius: var(--r); background: rgba(124, 140, 255, 0.05);
  transition: transform 0.35s var(--spring), border-color 0.2s, background 0.2s;
}
.dropzone:active, .dropzone.over { transform: scale(0.985); border-color: var(--accent); background: rgba(124, 140, 255, 0.12); }
.dz-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-grad); color: #fff; flex: none; box-shadow: 0 6px 18px rgba(124, 140, 255, 0.35); }
.uploads { margin-top: 10px; }
.upl { padding: 12px 14px; }
.up-row { display: flex; align-items: center; gap: 10px; }
.up-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.file { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 14px; }
.file-ic, .dev-ic, .push-ic { position: relative; width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); color: var(--text-2); }
.file-main, .dev-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.file-name, .dev-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--text-3); font-size: 12.5px; align-items: center; }
.expiring { color: var(--warn); }
.file-act { display: flex; align-items: center; }

/* ---------- Durum ---------- */
.media { padding: 16px; }
.media-top { display: flex; gap: 14px; align-items: center; }
.art { width: 64px; height: 64px; flex: none; border-radius: 16px; display: grid; place-items: center; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #3b2f7a, #1d2a5c); box-shadow: 0 8px 24px rgba(124, 140, 255, 0.25); transition: transform 0.5s var(--spring); }
.art.playing { transform: scale(1.04); }
.art img { width: 100%; height: 100%; object-fit: cover; }
.media-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.media-title { font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-artist { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-src { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12.5px; margin-top: 4px; }
.media-bar { margin: 14px 0 2px; }
.media-ctl { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 12px; }
.stale { opacity: 0.6; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--text-3); }
.status-dot.on { background: var(--pos); box-shadow: 0 0 8px rgba(74, 222, 128, 0.7); }
.dev-ic .status-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; box-shadow: 0 0 0 2.5px #0b0b0e; }
.dev-ic .status-dot.on { box-shadow: 0 0 0 2.5px #0b0b0e, 0 0 8px rgba(74, 222, 128, 0.7); }
.mt5 + .mt5, .media + .media { margin-top: 8px; }
.mt5-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 10px; }
.mt5-total { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mt5-eq { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.pos-list { list-style: none; margin: 0; padding: 0; }
.pos { display: grid; grid-template-columns: 1fr auto 70px 96px; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--stroke); font-variant-numeric: tabular-nums; }
.pos-sym { font-weight: 600; }
.side { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; letter-spacing: 0.03em; }
.side.buy { background: rgba(74, 222, 128, 0.14); color: var(--pos); }
.side.sell { background: rgba(255, 107, 107, 0.14); color: var(--neg); }
.pos-pct { text-align: right; font-size: 13px; }
.pos-pl { text-align: right; font-weight: 600; }
.up, .down { transition: color 0.3s; }
.up { color: var(--pos); }
.down { color: var(--neg); }
.devgrid { list-style: none; margin: 0; padding: 4px 16px; }
.devrow { display: flex; align-items: center; gap: 10px; padding: 11px 0; }
.devrow + .devrow { border-top: 1px solid var(--stroke); }
.devrow .ic { color: var(--text-2); }
.devname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Cihazlar ---------- */
.device { display: flex; align-items: center; gap: 12px; }
.push-row { display: flex; align-items: center; gap: 12px; }
.push-ic { color: var(--accent); background: rgba(124, 140, 255, 0.14); }
.pairstart { margin-top: 10px; text-align: center; }
.bigcode { font-size: 40px; font-weight: 700; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; margin: 6px 0; }
.list + .btn.block { margin-top: 14px; }

/* ---------- Eşle ---------- */
.pair { padding-top: 4vh; }
.pair-hero { text-align: center; margin-bottom: 22px; }
.pair-hero h1 { font-size: 28px; margin: 18px 0 8px; letter-spacing: -0.02em; }
.pair-hero p { margin: 0 auto; max-width: 340px; }
.hero-pill { width: 132px; height: 40px; margin: 0 auto; border-radius: 20px; background: var(--pill); display: grid; place-items: center end; padding-right: 13px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 14px 50px rgba(124, 140, 255, 0.4); animation: heroPill 3.2s var(--ease) infinite; }
.hero-pill span { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-grad); box-shadow: 0 0 12px var(--accent); }
@keyframes heroPill { 0%, 100% { width: 132px; } 45%, 60% { width: 196px; } }
.pair-card { padding: 18px; }
.field-label { display: block; font-size: 13px; color: var(--text-2); margin: 4px 2px 8px; }
.field-label + .input { margin-bottom: 4px; }
.otp { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 16px; }
.otp-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; font-size: 16px; caret-color: transparent; }
.otp-box {
  height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1px var(--stroke-2); transition: box-shadow 0.2s, transform 0.35s var(--spring);
}
.otp-box.filled { animation: pop 0.35s var(--spring); }
.otp-input:focus ~ .otp-box.caret { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px rgba(124, 140, 255, 0.15); }
.otp-input:focus ~ .otp-box.caret::after { content: ""; width: 2px; height: 26px; background: var(--accent); animation: blink 1s steps(2) infinite; }
.token-chip { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px; margin-bottom: 16px; background: rgba(124, 140, 255, 0.12); color: #c6ccff; }
.token-chip .link { margin-left: auto; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.7); display: grid; place-items: center; padding: var(--gutter); animation: fadeIn 0.25s; }
.scanner { position: relative; width: min(100%, 420px); aspect-ratio: 3 / 4; border-radius: 28px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--stroke-2); animation: toastIn 0.45s var(--spring); }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; inset: 22% 15%; border-radius: 22px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 0 0 999px rgba(0, 0, 0, 0.35); }
.scan-hint { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; margin: 0; font-size: 14px; }
.scanner .close { position: absolute; top: 12px; right: 12px; background: rgba(0, 0, 0, 0.5); }

@media (min-width: 700px) {
  .page-title { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
.cur { font-size: 0.5em; font-weight: 600; margin-left: 6px; opacity: 0.7; letter-spacing: 0.02em; }
.mt5-eq .cur { font-size: 11px; margin-left: 4px; }
.nowrap { white-space: nowrap; }
.upl .bar.thin { margin-bottom: 2px; }
