/* Provider Spotlight: a monthly report built like a set of phone stories */
:root {
  --mag: #FF00FF; --mag-ink: #C400C4;
  --ink: #0A0A0A; --g900: #1A1A1A; --g700: #4D4D4D; --g600: #6B6B6B; --g500: #737373; --g300: #D6D6D6; --g200: #E6E6E6; --g100: #F4F4F5; --g50: #F8F8F8;
  --blue: #006EEF; --blue-2: #1A7CF2; --blue-ink: #0057C2;
  --up: #12A150; --orange: #E86100;
  --grad: linear-gradient(100deg, #4C7DFF 0%, #8857F7 48%, #D73CF4 100%);
  --grad-soft: linear-gradient(125deg, #6CAFFF 18%, #FF45FF 132%);
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.3, 1.4, .5, 1);
  --dock-h: 75px; --dock-gap: 18px;
  --safe-b: max(env(safe-area-inset-bottom, 0px), var(--frame-b, 0px));
  --safe-t: max(env(safe-area-inset-top, 0px), var(--frame-t, 0px));
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #EDEDF0; }
body { font: 15px/1.45 Inter, system-ui, -apple-system, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
input { font: inherit; }
.i { width: 20px; height: 20px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

#app { position: relative; width: 100%; max-width: 430px; height: 100dvh; margin: 0 auto; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 20px 60px -20px rgba(0,0,0,.18); }
@media (max-width: 430px) { #app { box-shadow: none; } }

/* ---------- Screens ---------- */
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; transition: transform .5s var(--ease), opacity .4s var(--ease); }
.screen.hide { pointer-events: none; }

/* ---------- Cover ---------- */
.cover { background: #fff; }
.cover .top { flex: 0 0 auto; display: grid; place-items: center; height: calc(74px + var(--safe-t)); padding-top: var(--safe-t); border-bottom: 1px solid var(--g200); }
.cover .top img { height: 15px; }
.cover .hero { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 24px 30px; gap: 4px; }
.trophy { width: 104px; height: 104px; margin-bottom: 18px; }
.trophy .cup { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s .2s var(--ease) forwards; }
.trophy .st { transform-origin: 50px 38px; transform: scale(0) rotate(-40deg); animation: pop .6s 1s var(--spring) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1) rotate(0); } }
.cover h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.3px; }
.cover .month { color: var(--g500); font-size: 15px; font-weight: 500; }
.cover .panel { position: relative; flex: 1; background: var(--mag); color: #fff; padding: 28px 30px calc(30px + var(--safe-b)); display: flex; flex-direction: column; overflow: hidden; }
.cover .panel::before { content: ''; position: absolute; inset: -40% -30% auto auto; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.22), transparent 65%); pointer-events: none; }
.cover .avatar { width: 84px; height: 84px; border-radius: 50%; border: 3px solid #fff; background: center / cover; margin-bottom: 22px; box-shadow: 0 10px 30px -10px rgba(80,0,80,.6); }
.cover .eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.cover h2 { margin: 12px 0 0; font-size: 33px; line-height: 1.12; font-weight: 400; letter-spacing: -.6px; }
.cover .open { margin-top: auto; height: 72px; border-radius: 100px; background: #000; color: #fff; font-size: 18px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; transition: transform .2s var(--ease); }
.cover .open:active { transform: scale(.98); }
.cover .open .i { transition: transform .3s var(--ease); }
.cover .open:hover .i { transform: translateX(3px); }
.cover .rise > * { opacity: 0; transform: translateY(14px); animation: rise .7s var(--ease) forwards; }
.cover .rise > *:nth-child(2) { animation-delay: .08s; } .cover .rise > *:nth-child(3) { animation-delay: .16s; } .cover .rise > *:nth-child(4) { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.cover.leaving .panel { transform: translateY(100%); transition: transform .55s var(--ease); }
.cover.leaving .hero, .cover.leaving .top { opacity: 0; transform: scale(.96); transition: all .45s var(--ease); }

/* ---------- Report: stories in a horizontal track ---------- */
.report { background: #fff; }
.track { flex: 1; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.track::-webkit-scrollbar { display: none; }
.story { position: relative; flex: 0 0 100%; height: 100%; overflow-y: auto; overflow-x: hidden; scroll-snap-align: start; scroll-snap-stop: always; scrollbar-width: none; overscroll-behavior-y: contain; padding-bottom: calc(var(--dock-h) + var(--dock-gap) + 28px + var(--safe-b)); }
.story::-webkit-scrollbar { display: none; }
.story.dark { background: #000; color: #fff; }

/* Story header: logo, progress, stars earned */
.rhead { position: sticky; top: 0; z-index: 5; padding-top: var(--safe-t); background: #fff; transition: background .35s var(--ease), color .35s; }
.rhead .bar { height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 26px; }
.rhead .logo { height: 15px; display: block; }
.rhead .logo.w { display: none; }
.rhead .right { display: flex; align-items: center; gap: 14px; }
.prog { display: flex; align-items: center; gap: 8px; }
.prog i { display: block; width: 6px; height: 6px; border-radius: 3px; background: var(--g300); transition: width .45s var(--ease), background .3s; }
.prog i.on { width: 32px; background: currentColor; }
.prog i.done { background: var(--g500); }
.chip { position: relative; height: 30px; min-width: 68px; padding: 0 10px; border-radius: 6px; background: #000; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 15px; }
.chip .t { background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chip .i { width: 15px; height: 15px; color: #B96CFF; fill: #B96CFF; }
.chip.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.14); } }
.chip .burst { position: absolute; inset: 0; pointer-events: none; }
.chip .burst i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: #C77DFF; animation: spark .7s var(--ease) forwards; }
@keyframes spark { from { transform: translate(-50%, -50%) scale(1); opacity: 1; } to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(.2); opacity: 0; } }
.chip.added { background: #000; gap: 6px; }
.chip .ok { color: var(--up); width: 16px; height: 16px; }
.hello { margin: 0; padding: 4px 24px 26px; text-align: center; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--g200); transition: color .35s; }
.dark .rhead { background: #000; }
.dark .rhead .logo.b { display: none; } .dark .rhead .logo.w { display: block; }
.dark .prog i { background: #555; } .dark .prog i.on { background: #fff; }
.dark .chip { background: #fff; } .dark .chip .t { background: none; color: #A855F7; }
.dark .hello { border-color: transparent; }

/* Collapsing header on the rating story: becomes the gradient bar once you scroll to feedback */
.rhead .mini { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.rhead .mini > div { overflow: hidden; }
.rhead .mini .row { display: flex; align-items: flex-end; justify-content: space-between; padding: 14px 26px 18px; border-top: 1px solid rgba(255,255,255,.35); }
.rhead .mini small { display: block; font-size: 14px; opacity: .9; }
.rhead .mini b { font-size: 46px; line-height: 1; font-weight: 700; letter-spacing: -1.5px; }
.rhead .mini .pts { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: .02em; padding-bottom: 6px; }
.collapsed .rhead { background: var(--grad); color: #fff; }
.collapsed .rhead .logo.b { display: none; } .collapsed .rhead .logo.w { display: block; }
.collapsed .rhead .prog i { background: rgba(255,255,255,.55); } .collapsed .rhead .prog i.on { background: #fff; }
.collapsed .rhead .chip { background: #fff; } .collapsed .rhead .chip .t { background: none; color: #7B4DFF; }
.collapsed .rhead .mini { grid-template-rows: 1fr; }
.collapsed .rhead .hello { color: #fff; border-color: rgba(255,255,255,.35); }

/* Rating */
.rating { padding: 30px 24px 28px; text-align: center; border-bottom: 1px solid var(--g200); }
.rating .lbl { font-size: 15px; }
.big { display: block; margin: 4px 0 6px; font-size: 128px; line-height: 1.02; font-weight: 700; letter-spacing: -6px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.pts { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; letter-spacing: .03em; }
.upc { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--up); color: #fff; flex: none; }
.upc .i { width: 18px; height: 18px; stroke-width: 2.5; }
.upc.k { background: #000; } .dark .upc.k, .upc.w { background: #fff; color: #000; }
.collapsed .rhead .upc { background: #fff; color: #7B4DFF; }
.trade { margin-top: 26px; width: 100%; height: 58px; border-radius: 100px; background: #000; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; font-size: 16px; font-weight: 500; transition: transform .2s var(--ease), background .3s; }
.trade:active { transform: scale(.985); }
.trade .g { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trade .g .i { color: #B96CFF; fill: #B96CFF; width: 17px; height: 17px; }
.trade.done { background: var(--g100); color: var(--ink); justify-content: center; gap: 8px; cursor: default; }
.trade.done .i { color: var(--up); }
.volume { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 26px 24px 8px; }
.volume .lbl { color: var(--g500); font-size: 17px; margin-bottom: 10px; }
.volume p { margin: 4px 0; font-size: 15px; }
.volume p b { font-weight: 600; }
.volume svg { width: min(190px, 48%); height: 96px; flex: none; overflow: visible; }
.volume .ln { stroke-dasharray: 1; stroke-dashoffset: 1; }
.seen .volume .ln { animation: draw 1.4s .2s var(--ease) forwards; }
.hint { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 26px auto 10px; color: var(--g500); font-size: 13px; text-align: center; line-height: 1.3; }
.hint .i { animation: nudge 1.6s ease-in-out infinite; width: 22px; height: 22px; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* Feedback */
.feedback { scroll-margin-top: 230px; }
.sentiment { padding: 28px 24px 26px; border-bottom: 1px solid var(--g200); }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.sec-h h2 { margin: 0; font-size: 17px; font-weight: 400; color: var(--g500); }
.ai { font-size: 13px; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-flex; align-items: center; gap: 4px; }
.ai .i { width: 14px; height: 14px; color: #8857F7; }
.sentiment p { margin: 0; font-size: 15px; line-height: 1.62; }
mark { background: linear-gradient(90deg, rgba(196,120,255,.22), rgba(196,120,255,.22)) no-repeat 0 0 / 0% 100%; color: inherit; border-radius: 4px; padding: 1px 2px; margin: 0 -2px; transition: background-size 1s var(--ease); }
.lit mark { background-size: 100% 100%; }
.lit mark:nth-of-type(2) { transition-delay: .35s; } .lit mark:nth-of-type(3) { transition-delay: .7s; }
.rowlink { width: 100%; display: flex; align-items: center; gap: 14px; padding: 24px 24px; border-bottom: 1px solid var(--g200); text-align: left; font-size: 16px; transition: background .2s; }
.rowlink:hover { background: var(--g50); }
.rowlink .arr { margin-left: auto; color: var(--g300); width: 22px; height: 22px; transition: transform .25s var(--ease), color .2s; }
.rowlink:hover .arr { transform: translate(2px, -2px); color: var(--g600); }
.stars { display: inline-flex; gap: 2px; color: #FFC107; }
.stars .i { width: 19px; height: 19px; fill: currentColor; }
.stars .half { fill: url(#half); }
.sq { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: var(--up); color: #fff; flex: none; }
.sq.k { background: #000; }
.sq .i { width: 16px; height: 16px; stroke-width: 2.5; }

/* Rank (dark) */
.rank-wrap { padding: 4px 24px 0; }
.rcard { position: relative; margin-top: 46px; border-radius: 22px; padding: 56px 20px 34px; border: 1.5px solid transparent; background: linear-gradient(#000, #000) padding-box, conic-gradient(from 200deg, #FFB800, #FF4D00, #FF00FF, #6B5BFF, #4ECDC4, #9BEA6A, #FFB800) border-box; text-align: center; }
.rcard .av { position: absolute; left: 50%; top: -30px; width: 58px; height: 58px; margin-left: -29px; border-radius: 50%; border: 3px solid #000; background: center / cover; box-shadow: 0 0 0 1.5px #fff; }
.rcard .lbl { font-size: 15px; }
.rcard .place { display: block; font-size: 56px; line-height: 1.05; font-weight: 600; letter-spacing: -1.5px; margin: 6px 0 4px; }
.rcard .place sup { font-size: .5em; vertical-align: .9em; margin-left: 2px; letter-spacing: 0; }
.rcard .of { color: #8C8C8C; font-size: 15px; }
.rcard .pts { margin-top: 26px; }
.rcard hr { border: 0; border-top: 1px solid #2E2E2E; margin: 30px -2px 30px; }
.tiers { position: relative; display: grid; grid-template-columns: auto 26px 1fr; align-items: stretch; text-align: left; height: 288px; }
.tiers .here { align-self: start; justify-self: end; margin-top: calc(var(--y) - 11px); padding-right: 12px; font-size: 15px; white-space: nowrap; opacity: 0; transition: opacity .6s .9s var(--ease); }
.tiers .rail { position: relative; justify-self: center; width: 4px; border-radius: 2px; background: linear-gradient(#fff 0, #fff 3%, #3F7BFF 3%, #8C4BFF 55%, #FF00FF 100%); transform-origin: top; transform: scaleY(0); transition: transform 1s var(--ease); }
.tiers .dia { position: absolute; left: 50%; top: var(--y); width: 22px; height: 22px; margin: -11px 0 0 -11px; background: #fff; transform: rotate(45deg) scale(0); border-radius: 3px; box-shadow: 0 0 0 4px rgba(255,255,255,.12); transition: transform .5s 1s var(--spring); }
.tiers ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: 1fr 1fr 1fr; }
.tiers li { padding: 12px 0 0 14px; border-radius: 0 10px 10px 0; opacity: 0; transform: translateX(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.tiers li.me { background: linear-gradient(90deg, #1C1C1C, rgba(28,28,28,0)); }
.tiers li b { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 500; }
.tiers li small { color: #9A9A9A; font-size: 14px; white-space: nowrap; }
.tiers li small span { margin-left: 12px; }
.bars { display: inline-flex; flex-direction: column; gap: 2px; }
.bars i { display: block; width: 7px; height: 2.5px; border-radius: 2px; background: #2AC94A; }
.bars i.off { background: #3A3A3A; }
.seen .tiers .rail { transform: scaleY(1); }
.seen .tiers .dia { transform: rotate(45deg) scale(1); }
.seen .tiers .here { opacity: 1; }
.seen .tiers li { opacity: 1; transform: none; }
.seen .tiers li:nth-child(1) { transition-delay: .5s; } .seen .tiers li:nth-child(2) { transition-delay: .65s; } .seen .tiers li:nth-child(3) { transition-delay: .8s; }
.rank-note { margin: 18px 4px 0; color: #8C8C8C; font-size: 13px; text-align: center; }
.rank-note button { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Comments */
.ctitle { padding: 22px 24px 8px; font-size: 17px; color: var(--g500); }
.ctools { position: sticky; top: calc(74px + var(--safe-t)); z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 24px 14px; background: #fff; }
.ctools .tool { display: inline-flex; align-items: center; gap: 8px; height: 34px; font-size: 15px; }
.ctools .tool .i { width: 18px; height: 18px; }
.ctools .search { flex: 1; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--g100); }
.ctools .search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 15px; }
.clist { display: flex; flex-direction: column; gap: 12px; padding: 0 24px; }
.cwrap { position: relative; border-radius: 12px; }
.cwrap .appeal { position: absolute; inset: 1px; border-radius: 12px; background: var(--orange); display: flex; align-items: center; justify-content: flex-end; padding-right: 30px; color: #fff; font-weight: 600; font-size: 15px; gap: 6px; }
.cwrap .appeal .i { width: 17px; height: 17px; }
.ccard { position: relative; background: var(--g50); border-radius: 12px; padding: 16px 16px 14px; touch-action: pan-y; transition: transform .35s var(--ease), background .2s; user-select: none; }
.ccard.drag { transition: none; }
.ccard p { margin: 0; font-size: 15px; line-height: 1.45; }
.ccard .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: var(--g500); font-size: 14px; }
.ccard .meta .stars .i { width: 13px; height: 13px; }
.ccard .new { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--up); background: #E3F7EA; padding: 2px 7px; border-radius: 5px; margin-right: 8px; }

.cwrap.appealed .ccard { background: #fff; box-shadow: inset 0 0 0 1px var(--g200); }
.cwrap.appealed .ccard p { color: var(--g500); }
.pend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--orange); }
.pend .i { width: 14px; height: 14px; }
.cempty { padding: 40px 24px; text-align: center; color: var(--g500); }
.cprog { position: absolute; left: 50px; right: 50px; bottom: calc(var(--dock-h) + var(--dock-gap) + 12px + var(--safe-b)); height: 5px; border-radius: 3px; background: var(--g200); overflow: hidden; z-index: 25; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.report.on-comments .cprog { opacity: 1; transform: none; }
.cprog i { display: block; height: 100%; width: 12%; border-radius: 3px; background: var(--mag); transition: width .15s linear; }
.swipe-hint { display: flex; align-items: center; gap: 6px; padding: 0 24px 12px; font-size: 13px; color: var(--g500); }
.swipe-hint .i { width: 15px; height: 15px; }
.peek .ccard { animation: peek 1.4s .6s var(--ease); }
@keyframes peek { 35%, 55% { transform: translateX(-74px); } }

/* Overview */
.ov-title { margin: 18px 0 0; text-align: center; color: var(--g500); font-size: 17px; font-weight: 400; }
.prof { padding: 18px 24px 22px; text-align: center; border-bottom: 1px solid var(--g200); }
.ring { width: 86px; height: 86px; margin: 0 auto 14px; border-radius: 50%; padding: 6px; background: conic-gradient(var(--mag) var(--p, 100%), var(--g200) 0); transition: --p 1s; }
.ring span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; background: center / cover; }
.prof h2 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.3px; }
.prof small { color: var(--g500); font-size: 13px; }
.ov-sec { padding: 22px 24px; border-bottom: 1px solid var(--g200); }
.ov-sec .lbl { font-size: 15px; }
.ov-rate { display: flex; align-items: center; gap: 18px; margin-top: 4px; }
.ov-rate .big { font-size: 56px; letter-spacing: -2px; margin: 0; }
.ov-rate .pts { font-size: 13px; gap: 10px; }
.ov-rate .upc { width: 26px; height: 26px; }
.ov-vol { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.ov-vol .lbl { color: var(--g500); }
.ov-vol p { margin: 4px 0; font-size: 14px; }
.ov-vol svg { width: 170px; height: 70px; overflow: visible; }
.tier-b { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 500; margin-top: 8px; }
.tier-b .bars i { width: 9px; height: 3px; }
.ov-place { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.ov-place b { font-size: 46px; font-weight: 600; letter-spacing: -1.5px; line-height: 1.05; }
.ov-place .pts { font-size: 13px; gap: 8px; }
.ov-place .upc { width: 24px; height: 24px; }
.share { background: var(--blue); color: #fff; padding: 22px 24px 30px; margin-bottom: calc(-1 * (var(--dock-h) + var(--dock-gap) + 28px + var(--safe-b))); padding-bottom: calc(var(--dock-h) + var(--dock-gap) + 40px + var(--safe-b)); }
.share h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.share p { margin: 0 0 18px; font-size: 13px; opacity: .85; }
.share .row { display: flex; justify-content: space-between; }
.share .row button { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; width: 60px; }
.share .row span.ic { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; transition: background .2s, transform .2s var(--ease); }
.share .row button:hover span.ic { background: rgba(255,255,255,.24); }
.share .row button:active span.ic { transform: scale(.94); }

/* ---------- Dock ---------- */
.dock { position: absolute; z-index: 30; left: 50%; bottom: calc(var(--dock-gap) + var(--safe-b)); width: calc(100% - 52px); max-width: 370px; height: var(--dock-h); transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 22px; border-radius: 100px; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); box-shadow: inset 0 0 0 1px var(--g300), 0 10px 30px -12px rgba(0,0,0,.18); transition: background .35s, box-shadow .35s, transform .45s var(--ease), opacity .3s; }
.dock.hide { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
.dock .tab { position: relative; width: 44px; height: 44px; display: grid; place-items: center; color: #000; border-radius: 50%; transition: color .25s, transform .2s var(--ease); }
.dock .tab:active { transform: scale(.9); }
.dock .tab svg { width: 24px; height: 24px; }
.dock .tab.on { color: var(--blue); }
.dock .tab::after { content: ''; position: absolute; bottom: 2px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; opacity: 0; transform: scale(0); transition: all .3s var(--spring); }
.dock .tab.on::after { opacity: 1; transform: scale(1); }
.bal { height: 42px; min-width: 92px; padding: 0 14px 0 16px; border-radius: 62px; background: #000; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px; transition: background .3s, color .3s, transform .2s var(--ease); }
.bal .i { width: 19px; height: 19px; fill: currentColor; }
.bal:active { transform: scale(.96); }
.bal.bump { animation: bump .5s var(--spring); }
.bal.on { background: var(--blue); }
.dock.dark { background: rgba(18,18,18,.92); box-shadow: inset 0 0 0 1px #2C2C2C, 0 10px 30px -12px rgba(0,0,0,.5); }
.dock.dark .tab { color: #6B6B6B; }
.dock.dark .tab.on { color: var(--blue-2); }
.dock.dark .bal { background: #fff; color: #000; }
.dock.blue { background: #fff; }
.menu { position: absolute; z-index: 31; right: 26px; bottom: calc(var(--dock-h) + var(--dock-gap) + 10px + var(--safe-b)); width: 210px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--g200), 0 18px 40px -12px rgba(0,0,0,.25); transform-origin: 85% 100%; animation: menu .3s var(--spring); }
@keyframes menu { from { opacity: 0; transform: scale(.92) translateY(8px); } }
.menu button { width: 100%; display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px; border-radius: 10px; font-size: 15px; text-align: left; color: #000; }
.menu button:hover { background: var(--g100); }
.menu button .i { width: 18px; height: 18px; color: var(--g600); }

/* ---------- Star Exchange ---------- */
.overlay { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; background: #fff; transform: translateY(100%); transition: transform .5s var(--ease); }
.overlay.in { transform: none; }
.overlay.blue { background: var(--blue); color: #fff; }
.xhead { flex: none; height: calc(74px + var(--safe-t)); padding-top: var(--safe-t) !important; display: flex; align-items: center; justify-content: space-between; padding: 0 18px 0 26px; }
.xhead .brand { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.xhead .brand img { height: 15px; }
.xhead .icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.xhead .icon-btn:hover { background: var(--g100); }
.blue .xhead .icon-btn:hover { background: rgba(255,255,255,.12); }
.xbody { flex: 1; overflow-y: auto; scrollbar-width: none; padding-bottom: calc(var(--dock-h) + var(--dock-gap) + 28px + var(--safe-b)); }
.xbody::-webkit-scrollbar { display: none; }
.xcentered { display: flex; justify-content: center; }

.banners { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 24px; scrollbar-width: none; scroll-padding: 0 24px; }
.banners::-webkit-scrollbar { display: none; }
.bnr { flex: 0 0 100%; height: 96px; border-radius: 14px; padding: 0 16px 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; scroll-snap-align: start; background: var(--grad); }
.bnr.b2 { background: linear-gradient(110deg, #00A86B, #00C2A8); } .bnr.b3 { background: linear-gradient(110deg, #FF6A3D, #FF2E93); }
.bnr b { font-size: 21px; line-height: 1.15; font-weight: 600; letter-spacing: -.3px; }
.bnr button { flex: none; height: 40px; padding: 0 16px; border-radius: 100px; background: #fff; color: #000; font-size: 14px; font-weight: 600; }
.dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0 0; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--g300); transition: all .3s var(--ease); }
.dots i.on { background: var(--blue); width: 16px; border-radius: 3px; }
.cats { display: flex; gap: 6px; overflow-x: auto; padding: 22px 24px 4px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; width: 82px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; padding: 8px 0; border-radius: 12px; transition: background .2s; }
.cat span.ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--g100); color: #000; transition: background .2s, color .2s; }
.cat span.ic .i { width: 24px; height: 24px; }
.cat.on span.ic { background: var(--blue); color: #fff; }
.shelf-h { display: flex; align-items: center; gap: 14px; padding: 26px 24px 14px; }
.shelf-h h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.shelf-h hr { flex: 1; border: 0; border-top: 1px solid var(--g200); margin: 0; }
.shelf-h button { font-size: 13px; color: var(--blue-ink); font-weight: 600; white-space: nowrap; }
.shelf { display: flex; gap: 14px; overflow-x: auto; padding: 0 24px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; padding: 0 24px; }
.prod { flex: 0 0 136px; text-align: left; scroll-snap-align: start; }
.grid2 .prod { flex: none; }
.prod .tile { aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; margin-bottom: 10px; background: var(--bg, var(--g100)); color: var(--fg, #000); transition: transform .3s var(--ease); }
.prod:hover .tile { transform: translateY(-2px); }
.prod .tile .i { width: 46px; height: 46px; stroke-width: 1.5; }
.prod b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.prod small { display: block; color: var(--g600); font-size: 12.5px; margin-top: 2px; }
.prod .price { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; color: #B84700; font-weight: 600; font-size: 14px; }
.prod .price .i { width: 14px; height: 14px; fill: currentColor; }
.partners { display: flex; gap: 22px; overflow-x: auto; padding: 4px 24px; scrollbar-width: none; align-items: center; }
.partners::-webkit-scrollbar { display: none; }
.partners span { flex: none; font-size: 19px; color: #111; opacity: .85; }

/* Send stars (blue) */
.seg2 { margin: 6px auto 0; display: flex; padding: 6px; border-radius: 100px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.32); width: 265px; position: relative; }
.seg2 button { flex: 1; height: 46px; border-radius: 100px; font-size: 16px; font-weight: 500; position: relative; z-index: 1; transition: color .3s; }
.seg2 button.on { color: #000; }
.seg2 .pill { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); border-radius: 100px; background: #fff; transition: transform .4s var(--spring); }
.seg2.right .pill { transform: translateX(100%); }
.tsearch { display: flex; align-items: center; gap: 8px; margin: 24px 24px 0; height: 42px; padding: 0 14px; border-radius: 12px; background: rgba(255,255,255,.14); }
.tsearch input { flex: 1; border: 0; background: none; color: #fff; outline: none; font-size: 15px; }
.tsearch input::placeholder { color: rgba(255,255,255,.7); }
.tsearch .i { width: 17px; height: 17px; opacity: .8; }
.xlist h3 { margin: 26px 24px 10px; font-size: 20px; font-weight: 400; }
.person { width: 100%; display: flex; align-items: center; gap: 18px; padding: 10px 24px; text-align: left; font-size: 15px; transition: background .2s; }
.person:hover { background: rgba(255,255,255,.08); }
.person .av { width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff; background: center / cover; flex: none; }
.person .arr { margin-left: auto; opacity: .6; width: 18px; height: 18px; }
.person small { display: block; opacity: .75; font-size: 12.5px; }
.closebtn { display: block; margin: 26px auto 0; font-weight: 700; font-size: 16px; padding: 10px 20px; }

.acts { padding: 6px 24px; }
.act { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.act .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); flex: none; }
.act .ic .i { width: 18px; height: 18px; }
.act div { flex: 1; min-width: 0; }
.act b { display: block; font-size: 14.5px; font-weight: 500; }
.act small { opacity: .7; font-size: 12.5px; }
.act .amt { font-weight: 700; font-size: 15px; white-space: nowrap; }
.act .amt.plus { color: #A6FFCB; }

/* Amount keypad */
.amount { margin: 8px 24px 0; padding: 28px 26px; border-radius: 14px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: space-between; }
.amount b { font-size: 48px; font-weight: 700; letter-spacing: -1px; line-height: 1; }
.amount b.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.amount span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.amount span .i { fill: currentColor; width: 19px; height: 19px; }
.avail { text-align: center; font-size: 13px; opacity: .8; margin-top: 10px; }
.avail.err { opacity: 1; color: #FFD3D3; font-weight: 600; }
.to { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 22px; font-weight: 600; }
.to small { font-weight: 600; font-size: 15px; }
.to .av { width: 54px; height: 54px; border-radius: 50%; border: 2px solid #fff; background: center / cover; }
.quick { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.quick button { height: 32px; padding: 0 14px; border-radius: 100px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); font-size: 13px; font-weight: 600; }
.quick button:hover { background: rgba(255,255,255,.12); }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); padding: 10px 24px 0; margin-top: auto; }
.pad button { height: 64px; font-size: 26px; font-weight: 500; border-radius: 14px; display: grid; place-items: center; transition: background .15s; }
.pad button:active { background: rgba(255,255,255,.14); }
.pad button .i { width: 26px; height: 26px; }
.padfoot { display: flex; align-items: center; gap: 12px; padding: 12px 24px calc(22px + var(--safe-b)); }
.padfoot .cancel { width: 110px; height: 64px; font-size: 16px; opacity: .8; }
.padfoot .confirm { flex: 1; height: 72px; border-radius: 100px; background: #000; color: #fff; font-weight: 600; font-size: 17px; transition: opacity .2s, transform .2s var(--ease); }
.padfoot .confirm:disabled { opacity: .45; cursor: not-allowed; }
.padfoot .confirm:not(:disabled):active { transform: scale(.98); }

/* Sent */
.sent { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 0 24px; position: relative; }
.sent .av { width: 92px; height: 92px; border-radius: 50%; border: 3px solid #fff; background: center / cover; animation: rise .6s var(--ease) both; }
.sent .who { font-weight: 600; animation: rise .6s .08s var(--ease) both; }
.sent h2 { margin: 70px 0 0; font-size: 34px; font-weight: 700; display: flex; align-items: center; gap: 10px; letter-spacing: -.5px; animation: rise .6s .2s var(--ease) both; }
.sent h2 .i { width: 32px; height: 32px; fill: currentColor; }
.sent p { margin: 0; opacity: .85; animation: rise .6s .3s var(--ease) both; text-align: center; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; left: 50%; top: 52%; width: 10px; height: 10px; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); background: #fff; animation: fly 1.4s var(--ease) forwards; }
@keyframes fly { from { transform: translate(-50%, -50%) scale(.4) rotate(0); opacity: 1; } to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(var(--r)); opacity: 0; } }
.bigbtn { width: calc(100% - 48px); margin: 0 24px calc(22px + var(--safe-b)); height: 72px; border-radius: 100px; background: #000; color: #fff; font-weight: 600; font-size: 17px; }

/* ---------- Sheets ---------- */
.scrim { position: absolute; inset: 0; z-index: 40; background: rgba(0,0,0,.36); opacity: 0; transition: opacity .3s; }
.scrim.in { opacity: 1; }
.sheet { position: absolute; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 88%; overflow-y: auto; background: #fff; color: var(--ink); border-radius: 24px 24px 0 0; padding: 10px 24px calc(24px + var(--safe-b)); transform: translateY(100%); transition: transform .45s var(--ease); }
.sheet.in { transform: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--g300); margin: 0 auto 16px; }
.sheet h2 { margin: 0 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -.3px; }
.sheet p.sub { margin: 0 0 18px; color: var(--g600); font-size: 14.5px; line-height: 1.5; }
.sheet .primary { width: 100%; height: 58px; border-radius: 100px; background: #000; color: #fff; font-weight: 600; font-size: 16px; margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: opacity .2s; }
.sheet .primary:disabled { opacity: .4; cursor: not-allowed; }
.sheet .primary.blue { background: var(--blue); }
.sheet .ghost { width: 100%; height: 48px; margin-top: 6px; color: var(--g600); font-weight: 500; }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--g100); font-size: 15px; text-align: left; transition: box-shadow .2s, background .2s; }
.opt .rd { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--g300); flex: none; transition: box-shadow .2s; }
.opt.on { background: #FFF1E8; box-shadow: inset 0 0 0 1.5px var(--orange); }
.opt.on .rd { box-shadow: inset 0 0 0 6px var(--orange); }
.sheet textarea { width: 100%; margin-top: 12px; border: 0; border-radius: 12px; background: var(--g100); padding: 12px 14px; font: inherit; font-size: 15px; resize: none; min-height: 84px; outline: none; }
.sheet textarea:focus { box-shadow: inset 0 0 0 2px var(--orange); }
.quote { margin: 0 0 18px; padding: 12px 14px; border-left: 3px solid var(--orange); background: #FFF7F1; border-radius: 0 10px 10px 0; font-size: 14px; color: var(--g700); }
.trade-viz { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 10px 0 18px; }
.trade-viz div { text-align: center; }
.trade-viz b { display: block; font-size: 40px; font-weight: 700; letter-spacing: -1px; }
.trade-viz small { color: var(--g600); font-size: 13px; }
.trade-viz .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trade-viz .i { color: var(--g300); width: 26px; height: 26px; }
.ptile { aspect-ratio: 16 / 10; border-radius: 18px; display: grid; place-items: center; margin-bottom: 18px; background: var(--bg); color: var(--fg); }
.ptile .i { width: 74px; height: 74px; stroke-width: 1.3; }
.need { margin-top: 10px; text-align: center; font-size: 13px; color: var(--orange); font-weight: 600; }
.tiers-help li { margin-bottom: 10px; color: var(--g700); font-size: 14.5px; line-height: 1.5; }

/* ---------- Toast ---------- */
#toast { position: fixed; z-index: 60; left: 50%; top: calc(14px + var(--safe-t)); transform: translate(-50%, calc(-100% - 40px)); visibility: hidden; max-width: 360px; width: calc(100% - 32px); display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: #111; color: #fff; font-size: 14px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); transition: transform .45s var(--spring); pointer-events: none; }
#toast.show { transform: translate(-50%, 0); visibility: visible; }
#toast .i { width: 18px; height: 18px; color: #6CF0A0; flex: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .track { scroll-behavior: auto; }
}

/* Reveal as you scroll; the score arrives as a moving gradient that settles */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
.big.shimmer { animation: sheen 1.8s var(--ease) both; }
@keyframes sheen { from { background-size: 300% 100%; background-position: 100% 0; filter: blur(10px); opacity: .1; } 45% { filter: blur(0); opacity: 1; } to { background-size: 100% 100%; background-position: 0 0; } }
.report { opacity: 1; }
.report.hide { opacity: 0; }
.story > :not(.rhead) { will-change: transform; }

/* Dock highlight that glides between tabs */
.dock .ind { position: absolute; left: 0; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: rgba(0,110,239,.1); transform-origin: center; pointer-events: none; transition: background .3s; }
.dock.dark .ind { background: rgba(26,124,242,.18); }
.dock .tab::after { display: none; }
/* Screens inside an overlay slide in from the side */
.overlay.swap > :not(.xhead) { animation: swapin .5s var(--ease) both; }
.overlay.swap.back > :not(.xhead) { animation-name: swapback; }
@keyframes swapin { from { opacity: 0; transform: translateX(28px); } }
@keyframes swapback { from { opacity: 0; transform: translateX(-28px); } }
.fadein { animation: rise .45s var(--ease) both; }
.seg2 .pill { box-shadow: 0 4px 14px -4px rgba(0,0,0,.25); }
.ccard .meta { color: var(--g600); }


/* ================= Round 2 polish ================= */
/* Feedback hint fades away once you've used it */
.hint { transition: opacity .4s var(--ease), transform .4s var(--ease); }
.hint.gone { opacity: 0 !important; transform: translateY(-8px) !important; pointer-events: none; }

/* The collapsed rating header: calmer hierarchy on a deeper gradient */
.collapsed .rhead { background: radial-gradient(120% 140% at 0% 0%, #5B7CFF 0%, transparent 55%), radial-gradient(120% 160% at 100% 100%, #D43EF0 0%, transparent 60%), #7A4DF5; box-shadow: 0 10px 30px -18px rgba(90,40,200,.6); }
.rhead .mini .row { align-items: center; padding: 10px 26px 16px; border-top: 0; }
.rhead .mini small { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .8; margin-bottom: 2px; }
.rhead .mini b { font-size: 40px; letter-spacing: -1.2px; }
.rhead .mini .pts { padding: 6px 12px 6px 6px; border-radius: 100px; background: rgba(255,255,255,.16); font-size: 13px; gap: 8px; }
.rhead .mini .pts .upc { width: 24px; height: 24px; }
.collapsed .rhead .hello { border-color: transparent; font-size: 15px; padding-bottom: 8px; opacity: .92; }

/* AI summary: phrases turn into the brand gradient as they light up */
mark { color: inherit; background-image: linear-gradient(90deg, rgba(196,120,255,.16), rgba(196,120,255,.16)); transition: background-size 1s var(--ease), color .6s var(--ease); }
.lit mark { -webkit-text-fill-color: transparent; background-image: linear-gradient(100deg, #4C7DFF, #8857F7 50%, #D73CF4), linear-gradient(90deg, rgba(196,120,255,.16), rgba(196,120,255,.16)); background-size: 100% 100%, 100% 100%; -webkit-background-clip: text, border-box; background-clip: text, border-box; font-weight: 600; }

/* Sequenced numbers */
.seq [data-n] { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.seq [data-n].show { opacity: 1; transform: none; }

/* Ranking: fits on one screen, aligned rail, one-time border spin */
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 200deg; }
.rank-wrap { padding: 0 22px; }
.dark .hello { padding-bottom: 8px; }
.rcard { margin-top: 38px; padding: 42px 20px 22px; background: linear-gradient(#000, #000) padding-box, conic-gradient(from var(--spin), #FFB800, #FF4D00, #FF00FF, #6B5BFF, #4ECDC4, #9BEA6A, #FFB800) border-box; }
.seen .rcard { animation: spin 3.6s .2s cubic-bezier(.6,0,.2,1) both; }
@keyframes spin { from { --spin: 200deg; } to { --spin: 560deg; } }
.rcard .av { width: 60px; height: 60px; margin-left: -30px; top: -31px; background-position: center 30%; }
.rcard .place { font-size: 50px; margin: 2px 0 2px; }
.rcard .pts { margin-top: 16px; }
.rcard hr { margin: 20px -2px 18px; }
.tiers { height: 216px; grid-template-columns: 1fr 22px 1.25fr; }
.tiers .here { position: absolute; left: 0; right: calc(55.5% + 6px); top: var(--y); margin: 0; padding: 0; transform: translateY(-50%); text-align: right; font-size: 14px; color: #CFCFCF; }
.tiers .rail { grid-column: 2; }
.tiers ul { grid-column: 3; grid-template-rows: auto auto auto; align-content: start; gap: 6px; }
.tiers li { padding: 0 0 10px 12px; min-height: 64px; display: flex; flex-direction: column; justify-content: flex-start; }
.tiers li b { height: 44px; line-height: 44px; font-size: 17px; }
.tiers li.me { background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,0) 85%); }
.tiers li small { margin-top: -8px; font-size: 13px; }
.rank-note { margin-top: 12px; }

/* Comments: frosted toolbar, completion check */
.ctools { background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); }
.rhead { -webkit-backdrop-filter: none; }
.cprog { overflow: visible; }
.cprog i { position: relative; }
.cprog::after { content: '+5 ★'; position: absolute; right: -6px; top: 50%; transform: translate(40%, -50%) scale(0); height: 22px; padding: 0 8px; border-radius: 11px; background: var(--mag); color: #fff; font: 700 11px/22px Inter, sans-serif; box-shadow: 0 0 0 3px #fff; transition: transform .45s var(--spring); white-space: nowrap; }
.report.c-done .cprog::after { transform: translate(30%, -50%) scale(1); }
.report.c-done .cprog i { width: 100% !important; }

/* Added chip check */
.chip .ok { width: 16px; height: 16px; flex: none; }

/* Star bubbles */
.bubbles { position: absolute; inset: 0; z-index: 29; }
.bscrim { position: absolute; inset: 0; width: 100%; height: 100%; background: rgba(240,240,248,.5); -webkit-backdrop-filter: blur(0) saturate(1); backdrop-filter: blur(0) saturate(1); opacity: 0; transition: opacity .35s, backdrop-filter .45s, -webkit-backdrop-filter .45s; cursor: default; }
.bubbles.in .bscrim { opacity: 1; -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.bhead { position: absolute; left: 0; right: 0; top: calc(var(--safe-t) + 120px); text-align: center; margin: 0; font-size: 56px; font-weight: 700; letter-spacing: -2px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; opacity: 0; transform: translateY(10px); transition: all .5s .1s var(--ease); }
.bhead .num { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bhead .i { width: 40px; height: 40px; color: #B96CFF; }
.bhead small { flex-basis: 100%; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--g600); }
.bubbles.in .bhead { opacity: 1; transform: none; }
.bub { position: absolute; left: calc(var(--ox) - 62px); top: calc(var(--oy) - 62px); width: 124px; height: 124px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: #fff; box-shadow: 0 18px 40px -16px rgba(40,20,90,.35), inset 0 0 0 1px rgba(0,0,0,.04); transform: translate(0, 0) scale(.2); opacity: 0; transition: transform .6s var(--spring) var(--d), opacity .3s var(--d); text-align: center; }
.bub.b1 { width: 144px; height: 144px; left: calc(var(--ox) - 72px); top: calc(var(--oy) - 72px); background: var(--blue); color: #fff; }
.bubbles.in .bub { transform: translate(var(--x), var(--y)) scale(1); opacity: 1; }
.bubbles.out .bub { transition-delay: 0s; transition-duration: .3s; }
.bub:hover { box-shadow: 0 22px 44px -14px rgba(40,20,90,.45); }
.bub:active { transform: translate(var(--x), var(--y)) scale(.95); }
.bub .bi { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--g100); margin-bottom: 4px; }
.bub.b1 .bi { background: rgba(255,255,255,.18); }
.bub .bi .i { width: 20px; height: 20px; }
.bub b { font-size: 14px; font-weight: 600; line-height: 1.15; }
.bub small { font-size: 11px; color: var(--g600); line-height: 1.2; padding: 0 12px; }
.bub.b1 small { color: rgba(255,255,255,.8); }
.bal .x { display: none; }
.bal.x { background: #fff; color: #000; box-shadow: inset 0 0 0 1px var(--g300); }

/* Overview data viz */
.trend { margin: 12px -4px 0; }
.trend svg { width: 100%; height: auto; overflow: visible; display: block; }
.trend .gl { font: 500 10px Inter, sans-serif; fill: #A0A0A0; }
.trend .tm { font: 500 11px Inter, sans-serif; fill: #8A8A8A; }
.trend .tm.now { fill: #000; font-weight: 700; }
.trend .tl { stroke-dasharray: 1; stroke-dashoffset: 1; }
.trend .ta, .trend .td { opacity: 0; }
.in .trend .tl { animation: draw 1.4s .2s var(--ease) forwards; }
.in .trend .ta { animation: fadeIn .8s 1s forwards; }
.in .trend .td { animation: dotIn .4s calc(.25s + var(--i) * .22s) var(--spring) forwards; transform-box: fill-box; transform-origin: center; }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes dotIn { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
.ov-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; border-top: 1px solid var(--g200); padding-top: 14px; }
.ov-stats div + div { border-left: 1px solid var(--g200); padding-left: 14px; }
.ov-stats b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.4px; }
.ov-stats small { color: var(--g600); font-size: 12.5px; }
.split { display: flex; gap: 3px; height: 12px; margin-top: 14px; }
.split i { display: block; width: var(--w); border-radius: 6px; transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease); }
.split .pos { background: linear-gradient(90deg, #4C7DFF, #8857F7); } .split .neu { background: #D6D6D6; transition-delay: .15s; } .split .neg { background: var(--orange); transition-delay: .25s; }
.in .split i { transform: none; }
.split-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--g700); }
.split-key i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.split-key .pos { background: #6A6AFB; } .split-key .neu { background: #CFCFCF; } .split-key .neg { background: var(--orange); }
.split-key b { color: #000; margin-left: 2px; }
.themes-h { display: flex; align-items: center; gap: 6px; margin: 18px 0 10px; font-size: 13px; font-weight: 600; color: var(--g700); }
.themes-h .i { width: 14px; height: 14px; color: #8857F7; }
.themes { display: flex; flex-wrap: wrap; gap: 8px; }
.themes span { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 12px; border-radius: 100px; background: var(--g100); font-size: 13.5px; opacity: 0; transform: translateY(8px) scale(.96); transition: all .5s var(--ease) calc(.4s + var(--i) * 80ms); }
.themes span b { min-width: 30px; height: 24px; padding: 0 8px; border-radius: 12px; background: #fff; font-size: 12px; display: grid; place-items: center; }
.in .themes span { opacity: 1; transform: none; }

/* Bubbles: positioned at their resting spot, they fly out of the balance */
.bub, .bub.b1 { left: auto; top: auto; margin: -62px 0 0 -62px; transform: translate(var(--fx), var(--fy)) scale(.15); }
.bub.b1 { margin: -72px 0 0 -72px; }
.bubbles.in .bub { transform: none; }
.bub:active { transform: scale(.95) !important; }
.bhead { top: calc(var(--safe-t) + 96px); }

/* "Summarized by AI": the gradient sweeps into place when the summary lights up */
.ai { background-size: 300% 100%; background-position: 100% 0; transition: background-position 1.6s var(--ease); }
.lit .ai, .sentiment.lit .ai { background-position: 0 0; }
.ai { background-image: linear-gradient(100deg, #D73CF4, #8857F7 25%, #4C7DFF 45%, #8857F7 70%, #D73CF4); }

/* Feedback tiles */
.fb-grid { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; gap: 10px; padding: 18px 20px 4px; }
.fb-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 14px 14px 16px; border-radius: 18px; background: var(--g100); text-align: left; transition: transform .2s var(--ease), background .2s; }
.fb-tile:hover { background: #EDEDF0; }
.fb-tile:active { transform: scale(.98); }
.fb-tile.lead { grid-row: span 2; justify-content: flex-end; background: linear-gradient(160deg, #FFF8E1, #FFF1C9); }
.fb-tile.pos { background: #E9F8EF; }
.fb-k { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--g700); margin-bottom: auto; padding-bottom: 10px; }
.fb-tile b { font-size: 30px; font-weight: 700; letter-spacing: -1px; line-height: 1.05; }
.fb-tile.lead b { font-size: 54px; letter-spacing: -2px; }
.fb-tile.pos b { color: #0E8A44; }
.fb-tile small { font-size: 12.5px; color: var(--g600); }
.fb-tile .stars { margin: 4px 0 6px; }
.fb-tile .arr { position: absolute; right: 12px; top: 12px; width: 18px; height: 18px; color: var(--g500); transition: transform .25s var(--ease); }
.fb-tile:hover .arr { transform: translate(2px, -2px); }
.fb-tile.lead { min-height: 200px; }
/* Ranking: label sits in the left column at the diamond's height */
.tiers .here { position: static; grid-column: 1; grid-row: 1; align-self: start; justify-self: end; margin-top: calc(var(--y) - 10px); padding-right: 10px; transform: none; line-height: 20px; right: auto; left: auto; top: auto; }
.tiers .rail { grid-row: 1; }
.tiers ul { grid-row: 1; }

/* One header for the whole report: it stays put while stories slide beneath it */
.gbar { position: absolute; z-index: 30; left: 0; right: 0; top: 0; height: calc(74px + var(--safe-t)); padding: var(--safe-t) 22px 0 26px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.gbar .right { display: flex; align-items: center; gap: 14px; }
.gbar .logo { height: 15px; display: block; transition: opacity .35s var(--ease); }
.gbar .logo.w { position: absolute; opacity: 0; }
.gbar.light .logo.b { opacity: 0; } .gbar.light .logo.w { opacity: 1; }
.gbar .prog i { transition: width .45s var(--ease), background .35s; }
.gbar.light .prog i { background: rgba(255,255,255,.4); } .gbar.light .prog i.on { background: #fff; } .gbar.light .prog i.done { background: rgba(255,255,255,.7); }
.gbar .chip { transition: background .35s; }
.gbar .chip .t { transition: color .35s; }
.gbar.light .chip { background: #fff; } .gbar.light .chip .t { background: none; color: #7B4DFF; }
.report.hide .gbar, .report .gbar { opacity: 1; }
.rhead .bar { height: 74px; }

/* Softer charts */
.trend .tl, .volume .ln { filter: drop-shadow(0 4px 8px rgba(80,70,200,.18)); }
.trend line { stroke: #F1F1F3; }
.in .trend .tl { animation: draw 1.8s .25s cubic-bezier(.45,0,.2,1) forwards; }
.in .trend .td { animation: dotIn .6s calc(.4s + var(--i) * .26s) var(--ease) forwards; }
.volume .ln { stroke-width: 4; }
.seen .volume .ln { animation: none; }
.in.volume .ln, .volume.in .ln { animation: draw 1.8s .2s cubic-bezier(.45,0,.2,1) forwards; }

/* AI highlights: gradient sweeps across the words when the summary scrolls in */
mark { color: inherit; -webkit-text-fill-color: transparent; font-weight: 600; background-image: linear-gradient(100deg, #4C7DFF, #8857F7 14%, #D73CF4 28%, #262626 40%, #262626), linear-gradient(90deg, rgba(196,120,255,.16), rgba(196,120,255,.16)); background-repeat: no-repeat; background-size: 360% 100%, 0% 100%; background-position: 100% 0, 0 0; -webkit-background-clip: text, border-box; background-clip: text, border-box; transition: background-size 1.1s var(--ease), background-position 1.6s var(--ease); }
.lit mark { background-size: 360% 100%, 100% 100%; background-position: 0 0, 0 0; }
.ai { background-image: linear-gradient(100deg, #4C7DFF, #8857F7 14%, #D73CF4 28%, #8C8C8C 40%, #8C8C8C); background-size: 360% 100%; background-position: 100% 0; transition: background-position 1.6s var(--ease); }
.lit .ai { background-position: 0 0; }

/* Neutral bento: colour lives in the content, not the containers */
.fb-tile, .fb-tile.lead, .fb-tile.pos { background: var(--g100); }
.fb-tile:hover, .fb-tile.lead:hover, .fb-tile.pos:hover { background: #EDEDF0; }
.fb-grid[data-reveal] .fb-tile { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease), background .2s; }
.fb-grid.in .fb-tile { opacity: 1; transform: none; }
.fb-grid.in .fb-tile:nth-child(2) { transition-delay: .12s, .12s, 0s; } .fb-grid.in .fb-tile:nth-child(3) { transition-delay: .24s, .24s, 0s; }

/* Volume: Comments, a beat, Approvals, a beat, then the chart rises and draws */
.seq [data-n] { transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.volume .vc b { color: #3D6BF5; }
.volume .vchart { width: min(190px, 48%); flex: none; opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.volume .vchart svg { width: 100%; }
.volume.done .vchart { opacity: 1; transform: none; }
.volume .ln, .in.volume .ln, .volume.in .ln, .seen .volume .ln { animation: none; stroke-dasharray: 1; stroke-dashoffset: 1; }
.volume.done .ln { animation: draw 1.6s .25s cubic-bezier(.45,0,.2,1) forwards; }
@media (prefers-reduced-motion: reduce) { .volume .vchart { opacity: 1; transform: none; } .volume .ln { stroke-dashoffset: 0; } }

/* Bubbles sized to their words */
.bub { width: 140px !important; height: 140px !important; margin: -70px 0 0 -70px !important; gap: 2px; padding: 0 12px; }
.bub.b1 { width: 160px !important; height: 160px !important; margin: -80px 0 0 -80px !important; }
.bub .bi { width: 36px; height: 36px; margin-bottom: 6px; }
.bub .bi .i { width: 18px; height: 18px; }
.bub b { font-size: 15px; letter-spacing: -.1px; white-space: nowrap; }
.bub.b1 b { font-size: 16px; }
.bub small { font-size: 12px; padding: 0; white-space: nowrap; }

/* once revealed, an element follows the swipe directly (no easing lag) */
[data-reveal].shown { transition: none; }
.story > :not(.rhead) { will-change: translate, opacity; }

/* After the Stars land in the bank, the header chip bows out */
.gbar .chip { max-width: 140px; overflow: hidden; transition: opacity .45s var(--ease), max-width .6s var(--ease) .15s, min-width .6s var(--ease) .15s, padding .6s var(--ease) .15s, margin .6s var(--ease) .15s, background .35s; }
.gbar.done .chip { opacity: 0; max-width: 0; min-width: 0; padding: 0; margin-left: -14px; }

/* Comments: the header and toolbar read as one frosted layer the list fades up into */
.story[data-k="comments"] .rhead { background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); }
.story[data-k="comments"] .ctools { margin-top: -1px; }

/* Rank avatar: a clean gradient ring with a black gap, echoing the card border */
.rcard .av { width: 64px; height: 64px; margin-left: -32px; top: -33px; border: 2.5px solid transparent; padding: 0; background: var(--ph) center 28% / cover padding-box, conic-gradient(from 200deg, #FFB800, #FF4D00, #FF00FF, #6B5BFF, #4ECDC4, #9BEA6A, #FFB800) border-box; box-shadow: inset 0 0 0 3px #000, 0 8px 22px -6px rgba(0,0,0,.7); }

/* The diamond climbs the rail from the bottom, stops at Excellent, then the label fades in */
.tiers .dia { transition: none; transform: rotate(45deg) scale(0); }
.seen .tiers .dia { animation: climb 1.5s 1.05s cubic-bezier(.35,.05,.2,1) both; }
@keyframes climb {
  0% { top: calc(100% - 11px); transform: rotate(45deg) scale(0); }
  12% { top: calc(100% - 11px); transform: rotate(45deg) scale(1); }
  88% { transform: rotate(45deg) scale(1); }
  94% { top: var(--y); transform: rotate(45deg) scale(1.18); }
  100% { top: var(--y); transform: rotate(45deg) scale(1); }
}
.tiers .here { opacity: 0; translate: 6px 0; transition: opacity .6s var(--ease) 2.55s, translate .6s var(--ease) 2.55s; }
.seen .tiers .here { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .seen .tiers .dia { animation: none; transform: rotate(45deg) scale(1); } .tiers .here { transition: none; } }

/* Rating header: same height before and after, the colour and the score row fade in over the top.
   Nothing in the page moves, so scrolling to feedback glides instead of bouncing. */
.story[data-k="rating"] { --mini-h: 76px; }
.story[data-k="rating"] .rhead, .story[data-k="rating"].collapsed .rhead { background: #fff; box-shadow: none; }
.story[data-k="rating"] .rhead::before { content: ''; position: absolute; left: 0; right: 0; top: 0; bottom: calc(-1 * var(--mini-h)); z-index: -1; background: radial-gradient(120% 140% at 0% 0%, #5B7CFF 0%, transparent 55%), radial-gradient(120% 160% at 100% 100%, #D43EF0 0%, transparent 60%), #7A4DF5; box-shadow: 0 10px 30px -18px rgba(90,40,200,.6); opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.story[data-k="rating"].collapsed .rhead::before { opacity: 1; }
.story[data-k="rating"] .rhead .mini, .story[data-k="rating"].collapsed .rhead .mini { position: absolute; left: 0; right: 0; top: 100%; height: var(--mini-h); display: block; opacity: 0; transform: translateY(-6px); transition: opacity .45s var(--ease) .05s, transform .45s var(--ease) .05s; pointer-events: none; }
.story[data-k="rating"].collapsed .rhead .mini { opacity: 1; transform: none; pointer-events: auto; }
.story[data-k="rating"] .rhead .mini > div { overflow: visible; }
.story[data-k="rating"] .rhead .hello, .story[data-k="rating"].collapsed .rhead .hello { font-size: 17px; padding: 4px 24px 26px; opacity: 1; transition: color .45s var(--ease), border-color .45s; }
.story[data-k="rating"].collapsed .rhead .hello { border-color: transparent; }
#feedback { scroll-margin-top: var(--mini-h); }

/* Slower AI highlight: each phrase sweeps in turn after you land */
mark { transition: background-size 1.6s var(--ease), background-position 2.6s var(--ease); }
.lit mark:nth-of-type(1) { transition-delay: .25s; } .lit mark:nth-of-type(2) { transition-delay: .9s; } .lit mark:nth-of-type(3) { transition-delay: 1.55s; } .lit mark:nth-of-type(4) { transition-delay: 2.2s; }
.ai { transition: background-position 2.4s var(--ease); }

/* Comments: title and tools live inside the one frosted header */
.story[data-k="comments"] .rhead .ctitle { padding: 0 24px 2px; font-size: 15px; }
.story[data-k="comments"] .rhead .ctools, .story[data-k="comments"] .ctools { position: static; margin: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 6px 24px 12px; }
.story[data-k="comments"] .clist { padding-top: 8px; }
.trend .gl { font-size: 10.5px; }

.ccard .new { color: #0A7A3A; }

/* Rail: a white track; the gradient is attached to the diamond and rises with it */
.tiers .rail { background: rgba(255,255,255,.85); }
.tiers .rail::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; top: 100%; border-radius: 2px; background: linear-gradient(#3F7BFF, #8C4BFF 50%, #FF00FF); }
.seen .tiers .rail::before { animation: fillUp 1.5s 1.05s cubic-bezier(.35,.05,.2,1) both; }
@keyframes fillUp { 0%, 12% { top: 100%; } 94%, 100% { top: var(--y); } }
@media (prefers-reduced-motion: reduce) { .seen .tiers .rail::before { animation: none; top: var(--y); } }

/* the report keeps its header to itself: overlays (Star Exchange, Send) sit cleanly above it */
.report { z-index: 0; isolation: isolate; }

/* team photos carry a baked-in white edge: crop it so only our one ring shows */
.person .av, .to .av, .sent .av { background-size: 120%; background-position: center; }

/* Star Exchange: a wallet strip with the way back to sending and activity */
.xwallet { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 24px 18px; padding: 12px 12px 12px 18px; border-radius: 18px; background: var(--g100); }
.xw-bal small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--g600); }
.xw-bal b { display: inline-flex; align-items: center; gap: 6px; font-size: 24px; font-weight: 700; letter-spacing: -.5px; }
.xw-bal b .i { width: 18px; height: 18px; color: #8857F7; fill: #8857F7; }
.xw-act { display: flex; gap: 8px; }
.xw-act button { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 100px; background: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06), inset 0 0 0 1px rgba(0,0,0,.05); transition: transform .2s var(--ease); }
.xw-act button:first-child { background: var(--blue); color: #fff; box-shadow: none; }
.xw-act button:active { transform: scale(.96); }
.xw-act .i { width: 16px; height: 16px; }

/* Rank avatar: no ring, just a black gap so the card border never touches the photo */
.rcard .av { border: 5px solid #000; background: var(--ph) center 28% / cover padding-box, #000 border-box; box-shadow: none; width: 68px; height: 68px; margin-left: -34px; top: -35px; }

/* Same icons as the Star Exchange shortcuts */
.seg2 button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.seg2 button .i { width: 17px; height: 17px; flex: none; }

/* Pill-to-page morph: a solid veil of the button colour covers the page while it stretches, then lifts */
.overlay.morph::after { content: ''; position: absolute; inset: 0; z-index: 50; background: var(--blue); pointer-events: none; opacity: 1; transition: opacity .25s var(--ease); }
.overlay.morph.grown::after { opacity: 0; transition: opacity .4s var(--ease) .42s; }
.overlay.morph.grown .xbody, .overlay.morph.grown .xcentered { animation: liftIn .5s var(--ease) .45s both; }
@keyframes liftIn { from { transform: translateY(12px); } to { transform: none; } }

/* QA: secondary text on the blue screens at readable contrast */
.person small, .act small { opacity: 1; color: #fff; font-weight: 400; }
.act .amt.plus { color: #fff; }
