/* Exposed FX Journal: the app. Built on base.css tokens, so light mode carries through. Phones get a bottom tab bar. */
.jr{background:var(--bg);min-height:100vh;font-variant-numeric:tabular-nums}
.jr.lock{overflow:hidden}
.jr svg:not(.jc){width:18px;height:18px;flex:none}
.jr .btn svg{width:16px;height:16px}
.jr .btn.xs svg{width:15px;height:15px}
.jr .btn.full{width:100%}
.jr .up{color:var(--up)}
.jr .dn{color:var(--loss)}
.jr .dim{color:var(--muted)}
.jr .blk{display:block;margin-top:2px;font-weight:400}
.jr :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.jr a:not(.btn){color:inherit}
.jr hr{border:0;border-top:1px solid var(--line)}

/* ------------------------------------------------------------ shell: sidebar + body */
.j-shell{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh;background:linear-gradient(90deg,var(--surface) 231px,var(--line) 231px 232px,transparent 232px)}
.j-side{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:18px;padding:18px 12px 14px;border-right:1px solid var(--line);background:var(--surface)}
.j-side .mark{display:flex;padding:6px 10px 8px}
.j-nav{display:flex;flex-direction:column;gap:2px;overflow-y:auto;flex:1;margin:0 -4px;padding:0 4px}
.j-nav a{display:flex;align-items:center;gap:11px;padding:9px 10px;border-radius:10px;text-decoration:none;color:var(--fg2);font-size:14.5px;font-weight:500;transition:background .12s,color .12s}
.j-nav a svg{color:var(--muted);transition:color .12s}
.j-nav a:hover{background:rgba(var(--fg-rgb),.05);color:var(--fg)}
.j-nav a[aria-current]{background:rgba(var(--accent-rgb),.12);color:var(--fg)}
.j-nav a[aria-current] svg{color:var(--accent)}
.j-nav em{margin-left:auto;font-style:normal;font-size:11.5px;font-weight:700;min-width:22px;text-align:center;padding:1px 6px;border-radius:6px;background:rgba(var(--fg-rgb),.08);color:var(--fg2)}
.j-nav-site{flex:0 0 auto;overflow:visible;padding-top:10px;border-top:1px solid var(--line)}
.j-nav-site a{font-size:13.5px;padding:7px 10px}
.j-side-f{display:flex;align-items:center;gap:10px;padding:12px 6px 0;border-top:1px solid var(--line)}
.j-side-f .who{display:flex;flex-direction:column;min-width:0;font-size:13px}
.j-side-f .who b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.j-side-f .who a{color:var(--muted);font-size:12.5px}
.j-scrim{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:39}
.j-body{min-width:0;display:flex;flex-direction:column;--jw:1440px;--jg:max(28px,calc((100% - var(--jw)) / 2 + 28px))}   /* content stays centred on wide or zoomed-out screens */
.j-demo{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px var(--jg);background:var(--surface2);border-bottom:1px solid var(--line);font-size:14px;color:var(--fg2)}
.j-demo b{color:var(--gold)}
.j-top{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:14px var(--jg);background:rgba(var(--bg-rgb),.82);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.j-top h1{font:700 19px var(--disp);letter-spacing:-.015em;margin-right:auto}
.j-menu{display:none;width:40px;height:40px;place-items:center;margin-left:-8px;border-radius:8px;border:0;background:transparent;color:inherit;cursor:pointer}
.j-menu:hover{background:var(--surface2)}
.j-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.j-sel select{appearance:none;font:500 14px var(--body);color:var(--fg);background:linear-gradient(45deg,transparent 50%,var(--fg2) 50%) calc(100% - 18px) 50%/5px 5px no-repeat,linear-gradient(135deg,var(--fg2) 50%,transparent 50%) calc(100% - 13px) 50%/5px 5px no-repeat,var(--surface);border:1px solid var(--line2);border-radius:10px;padding:7px 30px 7px 14px;max-width:210px;cursor:pointer}
.j-sel select:focus{outline:none;border-color:var(--accent)}
.j-seg{display:inline-flex;padding:3px;border-radius:10px;border:1px solid var(--line2);background:var(--surface)}
.j-seg button{border:0;background:transparent;color:var(--fg2);font:600 13px var(--body);padding:5px 10px;border-radius:7px;cursor:pointer}
.j-seg button:hover{color:var(--fg)}
.j-seg button[aria-checked=true]{background:rgba(var(--accent-rgb),.16);color:var(--accent)}
.j-more b{font-size:11.5px;min-width:19px;height:19px;display:inline-grid;place-items:center;border-radius:6px;background:var(--accent);color:var(--on-accent)}
.j-fpanel{margin:0 var(--jg);padding:16px;border:1px solid var(--line);border-top:0;border-radius:0 0 12px 12px;background:var(--surface)}
.j-fgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.j-fgrid label{display:flex;flex-direction:column;gap:5px;font-size:12.5px;color:var(--muted)}
.j-fgrid .full{grid-column:1/-1}
.j-fgrid .field{padding:8px 11px;font-size:14px;border-radius:10px}
.j-fpanel-f{display:flex;justify-content:flex-end;margin-top:12px}
.j-chips{display:flex;flex-wrap:wrap;gap:6px;padding:12px var(--jg) 0}
.j-chips .chip{border:0;cursor:pointer;font-family:inherit}
.j-chips .chip:hover{color:var(--fg)}
.j-chips .cx{width:13px;height:13px}
.j-main{padding:22px 28px 64px;display:flex;flex-direction:column;gap:18px;max-width:var(--jw);width:100%;margin-inline:auto;outline:none}

/* ------------------------------------------------------------ cards, tiles, layout */
.j-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:18px 20px;min-width:0}
.j-card.flush{padding:0;overflow:hidden}
.j-ch{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.j-ch h2{font-size:15.5px;font-weight:600}
.j-sub{font-size:12.5px;color:var(--muted);margin:10px 0 2px}
.j-grid2{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:18px;align-items:start}
.j-stack{display:flex;flex-direction:column;gap:18px;min-width:0}
.j-metrics{columns:3 300px;column-gap:18px}
.j-metrics>.j-card{break-inside:avoid;margin-bottom:18px;display:block}
.j-grid2.even{grid-template-columns:repeat(2,minmax(0,1fr))}
.j-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.j-tile{position:relative;display:flex;flex-direction:column;gap:3px;padding:15px 16px;border-radius:12px;background:var(--surface);border:1px solid var(--line);min-width:0}
.j-tile .lab{font-size:12.5px}
.j-tile .v{font-size:23px;font-weight:600;letter-spacing:-.02em;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.j-tile .s{font-size:12.5px;color:var(--muted);line-height:1.35}
.j-tile.hero{grid-column:span 2;border-color:var(--line2)}
.j-tile.hero .v{font:800 36px/1.1 var(--disp);letter-spacing:-.035em}
/* the overview's six tiles: one row when there's room, otherwise the headline on its own row above five, never one left over */
.j-main{container-type:inline-size}
@container (min-width:640px) and (max-width:1140px){.j-tiles.ov{grid-template-columns:repeat(5,minmax(0,1fr))}.j-tiles.ov .j-tile.hero{grid-column:1/-1}}
@container (min-width:1141px){.j-tiles.ov{grid-template-columns:repeat(7,minmax(0,1fr))}}
.j-tiles.sm .j-tile{padding:12px 14px}
.j-tiles.sm .j-tile .v{font-size:19px}
.j-chart{width:100%;min-height:60px;position:relative}
.j-chart.sm{min-height:40px}
.j-empty{padding:26px 8px;text-align:center;color:var(--muted);font-size:14px;display:flex;flex-direction:column;align-items:center;gap:14px}
.j-empty p{max-width:52ch}
.j-onb{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:34px 12px}
.j-onb h2{font:700 22px var(--disp);letter-spacing:-.02em}
.j-onb p{color:var(--fg2);max-width:56ch}
.j-onb-a{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:6px}
.j-lead{color:var(--fg2);margin-bottom:14px;max-width:80ch}
.j-tbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.j-tbar>.fine{max-width:70ch}
.j-showmore{display:flex;justify-content:center}

/* ------------------------------------------------------------ insights and discipline */
.j-ins{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.j-ins li{display:grid;grid-template-columns:8px 1fr auto;gap:12px;align-items:start;padding:11px 0;border-bottom:1px solid var(--line);font-size:14px;line-height:1.45}
.j-ins li:last-child{border-bottom:0}
.j-ins li i{width:8px;height:8px;border-radius:2px;margin-top:7px;background:var(--muted)}
.j-ins li.good i{background:var(--up)}
.j-ins li.bad i{background:var(--loss)}
.j-ins li.info i{background:var(--gold)}
.j-ins li a{font-size:13px;color:var(--accent);text-decoration:none;white-space:nowrap;align-self:center}
.j-ins li a:hover{text-decoration:underline}
.j-disc{display:flex;flex-direction:column;align-items:flex-start;gap:8px;font-size:14px;color:var(--fg2)}
.j-disc .big{font:800 34px var(--disp);letter-spacing:-.03em;color:var(--fg)}
.j-disc .big.up{color:var(--up)}
.j-disc .big.dn{color:var(--loss)}
.j-disc a:not(.btn){color:var(--accent);font-size:13px}

/* ------------------------------------------------------------ account limits */
.j-lim{display:flex;flex-direction:column;gap:10px}
.j-lim+.j-lim{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.j-lim h3{font-size:14.5px;font-weight:600}
.j-limg{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px 22px}
.j-limr{display:flex;flex-direction:column;gap:6px}
.j-limr .t{display:flex;flex-direction:column;gap:2px;font-size:12.5px;color:var(--fg2)}
.j-limr .t b{color:var(--fg);font-weight:600;font-size:15px}
.j-limr .bar{height:6px;border-radius:2px;background:rgba(var(--fg-rgb),.08);overflow:hidden}
.j-limr .bar i{display:block;height:100%;border-radius:2px;background:var(--accent)}
.j-limr.warn .bar i{background:var(--gold)}.j-limr.warn .t b{color:var(--gold)}
.j-limr.bad .bar i{background:var(--loss)}.j-limr.bad .t b{color:var(--loss)}
.j-limr.done .bar i{background:var(--up)}
.j-limr .fine{font-size:12px}
.j-acc .j-lim .lab{font-size:12.5px}
details.j-limf{border-top:1px solid var(--line);padding:14px 0 0}
details.j-limf summary{cursor:pointer;font-size:14px;font-weight:600;color:var(--fg)}
details.j-limf[open] summary{margin-bottom:8px}
details.j-limf .formgrid{margin-top:10px}
.j-pair{display:flex;gap:8px}
.j-pair .field{flex:1;min-width:0}
.jr .formgrid .j-pair select.j-u{flex:none;width:auto;padding-right:34px}
.j-demonote{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:auto;padding-top:16px;border-top:1px solid var(--line);font-size:14px;color:var(--fg2)}
.j-demonote b{color:var(--fg)}
.j-demonote p{max-width:62ch}

/* ------------------------------------------------------------ tables */
.j-tw{overflow-x:auto;-webkit-overflow-scrolling:touch}
.j-t{width:100%;border-collapse:collapse;font-size:13.5px}
.j-t th{text-align:left;font-weight:500;font-size:12.5px;color:var(--muted);padding:9px 10px;border-bottom:1px solid var(--line);white-space:nowrap;background:var(--surface);position:sticky;top:0}
.j-t th.r,.j-t td.r{text-align:right}
.j-t td{padding:9px 10px;border-bottom:1px solid rgba(var(--fg-rgb),.05);white-space:nowrap}
.j-t tbody tr:last-child td{border-bottom:0}
.j-t tr.click{cursor:pointer}
.j-t tr.click:hover td{background:rgba(var(--fg-rgb),.035)}
.j-t tr.sel td{background:rgba(var(--accent-rgb),.07)}
.j-t .ck{width:34px;padding-right:0}
.j-t .ck input{width:16px;height:16px;accent-color:var(--accent);cursor:pointer}
.j-t .sort{border:0;background:none;color:inherit;font:inherit;cursor:pointer;padding:0}
.j-t .sort:hover{color:var(--fg)}
.j-t td.tg{display:flex;gap:4px}
.j-t td.ic{text-align:right;color:var(--muted)}
.j-t td.ic svg{width:15px;height:15px;margin-left:5px;vertical-align:-3px}
.j-t td.ic .unrev{display:inline-block;width:7px;height:7px;border-radius:1px;background:var(--accent);margin-left:7px;vertical-align:1px}
.j-t.grp td:first-child{white-space:normal;min-width:120px}
.j-t.mgrid td.hc.pos,.j-t.mgrid td.hc.neg{--r:calc(.6px + var(--a) * 3.4px);background-image:radial-gradient(circle,var(--dot) var(--r),transparent calc(var(--r) + .6px));background-size:7px 7px;background-position:center}
.j-t.mgrid td.hc.pos{--dot:rgba(var(--up-rgb),.7)}
.j-t.mgrid td.hc.neg{--dot:rgba(var(--loss-rgb),.7)}
.j-t.mgrid td.hc{color:var(--fg)}
.j-t.mgrid td.hc span{padding:1px 4px;border-radius:4px;background:var(--surface)}
.j-t.mgrid td{padding:8px 9px;border:2px solid var(--surface)}
.j-t.mgrid{table-layout:fixed;min-width:820px}
.j-t.mgrid th:first-child,.j-t.mgrid td:first-child{width:64px}
.j-t.mgrid th:last-child,.j-t.mgrid td:last-child{width:92px}
.j-dir{display:inline-block;font-size:12px;font-weight:600;padding:2px 8px;border-radius:6px}
.j-dir.l{background:rgba(var(--up-rgb),.13);color:var(--up)}
.j-dir.s{background:rgba(var(--loss-rgb),.13);color:var(--loss)}
.j-pbc{font-size:12.5px;color:var(--fg2)}
.j-tag{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:500;padding:2px 9px;border-radius:6px;background:rgba(var(--fg-rgb),.07);color:var(--fg2);border:1px solid transparent;white-space:nowrap;font-family:inherit}
.j-tag.mistake{background:rgba(var(--loss-rgb),.1);color:var(--loss)}
.j-tag.emotion{background:rgba(var(--fg-rgb),.08);color:var(--fg2)}
.j-tag.custom{background:rgba(var(--accent-rgb),.1);color:var(--accent)}
button.j-tag{cursor:pointer;padding:5px 11px;font-size:13px;opacity:.6;border-color:rgba(var(--fg-rgb),.06)}
button.j-tag:hover{opacity:1}
button.j-tag.on{opacity:1;border-color:currentColor}
button.j-tag.add{opacity:1;background:transparent;border:1px dashed var(--line2);color:var(--muted)}
button.j-tag.add:hover{color:var(--fg);border-color:var(--line3)}
.j-tag .j-x{border:0;background:none;color:inherit;padding:0;margin-right:-3px;cursor:pointer;display:grid;opacity:.7}
.j-tag .j-x svg{width:12px;height:12px}
.j-stars{display:inline-flex;gap:1px;color:var(--line3)}
.j-stars svg{width:14px;height:14px;fill:transparent}
.j-stars .on{color:var(--gold)}
.j-stars .on svg{fill:currentColor}
.j-stars button{border:0;background:none;padding:3px;cursor:pointer;color:inherit;display:grid}
.j-stars button svg{width:22px;height:22px}
.j-stars button.on{color:var(--gold)}
.j-stars button:hover svg{fill:rgba(var(--gold-rgb),.35)}

/* trades toolbar */
.j-tsum{display:flex;gap:14px;align-items:baseline;flex-wrap:wrap;font-size:14px;color:var(--fg2)}
.j-tsum b{color:var(--fg);font-weight:600}
.j-tacts{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.j-search{display:flex;align-items:center;gap:8px;border:1px solid var(--line2);border-radius:10px;padding:0 12px;background:var(--surface);color:var(--muted)}
.j-search:focus-within{border-color:var(--accent)}
.j-search svg{width:15px;height:15px}
.j-search input{border:0;background:none;color:var(--fg);font:14px var(--body);padding:7px 0;width:160px;outline:none}
.j-bulk{position:sticky;top:70px;z-index:15;display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:10px 14px;border-radius:10px;background:var(--surface2);border:1px solid rgba(var(--accent-rgb),.35);box-shadow:0 18px 40px -20px var(--shadow)}
.j-bulk b{font-weight:600;margin-right:4px}
.j-bulk select.field{width:auto;padding:6px 32px 6px 12px;font-size:13.5px;border-radius:8px}

/* ------------------------------------------------------------ drawer: one trade */
.j-drawer{position:fixed;top:0;right:0;bottom:0;z-index:45;width:min(620px,100vw);background:var(--surface);border-left:1px solid var(--line2);box-shadow:-30px 0 80px -30px var(--shadow);overflow-y:auto;transform:translateX(102%);transition:transform .24s cubic-bezier(.2,.8,.2,1);padding:0 24px 30px;visibility:hidden}
.j-drawer.open{transform:none;visibility:visible}
.j-drawer section{padding:18px 0;border-top:1px solid var(--line)}
.j-drawer h3{font-size:14.5px;font-weight:600;margin-bottom:12px}
.j-dh{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:18px 0 12px;background:var(--surface)}
.j-dh h2{font:700 22px var(--disp);letter-spacing:-.02em;display:flex;align-items:center;gap:10px;margin-top:2px}
.j-dnav{display:flex;gap:2px}
.j-dres{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;padding-bottom:16px}
.j-dres b{font:800 30px var(--disp);letter-spacing:-.03em}
.j-dres>span:not(.fine){font-size:18px;font-weight:600}
.j-map{padding:40px 4px 46px}
.j-drawer .j-tcs{padding:16px 0 8px}
.j-tch{display:flex;align-items:flex-end;justify-content:space-between;gap:10px 16px;flex-wrap:wrap;margin-bottom:10px}
.j-drawer .j-tch h3{margin:0 0 2px}
.j-tcr{display:flex;align-items:center;gap:10px;flex:1 1 200px;max-width:300px}
.j-tcr .btn{flex:none}.j-tcr .btn svg{width:13px;height:13px}
.j-tcs-r{flex:1;min-width:0;accent-color:var(--accent)}
.j-tc{min-height:250px;margin:0 -4px}
.j-tcs+.j-map{padding-top:34px}
.j-map .track{position:relative;height:6px;border-radius:2px;background:rgba(var(--fg-rgb),.07);overflow:visible}
.j-map .exc{position:absolute;top:0;height:6px;border-radius:2px;background:rgba(var(--fg-rgb),.12)}
.j-map .run{position:absolute;top:-1px;height:8px;border-radius:2px}
.j-map .run.pos{background:var(--up)}
.j-map .run.neg{background:var(--loss)}
.j-map .m{position:absolute;top:-6px;width:2px;height:18px;margin-left:-1px;background:var(--fg2);border-radius:1px}
.j-map .m em{position:absolute;left:50%;transform:translateX(-50%);font-style:normal;font-size:11px;color:var(--muted);white-space:nowrap;display:flex;flex-direction:column;align-items:center;line-height:1.25}
.j-map .m em b{color:var(--fg2);font-weight:500}
.j-map .m.entry em,.j-map .m.stop em,.j-map .m.worst em{bottom:22px}
.j-map .m.exit em,.j-map .m.target em,.j-map .m.best em{top:22px}
.j-map .m.stop{background:var(--loss)}
.j-map .m.target{background:var(--up)}
.j-map .m.entry,.j-map .m.exit{background:var(--fg);width:3px;margin-left:-1.5px}
.j-map .m.worst,.j-map .m.best{height:10px;top:-2px;background:var(--muted)}
.j-map .m.far.entry em,.j-map .m.far.stop em,.j-map .m.far.worst em{bottom:auto;top:-64px}
.j-map .m.far.exit em,.j-map .m.far.target em,.j-map .m.far.best em{top:54px}
.j-map.fu{padding-top:72px}.j-map.fd{padding-bottom:80px}
.j-map .m.l em{left:0;transform:none;align-items:flex-start}
.j-map .m.r em{left:auto;right:0;transform:none;align-items:flex-end}
.j-dgrid{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:end;margin-bottom:12px}
.j-dgrid label,.j-dgrid>div{display:flex;flex-direction:column;gap:6px}
.j-dgrid .field{padding:9px 12px;font-size:14.5px}
.j-checks{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:10px}
.j-notehd{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.j-saved{min-height:1em}
.j-note{font-size:15px;line-height:1.5}
.j-tagsel{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.j-tagsel .grp{display:flex;flex-direction:column;gap:6px}
.j-tagsel .grp>div,.j-tagsel>div{display:flex;flex-wrap:wrap;gap:6px}
.j-rev{margin-top:14px}
.j-shots{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.j-shots figure{position:relative;margin:0;border-radius:8px;overflow:hidden;border:1px solid var(--line);aspect-ratio:16/10;background:var(--bg)}
.j-shots img{width:100%;height:100%;object-fit:cover;cursor:zoom-in;display:block}
.j-shots .j-x{position:absolute;top:6px;right:6px;width:28px;height:28px;display:grid;place-items:center;border-radius:7px;border:0;background:rgba(0,0,0,.65);color:#fff;cursor:pointer;opacity:0;transition:opacity .12s}
.j-shots figure:hover .j-x,.j-shots .j-x:focus-visible{opacity:1}
.j-shots .j-x svg{width:14px;height:14px}
.j-addshot{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;aspect-ratio:16/10;border:1px dashed var(--line2);border-radius:8px;color:var(--fg2);font-size:13px;cursor:pointer;text-align:center;padding:8px}
.j-addshot:hover{border-color:var(--accent);color:var(--fg)}
.j-addshot input{position:absolute;width:1px;height:1px;opacity:0}
.j-aih{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.j-aih h3{margin:0}
.j-aibox:not(:empty){margin-top:6px}
.j-fix{padding:14px 0;border-top:1px solid var(--line);font-size:14px}
.j-fix summary{cursor:pointer;color:var(--gold)}
.j-fixf{display:flex;gap:10px;align-items:center;margin-top:10px}
.j-fixf .field{padding:9px 12px;font-size:14.5px}
.j-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 20px;margin:0}
.j-facts div{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid rgba(var(--fg-rgb),.05);font-size:13.5px;min-width:0}
.j-facts dt{color:var(--muted)}
.j-facts dd{margin:0;text-align:right;overflow:hidden;text-overflow:ellipsis}
.j-dfoot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:18px;border-top:1px solid var(--line)}

/* coach markdown */
.j-md{display:flex;flex-direction:column;gap:9px;font-size:14.5px;line-height:1.6;color:var(--fg2)}
.j-md h4{font-size:14.5px;color:var(--fg);margin:8px 0 0;font-weight:600}
.j-md h4:first-child{margin-top:0}
.j-md p,.j-md ul,.j-md ol{margin:0}
.j-md ul,.j-md ol{padding-left:20px;display:flex;flex-direction:column;gap:5px}
.j-md b{color:var(--fg);font-weight:600}

/* ------------------------------------------------------------ modal and lightbox */
.j-modal{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.6);display:grid;place-items:center;padding:20px;overflow-y:auto}
.j-mbox{width:min(640px,100%);background:var(--surface);border:1px solid var(--line2);border-radius:14px;box-shadow:0 40px 90px -30px var(--shadow);max-height:calc(100vh - 40px);display:flex;flex-direction:column}
.j-mh{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:18px 22px 6px}
.j-mh h2{font:700 18px var(--disp);letter-spacing:-.015em}
.j-mb{padding:12px 22px;overflow-y:auto;display:flex;flex-direction:column;gap:14px}
.j-mf{display:flex;justify-content:flex-end;gap:10px;padding:14px 22px 20px}
.j-card .j-mf{padding:16px 0 0}
.j-mf .btn.danger{margin-right:auto}
.jr .formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}
.jr .formgrid label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--fg2)}
.jr .formgrid .full{grid-column:1/-1}
.jr .formgrid .field{padding:10px 12px;font-size:15px}
.jr .formgrid .check{flex-direction:row}
.j-unit{position:relative;display:block}
.j-unit em{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-style:normal;font-size:12.5px;color:var(--muted);pointer-events:none;max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.j-unit .field{padding-right:96px}
.j-light{position:fixed;inset:0;z-index:70;background:rgba(0,0,0,.88);display:grid;place-items:center;padding:24px;cursor:zoom-out}
.j-light img{max-width:100%;max-height:100%;border-radius:10px}
.j-light .j-x{position:absolute;top:16px;right:16px;width:44px;height:44px;border-radius:10px;border:0;background:rgba(255,255,255,.12);color:#fff;display:grid;place-items:center;cursor:pointer}

/* ------------------------------------------------------------ daily journal */
.j-dayhd{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.j-dayhd h2{font:700 20px var(--disp);letter-spacing:-.02em}
.j-dayhd .btn:last-child{margin-left:auto}
.j-daylist{display:flex;flex-direction:column}
.j-dayrow{display:grid;grid-template-columns:120px 110px 1fr auto;gap:14px;align-items:center;padding:10px 6px;border-bottom:1px solid rgba(var(--fg-rgb),.05);text-decoration:none;font-size:14px;border-radius:8px}
.j-dayrow:hover{background:rgba(var(--fg-rgb),.035)}
.j-dayrow .d{font-weight:600}
.j-dayrow .fl{display:flex;gap:5px;justify-content:flex-end;flex-wrap:wrap}
.j-dayform{display:flex;flex-direction:column;gap:14px}
.j-tf{display:flex;flex-direction:column;gap:6px}
.j-tf .field{font-size:15px;line-height:1.5}
.j-scales{display:flex;flex-direction:column;gap:12px}
.j-scale{display:flex;flex-direction:column;gap:6px}
.j-scale>div{display:flex;gap:6px}
.j-scale button{flex:1;max-width:56px;padding:8px 0;border-radius:10px;border:1px solid var(--line2);background:transparent;color:var(--fg2);font:600 14px var(--body);cursor:pointer}
.j-scale button:hover{border-color:var(--line3);color:var(--fg)}
.j-scale button[aria-checked=true]{background:rgba(var(--accent-rgb),.16);border-color:rgba(var(--accent-rgb),.6);color:var(--accent)}

/* ------------------------------------------------------------ analytics */
.j-atabs{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--line);margin-bottom:2px}
.j-atabs::-webkit-scrollbar{display:none}
.j-atabs a{flex:none;padding:10px 14px;text-decoration:none;color:var(--fg2);font-size:14px;font-weight:500;border-bottom:2px solid transparent;margin-bottom:-1px}
.j-atabs a:hover{color:var(--fg)}
.j-atabs a[aria-selected=true]{color:var(--fg);border-bottom-color:var(--accent)}
.j-dl{display:flex;flex-direction:column;margin:0}
.j-dl div{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-bottom:1px solid rgba(var(--fg-rgb),.05);font-size:14px}
.j-dl div:last-child{border-bottom:0}
.j-dl dt{color:var(--fg2);display:flex;align-items:center;gap:6px}
.j-dl dd{margin:0;font-weight:600;text-align:right}
.hint{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:4px;font-size:10.5px;font-weight:700;color:var(--muted);border:1px solid var(--line2);cursor:help;position:relative}
.hint:hover::after,.hint:focus::after{content:attr(title);position:absolute;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);width:240px;padding:9px 11px;border-radius:10px;background:var(--surface2);border:1px solid var(--line2);color:var(--fg2);font-size:12.5px;font-weight:400;line-height:1.45;z-index:10;box-shadow:0 16px 40px -16px var(--shadow);white-space:normal;text-align:left}
details.j-tbl{margin-top:10px}
details.j-tbl summary,details.j-help summary{cursor:pointer;font-size:13px;color:var(--muted)}
details.j-tbl summary:hover,details.j-help summary:hover{color:var(--fg)}
details.j-tbl[open] summary{margin-bottom:8px}
.j-simctl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.j-simctl label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--fg2)}
.j-simctl .field{padding:10px 12px;font-size:15px}

/* ------------------------------------------------------------ setups */
.j-pbgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:18px}
.j-pb{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:18px 20px;display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.j-pbh{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%}
.j-pbh h3{font:700 17px var(--disp);letter-spacing:-.015em}
.j-pbs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 10px;margin:0;width:100%;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.j-pbs div{display:flex;flex-direction:column;gap:2px;min-width:0}
.j-pbs dt{font-size:11.5px;color:var(--muted)}
.j-pbs dd{margin:0;font-weight:600;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.j-rules{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:4px;font-size:13.5px;color:var(--fg2)}

/* ------------------------------------------------------------ discipline */
.j-viol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.j-viol li{display:grid;grid-template-columns:70px 1fr auto;gap:12px;align-items:center;padding:9px 4px;border-bottom:1px solid rgba(var(--fg-rgb),.05);font-size:14px}
.j-viol li:last-child{border-bottom:0}
.j-viol a{color:var(--muted);text-decoration:none;font-size:13px}
.j-viol a:hover{color:var(--fg)}

/* ------------------------------------------------------------ AI coach */
.j-coachh{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap}
.j-coachh h2{font:700 22px var(--disp);letter-spacing:-.02em;margin-bottom:6px}
.j-coachh .fine{max-width:64ch;font-size:14px}
.j-credits{display:flex;flex-direction:column;gap:4px;min-width:200px;padding:12px 16px;border-radius:10px;background:var(--surface);border:1px solid var(--line)}
.j-credits b{font-size:18px;font-weight:600}
.j-credits span{font-size:12.5px;color:var(--muted)}
.j-credits .meter{height:5px;border-radius:2px;background:rgba(var(--fg-rgb),.08);overflow:hidden;margin-top:4px}
.j-credits .meter i{display:block;height:100%;background:var(--accent);border-radius:2px}
.j-coach{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px;align-items:start;min-height:560px}
.j-threads{display:flex;flex-direction:column;gap:6px;position:sticky;top:84px;max-height:calc(100vh - 110px);overflow-y:auto;padding-right:4px}
.j-threads .lab{margin:12px 0 2px;font-size:12px}
.j-reps{display:flex;flex-direction:column;gap:6px}
.j-reps .btn{justify-content:flex-start}
.j-th{display:flex;flex-direction:column;gap:1px;padding:9px 11px;border-radius:10px;text-decoration:none;border:1px solid transparent}
.j-th b{font-weight:500;font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.j-th:hover{background:rgba(var(--fg-rgb),.05)}
.j-th.on{background:rgba(var(--accent-rgb),.1);border-color:rgba(var(--accent-rgb),.3)}
.j-chat{display:flex;flex-direction:column;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:18px 20px;min-height:560px}
.j-log{display:flex;flex-direction:column;gap:14px;flex:1;overflow-y:auto;max-height:62vh;padding-right:4px}
.j-log:empty{display:none}
.j-msg{max-width:88%;padding:12px 15px;border-radius:12px;font-size:14.5px;line-height:1.55}
.j-msg.user{align-self:flex-end;background:rgba(var(--accent-rgb),.14);color:var(--fg);border-bottom-right-radius:4px}
.j-msg.assistant{align-self:flex-start;background:transparent;padding-left:0;padding-right:0}
.j-msg.wait p{color:var(--muted);animation:jpulse 1.4s ease-in-out infinite}
.j-msg.err{border-color:rgba(var(--loss-rgb),.4);color:var(--loss)}
@keyframes jpulse{50%{opacity:.45}}
.j-sug{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}
.j-sug .chip{border:1px solid var(--line2);cursor:pointer;font-family:inherit;font-weight:500;padding:7px 13px;white-space:normal;text-align:left}
.j-sug .chip:hover{color:var(--fg);border-color:var(--line3)}
.j-ask{display:flex;gap:10px;align-items:flex-end}
.j-ask .field{min-height:52px;resize:none;font-size:15px}
.j-report{display:flex;flex-direction:column;gap:14px}
.j-reph{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.j-reph h3{font:700 18px var(--disp);letter-spacing:-.015em}
.j-chat>.j-md,.j-report .j-md{font-size:15px}

/* ------------------------------------------------------------ accounts and import */
.j-acc{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:18px 20px;display:flex;flex-direction:column;gap:14px}
.j-acch{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.j-acch>div:first-child{margin-right:auto}
.j-acch h3{font:700 17px var(--disp);letter-spacing:-.015em}
.j-accs{display:flex;gap:14px;align-items:baseline;font-size:14px;color:var(--fg2)}
.j-accs b{color:var(--fg)}
.j-accb{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.j-way{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding-top:14px;border-top:1px solid var(--line)}
.j-way h4{display:flex;align-items:center;gap:8px;font-size:14.5px;font-weight:600;margin:0}
.j-way h4 svg{color:var(--accent)}
.j-plain{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.j-plain li{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:14px}
.j-steps{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:14px;font-size:14.5px;color:var(--fg2);line-height:1.5}
.j-steps b{color:var(--fg);font-weight:600}
.j-steps li>.btn{margin-top:8px}
.j-steps code,.j-copy code{font:13px var(--mono);background:rgba(var(--fg-rgb),.07);padding:2px 6px;border-radius:6px;color:var(--fg);word-break:break-all}
.j-tok{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.j-copy{display:flex;gap:10px;align-items:center;padding:10px 12px;border-radius:8px;background:var(--bg);border:1px solid rgba(var(--accent-rgb),.4)}
.j-copy code{flex:1;background:none;padding:0}
.j-drop{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;padding:28px 16px;border:1.5px dashed var(--line2);border-radius:12px;text-align:center;cursor:pointer;transition:border-color .12s,background .12s}
.j-drop svg{width:26px;height:26px;color:var(--accent)}
.j-drop:hover,.j-drop.over{border-color:var(--accent);background:rgba(var(--accent-rgb),.05)}
.j-drop input{position:absolute;width:1px;height:1px;opacity:0}
.j-imp{display:flex;flex-direction:column;gap:10px;font-size:14px}
.j-imp .j-t{font-size:13px}
.j-help ul{margin:8px 0 0;padding-left:20px;font-size:13.5px;color:var(--fg2);display:flex;flex-direction:column;gap:4px}
.j-tagadmin{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.j-tagadmin h4{font-size:13px;color:var(--muted);font-weight:500;margin:0 0 8px}
.j-tagadmin .j-tagsel{margin-top:0}
.j-data{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}

/* ------------------------------------------------------------ gate */
.j-gate{width:min(460px,100%);display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center}
.j-gate .mark svg{width:34px;height:34px}
.j-gate h1{font:800 28px/1.15 var(--disp);letter-spacing:-.025em;margin-top:8px}
.j-gate p{color:var(--fg2)}
.j-gate .back{font-size:14px;color:var(--muted)}

/* ------------------------------------------------------------ charts */
svg.jc{display:block;overflow:visible;max-width:100%}
svg.jc text{font-family:var(--body);font-variant-numeric:tabular-nums}
svg.jc .ax{font-size:11px;fill:var(--muted)}
svg.jc .lb{font-size:12.5px;fill:var(--fg2)}
svg.jc .vl{font-size:12.5px;fill:var(--fg);font-weight:600}
svg.jc g.bar:focus,svg.jc g.cell:focus{outline:none}
svg.jc g.bar:hover path,svg.jc g.bar:focus path{filter:brightness(1.18)}
svg.jc g.cell:hover rect,svg.jc g.cell:focus rect{stroke:var(--fg);stroke-width:1.5}
svg.jc g.pt:hover circle:last-child{r:6}
.jc-empty{padding:30px 10px;text-align:center;color:var(--muted);font-size:13.5px}
.jt-tip{position:fixed;z-index:95;pointer-events:none;min-width:130px;max-width:280px;padding:9px 11px;border-radius:8px;background:var(--surface2);border:1px solid var(--line2);box-shadow:0 18px 40px -16px var(--shadow);font-size:12.5px;font-variant-numeric:tabular-nums}
.jt-tip .h{font-weight:600;margin-bottom:5px;color:var(--fg)}
.jt-tip .r{display:flex;align-items:center;gap:7px;color:var(--fg2);line-height:1.6}
.jt-tip .r i{width:8px;height:8px;border-radius:2px;flex:none}
.jt-tip .r b{color:var(--fg);font-weight:600}

/* ------------------------------------------------------------ narrower screens */
@media (max-width:1180px){
  .j-grid2,.j-grid2.even{grid-template-columns:minmax(0,1fr)}
  .j-fgrid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:960px){
  .j-shell{grid-template-columns:minmax(0,1fr);background:none}
  .j-side{position:fixed;left:0;top:0;bottom:0;z-index:40;width:264px;transform:translateX(-102%);transition:transform .22s cubic-bezier(.2,.8,.2,1);visibility:hidden}
  .j-side.open{transform:none;visibility:visible;box-shadow:30px 0 80px -30px var(--shadow)}
  .j-menu{display:grid}
  .j-coach{grid-template-columns:minmax(0,1fr)}
  .j-threads{position:static;max-height:none;flex-direction:row;flex-wrap:wrap}
  .j-threads .lab{width:100%}
  .j-threads .btn.full{width:auto}
  .j-reps{flex-direction:row;flex-wrap:wrap}
}
@media (max-width:720px){
  .j-top{padding:10px 16px;gap:10px}
  .j-top h1{font-size:17px}
  .j-filters{width:100%;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none;margin:0 -16px;padding:0 16px 2px;width:calc(100% + 32px)}
  .j-filters::-webkit-scrollbar{display:none}
  .j-filters>*{flex:none}
  .j-fpanel{margin:0 16px}
  .j-fgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .j-chips{padding:10px 16px 0}
  .j-main{padding:16px 16px 56px;gap:14px}
  .j-demo{padding:8px 16px;font-size:13px}
  .j-card{padding:15px 15px;border-radius:12px}
  .j-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .j-tiles.ov>.j-tile:last-child:nth-child(even){grid-column:span 2}
  .j-tile.hero .v{font-size:27px}
  .j-tile .v{font-size:19px}
  .j-t .hm,.j-t .ck,.j-t td.ic,.j-t th:last-child:empty{display:none}
  .j-t th,.j-t td{padding:9px 6px}
  .j-t td.n.dim{font-size:12.5px}
  .j-drawer{padding:0 16px 28px}
  .j-facts{grid-template-columns:minmax(0,1fr)}
  .j-dayrow{grid-template-columns:1fr auto;gap:4px 10px}
  .j-dayrow .fine,.j-dayrow .fl{display:none}
  .j-simctl,.j-accb,.j-tagadmin{grid-template-columns:minmax(0,1fr)}
  .j-pbs{grid-template-columns:repeat(3,minmax(0,1fr))}
  .j-pbgrid{grid-template-columns:minmax(0,1fr)}
  .jr .formgrid{grid-template-columns:minmax(0,1fr)}
  .j-msg{max-width:96%}
  .j-log{max-height:none;overflow:visible}
  .j-search input{width:110px}
  .j-ins li{grid-template-columns:8px 1fr}
  .j-ins li a{grid-column:2}
  .j-viol li{grid-template-columns:60px 1fr}
  .j-viol li .btn{grid-column:2;justify-self:start}
  .j-mh,.j-mb,.j-mf{padding-left:16px;padding-right:16px}
}
@media (prefers-reduced-motion:reduce){.j-drawer,.j-side{transition:none}.j-msg.wait p{animation:none}}
/* sharing an account */
.j-accbtn{display:flex;gap:6px;align-items:center}
.j-accbtn .btn svg{width:13px;height:13px}
.j-accbtn .btn.on{color:var(--accent);border-color:rgba(var(--accent-rgb),.45)}
.j-mfr{display:flex;gap:10px;justify-content:flex-end;width:100%;flex-wrap:wrap}
.j-alerts{margin-top:18px;max-width:72ch}
/* is the edge real? */
.j-edge p{color:var(--fg2);max-width:78ch}
.j-edge p b{color:var(--fg)}.j-edge p b.up{color:var(--up)}.j-edge p b.dn{color:var(--loss)}
.j-card.edge-positive>.j-ch h2{color:var(--up)}.j-card.edge-negative>.j-ch h2{color:var(--loss)}
.j-card[class*=edge-]>.j-ch h2{font:700 20px var(--disp);letter-spacing:-.02em}
.j-ci{position:relative;height:56px;margin:18px 6px 6px}
.j-ci::before{content:"";position:absolute;left:0;right:0;top:24px;height:2px;background:var(--line2)}
.j-ci .band{position:absolute;top:18px;height:14px;border-radius:3px;background:rgba(var(--accent-rgb),.28);border:1px solid rgba(var(--accent-rgb),.6)}
.j-ci .band.positive{background:rgba(var(--up-rgb),.25);border-color:var(--up)}.j-ci .band.negative{background:rgba(var(--loss-rgb),.22);border-color:var(--loss)}
.j-ci .zero{position:absolute;top:10px;width:2px;height:30px;margin-left:-1px;background:var(--muted)}
.j-ci .dot{position:absolute;top:19px;width:12px;height:12px;margin-left:-6px;border-radius:3px;background:var(--fg);border:2px solid var(--surface)}
.j-ci span{position:absolute;top:40px;font-size:12px;color:var(--muted);transform:translateX(-50%);white-space:nowrap;font-variant-numeric:tabular-nums}
.j-ci .zl{top:-8px}
.j-edgechip{display:inline-block;align-self:flex-start;margin:2px 0 8px;padding:3px 10px;border-radius:6px;font-size:12.5px;border:1px solid var(--line2);color:var(--fg2)}
.j-edgechip.positive{border-color:var(--up);color:var(--up)}.j-edgechip.negative{border-color:var(--loss);color:var(--loss)}

/* ------------------------------------------------------------ VIP signal or own idea */
/* gold marks a VIP signal, blue the member's own idea; the label always says which, so colour never stands alone */
.j-org{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;padding:2px 7px;border-radius:6px;white-space:nowrap}
.j-org::before{content:"";width:7px;height:7px;border-radius:1px;background:currentColor}
.j-org.vip{color:var(--gold);background:rgba(var(--gold-rgb),.12)}
.j-org.own{color:var(--own);background:rgba(var(--own-rgb),.12)}
:root[data-mode=light] .j-org.own{color:var(--accent-lo)}
.j-orgsel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.j-orgsel button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:56px;padding:10px 14px;border-radius:10px;border:1px solid var(--line2);background:transparent;color:var(--fg2);font:600 15px var(--body);text-align:left;cursor:pointer;transition:border-color .12s,background .12s,color .12s}
.j-orgsel button span{font:400 12.5px var(--body);color:var(--muted)}
.j-orgsel button:hover{border-color:var(--line3);color:var(--fg)}
.j-orgsel button[aria-checked=true].vip{border-color:var(--gold);background:rgba(var(--gold-rgb),.1);color:var(--fg)}
.j-orgsel button[aria-checked=true].own{border-color:var(--own);background:rgba(var(--own-rgb),.1);color:var(--fg)}
.j-vslead{margin:0 0 16px;color:var(--fg2);font-size:15px;max-width:70ch}
.j-vslead b{color:var(--fg)}
.j-vs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:18px;border-top:1px solid var(--line)}
.j-vsc{padding:16px 0 0}
.j-vsc+.j-vsc{padding-left:20px;border-left:1px solid var(--line)}
.j-vsc h3{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:600;margin:0 0 12px;letter-spacing:-.01em}
.j-vsc h3 i{width:10px;height:10px;border-radius:2px}
.j-vsc.vip h3 i{background:var(--vip)}
.j-vsc.own h3 i{background:var(--own)}
.j-vsc dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 14px;margin:0}
.j-vsc dt{font-size:12.5px;color:var(--muted)}
.j-vsc dd{margin:2px 0 0;font-weight:600;font-size:17px;font-variant-numeric:tabular-nums}
.j-vsempty p{color:var(--fg2);max-width:64ch;margin-bottom:12px}

/* ------------------------------------------------------------ sidebar footer and the phone tab bar */
.j-side .mark small{display:block;margin:4px 0 0}
.j-side-f .who{flex:1}
.j-side-f form{margin:0}
.j-side-f .linkbtn{border:0;background:none;padding:0;color:var(--muted);font-size:12.5px;cursor:pointer;text-decoration:underline;text-underline-offset:.2em}
.j-side-f .linkbtn:hover{color:var(--fg)}
.j-tabbar{display:none}
@media (max-width:720px){
  .j-tabbar{position:fixed;left:0;right:0;bottom:0;z-index:30;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:6px 4px calc(6px + env(safe-area-inset-bottom));background:rgba(var(--bg-rgb),.94);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid var(--line)}
  .j-tabbar a,.j-tabbar button{display:flex;flex-direction:column;align-items:center;gap:3px;min-height:48px;padding:6px 2px 4px;border:0;border-radius:8px;background:none;color:var(--muted);font:500 11px/1.1 var(--body);text-decoration:none;cursor:pointer}
  .j-tabbar svg{width:22px;height:22px}
  .j-tabbar [aria-current]{color:var(--fg)}
  .j-tabbar [aria-current] svg{color:var(--accent)}
  .j-main{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
  .toast{bottom:calc(84px + env(safe-area-inset-bottom))}
  .j-menu{display:none!important}
}

/* ------------------------------------------------------------ the gate: signed out, locked, not a member */
.j-gatewrap{position:fixed;inset:0;z-index:50;background:var(--bg);display:grid;place-items:center;padding:24px;overflow:auto}
.j-gate .tgbox{min-height:44px;display:flex;justify-content:center}
.j-gate .when{font-weight:600;color:var(--fg)}

/* the symbol cell carries the side and where the trade came from on phones */
.j-t td.sym>div{display:flex;align-items:center;gap:6px}
.j-t td.sym .sd{display:none;font-size:12px;font-weight:600}
.j-t td.sym .sd.l{color:var(--up)}.j-t td.sym .sd.s{color:var(--loss)}
.j-nav-site:not(:has(a:not([hidden]))){display:none}
.j-demo .sh{display:none}
@media (max-width:720px){
  .j-t td.hm{display:none}
  .j-t.cmp .tm{display:none}
  .j-card:not(.flush)>.j-tw{margin:0 -15px}
  .j-card:not(.flush)>.j-tw .j-t th:first-child,.j-card:not(.flush)>.j-tw .j-t td:first-child{padding-left:15px}
  .j-t td.sym{white-space:normal;min-width:118px}
  .j-t td.sym>div{flex-wrap:wrap;gap:3px 6px}
  .j-t td.sym b{width:100%}
  .j-t td.sym .sd{display:inline}
  .j-vs{grid-template-columns:minmax(0,1fr)}
  .j-vsc+.j-vsc{padding-left:0;border-left:0;border-top:1px solid var(--line);margin-top:16px}
  .j-demo .lg{display:none}.j-demo .sh{display:inline}
}

/* ------------------------------------------------------------ calendar */
/* The month as tall day cards: a green outline for a winning day, red for a losing one, grey for a day without trades,
   striped for the days of the months either side. Monday to Friday unless weekends are switched on. */
:root{--cal-pos:#2CC29B;--cal-pos-bg:#0E1512;--cal-neg:#E5534B;--cal-neg-line:#B9474A;--cal-neg-bg:#1B1112;--cal-empty:#2A2A2C}
:root[data-mode=light]{--cal-pos:#00846B;--cal-pos-bg:#EDF8F2;--cal-neg:#C0303B;--cal-neg-line:#DE767C;--cal-neg-bg:#FCEFEF;--cal-empty:#E4E6E9}
.j-calw{container-type:inline-size}
.j-calh{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px}
.j-calnav{display:flex;align-items:center;gap:2px;min-width:0;padding:4px;border:1px solid var(--line2);border-radius:10px}
.j-calnav b{min-width:8.5em;text-align:center;font-size:17px;font-weight:500;white-space:nowrap}
.j-calnav button{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:7px;background:none;color:var(--fg2);cursor:pointer}
.j-calnav button:hover{background:var(--surface2);color:var(--fg)}
.j-calnow{flex:none;font-weight:500;font-size:16px}
.j-calwe{display:inline-flex;align-items:center;gap:10px;margin-bottom:22px;font-size:16px;color:var(--fg2);cursor:pointer}
.j-calwe input{appearance:none;display:grid;place-items:center;width:22px;height:22px;margin:0;border:1.5px solid var(--line3);border-radius:5px;background:transparent;cursor:pointer}
.j-calwe input:checked{background:var(--accent);border-color:var(--accent)}
.j-calwe input:checked::after{content:"";width:5px;height:10px;border:solid var(--on-accent);border-width:0 2px 2px 0;transform:translateY(-1px) rotate(45deg)}
.j-cal{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.j-cal.we{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.j-cal .wd{padding-bottom:10px;text-align:center;font-size:15px;font-weight:500;letter-spacing:.04em;color:var(--fg2)}
.j-cal .day{container-type:inline-size;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;aspect-ratio:.74;min-width:0;padding:10% 10% 9%;
  border:1px solid var(--line);border-radius:6px;background:var(--cal-empty);text-decoration:none;overflow:hidden;transition:filter .12s}
.j-cal a.day:hover{filter:brightness(1.18)}
.j-cal .day .n{font-size:clamp(10px,23cqi,14px);line-height:1;color:var(--muted)}
.j-cal .day .res{display:flex;flex-direction:column;align-items:flex-end;gap:3px;max-width:100%;text-align:right}
.j-cal .day b{font-size:clamp(11px,27cqi,17px);font-weight:700;line-height:1.1;letter-spacing:-.01em;white-space:nowrap}
.j-cal .day .c{font-size:clamp(9px,21cqi,13px);line-height:1.2;color:var(--fg2);white-space:nowrap}
.j-cal .day.pos{border:1.5px solid var(--cal-pos);background:var(--cal-pos-bg)}
.j-cal .day.pos b{color:var(--cal-pos)}
.j-cal .day.neg{border:1.5px solid var(--cal-neg-line);background:var(--cal-neg-bg)}
.j-cal .day.neg b{color:var(--cal-neg)}
.j-cal .day.even{border-color:var(--line3);background:var(--surface)}
.j-cal .day.out{background:repeating-linear-gradient(135deg,transparent 0 7px,rgba(var(--fg-rgb),.07) 7px 8px),var(--surface)}
.j-cal .day.out .n{color:rgba(var(--fg-rgb),.32)}
/* cells too narrow for the count (weekends on, on a phone) show the result alone */
@container (max-width:44px){.j-cal .day .c{display:none}}
/* wide screens: shorter cards, so the month fits without scrolling */
@container (min-width:560px){.j-cal .day{aspect-ratio:1.2}}
@container (min-width:900px){.j-cal .day{aspect-ratio:1.6}}
@media (max-width:420px){.j-calcard{padding:14px 12px}.j-calnav b{min-width:0;font-size:15px}.j-calnav button{width:28px;height:32px}.j-calnow{font-size:14px;padding-inline:12px}.j-calwe{font-size:15px}.j-cal{gap:7px}.j-cal .wd{font-size:13px}}
