:root {
  --bg:#08090b; --panel:#101216; --line:rgba(255,255,255,.10); --line-strong:rgba(255,255,255,.18);
  --text:#f1f3f5; --muted:#a0a0a0; --faint:#6e6e6e; --safe-top:env(safe-area-inset-top,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);
}
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html, body { margin:0; min-height:100%; background:var(--bg); color:var(--text); font-family:"Inter Tight",system-ui,-apple-system,sans-serif; }
body { padding-bottom:calc(26px + var(--safe-bottom)); }
.ta-page { position:relative; overflow-x:hidden; }
.ta-ambient { position:fixed; inset:-20% -30% auto; height:58vh; background:radial-gradient(60% 70% at 50% 0%,rgba(255,255,255,.055),transparent 70%); pointer-events:none; }
.ta-topbar { position:sticky; top:0; z-index:20; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:calc(10px + var(--safe-top)) 16px 10px; background:rgba(9,9,9,.86); backdrop-filter:blur(16px); border-bottom:1px solid var(--line); }
.ta-back,.ta-icon { border:1px solid var(--line); background:rgba(255,255,255,.025); color:var(--muted); border-radius:999px; font:inherit; font-size:10px; padding:7px 10px; text-decoration:none; }
.ta-icon { width:30px; height:30px; padding:0; font-size:15px; line-height:1; }
.ta-brand { color:var(--text); font-size:12px; letter-spacing:.12em; }
.ta-brand span { color:var(--faint); font-weight:300; margin:0 1px; }
.ta-brand small { color:var(--faint); font-size:7px; letter-spacing:.08em; margin-left:2px; }
.ta-main { width:100%; max-width:560px; margin:0 auto; padding:22px 16px 0; }
.ta-head h1 { margin:5px 0 5px; font-size:clamp(30px,9vw,40px); line-height:1; font-weight:400; letter-spacing:-.055em; }
.ta-head p { margin:0; color:var(--muted); font-size:11.5px; line-height:1.55; }
.ta-kicker { margin:0; color:var(--faint); font-size:8px; letter-spacing:.13em; text-transform:uppercase; }
.ta-cache { display:inline-block; margin-top:10px; color:var(--faint); font-size:9px; }
.ta-loading { display:grid; gap:10px; margin-top:20px; }
.ta-loading div { height:84px; border-radius:12px; background:linear-gradient(100deg,rgba(255,255,255,.035),rgba(255,255,255,.075),rgba(255,255,255,.035)); background-size:200% 100%; animation:ta-shimmer 1.4s linear infinite; }
.ta-loading div:nth-child(2) { height:160px; } .ta-loading div:nth-child(3) { height:120px; }
@keyframes ta-shimmer { to { background-position:-200% 0; } }
.ta-gate { margin-top:24px; border:1px solid var(--line); border-radius:16px; background:var(--panel); padding:28px 20px; text-align:center; }
.ta-gate-icon { width:48px; height:48px; margin:0 auto 12px; display:grid; place-items:center; border:1px solid var(--line); border-radius:50%; color:var(--muted); font-size:22px; }
.ta-gate h2 { margin:0 0 6px; font-weight:400; font-size:20px; letter-spacing:-.03em; }
.ta-gate p { color:var(--muted); font-size:11.5px; line-height:1.55; margin:0 auto 16px; max-width:300px; }
.ta-primary { display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:0 18px; border-radius:999px; background:var(--text); color:var(--bg); text-decoration:none; font-size:12px; font-weight:500; }
.ta-stats { display:grid; grid-template-columns:1fr 1fr; border:1px solid var(--line); border-radius:14px; overflow:hidden; background:var(--panel); margin-top:20px; }
.ta-stats > div { padding:13px 14px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); min-width:0; }
.ta-stats > div:nth-child(2n) { border-right:0; } .ta-stats > div:nth-child(n+3) { border-bottom:0; }
.ta-stats span { display:block; color:var(--faint); font-size:8px; text-transform:uppercase; letter-spacing:.08em; margin-bottom:5px; }
.ta-stats strong { display:block; font-size:17px; font-weight:400; letter-spacing:-.035em; font-variant-numeric:tabular-nums; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ta-stats small { display:block; margin-top:3px; color:var(--faint); font-size:8.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ta-panel { margin-top:12px; border:1px solid var(--line); border-radius:14px; background:var(--panel); padding:15px; }
.ta-panel-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:13px; }
.ta-panel-head h2 { margin:0; font-size:14px; font-weight:400; letter-spacing:-.02em; }
.ta-panel-head > span { color:var(--faint); font-size:8.5px; }
.ta-chart { display:flex; align-items:flex-end; gap:7px; min-height:138px; padding-top:4px; }
.ta-bar { flex:1; min-width:0; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:5px; height:138px; }
.ta-bar__value { color:var(--muted); font-size:7.5px; font-variant-numeric:tabular-nums; }
.ta-bar__track { width:100%; height:98px; display:flex; align-items:flex-end; border-bottom:1px solid var(--line); }
.ta-bar__fill { width:100%; min-height:2px; border-radius:4px 4px 0 0; background:linear-gradient(180deg,#dcdcdc,#7d7d7d); }
.ta-bar__label { color:var(--faint); font-size:7.5px; text-transform:uppercase; letter-spacing:.05em; }
.ta-categories { display:grid; gap:8px; }
.ta-cat { display:grid; grid-template-columns:minmax(82px,1.1fr) minmax(44px,1fr) 38px; gap:8px; align-items:center; font-size:10px; color:var(--muted); }
.ta-cat > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ta-cat > b { text-align:right; color:var(--text); font-weight:500; font-size:9px; }
.ta-track { height:4px; border-radius:99px; background:rgba(255,255,255,.07); overflow:hidden; }
.ta-track i { display:block; height:100%; background:#cecece; border-radius:99px; }
.ta-ai { border-color:var(--line-strong); background:linear-gradient(145deg,rgba(255,255,255,.04),rgba(255,255,255,.01)); }
.ta-source { border:1px solid var(--line); border-radius:999px; padding:3px 7px; }
.ta-insight-title { margin:0 0 5px; font-size:16px; line-height:1.25; font-weight:400; letter-spacing:-.025em; }
.ta-insight-summary { margin:0 0 12px; color:var(--muted); font-size:10.5px; line-height:1.6; }
.ta-insight-grid { display:grid; gap:8px; }
.ta-insight-grid > div { padding:9px 10px; border:1px solid var(--line); border-radius:9px; background:rgba(0,0,0,.16); }
.ta-insight-grid h3 { margin:0 0 5px; color:var(--faint); font-size:7.5px; text-transform:uppercase; letter-spacing:.08em; font-weight:500; }
.ta-insight-grid ul { margin:0; padding-left:13px; color:var(--muted); font-size:10px; line-height:1.5; }
.ta-insight-grid li { margin-bottom:3px; }
.ta-expenses { display:grid; gap:0; }
.ta-expense { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; padding:9px 0; border-bottom:1px solid var(--line); }
.ta-expense:last-child { border-bottom:0; }
.ta-expense div { min-width:0; }
.ta-expense strong { display:block; color:var(--text); font-size:10.5px; font-weight:400; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ta-expense small { display:block; margin-top:2px; color:var(--faint); font-size:8px; }
.ta-expense b { color:var(--text); font-size:10.5px; font-weight:500; align-self:center; }
.ta-empty { margin:0; padding:20px 8px; text-align:center; color:var(--faint); font-size:10px; }
.ta-disclaimer { margin:14px 2px 0; color:var(--faint); font-size:8.5px; line-height:1.5; }
@media (min-width: 620px) { .ta-stats { grid-template-columns:repeat(4,1fr); } .ta-stats > div { border-bottom:0; } .ta-stats > div:nth-child(2n) { border-right:1px solid var(--line); } .ta-stats > div:last-child { border-right:0; } }
.ta-budget { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 11px; border:1px solid var(--line); border-radius:9px; background:rgba(0,0,0,.15); margin-bottom:10px; }
.ta-budget span { display:block; color:var(--faint); font-size:7.5px; text-transform:uppercase; letter-spacing:.08em; margin-bottom:3px; }
.ta-budget strong { display:block; font-size:13px; font-weight:400; }
.ta-budget small { display:block; margin-top:2px; color:var(--faint); font-size:8.5px; }
.ta-budget small.is-over { color:#c7c7c7; }
.ta-budget-btn { flex:0 0 auto; border:1px solid var(--line-strong); border-radius:999px; background:transparent; color:var(--text); font:inherit; font-size:9.5px; min-height:30px; padding:0 10px; }
.ta-budget-form { display:grid; gap:7px; padding:10px; border:1px solid var(--line); border-radius:9px; margin-bottom:10px; }
.ta-budget-form[hidden] { display:none; }
.ta-budget-form label { color:var(--faint); font-size:8px; text-transform:uppercase; letter-spacing:.08em; }
.ta-budget-form > div { display:flex; gap:6px; align-items:center; }
.ta-budget-form input { flex:1; min-width:0; height:33px; border:1px solid var(--line); border-radius:8px; background:#0c0e11; color:var(--text); padding:0 9px; font:inherit; font-size:11px; }
.ta-mini-btn { border:1px solid var(--line); border-radius:999px; background:transparent; color:var(--muted); font:inherit; font-size:9.5px; min-height:30px; padding:0 9px; }
.ta-tips-head { margin:0 0 6px; color:var(--faint); font-size:8px; text-transform:uppercase; letter-spacing:.08em; }
.ta-tips { display:grid; gap:6px; margin-bottom:10px; }
.ta-tip { border:1px solid var(--line); border-radius:9px; padding:8px 9px; background:rgba(0,0,0,.14); display:grid; grid-template-columns:minmax(0,1fr) auto; gap:3px 8px; }
.ta-tip span { grid-column:1/-1; color:var(--faint); font-size:7.5px; text-transform:uppercase; letter-spacing:.06em; }
.ta-tip strong { color:var(--text); font-size:10px; font-weight:400; line-height:1.35; }
.ta-tip b { color:var(--muted); font-size:9px; font-weight:500; white-space:nowrap; align-self:center; }

/* hidden attribute must win over display rules */
[hidden] { display: none !important; }

.ta-hidden-select { display: none !important; }
.ta-card-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.ta-card-chips::-webkit-scrollbar { display: none; }
.ta-chip { flex: 0 0 auto; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #ababab; border-radius: 999px; padding: 8px 13px; font-size: 12px; font-weight: 500; letter-spacing: .01em; }
.ta-chip.is-active { background: #f5f5f7; border-color: #f5f5f7; color: #08090b; }
.ta-meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ta-rate { color: #959595; font-size: 11px; }
.ta-stat-usd { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ta-stat-usd:empty { display: none; }
