/* Valu — monochrome iOS-native design system */
:root {
  --bg: #ffffff;
  --fg: #000000;
  --fg2: #3c3c43;
  --mute: #8e8e93;
  --mute2: #aeaeb2;
  --card: #f4f4f6;
  --card2: #ebebef;
  --line: rgba(0, 0, 0, 0.08);
  --line2: rgba(0, 0, 0, 0.14);
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --pad: 20px;
  --tabh: 58px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --col: 100%;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); }
html { overscroll-behavior: none; touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  font-feature-settings: "tnum" 0;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; }
.num { font-variant-numeric: tabular-nums; }

#app { min-height: 100%; }
#view {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(var(--sat) + 8px) var(--sar) calc(var(--tabh) + var(--sab) + 40px) var(--sal);
  min-height: 100vh;
  min-height: 100dvh;
}
/* App chrome behaves like native UI: no text selection, no long-press callouts. Content text stays selectable. */
.tabbar, .nav, .btn, .tab, .chip, .chip-btn, .seg, .icon-btn, .back, .ob-top, .ob-foot, .ob-art, .wl-main, .wl-foot, .hero, .banner, .row, .shutter-row, .viewfinder, .updbar, .grabber, .large-title, .section-head, .label, .stat, .rc, .mk-cell {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.lf-v, .prose, .tags, .res-name, .res-model, input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
img { -webkit-user-drag: none; }
/* Keyboard focus (mouse/touch taps don't show it) */
:focus { outline: none; }
:focus-visible { outline: 2.5px solid #000; outline-offset: 2px; }
.hero :focus-visible, .value-card :focus-visible, .mk-cell.best:focus-visible, .updbar :focus-visible { outline-color: #fff; }
.tab:focus-visible { outline-offset: -4px; }
.input:focus-visible { outline: none; }
.screen { animation: screenIn 0.38s var(--ease) both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.push { animation: pushIn 0.42s var(--ease) both; }
@keyframes pushIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }

/* Headers */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 6px var(--pad) 0; min-height: 44px; }
.nav-title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.nav3 { display: grid; grid-template-columns: 1fr auto 1fr; }
.nav3 > :last-child { justify-self: end; }
.back { display: inline-flex; align-items: center; gap: 2px; font-size: 17px; font-weight: 500; margin-left: -6px; padding: 8px 6px; }
.back svg { width: 22px; height: 22px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--card); display: grid; place-items: center; transition: transform .15s; }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 20px; height: 20px; }
.large-title { font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -0.035em; padding: 8px var(--pad) 4px; margin: 0; }
.subtitle { color: var(--mute); font-size: 15px; padding: 0 var(--pad); margin: 2px 0 0; }

/* Brand */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; }
.wordmark { font-size: 26px; font-weight: 800; letter-spacing: -0.05em; }
.tagline { color: var(--mute); font-size: 15px; margin: 2px 0 0; }

/* Sections */
.section { padding: 0 var(--pad); margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.section-title { font-size: 22px; font-weight: 700; letter-spacing: -0.025em; margin: 0; }
.section-link { font-size: 15px; font-weight: 600; color: var(--fg); }
.label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); margin: 0 0 8px; }
.hint { font-size: 13px; color: var(--mute); line-height: 1.4; }

/* Hero CTA */
.hero { margin: 20px var(--pad) 0; background: #000; color: #fff; border-radius: 28px; padding: 26px 22px 22px; position: relative; overflow: hidden; }
.hero h2 { font-size: 30px; line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; margin: 0; }
.hero p { color: rgba(255,255,255,.62); margin: 8px 0 0; font-size: 15px; max-width: 240px; }
.hero-scan { margin-top: 22px; width: 100%; height: 56px; border-radius: 18px; background: #fff; color: #000; font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center; gap: 10px; transition: transform .18s var(--ease); }
.hero-scan:active { transform: scale(.97); }
.hero-scan svg { width: 22px; height: 22px; }
.hero-art { position: absolute; right: -18px; top: -18px; width: 150px; height: 150px; opacity: .14; }
.hero-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.hero-row button { height: 48px; border-radius: 16px; background: rgba(255,255,255,.12); color: #fff; font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s, transform .18s var(--ease); }
.hero-row button:active { transform: scale(.97); background: rgba(255,255,255,.2); }
.hero-row svg { width: 19px; height: 19px; }

/* Stats */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--card); border-radius: var(--r-md); padding: 14px 16px; }
.stat-v { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-l { font-size: 13px; color: var(--mute); margin-top: 2px; }

/* Recent carousel */
.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); padding: 0 var(--pad) 4px; margin: 0 calc(var(--pad) * -1); scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.rc { flex: 0 0 148px; width: 148px; min-width: 0; scroll-snap-align: start; transition: transform .18s var(--ease); }
.rc:active { transform: scale(.97); }
.rc-img { width: 148px; height: 148px; border-radius: 20px; background: var(--card) center/cover no-repeat; border: 1px solid var(--line); }
.rc-name { font-size: 15px; font-weight: 600; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.rc-val { font-size: 15px; color: var(--mute); font-variant-numeric: tabular-nums; }

/* List rows */
.list { background: var(--card); border-radius: var(--r-md); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; min-height: 52px; position: relative; width: 100%; text-align: left; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
.row.inset + .row.inset::before { left: 64px; }
.row:active { background: var(--card2); }
.row-main { flex: 1; min-width: 0; }
.row-t { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-t.wrap { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.row-s.wrap { white-space: normal; }
.row-select { flex: 0 1 auto; max-width: 46%; height: 38px !important; font-size: 16px !important; background-color: #fff !important; font-weight: 600; }
.row-s { font-size: 13px; color: var(--mute); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-r { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-chev { width: 16px; height: 16px; color: var(--mute2); flex: 0 0 auto; }
.row-ico { width: 36px; height: 36px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; flex: 0 0 auto; }
.row-ico svg { width: 19px; height: 19px; }
.thumb { width: 52px; height: 52px; border-radius: 12px; background: #fff center/cover no-repeat; border: 1px solid var(--line); flex: 0 0 auto; }

/* Buttons */
.btn { height: 52px; border-radius: 16px; padding: 0 20px; font-weight: 650; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .18s var(--ease), opacity .2s; width: 100%; letter-spacing: -0.01em; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; }
.btn-primary { background: #000; color: #fff; }
.btn-secondary { background: var(--card); color: #000; }
.btn-ghost { background: transparent; color: #000; border: 1.5px solid var(--line2); }
.btn-sm { height: 36px; border-radius: 12px; font-size: 15px; padding: 0 14px; width: auto; }
.btn svg { width: 20px; height: 20px; }
.btn-danger { background: var(--card); color: #000; }
.stack { display: grid; gap: 10px; }

/* Empty */
.empty { text-align: center; padding: 36px 24px; background: var(--card); border-radius: var(--r-lg); }
.empty svg { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--mute2); }
.empty h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.empty p { margin: 6px auto 16px; color: var(--mute); font-size: 15px; max-width: 260px; }

/* Install banner */
.banner { margin: 14px var(--pad) 0; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line2); }
.banner img { width: 40px; height: 40px; border-radius: 10px; }
.banner .b-t { font-size: 15px; font-weight: 650; }
.banner .b-s { font-size: 13px; color: var(--mute); }
.banner .x { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: var(--card); display: grid; place-items: center; flex: 0 0 auto; }
.banner .x svg { width: 14px; height: 14px; }

/* Tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: calc(var(--tabh) + var(--sab));
  padding: 0 calc(8px + var(--sar)) var(--sab) calc(8px + var(--sal));
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: start;
  background: #fff;
  border-top: 0.5px solid rgba(0, 0, 0, 0.16);
  box-shadow: 0 -0.5px 0 rgba(0, 0, 0, 0.04);
  transition: transform .3s var(--ease);
}
.tabbar.hidden { transform: translateY(calc(100% + 48px)); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--tabh); color: var(--mute2); transition: color .2s; }
.tab .ti svg { width: 26px; height: 26px; }
.tab .tl { font-size: 10.5px; font-weight: 600; letter-spacing: .01em; }
.tab.active { color: #000; }
.tab:active .ti { transform: scale(.88); }
.tab .ti { transition: transform .15s var(--ease); }
.tab-scan { position: relative; }
.tab-scan .scan-btn { width: 54px; height: 54px; margin-top: -20px; border-radius: 19px; background: #000; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.22), 0 0 0 5px #fff; transition: transform .2s var(--ease); }
.tab-scan .scan-btn svg { width: 26px; height: 26px; }
.tab-scan:active .scan-btn { transform: scale(.92); }
.tab-scan .tl { color: var(--mute2); }
.tab-scan.active .tl { color: #000; }

/* Scan screen */
.scan-wrap { padding: 0 var(--pad); }
.viewfinder { position: relative; margin-top: 12px; aspect-ratio: 3 / 4; border-radius: 28px; background: #0b0b0b; overflow: hidden; display: grid; place-items: center; color: #fff; }
.viewfinder video, .viewfinder img.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vf-corners { position: absolute; inset: 18%; pointer-events: none; }
.vf-corners i { position: absolute; width: 34px; height: 34px; border: 3.5px solid #fff; }
.vf-corners i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.vf-corners i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.vf-corners i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }
.vf-corners i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.vf-idle { text-align: center; padding: 24px; position: relative; z-index: 2; }
.vf-idle svg { width: 46px; height: 46px; margin: 0 auto 12px; opacity: .9; }
.vf-idle h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.vf-idle p { margin: 6px auto 0; color: rgba(255,255,255,.6); font-size: 15px; max-width: 230px; }
.vf-hint { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; white-space: nowrap; z-index: 3; }
.shutter-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 20px; }
.shutter { width: 76px; height: 76px; border-radius: 50%; border: 4px solid #000; display: grid; place-items: center; transition: transform .15s var(--ease); }
.shutter span { width: 60px; height: 60px; border-radius: 50%; background: #000; transition: transform .15s; }
.shutter:active span { transform: scale(.88); }
.side-btn { justify-self: center; width: 52px; height: 52px; border-radius: 16px; background: var(--card); display: grid; place-items: center; }
.side-btn svg { width: 24px; height: 24px; }
.side-btn:active { transform: scale(.94); }
.scan-tips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 600; color: var(--fg2); white-space: nowrap; }
.chip svg { width: 14px; height: 14px; }

/* Scanning overlay */
.scanning .scanline { position: absolute; left: 0; right: 0; height: 2px; background: #fff; box-shadow: 0 0 18px 4px rgba(255,255,255,.55); top: 0; animation: sweep 1.8s cubic-bezier(.45,0,.55,1) infinite alternate; z-index: 3; }
@keyframes sweep { from { top: 12%; } to { top: 88%; } }
.scanning .shade { position: absolute; inset: 0; background: rgba(0,0,0,.18); z-index: 2; }
.scanning .scanline { background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.9), 0 0 22px 6px rgba(0,0,0,.25); }
.scanning .vf-corners i { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.scan-status { text-align: center; margin-top: 22px; }
.scan-status .s1 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; min-height: 26px; }
.scan-status .s2 { color: var(--mute); font-size: 15px; margin-top: 4px; }
.dots { display: inline-flex; gap: 5px; margin-top: 14px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #000; animation: dot 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .2; transform: scale(.8); } 40% { opacity: 1; transform: none; } }
.steps { margin: 22px auto 0; max-width: 300px; display: grid; gap: 10px; }
.step { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--mute2); transition: color .3s; }
.step .sd { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; flex: 0 0 auto; transition: all .3s; }
.step .sd svg { width: 12px; height: 12px; opacity: 0; color: #fff; }
.step.on { color: #000; font-weight: 600; }
.step.on .sd { border-color: #000; }
.step.done { color: var(--fg2); }
.step.done .sd { background: #000; border-color: #000; }
.step.done .sd svg { opacity: 1; }

/* Results */
.res-photo { margin: 10px var(--pad) 0; height: 230px; border-radius: 26px; background: var(--card) center/cover no-repeat; border: 1px solid var(--line); position: relative; overflow: hidden; }
.res-photo .cat { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 650; }
.res-head { padding: 18px var(--pad) 0; }
.res-brand { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.res-name { font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; margin: 4px 0 0; overflow-wrap: anywhere; }
.res-model { color: var(--mute); font-size: 15px; margin-top: 4px; }
.value-card { margin: 18px var(--pad) 0; border-radius: 28px; background: #000; color: #fff; padding: 22px 22px 20px; }
.vc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.pill svg { width: 13px; height: 13px; }
.pill-inv { background: rgba(255,255,255,.14); color: #fff; }
.pill-light { background: var(--card); color: #000; }
.pill-line { border: 1px solid var(--line2); color: #000; }
.vc-label { font-size: 15px; color: rgba(255,255,255,.6); }
.vc-value { font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -0.05em; margin-top: 14px; font-variant-numeric: tabular-nums; }
.vc-value sup { font-size: 30px; vertical-align: top; position: relative; top: 8px; margin-right: 2px; letter-spacing: 0; font-weight: 700; }
.vc-sub { color: rgba(255,255,255,.6); font-size: 15px; margin-top: 8px; }
.range { margin-top: 22px; }
.range-bar { position: relative; height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); }
.range-fill { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: rgba(255,255,255,.55); }
.range-dot { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 0 0 4px #000; transition: left .6s var(--ease); }
.range-labels { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
.range-labels div { font-size: 12px; color: rgba(255,255,255,.55); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.range-labels div:nth-child(2) { text-align: center; }
.range-labels div:nth-child(3) { text-align: right; }
.range-labels b { display: block; color: #fff; font-size: 18px; letter-spacing: -0.02em; text-transform: none; margin-top: 2px; font-variant-numeric: tabular-nums; }
.conf { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); }
.conf-top { display: flex; justify-content: space-between; font-size: 14px; color: rgba(255,255,255,.7); }
.conf-top b { color: #fff; }
.conf-bars { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 10px; }
.conf-bars i { height: 6px; border-radius: 3px; background: rgba(255,255,255,.16); transition: background .4s; }
.conf-bars i.on { background: #fff; }
.refined { margin: 12px var(--pad) 0; padding: 14px 16px; border-radius: var(--r-md); border: 1.5px solid #000; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.refined .r-t { font-size: 15px; font-weight: 700; }
.refined .r-s { font-size: 13px; color: var(--mute); }
.refined .r-v { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.details { display: flex; flex-wrap: wrap; gap: 8px; }
.prose { font-size: 15px; color: var(--fg2); line-height: 1.5; margin: 0; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--card); margin-bottom: 12px; }
.notice svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; }
.notice p { margin: 0; font-size: 14px; color: var(--fg2); line-height: 1.45; }
.notice b { color: #000; }
.badge { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: #000; color: #fff; padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.mk { width: 36px; height: 36px; border-radius: 10px; background: #000; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; letter-spacing: -0.02em; flex: 0 0 auto; }
.mk.l { background: #fff; color: #000; border: 1px solid var(--line2); }

/* Forms */
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--mute); }
.input { height: 52px; border-radius: 14px; background: var(--card); border: 1.5px solid transparent; padding: 0 16px; font-size: 17px; width: 100%; outline: none; transition: border-color .2s, background .2s; -webkit-appearance: none; appearance: none; }
.input:focus { border-color: #000; background: #fff; }
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--mute); pointer-events: none; }
.money .input { padding-left: 30px; font-weight: 650; font-variant-numeric: tabular-nums; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 40px; }
textarea.input { height: auto; min-height: 120px; padding: 14px 16px; line-height: 1.45; resize: vertical; font-size: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--card); overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1 0 auto; height: 36px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--fg2); white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.seg button.on { background: #fff; color: #000; box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
.chips::-webkit-scrollbar { display: none; }
.chip-btn { flex: 0 0 auto; height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line2); font-size: 14px; font-weight: 600; white-space: nowrap; transition: all .2s; }
.chip-btn.on { background: #000; color: #fff; border-color: #000; }

/* Profit */
.profit-card { border-radius: 24px; border: 1.5px solid #000; padding: 18px; }
.pc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pc-label { font-size: 13px; font-weight: 700; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.pc-net { font-size: 44px; font-weight: 800; letter-spacing: -0.045em; line-height: 1.05; margin-top: 4px; font-variant-numeric: tabular-nums; }
.pc-net.neg { color: var(--mute); }
.pc-margin { text-align: right; }
.pc-margin b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.breakdown { margin-top: 14px; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.bd { display: flex; justify-content: space-between; font-size: 15px; color: var(--fg2); }
.bd b { color: #000; font-weight: 650; font-variant-numeric: tabular-nums; }
.bd.total { color: #000; font-weight: 700; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; }
.cmp-row .row-r.best::after { content: " ★"; font-size: 12px; }
.bar-mini { height: 4px; border-radius: 2px; background: var(--card2); margin-top: 6px; overflow: hidden; }
.bar-mini i { display: block; height: 100%; background: #000; border-radius: 2px; transition: width .5s var(--ease); }

/* Listing */
.listing { border-radius: 20px; background: var(--card); padding: 4px 0; margin-top: 12px; }
.lf { padding: 12px 16px; position: relative; }
.lf + .lf { border-top: 1px solid var(--line); }
.lf-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.lf-h span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.copy { height: 30px; padding: 0 11px; border-radius: 9px; background: #fff; border: 1px solid var(--line2); font-size: 13px; font-weight: 650; display: inline-flex; align-items: center; gap: 5px; }
.copy svg { width: 14px; height: 14px; }
.copy.ok { background: #000; color: #fff; border-color: #000; }
.lf-v { font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.lf-v.t { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 14px; font-weight: 600; background: #fff; border: 1px solid var(--line); padding: 4px 9px; border-radius: 8px; }

/* Skeleton */
.sk { background: linear-gradient(90deg, var(--card) 0%, var(--card2) 50%, var(--card) 100%); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }

/* History */
.search { position: relative; margin: 12px var(--pad) 0; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--mute); }
.search input { height: 40px; border-radius: 12px; background: var(--card); border: 0; padding: 0 12px 0 38px; width: 100%; font-size: 16px; outline: none; }
.del-btn { width: 34px; height: 34px; border-radius: 50%; background: #000; color: #fff; display: grid; place-items: center; flex: 0 0 auto; animation: screenIn .25s var(--ease); }
.del-btn svg { width: 16px; height: 16px; }
.group-h { font-size: 13px; font-weight: 700; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; margin: 22px 0 8px; }

/* Profile */
.profile-head { display: flex; align-items: center; gap: 14px; padding: 8px var(--pad) 0; }
.profile-head img { width: 64px; height: 64px; border-radius: 16px; }
.ph-t { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.ph-s { color: var(--mute); font-size: 15px; }
.steps-install { counter-reset: s; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.steps-install li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--fg2); line-height: 1.4; }
.steps-install li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: #000; color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; flex: 0 0 auto; }
.steps-install svg { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; }
.foot { text-align: center; color: var(--mute); font-size: 13px; margin: 28px 0 0; }

/* Sheet + toast */
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.32); z-index: 80; animation: fade .25s both; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 81; max-width: 560px; margin: 0 auto; background: #fff; border-radius: 26px 26px 0 0; padding: 10px calc(var(--pad) + var(--sar)) calc(var(--sab) + 18px) calc(var(--pad) + var(--sal)); animation: sheetIn .38s var(--ease) both; max-height: 88vh; max-height: calc(100dvh - var(--sat) - 24px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.backdrop { touch-action: none; }
@keyframes sheetIn { from { transform: translateY(100%); } }
.grabber { width: 38px; height: 5px; border-radius: 3px; background: var(--card2); margin: 0 auto 14px; }
.sheet h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 6px; }
.sheet p { color: var(--mute); font-size: 15px; margin: 0 0 16px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabh) + var(--sab) + 18px); transform: translate(-50%, 20px); background: #000; color: #fff; font-size: 15px; font-weight: 600; padding: 12px 18px; border-radius: 14px; opacity: 0; pointer-events: none; transition: all .3s var(--ease); z-index: 90; max-width: calc(100% - 40px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.error-card { background: var(--card); border-radius: 24px; padding: 24px; text-align: center; margin-top: 16px; }
.error-card svg { width: 40px; height: 40px; margin: 0 auto 10px; }
.error-card h3 { margin: 0; font-size: 19px; font-weight: 750; }
.error-card p { color: var(--mute); font-size: 15px; margin: 6px 0 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (min-width: 600px) {
  .tabbar { max-width: 560px; margin: 0 auto; left: 0; right: 0; border-radius: 0; }
}

/* ---- v1.1: All-marketplaces view ---- */
.all-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.all-sub { font-size: 14px; color: var(--fg2); margin-top: 4px; line-height: 1.35; }
.all-sub b { color: #000; }
.all-foot { font-size: 13px; color: var(--mute); margin-top: 12px; line-height: 1.4; }
.mk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.mk-cell { text-align: left; background: var(--card); border-radius: 16px; padding: 12px 12px 10px; border: 1.5px solid transparent; transition: transform .15s var(--ease); min-width: 0; }
.mk-cell:active { transform: scale(.97); }
.mk-cell.best { background: #000; color: #fff; }
.mc-h { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 20px; }
.mc-n { font-size: 13px; font-weight: 700; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-badge { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #fff; color: #000; padding: 2px 6px; border-radius: 5px; }
.mc-net { font-size: 24px; font-weight: 800; letter-spacing: -0.035em; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mc-net.neg { color: var(--mute); }
.mk-cell.best .mc-net.neg { color: #bbb; }
.mc-rows { margin-top: 8px; display: grid; gap: 3px; border-top: 1px solid var(--line); padding-top: 8px; }
.mk-cell.best .mc-rows { border-color: rgba(255,255,255,.18); }
.mc-rows div { display: flex; justify-content: space-between; gap: 6px; font-size: 12.5px; color: var(--mute); }
.mc-rows b { color: #000; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-cell.best .mc-rows div { color: rgba(255,255,255,.62); }
.mk-cell.best .mc-rows b { color: #fff; }
.seg-tabs { margin-top: 12px; }
.seg-tabs button:disabled { opacity: .45; }
.lt-body .listing { margin-top: 10px; }

/* ---- v1.1: Accounts ---- */
.acct-card { background: var(--card); border-radius: var(--r-lg); padding: 20px; text-align: center; }
.acct-ico { width: 48px; height: 48px; border-radius: 14px; background: #000; color: #fff; display: grid; place-items: center; margin: 0 auto 12px; }
.acct-ico svg { width: 26px; height: 26px; }
.acct-t { font-size: 19px; font-weight: 750; letter-spacing: -0.02em; }
.acct-s { font-size: 14px; color: var(--mute); margin: 6px auto 0; max-width: 300px; line-height: 1.4; }
.acct-card .btn { height: 46px; font-size: 15.5px; white-space: nowrap; padding: 0 12px; }
.acct-card .btn-secondary { background: #fff; box-shadow: inset 0 0 0 1px var(--line2); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: #000; color: #fff; display: grid; place-items: center; font-size: 19px; font-weight: 750; flex: 0 0 auto; }
.acct-in .row-t { font-size: 16px; }
.sdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #000; margin-right: 6px; vertical-align: 1px; }
.sdot.syncing { animation: dot 1.2s infinite; }
.sdot.offline, .sdot.error, .sdot.idle { background: var(--mute2); }
.auth-mark { display: flex; justify-content: center; margin: 4px 0 12px; }
.auth-mark .brand-mark { width: 52px; height: 52px; }
.auth-seg { margin-top: 4px; }
.pw { position: relative; }
.pw .input { padding-right: 52px; }
.pw-eye { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--mute); }
.pw-eye svg { width: 20px; height: 20px; }
.pw-eye.on { color: #000; }
.rules { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.rules div { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--mute); font-weight: 600; transition: color .2s; }
.rules svg { width: 14px; height: 14px; opacity: .35; transition: opacity .2s; }
.rules div.ok { color: #000; }
.rules div.ok svg { opacity: 1; }
.form-err { font-size: 14px; font-weight: 600; color: #000; min-height: 0; margin-top: 10px; padding-left: 2px; }
.form-err:empty { display: none; }
.form-err:not(:empty)::before { content: "!"; display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #000; color: #fff; font-size: 12px; font-weight: 800; margin-right: 7px; vertical-align: -2px; }
.input.bad { border-color: #000; background: #fff; }
.auth-fine { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px !important; color: var(--mute); margin: 16px 0 4px !important; line-height: 1.4; }
.auth-fine svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-secondary .spin { border-color: rgba(0,0,0,.15); border-top-color: #000; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- v1.2: account required — onboarding + welcome ---------- */
body.gated .tabbar { display: none; }
body.gated #view { padding: 0; min-height: 100dvh; }
.ob, .welcome { position: relative; min-height: 100vh; min-height: 100dvh; padding-left: var(--sal); padding-right: var(--sar); display: flex; flex-direction: column; overflow: hidden; }
.ob { animation: screenIn .45s var(--ease) both; }
.ob-top { display: flex; align-items: center; justify-content: space-between; padding: calc(var(--sat) + 14px) var(--pad) 0; height: calc(var(--sat) + 58px); }
.ob-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; letter-spacing: -0.04em; }
.ob-brand .brand-mark { width: 28px; height: 28px; }
.ob-skip { font-size: 16px; font-weight: 600; color: var(--mute); padding: 8px 4px; }
.ob-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.ob-track::-webkit-scrollbar { display: none; }
.ob-slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; flex-direction: column; padding: 8px 28px 0; }
.ob-art { flex: 1; min-height: 300px; max-height: 420px; display: grid; place-items: center; }
.ob-slide h1 { margin: 18px 0 0; font-size: 34px; line-height: 1.04; font-weight: 800; letter-spacing: -0.04em; }
.ob-slide p { margin: 10px 0 0; font-size: 17px; color: var(--mute); line-height: 1.4; max-width: 330px; }
.ob-slide h1, .ob-slide p, .ob-art { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.ob-slide.on h1, .ob-slide.on p, .ob-slide.on .ob-art { opacity: 1; transform: none; }
.ob-slide.on h1 { transition-delay: .08s; } .ob-slide.on p { transition-delay: .14s; }
.ob-foot { padding: 22px var(--pad) calc(var(--sab) + 18px); }
.ob-dots { display: flex; gap: 7px; margin: 0 8px 20px; }
.ob-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--card2); transition: width .35s var(--ease), background .35s; }
.ob-dots i.on { width: 22px; background: #000; }
#ob-cta { display: grid; gap: 10px; }
.ob-spacer { height: 52px; }
/* Illustrations (pure HTML/CSS, original) */
.oa { width: 100%; max-width: 300px; position: relative; }
.oa-scan .oa-vf { position: relative; aspect-ratio: 1; border-radius: 34px; background: #000; display: grid; place-items: center; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.oa-vf > i { position: absolute; width: 34px; height: 34px; border: 3px solid #fff; }
.oa-vf > i:nth-child(1) { top: 26px; left: 26px; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.oa-vf > i:nth-child(2) { top: 26px; right: 26px; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.oa-vf > i:nth-child(3) { bottom: 26px; left: 26px; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.oa-vf > i:nth-child(4) { bottom: 26px; right: 26px; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.oa-tag { width: 96px; height: 96px; color: #fff; animation: floaty 3.2s ease-in-out infinite; }
.oa-tag svg { width: 100%; height: 100%; stroke-width: 1.4; }
.oa-line { position: absolute; left: 34px; right: 34px; height: 2px; background: #fff; box-shadow: 0 0 18px 3px rgba(255,255,255,.55); top: 30%; animation: obscan 2.6s var(--ease) infinite alternate; }
@keyframes obscan { from { top: 22%; } to { top: 76%; } }
@keyframes floaty { 50% { transform: translateY(-6px) rotate(-3deg); } }
.oa-chips { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.oa-chips span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; padding: 8px 13px; border-radius: 999px; background: var(--card); }
.oa-chips svg { width: 16px; height: 16px; }
.oa-card { background: #000; color: #fff; border-radius: 28px; padding: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.oa-row { display: flex; justify-content: space-between; align-items: center; }
.oa-k { font-size: 13px; color: rgba(255,255,255,.6); font-weight: 600; }
.oa-pill { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 700; background: #fff; color: #000; padding: 5px 9px; border-radius: 999px; }
.oa-pill svg { width: 13px; height: 13px; }
.oa-big { font-size: 64px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin-top: 14px; }
.oa-big sup { font-size: 28px; vertical-align: 26px; margin-right: 2px; }
.oa-range { position: relative; height: 6px; border-radius: 3px; background: rgba(255,255,255,.16); margin-top: 22px; }
.oa-range b { position: absolute; inset: 0; border-radius: 3px; background: rgba(255,255,255,.55); transform-origin: left; transform: scaleX(0); }
.oa-range em { position: absolute; top: 50%; left: 42%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #000; opacity: 0; }
.ob-slide.on .oa-range b { animation: grow 1s .3s var(--ease) forwards; }
.ob-slide.on .oa-range em { animation: pop .4s 1s var(--ease) forwards; }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.oa-lbl { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.6); margin-top: 10px; font-weight: 600; }
.oa-conf { display: flex; gap: 4px; margin-top: 18px; }
.oa-conf i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.16); }
.oa-conf i.on { background: #fff; }
.oa-pro { display: grid; gap: 10px; }
.oa-bar { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--card); font-size: 14px; font-weight: 650; }
.oa-bar div { height: 8px; border-radius: 4px; background: var(--card2); overflow: hidden; }
.oa-bar div i { display: block; height: 100%; width: var(--w); background: #000; border-radius: 4px; transform-origin: left; transform: scaleX(0); }
.ob-slide.on .oa-bar div i { animation: grow .9s var(--d) var(--ease) forwards; }
.oa-bar.best { background: #000; color: #fff; }
.oa-bar.best div { background: rgba(255,255,255,.18); }
.oa-bar.best div i { background: #fff; }
.oa-bar em { font-style: normal; font-size: 11px; font-weight: 800; background: #fff; color: #000; padding: 3px 7px; border-radius: 999px; }
.oa-tabs { display: flex; gap: 6px; padding: 4px; background: var(--card); border-radius: 14px; }
.oa-tabs span { flex: 1; text-align: center; font-size: 13px; font-weight: 650; padding: 8px 0; border-radius: 10px; color: var(--mute); }
.oa-tabs span.on { background: #000; color: #fff; }
.oa-sheet { margin-top: 12px; border-radius: 22px; padding: 18px; border: 1px solid var(--line2); background: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.08); }
.oa-h { font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin: 4px 0 8px; }
.oa-h + .oa-ln { margin-bottom: 14px; }
.oa-ln { height: 10px; border-radius: 5px; background: #000; margin-top: 8px; transform-origin: left; transform: scaleX(0); }
.oa-ln.w1 { width: 86%; height: 13px; } .oa-ln.w2 { width: 100%; background: var(--card2); } .oa-ln.w3 { width: 92%; background: var(--card2); } .oa-ln.w4 { width: 58%; background: var(--card2); }
.ob-slide.on .oa-ln { animation: grow .7s var(--ease) forwards; }
.ob-slide.on .oa-ln.w2 { animation-delay: .35s; } .ob-slide.on .oa-ln.w3 { animation-delay: .5s; } .ob-slide.on .oa-ln.w4 { animation-delay: .65s; }
.oa-tags { display: flex; gap: 6px; margin-top: 16px; }
.oa-tags span { font-size: 12.5px; font-weight: 650; padding: 5px 9px; border-radius: 999px; background: var(--card); }
/* Welcome */
.welcome { animation: screenIn .45s var(--ease) both; padding: calc(var(--sat) + 20px) calc(var(--pad) + var(--sar)) calc(var(--sab) + 18px) calc(var(--pad) + var(--sal)); }
.welcome .banner { margin: 0 0 4px; position: relative; z-index: 1; background: #fff; }
.wl-glow { position: absolute; top: -120px; right: -140px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(0,0,0,.06), rgba(0,0,0,0) 68%); pointer-events: none; }
.wl-main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 20px 8px; }
.wl-logo .brand-mark { width: 84px; height: 84px; filter: drop-shadow(0 14px 30px rgba(0,0,0,.22)); animation: pop .6s .05s var(--ease) both; }
.wl-word { font-size: 22px; font-weight: 800; letter-spacing: -0.045em; margin-top: 18px; }
.wl-t { font-size: 46px; line-height: .98; font-weight: 800; letter-spacing: -0.05em; margin: 8px 0 0; animation: screenIn .6s .1s var(--ease) both; }
.wl-s { font-size: 17px; color: var(--mute); margin: 14px 0 0; max-width: 320px; line-height: 1.4; animation: screenIn .6s .16s var(--ease) both; }
.wl-feats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; animation: screenIn .6s .22s var(--ease) both; }
.wl-feats span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; padding: 8px 12px; border-radius: 999px; background: var(--card); }
.wl-feats svg { width: 16px; height: 16px; }
.wl-foot { display: grid; gap: 10px; animation: screenIn .6s .28s var(--ease) both; }
.wl-note { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line2); font-size: 14.5px; font-weight: 600; margin-bottom: 4px; }
.wl-note svg { width: 18px; height: 18px; flex: 0 0 auto; }
.wl-fine { text-align: center; font-size: 13px; color: var(--mute); margin: 6px 0 0; }
@media (max-height: 700px) { .ob-art { min-height: 220px; } .ob-slide h1 { font-size: 30px; } .wl-t { font-size: 40px; } }
@media (prefers-reduced-motion: reduce) { .ob *, .welcome * { animation: none !important; transition: none !important; } .ob-slide h1, .ob-slide p, .ob-art { opacity: 1; transform: none; } .oa-range b, .oa-bar div i, .oa-ln { transform: none; } .oa-range em { opacity: 1; } }

/* ---------- v1.3: installed web app polish ---------- */
.banner .b-s b { color: #000; font-weight: 650; }
.b-ico { display: inline-block; vertical-align: -3px; }
.b-ico svg { width: 15px; height: 15px; }
.banner .b-go { margin-left: auto; flex: 0 0 auto; height: 34px; padding: 0 14px; font-size: 14px; }
.banner .b-go + .x { margin-left: 0; }
.offline-note { display: none; gap: 10px; align-items: center; margin-top: 12px; padding: 11px 14px; border-radius: 14px; background: var(--card); font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--fg2); }
.offline-note svg { width: 18px; height: 18px; flex: 0 0 auto; }
body.is-offline .offline-note { display: flex; }
.updbar { position: fixed; z-index: 95; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabh) + var(--sab) + 14px); width: min(calc(100% - 24px), 406px); display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 16px; background: #000; color: #fff; font-size: 14.5px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: fade .3s both; }
.updbar span { flex: 1; }
.updbar #upd-go { background: #fff; color: #000; height: 34px; padding: 0 14px; border-radius: 10px; font-weight: 700; font-size: 14px; }
.updbar .x { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.7); }
.updbar .x svg { width: 14px; height: 14px; }
body.gated .updbar { bottom: calc(var(--sab) + 14px); }

/* Desktop / large screens: the app lives in a centered phone-width column. */
@media (min-width: 700px) {
  :root { --col: 430px; }
  html { background: #ececef; }
  body { background: #ececef; }
  #app { position: relative; width: var(--col); margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 20px 60px rgba(0,0,0,.08); }
  #view { max-width: var(--col); }
  .tabbar, .sheet { max-width: var(--col); margin: 0 auto; }
  .tabbar { border-left: 0; border-right: 0; }
  .toast { bottom: calc(var(--tabh) + 26px); }
  .ob, .welcome { min-height: 100vh; min-height: 100dvh; }
  .ob-art { max-height: 380px; }
  /* Mouse users: show hover affordances on chrome. */
  .row:hover, .rc:hover .rc-img, .mk-cell:hover { filter: brightness(.98); }
  .btn:hover { opacity: .92; }
  .ob-track { scroll-behavior: smooth; }
}
@media (min-width: 700px) and (min-height: 900px) {
  /* Tall desktop windows: keep onboarding/welcome content from floating too far apart. */
  .ob, .welcome { min-height: 860px; }
  body.gated #app { margin-top: max(0px, calc((100dvh - 900px) / 2)); min-height: 860px; border-radius: 28px; overflow: hidden; }
}
@media (display-mode: standalone) {
  /* Installed app: never show the browser-only install hints. */
  #inst { display: none !important; }
}
