
    :root{--navy:#0c1830;--navy2:#142649;--blue:#2674ff;--gold:#f7b843;--green:#20ae7d;--red:#e95866;--ink:#15203a;--muted:#768098;--line:#e5e9f0;--bg:#f3f5f8;--white:#fff}
    *{box-sizing:border-box}html{background:var(--bg)}body{margin:0;color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}button,a{font:inherit}.app{width:min(100%,430px);min-height:100vh;margin:auto;background:#fff;box-shadow:0 0 42px #15203a18;overflow:hidden}.top{position:sticky;top:0;z-index:5;background:linear-gradient(145deg,var(--navy),var(--navy2));padding:max(15px,env(safe-area-inset-top)) 18px 15px;color:#fff}.bar{display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#fff}.cup{width:34px;height:34px;border-radius:10px;background:var(--gold);display:grid;place-items:center;color:var(--navy);font-weight:900}.brand strong{font-size:1.08rem}.brand small{display:block;color:#aeb9cf;font-size:.68rem;text-transform:uppercase;letter-spacing:.1em}.menuBtn{width:43px;height:43px;border:1px solid #ffffff22;border-radius:12px;background:#ffffff0c;display:grid;place-items:center;cursor:pointer}.menuBtn span,.menuBtn span:before,.menuBtn span:after{display:block;width:20px;height:2px;background:#fff;border-radius:2px;content:"";position:relative}.menuBtn span:before{position:absolute;top:-6px}.menuBtn span:after{position:absolute;top:6px}
    .heading{padding:22px 18px 14px}.heading h1{font-size:1.55rem;margin:0 0 5px}.heading p{font-size:.83rem;color:var(--muted);margin:0}.tabs{display:flex;gap:8px;padding:0 18px 15px}.tab{border:1px solid var(--line);background:#fff;color:var(--muted);padding:8px 12px;border-radius:10px;font-size:.78rem;font-weight:800}.tab.active{background:#eaf1ff;color:var(--blue);border-color:#cddcff}.listhead{display:grid;grid-template-columns:34px 42px 1fr auto;gap:9px;padding:8px 18px;font-size:.66rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#fafbfc}.list{padding-bottom:88px}.row{display:grid;grid-template-columns:34px 42px 1fr auto;gap:9px;align-items:center;width:100%;padding:11px 18px;border:0;border-bottom:1px solid #eef0f4;background:#fff;color:var(--ink);text-align:left;cursor:pointer}.row:hover,.row:focus-visible{background:#f6f9ff;outline:none}.row.me{background:#f1f6ff;border-left:3px solid var(--blue);padding-left:15px}.rank{font-size:.88rem;font-weight:900;text-align:center}.rank .move{display:block;font-size:.62rem;color:var(--green);margin-top:2px}.rank .down{color:var(--red)}.avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#e8eef8;border:2px solid #cfdaeb;color:#31517d;font-size:.75rem;font-weight:900}.row:nth-child(1) .avatar{background:#fff2cf;border-color:#eebd50;color:#8b6205}.row:nth-child(2) .avatar{background:#f1f3f6;border-color:#b9c1cd;color:#596373}.row:nth-child(3) .avatar{background:#f5e2d4;border-color:#c98b61;color:#87502d}.info strong{display:block;font-size:.86rem}.info span{display:block;font-size:.68rem;color:var(--muted);margin-top:3px}.result{text-align:right}.result strong{font-size:.86rem;color:var(--green)}.result strong.neg{color:var(--red)}.result span{display:block;font-size:.64rem;color:var(--muted);margin-top:3px}.bottom{position:fixed;z-index:4;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,430px);display:grid;grid-template-columns:repeat(4,1fr);padding:9px 12px max(9px,env(safe-area-inset-bottom));background:#fffc;border-top:1px solid var(--line);backdrop-filter:blur(14px)}.bottom a{text-align:center;text-decoration:none;color:var(--muted);font-size:.66rem;font-weight:700;padding:4px}.bottom b{display:block;font-size:1.2rem;color:var(--ink);line-height:1.3}.bottom .active,.bottom .active b{color:var(--blue)}
    .overlay{position:fixed;inset:0;z-index:20;background:#071020a8;backdrop-filter:blur(4px);display:none;align-items:flex-end;justify-content:center}.overlay.open{display:flex}.profile{width:min(100%,430px);max-height:92vh;background:#fff;border-radius:24px 24px 0 0;overflow:auto;padding-bottom:max(20px,env(safe-area-inset-bottom));animation:up .22s ease-out}@keyframes up{from{transform:translateY(30px);opacity:.5}}.grab{width:45px;height:5px;border-radius:4px;background:#d9dee6;margin:10px auto}.profileHead{display:flex;align-items:center;gap:12px;padding:5px 18px 17px;border-bottom:1px solid var(--line)}.profileHead .avatar{width:52px;height:52px;border-color:var(--blue);background:#e7efff;color:#174da9}.pname{flex:1}.pname h2{font-size:1.08rem;margin:0}.pname p{font-size:.72rem;color:var(--muted);margin:4px 0 0}.close{width:40px;height:40px;border:0;border-radius:12px;background:#f0f3f7;font-size:1.35rem;cursor:pointer}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:15px 18px}.stat{border:1px solid var(--line);border-radius:12px;padding:10px 8px}.stat span{display:block;font-size:.64rem;color:var(--muted);margin-bottom:5px}.stat b{font-size:.8rem}.profile h3{font-size:.9rem;margin:5px 18px 10px}.trades{margin:0 18px;border:1px solid var(--line);border-radius:14px;overflow:hidden}.trade{display:grid;grid-template-columns:1fr .76fr .78fr;align-items:center;padding:10px;border-bottom:1px solid #eef0f4;font-size:.72rem}.trade:last-child{border-bottom:0}.trade:nth-child(even){background:#fafbfc}.symbol b{display:block;font-size:.78rem}.symbol span,.trade .meta{color:var(--muted);font-size:.63rem}.pnl{text-align:right;font-weight:900;color:var(--green)}.pnl.neg{color:var(--red)}
    .navsheet{position:fixed;inset:0;z-index:30;display:none;background:#0710209c;backdrop-filter:blur(4px)}.navsheet.open{display:block}.sheet{width:min(85vw,345px);height:100%;margin-left:auto;background:#fff;padding:20px}.sheetTop{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.links{display:grid;gap:5px}.links a{padding:14px 12px;border-radius:12px;text-decoration:none;color:var(--ink);font-weight:700}.links a.active{background:#eaf1ff;color:var(--blue)}
    @media(min-width:700px){body{padding:28px 0}.app{min-height:850px;border-radius:28px}.bottom{bottom:28px;border-radius:0 0 28px 28px}.profile{border-radius:24px;margin-bottom:28px}}
    details.tradeItem{border-bottom:1px solid var(--line)}details.tradeItem:last-child{border-bottom:0}details.tradeItem:nth-child(even){background:#fafbfc}.tradeItem summary.trade{grid-template-columns:minmax(0,1fr) .85fr auto 12px;gap:6px;cursor:pointer;list-style:none;border:0;min-height:56px}.tradeItem summary::-webkit-details-marker{display:none}.tradeItem summary:after{content:'⌄';color:var(--muted);transition:transform .15s}.tradeItem[open] summary:after{transform:rotate(180deg)}.tradeItem summary:focus-visible{outline:2px solid var(--blue);outline-offset:-3px}.tradeItem[open]{background:#f6f9ff}.tradeDetails{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding:4px 12px 14px}.tradeDetails dt{font-size:.64rem;color:var(--muted);margin-bottom:3px}.tradeDetails dd{font-size:.73rem;font-weight:700;margin:0;overflow-wrap:anywhere}.profile .positionsHeading{margin-top:24px}.sectionNote{font-size:.68rem;color:var(--muted);line-height:1.5;margin:0 18px 10px}.positionTotal{display:flex;justify-content:space-between;gap:12px;font-size:.73rem;margin:12px 18px 0;padding:12px;background:#f3f6fb;border-radius:10px}.pnl.zero{color:var(--muted)}
  
main.content{padding:0 18px 105px}.intro{padding:25px 18px 20px}.intro h1{font-size:1.65rem;margin:8px 0}.intro p{color:var(--muted);font-size:.83rem;line-height:1.6;margin:0}.eyebrow{font-size:.66rem;font-weight:800;letter-spacing:.12em;color:var(--blue);text-transform:uppercase}.demoNotice{padding:12px 14px;background:#fff7e7;border:1px solid #f5dfb6;border-radius:12px;font-size:.73rem;line-height:1.5;margin:0 0 20px}.filters{display:flex;gap:7px;flex-wrap:wrap}.filters button{padding:9px 12px;border:1px solid var(--line);border-radius:20px;background:#fff;font-size:.73rem;cursor:pointer}.filters button[aria-pressed=true]{background:var(--navy);color:white;border-color:var(--navy)}.count{color:var(--muted);font-size:.72rem;margin:15px 0}.eventCard{border:1px solid var(--line);padding:18px;border-radius:19px;margin:0 0 16px;box-shadow:0 6px 20px #15203a06}.eventCard:first-child{border-top:4px solid var(--gold)}.cardTop{display:flex;align-items:center;justify-content:space-between;gap:8px}.badge{color:var(--blue);font-size:.66rem;font-weight:800}.eventNumber{font-size:1.5rem;font-weight:900;color:#d9e2f2}.eventCard h2{font-size:1.15rem;margin:12px 0 6px}.eventCard p{font-size:.78rem;line-height:1.6;color:var(--muted)}.eventCard .eventDate{color:var(--ink);font-weight:700;margin:0}.chips{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0}.chips span{font-size:.64rem;background:#f1f4f9;padding:6px 8px;border-radius:6px}.cta{display:flex;justify-content:space-between;align-items:center;width:100%;background:var(--blue);color:#fff;border:0;border-radius:12px;padding:14px;text-decoration:none;font-size:.8rem;font-weight:800;cursor:pointer}.eventRules{font-size:.75rem;border-top:1px solid var(--line);padding:12px 0 16px}.eventRules summary{cursor:pointer;font-weight:700}.eventRules p{margin-bottom:0}.formCard{padding:18px;border:1px solid var(--line);border-radius:18px}.formCard h2{font-size:1rem;margin:0 0 18px}.field{display:block;font-size:.76rem;font-weight:700;margin-bottom:16px}.field input,.field select{display:block;width:100%;font:inherit;font-weight:400;padding:12px;margin-top:7px;border:1px solid #cdd5e1;border-radius:10px;background:#fff;color:var(--ink);min-width:0}.field select{font-size:.75rem}.selection{padding:12px;background:#eef4ff;color:#2357a6;border-radius:10px;font-size:.74rem;line-height:1.6;margin:0 0 18px}.check{display:flex;align-items:flex-start;gap:9px;font-size:.74rem;line-height:1.6;margin:18px 0}.check input{margin:4px 0 0;flex-shrink:0;accent-color:var(--blue)}.formNote{font-size:.69rem;color:var(--muted);line-height:1.6;margin:14px 0 0}.confirmation{margin-top:18px;padding:18px;border:1px solid #a5ddc8;border-radius:14px;background:#eefaf5}.confirmation h2{font-size:1rem;margin:0 0 8px}.confirmation p,.confirmation a{font-size:.78rem;line-height:1.6}.confirmation a{color:#17654a;font-weight:700}:focus-visible{outline:3px solid #2674ff;outline-offset:3px}
