:root{--bg:#0b1020;--bg2:#111833;--card:#151d3b;--line:#253058;--txt:#e8ecff;--mut:#8f9bc7;--acc:#6d8bff;--acc2:#38d6c4;--pos:#34d399;--neg:#f87171;--warn:#fbbf24;--r:16px;color-scheme:dark}
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}
body{margin:0;background:radial-gradient(1200px 600px at 80% -10%,#1d2a66 0,transparent 60%),var(--bg);color:var(--txt);font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,sans-serif;min-height:100vh;padding-bottom:calc(76px + env(safe-area-inset-bottom))}
a{color:var(--acc);text-decoration:none}h1{font-size:1.5rem;margin:0}h2{font-size:1.05rem;margin:0 0 .75rem}h3{margin:.25rem 0;font-size:1rem}h4{margin:.75rem 0 .25rem;font-size:.8rem;text-transform:uppercase;letter-spacing:.05em}
.top{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:1rem;padding:calc(.6rem + env(safe-area-inset-top)) 1rem .6rem;background:rgba(11,16,32,.8);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:.5rem;color:var(--txt);font-weight:700;font-size:1.1rem}.brand img{width:28px;height:28px;border-radius:8px}
.topnav{display:none;margin-left:auto;gap:.25rem}.topnav a{color:var(--mut);padding:.4rem .75rem;border-radius:10px}.topnav a.on,.topnav a:hover{color:var(--txt);background:var(--card)}
main{max-width:1100px;margin:0 auto;padding:1rem}
.card{background:linear-gradient(180deg,rgba(255,255,255,.03),transparent),var(--card);border:1px solid var(--line);border-radius:var(--r);padding:1rem;margin-bottom:1rem}
.card-head,.page-head{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.75rem}.card-head h2{margin:0}.page-head{margin:.25rem 0 1rem}
.hero .big{font-size:2.2rem;font-weight:800;letter-spacing:-.02em;margin:.1rem 0}
.label{color:var(--mut);font-size:.8rem;text-transform:uppercase;letter-spacing:.06em}
.muted{color:var(--mut)}.small{font-size:.82rem}.center{text-align:center}.pos{color:var(--pos)}.neg{color:var(--neg)}
.spark{margin-top:.75rem;position:relative;height:170px}.chartbox{position:relative;height:240px}
.kpis{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem;margin-bottom:1rem}
.kpi{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:.8rem;display:flex;flex-direction:column;min-width:0}
.kpi .value{font-size:1.1rem;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kpi .sub{font-size:.8rem}
.grid2{display:grid;gap:1rem}.grid2>.card{margin:0}.grid2{margin-bottom:1rem}
.holding{display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:.7rem 0;border-top:1px solid var(--line);color:var(--txt)}.card .holding:first-of-type{border-top:0}
.h-left{display:flex;align-items:center;gap:.7rem;min-width:0}.h-left b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.h-left div{min-width:0;display:flex;flex-direction:column}
.h-right{display:flex;flex-direction:column;align-items:flex-end;text-align:right;white-space:nowrap}
.avatar{width:40px;height:40px;flex:0 0 40px;border-radius:12px;display:grid;place-items:center;font-size:.7rem;font-weight:800;background:#24306a}
.t-crypto{background:#4b2e83}.t-stock{background:#1e4f8a}.t-etf{background:#11695e}.t-fund{background:#6b4a12}.t-fixed_deposit{background:#3d4a5c}
.mover{display:flex;justify-content:space-between;padding:.35rem 0;color:var(--txt);border-bottom:1px dashed var(--line)}
.insight{background:var(--bg2);border:1px solid var(--line);border-left:4px solid var(--acc);border-radius:12px;padding:.8rem;margin-bottom:.75rem}
.insight.unread{box-shadow:0 0 0 1px rgba(109,139,255,.35)}
.insight-head{display:flex;gap:.5rem;align-items:center;font-size:.75rem}.insight-head time{margin-left:auto;color:var(--mut)}
.sev{text-transform:uppercase;font-weight:800;letter-spacing:.05em}
.sev-info{border-left-color:var(--acc)}.sev-info .sev{color:var(--acc)}.sev-opportunity{border-left-color:var(--pos)}.sev-opportunity .sev{color:var(--pos)}
.sev-warning{border-left-color:var(--warn)}.sev-warning .sev{color:var(--warn)}.sev-action{border-left-color:var(--neg)}.sev-action .sev{color:var(--neg)}
.md{color:#cfd6f5;overflow-wrap:anywhere}.md p{margin:.4rem 0}.md ul,.md ol{padding-left:1.2rem;margin:.4rem 0}.md code{background:#0a0f22;padding:.1rem .3rem;border-radius:6px}.md pre{overflow:auto;background:#0a0f22;padding:.6rem;border-radius:8px}
.chip{display:inline-block;padding:.15rem .6rem;border-radius:999px;background:var(--bg2);border:1px solid var(--line);color:var(--mut);font-size:.75rem}.chip.on{background:var(--acc);color:#fff;border-color:var(--acc)}
.filters{display:flex;gap:.4rem;overflow-x:auto;margin-bottom:1rem;padding-bottom:.25rem}.filters .chip{font-size:.85rem;padding:.35rem .8rem;text-transform:capitalize}
.row-actions,.btns{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.5rem}.btns form{margin:0}
.btn{appearance:none;border:1px solid var(--line);background:var(--bg2);color:var(--txt);padding:.65rem 1rem;border-radius:12px;font:inherit;font-weight:600;cursor:pointer;display:inline-block}
.btn.primary{background:linear-gradient(135deg,var(--acc),#8b5cf6);border-color:transparent;color:#fff}.btn.danger{color:var(--neg);border-color:#5a2434}.btn.ghost{background:transparent}
.btn.sm{padding:.35rem .75rem;font-size:.85rem;border-radius:10px}.btn.wide{width:100%}.btn:active{transform:scale(.98)}
.form{display:flex;flex-direction:column;gap:.8rem}.form label,.inline-form{display:flex;flex-direction:column;gap:.3rem;font-size:.85rem;color:var(--mut)}
.inline-form{flex-direction:row;gap:.5rem}.inline-form input{flex:1}
input,select,textarea{width:100%;background:var(--bg);border:1px solid var(--line);color:var(--txt);border-radius:12px;padding:.7rem .8rem;font:inherit;font-size:16px}
input:focus,select:focus,textarea:focus{outline:2px solid var(--acc);border-color:transparent}textarea{min-height:80px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}
.check{flex-direction:row!important;align-items:center}.check input{width:auto}
fieldset.newasset{border:1px dashed var(--line);border-radius:12px;padding:.8rem;display:flex;flex-direction:column;gap:.6rem;margin:0}legend{color:var(--mut);font-size:.8rem;padding:0 .3rem}
.seg{display:grid;grid-template-columns:1fr 1fr;background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:4px}
.seg input{display:none}.seg span{display:block;text-align:center;padding:.55rem;border-radius:9px;font-weight:700;color:var(--mut);cursor:pointer}
.seg label:first-child input:checked+span{background:rgba(52,211,153,.18);color:var(--pos)}.seg label:last-child input:checked+span{background:rgba(248,113,113,.18);color:var(--neg)}
.table-wrap{overflow-x:auto;margin:0 -1rem;padding:0 1rem}table{width:100%;border-collapse:collapse;font-size:.88rem;white-space:nowrap}
th{color:var(--mut);font-weight:600;text-align:left;font-size:.75rem;text-transform:uppercase}th,td{padding:.55rem .4rem;border-bottom:1px solid var(--line)}.r{text-align:right}tr.note td{color:var(--mut);font-size:.8rem;white-space:normal;border-bottom-style:dashed}
.side{font-size:.72rem;font-weight:800;text-transform:uppercase;padding:.1rem .45rem;border-radius:6px}.side.buy{color:var(--pos);background:rgba(52,211,153,.12)}.side.sell{color:var(--neg);background:rgba(248,113,113,.12)}
.flash{padding:.7rem 1rem;border-radius:12px;margin-bottom:1rem;border:1px solid}.flash.ok{background:rgba(52,211,153,.1);border-color:rgba(52,211,153,.4)}.flash.error{background:rgba(248,113,113,.1);border-color:rgba(248,113,113,.4)}
.login{max-width:400px;margin:8vh auto;text-align:center}.login form{display:flex;flex-direction:column;gap:1rem;text-align:left;margin-top:1rem}.login label{display:flex;flex-direction:column;gap:.3rem;color:var(--mut);font-size:.85rem}.login-logo{width:72px;height:72px;border-radius:18px;margin-bottom:.5rem}
.sess,.attempt{display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:.7rem 0;border-top:1px solid var(--line)}.sess>div,.attempt{flex-wrap:wrap}.sess>div{display:flex;flex-direction:column;min-width:0}
.attempt{flex-direction:column;align-items:flex-start;gap:.1rem}.attempt .status{font-weight:700}.attempt.ok .status{color:var(--pos)}.attempt.fail .status{color:var(--neg)}
.menu a{display:flex;align-items:center;gap:.6rem;padding:.6rem 0;color:var(--txt);border-top:1px solid var(--line)}.menu a:first-child{border:0}
details>summary{cursor:pointer;list-style:none}details>summary h2{display:inline}details[open]>summary{margin-bottom:.75rem}
.log{background:var(--bg);padding:.6rem;border-radius:8px;font-size:.75rem;white-space:pre-wrap;max-height:240px;overflow:auto}
.badge{background:var(--neg);color:#fff;border-radius:999px;font-size:.7rem;padding:0 .4rem;margin-left:.3rem}
.ic{width:22px;height:22px}
.bottomnav{position:fixed;bottom:0;left:0;right:0;z-index:10;display:grid;grid-template-columns:repeat(5,1fr);background:rgba(13,19,40,.92);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom))}
.bottomnav a{display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--mut);font-size:.68rem;padding:4px 0;position:relative}.bottomnav a.on{color:var(--txt)}.bottomnav a.on .ic{color:var(--acc)}
.bottomnav a:nth-child(3) .ic{background:linear-gradient(135deg,var(--acc),#8b5cf6);color:#fff;border-radius:12px;width:38px;height:30px;padding:4px 8px}
.dot{position:absolute;top:2px;right:30%;width:8px;height:8px;border-radius:50%;background:var(--neg)}
@media (min-width:760px){body{padding-bottom:2rem}.bottomnav{display:none}.topnav{display:flex}.kpis{grid-template-columns:repeat(4,1fr)}.grid2{grid-template-columns:1.2fr 1fr}main{padding:1.5rem}.hero .big{font-size:2.8rem}.spark{height:220px}}
.bottomnav{grid-template-columns:repeat(6,minmax(0,1fr))}.bottomnav a{min-width:0;font-size:.64rem}.bottomnav a span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.grid2>*{min-width:0}
.section-title{margin:1.5rem 0 .25rem;font-size:1.2rem}
.plan-hero .per{font-size:1rem;font-weight:600;color:var(--mut)}.chips{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.75rem}
.plan-table td,.plan-table th{white-space:nowrap}.plan-table th{line-height:1.2}tr.tot td{font-weight:700;border-bottom:0}
.dotc{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:.4rem;vertical-align:middle}
.c-funds,.c-VWCE{background:#6d8bff}.c-shares,.c-SXR8{background:#38d6c4}.c-crypto,.c-BTC{background:#fbbf24}.c-other{background:#94a3b8}
.drift{display:flex;flex-direction:column;gap:.9rem}.dlab{display:flex;justify-content:space-between;gap:.5rem;align-items:baseline}
.dbar{position:relative;height:12px;background:var(--bg);border:1px solid var(--line);border-radius:999px;margin:.3rem 0;overflow:visible}
.dbar .fill{position:absolute;left:0;top:0;bottom:0;border-radius:999px}.dbar .tgt{position:absolute;top:-4px;bottom:-4px;width:2px;background:#fff;border-radius:2px;margin-left:-1px}
.warn{color:var(--warn);font-weight:700}
.steps,.facts{padding-left:1.2rem;margin:.25rem 0}.steps li,.facts li{margin:.45rem 0;color:#cfd6f5}
.phase{display:flex;align-items:stretch;gap:.5rem;margin-bottom:.5rem}.ph{flex:1;background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:.7rem;display:flex;flex-direction:column;min-width:0}.ph b{font-size:1.4rem}.arrow{align-self:center;color:var(--mut);font-size:1.3rem}
.bt h3{margin:1.1rem 0 .4rem;font-size:.95rem}.chartbox.tall{height:260px}
.legend{display:flex;flex-wrap:wrap;gap:.3rem .9rem;color:var(--mut);margin:.4rem 0 0}.lg{display:inline-block;width:14px;height:3px;border-radius:2px;margin-right:.35rem;vertical-align:middle}
.c-plan{background:#6d8bff}.c-vw{background:#38d6c4}.c-rb{background:#a78bfa}.c-in{background:#8f9bc7}
.note{background:var(--bg2);border:1px dashed var(--line);border-radius:12px;padding:.7rem;color:#cfd6f5}
.disclaimer{border-color:rgba(251,191,36,.35)}
@media (min-width:760px){.chartbox.tall{height:320px}}
.bt td:first-child,.bt th:first-child{white-space:normal;min-width:6.5rem}.bt table{font-size:.84rem}.bt th,.bt td{padding:.5rem .3rem}
