/* 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);
  --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); }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: 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) 0 calc(var(--tabh) + var(--sab) + 28px);
  min-height: 100vh;
}
.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: 15px !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 8px var(--sab);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: start;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-top: 0.5px solid var(--line2);
  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: 15px; }
.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 var(--pad) calc(var(--sab) + 18px); animation: sheetIn .38s var(--ease) both; max-height: 88vh; overflow-y: auto; }
@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; }
}
