@font-face { font-family: 'Inter'; src: url('/fonts/inter-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #060b18; --bg2: #0a1426;
  --surface: rgba(255,255,255,.055); --surface-2: rgba(255,255,255,.09); --line: rgba(255,255,255,.11);
  --text: #eaf1ff; --muted: #9db0cf;
  --teal: #2ee6c8; --teal-2: #19b5d6; --teal-glow: rgba(46,230,200,.35);
  --soon: #ffd166; --warn: #ffb547; --crit: #ff6b81; --violet: #a78bfa;
  --radius: 22px; --radius-sm: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --tab-h: 68px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--text); min-height: 100dvh; font-size: 16px; line-height: 1.45;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(25,181,214,.20), transparent 60%),
    radial-gradient(700px 500px at -10% 20%, rgba(46,230,200,.10), transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg) 60%) fixed;
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
body.noscroll { overflow: hidden; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 1.75rem; letter-spacing: -.03em; font-weight: 750; line-height: 1.15; }
h2 { font-size: 1.2rem; letter-spacing: -.02em; }
h3 { font-size: 1.05rem; letter-spacing: -.01em; font-weight: 650; display: flex; align-items: center; gap: .45rem; }
a { color: var(--teal); }
code { background: var(--surface-2); padding: .1rem .35rem; border-radius: 6px; font-size: .85em; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 10px; }
.muted { color: var(--muted); } .sm { font-size: .84rem; } .center { text-align: center; justify-content: center; }
.teal { color: var(--teal); } .grow { flex: 1; min-width: 0; } .pad { padding: 1rem; }
.row { display: flex; align-items: center; } .col { display: flex; flex-direction: column; } .gap { gap: .6rem; } .wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: .75rem; } .stack-sm { display: flex; flex-direction: column; gap: .8rem; }
.ic { width: 1.25em; height: 1.25em; flex: none; } .ic.flip { transform: rotate(180deg); }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; text-transform: uppercase; letter-spacing: .09em; font-size: .72rem; font-weight: 650; color: var(--muted); }

/* boot */
.boot { min-height: 100dvh; display: grid; place-items: center; }
.boot-ring { width: 56px; height: 56px; border-radius: 50%; border: 5px solid var(--surface-2); border-top-color: var(--teal); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; width: 1em; height: 1em; border-radius: 50%; border: 2.5px solid rgba(0,0,0,.25); border-top-color: #04211d; animation: spin .8s linear infinite; }

/* shell */
.shell { max-width: 600px; margin: 0 auto; min-height: 100dvh; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: calc(var(--safe-t) + .5rem) 1rem .5rem; background: linear-gradient(180deg, rgba(6,11,24,.92), rgba(6,11,24,.6)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--text); font-weight: 700; letter-spacing: -.02em; }
#view { padding: .5rem 1rem calc(var(--tab-h) + var(--safe-b) + 2.2rem); outline: none; }
#view.enter .view { animation: rise .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.view { display: flex; flex-direction: column; gap: 1.1rem; }
.view-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding-top: .4rem; }
.sec { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 650; margin: .3rem 0 .6rem; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; padding: .4rem .6rem calc(var(--safe-b) + .4rem); background: linear-gradient(180deg, rgba(6,11,24,0), rgba(6,11,24,.92) 35%); pointer-events: none; }

.tab { flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .35rem 0; text-decoration: none; color: var(--muted); font-size: .7rem; font-weight: 600; min-height: 52px; transition: color .2s; }
.tabbar { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); background: rgba(8,15,30,.82); }
.tab-ic { display: grid; place-items: center; width: 46px; height: 30px; border-radius: 16px; transition: background .25s, box-shadow .25s, transform .25s; }
.tab .ic { width: 22px; height: 22px; }
.tab.on { color: var(--teal); }
.tab.on .tab-ic { background: rgba(46,230,200,.14); box-shadow: 0 0 18px var(--teal-glow); transform: translateY(-2px); }
.tab:active .tab-ic { transform: scale(.92); }

/* cards */
.card { background: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.03)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.card.glass { background: rgba(255,255,255,.06); }
button.card, .card[role=button] { text-align: left; color: inherit; font: inherit; width: 100%; cursor: pointer; transition: transform .15s, border-color .2s, box-shadow .2s; }
button.card:active, .card[role=button]:active { transform: scale(.985); }
@media (hover: hover) { button.card:hover, .card[role=button]:hover { border-color: rgba(46,230,200,.4); box-shadow: 0 10px 34px rgba(0,0,0,.3), 0 0 0 1px rgba(46,230,200,.12); } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.2rem; border-radius: 16px; border: 1px solid transparent; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .2s, opacity .2s, background .2s; color: var(--text); background: var(--surface-2); }
.btn:active { transform: scale(.97); } .btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: linear-gradient(135deg, var(--teal), var(--teal-2)); color: #04211d; box-shadow: 0 6px 22px var(--teal-glow); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.quiet { background: transparent; color: var(--muted); }
.btn.danger { background: var(--crit); color: #2a0610; }
.btn.danger-text { color: var(--crit); }
.btn.sm { min-height: 40px; padding: 0 .9rem; font-size: .88rem; border-radius: 13px; }
.btn.block { width: 100%; } .btn.busy { pointer-events: none; opacity: .7; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.icon-btn:active { background: var(--surface-2); } .icon-btn.sm { width: 38px; height: 38px; } .icon-btn:disabled { opacity: .3; }

/* forms */
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .85rem; }
.field > span { font-size: .8rem; font-weight: 600; color: var(--muted); }
input, select, textarea { width: 100%; min-height: 48px; padding: .7rem .9rem; font: inherit; color: var(--text); background: rgba(5,10,22,.65); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
input:focus, select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(46,230,200,.18); }
input.hi, select.hi { border-color: rgba(46,230,200,.75); background: rgba(46,230,200,.09); box-shadow: 0 0 14px rgba(46,230,200,.22); }
input[type=range] { appearance: auto; -webkit-appearance: auto; padding: 0; min-height: 36px; background: transparent; border: 0; accent-color: var(--teal); }
input[type=date] { color-scheme: dark; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (max-width: 360px) { .grid2 { grid-template-columns: 1fr; } }
.form-error { color: var(--crit); font-weight: 600; margin: .2rem 0 .8rem; }
.promo { border: 1px dashed var(--line); border-radius: 14px; padding: .7rem .8rem .1rem; margin-bottom: .9rem; }
.promo summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: .5rem; margin-bottom: .7rem; list-style: none; }
.promo summary::-webkit-details-marker { display: none; }
.notice { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem .95rem; border-radius: 14px; background: rgba(46,230,200,.09); border: 1px solid rgba(46,230,200,.3); font-size: .9rem; margin-bottom: .9rem; }
.notice.tone-warn { background: rgba(255,181,71,.1); border-color: rgba(255,181,71,.4); } .notice.tone-crit { background: rgba(255,107,129,.1); border-color: rgba(255,107,129,.45); } .notice.tone-soon { background: rgba(255,209,102,.08); border-color: rgba(255,209,102,.35); }
.choice { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.radio { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.radio input { width: 20px; min-height: 20px; margin-top: .15rem; accent-color: var(--teal); appearance: auto; -webkit-appearance: radio; }
.radio span { display: flex; flex-direction: column; } .radio:has(input:checked) { border-color: var(--teal); background: rgba(46,230,200,.08); }
.seg { display: flex; padding: 4px; gap: 4px; background: rgba(5,10,22,.6); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 1rem; }
.seg button { flex: 1; min-height: 42px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-weight: 650; cursor: pointer; transition: all .2s; }
.seg button.on { background: var(--surface-2); color: var(--text); box-shadow: 0 2px 10px rgba(0,0,0,.3); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .6rem; border-radius: 99px; font-size: .74rem; font-weight: 650; background: var(--surface-2); color: var(--text); border: 1px solid transparent; }
.chip .ic { width: 13px; height: 13px; }
.chip.apr { background: rgba(167,139,250,.16); color: #cdbdff; }
.chip.good { background: rgba(46,230,200,.16); color: var(--teal); }
.chip.tone-ok { background: rgba(46,230,200,.14); color: var(--teal); } .chip.tone-soon { background: rgba(255,209,102,.14); color: var(--soon); }
.chip.tone-warn { background: rgba(255,181,71,.18); color: var(--warn); } .chip.tone-crit { background: rgba(255,107,129,.18); color: #ff8fa0; }
.btnchip { cursor: pointer; border-color: var(--line); font-family: inherit; min-height: 36px; padding: 0 .8rem; } .chips.quick { margin: 0 0 1rem; }

/* progress ring */
.ring { position: relative; width: var(--size); height: var(--size); flex: none; }
.ring svg { width: 100%; height: 100%; overflow: visible; }
.ring-track { fill: none; stroke: rgba(255,255,255,.09); }
.ring-bar { fill: none; stroke: var(--ring); stroke-linecap: round; stroke-dashoffset: var(--off); animation: ringfill 1.2s cubic-bezier(.2,.8,.2,1) both; filter: drop-shadow(0 0 5px var(--teal-glow)); }
@keyframes ringfill { from { stroke-dashoffset: var(--c); } }
.ring-in { position: absolute; inset: 0; display: grid; place-items: center; }
.ring-pct { font-weight: 750; font-size: .95rem; letter-spacing: -.02em; } .ring-pct small { font-size: .6em; opacity: .7; } .ring-pct.big { font-size: 1.4rem; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 1.4rem 1.2rem 1.2rem; background: radial-gradient(520px 260px at 80% -20%, rgba(46,230,200,.28), transparent 65%), linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border-color: rgba(46,230,200,.25); }
.hero-date { font-size: clamp(2.5rem, 13vw, 3.6rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; margin: .35rem 0 .3rem; background: linear-gradient(120deg, #fff 10%, var(--teal) 75%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 40px var(--teal-glow); font-variant-numeric: tabular-nums; }
.hero-date.done { font-size: 2.1rem; } .hero-date.warn { background: none; color: var(--warn); }
.hero-date.pulse { animation: pulse .8s ease; } @keyframes pulse { 40% { transform: scale(1.04); filter: drop-shadow(0 0 16px var(--teal)); } }
.hero-sub { font-weight: 600; color: var(--muted); } .closer { color: var(--teal); display: inline-flex; align-items: center; gap: .2rem; } .further { color: var(--warn); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 1.2rem 0 1rem; }
.hero-stats div { display: flex; flex-direction: column; gap: .1rem; padding: .65rem .7rem; background: rgba(5,10,22,.45); border-radius: 14px; } .hero-stats small { color: var(--muted); font-size: .72rem; font-weight: 600; } .hero-stats strong { font-size: 1.02rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bar { height: 9px; background: rgba(255,255,255,.09); border-radius: 9px; overflow: hidden; margin-bottom: .55rem; }
.bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--teal-2), var(--teal)); border-radius: 9px; box-shadow: 0 0 14px var(--teal-glow); animation: grow 1.2s cubic-bezier(.2,.8,.2,1) both; } @keyframes grow { from { width: 0; } }
.demo-banner { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .9rem; border-radius: 14px; background: rgba(167,139,250,.14); border: 1px solid rgba(167,139,250,.4); font-size: .86rem; }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.qbtn { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .9rem .4rem; min-height: 78px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: .8rem; font-weight: 650; cursor: pointer; transition: transform .12s, background .2s; }
.qbtn:active { transform: scale(.95); background: var(--surface-2); } .qbtn .ic { width: 24px; height: 24px; color: var(--teal); }

/* deadlines */
.deadline { display: flex; align-items: center; gap: 1rem; border-left: 4px solid var(--teal); }
.deadline .ic:last-child { color: var(--muted); }
.dl-num { display: flex; flex-direction: column; align-items: center; min-width: 54px; } .dl-num strong { font-size: 1.7rem; line-height: 1; letter-spacing: -.03em; } .dl-num small { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.deadline.tone-soon { border-left-color: var(--soon); } .deadline.tone-soon .dl-num strong { color: var(--soon); }
.deadline.tone-warn { border-left-color: var(--warn); background: linear-gradient(160deg, rgba(255,181,71,.12), rgba(255,255,255,.02)); } .deadline.tone-warn .dl-num strong { color: var(--warn); }
.deadline.tone-crit { border-left-color: var(--crit); background: linear-gradient(160deg, rgba(255,107,129,.14), rgba(255,255,255,.02)); animation: glowpulse 2.4s ease-in-out infinite; } .deadline.tone-crit .dl-num strong { color: var(--crit); }
.deadline.tone-ok .dl-num strong { color: var(--teal); }
@keyframes glowpulse { 50% { box-shadow: 0 10px 30px rgba(0,0,0,.25), 0 0 22px rgba(255,107,129,.3); } }

/* chart */
.chart-card { padding: 1rem .8rem .9rem; }
.chart-head { display: flex; justify-content: space-between; align-items: center; margin: 0 .3rem .5rem; flex-wrap: wrap; gap: .4rem; }
.legend { display: flex; gap: .8rem; font-size: .74rem; color: var(--muted); flex-wrap: wrap; } .legend span { display: inline-flex; align-items: center; gap: .35rem; } .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; } .legend i.dash { background: repeating-linear-gradient(90deg, #8ea2c4 0 3px, transparent 3px 6px); height: 3px; }
.chart { position: relative; touch-action: pan-y; } .chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: rgba(255,255,255,.08); stroke-dasharray: 2 4; } .chart .tick { fill: var(--muted); font-size: 9.5px; font-family: inherit; }
.chart .line.anim { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.3,.7,.2,1) .1s forwards; filter: drop-shadow(0 0 5px rgba(46,230,200,.4)); }
.chart .line.dashed { opacity: .85; } .chart .area { animation: fade 1.4s ease .5s both; }
.chart.static .line.anim { animation: none; stroke-dashoffset: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } } @keyframes fade { from { opacity: 0; } }
.chart .cursor { stroke: rgba(255,255,255,.4); stroke-width: 1; } .chart .dot { stroke: var(--bg); stroke-width: 2; }
.chart-tip { position: absolute; top: -4px; transform: translateX(-50%); background: rgba(8,15,30,.95); border: 1px solid var(--line); border-radius: 12px; padding: .45rem .7rem; font-size: .76rem; display: flex; flex-direction: column; gap: .15rem; pointer-events: none; white-space: nowrap; z-index: 2; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.chart-tip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .4rem; }
.saves { margin: .8rem .3rem 0; font-size: .88rem; display: flex; gap: .5rem; align-items: flex-start; } .saves .ic { color: var(--teal); margin-top: .1rem; } .saves strong { color: var(--teal); }

/* lists */
.list { padding: .3rem 0; } .li { display: flex; align-items: center; gap: .85rem; padding: .8rem 1.1rem; width: 100%; background: none; border: 0; color: inherit; font: inherit; text-align: left; border-bottom: 1px solid var(--line); } .li:last-child { border-bottom: 0; }
button.li { cursor: pointer; } button.li:active { background: var(--surface); }
.li strong, .li small { display: block; } .li .right { text-align: right; }
.li-date { display: flex; flex-direction: column; align-items: center; min-width: 44px; padding: .3rem 0; border-radius: 12px; background: var(--surface-2); } .li-date small { font-size: .62rem; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; } .li-date strong { font-size: 1.1rem; line-height: 1.1; }
.amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); font-size: .8rem; font-weight: 700; flex: none; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--violet)); color: #04211d; font-weight: 800; flex: none; }

/* debt card */
.debt { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; }
.debt-main { min-width: 0; } .debt-top { display: flex; align-items: center; gap: .4rem; } .debt-top h3 { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.share-ic { color: var(--muted); display: inline-flex; } .share-ic .ic { width: 14px; height: 14px; } .share-ic.big .ic { width: 20px; height: 20px; }
.debt-bal { text-align: right; display: flex; flex-direction: column; } .debt-bal strong { font-size: 1.15rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .debt-bal small { font-size: .7rem; }
@media (max-width: 380px) { .debt { grid-template-columns: auto 1fr; } .debt-bal { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: baseline; } }
.empty-state { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .7rem; padding: 1.6rem 1.2rem; }
.big-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: rgba(46,230,200,.12); color: var(--teal); box-shadow: 0 0 30px rgba(46,230,200,.18); } .big-ic .ic { width: 30px; height: 30px; } .big-ic.sm { width: 46px; height: 46px; border-radius: 15px; } .big-ic.sm .ic { width: 22px; height: 22px; }
.shelf { padding: 1.1rem; border-radius: var(--radius); border: 1px dashed rgba(255,209,102,.35); background: linear-gradient(160deg, rgba(255,209,102,.07), transparent); }
.shelf h3 { color: var(--soon); margin-bottom: .6rem; } .shelf.empty p { margin: 0; }
.trophies { display: flex; gap: .7rem; overflow-x: auto; padding-bottom: .3rem; scroll-snap-type: x proximity; }
.trophy { flex: none; scroll-snap-align: start; width: 138px; display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .9rem .6rem; border-radius: 18px; border: 1px solid rgba(255,209,102,.3); background: rgba(255,209,102,.08); color: var(--text); font: inherit; text-align: center; cursor: pointer; animation: pop .6s cubic-bezier(.3,1.6,.5,1) both; }
.trophy strong { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; } .trophy small { color: var(--muted); font-size: .72rem; }
.cup { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #ffe08a, #ffb547); color: #3a2600; box-shadow: 0 0 20px rgba(255,209,102,.45); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* plan */
.extra { display: flex; flex-direction: column; gap: .6rem; } .extra label { display: flex; flex-direction: column; } .extra-row { display: flex; gap: .8rem; align-items: center; } .extra-num { width: 110px; text-align: right; font-weight: 700; flex: none; } .extra-row input[type=range] { flex: 1; }
.cmp { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.cmp-card { display: flex; flex-direction: column; gap: .2rem; padding: .85rem .7rem; } .cmp-card.on { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), 0 0 24px var(--teal-glow); }
.cmp-card .chip { padding: .05rem .4rem; font-size: .62rem; } .cmp-date { font-size: 1.05rem; letter-spacing: -.02em; } .cmp-int { font-weight: 700; font-size: .92rem; color: var(--soon); margin-top: .2rem; } .cmp-int small { font-weight: 500; color: var(--muted); font-size: .68rem; }
.order { list-style: none; margin: 0; padding: .3rem 0; } .order li { display: flex; align-items: center; gap: .7rem; padding: .6rem 1rem; border-bottom: 1px solid var(--line); } .order li:last-child { border: 0; } .order small { display: block; }

/* misc */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 1rem 0; } .facts div { background: rgba(5,10,22,.45); border-radius: 14px; padding: .7rem .85rem; } .facts dt { font-size: .72rem; color: var(--muted); font-weight: 600; } .facts dd { margin: .1rem 0 0; font-weight: 650; }
.detail-hero { display: flex; gap: 1.1rem; align-items: center; margin-bottom: 1rem; } .detail-hero h3 { font-size: 1.9rem; letter-spacing: -.03em; display: block; }
.history { list-style: none; padding: 0; margin: 0 0 1rem; } .history li { display: flex; justify-content: space-between; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); } .history small { display: block; }
h4.sec { margin-top: 1.2rem; }
.nd-result { display: flex; flex-direction: column; gap: .8rem; } .nd-why { display: flex; gap: .6rem; font-weight: 650; padding: .9rem; border-radius: 14px; background: rgba(46,230,200,.1); border: 1px solid rgba(46,230,200,.3); } .nd-why .ic { color: var(--teal); margin-top: .1rem; }
.alloc { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; } .alloc li { display: flex; align-items: center; gap: .8rem; padding: .7rem; border-radius: 14px; background: var(--surface); } .alloc li.top { border: 1px solid rgba(46,230,200,.4); } .alloc small { display: block; } .alloc-amt { font-weight: 800; font-size: 1.05rem; min-width: 74px; color: var(--teal); font-variant-numeric: tabular-nums; }
.pick { display: flex; align-items: center; gap: 1rem; } .pick.big { padding: 1.1rem; } .pick small { display: block; }
.invite { display: flex; justify-content: space-between; align-items: center; gap: .8rem; } .code { font-size: 1.7rem; font-weight: 800; letter-spacing: .14em; color: var(--teal); }
.scan-drop { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .7rem; border: 1.5px dashed rgba(46,230,200,.45); }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; } .thumb { position: relative; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); } .thumb img { width: 100%; height: 100%; object-fit: cover; } .thumb .pdf { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; padding: .4rem; text-align: center; word-break: break-all; color: var(--muted); } .thumb .pdf .ic { width: 32px; height: 32px; color: var(--teal); } .thumb .icon-btn { position: absolute; top: 3px; right: 3px; background: rgba(0,0,0,.6); } .pg { position: absolute; bottom: 6px; left: 6px; background: rgba(0,0,0,.65); border-radius: 8px; padding: 0 .45rem; font-size: .75rem; font-weight: 700; }
label.btn { position: relative; }

/* auth + onboarding */
.auth { max-width: 460px; margin: 0 auto; padding: calc(var(--safe-t) + 2rem) 1.2rem calc(var(--safe-b) + 2rem); display: flex; flex-direction: column; gap: 1.2rem; min-height: 100dvh; justify-content: center; animation: rise .5s both; }
.auth-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .6rem; } .auth-hero p { max-width: 34ch; }
.logo svg { width: 84px; height: 84px; filter: drop-shadow(0 0 22px var(--teal-glow)); animation: float 5s ease-in-out infinite; } @keyframes float { 50% { transform: translateY(-5px); } }
.demo-cta { display: flex; flex-direction: column; gap: .5rem; align-items: center; }
.steps { display: flex; gap: .4rem; justify-content: center; } .steps i { width: 34px; height: 5px; border-radius: 5px; background: var(--surface-2); transition: background .3s; } .steps i.on { background: var(--teal); box-shadow: 0 0 10px var(--teal-glow); }
.ob-scan summary { display: flex; align-items: center; gap: 1rem; cursor: pointer; list-style: none; } .ob-scan summary::-webkit-details-marker { display: none; } .ob-scan summary small { display: block; } .ob-scan-body { margin-top: 1rem; } .ob-scan-body .view-head { display: none; } .ob-scan-body .view { gap: .8rem; }
.proj { text-align: center; padding-top: .8rem; } .proj-date { font-size: 2.3rem; font-weight: 800; letter-spacing: -.04em; background: linear-gradient(120deg, #fff, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }

/* sheet */
#sheet-root { position: relative; z-index: 60; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(2,6,16,0); display: flex; align-items: flex-end; justify-content: center; transition: background .25s; }
.sheet-backdrop.in { background: rgba(2,6,16,.7); backdrop-filter: blur(4px); }
.sheet { width: 100%; max-width: 600px; max-height: 92dvh; display: flex; flex-direction: column; background: linear-gradient(180deg, #111d36, #0a1426); border: 1px solid var(--line); border-bottom: 0; border-radius: 28px 28px 0 0; transform: translateY(100%); transition: transform .32s cubic-bezier(.2,.9,.2,1); box-shadow: 0 -20px 60px rgba(0,0,0,.6); }
.sheet-backdrop.in .sheet { transform: none; }
.sheet-grab { width: 44px; height: 5px; border-radius: 5px; background: var(--surface-2); margin: .6rem auto 0; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: .4rem .8rem .2rem 1.3rem; } .sheet-head h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-body { overflow-y: auto; padding: .5rem 1.3rem calc(var(--safe-b) + 1.6rem); overscroll-behavior: contain; display: flex; flex-direction: column; }
.sheet-body > * + * { margin-top: .9rem; } .sheet-body form > * + .btn { margin-top: .3rem; }
.sheet-body .field { margin-bottom: .85rem; } .sheet-body .stack { margin-top: .6rem; }
#toast-root { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--safe-b) + 1rem); display: flex; flex-direction: column; align-items: center; gap: .5rem; z-index: 80; pointer-events: none; padding: 0 1rem; }
.toast { background: rgba(14,24,44,.96); border: 1px solid var(--line); border-radius: 16px; padding: .75rem 1.1rem; font-weight: 600; font-size: .92rem; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: toastin .35s cubic-bezier(.3,1.4,.5,1) both; max-width: 100%; }
.toast.success { border-color: rgba(46,230,200,.6); } .toast.error { border-color: rgba(255,107,129,.7); } .toast.out { opacity: 0; transform: translateY(8px); transition: all .4s; }
@keyframes toastin { from { opacity: 0; transform: translateY(14px) scale(.95); } }
#confetti { display: none; position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 90; }

@media (min-width: 700px) { .shell { padding-top: .5rem; } .sheet { border-radius: 28px; margin-bottom: 4vh; border-bottom: 1px solid var(--line); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .card, .btn, input { border: 1px solid CanvasText; } }

.chart-tip[hidden] { display: none; }
