/* Inter, served from this site (no request to Google): variable font, every weight from 100 to 900. Licence: assets/fonts/LICENSE-Inter.txt */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../assets/fonts/InterVariable.woff2') format('woff2'); }
/* Session Journal · light "liquid" style
   White, chrome black, big soft cards, black pill buttons. Champagne gold is the only accent (titles, links, focus, gains);
   losses use a muted red (--dn), bright red (--danger) is kept for real danger. No blue. */

:root {
  color-scheme: light;
  --bg: #f5f5f3; --bg2: #ececea; --panel: #ffffff; --panel2: #f7f7f5;
  --line: #e8e8e5; --line2: #dadad6;
  --ink: #0c0c0d; --on-ink: #ffffff; --ink2: #3a3a3f; --mut: #5c5c62; --dim: #707076;
  --brand: #5a3ae6; --brand-2: #7457ff; --brand-bg: #efebff; --up: var(--ink); --up-bg: #ececea; --dn: #a84b54; --dn-fill: #d9959c; --dn-bg: #f9eced; --side-sell: #9a9aa0; --brand-ink: #4325c4; --danger: #c4465a; --danger-bg: #fbedf0; --warn: #c58a03;
  /* design tokens: every size in the app comes from here */
  --fs-xs: 11px; --fs-sm: 12.5px; --fs-md: 14px; --fs-lg: 16px; --fs-xl: 20px; --fs-2xl: 26px; /* bigger = display, set per place */
  --r-sm: 8px; --r: 14px; --r2: 20px; --r3: 28px; /* plus 999px for pills */
  --h-sm: 32px; --h-md: 36px; --h-lg: 44px; /* control heights */
  --sh: 0 1px 2px rgba(12,12,13,.04), 0 8px 24px -14px rgba(12,12,13,.14);
  --sh2: 0 2px 8px rgba(12,12,13,.06), 0 28px 70px -28px rgba(12,12,13,.30);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --top: 64px;
}
* { box-sizing: border-box; min-width: 0; }
html { scrollbar-gutter: stable; }
html:has(.land) { scroll-behavior: smooth; } /* only the home page glides to its sections; the app never animates the scroll */
body { margin: 0; background: var(--bg); color: var(--ink); font: var(--fs-md)/1.55 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0; }
::selection { background: var(--brand-bg); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.up { color: var(--up); } .dn { color: var(--dn); } .mut { color: var(--mut); } .dim { color: var(--dim); }
.lbl { font: 500 var(--fs-sm)/1.2 var(--sans); color: var(--mut); }
.hide { display: none !important; }
svg { flex: none; }

/* ================= app shell: top bar + three columns ================= */
.topbar { position: sticky; top: 0; z-index: 30; height: var(--top); display: flex; align-items: center; gap: 18px; padding: 0 20px; background: rgba(245,245,243,.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.mark { width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-sm); letter-spacing: -.02em; flex: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
/* logo left · sections centred in their own pill · notes + avatar right */
.topbar { display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr); }
.topbar .brand { justify-self: start; }
.topnav { position: relative; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; padding: 4px; border-radius: 999px;
  background: var(--panel); box-shadow: 0 0 0 1px var(--line), 0 6px 18px -10px rgba(12,12,13,.28); }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 999px; color: var(--ink2); font-weight: 600; font-size: var(--fs-md); white-space: nowrap;
  transition: color .3s ease, background-color .2s ease, padding .35s cubic-bezier(.3,.7,.2,1), gap .35s cubic-bezier(.3,.7,.2,1); }
.topnav a svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.topnav a span { display: inline-block; max-width: 160px; overflow: hidden; transition: max-width .35s cubic-bezier(.3,.7,.2,1), opacity .25s ease; }
.topnav a:hover:not(.on) { background: rgba(12,12,13,.05); color: var(--ink); }
.topnav a.on { background: var(--ink); color: var(--on-ink); }
/* the dark pill slides from the old section to the new one instead of jumping */
.topnav .tn-ind { position: absolute; z-index: 0; top: 4px; left: 0; height: 38px; width: 0; border-radius: 999px; background: var(--acc, var(--ink));
  box-shadow: 0 6px 14px -6px rgba(12,12,13,.45); transition: transform .38s cubic-bezier(.3,.7,.2,1), width .38s cubic-bezier(.3,.7,.2,1); pointer-events: none; }
.topnav.has-ind a.on { background: transparent !important; }
.topnav.instant a, .topnav.instant a span, .topnav.instant .tn-ind { transition: none !important; }
/* not enough room for every label: first tighter, then icons only (the open section keeps its name) */
.topnav.compact a { padding: 0 12px; gap: 6px; }
.topnav.icons a:not(.on) { padding: 0 13px; gap: 0; }
.topnav.icons a:not(.on) span { max-width: 0; opacity: 0; }
.topbar .right { justify-self: end; display: flex; align-items: center; gap: 8px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #2a2a2e, #0c0c0d); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: var(--fs-md); border: 0; cursor: pointer; box-shadow: 0 0 0 3px #fff, var(--sh); }
.menu { position: fixed; z-index: 70; min-width: 240px; background: var(--panel); border-radius: var(--r); box-shadow: var(--sh2); padding: 6px; animation: pop .14s ease; }
.menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu .who b { display: block; font-size: var(--fs-md); } .menu .who span { color: var(--mut); font-size: var(--fs-sm); }
.menu .who { display: flex; gap: 12px; align-items: flex-start; }
.menu .who > div { display: grid; line-height: 1.4; min-width: 0; }
.menu .who > div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu .who .where { color: var(--dim); font-size: var(--fs-sm); margin-top: 3px; }
.menu .who .avatar { width: 40px; height: 40px; flex: none; cursor: default; box-shadow: none; font-size: var(--fs-md); color: #fff; }
.menu button, .menu a { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); border: 0; background: none; cursor: pointer; text-align: left; font-size: var(--fs-md); color: var(--ink2); }
.menu button:hover, .menu a:hover { background: var(--panel2); color: var(--ink); }
.menu svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.menu .langs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 4px 0; border-top: 1px solid var(--line); margin-top: 6px; }
.menu .langs button { font-size: var(--fs-sm); padding: 7px 10px; }
.menu .langs button.on { background: var(--ink); color: var(--on-ink); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px 20px 60px; max-width: 1760px; margin: 0 auto; align-items: start; }
.layout.l-acc { grid-template-columns: 272px minmax(0, 1fr); }
.layout.l-dash { grid-template-columns: 290px minmax(0, 1fr) 300px; }
.layout.l-one { max-width: 1400px; }
/* notes: a drawer on the right, opened with the "Notes" button */
.layout > .notes-rail { position: fixed; top: var(--top); right: 0; bottom: 0; width: min(360px, 92vw); max-height: none; border-radius: var(--r2) 0 0 var(--r2); z-index: 40; transform: translateX(105%); transition: transform .25s ease; box-shadow: var(--sh2); }
.layout > .notes-rail.open { transform: none; }
/* brand */
.brand { display: flex; align-items: center; gap: 10px; flex: none; font-weight: 700; font-size: var(--fs-lg); letter-spacing: -.03em; color: var(--ink); }
.brand .bmark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 4px 10px rgba(12,12,13,.25)); }
.bname { font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.bname i { font-style: normal; font-weight: 500; opacity: .6; letter-spacing: -.03em; }
.brandlink .bmark { width: 32px; height: 32px; flex: none; filter: drop-shadow(0 3px 8px rgba(12,12,13,.22)); }
@media (max-width: 1200px) { .brand .bname { display: none; } }
.rail { position: sticky; top: calc(var(--top) + 16px); max-height: calc(100vh - var(--top) - 32px); overflow-y: auto; background: var(--panel); border-radius: var(--r2); box-shadow: var(--sh); scrollbar-width: thin; }
.rail-h { display: flex; align-items: center; gap: 8px; padding: 16px 16px 8px; }
.rail-h h3 { font-size: var(--fs-lg); }
.rail-h .sp { flex: 1; }
.content { min-width: 0; container-type: inline-size; }
.page-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 14px; }
.page-h h1 { font-size: var(--fs-2xl); letter-spacing: -.035em; }
.page-h .sp { flex: 1; }
.page-h .btn:not(.lg) { height: var(--h-md); } /* the title row: buttons as tall as the pickers next to them */
.page-h .acc-pick + .dd-btn, .page-h .dd:has(.acc-pick) .dd-btn { max-width: 300px; }
.page-h .dd:has(.acc-pick) .dd-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* accounts rail */
.acc-list { display: grid; padding: 4px 8px 10px; }
.acc-sec { padding: 12px 10px 6px; }
.acc-it { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r); cursor: pointer; border: 0; background: none; text-align: left; width: 100%; transition: background .15s; }
.acc-it:hover { background: var(--panel2); }
.acc-it.on { background: var(--ink); color: var(--on-ink); }
.acc-it.on .mut, .acc-it.on .dim { color: color-mix(in srgb, var(--on-ink) 65%, transparent); }
.acc-it.on .up { color: #b4a3ff; } .acc-it.on .dn { color: #b9b0a6; }
.acc-it .tx { flex: 1; min-width: 0; }
.acc-it.done:not(.on) .r1 b, .acc-it.done:not(.on) .pl { opacity: .6; } /* a passed challenge: history */
.acc-it .tx { display: grid; gap: 3px; }
.acc-it .r1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.acc-it .r1 b { flex: 1; min-width: 0; font-size: var(--fs-md); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-it .r2 { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; }
.acc-it .r2 .mut { overflow: hidden; text-overflow: ellipsis; }
.acc-it .pl { flex: none; text-align: right; font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.acc-it .ph { flex: none; font-size: var(--fs-xs); font-weight: 600; line-height: 1; padding: 4px 7px; border-radius: 999px; background: var(--bg2); color: var(--ink2); }
.acc-it .ph.ok { background: var(--up-bg); color: var(--up); } .acc-it .ph.bad { background: var(--dn-bg); color: var(--dn); }
.acc-it.on .ph { background: color-mix(in srgb, var(--on-ink) 16%, transparent); color: var(--on-ink); }
.health { height: 4px; border-radius: 4px; background: var(--bg2); margin-top: 5px; overflow: hidden; }
.health i { display: block; height: 100%; background: var(--up); border-radius: 4px; }
.health.warn i { background: var(--warn); } .health.err i { background: var(--dn); }
.acc-it.on .health { background: rgba(255,255,255,.2); }

/* notes rail */
.note-new { padding: 4px 14px 10px; display: grid; gap: 8px; }
.note-new textarea { min-height: 76px; resize: vertical; }
.note-new .row { display: flex; gap: 8px; align-items: center; }
.notes { display: grid; gap: 8px; padding: 4px 14px 16px; }
.note-card { position: relative; padding: 12px 14px; border-radius: var(--r); background: #fffbea; border: 1px solid #f3e9b8; font-size: var(--fs-md); line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; cursor: text; }
.note-card.pinned { background: #fff3c4; }
.note-card .meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: var(--fs-xs); color: #8a7a3a; }
.note-card .meta .sp { flex: 1; }
.note-card .meta button { border: 0; background: none; padding: 3px; border-radius: var(--r-sm); cursor: pointer; color: #8a7a3a; display: grid; place-items: center; }
.note-card .meta button:hover { background: rgba(0,0,0,.06); color: var(--ink); }
.note-card .meta svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.note-card textarea { width: 100%; border: 0; background: transparent; resize: vertical; min-height: 80px; font: inherit; outline: none; }

/* ================= controls ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h-lg); padding: 0 20px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); font-weight: 600; font-size: var(--fs-md); letter-spacing: -.01em; cursor: pointer; white-space: nowrap; transition: transform .12s, box-shadow .2s, background .2s; }
.btn:hover { box-shadow: var(--sh); }
.btn:active { transform: scale(.98); }
.btn.pri { background: var(--ink); border-color: var(--ink); color: var(--on-ink); box-shadow: 0 6px 18px -8px rgba(12,12,13,.6), inset 0 1px 0 rgba(255,255,255,.16); }
.btn.pri:hover { background: #26262a; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink2); }
.btn.ghost:hover { background: var(--panel); box-shadow: none; }
.btn.danger { color: var(--dn); }
.btn.sm { height: var(--h-md); padding: 0 15px; font-size: var(--fs-sm); }
.btn.lg { height: 54px; padding: 0 28px; font-size: var(--fs-lg); }
.btn.full { width: 100%; }
.btn.icon { width: var(--h-lg); padding: 0; } .btn.sm.icon { width: var(--h-md); }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn:disabled { opacity: .38; cursor: not-allowed; box-shadow: none; }

.seg { display: inline-flex; border-radius: 999px; background: var(--bg2); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { height: var(--h-sm); padding: 0 14px; border: 0; background: none; border-radius: 999px; color: var(--mut); font-weight: 500; font-size: var(--fs-sm); cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: var(--sh); }

.inp, textarea.inp { height: var(--h-lg); padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--panel); color: var(--ink); font-size: var(--fs-md); width: 100%; transition: border-color .15s, box-shadow .15s; }
textarea.inp { height: auto; padding: 11px 14px; resize: vertical; min-height: 88px; line-height: 1.5; }
.inp:focus, textarea.inp:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 4px rgba(12,12,13,.06); }
.field { display: grid; gap: 7px; }
.field > span { font-size: var(--fs-sm); color: var(--ink2); font-weight: 500; }
.field small { color: var(--dim); font-size: var(--fs-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: center; font-size: var(--fs-md); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }

/* dropdowns (replace native select) */
select.sel { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.dd { position: relative; display: inline-flex; }
.dd.block { display: flex; width: 100%; }
.dd-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; height: var(--h-md); padding: 0 12px 0 16px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); font-size: var(--fs-md); font-weight: 500; cursor: pointer; min-width: 140px; width: 100%; text-align: left; transition: border-color .15s, box-shadow .15s; }
.dd.block .dd-btn { border-radius: var(--r); height: var(--h-lg); }
.dd-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-btn svg { width: 16px; height: 16px; stroke: var(--mut); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.dd-btn:hover { box-shadow: var(--sh); }
.dd-btn.open { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(12,12,13,.06); }
.dd-btn.open svg { transform: rotate(180deg); }
.dd-menu { position: fixed; z-index: 90; background: var(--panel); border-radius: var(--r); box-shadow: var(--sh2); padding: 6px; overflow-y: auto; animation: pop .12s ease; border: 1px solid var(--line); }
.dd-grp { padding: 10px 12px 4px; font-size: var(--fs-xs); font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: .04em; }
.dd-opt { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); border: 0; background: none; cursor: pointer; font-size: var(--fs-md); color: var(--ink2); text-align: left; }
.dd-opt:hover, .dd-opt:focus { background: var(--panel2); color: var(--ink); outline: none; }
.dd-opt.on { color: var(--ink); font-weight: 600; }
.dd-opt svg { width: 16px; height: 16px; stroke: var(--ink); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* choice chips (e.g. Challenge / Funded) */
.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border-radius: var(--r2); border: 1.5px solid var(--line); background: var(--panel); cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s, transform .12s; min-width: 170px; }
.choice:hover { box-shadow: var(--sh); }
.choice:active { transform: scale(.99); }
.choice .ic { width: 36px; height: 36px; border-radius: var(--r); display: grid; place-items: center; background: var(--panel2); flex: none; }
.choice .ic svg { width: 18px; height: 18px; stroke: var(--ink2); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.choice b { display: block; font-size: var(--fs-md); } .choice small { color: var(--mut); font-size: var(--fs-sm); }
.choice.on { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.choice.on small { color: color-mix(in srgb, var(--on-ink) 65%, transparent); }
.choice.on .ic { background: color-mix(in srgb, var(--on-ink) 14%, transparent); } .choice.on .ic svg { stroke: var(--on-ink); }

.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font: 600 var(--fs-xs) var(--sans); background: var(--bg2); color: var(--ink2); white-space: nowrap; }
.pill.up { background: var(--up-bg); color: var(--up); } .pill.dn { background: var(--dn-bg); color: var(--dn); }
.pill.dark { background: var(--ink); color: var(--on-ink); } .pill.info { background: var(--brand-bg); color: var(--brand-ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); display: inline-block; flex: none; }
.dot.ok { background: var(--up); } .dot.warn { background: var(--warn); } .dot.err { background: var(--dn); }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--bg2); color: var(--ink2); font-size: var(--fs-sm); }

/* ================= panels ================= */
.grid { display: grid; gap: 14px; }
.g12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: 1 / -1; }
.pn { background: var(--panel); border-radius: var(--r2); box-shadow: var(--sh); min-width: 0; overflow: hidden; }
.pn-h { display: flex; flex-wrap: wrap; row-gap: 4px; align-items: center; gap: 10px; padding: 16px 20px 6px; min-height: 52px; }
.pn-h h3 { font-size: var(--fs-lg); font-weight: 600; }
.pn-h .num, .pn-h .pill { flex: none; white-space: nowrap; } /* figures and tags in a card title never shrink: they move to the next line */
.pn-h .sp { flex: 1; }
.pn-b { padding: 12px 20px 20px; }
.pn-b.flush { padding: 0 0 8px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.kpis .kpi.big { grid-column: span 2; }
.kpi { padding: 16px 18px; border-radius: var(--r2); background: var(--panel); box-shadow: var(--sh); }
.kpi .v { font: 600 var(--fs-2xl)/1.15 var(--sans); letter-spacing: -.035em; margin-top: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .s { font-size: var(--fs-sm); color: var(--mut); margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi.big { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.kpi.big::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%); }
.kpi.big .lbl, .kpi.big .s { color: rgba(255,255,255,.62); }
.kpi.big .v { font-size: 30px; } .kpi.big .v.up { color: #b4a3ff; } .kpi.big .v.dn { color: #b9b0a6; }

.rules { display: grid; gap: 16px; }
.rule .top-l { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 7px; }
.rule .top-l b { font-weight: 500; font-size: var(--fs-md); }
.rule .top-l span { font-size: var(--fs-sm); color: var(--ink2); font-variant-numeric: tabular-nums; font-weight: 500; }
.bar { height: 8px; border-radius: 999px; background: var(--bg2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--up); border-radius: 999px; transition: width .5s; }
.bar.warn i { background: var(--warn); } .bar.err i { background: var(--dn); } .bar.dark i { background: var(--ink); }
.rule .sub { display: flex; justify-content: space-between; margin-top: 6px; font-size: var(--fs-sm); color: var(--dim); font-variant-numeric: tabular-nums; }

.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.tbl th { text-align: left; font-weight: 500; font-size: var(--fs-sm); color: var(--mut); padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.tbl td { padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr.click { cursor: pointer; } .tbl tbody tr.click:hover td { background: var(--panel2); }
.tbl .r { text-align: right; }
.tbl td.num { font-variant-numeric: tabular-nums; }
.tbl-wrap { overflow: auto; max-height: 72vh; }
.side-b { display: inline-flex; min-width: 50px; justify-content: center; }
.pill.side-b.dn { background: var(--up-bg); color: var(--mut); } /* a sell is a direction, not a loss */

/* calendar: every day is a bar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) minmax(0, 1.15fr); gap: 6px; }
.cal .h { font-size: var(--fs-xs); color: var(--dim); padding: 0 4px 2px; font-weight: 500; text-transform: capitalize; }
.cal .d { position: relative; min-height: 88px; border-radius: var(--r); background: var(--panel2); padding: 8px 9px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; overflow: hidden; transition: background .15s; }
.cal .d:hover { background: var(--bg2); }
.cal .d.out { background: transparent; cursor: default; }
.cal .d.today { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cal .d .n { font-size: var(--fs-xs); color: var(--mut); display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.cal .d .p { font-size: var(--fs-sm); font-weight: 600; letter-spacing: -.02em; margin-top: auto; position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.cal .d .t { font-size: var(--fs-xs); color: var(--dim); position: relative; z-index: 1; }
.cal .d .bx { position: absolute; left: 0; right: 0; bottom: 0; opacity: .18; }
.cal .d.win .bx { background: var(--up); } .cal .d.loss .bx { background: var(--dn-fill); }
.cal .d .ndot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.cal .wk { border-radius: var(--r); border: 1px dashed var(--line2); padding: 8px 9px; display: flex; flex-direction: column; justify-content: center; min-height: 88px; }
.cal .wk .p { font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; }

.list { display: grid; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-top: 1px solid var(--line); }
.li.click { cursor: pointer; } .li.click:hover { background: var(--panel2); }
.empty { padding: 50px 22px; text-align: center; color: var(--mut); display: grid; justify-items: center; gap: 12px; }
.empty h3 { color: var(--ink); font-size: var(--fs-xl); letter-spacing: -.03em; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.tools .sp { flex: 1; }

/* ================= dialogs ================= */
.ov { position: fixed; inset: 0; z-index: 50; background: rgba(12,12,13,.3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; justify-content: flex-end; animation: fade .18s; }
.ov.center { justify-content: center; align-items: center; padding: 20px; }
.drawer { width: min(600px, 100%); height: 100%; background: var(--panel); display: flex; flex-direction: column; animation: slide .22s ease; box-shadow: var(--sh2); }
.modal { width: min(780px, 100%); max-height: calc(100vh - 40px); background: var(--panel); border-radius: var(--r3); display: flex; flex-direction: column; animation: pop .18s ease; overflow: hidden; box-shadow: var(--sh2); }
.modal.wide { width: min(1120px, 100%); height: min(860px, calc(100vh - 40px)); }
.dr-h { display: flex; align-items: center; gap: 12px; padding: 20px 24px 12px; }
.dr-h h2 { font-size: var(--fs-xl); letter-spacing: -.03em; }
.dr-h .sp { flex: 1; }
.dr-b { padding: 8px 24px 22px; overflow-y: auto; overflow-x: hidden; flex: 1; display: grid; gap: 20px; align-content: start; }
.dr-b > * { min-width: 0; }
.bgrid { grid-template-columns: repeat(auto-fill, minmax(min(176px, 100%), 1fr)); }
.rulecmp { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.cards { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.dr-f { padding: 14px 24px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
@keyframes pop { from { transform: translateY(6px) scale(.985); opacity: 0; } }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px; }
.kv > div { padding: 12px 14px; border-radius: var(--r); background: var(--panel2); min-width: 0; }
.kv .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kv .v { font-weight: 600; font-size: var(--fs-lg); margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* one account on the Accounts page: card + actions | details (stacks when the page is narrow) */
.acc-detail { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 22px; padding: 20px; align-items: start; }
.acc-detail > div { min-width: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.card { position: relative; border: 1.5px solid var(--line); border-radius: var(--r2); background: var(--panel); padding: 16px; cursor: pointer; text-align: left; display: grid; gap: 6px; transition: box-shadow .2s, border-color .2s, transform .12s; }
.card:hover { box-shadow: var(--sh); }
.card.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.card b { font-size: var(--fs-lg); font-weight: 600; } .card small { color: var(--mut); font-size: var(--fs-sm); line-height: 1.4; }
.drop { border: 1.5px dashed var(--line2); border-radius: var(--r2); padding: 32px; text-align: center; color: var(--mut); cursor: pointer; display: grid; gap: 6px; justify-items: center; background: var(--panel2); }
.drop:hover, .drop.over { border-color: var(--ink); color: var(--ink); }
.drop svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.note { font-size: var(--fs-sm); color: var(--ink2); padding: 12px 14px; background: var(--panel2); border-radius: var(--r); display: flex; gap: 10px; align-items: flex-start; }
.note svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9; margin-top: 2px; }
.note.info { background: var(--brand-bg); color: var(--brand-ink); } .note.bad { background: var(--dn-bg); color: #8f2c40; }

.mood { display: flex; gap: 6px; }
.mood button { width: 40px; height: 36px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); cursor: pointer; font-size: var(--fs-lg); filter: grayscale(1); opacity: .5; }
.mood button.on { filter: none; opacity: 1; border-color: var(--ink); }

.hbars { display: grid; gap: 9px; }
.hb { display: grid; grid-template-columns: 96px 1fr 86px; gap: 10px; align-items: center; font-size: var(--fs-sm); }
.hb .n { color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb .t { position: relative; height: 18px; }
.hb .t::before { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--line2); }
.hb .t i { position: absolute; top: 3px; height: 12px; border-radius: 999px; }
.hb .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }

#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 99; background: var(--ink); color: var(--on-ink); padding: 12px 20px; border-radius: 999px; font-size: var(--fs-md); transition: .2s; pointer-events: none; box-shadow: var(--sh2); }
#toast.on { opacity: 1; transform: translateX(-50%); }
.chart { width: 100%; display: block; }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart-tip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: var(--on-ink); border-radius: var(--r-sm); padding: 7px 11px; font-size: var(--fs-sm); white-space: nowrap; display: none; font-variant-numeric: tabular-nums; }
.chart-tip .up { color: #b4a3ff; } .chart-tip .dn { color: #b9b0a6; }

/* ================= logos ================= */
.logo { --b: #52525b; position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px rgba(12,12,13,.08), 0 1px 2px rgba(12,12,13,.06); }
.logo img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; }
.logo i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-weight: 700; color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--b) 90%, #fff), color-mix(in srgb, var(--b) 80%, #000)); letter-spacing: -.02em; }
.logo.has-img i { display: none; }
.logo.xs { width: 22px; height: 22px; border-radius: 7px; font-size: 9px; }
.logo.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 11px; }
.logo.md { width: 40px; height: 40px; font-size: 13px; }
.logo.lg { width: 52px; height: 52px; border-radius: 15px; font-size: 16px; }
.logo.xl { width: 72px; height: 72px; border-radius: 20px; font-size: 22px; }
.stack { display: inline-flex; }
.stack .logo { margin-left: -8px; box-shadow: 0 0 0 2px #fff; }
.stack .logo:first-child { margin-left: 0; }

/* firm / broker card tinted with its brand colour */
.bcard { --b: #52525b; position: relative; display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: var(--r2); border: 1.5px solid var(--line); cursor: pointer; text-align: left; background: linear-gradient(165deg, color-mix(in srgb, var(--b) 10%, #fff) 0%, #fff 62%); transition: box-shadow .2s, transform .12s, border-color .2s; }
.bcard:hover { box-shadow: var(--sh); border-color: color-mix(in srgb, var(--b) 35%, var(--line)); }
.bcard:active { transform: scale(.99); }
.bcard.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--sh); }
.bcard b { font-size: 14.5px; font-weight: 600; line-height: 1.25; } .bcard small { color: var(--mut); font-size: 12.5px; }
.ck { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; }
.ck svg { width: 14px; height: 14px; stroke: var(--on-ink); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px; }
.search { position: relative; display: flex; }
.search input { padding-left: 40px; border-radius: 999px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: var(--mut); fill: none; stroke-width: 2; }

/* ================= account cards (like a bank card) ================= */
.acards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(232px, 100%), 1fr)); gap: 16px; }
.acard { --b: #52525b; position: relative; aspect-ratio: 1.586; border-radius: 20px; padding: 16px 18px; color: #fff; border: 0; cursor: pointer; text-align: left; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--b) 92%, #fff) 0%, color-mix(in srgb, var(--b) 78%, #000) 46%, #0d0d10 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 18px 34px -18px color-mix(in srgb, var(--b) 70%, #000); transition: transform .18s, box-shadow .2s; }
.acard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.18) 45%, transparent 60%); }
.acard::after { content: ""; position: absolute; right: -30%; bottom: -60%; width: 90%; height: 120%; z-index: -1; border-radius: 50%; border: 18px solid rgba(255,255,255,.06); }
.acard:hover { transform: translateY(-3px); }
.acard.on { outline: 3px solid var(--ink); outline-offset: 3px; }
.acard .top { display: flex; align-items: center; gap: 10px; }
.acard .top .logo { box-shadow: 0 0 0 1px rgba(255,255,255,.4); }
.acard .top b { font-size: 13px; font-weight: 600; opacity: .92; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acard .chip { width: 34px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #f4e3a7, #c9a64a 60%, #f1dc93); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); opacity: .95; }
.acard .size { font-size: 30px; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.acard .stats { display: flex; gap: 14px; font-size: 11.5px; }
.acard .stats span { display: grid; gap: 1px; }
.acard .stats em { font-style: normal; opacity: .65; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; }
.acard .stats b { font-weight: 600; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.acard .ph { position: absolute; top: 16px; right: 16px; height: 22px; padding: 0 9px; border-radius: 999px; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; }
.acard .okc { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.acard .okc svg { width: 15px; height: 15px; stroke: var(--ink); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* rules comparison table in the wizard */
.rulecmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.rulecmp .col { border-radius: var(--r2); background: var(--panel2); padding: 16px; }
.rulecmp .col.on { background: var(--ink); color: var(--on-ink); }
.rulecmp .col.on dt { color: color-mix(in srgb, var(--on-ink) 60%, transparent); }
.rulecmp h4 { font-size: var(--fs-md); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.rulecmp h4 svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
svg:not([width]):not([class]) { max-width: 100%; }
.rulecmp dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; font-size: var(--fs-sm); }
.rulecmp dt { color: var(--mut); } .rulecmp dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.wz-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.wz-steps span { height: 30px; padding: 0 13px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--dim); background: var(--panel2); }
.wz-steps span.on { background: var(--ink); color: var(--on-ink); }
.wz-steps span.done { color: var(--ink2); }
.wz-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* score */
.score { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.score .big { position: relative; width: 124px; height: 124px; }
.score .big b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 38px; font-weight: 600; letter-spacing: -.05em; }
.score .parts { display: grid; gap: 10px; }
.score .part { display: grid; grid-template-columns: 104px 1fr 30px; gap: 10px; align-items: center; font-size: var(--fs-sm); }
.score .part span:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.score .ticks { display: flex; gap: 3px; }
.score .ticks i { flex: 1; height: 8px; border-radius: 3px; background: var(--bg2); }
.score .ticks i.on { background: var(--brand); }

/* ================= auth ================= */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; position: relative; overflow: hidden; background: #fff; }
.auth-box { position: relative; z-index: 1; width: min(440px, 100%); background: rgba(255,255,255,.86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: var(--r3); padding: 30px; display: grid; gap: 16px; box-shadow: var(--sh2); }
.auth-box .term { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--mut); background: var(--panel2); border-radius: var(--r); padding: 11px 13px; }
.auth-box .term svg { width: 15px; height: 15px; margin-top: 1px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.auth-box .term.ok { color: var(--up); background: var(--up-bg); font-size: 13.5px; }
.auth { padding: 84px 20px 40px; align-content: center; }
.auth-top { position: absolute; z-index: 3; top: 16px; left: 22px; right: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-top .dd-btn { min-width: 130px; }
.auth-top .brandlink { padding: 5px 14px 5px 5px; border-radius: 999px; background: rgba(255,255,255,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
/* sign-up questionnaire + sign in */
.qbox { width: min(640px, 100%); gap: 22px; padding: clamp(22px, 4vw, 36px); }
.qbox.narrow { width: min(440px, 100%); }
.qprog { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--mut); font-weight: 500; white-space: nowrap; }
.qprog .bar { flex: 1; height: 6px; border-radius: 99px; background: var(--bg2); overflow: hidden; }
.qprog .bar i { display: block; height: 100%; background: var(--ink); border-radius: inherit; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.qstep { display: grid; gap: 20px; animation: qin .3s cubic-bezier(.2,.8,.2,1); }
@keyframes qin { from { opacity: 0; transform: translateY(10px); } }
.qhead h1 { font-size: clamp(23px, 3.6vw, 30px); letter-spacing: -.04em; line-height: 1.15; }
.qhead p { color: var(--mut); margin-top: 8px; font-size: 15px; }
.qform { display: grid; gap: 14px; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt { position: relative; display: grid; gap: 2px; align-content: center; min-height: 64px; padding: 12px 46px 12px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--panel); text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .12s; }
.opt:hover { border-color: var(--line2); box-shadow: var(--sh); }
.opt:active { transform: scale(.985); }
.opt b { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.opt small { color: var(--mut); font-size: 12.5px; line-height: 1.35; }
.opt::after { content: ""; position: absolute; right: 15px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 1.5px solid var(--line2); background: var(--panel) center / 12px no-repeat; transition: background-color .15s, border-color .15s; }
.opt.multi::after { border-radius: 7px; }
.opt.on { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(12,12,13,.07); }
.opt.on::after { background-color: var(--ink); border-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.qfoot { display: flex; align-items: center; gap: 8px; }
.qfoot .sp { flex: 1; }
.qfoot .btn.pri { min-width: 132px; }
.qalt { text-align: center; color: var(--mut); font-size: 14px; }
.qalt a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.uname { position: relative; }
.uname::before { content: "@"; position: absolute; left: 14px; top: 50%; transform: translateY(-52%); color: var(--mut); font-weight: 500; pointer-events: none; }
.uname .inp { padding-left: 31px; }
.field .hint { transition: color .15s; } .field .hint.ok { color: var(--up); } .field .hint.bad { color: var(--dn); }
.pw { position: relative; } .pw .inp { padding-right: 76px; }
.pw .btn { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); height: 32px; color: var(--mut); }
.pw .btn:active { transform: translateY(-50%) scale(.98); }
.or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12.5px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gbox { min-height: 50px; display: grid; justify-items: center; }
.gbox > div { width: 100%; display: grid; justify-items: center; }
.gbtn { gap: 11px; font-weight: 600; }
.gbtn svg { width: 19px; height: 19px; stroke: none; }
.qsum { display: flex; gap: 14px; align-items: center; padding: 14px 14px 14px 16px; border-radius: 20px; background: var(--panel2); border: 1px solid var(--line); }
.qsum .who { flex: 1; display: grid; gap: 1px; }
.qsum .who b { font-size: 16px; letter-spacing: -.02em; }
.qsum .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.qsum .tags .tag { background: var(--panel); border: 1px solid var(--line); }
.avatar.lg { width: 52px; height: 52px; font-size: 17px; flex: none; cursor: default; }
/* add trades: automatic or manual + the read-only promise */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.way { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; text-align: left; padding: 18px 48px 18px 18px; border-radius: var(--r2); border: 1.5px solid var(--line); background: var(--panel); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .12s; }
.way:hover:not(:disabled) { border-color: var(--line2); box-shadow: var(--sh); }
.way:active:not(:disabled) { transform: scale(.99); }
.way:disabled { opacity: .55; cursor: not-allowed; }
.way .ic { width: 42px; height: 42px; border-radius: var(--r); display: grid; place-items: center; background: var(--panel2); }
.way .ic svg { width: 20px; height: 20px; stroke: var(--ink2); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.way b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--fs-lg); letter-spacing: -.02em; }
.way small { display: block; color: var(--mut); font-size: var(--fs-sm); line-height: 1.45; margin-top: 5px; }
.way::after { content: ""; position: absolute; right: 16px; top: 20px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line2); background: var(--panel) center / 12px no-repeat; }
.way.on { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(12,12,13,.07); }
.way.on .ic { background: var(--ink); } .way.on .ic svg { stroke: var(--on-ink); }
.way.on::after { background-color: var(--ink); border-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.trust { display: flex; gap: 12px; align-items: flex-start; padding: 15px 18px; border-radius: var(--r2); background: var(--up-bg); color: #6e5114; }
.trust > svg { width: 22px; height: 22px; margin-top: 1px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.trust b { display: block; font-size: var(--fs-md); }
.trust ul { margin: 5px 0 0; padding-left: 17px; font-size: var(--fs-sm); line-height: 1.65; }
.trust.compact { padding: 12px 15px; } .trust.compact ul { line-height: 1.5; }
@media (max-width: 640px) { .ways { grid-template-columns: 1fr; } }
.spin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: sjspin .8s linear infinite; flex: none; }
.btn:not(.pri) .spin { border-color: var(--line2); border-top-color: var(--ink); }
@keyframes sjspin { to { transform: rotate(360deg); } }
.pickacc { display: grid; gap: 10px; padding: 14px; border-radius: var(--r); background: var(--brand-bg); }
[data-theme="dark"] .pickacc { background: rgba(91,140,255,.12); }
.linkb { border: 0; background: none; padding: 0; font: inherit; color: var(--ink2); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.bcard.soon { opacity: .55; } .bcard.soon:hover { opacity: .8; }
/* challenge passed → funded */
.passed { display: grid; gap: 18px; justify-items: center; text-align: center; padding-top: 8px; }
.passed .badge { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: var(--up); box-shadow: 0 0 0 10px var(--up-bg); animation: pop .35s cubic-bezier(.2,1.4,.4,1); }
.passed .badge svg { width: 36px; height: 36px; stroke: #fff; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.passed h2 { font-size: clamp(22px, 3.4vw, 28px); letter-spacing: -.04em; }
.passed p { color: var(--mut); max-width: 52ch; }
.passed .flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.passed .flow svg { width: 18px; height: 18px; stroke: var(--dim); fill: none; stroke-width: 2; }
.passed .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; width: 100%; }
.passed .facts div { background: var(--panel2); border-radius: var(--r); padding: 10px 12px; text-align: left; }
.passed .facts b { display: block; font-size: var(--fs-lg); letter-spacing: -.02em; }
.passed .facts span { color: var(--mut); font-size: var(--fs-sm); }
.state { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: var(--r); font-size: var(--fs-md); }
.state svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.state.ok { background: var(--up-bg); color: #6e5114; } .state.bad { background: var(--dn-bg); color: #a3364a; }
.state a, .state button { margin-left: auto; }
.acard .res { position: absolute; left: 14px; bottom: 14px; }

/* trade sheet (Entry details · Result · Analysis) */
.sheet { gap: 14px; }
.sheet-top { display: flex; gap: 6px; flex-wrap: wrap; }
.pill.be { background: #fff4d6; color: #a06a00; }
.sheet-sec { border-top: 1px solid var(--line); padding-top: 12px; }
.sheet-sec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-md); color: var(--ink2); padding: 2px 0 8px; user-select: none; }
.sheet-sec > summary::-webkit-details-marker { display: none; }
.sheet-sec > summary svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .15s; }
.sheet-sec:not([open]) > summary svg { transform: rotate(-90deg); }
.props { display: grid; gap: 2px; }
.prop { display: grid; grid-template-columns: 168px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 40px; }
.prop .k { display: flex; align-items: center; gap: 9px; color: var(--mut); font-size: var(--fs-md); }
.prop .k svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.prop .v { display: flex; align-items: center; gap: 8px; min-width: 0; }
.prop .v > .inp { height: 36px; background: var(--panel2); border-color: transparent; }
.prop .v > .inp:hover { border-color: var(--line2); }
.prop .v > .inp:focus { background: var(--panel); border-color: var(--ink); }
.prop .v > .inp[readonly] { background: transparent; border-color: transparent; box-shadow: none; padding-left: 0; cursor: default; font-weight: 500; }
.prop .v .dd { flex: 1; }
.prop .calc { font-weight: 600; font-variant-numeric: tabular-nums; }
.prop .auto { flex: none; font-size: var(--fs-xs); font-weight: 600; padding: 3px 7px; border-radius: 999px; background: var(--brand-bg); color: var(--brand-ink); }
.prop .chips { gap: 5px; } .prop .chipb { height: var(--h-sm); padding: 0 11px; font-size: var(--fs-sm); }
.chipb.acc { display: inline-flex; align-items: center; gap: 7px; padding-left: 5px; max-width: 100%; white-space: nowrap; }
.chipb.acc span { overflow: hidden; text-overflow: ellipsis; }
.chipb.acc .logo { width: 20px; height: 20px; border-radius: 6px; }
.sheet-block { display: grid; gap: 8px; margin-top: 10px; }
.obs { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.obs th { text-align: left; font-size: var(--fs-xs); letter-spacing: .04em; text-transform: uppercase; color: var(--mut); background: var(--panel2); padding: 8px 12px; font-weight: 600; }
.obs th + th, .obs td + td { border-left: 1px solid var(--line); }
.obs td { border-top: 1px solid var(--line); padding: 0; }
.obs input { width: 100%; border: 0; background: none; padding: 10px 12px; font: inherit; font-size: var(--fs-md); }
.obs input:focus { outline: none; background: var(--panel2); }
.shots { display: grid; gap: 6px; }
.shot { display: flex; gap: 6px; align-items: center; }
@media (max-width: 560px) { .prop { grid-template-columns: 1fr; gap: 4px; padding: 4px 0; } }

/* ================= journal: wall of trades, chart first ================= */
.seg .cnt { font-size: var(--fs-xs); opacity: .6; margin-left: 3px; }
.jfeed { display: grid; gap: 26px; }
.jday { display: grid; gap: 12px; scroll-margin-top: calc(var(--top) + 12px); }
.jday-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 2px; }
.jday-h h3 { font-size: var(--fs-lg); letter-spacing: -.02em; text-transform: capitalize; }
.jday-h .sp { flex: 1; } .jday-h b.num { font-size: var(--fs-lg); }
.jnote { background: #fff8e1; border-radius: var(--r); padding: 10px 14px; font-size: var(--fs-md); color: #6b5300; white-space: pre-line; }
.jnote-ed { display: grid; gap: 8px; }
.jnote-ed[hidden], .jnote[hidden] { display: none; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.tcard { background: var(--panel); border-radius: var(--r2); overflow: hidden; box-shadow: var(--sh); cursor: pointer; display: flex; flex-direction: column; transition: transform .15s, box-shadow .2s; }
.tcard:hover { transform: translateY(-2px); box-shadow: var(--sh2); }
.tshot { position: relative; aspect-ratio: 16 / 9; background: #0f1115; overflow: hidden; }
.tshot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.tcard:hover .tshot img { transform: scale(1.02); }
/* no chart yet: a quiet flat area; the drag hint only shows on hover (or while dragging an image over it) */
.tshot.empty { background: var(--panel2); transition: background .2s; }
.tshot.empty .ph { color: var(--dim); }
.tshot.empty .ph b { color: var(--mut); font-weight: 500; font-size: var(--fs-sm); }
.tshot.empty .ph span { opacity: 0; transition: opacity .2s; }
.tcard:hover .tshot.empty, .tshot.empty.over { background: var(--bg2); }
.tcard:hover .tshot.empty .ph span, .tshot.empty.over .ph span { opacity: 1; }
@media (hover: none) { .tshot.empty .ph span { display: none; } }
.tshot .ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; color: var(--mut); text-align: center; }
.tshot .ph svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.tshot .ph b { color: var(--ink2); font-size: var(--fs-md); } .tshot .ph span { font-size: var(--fs-sm); }
.tshot.over { outline: 3px solid var(--brand); outline-offset: -3px; }
.tshot .side { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; color: #fff; backdrop-filter: blur(6px); }
.tshot .side svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.tshot .side.buy { background: rgba(90,58,230,.92); } .tshot .side.sell { background: rgba(154,141,128,.92); }
.tshot .grade { position: absolute; right: 10px; top: 10px; min-width: 30px; height: 26px; padding: 0 8px; border-radius: var(--r-sm); display: grid; place-items: center; font-weight: 800; font-size: var(--fs-sm); color: #fff; }
.grade.gAp { background: #84601a; } .grade.gA { background: var(--up); } .grade.gB { background: #52525b; } .grade.gC { background: #d39a12; } .grade.gF { background: var(--dn); }
.tshot .more { position: absolute; right: 10px; bottom: 10px; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(12,12,13,.7); color: #fff; font-size: var(--fs-sm); font-weight: 600; display: grid; place-items: center; }
.tbody { padding: 14px 16px 14px; display: grid; gap: 8px; }
.tcard.win { box-shadow: inset 0 -3px 0 var(--up), var(--sh); } .tcard.loss { box-shadow: inset 0 -3px 0 var(--dn-fill), var(--sh); }
.trow1 { display: flex; align-items: center; gap: 8px; }
.trow1 .sym { font-size: var(--fs-xl); letter-spacing: -.02em; } .trow1 .sp { flex: 1; } .trow1 .pnl { font-size: var(--fs-xl); letter-spacing: -.02em; }
.rpill { font-size: var(--fs-sm); font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--panel2); }
.rpill.up { background: var(--up-bg); color: var(--up); } .rpill.dn { background: var(--dn-bg); color: var(--dn); }
.tmeta { display: flex; align-items: center; gap: 6px; color: var(--mut); font-size: var(--fs-sm); }
.tmeta svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.ttags { display: flex; flex-wrap: wrap; gap: 5px; }
.tg { font-size: var(--fs-xs); font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--panel2); color: var(--ink2); }
.tg.strat { background: #eef0ff; color: #3b3fb6; font-weight: 500; } .tg.strat b { font-weight: 700; }
.tg.ok { background: var(--up-bg); color: var(--up); } .tg.bad { background: var(--dn-bg); color: var(--dn); } .tg.mid { background: #fff4d6; color: #a06a00; }
.tnote { font-size: var(--fs-sm); color: var(--ink2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ttodo { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--ink2); font-weight: 500; } .ttodo svg { color: var(--brand); stroke: var(--brand); }
.ttodo svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.taccs { display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--mut); }
.taccs .stack { display: flex; } .taccs .stack .logo { margin-left: -6px; box-shadow: 0 0 0 2px var(--panel); } .taccs .stack .logo:first-child { margin-left: 0; }

/* ================= log / review a trade ================= */
.modal.wide.rt-modal { width: min(1240px, 100%); height: min(900px, calc(100vh - 32px)); background: var(--bg); }
.rt { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.rt-h { display: flex; align-items: center; gap: 10px; padding: 20px 26px 14px; }
.rt-h .eyebrow { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.rt-h h2 { font-size: var(--fs-2xl); letter-spacing: -.04em; margin-top: 2px; }
.rt-h .sp { flex: 1; }
.rt-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 18px; padding: 0 26px; }
.rt-main { overflow-y: auto; display: grid; gap: 14px; align-content: start; padding-bottom: 24px; scrollbar-width: thin; }
.rt-media { overflow-y: auto; padding-bottom: 24px; }
.rt-media[hidden] { display: none; }
.rt-body:has(.rt-media[hidden]) { grid-template-columns: minmax(0, 760px); justify-content: center; }
.rt-f { display: flex; align-items: center; gap: 8px; padding: 14px 26px 18px; border-top: 1px solid var(--line); background: var(--panel); }
.seg.big { display: flex; width: 100%; padding: 4px; }
.seg.big button { flex: 1; height: var(--h-lg); font-size: var(--fs-md); }
.seg.sm button { height: 28px; padding: 0 11px; font-size: var(--fs-sm); }
.rc { background: var(--panel); border-radius: var(--r2); padding: 18px 20px; box-shadow: var(--sh); display: grid; gap: 14px; }
.rc-h { display: flex; align-items: center; gap: 10px; }
.rc-h h3 { font-size: var(--fs-lg); letter-spacing: -.02em; }
.rc-h .sp { flex: 1; }
.rc-h .adv { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.rc-sub { color: var(--mut); font-size: var(--fs-sm); margin-top: -6px; }
.rf { display: grid; gap: 7px; }
.rf > span:first-child { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.rg2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.rc .inp { background: var(--panel2); border-color: transparent; }
.rc .inp:hover { border-color: var(--line2); }
.rc .inp:focus { background: var(--panel); border-color: var(--ink); }
.rc .inp[readonly] { background: transparent; padding-left: 2px; font-weight: 600; cursor: default; border-color: transparent; box-shadow: none; }
.withtag { position: relative; display: block; }
.autotag { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: var(--fs-xs); font-weight: 600; padding: 3px 7px; border-radius: 999px; background: var(--brand-bg); color: var(--brand-ink); pointer-events: none; }
.datebtn { display: flex; align-items: center; justify-content: space-between; text-align: left; cursor: pointer; font-weight: 500; }
.datebtn svg { width: 17px; height: 17px; stroke: var(--mut); fill: none; stroke-width: 1.9; }
.datebtn:disabled { cursor: default; background: transparent !important; padding-left: 2px; font-weight: 600; } .datebtn:disabled svg { display: none; }
.money { position: relative; display: block; } .money > .inp { padding-left: 26px; }
.money::before { content: "$"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--mut); font-weight: 500; }
.calcv { display: flex; align-items: center; height: var(--h-lg); font-weight: 600; font-variant-numeric: tabular-nums; }
.hint { display: flex; gap: 7px; align-items: center; color: var(--mut); font-size: var(--fs-sm); }
.hint svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.9; flex: none; }
/* chips */
.chs { display: flex; flex-wrap: wrap; gap: 6px; }
.ch { height: var(--h-sm); padding: 0 13px; border-radius: var(--r-sm); border: 1px solid transparent; background: var(--panel2); color: var(--ink2); font-size: var(--fs-md); font-weight: 500; cursor: pointer; transition: background .12s, color .12s, box-shadow .12s, transform .1s; }
.ch:hover { background: var(--bg2); }
.ch:active { transform: scale(.97); }
.ch.on { background: var(--ink); color: var(--on-ink); box-shadow: 0 4px 12px -6px rgba(12,12,13,.5); }
.ch.dark.on { background: var(--ink); }
.ch.purple.on { background: #7c3aed; } .ch.blue.on { background: #2563eb; } .ch.orange.on { background: #ea7a0c; }
.ch.green.on { background: var(--up); } .ch.red.on { background: var(--dn); }
.ch.yes.on { background: var(--up); } .ch.mid.on { background: #d39a12; } .ch.no.on { background: var(--dn); }
.yn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .yn .ch { height: var(--h-lg); }
.addrow { display: flex; gap: 8px; align-items: center; }
.addrow .inp { height: 36px; background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--line2) !important; border-radius: 0; padding-left: 2px; box-shadow: none !important; }
.addrow .inp:focus { border-bottom-color: var(--ink) !important; }
/* long / short */
.lsbig { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lsb { height: 50px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel2); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: var(--fs-lg); font-weight: 600; color: var(--mut); cursor: pointer; transition: all .15s; }
.lsb svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lsb.on.buy { background: var(--up); border-color: var(--up); color: #fff; box-shadow: 0 8px 20px -10px rgba(90,58,230,.7); }
.lsb.on.sell { background: var(--side-sell); border-color: var(--side-sell); color: #fff; box-shadow: 0 8px 20px -10px rgba(154,141,128,.7); }
span.lsb { grid-column: 1 / -1; cursor: default; }
/* accounts inside the trade */
.accpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.accb { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 36px 10px 10px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--panel); text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.accb:hover { border-color: var(--line2); }
.accb > span:not(.logo) { display: grid; min-width: 0; } .accb b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .accb small { color: var(--mut); font-size: 11.5px; }
.accb .tick { position: absolute; right: 10px; top: 50%; margin-top: -10px; width: 20px; height: 20px; border-radius: var(--r-sm); border: 1.5px solid var(--line2); display: grid; place-items: center; }
.accb .tick svg { width: 12px; height: 12px; stroke: var(--on-ink); fill: none; stroke-width: 3; opacity: 0; }
.accb.on { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(12,12,13,.06); }
.accb.on .tick { background: var(--ink); border-color: var(--ink); } .accb.on .tick svg { opacity: 1; }
.acclist { display: grid; gap: 6px; }
.accrow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r); background: var(--panel2); }
.accrow > span:not(.logo) { flex: 1; display: grid; min-width: 0; } .accrow b { font-size: 13px; } .accrow small { color: var(--mut); font-size: 11.5px; }
.pnlby { display: grid; gap: 6px; }
.pnlrow { display: grid; grid-template-columns: auto minmax(0, 1fr) 160px; gap: 10px; align-items: center; font-size: var(--fs-sm); }
.pnlrow > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sumrow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--panel2); }
.sumrow span:first-child { color: var(--mut); font-size: var(--fs-sm); flex: 1; } .sumrow b { font-size: var(--fs-xl); }
/* breakdown + emotions */
.bd { display: grid; gap: 8px; }
.bd-h { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.bd-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.bd-h.purple { color: #7c3aed; } .bd-h.blue { color: #2563eb; } .bd-h.orange { color: #ea7a0c; }
.emo { display: grid; gap: 8px; }
.emo-h { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; } .emo-h.up { color: var(--up); } .emo-h.dn { color: var(--dn); }
/* grade */
.grades { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.gr { height: 48px; border-radius: var(--r); font-size: var(--fs-lg); font-weight: 700; cursor: pointer; border: 1.5px solid; background: var(--panel); transition: all .15s; }
.gr.gAp { color: #84601a; border-color: #ecdcb4; } .gr.gA { color: var(--up); border-color: #f1e6cc; } .gr.gB { color: var(--ink2); border-color: var(--line2); }
.gr.gC { color: #b07800; border-color: #f0dca6; } .gr.gF { color: var(--dn); border-color: #f4c2c6; }
.gr.on { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -12px currentColor; }
.gr.gAp.on { background: #84601a; border-color: #84601a; } .gr.gA.on { background: var(--up); border-color: var(--up); } .gr.gB.on { background: var(--ink2); border-color: var(--ink2); }
.gr.gC.on { background: #d39a12; border-color: #d39a12; } .gr.gF.on { background: var(--dn); border-color: var(--dn); }
.rc textarea.notes { min-height: 150px; }
/* images column */
.rc.imgs { position: sticky; top: 0; }
.rt-media.over .rc.imgs { box-shadow: 0 0 0 2px var(--brand), var(--sh); }
.drop2 { display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 300px; border: 1.5px dashed var(--line2); border-radius: var(--r); background: var(--panel2); color: var(--mut); cursor: pointer; text-align: center; padding: 20px; transition: border-color .15s, background .15s; }
.drop2:hover { border-color: var(--ink2); background: var(--bg2); }
.drop2 svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.drop2 b { color: var(--ink); font-size: var(--fs-md); } .drop2 span { font-size: var(--fs-sm); }
.drop2.small { min-height: 92px; }
.mainimg { position: relative; border-radius: var(--r); overflow: hidden; background: #0c0c0d; }
.mainimg img { display: block; width: 100%; max-height: 420px; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.thumb { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-sm); overflow: hidden; background: #0c0c0d; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.shot .rm { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(12,12,13,.65); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s; }
.shot:hover .rm { opacity: 1; }
.shot .rm svg { width: 13px; height: 13px; stroke: #fff; fill: none; stroke-width: 2.4; }
/* our calendar */
.cal-pop { position: fixed; z-index: 95; width: 290px; background: var(--panel); border-radius: var(--r2); box-shadow: var(--sh2); border: 1px solid var(--line); padding: 12px; animation: pop .12s ease; }
.cp-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cp-h b { font-size: var(--fs-md); text-transform: capitalize; }
.cp-h button { width: 32px; height: 32px; border-radius: var(--r-sm); border: 0; background: var(--panel2); display: grid; place-items: center; cursor: pointer; }
.cp-h svg { width: 15px; height: 15px; stroke: var(--ink2); fill: none; stroke-width: 2; }
.cp-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cp-g .wd { text-align: center; font-size: var(--fs-xs); color: var(--dim); padding: 4px 0; text-transform: capitalize; }
.cp-g button { height: 36px; border-radius: var(--r-sm); border: 0; background: none; cursor: pointer; font-size: var(--fs-md); color: var(--ink2); }
.cp-g button:hover:not(:disabled) { background: var(--panel2); }
.cp-g button.today { font-weight: 700; color: var(--brand); }
.cp-g button.on { background: var(--ink); color: var(--on-ink); }
.cp-g button:disabled { color: var(--line2); cursor: default; }
@media (max-width: 900px) {
  .rt-body { grid-template-columns: 1fr; overflow-y: auto; }
  .rt-main, .rt-media { overflow: visible; }
  .rc.imgs { position: static; }
  .rg2 { grid-template-columns: 1fr; }
  .pnlrow { grid-template-columns: auto minmax(0, 1fr) 120px; }
}

/* ================= dashboard ================= */
.dash-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dash-top .sp { flex: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hero-pnl { position: relative; overflow: hidden; border-radius: var(--r3); padding: 30px 30px 24px; text-align: center; background: var(--panel); box-shadow: var(--sh); display: grid; justify-items: center; gap: 8px; isolation: isolate; }
.hero-pnl::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(120% 90% at 50% 0%, var(--hp-glow, transparent), transparent 60%); }
.hero-pnl.pos { --hp-glow: rgba(90,58,230,.13); color: var(--up); } .hero-pnl.neg { --hp-glow: color-mix(in srgb, var(--dn) 13%, transparent); color: var(--dn); } .hero-pnl.zero { color: var(--dim); }
.hp-spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 55%; z-index: -1; opacity: .55; }
.hp-lbl { font-size: var(--fs-sm); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.hp-val { font-size: clamp(52px, 8vw, 92px); font-weight: 700; letter-spacing: -.06em; line-height: 1; color: inherit; }
.hero-pnl.zero .hp-val { color: var(--ink); }
.hp-sub { display: flex; align-items: center; gap: 10px; color: var(--mut); font-size: var(--fs-md); } .hp-sub b { color: var(--ink); }
.chip-s { font-weight: 700; font-size: var(--fs-sm); padding: 4px 10px; border-radius: 999px; background: var(--bg2); color: var(--ink2); }
.chip-s.pos { background: var(--up-bg); color: var(--up); } .chip-s.neg { background: var(--dn-bg); color: var(--dn); }
.hp-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; margin-top: 8px; color: var(--ink); }
.hp-acts .dd-btn { min-width: 220px; max-width: 320px; background: var(--panel); }
.addwrap { position: relative; }
.addwrap .btn svg:last-child { width: 14px; height: 14px; margin-left: -2px; }
.mini-menu { position: fixed; transform: translateX(-50%); z-index: 80; min-width: 270px; background: var(--panel); border-radius: var(--r); box-shadow: var(--sh2); border: 1px solid var(--line); padding: 6px; text-align: left; animation: mmpop .16s cubic-bezier(.3,.7,.2,1); }
.mini-menu button { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px 12px; border-radius: var(--r); border: 0; background: none; cursor: pointer; color: var(--ink); }
.mini-menu button:hover { background: var(--panel2); }
.mini-menu svg { width: 18px; height: 18px; stroke: var(--ink2); fill: none; stroke-width: 1.9; flex: none; }
.mini-menu span { display: grid; } .mini-menu b { font-size: var(--fs-md); } .mini-menu small { color: var(--mut); font-size: var(--fs-sm); }
.wr-card { margin-top: 14px; display: flex; gap: 26px; align-items: center; background: var(--panel); border-radius: var(--r2); padding: 20px 26px; box-shadow: var(--sh); }
.donut { position: relative; flex: none; }
.donut svg { display: block; }
.dn-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dn-c b { font-size: var(--fs-2xl); letter-spacing: -.04em; } .dn-c span { font-size: var(--fs-xs); color: var(--mut); text-transform: uppercase; letter-spacing: .08em; }
.wr-main { flex: 1; display: grid; gap: 12px; min-width: 0; }
.wr-h { display: flex; align-items: center; gap: 10px; } .wr-h b { font-size: var(--fs-lg); letter-spacing: -.02em; } .wr-h .sp { flex: 1; }
.wr-bar { position: relative; display: flex; height: 38px; border-radius: 999px; overflow: hidden; background: var(--bg2); }
.wr-bar i { display: block; height: 100%; } .wr-bar .w { background: var(--up); } .wr-bar .b { background: #c9c9c4; } .wr-bar .l { background: var(--dn-fill); }
/* the % lives inside one segment (see wrSegs in views.js): light text on the ink-coloured wins, near-black on the pink / grey ones */
.wr-bar i:has(.wr-pct) { display: grid; place-items: center; min-width: max-content; padding: 0 12px; }
.wr-pct { font-weight: 700; font-size: var(--fs-lg); font-style: normal; color: #0a0a0b; white-space: nowrap; }
.wr-bar .w .wr-pct { color: var(--panel); }
.wr-empty { display: block; padding: 0; }
.wr-empty .empty { padding: 30px 22px; }
.empty-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.wr-leg { display: flex; gap: 16px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--ink2); }
.wr-leg .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; } .wr-leg .dot.up { background: var(--up); } .wr-leg .dot.dn { background: var(--dn-fill); } .wr-leg .dot.be { background: #c9c9c4; }
.kcards { margin: 14px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kc { background: var(--panel); border-radius: var(--r2); padding: 16px 18px; box-shadow: var(--sh); display: grid; gap: 4px; border-top: 3px solid var(--line2); }
.kc.g { border-top-color: var(--up); } .kc.r { border-top-color: var(--dn-fill); }
.kc .kv { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.04em; }
.kc.g .kv { color: var(--up); } .kc.r .kv { color: var(--dn); }
.kc .ks { font-size: var(--fs-sm); color: var(--mut); }
.kbar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--bg2); margin-top: 8px; }
.kbar i { display: block; height: 100%; } .kbar .g { background: var(--up); } .kbar .r { background: var(--dn-fill); }
.kbars { display: grid; gap: 4px; } .kbars .kbar { margin-top: 4px; }
@container (max-width: 900px) { .content .kcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 560px) { .content .wr-card { flex-direction: column; align-items: stretch; } .content .donut { align-self: center; } }
/* news (left) */
.news-rail, .check-rail { max-height: calc(100vh - var(--top) - 32px); }
.rail-h h3 { display: flex; align-items: center; gap: 7px; }
.rail-h h3 svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.rail-h .btn svg { width: 15px; height: 15px; }
.chipb.imp-high.on { background: var(--dn); border-color: var(--dn); } .chipb.imp-medium.on { background: #ea7a0c; border-color: #ea7a0c; } .chipb.imp-low.on { background: #d3a512; border-color: #d3a512; }
.nday { padding: 4px 8px 6px; }
.nday-h { position: sticky; top: 0; z-index: 1; background: var(--panel); padding: 8px 8px 6px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.nev { display: grid; grid-template-columns: 44px 8px 38px minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px; border-radius: var(--r); }
.nev:hover { background: var(--panel2); }
.nev.next { background: var(--brand-bg); box-shadow: inset 3px 0 0 var(--brand); }
.nev.past { opacity: .5; }
.nev .nt { font-size: var(--fs-sm); font-weight: 600; color: var(--ink2); padding-top: 1px; }
.imp { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; } .imp-high { background: var(--dn); } .imp-medium { background: #ea7a0c; } .imp-low { background: #d3a512; } .imp-holiday { background: var(--dim); }
.nev .cur { font-size: var(--fs-xs); font-weight: 700; padding: 2px 5px; border-radius: var(--r-sm); background: var(--bg2); color: var(--ink2); text-align: center; }
.nti { display: grid; min-width: 0; } .nti b { font-size: var(--fs-sm); font-weight: 500; line-height: 1.35; } .nti small { font-size: var(--fs-xs); color: var(--mut); }
/* checklist (right) */
.cklist { display: grid; gap: 14px; padding: 4px 16px 16px; }
.ck-prog { display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--mut); font-weight: 500; }
.ck-bar { height: 8px; border-radius: 999px; background: var(--bg2); overflow: hidden; } .ck-bar i { display: block; height: 100%; background: var(--ink); border-radius: inherit; transition: width .3s; }
.ck-prog.ready { color: var(--up); font-weight: 700; } .ck-prog.ready .ck-bar i { background: var(--up); }
.ck-q { display: grid; gap: 7px; }
.ck-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.ck-o { height: var(--h-sm); border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel2); font-size: var(--fs-sm); font-weight: 600; color: var(--ink2); cursor: pointer; }
.ck-o.on.bull { background: var(--up); border-color: var(--up); color: #fff; } .ck-o.on.bear { background: var(--dn); border-color: var(--dn); color: #fff; }
.ck-o.on.neutral, .ck-o.on.range { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.ck-list { display: grid; gap: 4px; }
.ck-it { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r); cursor: pointer; font-size: var(--fs-sm); color: var(--ink2); }
.ck-it:hover { background: var(--panel2); }
.ck-it input { position: absolute; opacity: 0; pointer-events: none; }
.ck-it .box { width: 20px; height: 20px; flex: none; border-radius: var(--r-sm); border: 1.5px solid var(--line2); display: grid; place-items: center; }
.ck-it .box svg { width: 12px; height: 12px; stroke: var(--on-ink); fill: none; stroke-width: 3; opacity: 0; }
.ck-it.on .box { background: var(--up); border-color: var(--up); } .ck-it.on .box svg { opacity: 1; } .ck-it.on > span:last-of-type { color: var(--mut); text-decoration: line-through; }
.ck-rm { margin-left: auto; width: 24px; height: 24px; border: 0; border-radius: var(--r-sm); background: var(--dn-bg); display: grid; place-items: center; cursor: pointer; }
.ck-rm svg { width: 12px; height: 12px; stroke: var(--dn); fill: none; stroke-width: 2.4; }
.cklist textarea { min-height: 64px; background: var(--panel2); border-color: transparent; }
/* page design */
.dz { gap: 18px; }
.dz-prev { border-radius: var(--r2); overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.dz-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--panel); border-bottom: 1px solid var(--line); }
.dz-logo .bmark { width: 22px; height: 22px; display: block; }
.dz-bar i { width: 46px; height: 10px; border-radius: 999px; background: var(--bg2); } .dz-bar i.on { background: var(--acc, var(--ink)); } .dz-bar .sp { flex: 1; } .dz-bar i.dot { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); }
.dz-body { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 8px; padding: 12px; }
.dz-card { background: var(--panel); border-radius: 12px; padding: 10px; display: grid; gap: 2px; box-shadow: var(--sh); }
.dz-card small { font-size: 10px; color: var(--mut); } .dz-card b { font-size: 16px; } .dz-card.big b { font-size: 22px; }
.dz-wr { height: 6px; border-radius: 999px; background: var(--dn-fill); overflow: hidden; } .dz-wr i { display: block; height: 100%; background: var(--up); }
.dz-btn { grid-column: 1 / -1; justify-self: start; height: var(--h-sm); padding: 0 14px; border-radius: 999px; background: var(--acc, var(--ink)); color: var(--acc-ink, #fff); font-size: var(--fs-sm); font-weight: 600; display: grid; place-items: center; }
.dz-acc { display: flex; gap: 10px; }
.dz-acc button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; box-shadow: 0 0 0 2px var(--panel), 0 0 0 3px var(--line2); }
.dz-acc button.on { box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--c); }
/* accent colour */
.btn.pri, .topnav a.on, .seg.big button.on.acc-x { background: var(--acc, var(--ink)); border-color: var(--acc, var(--ink)); color: var(--acc-ink, #fff); }

/* settings → profile */
.prof { display: grid; gap: 18px; }
.prof-top { display: flex; gap: 18px; align-items: flex-start; }
.prof-top .form-grid { flex: 1; }
.prof-top .avatar { margin-top: 22px; }
.prof-q { display: grid; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chipb { height: var(--h-sm); padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink2); font-size: var(--fs-sm); font-weight: 500; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.chipb:hover { border-color: var(--ink2); color: var(--ink); }
.chipb.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
@media (max-width: 560px) {
  .prof-top { flex-direction: column; } .prof-top .avatar { margin-top: 0; }
  .opts { grid-template-columns: 1fr; }
  .opt { min-height: 56px; }
  .auth-top .brandlink { font-size: 0; gap: 0; }
  .qsum { flex-wrap: wrap; } .qsum [data-edit] { margin-left: auto; }
}

/* ================= landing ================= */
.land { background: #fff; color: var(--ink); overflow-x: clip; }
.land .wrap { max-width: 1180px; margin: 0 auto; padding: 0 max(4vw, 18px); }
.lnav { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lnav .wrap { display: flex; align-items: center; gap: 14px; height: 72px; }
.lnav .links { display: flex; gap: 2px; margin-left: 18px; }
.lnav .links a { padding: 8px 13px; border-radius: 999px; color: var(--ink2); font-weight: 500; font-size: 14px; }
.lnav .links a:hover { background: var(--bg); }
.lnav .cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.brandlink { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -.02em; }
.land .hero { position: relative; padding: clamp(50px, 9vw, 110px) 0 40px; text-align: center; }
.land .hero::before { content: ""; position: absolute; inset: 0; z-index: 0; background-image: radial-gradient(#d9d9d6 1px, transparent 1.3px); background-size: 22px 22px; mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 20%, transparent 75%); }
.land .hero .wrap > :not(.chrome) { position: relative; z-index: 2; }
.land .hero .chrome { position: absolute; z-index: 0; pointer-events: none; }
.land .hero .chrome.l { left: -160px; top: 40px; width: 420px; }
.land .hero .chrome.r { right: -170px; top: 140px; width: 460px; transform: scaleX(-1) rotate(12deg); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; box-shadow: var(--sh); font-size: 13px; color: var(--ink2); }
.eyebrow b { background: var(--ink); color: var(--on-ink); border-radius: 999px; padding: 2px 10px; font-weight: 600; font-size: 12px; }
.land .hero h1 { font-size: clamp(42px, 7.6vw, 92px); font-weight: 600; letter-spacing: -.055em; line-height: .98; margin: 24px auto 0; max-width: 13ch; }
.land .hero h1 em { font-style: normal; background: linear-gradient(180deg, #0c0c0d 20%, #8b8b90); -webkit-background-clip: text; background-clip: text; color: transparent; }
.land .hero .lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink2); max-width: 56ch; margin: 22px auto 0; }
.land .hero .ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.floaters { position: relative; z-index: 2; height: 300px; margin-top: 46px; }
.fl { position: absolute; z-index: 2; width: min(360px, 88vw); padding: 20px 22px; border-radius: var(--r3); background: #fff; box-shadow: var(--sh2); text-align: left; }
.fl .k { font-size: 13px; color: var(--mut); } .fl h3 { font-size: 22px; letter-spacing: -.03em; margin: 2px 0 6px; } .fl p { color: var(--ink2); font-size: 14px; }
.fl .row { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.fl.a { left: 2%; top: 0; transform: rotate(-2.5deg); } .fl.b { right: 2%; top: 10px; transform: rotate(2deg); } .fl.c { left: 50%; top: 190px; transform: translateX(-50%); }
.floaters { height: 360px; }
.fl .ex { position: absolute; top: 14px; right: 16px; font-size: 11px; color: var(--dim); }
.sec { padding: clamp(60px, 9vw, 120px) 0; }
.sec.alt { background: var(--bg); }
.sec h2.big { font-size: clamp(32px, 5vw, 60px); font-weight: 600; letter-spacing: -.05em; line-height: 1; max-width: 17ch; }
.sec .intro { font-size: 17px; color: var(--ink2); max-width: 58ch; margin-top: 16px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 600; color: var(--mut); margin-bottom: 14px; }
.plats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 36px; }
.plat { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--r2); background: #fff; box-shadow: var(--sh); }
.plat b { display: block; font-size: 14.5px; } .plat small { color: var(--mut); font-size: 12.5px; }
.marq { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); margin-top: 14px; }
.marq .tr { display: flex; gap: 10px; width: max-content; animation: mq 80s linear infinite; padding: 6px 0; }
.marq.rev .tr { animation-direction: reverse; }
.marq:hover .tr { animation-play-state: paused; }
.marq .it { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: #fff; box-shadow: var(--sh); white-space: nowrap; font-weight: 500; font-size: 14px; }
@keyframes mq { to { transform: translateX(-50%); } }
.feat { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.fbox { grid-column: span 4; padding: 26px; border-radius: var(--r3); background: #fff; box-shadow: var(--sh); display: grid; gap: 10px; align-content: start; }
.fbox.w { grid-column: span 8; }
.fbox h3 { font-size: 20px; letter-spacing: -.03em; } .fbox p { color: var(--ink2); }
.fbox ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink2); line-height: 1.8; }
.band { position: relative; overflow: hidden; background: #0c0c0d; color: #fff; text-align: center; padding: clamp(80px, 12vw, 150px) 0; }
.band h2 { font-size: clamp(36px, 6.5vw, 84px); font-weight: 600; letter-spacing: -.055em; line-height: .98; max-width: 15ch; margin: 0 auto; }
.band p { color: rgba(255,255,255,.7); font-size: 18px; max-width: 54ch; margin: 22px auto 0; }
.band .chrome { position: absolute; pointer-events: none; }
.faq { max-width: 820px; margin: 36px auto 0; display: grid; gap: 10px; }
.faq details { border-radius: var(--r2); background: #fff; box-shadow: var(--sh); padding: 4px 22px; }
.faq summary { font-weight: 600; font-size: 16.5px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 14px; cursor: pointer; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--mut); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink2); padding-bottom: 18px; }
.endcta { text-align: center; padding: clamp(60px, 8vw, 100px) 20px; border-radius: 36px; background: var(--bg); }
.endcta h2 { font-size: clamp(34px, 5.5vw, 64px); font-weight: 600; letter-spacing: -.055em; max-width: 14ch; margin: 0 auto; }
footer.lf { padding: 40px 0 60px; color: var(--mut); font-size: 13.5px; }
footer.lf .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }

/* ================= responsive ================= */
.only-narrow { display: none !important; }
@media (max-width: 1360px) {
  .layout.l-acc { grid-template-columns: 256px minmax(0, 1fr); }
  .layout.l-dash { grid-template-columns: 236px minmax(0, 1fr) 250px; gap: 12px; padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 1100px) {
  .layout.l-dash { grid-template-columns: 210px minmax(0, 1fr) 220px; gap: 10px; padding-left: 10px; padding-right: 10px; }
  .l-dash .nev { grid-template-columns: 38px 8px minmax(0, 1fr); } .l-dash .nev .cur { display: none; }
  .l-dash .ck-o { font-size: var(--fs-xs); } .l-dash .hero-pnl { padding: 24px 16px 20px; } .l-dash .wr-card { gap: 16px; padding: 16px; }
}
@media (max-width: 760px) {
  .layout.l-dash { grid-template-columns: minmax(0, 1fr); }
  .layout.l-dash > .news-rail, .layout.l-dash > .check-rail { position: static; max-height: none; grid-column: auto; }
  .layout.l-dash > .news-rail { order: 3; } .layout.l-dash > .check-rail { order: 2; }
}
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .c3, .c4, .c5 { grid-column: span 6; } .c6, .c7, .c8 { grid-column: 1 / -1; }
  .c8 + .c4, .c4:nth-child(3):last-child { grid-column: 1 / -1; }
  .fbox, .fbox.w { grid-column: span 6; }
}
@media (max-width: 900px) {
  .topbar { gap: 10px; padding: 0 12px; }
  .layout { grid-template-columns: 1fr; padding: 12px 12px 60px; }
  .layout > .accounts-rail { position: static; max-height: none; }
  .acc-list { display: flex; overflow-x: auto; gap: 6px; padding: 4px 10px 12px; }
  .acc-list .acc-sec { display: none; }
  .acc-it { min-width: 210px; border: 1px solid var(--line); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi.big { grid-column: 1 / -1; }
  .c3, .c4, .c5, .c6, .c7, .c8 { grid-column: 1 / -1; }
  .cal { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .cal .wk, .cal .h.wkh { display: none; }
  .cal .d { min-height: 58px; padding: 5px; border-radius: var(--r-sm); } .cal .d .t { display: none; } .cal .d .p { font-size: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb { grid-template-columns: 74px 1fr 72px; }
  .score { grid-template-columns: 1fr; justify-items: center; } .score .parts { width: 100%; }
  .day-b { grid-template-columns: 1fr; } .day-b > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .lnav .links { display: none; }
  .floaters { height: auto; display: grid; gap: 12px; justify-items: center; }
  .fl { position: static; transform: none !important; }
  .fbox, .fbox.w { grid-column: 1 / -1; }
  .land .hero .chrome.l { left: -210px; top: 150px; width: 290px; }
  .land .hero .chrome.r { right: -220px; top: 470px; width: 320px; }
  .modal, .modal.wide { border-radius: var(--r2); height: auto; max-height: calc(100vh - 24px); }
  .ov.center { padding: 12px; }
}
@media (max-width: 560px) { .topnav a span { display: none; } .topnav a { padding: 0 12px; } }
/* the centre column adapts to its own width (it shares the screen with both side panels) */
@container (max-width: 1100px) {
  .content .c3, .content .c4, .content .c5 { grid-column: span 6; } .content .c6, .content .c7, .content .c8 { grid-column: 1 / -1; }
  .content .c8 + .c4, .content .c7 + .c5, .content .c4:nth-child(3):last-child { grid-column: 1 / -1; }
}
@container (max-width: 820px) { .content .acc-detail { grid-template-columns: 1fr; } .content .acc-detail > div:first-child { max-width: 420px; } }
@container (max-width: 680px) { .content .c3, .content .c4, .content .c5, .content .c6 { grid-column: 1 / -1; } .day-b { grid-template-columns: 1fr; } .day-b > div + div { border-left: 0; border-top: 1px solid var(--line); } }
@media (prefers-reduced-motion: reduce) { .marq .tr { animation: none; } html { scroll-behavior: auto; } }

/* ================= dark mode (Page design) ================= */
:root[data-theme="dark"] {
  color-scheme: dark;
  /* black first: near-black page, panels a step lighter, hairline borders, white as the accent */
  --bg: #070708; --bg2: #1a1a1d; --panel: #111113; --panel2: #18181b; --line: #232327; --line2: #2f2f34;
  --ink: #f5f5f3; --on-ink: #0a0a0b; --ink2: #d2d2d6; --mut: #a1a1a9; --dim: #85858d;
  --brand: #8b6dff; --brand-2: #b4a3ff; --brand-bg: rgba(139,109,255,.15); --up: var(--ink); --up-bg: rgba(255,255,255,.1); --dn: #a996ff; --dn-fill: var(--dn); --dn-bg: rgba(139,109,255,.13); --side-sell: #7d7d85; --brand-ink: var(--brand-2); --danger: #f07a8a; --danger-bg: rgba(240,122,138,.13);
  --sh: 0 0 0 1px rgba(255,255,255,.04), 0 12px 30px -18px rgba(0,0,0,.9);
  --sh2: 0 0 0 1px rgba(255,255,255,.06), 0 30px 70px -28px rgba(0,0,0,.95);
}
[data-theme="dark"] :is(.pn, .rail, .kc, .wr-card, .hero-pnl, .acc-detail, .tcard, .modal, .dr, .menu) { border-color: var(--line); }
[data-theme="dark"] .btn:not(.pri):not(.ghost) { background: var(--panel2); border-color: var(--line2); }
[data-theme="dark"] .btn:not(.pri):not(.ghost):hover { background: #202024; }
[data-theme="dark"] .btn.pri { box-shadow: 0 8px 22px -10px rgba(255,255,255,.25), inset 0 -1px 0 rgba(0,0,0,.12); }
[data-theme="dark"] .inp, [data-theme="dark"] .dd-btn { background: var(--panel2); border-color: var(--line2); color: var(--ink); }
[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] .topbar { background: rgba(7,7,8,.82); }
[data-theme="dark"] .topnav a:hover:not(.on) { background: rgba(255,255,255,.07); }
[data-theme="dark"] .topnav { box-shadow: 0 0 0 1px var(--line), 0 6px 18px -10px rgba(0,0,0,.6); }
[data-theme="dark"] :is(.ch.on, .chipb.on, .pill.dark, .cp-g button.on, .menu .langs button.on, .topnav a.on, .seg button.on.dk, .ck-o.on.neutral, .ck-o.on.range) { color: #0d0e10; }
[data-theme="dark"] :is(.ch.on, .chipb.on, .pill.dark, .cp-g button.on, .menu .langs button.on) { background: #f3f3f1; border-color: #f3f3f1; }
[data-theme="dark"] .acc-it.on { background: #f3f3f1; color: #0d0e10; }
[data-theme="dark"] .acc-it.on :is(.mut, .dim) { color: rgba(13,14,16,.6); }
[data-theme="dark"] .acc-it.on .up { color: #84601a; } [data-theme="dark"] .acc-it.on .dn { color: #b03a50; }
[data-theme="dark"] .accb.on .tick { background: #f3f3f1; } [data-theme="dark"] .accb.on .tick svg { stroke: #0d0e10; }
[data-theme="dark"] .ck-bar i { background: #f3f3f1; }
[data-theme="dark"] .avatar { background: linear-gradient(135deg, #3a3d44, #1b1d21); box-shadow: 0 0 0 3px var(--panel), var(--sh); }
[data-theme="dark"] .tshot.empty { background: var(--panel2); }
[data-theme="dark"] .jnote { background: rgba(211,154,18,.12); color: #f1cf7a; }
[data-theme="dark"] .nev.next { background: rgba(91,140,255,.12); }
[data-theme="dark"] .tg.strat { background: rgba(124,128,255,.16); color: #b9bcff; }
[data-theme="dark"] .autotag, [data-theme="dark"] .prop .auto { background: rgba(91,140,255,.16); }
[data-theme="dark"] .note-card { background: #2a2617; border-color: #3a3420; color: #eadfb8; }
[data-theme="dark"] .kpi.big, [data-theme="dark"] .acard { box-shadow: var(--sh); }
[data-theme="dark"] .mainimg, [data-theme="dark"] .thumb { background: #000; }
.btn.pri:hover { background: var(--acc, var(--ink)); filter: brightness(1.12); }
/* graphite: a softer dark (grey, not black) */
:root[data-theme="dark"][data-tone="graphite"] {
  --bg: #2a2c31; --bg2: #3a3d44; --panel: #33363c; --panel2: #3b3e45; --line: #44474f; --line2: #52565f;
  --ink: #f4f4f2; --ink2: #d6d8dc; --mut: #b8bcc3; --dim: #a3a7ae;
  --sh: 0 1px 2px rgba(0,0,0,.25), 0 10px 26px -16px rgba(0,0,0,.55);
}
:root[data-tone="graphite"] .topbar { background: rgba(42,44,49,.88); }
:root[data-tone="graphite"] .tshot.empty { background: var(--panel2); }
/* news rail header: Forex Factory as the source, with its logo */
.ff-h { align-items: center; }
.ff-src { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); }
.ff-logo { width: 34px; height: 34px; border-radius: var(--r-sm); flex: none; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 4px 10px -6px rgba(12,12,13,.35); overflow: hidden; }
.ff-logo img { width: 22px; height: 22px; display: block; }
.ff-src b { display: block; font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.ff-src small { display: block; font-size: var(--fs-sm); color: var(--mut); hyphens: auto; overflow-wrap: anywhere; }
.ff-src:hover b { text-decoration: underline; text-underline-offset: 3px; }
/* TradingView's calendar: asks once (their cookies), then their widget in a frame */
.tv-ask { margin: 4px 14px 14px; padding: 14px; border-radius: var(--r); background: var(--panel); box-shadow: 0 0 0 1px var(--line); font-size: var(--fs-sm); color: var(--mut); }
.tv-ask p { margin: 0 0 12px; line-height: 1.45; }
.tv-cal { height: 640px; margin: 0 6px; color-scheme: light; } /* same scheme as the frame's page, or the browser paints it white */
.tv-cal .tradingview-widget-container, .tv-cal .tradingview-widget-container__widget { height: 100%; }
.ff-flt { width: 34px; padding: 0 !important; justify-content: center; flex: none; }

/* news date stepper (like Forex Factory): < day >  plus the whole week */
.ndate { display: flex; align-items: center; gap: 4px; margin: 4px 14px 12px; padding: 4px; border-radius: var(--r); background: var(--panel); box-shadow: 0 0 0 1px var(--line), 0 4px 12px -8px rgba(12,12,13,.25); }
.ndate button { border: 0; background: transparent; cursor: pointer; color: var(--ink); font-family: var(--sans); transition: background .2s, color .2s, opacity .2s; }
.nd-arr, .nd-wk { width: 32px; height: var(--h-md); flex: none; border-radius: var(--r-sm); display: grid; place-items: center; }
.nd-arr svg, .nd-wk svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nd-arr:hover:not(:disabled), .nd-wk:hover, .nd-mid:hover { background: rgba(12,12,13,.05); }
.nd-arr:disabled { opacity: .25; cursor: default; }
.nd-mid { flex: 1; min-width: 0; height: 36px; border-radius: var(--r-sm); display: grid; place-content: center; text-align: center; line-height: 1.15; }
.nd-mid b { font-size: var(--fs-md); font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-mid small { font-size: var(--fs-xs); color: var(--mut); white-space: nowrap; }
.nd-wk { color: var(--mut); border-left: 1px solid var(--line); border-radius: 0 10px 10px 0; margin-left: 2px; }
.nd-wk.on { background: var(--ink); color: var(--on-ink); border-radius: var(--r-sm); border-left-color: transparent; }
.news-body.one-day .nday-h { display: none; }
.nday.gone { opacity: .55; }
[data-theme="dark"] .nd-arr:hover:not(:disabled), [data-theme="dark"] .nd-wk:hover, [data-theme="dark"] .nd-mid:hover { background: rgba(255,255,255,.07); }
[data-theme="dark"] .nd-wk.on { background: #f3f3f1; color: #0d0e10; }
/* the calendar under the stepper: this week's days + "see the whole week" */
.npick { margin: -4px 14px 12px; padding: 8px; border-radius: var(--r); background: var(--panel); box-shadow: 0 0 0 1px var(--line), 0 10px 24px -14px rgba(12,12,13,.35); display: grid; gap: 8px; animation: pop .14s ease; }
.npick-days { display: grid; gap: 4px; }
.npick-days button { border: 0; background: transparent; border-radius: var(--r-sm); padding: 6px 0; display: grid; gap: 1px; justify-items: center; cursor: pointer; color: var(--ink); font-family: var(--sans); transition: background .15s; }
.npick-days small { font-size: var(--fs-xs); color: var(--mut); text-transform: capitalize; }
.npick-days b { font-size: var(--fs-md); font-weight: 700; }
.npick-days button:hover:not(.on) { background: rgba(12,12,13,.05); }
.npick-days button.gone { opacity: .45; }
.npick-days button.today b { color: var(--up); }
.npick-days button.on { background: var(--ink); color: var(--on-ink); opacity: 1; }
.npick-days button.on small, .npick-days button.on b { color: var(--on-ink); }
.npick-wk { height: 32px; border: 0; border-radius: var(--r-sm); background: rgba(12,12,13,.05); color: var(--ink); font: 600 var(--fs-sm) var(--sans); cursor: pointer; }
.npick-wk.on, .npick-wk:hover { background: var(--ink); color: var(--on-ink); }
[data-theme="dark"] .npick-days button.on, [data-theme="dark"] .npick-wk.on, [data-theme="dark"] .npick-wk:hover { background: #f3f3f1; color: #0d0e10; }
[data-theme="dark"] .npick-days button.on small, [data-theme="dark"] .npick-days button.on b { color: #0d0e10; }
[data-theme="dark"] .npick-wk { background: rgba(255,255,255,.07); }
/* top menu: icons only (the name shows on hover), centred */
.topnav a { width: 46px; height: 40px; padding: 0 !important; gap: 0 !important; justify-content: center; }
.topnav a span { display: none !important; }
.topnav a svg { width: 19px; height: 19px; }
.topnav .tn-ind { height: 40px; }
#navtip { position: fixed; z-index: 80; transform: translate(-50%, -4px); padding: 6px 10px; border-radius: var(--r-sm); background: var(--ink); color: var(--on-ink); font: 600 var(--fs-sm) var(--sans); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s, transform .15s; box-shadow: 0 6px 16px -6px rgba(12,12,13,.45); }
#navtip.show { opacity: 1; transform: translate(-50%, 0); }
[data-theme="dark"] #navtip { background: #f3f3f1; color: #0d0e10; }

/* accounts rail: a small bin on each account (shows on hover, always on the open one) */
.acc-wrap { position: relative; flex: none; }
.acc-del { position: absolute; right: 7px; top: 31px; width: 28px; height: 26px; border: 0; border-radius: var(--r-sm); display: grid; place-items: center; background: transparent; color: var(--mut); cursor: pointer; opacity: 0; transition: opacity .15s, background .15s, color .15s; }
.acc-del svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.acc-wrap:hover .acc-del, .acc-del:focus-visible, .acc-wrap:has(.acc-it.on) .acc-del { opacity: 1; }
@media (hover: none) { .acc-del { opacity: .7; } }
.acc-del:hover { background: var(--dn-bg); color: var(--dn); }
.acc-wrap:has(.acc-it.on) .acc-del { color: rgba(255,255,255,.65); }
.acc-wrap:has(.acc-it.on) .acc-del:hover { background: rgba(240,112,123,.2); color: #b9b0a6; }
[data-theme="dark"] .acc-wrap:has(.acc-it.on) .acc-del { color: rgba(13,14,16,.6); }
.acc-wrap .acc-it .r2 { padding-right: 30px; }
/* journal: one list, newest first, each card with its date */
.jflat { margin-top: 4px; }
.tdate { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--ink2); margin-bottom: -2px; }
.tdate svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--mut); }
.tdate b { font-weight: 600; display: inline-block; } .tdate b::first-letter { text-transform: uppercase; }
/* "All accounts" mark: always a dark tile with a light sign, readable on any background */
.all-logo { background: #0c0c0d !important; color: #fff !important; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.all-logo i { color: #fff; font-style: normal; font-weight: 700; }
/* dark: the big highlighted cards stay dark (a lifted black), not inverted to white */
[data-theme="dark"] .kpi.big { background: linear-gradient(145deg, #1e1f23, #0f0f11); color: var(--ink); box-shadow: 0 0 0 1px var(--line2), var(--sh); }
[data-theme="dark"] .grade.gA { color: #04260f; }

/* sun / moon switch next to the avatar: light or dark, nothing else. The pill slides between the two. */
.themesw { position: relative; display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--panel); box-shadow: 0 0 0 1px var(--line2); }
.themesw::before { content: ""; position: absolute; top: 3px; left: 3px; width: 36px; height: 34px; border-radius: 999px; background: var(--ink); box-shadow: 0 4px 10px -5px rgba(0,0,0,.45);
  transition: transform .5s cubic-bezier(.3,.7,.2,1), background-color .55s ease; }
.themesw.dark::before { transform: translateX(38px); }
.themesw button { position: relative; z-index: 1; width: 36px; height: 34px; border: 0; border-radius: 999px; display: grid; place-items: center; background: transparent; color: var(--mut); cursor: pointer; transition: color .5s ease; }
.themesw button svg { width: 17px; height: 17px; stroke: currentColor; fill: currentColor; fill-opacity: 0; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: fill-opacity .5s ease, transform .5s cubic-bezier(.3,.7,.2,1); }
.themesw button:hover:not(.on) { color: var(--ink); }
.themesw button.on { color: var(--on-ink); }
.themesw button.on svg { fill-opacity: .28; }
.themesw button[data-sw="light"].on svg { transform: rotate(90deg); }
.themesw button[data-sw="dark"].on svg { transform: rotate(-20deg); }
/* while switching theme: every colour fades to the new one */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .55s ease, color .55s ease, border-color .55s ease, fill .55s ease, stroke .55s ease, box-shadow .55s ease, opacity .55s ease !important; }
html.theme-anim .themesw::before { transition: transform .5s cubic-bezier(.3,.7,.2,1), background-color .55s ease !important; }
html.theme-anim .themesw button svg { transition: fill-opacity .5s ease, transform .5s cubic-bezier(.3,.7,.2,1), stroke .55s ease !important; }

/* dashboard P&L: a clean card, no coloured glow or chart behind the number; small controls */
.hero-pnl::before, .hero-pnl .hp-spark { display: none; }
.hp-acts { gap: 6px; margin-top: 6px; }
.hp-acts .dd-btn { height: var(--h-sm); min-width: 0; max-width: 230px; padding: 0 9px 0 13px; font-size: var(--fs-sm); font-weight: 500; }
.hp-acts .dd-btn svg { width: 13px; height: 13px; }
.hp-acts .btn { height: var(--h-sm); padding: 0 13px; font-size: var(--fs-sm); gap: 5px; }
.hp-acts .btn svg { width: 13px; height: 13px; }

/* ================= option 2: numbers in black/white, losses in grey, champagne gold only for titles, logo and details ================= */
::selection { background: var(--brand-bg); color: var(--ink); }
:focus-visible { outline-color: var(--brand); }
.page-h h1::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 5px; border-radius: 50%; background: var(--brand); vertical-align: baseline; }
.rail-h h3 svg, .pn-h > svg, .pn-h h3 svg { color: var(--brand); }
.hp-lbl { color: var(--brand-ink); }
.ck-bar i, [data-theme="dark"] .ck-bar i { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.ck-prog.ready span { color: var(--brand); }
.nev.next { box-shadow: inset 3px 0 0 var(--brand); }
.tg.strat { background: var(--brand-bg); color: var(--brand-ink); }
[data-theme="dark"] .tg.strat { background: var(--brand-bg); color: var(--brand-2); }
.ff-src b, .bname { letter-spacing: -.02em; }
.bname i { color: var(--brand); opacity: 1; }
.npick-days button.today b { color: var(--brand); }

.tcard.win { box-shadow: inset 0 -3px 0 var(--ink), var(--sh); }
.health i { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

/* red is kept only for real danger: deleting, a broken rule, an error */
.btn.danger, .acc-del:hover, .health.err i, .dot.err, .bar.err i, .field .hint.bad, .ph.bad { color: var(--danger); }
.health.err i, .dot.err, .bar.err i { background: var(--danger); }
.acc-del:hover { background: var(--danger-bg); }
.acc-it .ph.bad, .state.bad, .note.bad { background: var(--danger-bg); color: var(--danger); }
:root:not([data-theme="dark"]) :is(.acc-it .ph.bad, .state.bad, .note.bad) { color: color-mix(in srgb, var(--danger) 85%, #000); }
.acc-wrap:has(.acc-it.on) .acc-del:hover { background: rgba(240,122,138,.2); color: #f59aa3; }
[data-theme="dark"] :is(.lsb.on.buy, .ch.green.on, .ch.yes.on, .gr.gA.on, .gr.gAp.on, .grade.gA, .grade.gAp, .passed .badge) { color: #1a1206; }
[data-theme="dark"] .passed .badge svg { stroke: #1a1206; }

/* ===== dark mode: everything that had a hard-coded light background ===== */
[data-theme="dark"] .bcard { background: linear-gradient(165deg, color-mix(in srgb, var(--b) 22%, var(--panel)) 0%, var(--panel) 62%); border-color: var(--line2); }
[data-theme="dark"] .bcard:hover { border-color: color-mix(in srgb, var(--b) 45%, var(--line2)); }
[data-theme="dark"] .bcard b { color: var(--ink); }
[data-theme="dark"] .pill.be, [data-theme="dark"] .tg.mid { background: rgba(211,154,18,.16); color: #f1cf7a; }

[data-theme="dark"] .trust, [data-theme="dark"] .state.ok, [data-theme="dark"] .auth-box .term.ok { color: var(--brand-2); }
/* the public pages (landing, sign in) always keep the light look */
.land, .auth {
  color-scheme: light;
  --bg: #f5f5f3; --bg2: #ececea; --panel: #ffffff; --panel2: #f7f7f5; --line: #e8e8e5; --line2: #dadad6;
  --ink: #0c0c0d; --on-ink: #ffffff; --ink2: #3a3a3f; --mut: #6d6d72; --dim: #9b9ba1;
  --sh: 0 1px 2px rgba(12,12,13,.04), 0 8px 24px -14px rgba(12,12,13,.14);
  --sh2: 0 2px 8px rgba(12,12,13,.06), 0 28px 70px -28px rgba(12,12,13,.30);
  color: var(--ink);
}
/* dark: things that sit on the (now light) ink colour get dark marks; on gold they get dark text */
[data-theme="dark"] .way.on::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
[data-theme="dark"] .btn.pri .spin { border-color: rgba(10,10,11,.3); border-top-color: #0a0a0b; }
[data-theme="dark"] :is(.ck-o.on.bull, .ck-it.on .box svg) { color: #1a1206; stroke: #1a1206; }
[data-theme="dark"] .way.on { box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
/* option 2: on dark, things filled with the (light) ink colour get dark text */
[data-theme="dark"] :is(.lsb.on.buy, .ck-o.on.bull, .gr.gA.on, .gr.gAp.on, .grade.gA, .grade.gAp, .ch.green.on, .ch.yes.on) { color: #0a0a0b; }
.wr-bar .w { background: var(--ink); }
.grade.gAp, .gr.gAp.on { background: var(--brand); border-color: var(--brand); }
.gr.gAp { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
@keyframes mmpop { from { opacity: 0; transform: translate(-50%, -4px) scale(.98); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
.tools-end { margin-left: auto; display: flex; }

/* ===== a little more gold: small, deliberate touches ===== */
/* the open section in the top menu: gold icon inside the dark pill */
.topnav a.on svg { stroke: var(--brand-2); }
[data-theme="dark"] .topnav a.on svg { stroke: #4325c4; }
/* sun / moon: the chosen one in gold */
.themesw button.on svg { stroke: var(--brand-2); fill: var(--brand-2); }
[data-theme="dark"] .themesw button.on svg { stroke: #4325c4; fill: #4325c4; }
/* avatar: a thin gold ring */
.avatar { box-shadow: 0 0 0 2px var(--panel), 0 0 0 3.5px var(--brand), var(--sh); }
.menu .who .avatar { box-shadow: none; }
/* the "+" of every primary button */
.btn.pri > svg:first-child { stroke: var(--brand-2); }
[data-theme="dark"] .btn.pri > svg:first-child { stroke: #4325c4; }
/* gains: gold accents around the black/white number */
.chip-s.pos { background: var(--brand-bg); color: var(--brand-ink); }
[data-theme="dark"] .chip-s.pos { color: var(--brand-2); }
.kc.g { border-top-color: var(--brand); }
.tcard.win { box-shadow: inset 0 -3px 0 var(--brand), var(--sh); }
.rpill.up { background: var(--brand-bg); color: var(--brand-ink); }
[data-theme="dark"] .rpill.up { color: var(--brand-2); }
/* the open account in the list: a gold edge */
.acc-it.on { box-shadow: inset 3px 0 0 var(--brand); }
/* card titles: a small gold mark */
.pn-h h3::before, .wr-card h3::before { content: ""; display: inline-block; width: 4px; height: 13px; border-radius: 2px; background: var(--brand); margin-right: 8px; vertical-align: -1px; }
/* hover on clickable cards: the edge warms up to gold */
.tcard:hover, .bcard:hover { border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
/* winners on the win-rate legend and donut stay black/white; the "Acierto" number gets a gold underline */
.wr-card .lbl, .hp-lbl { color: var(--brand-ink); } /* gold text: the darker gold, so it stays readable */

/* ================= Analytics: summary strip, findings, heatmap ================= */
.astrip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.as-c { background: var(--panel); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--sh); display: grid; gap: 2px; border: 1px solid transparent; }
.as-c .lbl { font-size: var(--fs-xs); }
.as-c b { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.03em; }
.as-c small { font-size: var(--fs-xs); color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-c:first-child { border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
@media (max-width: 1100px) { .astrip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .astrip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.finds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 4px 16px 16px; }
@media (max-width: 900px) { .finds { grid-template-columns: 1fr; } }
.fd { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--panel2); border: 1px solid var(--line); }
.fd > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.fd b { font-size: var(--fs-md); font-weight: 650; }
.fd small { font-size: var(--fs-sm); color: var(--mut); }
.fd-i { width: 34px; height: 34px; border-radius: var(--r); display: grid; place-items: center; flex: none; }
.fd-i svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fd.good .fd-i { background: var(--brand-bg); color: var(--brand); }
.fd.bad .fd-i { background: var(--bg2); color: var(--dn); }
.fd-v { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.fd.good .fd-v { color: var(--ink); } .fd.bad .fd-v { color: var(--dn); }
.fd.good { border-left: 3px solid var(--brand); }
[data-theme="dark"] .fd.good .fd-i { color: var(--brand-2); }
.hm { display: grid; gap: 4px; align-items: center; }
.hm-h { font-size: var(--fs-xs); color: var(--mut); text-align: center; font-variant-numeric: tabular-nums; }
.hm-d { font-size: var(--fs-sm); color: var(--ink2); font-weight: 600; text-transform: capitalize; }
.hm-c { display: block; aspect-ratio: 1.6; min-height: 18px; border-radius: var(--r-sm); background: var(--bg2); }
.hm-c.pos { background: color-mix(in srgb, var(--brand) calc(var(--a) * 100%), var(--bg2)); }
.hm-c.neg { background: color-mix(in srgb, var(--dn) calc(var(--a) * 100%), var(--bg2)); } /* same depth as the gold cells; red in both themes, so a loss never looks like an empty cell */
/* keyboard: the focused cell shows its value (mouse users get the title) */
.hm-c[data-tip] { position: relative; }
.hm-c[data-tip]:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; z-index: 2; }
.hm-c[data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; padding: 6px 10px; border-radius: var(--r-sm); background: var(--ink); color: var(--panel); font-size: var(--fs-xs); font-weight: 600; line-height: 1.2; font-style: normal; box-shadow: var(--sh); pointer-events: none; }
.hm-k { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 12px; font-size: var(--fs-sm); color: var(--ink2); }
.hm-k span { display: inline-flex; align-items: center; gap: 6px; } .hm-k .hm-c { width: 16px; min-height: 12px; aspect-ratio: auto; height: 12px; border-radius: 4px; }
/* Analytics strip: two rows of three, a bit roomier */
.astrip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.as-c { padding: 16px 18px; gap: 4px; }
.as-c b { font-size: var(--fs-2xl); }
.as-c small { font-size: var(--fs-sm); }
@media (max-width: 560px) { .astrip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ================= automatic trade chart (drawn from the platform's prices) ================= */
.tshot.auto { background: var(--panel2); }
.tchart-svg { display: block; width: 100%; height: 100%; }
.tc-w { stroke-width: 1.2; } .tc-w.u { stroke: var(--ink); } .tc-w.d { stroke: #9a9aa0; }
.tc-b.u { fill: var(--ink); } .tc-b.d { fill: #b4b4ba; }
[data-theme="dark"] .tc-w.d { stroke: #6b6b72; } [data-theme="dark"] .tc-b.d { fill: #55555c; }
.tc-zone { opacity: .18; } .tc-zone.win { fill: var(--brand); opacity: .26; } .tc-zone.loss { fill: #8a8a92; } .tc-zone.be { fill: #8a8a92; opacity: .12; }
.tc-l { stroke-width: 1.2; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.tc-l.entry { stroke: var(--brand); stroke-dasharray: 2 3; opacity: .8; }
.tc-l.sl { stroke: var(--danger); } .tc-l.tp { stroke: var(--brand); }
.tc-in { fill: var(--brand); }
.tc-out { fill: var(--ink); }
.tc-t { font: 600 var(--fs-xs) var(--sans); } .tc-t.sl { fill: var(--danger); } .tc-t.tp, .tc-t.entry { fill: var(--brand); }
.tc-x { font: 500 var(--fs-xs) var(--sans); fill: var(--mut); }
.autochip { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink2); background: color-mix(in srgb, var(--panel) 86%, transparent); box-shadow: 0 0 0 1px var(--line); }
.autochip svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }
.autochart { border-radius: var(--r); background: var(--panel2); border: 1px solid var(--line); padding: 10px 10px 4px; margin-bottom: 12px; }
.ac-h { display: flex; align-items: center; gap: 7px; font-size: var(--fs-sm); padding: 2px 4px 8px; }
.ac-h svg { width: 15px; height: 15px; stroke: var(--brand); fill: none; stroke-width: 2; }
.ac-h .dim { margin-left: auto; font-size: var(--fs-sm); }
/* position tool zones: target in gold, risk in grey */
.tc-zone.tp { fill: var(--brand); opacity: .22; }
.tc-zone.sl { fill: #8a8a92; opacity: .24; }
[data-theme="dark"] .tc-zone.sl { fill: #9a9aa3; opacity: .2; }
.ac-x { width: 26px; height: 26px; border: 0; border-radius: var(--r-sm); display: grid; place-items: center; background: transparent; color: var(--mut); cursor: pointer; margin-left: 4px; transition: background .15s, color .15s; }
.ac-x svg { width: 14px !important; height: 14px !important; stroke: currentColor !important; fill: none; stroke-width: 2.2; }
.ac-x:hover { background: var(--danger-bg); color: var(--danger); }
.autochart-back { margin-bottom: 10px; }
.autochart-back svg { stroke: var(--brand); }

/* ================= dashboard number cards: clearer pictures + (i) explanations ================= */
.kc { position: relative; gap: 6px; }
.kc-h { display: flex; align-items: center; gap: 8px; }
.kc-h .lbl { flex: 1; }
.kv-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kverdict { font-size: var(--fs-xs); font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg2); color: var(--ink2); }
.kverdict.good { background: var(--brand-bg); color: var(--brand-ink); }
.kverdict.bad { background: var(--danger-bg); color: var(--danger); }
[data-theme="dark"] .kverdict.good { color: var(--brand-2); }
.kinfo { position: relative; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 700 var(--fs-xs)/1 var(--sans); color: var(--mut); box-shadow: inset 0 0 0 1.5px var(--line2); cursor: help; transition: color .15s, box-shadow .15s, background .15s; }
.kinfo:hover, .kinfo:focus-visible { color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); background: var(--brand-bg); outline: none; }
.kinfo-tip { position: absolute; z-index: 40; bottom: calc(100% + 10px); right: -6px; width: 260px; padding: 12px 14px; border-radius: var(--r); background: var(--ink); color: var(--on-ink); font: 500 var(--fs-sm)/1.5 var(--sans); font-style: normal; text-align: left; box-shadow: var(--sh2); opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .15s, transform .15s; }
.kinfo-tip::before { content: ""; position: absolute; bottom: -5px; right: 11px; width: 10px; height: 10px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.kinfo:hover .kinfo-tip, .kinfo:focus-visible .kinfo-tip { opacity: 1; transform: none; }
.ks { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.kleg { display: inline-flex; align-items: center; gap: 5px; }
.kleg i { width: 8px; height: 8px; border-radius: 50%; } .kleg i.g { background: var(--up); } .kleg i.r { background: var(--dn-fill); }
/* profit factor gauge */
.kgauge { position: relative; width: 150px; margin: 4px auto 0; }
.kgauge svg { display: block; width: 100%; }
.kg-bg, .kg-v { fill: none; stroke-width: 9; stroke-linecap: round; }
.kg-bg { stroke: var(--bg2); } .kg-v { stroke: var(--brand); } .kg-v.low { stroke: var(--dn-fill); }
.kg-tick { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.kg-t { font: 600 8px var(--sans); fill: var(--mut); }
/* expectancy scale in R */
.kscale { margin-top: 8px; }
.ks-track { position: relative; height: 8px; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--dn-fill) 35%, var(--bg2)) 0 33.3%, color-mix(in srgb, var(--brand) 30%, var(--bg2)) 33.3% 100%); }
.ks-zero { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink2); border-radius: 2px; }
.ks-dot { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--brand); box-shadow: 0 0 0 3px var(--panel), 0 2px 6px rgba(0,0,0,.25); }
.ks-dot.neg { background: var(--dn-fill); }
.ks-lbl { display: flex; justify-content: space-between; margin-top: 6px; font-size: var(--fs-xs); color: var(--mut); font-variant-numeric: tabular-nums; }
/* winners vs losers */
.kpair { display: grid; gap: 8px; margin-top: 6px; }
.kp-row { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--ink2); }
.kp-row .kbar { margin: 0; } .kp-row b { font-size: var(--fs-sm); min-width: 52px; text-align: right; }
.kdd { margin-top: 6px; } .kdd .kbar { margin-top: 2px; }

/* account actions: one row at the bottom of the details, the bin on its own at the far right */
.acc-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.acc-acts .sp { flex: 1; }
.acc-bin { width: 36px; height: 36px; border-radius: var(--r); display: grid; place-items: center; border: 1px solid var(--line2); background: var(--panel); color: var(--mut); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.acc-bin svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.acc-bin:hover { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
/* ================= account card: a literal credit card that turns over ================= */
.aflip { position: relative; perspective: 1400px; outline: none; cursor: pointer; --gx: 30%; --gy: 20%; }
.aflip-in { position: relative; transform-style: preserve-3d; --rx: 0deg; --ry: 0deg;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .65s cubic-bezier(.3,.7,.2,1); }
.aflip:hover .aflip-in { transition: transform .12s ease-out; }
.aflip.flipped .aflip-in { transform: rotateX(var(--rx)) rotateY(calc(180deg + var(--ry))); transition: transform .65s cubic-bezier(.3,.7,.2,1); }
.aflip .acard { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.aflip .acard:hover { transform: none; }
.aflip:focus-visible .acard { outline: 2px solid var(--brand); outline-offset: 3px; }
.aflip-hint { position: absolute; right: -10px; bottom: -10px; z-index: 3; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); color: var(--ink2); box-shadow: 0 0 0 1px var(--line2), var(--sh); opacity: 0; transition: opacity .2s; pointer-events: none; }
.aflip-hint svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.aflip:hover .aflip-hint { opacity: 1; }
@media (hover: none) { .aflip-hint { opacity: .9; } }

/* front */
.cc-front { padding: 16px 18px 14px; gap: 0; }
.cc-glare { position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: radial-gradient(60% 70% at var(--gx) var(--gy), rgba(255,255,255,.28), rgba(255,255,255,.06) 40%, transparent 70%); mix-blend-mode: soft-light; }
.aflip:hover .cc-glare { opacity: 1; }
.cc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cc-bank { display: flex; align-items: center; gap: 9px; min-width: 0; }
.cc-bank .logo { box-shadow: 0 0 0 1px rgba(255,255,255,.4); }
.cc-bank b { display: block; font-size: 13px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-bank em { display: block; font-style: italic; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .72; }
.cc-bal { text-align: right; display: grid; gap: 1px; }
.cc-bal b { font-size: 21px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.cc-bal span { font-size: 11.5px; font-weight: 600; opacity: .8; } .cc-bal .pos { color: #f0cd85; opacity: 1; } .cc-bal .neg { color: #d6d6dc; }
.cc-mid { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.cc-chip { width: 42px; height: 33px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.cc-waves { width: 22px; height: 22px; opacity: .8; }
.cc-num { margin: 10px 0 8px; font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace; font-size: clamp(15px, 4.4cqw, 19px); letter-spacing: .14em; font-weight: 600; white-space: nowrap;
  color: #f4f1e8; text-shadow: 0 1px 0 rgba(0,0,0,.55), 0 -1px 0 rgba(255,255,255,.25); }
.cc-bot { display: flex; align-items: flex-end; gap: 16px; }
.cc-bot em { display: block; font-style: normal; font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.cc-bot b { display: block; font-size: 11.5px; letter-spacing: .08em; font-weight: 600; max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 0 rgba(0,0,0,.45); }
.cc-net .bmark { width: 30px; height: 30px; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.cc-front, .aflip .aback { container-type: inline-size; }

/* back */
.aflip .aback { position: absolute; inset: 0; transform: rotateY(180deg) !important; padding: 0; justify-content: flex-start; gap: 0;
  background: radial-gradient(120% 140% at 100% 100%, color-mix(in srgb, var(--b) 70%, #000) 0%, #111115 55%, #0a0a0c 100%); }
.aflip .aback::after { left: -30%; right: auto; }
.ab-stripe { height: 22px; margin-top: 10px; background: linear-gradient(180deg, #030304, #1b1b1e 60%, #0a0a0b); flex: none; }
.ab-sig { display: flex; align-items: center; gap: 8px; margin: 7px 16px 0; flex: none; }
.ab-sign { flex: 1; height: 24px; display: flex; align-items: center; padding: 0 10px; border-radius: 3px; color: #2a2620; font: italic 600 14px "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive;
  background: repeating-linear-gradient(-45deg, #f3efe4 0 6px, #e8e2d2 6px 12px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-cvv { height: 24px; display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border-radius: 3px; background: #fff; color: #111; }
.ab-cvv em { font-style: normal; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; opacity: .55; } .ab-cvv b { font-size: 12px; font-style: italic; }
.ab-body { flex: 1; padding: 6px 16px 0; display: grid; gap: 4px; align-content: start; min-height: 0; overflow: hidden; }
.ab-title { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2); }
.ab-r { display: grid; gap: 2px; }
.ab-l { display: flex; justify-content: space-between; font-size: 10.5px; opacity: .85; } .ab-l b { font-size: 11px; opacity: 1; }
.ab-bar { height: 4px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.ab-bar i { display: block; height: 100%; border-radius: inherit; background: #f2f2f0; }
.ab-bar.mid i { background: #e0b45c; } .ab-bar.bad i { background: #f07a8a; } .ab-bar.gold i { background: linear-gradient(90deg, #c99a3c, #f0cd85); }
.ab-spark { height: 20px; } .ab-spark .chart { width: 100%; height: 20px !important; }
.ab-empty { font-size: 11px; opacity: .6; }
.ab-stats { display: flex; gap: 14px; font-size: 11px; }
.ab-stats span { display: grid; gap: 0; } .ab-stats em { font-style: normal; opacity: .6; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; } .ab-stats b { font-size: 12px; }
.ab-foot { flex: none; display: flex; align-items: center; gap: 10px; padding: 4px 12px 10px 16px; font-size: 9.5px; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.ab-foot > span:first-child { flex: 1; opacity: .55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-holo { width: 34px; height: 24px; border-radius: 4px; display: grid; place-items: center; flex: none;
  background: conic-gradient(from 200deg, #f0cd85, #9fd8ff, #d9a6ff, #b8ffda, #f0cd85); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); opacity: .9; }
.ab-holo .bmark { width: 16px; height: 16px; opacity: .75; mix-blend-mode: multiply; }
@media (prefers-reduced-motion: reduce) { .aflip-in, .aflip.flipped .aflip-in { transition: none; } }
/* back of prop cards: each rule on one line (name · bar · amount) so the three fit */
.aback .ab-r { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: center; column-gap: 8px; }
.aback .ab-l { display: contents; }
.aback .ab-l span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10.5px; opacity: .85; }
.aback .ab-l b { order: 3; font-size: 11px; text-align: right; min-width: 48px; }
.aback .ab-bar { order: 2; }

/* card level: a metallic word next to our mark, and a finish on the card */
.cc-net { display: inline-flex; align-items: center; gap: 7px; }
.cc-tier { font: italic 800 11px/1 var(--sans); letter-spacing: .18em; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 1px 0 rgba(0,0,0,.5)); }
.cc-tier.bronze { background-image: linear-gradient(180deg, #f2c49a, #b06d3c 55%, #e3a678); }
.cc-tier.silver { background-image: linear-gradient(180deg, #ffffff, #a9abb3 55%, #e9eaee); }
.cc-tier.gold { background-image: linear-gradient(180deg, #fff1c2, #c99a3c 55%, #f0cd85); }
.cc-tier.black { -webkit-text-fill-color: #f5f5f3; color: #f5f5f3; padding: 3px 7px; border-radius: 4px; background: #000; box-shadow: inset 0 0 0 1px #c99a3c; font-style: normal; }
/* finishes: the whole card is the metal of its level, like premium metal cards (brushed copper, silver, gold; black titanium) */
.cc-front[class*="tier-"] { --brush: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, rgba(0,0,0,.035) 1px 2px, transparent 2px 4px); }
.cc-front.tier-bronze { background: var(--brush), linear-gradient(125deg, #f0c3a0 0%, #b87346 32%, #e9b48c 52%, #9a5a30 78%, #d79e74 100%); color: #2c1709; }
.cc-front.tier-silver { background: var(--brush), linear-gradient(125deg, #f7f8fa 0%, #b3b6be 30%, #eceef2 50%, #9da1aa 76%, #dfe1e6 100%); color: #1f2228; }
.cc-front.tier-gold { background: var(--brush), linear-gradient(125deg, #f8e6b0 0%, #c99a3c 30%, #f3dc9e 50%, #b0832c 76%, #ecd08a 100%); color: #2e2208; }
.cc-front.tier-black { background: var(--brush), radial-gradient(130% 150% at 0% 0%, #34343a 0%, #111114 45%, #050506 100%); color: #e4e4e8; }
.cc-front[class*="tier-"] { box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 0 0 1px rgba(0,0,0,.18), 0 18px 34px -18px rgba(0,0,0,.6); }
.cc-front.tier-black { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(201,154,60,.45), 0 18px 34px -18px rgba(0,0,0,.85); }
.cc-front[class*="tier-"]::after { border-color: rgba(255,255,255,.12); }
/* engraved text on the light metals */
.cc-front:is(.tier-bronze, .tier-silver, .tier-gold) .cc-num { color: rgba(30,22,8,.78); text-shadow: 0 1px 0 rgba(255,255,255,.55), 0 -1px 0 rgba(0,0,0,.2); }
.cc-front:is(.tier-bronze, .tier-silver, .tier-gold) .cc-bot b { text-shadow: 0 1px 0 rgba(255,255,255,.45); }
.cc-front:is(.tier-bronze, .tier-silver, .tier-gold) .cc-bal .pos { color: inherit; }
.cc-front:is(.tier-bronze, .tier-silver, .tier-gold) .cc-bal .neg { color: inherit; opacity: .7; }
.cc-front:is(.tier-bronze, .tier-silver, .tier-gold) .cc-waves { color: rgba(0,0,0,.55); }
.cc-front:is(.tier-bronze, .tier-silver, .tier-gold) .cc-bank .logo { box-shadow: 0 0 0 1px rgba(0,0,0,.18); }
.cc-front.tier-black .cc-num { color: #d8b25f; text-shadow: 0 1px 0 rgba(0,0,0,.8), 0 -1px 0 rgba(255,255,255,.12); }
.cc-front.tier-black .cc-bal .pos { color: #f0cd85; }
/* the level word: engraved into the metal */
.cc-front:is(.tier-bronze, .tier-silver, .tier-gold) .cc-tier { background: none; -webkit-text-fill-color: currentColor; color: inherit; opacity: .8; filter: drop-shadow(0 1px 0 rgba(255,255,255,.5)); }
.cc-front.tier-black .cc-tier.black { -webkit-text-fill-color: #d8b25f; color: #d8b25f; background: none; box-shadow: none; padding: 0; font-style: italic; }
/* premium metal card layout: name in spaced capitals, a large engraved emblem in the middle,
   the number grouped 4-6-5, the holder and "member since" bottom left, a small square badge bottom right */
.cc-front .cc-bank b { text-transform: uppercase; letter-spacing: .16em; font-size: 11.5px; font-weight: 800; }
.cc-emblem { position: absolute; z-index: 0; left: 50%; top: 43%; width: 30%; aspect-ratio: 1; transform: translate(-10%, -50%); pointer-events: none; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35), inset 0 0 0 6px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.12); display: grid; place-items: center; }
.cc-emblem .bmark { width: 72%; height: 72%; opacity: .2; filter: grayscale(1) contrast(1.4); mix-blend-mode: multiply; }
.cc-front.tier-black .cc-emblem { box-shadow: inset 0 0 0 1.5px rgba(216,178,95,.45), inset 0 0 0 6px rgba(255,255,255,.03); }
.cc-front.tier-black .cc-emblem .bmark { opacity: .35; filter: sepia(1) saturate(2) hue-rotate(-10deg); mix-blend-mode: screen; }
.cc-front > *:not(.cc-emblem):not(.cc-glare) { position: relative; z-index: 2; }
.cc-front .cc-num { letter-spacing: .2em; }
.cc-bot b { font-size: 11.5px; letter-spacing: .1em; }
.cc-bot em { margin-top: 2px; font-size: 8px; }
.cc-box { width: 30px; height: 30px; border-radius: 5px; display: grid; place-items: center; background: rgba(0,0,0,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.cc-box .bmark { width: 22px; height: 22px; }
.cc-front.tier-black .cc-box { background: rgba(216,178,95,.12); box-shadow: inset 0 0 0 1px rgba(216,178,95,.5); }
.cc-net .bmark { filter: none; }
/* the back is the same metal as the front */
.aflip .aback[class*="tier-"] { --brush: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, rgba(0,0,0,.035) 1px 2px, transparent 2px 4px); }
.aflip .aback.tier-silver { background: var(--brush), linear-gradient(235deg, #f7f8fa 0%, #b3b6be 30%, #eceef2 50%, #9da1aa 76%, #dfe1e6 100%); color: #1f2228; }
.aflip .aback.tier-gold { background: var(--brush), linear-gradient(235deg, #f8e6b0 0%, #c99a3c 30%, #f3dc9e 50%, #b0832c 76%, #ecd08a 100%); color: #2e2208; }
.aflip .aback.tier-black { background: var(--brush), radial-gradient(130% 150% at 100% 0%, #34343a 0%, #111114 45%, #050506 100%); color: #e4e4e8; box-shadow: inset 0 0 0 1px rgba(201,154,60,.45); }
.aflip .aback:is(.tier-silver, .tier-gold) { box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 0 0 1px rgba(0,0,0,.18); }
.aflip .aback:is(.tier-silver, .tier-gold) .ab-title { color: inherit; opacity: .75; }
.aflip .aback:is(.tier-silver, .tier-gold) .ab-bar { background: rgba(0,0,0,.14); }
.aflip .aback:is(.tier-silver, .tier-gold) .ab-bar i { background: rgba(20,16,8,.75); }
.aflip .aback:is(.tier-silver, .tier-gold) .ab-bar.mid i { background: #8a5d10; } .aflip .aback:is(.tier-silver, .tier-gold) .ab-bar.bad i { background: #a8323f; }
.aflip .aback:is(.tier-silver, .tier-gold) .ab-bar.gold i { background: linear-gradient(90deg, #5a420f, #2e2208); }
.aflip .aback:is(.tier-silver, .tier-gold) .ab-spark path { stroke: rgba(20,16,8,.8) !important; }
.aflip .aback:is(.tier-silver, .tier-gold) .ab-cvv { box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.aflip .aback.tier-black .ab-title { color: #d8b25f; }

/* ================= Trader ID (the trader's ID card) ================= */
.tid { position: relative; width: 100%; aspect-ratio: 1.586; border-radius: 18px; padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; isolation: isolate; container-type: inline-size;
  --brush: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, rgba(0,0,0,.035) 1px 2px, transparent 2px 4px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 0 0 1px rgba(0,0,0,.18), 0 24px 44px -24px rgba(0,0,0,.55); font-family: var(--sans); }
.tid.tier-silver { background: var(--brush), linear-gradient(125deg, #f7f8fa 0%, #b3b6be 30%, #eceef2 50%, #9da1aa 76%, #dfe1e6 100%); color: #1f2228; }
.tid.tier-gold { background: var(--brush), linear-gradient(125deg, #f8e6b0 0%, #c99a3c 30%, #f3dc9e 50%, #b0832c 76%, #ecd08a 100%); color: #2e2208; }
.tid.tier-black { background: var(--brush), radial-gradient(130% 150% at 0% 0%, #34343a 0%, #111114 45%, #050506 100%); color: #e4e4e8; box-shadow: inset 0 0 0 1px rgba(201,154,60,.45), 0 24px 44px -24px rgba(0,0,0,.8); }
/* faint guilloché pattern, like on official documents */
.tid::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; pointer-events: none;
  background: repeating-radial-gradient(circle at 78% 60%, transparent 0 9px, rgba(0,0,0,.25) 9px 10px), repeating-radial-gradient(circle at 20% 30%, transparent 0 13px, rgba(255,255,255,.4) 13px 14px); mix-blend-mode: overlay; }
.tid-f { min-width: 0; border-radius: 6px; padding: 1px 4px; margin: 0 -4px; transition: background .25s, box-shadow .25s; }
.tid-f em { display: block; font-style: normal; font-size: 7.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.tid-f b { display: block; font-size: 11px; line-height: 1.25; font-weight: 700; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.tid.tier-black .tid-f b { text-shadow: none; }
.tid-f.empty b i { display: block; height: 8px; margin: 2px 0 1px; width: 70%; border-radius: 3px; background: currentColor; opacity: .14; }
.tid-f.focus { background: rgba(201,154,60,.22); box-shadow: 0 0 0 1.5px rgba(168,122,31,.7); }
.tid-f.focus.empty b i { animation: tidblink 1.1s ease-in-out infinite; opacity: .3; }
@keyframes tidblink { 50% { opacity: .08; } }
.tid-stamp { position: absolute; right: 9%; top: 34%; z-index: 3; display: grid; place-items: center; text-align: center; width: 108px; height: 108px; border-radius: 50%; transform: rotate(-14deg);
  border: 3px double rgba(168,40,52,.85); color: rgba(168,40,52,.9); font: 900 16px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; mix-blend-mode: multiply;
  animation: tidstamp .55s cubic-bezier(.2,1.6,.4,1) .35s both; }
.tid-stamp small { display: block; font-size: 9px; letter-spacing: .12em; margin-top: -26px; }
@keyframes tidstamp { from { opacity: 0; transform: rotate(-14deg) scale(2.4); } to { opacity: 1; transform: rotate(-14deg) scale(1); } }
/* back */
.tid-back { gap: 10px; }
/* flip */
.tid-flip { perspective: 1400px; outline: none; cursor: pointer; width: min(460px, 100%); margin: 0 auto; }
.tid-in { position: relative; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,.7,.2,1); }
.tid-flip.flipped .tid-in { transform: rotateY(180deg); }
.tid-in .tid { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.tid-in .tid-back { position: absolute; inset: 0; transform: rotateY(180deg); }
.tid-flip:focus-visible .tid { outline: 2px solid var(--brand); outline-offset: 3px; }
/* modal */
.tid-modal { display: grid; gap: 14px; justify-items: center; }
.tid-ranks { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.tid-ranks span { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--bg2); color: var(--mut); }
.tid-ranks span.done { color: var(--ink2); } .tid-ranks span.on { background: var(--ink); color: var(--on-ink); }
.tid-next { text-align: center; font-size: 13px; color: var(--ink2); margin: 0; }
/* questionnaire: questions on the left, the document being filled in on the right */
.qwrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 420px); gap: 28px; align-items: center; width: min(1120px, 100%); }
.qwrap .qbox { width: 100%; }
.qid { position: sticky; top: 90px; }
@media (max-width: 980px) { .qwrap { grid-template-columns: 1fr; } .qid { position: static; order: -1; width: min(420px, 100%); margin: 0 auto; } }
.qhand { grid-column: 1 / -1; display: grid; gap: 22px; justify-items: center; padding: 10px 0 30px; }
.qhand-card { width: min(520px, 100%); animation: tidhand .7s cubic-bezier(.2,.9,.3,1) both; }
@keyframes tidhand { from { opacity: 0; transform: translateY(30px) rotate(-4deg) scale(.92); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tid-stamp, .qhand-card { animation: none; } .tid-in { transition: none; } }
.tid .sp { flex: 1; }

/* ================= Analytics, visual: number cards, finding cards, group cards, columns ================= */
.kcards.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 14px; }
.kspark { color: var(--brand); margin-top: 4px; }
.kspark.neg { color: var(--dn); }
.kspark svg { display: block; width: 100%; height: 100%; }
[data-theme="dark"] .kspark { color: var(--brand-2); } [data-theme="dark"] .kspark.neg { color: var(--dn); }
.kbar .be, .kleg i.be { background: #c9c9c4; }
[data-theme="dark"] .kbar .be, [data-theme="dark"] .kleg i.be { background: #55555c; }
.kc .ks-lbl .kleg { font-size: var(--fs-xs); }
/* small ring with the win rate */
.mring { position: relative; flex: none; display: inline-block; }
.mring svg { display: block; }
.mring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 700; letter-spacing: -.02em; }
.mr-g { stroke: var(--brand); } .mr-r { stroke: var(--dn-fill); }
[data-theme="dark"] .mr-g { stroke: var(--brand-2); }
/* findings and habits as cards */
.fcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 4px 16px 16px; }
.fc { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r2); padding: 14px 16px; display: grid; gap: 6px; align-content: start; border-top: 3px solid var(--line2); }
.fc.good { border-top-color: var(--brand); } .fc.bad { border-top-color: var(--dn-fill); }
.fc-h { display: flex; align-items: center; gap: 10px; }
.fc-h b { flex: 1; font-size: var(--fs-md); font-weight: 650; line-height: 1.25; }
.fc .fd-i { width: 30px; height: 30px; border-radius: var(--r-sm); }
.fc.good .fd-i { background: var(--brand-bg); color: var(--brand); } .fc.bad .fd-i { background: var(--bg2); color: var(--dn); }
[data-theme="dark"] .fc.good .fd-i { color: var(--brand-2); }
.fc-v { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.03em; }
.fc.bad .fc-v { color: var(--dn); }
.fc small { font-size: var(--fs-sm); color: var(--mut); line-height: 1.4; }
.fc .kbar { margin-top: 2px; }
.fc .ks { font-size: var(--fs-xs); color: var(--mut); }
/* group cards: one per asset, session, strategy */
.a-sec { font-size: var(--fs-lg); font-weight: 650; margin: 18px 2px 10px; }
.a-sec .dim { font-size: var(--fs-sm); font-weight: 500; }
.a-sec-h { display: flex; align-items: center; gap: 10px; } .a-sec-h .a-sec { margin-bottom: 10px; }
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gc { background: var(--panel); border-radius: var(--r2); padding: 16px 18px 14px; box-shadow: var(--sh); display: grid; gap: 6px; border-top: 3px solid var(--line2); }
.gc.g { border-top-color: var(--brand); } .gc.r { border-top-color: var(--dn-fill); }
.gc-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gc-h b { flex: 1; min-width: 0; font-size: var(--fs-md); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-h .pill { flex: none; }
.gc-m { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gc-v { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.035em; }
.gc-f { display: flex; justify-content: space-between; gap: 10px; font-size: var(--fs-sm); color: var(--mut); padding-top: 6px; border-top: 1px solid var(--line); }
.gc-f b { color: var(--ink); font-weight: 650; margin-left: 3px; }
/* buys vs sells tiles */
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.side-t { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 12px; display: grid; justify-items: center; gap: 8px; text-align: center; border-top: 3px solid var(--line2); }
.side-t.g { border-top-color: var(--brand); } .side-t.r { border-top-color: var(--dn-fill); }
.side-t > div { display: grid; gap: 2px; }
.side-t b { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.03em; }
.side-t small { font-size: var(--fs-xs); color: var(--mut); }
.sides.wide .side-t { grid-template-columns: auto 1fr 1.3fr; justify-items: start; text-align: left; align-items: center; gap: 16px; padding: 14px 18px; }
.sides.wide .side-t .kspark { width: 100%; margin: 0; }
.sides.wide .side-t b { font-size: var(--fs-xl); }
/* vertical columns: profit up (gold), loss down (grey) */
.vcols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; --top: .5; }
.vc { display: grid; grid-template-rows: calc(var(--top) * (100% - 22px)) calc((1 - var(--top)) * (100% - 22px)) 22px; min-width: 0; }
.vc-t { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; border-bottom: 1px solid var(--line2); min-height: 0; }
.vc-b { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; min-height: 0; }
.vc i { display: block; width: 72%; max-width: 38px; min-height: 2px; border-radius: 7px 7px 2px 2px; background: var(--brand); flex: none; }
.vc-b i { border-radius: 2px 2px 7px 7px; background: var(--dn-fill); opacity: .85; }
.vc em { font-style: normal; font-size: var(--fs-xs); font-weight: 600; color: var(--ink2); padding: 2px 0; white-space: nowrap; }
.vc-l { font-size: var(--fs-xs); color: var(--mut); text-align: center; padding-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-l::first-letter { text-transform: uppercase; }
.vcols.cnt .vc { grid-template-rows: calc(100% - 22px) 22px; }
.vcols.cnt .vc.neg i { background: var(--dn-fill); }
[data-theme="dark"] .vc i { background: var(--brand-2); } [data-theme="dark"] .vc-b i, [data-theme="dark"] .vcols.cnt .vc.neg i { background: var(--dn-fill); }
/* risk tiles */
.rtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.risk-t { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; display: grid; gap: 2px; }
.risk-t span { font-size: var(--fs-xs); color: var(--mut); text-transform: uppercase; letter-spacing: .07em; }
.risk-t b { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.02em; }
@media (max-width: 1100px) { .fcards, .kcards.k3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .fcards, .kcards.k3, .sides { grid-template-columns: 1fr; } .sides.wide .side-t { grid-template-columns: auto 1fr; } .sides.wide .side-t .kspark { grid-column: 1 / -1; } }

/* big numbers never look faded: a loss keeps full contrast (the minus sign, the grey top border and the verdict say it) */
.kc.r .kv, .kc .kv.dn, .fc.bad .fc-v, .gc-v.dn, .side-t b.dn, .risk-t b.dn, .hp-val { color: var(--ink); }
/* ================= Add account, first step: four clear choices ================= */
.tcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tcard2 { position: relative; display: grid; gap: 6px; align-content: start; text-align: left; cursor: pointer; padding: 20px 22px; border-radius: var(--r2); border: 1.5px solid var(--line); background: var(--panel); transition: border-color .2s, box-shadow .2s, transform .12s; }
.tcard2:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); box-shadow: var(--sh); transform: translateY(-1px); }
.tcard2.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--sh); }
.tcard2 b { font-size: var(--fs-lg); font-weight: 650; letter-spacing: -.01em; margin-top: 8px; }
.tcard2 small { font-size: var(--fs-sm); color: var(--mut); }
.tcard2 .ck { background: var(--brand); } .tcard2 .ck svg { stroke: #fff; }
.tc-note { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: var(--fs-sm); color: var(--ink2); }
.tc-note svg { width: 14px; height: 14px; stroke: var(--brand); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lrow { display: flex; align-items: center; gap: 6px; }
.lmore { height: 32px; min-width: 32px; padding: 0 8px; border-radius: var(--r-sm); background: var(--bg2); color: var(--ink2); font-size: var(--fs-sm); font-weight: 700; display: grid; place-items: center; }
[data-theme="dark"] .tcard2 { background: var(--panel2); border-color: var(--line2); }
[data-theme="dark"] .tcard2.on, [data-theme="dark"] .tcard2:hover { border-color: var(--brand-2); }
[data-theme="dark"] .tc-note svg { stroke: var(--brand-2); }
@media (max-width: 700px) { .tcards { grid-template-columns: 1fr; } }

/* ===== account card = credit card with the firm's rules (js/ui/rulecard.js) =====
   Everything inside is sized in cqw (1cqw = 1% of the card's width), so the content scales with the card and always fits the 1.586 shape. */
.acc-detail { grid-template-columns: minmax(320px, 380px) minmax(0, 1fr); }
.cflip { container-type: inline-size; perspective: 1600px; outline: none; cursor: pointer; position: relative; min-width: 0; }
.cflip-in { display: grid; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,.7,.2,1); }
.cflip.flipped .cflip-in { transform: rotateY(180deg); }
/* picked (wizard) / keyboard focus: a ring that follows the card's own corners */
.cflip.on .ccard { box-shadow: 0 0 0 2px #b4a3ff, 0 0 0 6px rgba(240,205,133,.22), 0 18px 34px -18px rgba(0,0,0,.7); }
.cflip:focus-visible .ccard { box-shadow: 0 0 0 2px var(--brand-2), 0 18px 34px -18px rgba(0,0,0,.7); }
.ccard { --b: #52525b; grid-area: 1 / 1; position: relative; aspect-ratio: 1.586; min-width: 0; border-radius: 6cqw; padding: 4.2cqw 4.8cqw 3.6cqw; color: #fff; text-align: left;
  display: flex; flex-direction: column; gap: 2.4cqw; overflow: hidden; isolation: isolate; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--b) 92%, #fff) 0%, color-mix(in srgb, var(--b) 78%, #000) 46%, #0d0d10 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 18px 34px -18px color-mix(in srgb, var(--b) 70%, #000); }
.ccard.back { transform: rotateY(180deg); background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--b) 92%, #fff) 0%, color-mix(in srgb, var(--b) 78%, #000) 46%, #0d0d10 100%); }
.ccard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.14) 45%, transparent 60%); }
.ccard::after { content: ""; position: absolute; right: -30%; bottom: -60%; width: 90%; height: 120%; z-index: -1; border-radius: 50%; border: 5cqw solid rgba(255,255,255,.05); }
.ccard .cc-glare { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 50% at 30% 0%, rgba(255,255,255,.18), transparent 70%); }
.cflip:not(.flipped) .ccard.back, .cflip.flipped .ccard.front { pointer-events: none; }
.cc-hd { display: flex; align-items: center; gap: 2.6cqw; min-width: 0; }
.cc-hd .logo { width: 8.6cqw; height: 8.6cqw; border-radius: 2.4cqw; box-shadow: 0 0 0 1px rgba(255,255,255,.35); flex: none; }
.cc-tt { display: grid; min-width: 0; flex: 1; }
.cc-tt b { font-size: 4.2cqw; font-weight: 800; letter-spacing: .02em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-tt em { font-style: normal; font-size: 2.8cqw; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-here { color: #f0cd85; }
.cc-rt { display: grid; justify-items: end; line-height: 1.1; }
.cc-rt b { font-size: 5.4cqw; font-weight: 750; letter-spacing: -.02em; }
.cc-rt span { font-size: 3.2cqw; font-weight: 700; opacity: .75; } .cc-rt span.pos { color: #f0cd85; opacity: 1; }
.cc-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: min-content; gap: 2cqw 2.8cqw; align-content: center; }
.cc-c { display: grid; gap: .5cqw; min-width: 0; align-content: start; }
.cc-c em { font-style: normal; font-size: 2.6cqw; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .62; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-c b { display: flex; align-items: center; gap: 1.2cqw; font-size: 3.9cqw; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.cc-ok { width: 3.8cqw; height: 3.8cqw; border-radius: 50%; display: grid; place-items: center; background: #f0cd85; flex: none; }
.cc-ok svg { width: 2.4cqw; height: 2.4cqw; stroke: #1a1408; fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
/* the switches picked at purchase: a gold-rimmed pill so they read as buttons at a glance */
.cc-c.sw em { opacity: 1; color: rgba(255,255,255,.72); }
.cc-c b.sm { font-size: 3.1cqw; }
.cc-c.sw.w2 { grid-column: span 2; }
.cc-c.sw.w3 { grid-column: 1 / -1; }
.cc-sw { display: inline-flex; justify-self: start; padding: .5cqw; gap: .3cqw; border-radius: 2.2cqw; background: rgba(0,0,0,.42);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); max-width: 100%; }
.cc-sw :is(button, span) { border: 0; background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); font: inherit; font-size: 3cqw; font-weight: 750; line-height: 1.2; padding: .7cqw 1.8cqw; border-radius: 1.6cqw; cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums; transition: background .15s, color .15s, box-shadow .15s; }
.cc-sw button:hover { color: #fff; background: rgba(255,255,255,.18); }
/* the option you picked: white, like the card's "Challenge" button (Demo keeps its mint, further down) */
.cc-sw :is(button, span).on { background: #fff; color: #111; cursor: default; box-shadow: 0 .3cqw 1.4cqw rgba(255,255,255,.22); }
.cc-ft { display: flex; align-items: center; gap: 2cqw; font-size: 3cqw; font-weight: 600; min-height: 6cqw; }
.cc-fl { min-width: 0; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-turn { display: inline-flex; align-items: center; gap: 1.2cqw; padding: 1.2cqw 2.8cqw 1.2cqw 2.2cqw; border-radius: 999px; background: #fff; color: #111; font-weight: 750; white-space: nowrap; flex: none;
  box-shadow: 0 2px 10px -4px rgba(0,0,0,.6); transition: transform .15s; }
.cc-turn svg { width: 3.2cqw; height: 3.2cqw; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cflip:hover .cc-turn { transform: translateX(-2px); }
.cc-spark { grid-column: 1 / -1; display: flex; align-items: center; color: #f0cd85; font-size: 3.4cqw; opacity: .9; }
.cc-spark svg { width: 100%; }
@media (prefers-reduced-motion: reduce) { .cflip-in { transition: none; } }
/* the wizard lays the cards out bigger */
.acards.cc { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 18px; }.cc-c b small { font-size: 2.6cqw; font-weight: 700; opacity: .6; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; }

/* add-account wizard: whatever you pick is gold, on every step */
#wz { --sel: var(--brand); --on-sel: #fff; }
[data-theme="dark"] #wz { --sel: var(--brand-2); --on-sel: #1a1408; }
#wz :is(.bcard, .way, .tcard2).on { border-color: var(--sel); box-shadow: 0 0 0 1px var(--sel), var(--sh); }
#wz :is(.bcard, .way, .tcard2):hover { border-color: color-mix(in srgb, var(--sel) 55%, var(--line)); }
#wz .ck, #wz .tcard2 .ck { background: var(--sel); } #wz .ck svg, #wz .tcard2 .ck svg { stroke: var(--on-sel); }
#wz .way.on .ic { background: var(--sel); } #wz .way.on .ic svg { stroke: var(--on-sel); }
#wz .way.on::after { background-color: var(--sel); border-color: var(--sel); }
#wz .choice.on { border-color: var(--sel); background: color-mix(in srgb, var(--sel) 12%, var(--panel)); color: var(--ink); box-shadow: 0 0 0 1px var(--sel); }
#wz .choice.on small { color: var(--mut); }
#wz .choice.on .ic { background: var(--sel); } #wz .choice.on .ic svg { stroke: var(--on-sel); }
/* ===== new account: the card is handed over (manage.js → cardHandover) =====
   The card rises from below leaning back in 3D, comes into focus over a soft light, one shine crosses it,
   then it floats and leans towards the mouse. It never turns round. */
.ho { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; align-content: center; gap: 26px; padding: 24px; cursor: pointer;
  background: rgba(5,5,7,.86); backdrop-filter: blur(14px) saturate(.8); -webkit-backdrop-filter: blur(14px) saturate(.8);
  animation: hoIn .5s ease both; transition: background .5s, backdrop-filter .5s; }
.ho.leaving { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.ho.leaving > :not(.ho-stage), .ho.leaving .ho-glow, .ho.leaving .ho-floor { opacity: 0 !important; transition: opacity .25s; animation: none; }
.ho-stage { position: relative; width: min(420px, 86vw); display: grid; perspective: 1100px; }
.ho-glow { position: absolute; left: 50%; top: 50%; width: 170%; aspect-ratio: 1.6; translate: -50% -50%; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(240,205,133,.42), rgba(240,205,133,.12) 55%, transparent);
  animation: hoGlow 1.6s cubic-bezier(.16,1,.3,1) .15s both; }
.ho-card { position: relative; transform-style: preserve-3d; animation: hoEnter 1.3s cubic-bezier(.16,1,.3,1) .1s both, hoFloat 5s ease-in-out 1.5s infinite; }
.ho-tilt { position: relative; transform-style: preserve-3d; transition: transform .25s ease-out; }
.ho-card .cflip { pointer-events: none; }
.ho-shine { position: absolute; inset: 0; border-radius: 24px; pointer-events: none; overflow: hidden; z-index: 5; }
.ho-shine::before { content: ""; position: absolute; top: -30%; bottom: -30%; width: 28%; left: -50%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), rgba(255,246,220,.18), transparent); mix-blend-mode: screen; animation: hoShine 1.1s cubic-bezier(.4,0,.2,1) 1.15s both; }
.ho-floor { position: absolute; left: 12%; right: 12%; bottom: -34px; height: 26px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0,0,0,.75), transparent); filter: blur(6px); animation: hoFloor 1.3s cubic-bezier(.16,1,.3,1) .1s both, hoFloorF 5s ease-in-out 1.5s infinite; }
.ho-txt { text-align: center; color: #fff; display: grid; gap: 8px; justify-items: center; margin-top: 18px; }
.ho-firm { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #b4a3ff; animation: hoUp .7s ease 1.05s both; }
.ho-txt h2 { font-size: 30px; font-weight: 650; letter-spacing: -.025em; margin: 0; animation: hoUp .7s ease 1.2s both; }
.ho-txt p { margin: 0; color: rgba(255,255,255,.55); font-size: 14px; animation: hoUp .7s ease 1.35s both; }
.ho-go { animation: hoUp .7s ease 1.6s both; }
.ho-landed .ccard { animation: hoLand 1.1s ease; }
@keyframes hoIn { from { opacity: 0; } }
@keyframes hoEnter { 0% { opacity: 0; transform: translateY(140px) rotateX(58deg) scale(.82); filter: blur(8px) brightness(.6); }
  60% { opacity: 1; filter: blur(0) brightness(1.1); } 100% { opacity: 1; transform: translateY(0) rotateX(0deg) scale(1); filter: blur(0) brightness(1); } }
@keyframes hoFloat { 0%, 100% { transform: translateY(0) rotateX(0deg) scale(1); } 50% { transform: translateY(-8px) rotateX(2deg) scale(1); } }
@keyframes hoGlow { from { opacity: 0; scale: .4; } }
@keyframes hoShine { from { left: -50%; } to { left: 130%; } }
@keyframes hoFloor { from { opacity: 0; transform: scale(.5); } }
@keyframes hoFloorF { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.9); opacity: .75; } }
@keyframes hoUp { from { opacity: 0; transform: translateY(12px); } }
@keyframes hoLand { 0% { box-shadow: 0 0 0 0 rgba(240,205,133,.6); } 100% { box-shadow: 0 0 0 20px rgba(240,205,133,0); } }

/* the account number, engraved on the card like an embossed card number */
.cc-no { font-style: normal; font-size: 2.7cqw; font-weight: 700; letter-spacing: .14em; color: rgba(255,255,255,.82); text-shadow: 0 1px 0 rgba(0,0,0,.55), 0 -1px 0 rgba(255,255,255,.18); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* add account: one login with several accounts, a card for each */
.asg { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--r); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.asg.ok { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sel, var(--brand)) 55%, var(--line)); }
.asg-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.asg-no { font-weight: 800; letter-spacing: .06em; }
.pill.warn { background: color-mix(in srgb, var(--sel, var(--brand)) 16%, transparent); color: var(--sel, var(--brand)); }
.seg.sm button { padding: 5px 11px; font-size: var(--fs-sm); }

/* rename an account where its name is (js/ui/rename.js) */
.acc-name { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.acc-name-ed { width: 28px; height: 28px; border: 0; border-radius: var(--r-sm); display: grid; place-items: center; background: transparent; color: var(--mut); cursor: pointer; opacity: .55; transition: opacity .15s, background .15s, color .15s; }
.acc-name:hover .acc-name-ed, .acc-name-ed:focus-visible { opacity: 1; }
.acc-name-ed:hover { background: var(--bg2); color: var(--ink); }
.acc-name-ed svg, .acc-ren svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.acc-ren { position: absolute; right: 37px; top: 31px; width: 28px; height: 26px; border: 0; border-radius: var(--r-sm); display: grid; place-items: center; background: transparent; color: var(--mut); cursor: pointer; opacity: 0; transition: opacity .15s, background .15s, color .15s; }
.acc-wrap:hover .acc-ren, .acc-ren:focus-visible, .acc-wrap:has(.acc-it.on) .acc-ren { opacity: 1; }
@media (hover: none) { .acc-ren { opacity: .7; } }
.acc-ren:hover { background: var(--bg2); color: var(--ink); }
.acc-wrap:has(.acc-it.on) .acc-ren { color: rgba(255,255,255,.65); }
[data-theme="dark"] .acc-wrap:has(.acc-it.on) .acc-ren { color: rgba(13,14,16,.6); }
.acc-wrap:is(:hover, :has(.acc-it.on)) .acc-it .r2 { padding-right: 66px; }
/* several new cards at once: fanned out, each one rising a moment after the previous */
.ho-fan { display: grid; position: relative; }
.ho-pos { grid-area: 1 / 1; transform-origin: 50% 140%; transform: translateX(calc(var(--k, 0) * var(--sp, 0%))) rotate(calc(var(--k, 0) * 6deg)); }
.ho-stage.multi { width: min(340px, 58vw); margin-bottom: 18px; }
.ho-stage.multi .ho-glow { width: 260%; }
.ho-pos .ho-card { animation-delay: calc(.1s + var(--i, 0) * .2s), calc(1.5s + var(--i, 0) * .2s); }
.ho-landed-row { animation: hoRow 1.1s ease; }
@keyframes hoRow { 0% { box-shadow: 0 0 0 0 rgba(240,205,133,.65); } 100% { box-shadow: 0 0 0 12px rgba(240,205,133,0); } }
/* the name itself turns editable: same font and colour, a thin gold line under it while typing */
.ren-inline { border: 0; background: transparent; padding: 0; margin: 0; outline: none; min-width: 0; border-radius: 0; box-shadow: inset 0 -1.5px 0 var(--brand); caret-color: var(--brand); }
[data-theme="dark"] .ren-inline { box-shadow: inset 0 -1.5px 0 var(--brand-2); caret-color: var(--brand-2); }
.ren-inline::selection { background: color-mix(in srgb, var(--brand) 35%, transparent); }
.acc-it.renaming { cursor: default; }
.acc-it.renaming .r1 .ren-inline { flex: 1; width: auto !important; }
/* ===== every card its own look (rulecard.js → cardLook): same firm colour, different pattern, light, sheen and ring ===== */
.ccard { background: radial-gradient(120% 140% at var(--ox, 0%) var(--oy, 0%), color-mix(in srgb, var(--b) 92%, #fff) 0%, color-mix(in srgb, var(--b) var(--mix, 78%), #000) 46%, var(--dark, #0d0d10) 100%); }
.ccard.back { background: radial-gradient(120% 140% at calc(100% - var(--ox, 0%)) var(--oy, 0%), color-mix(in srgb, var(--b) 92%, #fff) 0%, color-mix(in srgb, var(--b) var(--mix, 78%), #000) 46%, var(--dark, #0d0d10) 100%); }
.ccard::before { background: linear-gradient(var(--ang, 115deg), transparent 30%, rgba(255,255,255,.14) 45%, transparent 60%); }
.ccard::after { right: var(--rr, -30%); bottom: var(--rb, -60%); width: var(--rs, 90%); height: calc(var(--rs, 90%) * 1.33); }
.cc-pat { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--po, .08);
  -webkit-mask-image: radial-gradient(130% 120% at calc(100% - var(--ox, 0%)) 100%, #000 10%, transparent 75%); mask-image: radial-gradient(130% 120% at calc(100% - var(--ox, 0%)) 100%, #000 10%, transparent 75%); }
/* 0 fine engraved lines */
.pat-0 .cc-pat { background: repeating-linear-gradient(var(--pa), #fff 0 1px, transparent 1px calc(var(--pz) * .45)); }
/* 1 concentric circles from a corner */
.pat-1 .cc-pat { background: repeating-radial-gradient(circle at calc(100% - var(--ox)) 110%, #fff 0 1px, transparent 1px var(--pz)); }
/* 2 guilloche waves */
.pat-2 .cc-pat { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='22' viewBox='0 0 80 22'%3E%3Cpath d='M0 11 C10 1 30 1 40 11 S70 21 80 11' fill='none' stroke='%23fff' stroke-width='1'/%3E%3Cpath d='M0 15 C10 5 30 5 40 15 S70 25 80 15' fill='none' stroke='%23fff' stroke-width='.6'/%3E%3C/svg%3E"); background-size: calc(var(--pz) * 6) calc(var(--pz) * 1.6); transform: rotate(calc(var(--pa) / 6)); transform-origin: center; inset: -20%; }
/* 3 dot grid */
.pat-3 .cc-pat { background: radial-gradient(circle, #fff 0 1.1px, transparent 1.6px) 0 0 / var(--pz) var(--pz); opacity: calc(var(--po) * 1.4); }
/* 4 contour arcs */
.pat-4 .cc-pat { background: repeating-radial-gradient(ellipse 140% 70% at var(--ox) -10%, transparent 0 calc(var(--pz) - 1px), #fff calc(var(--pz) - 1px) var(--pz)); }
/* 5 cross-hatch */
.pat-5 .cc-pat { background: repeating-linear-gradient(var(--pa), #fff 0 1px, transparent 1px var(--pz)), repeating-linear-gradient(calc(var(--pa) + 90deg), #fff 0 1px, transparent 1px var(--pz)); opacity: calc(var(--po) * .8); }

/* account types (Launch / Propel / ...): a row of wide tabs, the program name over its size range */
.ptabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.ptabs button { display: grid; gap: 3px; text-align: left; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line, rgba(255,255,255,.1)); background: var(--bg2); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.ptabs button b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.ptabs button small { font-size: 12px; color: var(--mut); font-variant-numeric: tabular-nums; }
.ptabs button:hover { border-color: rgba(255,255,255,.28); transform: translateY(-1px); }
.ptabs button.on { border-color: var(--sel); background: color-mix(in srgb, var(--sel) 14%, var(--panel)); box-shadow: 0 0 0 1px var(--sel), var(--sh); transform: none; }
.ptabs button.on b { color: var(--sel); }
/* own capital: your limits (card foot, calendar, editor) */
.cc-spark.sm { min-height: 0; }
.cc-lim { display: inline-flex; align-items: center; gap: 1cqw; min-width: 0; color: #ffb4ab; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-lim svg { width: 3.2cqw; height: 3.2cqw; flex: none; stroke: currentColor; fill: none; stroke-width: 2.4; }
.cc-set { display: inline-flex; align-items: center; gap: 1.2cqw; border: 1px solid rgba(240,205,133,.55); background: rgba(0,0,0,.35); color: #f0cd85; font: inherit; font-size: 3cqw; font-weight: 750; padding: 1cqw 2.6cqw; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.cc-set:hover { background: rgba(240,205,133,.18); }
.cc-set svg { width: 3.2cqw; height: 3.2cqw; stroke: currentColor; fill: none; stroke-width: 2; }
.cal .d .limdot { width: 6px; height: 6px; border-radius: 50%; background: var(--dn); margin-left: 3px; display: inline-block; }
.lim-list { display: grid; gap: 10px; }
.lim-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto; gap: 6px 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line, rgba(127,127,127,.2)); border-radius: var(--r); }
.lim-row small { grid-column: 1 / -1; font-size: var(--fs-xs); }
.lim-row .inp, .lim-row .sel { width: 100%; min-width: 0; box-sizing: border-box; }
.lim-row > span.dim { font-size: var(--fs-sm); }
.lim-on { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.lim-on input { width: 16px; height: 16px; accent-color: var(--sel, var(--acc)); }

/* add account, first step: each choice is a hand of cards held like a deck (portrait), every logo showing in its corner */
.tcard2:has(.fan) { container-type: inline-size; }
.fan { position: relative; display: block; height: min(150px, 40cqw); margin: 2px 0 12px; --step: min(30px, 7cqw); --turn: 7; }
.fan-c { position: absolute; left: 50%; bottom: 0; width: min(78px, 19cqw); margin-left: max(-39px, -9.5cqw); container-type: inline-size; z-index: var(--i);
  transform-origin: 50% 135%; transform: translateX(calc(var(--x) * var(--step))) rotate(calc(var(--x) * var(--turn) * 1deg)); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.fan-c .ccard { display: block; aspect-ratio: 1 / 1.45; padding: 9cqw; border-radius: 12cqw; box-shadow: -4px 6px 16px rgba(0,0,0,.3), inset 0 0 0 1px rgba(255,255,255,.1); }
.fan-c .ccard::after { right: -60%; bottom: -30%; width: 140%; height: 90%; border-width: 8cqw; }
.fan-c .logo { width: 46cqw; height: 46cqw; border-radius: 13cqw; position: relative; z-index: 2; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.fan-c.more .ccard { display: flex; align-items: flex-start; background: #f4f2ec; color: #141414; box-shadow: -4px 6px 16px rgba(0,0,0,.22), inset 0 0 0 1px rgba(0,0,0,.06); }
.fan-c.more .ccard::before, .fan-c.more .ccard::after { display: none; }
.fan-c.more b { font-size: 24cqw; font-weight: 750; letter-spacing: -.02em; margin: 0; color: #141414; }
.tcard2:hover .fan, .tcard2.on .fan { --step: min(34px, 8cqw); --turn: 9; }
.tcard2:hover .fan-c, .tcard2.on .fan-c { translate: 0 -6px; }
/* add account, firm / broker step: a wallet of cards, each in its firm's colour and pattern */
.bgrid.wallet { grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 14px; padding: 6px 2px 10px; }
#wz .bcard.wc { --b: #52525b; aspect-ratio: 1.586; display: flex; flex-direction: column; gap: 2px; padding: 14px 15px 12px; border: 0; border-radius: 16px; color: #fff; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 140% at var(--ox, 0%) var(--oy, 0%), color-mix(in srgb, var(--b) 92%, #fff) 0%, color-mix(in srgb, var(--b) var(--mix, 78%), #000) 46%, var(--dark, #0d0d10) 100%);
  box-shadow: 0 6px 16px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.07); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
#wz .bcard.wc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--ang, 115deg), transparent 30%, rgba(255,255,255,.13) 45%, transparent 60%); }
#wz .bcard.wc::after { content: ""; position: absolute; right: var(--rr, -30%); bottom: var(--rb, -60%); width: var(--rs, 90%); height: calc(var(--rs, 90%) * 1.33); z-index: -1; border-radius: 50%; border: 14px solid rgba(255,255,255,.05); }
#wz .bcard.wc .logo { box-shadow: 0 2px 8px rgba(0,0,0,.25); }
#wz .bcard.wc b { color: #fff; margin-top: auto; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#wz .bcard.wc small { color: rgba(255,255,255,.7); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#wz .bcard.wc:hover { transform: translateY(-4px) rotate(-1.2deg); box-shadow: 0 16px 30px rgba(0,0,0,.28); border-color: transparent; }
#wz .bcard.wc.on { transform: translateY(-6px); box-shadow: 0 0 0 2.5px var(--sel), 0 18px 34px rgba(0,0,0,.32); }
#wz .bcard.wc .ck { top: 10px; right: 10px; }
#wz .bcard.wc.other { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); border: 1.5px dashed transparent; }
#wz .bcard.wc.other::before, #wz .bcard.wc.other::after { display: none; }
#wz .bcard.wc.other b { color: var(--ink); } #wz .bcard.wc.other small { color: var(--mut); }
#wz .bcard.wc.other.on { box-shadow: 0 0 0 2.5px var(--sel), 0 18px 34px rgba(0,0,0,.2); }@media (max-width: 560px) {
  .bgrid.wallet { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #wz .bcard.wc { padding: 10px 11px 9px; border-radius: 12px; }
  #wz .bcard.wc .logo { width: 28px; height: 28px; border-radius: 8px; }
  #wz .bcard.wc b { font-size: 12.5px; } #wz .bcard.wc small { font-size: 10.5px; }
  #wz .bcard.wc .ck { top: 7px; right: 7px; transform: scale(.85); }
}

/* ================= phones ================= */
/* Accounts: the list goes on top (it already scrolls sideways) and the open account below, full width */
@media (max-width: 900px) {
  .layout.l-acc { grid-template-columns: minmax(0, 1fr); }
}
/* a status line with a button: the button drops below the text when they don't fit side by side */
.state { flex-wrap: wrap; }
.state > span, .state > div { flex: 1 1 180px; min-width: 0; }
/* calendar: the short amount ("+1,2k") only shows when the cells are small */
.cal .d .p .pk { display: none; }
.cal-tot { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.cal .wk span { hyphens: auto; overflow-wrap: break-word; } /* "operaciones" in the narrow week column */
@media (max-width: 900px) {
  .cal .d .p .pf { display: none; } .cal .d .p .pk { display: inline; }
  .cal .d .p { font-size: 11px; letter-spacing: -.03em; }
}
@media (max-width: 560px) {
  .cal-tot { flex-direction: column; align-items: flex-end; gap: 0; }
  .pn-h h3 { min-width: 0; }
  /* "Every number": long names wrap instead of pushing the figures out of the card */
  .tbl.figs td { white-space: normal; padding-left: 14px; padding-right: 14px; } .tbl.figs td.r { white-space: nowrap; }
}
/* the smallest phones: the calendar and the big P&L figure give back a little room */
@media (max-width: 400px) {
  .pn-b:has(> .cal) { padding-left: 10px; padding-right: 10px; }
  .cal { gap: 3px; }
  .cal .d { padding: 4px 3px; }
  .cal .d .p { font-size: 10px; letter-spacing: -.04em; }
  .hp-val { font-size: min(52px, 13.5vw); }
}
/* metric cards: one per row when the centre column is narrow, so figures are never cut */
@container (max-width: 520px) { .content .kcards { grid-template-columns: minmax(0, 1fr); } }
/* sections: a tab bar fixed at the bottom of the screen, every section in reach of the thumb */
@media (max-width: 760px) {
  /* a blur on the bar itself would trap the fixed menu inside it, so the blur moves to a layer behind */
  .topbar { grid-template-columns: auto minmax(0, 1fr); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .topbar::before { content: ""; position: absolute; inset: 0; z-index: -1; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .topnav { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 35; justify-content: space-between; gap: 0; overflow: hidden; }
  .topnav a { flex: 1 1 0; width: auto; min-width: 0; height: 46px; }
  .topnav .tn-ind { height: 46px; }
  .topnav a svg { width: 20px; height: 20px; }
  .layout { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  #toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  #navtip { display: none; }
}

/* rule bars for losses fill with what is used: empty = nothing lost, red = close to the limit */
.bar.use { background: var(--bg2); }
.bar.use i { background: var(--brand); }
.bar.use.warn i { background: var(--warn); }
.bar.use.err i { background: var(--danger); }

/* MetaTrader 5 with a code: big MT5 logo, three step cards, the code button stands out */
.ea { display: grid; gap: 16px; }
.ea-hero { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--r2); background: linear-gradient(135deg, color-mix(in srgb, #2a7fd4 22%, var(--panel)), var(--panel)); border: 1px solid var(--line); }
.ea-hero .logo.xl { flex: none; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.ea-hero h3 { margin: 0 0 4px; font-size: var(--fs-xl); letter-spacing: -.02em; }
.ea-hero p { margin: 0; color: var(--ink2); font-size: var(--fs-sm); }
.ea-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.ea-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r2); background: var(--bg2); border: 1px solid var(--line); min-width: 0; }
.ea-card b { font-size: var(--fs-md); }
.ea-card p { margin: 0; color: var(--ink2); font-size: var(--fs-sm); }
.ea-card small { color: var(--mut); font-size: var(--fs-xs); line-height: 1.4; }
.ea-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--panel); color: var(--ink); border: 1px solid var(--line2); }
.ea-n svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.ea-card.done .ea-n { background: var(--up); color: var(--panel); border-color: transparent; }
.ea-card.hl { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); animation: eaPulse 2.2s ease-in-out infinite; }
@keyframes eaPulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--brand) 10%, transparent); } }
@media (prefers-reduced-motion: reduce) { .ea-card.hl { animation: none; } }
.ea-go { justify-content: center; width: 100%; padding-top: 11px; padding-bottom: 11px; font-weight: 700; margin-top: auto; }
.ea-gen { font-size: var(--fs-md); }
.ea-chip { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px dashed var(--line2); background: var(--panel); color: var(--ink); cursor: pointer; font: inherit; margin-top: auto; }
.ea-chip code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; font-size: var(--fs-sm); }
.ea-chip svg, .ea-code svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }
.ea-chip:hover, .ea-code:hover { border-color: var(--brand); }
.ea-code { display: grid; gap: 4px; justify-items: center; width: 100%; padding: 14px 10px; border-radius: 12px; border: 2px solid var(--brand); background: var(--panel); color: var(--ink); cursor: pointer; font: inherit; }
.ea-code .num { font-size: 20px; font-weight: 800; letter-spacing: .05em; line-height: 1.3; text-align: center; } .ea-code .num span { display: block; white-space: nowrap; }
.ea-code small { display: inline-flex; align-items: center; gap: 5px; color: var(--mut); font-size: var(--fs-xs); }
.ea-status { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 12%, var(--panel)); font-weight: 600; font-size: var(--fs-sm); }
.ea-status.idle { background: var(--bg2); color: var(--mut); font-weight: 500; }
.ea-status .spin { border-color: var(--line2); border-top-color: var(--ink); }
.lnk { background: none; border: 0; padding: 2px 0; color: var(--ink2); font: inherit; font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; align-self: flex-start; }
.lnk:hover { color: var(--ink); }.ea-how { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--r2); background: var(--bg2); border: 1px solid var(--line); }
.ea-how-h { display: flex; align-items: center; gap: 8px; font-size: var(--fs-md); }
.ea-how-i { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: var(--fs-sm); color: var(--ink2); line-height: 1.45; }
.ea-how-i b { color: var(--ink); }
.ea-how svg { width: 18px; height: 18px; stroke: var(--brand); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; margin-top: 1px; }.ea-where { font-size: var(--fs-sm); margin-top: 4px; }
.ea-sub { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--ink2); line-height: 1.4; }
.ea-sub li::marker { color: var(--brand); font-weight: 700; }
.ea-sub b { color: var(--ink); font-weight: 600; }/* the connected account doesn't look like the card picked (firm or size) */
.note.warn { background: color-mix(in srgb, #e0a100 13%, var(--panel)); color: var(--ink); border: 1px solid color-mix(in srgb, #e0a100 45%, transparent); align-items: flex-start; }
.note.warn > svg { stroke: #c98f00; }/* demo (practice) accounts: their own tag colour */
.acc-it .ph.demo { background: color-mix(in srgb, #00a06a 18%, transparent); color: #00a06a; }
/* add account: the demo option, a slim card under the two big ones */
.tcard-demo { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; margin-top: 14px; padding: 16px 18px; border-radius: var(--r2); border: 1px solid var(--line); background: var(--bg2); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
.tcard-demo:hover { border-color: var(--line2); transform: translateY(-1px); }
.tcard-demo.on { border-color: var(--sel, var(--brand)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 35%, transparent); }
.tcard-demo .td-logos { display: inline-flex; flex: none; }
.tcard-demo .td-logos .logo { margin-left: -10px; box-shadow: 0 0 0 2px var(--bg2); } .tcard-demo .td-logos .logo:first-child { margin-left: 0; }
.tcard-demo .td-tx { display: grid; gap: 3px; min-width: 0; }
.tcard-demo .td-tx b { font-size: var(--fs-lg); } .tcard-demo .td-tx small { color: var(--mut); font-size: var(--fs-sm); }
.tcard-demo .ck { position: absolute; top: 12px; right: 12px; }
@media (max-width: 560px) { .tcard-demo { flex-direction: column; align-items: flex-start; } }

/* Real / Demo: which accounts "All accounts" covers, for the whole web */
.viewsw { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--panel); box-shadow: 0 0 0 1px var(--line2); }
.viewsw button { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--mut); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.viewsw button:hover:not(.on) { color: var(--ink); }
.viewsw button.on { background: var(--ink); color: var(--on-ink); }
.viewsw button[data-view="demo"].on { background: #00a06a; color: #fff; }
.topbar.is-demo { box-shadow: inset 0 -2px 0 #00a06a; }
@media (max-width: 720px) { .viewsw button { height: 30px; padding: 0 10px; } }
/* the Demo section of the accounts list, when it is still empty */
.acc-add-demo { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px dashed var(--line2); border-radius: 12px; background: transparent; color: var(--ink2); font: inherit; text-align: left; cursor: pointer; }
.acc-add-demo:hover { border-color: #00a06a; color: var(--ink); }
.acc-add-demo svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }
.acc-add-demo span { display: grid; gap: 2px; font-size: var(--fs-sm); font-weight: 600; }
.acc-add-demo small { color: var(--mut); font-weight: 400; font-size: var(--fs-xs); }
/* ================= Demo mode: the gold accents turn purple ================= */
html.demo-mode { --brand: #0f2a22; --brand-2: #26cf93; --brand-bg: #e3f8ef; --brand-ink: #0f2a22; }
html.demo-mode[data-theme="dark"] { --brand: #3ddba3; --brand-2: #8fe9c6; --brand-bg: rgba(61,219,163,.15); --brand-ink: var(--brand-2); }
html.demo-mode .acc-it.on .up, html.demo-mode .kpi.big .v.up, html.demo-mode .chart-tip .up, html.demo-mode .cc-bal .pos,
html.demo-mode .cc-here, html.demo-mode .cc-rt span.pos, html.demo-mode .cc-c.sw em, html.demo-mode .cc-spark, html.demo-mode .ho-firm { color: #8fe9c6; }
html.demo-mode .cc-ok { background: #8fe9c6; }
html.demo-mode .cflip.on .ccard { box-shadow: 0 0 0 2px #8fe9c6, 0 0 0 6px rgba(143,233,198,.22), 0 18px 34px -18px rgba(0,0,0,.7); }
html.demo-mode .cc-set { border-color: rgba(143,233,198,.55); color: #8fe9c6; }
html.demo-mode .ab-bar.mid i { background: #3ddba3; } html.demo-mode .ab-bar.gold i { background: linear-gradient(90deg, #26cf93, #8fe9c6); }
html.demo-mode[data-theme="dark"] .topnav a.on svg, html.demo-mode[data-theme="dark"] .btn.pri > svg:first-child { stroke: #00875a; }
html.demo-mode[data-theme="dark"] .themesw button.on svg { stroke: #00875a; fill: #00875a; }
html.demo-mode .brand svg [stroke="#e0b45c"], html.demo-mode .brand svg [stroke="#f0cd85"] { stroke: #3ddba3; }
html.demo-mode .brand svg [fill="#e0b45c"] { fill: #3ddba3; }

/* no trades yet: the page with example trades behind frosted glass, and how to start on top */
.pv { position: relative; margin-top: 4px; }
.pv-in { filter: blur(4px) saturate(.85); opacity: .6; pointer-events: none; user-select: none; max-height: 980px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 55%, transparent 100%); mask-image: linear-gradient(#000 55%, transparent 100%); }
.pv-cta { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); width: min(540px, calc(100% - 24px)); display: grid; justify-items: center; gap: 8px; text-align: center;
  padding: 26px 24px 20px; border-radius: var(--r2); background: color-mix(in srgb, var(--panel) 90%, transparent); border: 1px solid var(--line2);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pv-cta b { font-size: var(--fs-xl); letter-spacing: -.02em; }
.pv-cta p { margin: 0; color: var(--ink2); font-size: var(--fs-sm); line-height: 1.5; }
.pv-cta .empty-acts { margin-top: 8px; }
.pv-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-bg); color: var(--brand); }
.pv-ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.pv-note { color: var(--mut); font-size: var(--fs-xs); margin-top: 4px; }
@media (max-width: 560px) { .pv-cta { top: 24px; padding: 20px 16px 16px; } }
/* edit account: the "demo account" switch */
.demo-sw { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg2); cursor: pointer; }
.demo-sw input { margin-top: 3px; accent-color: #00a06a; }
.demo-sw span { display: grid; gap: 2px; } .demo-sw small { color: var(--mut); font-size: var(--fs-sm); }/* Demo mode, the rest of the gold that was written as a fixed colour */
html.demo-mode .tshot .side.buy { background: rgba(15,42,34,.92); }
html.demo-mode .lsb.on.buy { box-shadow: 0 8px 20px -10px rgba(15,42,34,.7); }
html.demo-mode .hero-pnl.pos { --hp-glow: rgba(15,42,34,.13); }
html.demo-mode .tid-f.focus { background: rgba(38,207,147,.22); box-shadow: 0 0 0 1.5px rgba(15,42,34,.7); }
html.demo-mode .cc-sw { box-shadow: inset 0 0 0 1px rgba(143,233,198,.55), 0 0 2.4cqw rgba(143,233,198,.14); }
html.demo-mode .cc-sw button:hover { background: rgba(143,233,198,.22); }
html.demo-mode .cc-sw :is(button, span).on { background: linear-gradient(180deg, #d2f6e7, #6ee3b8); color: #0f2a22; box-shadow: 0 .3cqw 1.4cqw rgba(143,233,198,.45); }
html.demo-mode .cc-set:hover { background: rgba(143,233,198,.18); }/* MT5 code steps as full-width rows: number, what to do, and the action on the right (no tall half-empty cards) */
.ea { container-type: inline-size; }
.ea-steps { grid-template-columns: 1fr; gap: 10px; }
.ea-card { display: grid; grid-template-columns: 36px minmax(0, 1fr) minmax(220px, 300px); gap: 6px 20px; align-items: center; padding: 16px 20px; }
.ea-card .ea-n { align-self: start; }
.ea-main { display: grid; gap: 4px; min-width: 0; }
.ea-main .lnk { margin-top: 2px; }
.ea-act { display: grid; gap: 6px; min-width: 0; }
.ea-act .ea-go, .ea-act .ea-chip { margin-top: 0; }
.ea-where { margin-top: 8px; }
.ea-sub { grid-template-columns: 1fr 1fr; column-gap: 32px; }
@container (max-width: 680px) {
  .ea-card { grid-template-columns: 32px minmax(0, 1fr); padding: 14px; }
  .ea-act { grid-column: 2; }
  .ea-sub { grid-template-columns: 1fr; }
}
.ea-main .lnk { justify-self: start; }

/* ================= Welcome: no accounts yet in this mode ================= */
.wel { display: grid; gap: 22px; padding-bottom: 20px; }
.wel-hero { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 26px 16px 4px; }
.wel-kick { font-size: var(--fs-xs); font-weight: 750; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-ink); padding: 6px 12px; border-radius: 999px; background: var(--brand-bg); }
.wel-hero h2 { margin: 0; max-width: 22ch; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.035em; }
.wel-hero p { margin: 0; max-width: 58ch; color: var(--ink2); line-height: 1.5; }
.wel-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 940px; margin: 0 auto; }
.wel-opts.one { grid-template-columns: minmax(0, 480px); justify-content: center; }
.wel-opt { container-type: inline-size; position: relative; display: grid; gap: 10px; padding: 22px 22px 18px; border-radius: 24px; border: 1px solid var(--line2); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  background: radial-gradient(130% 95% at 50% 0%, color-mix(in srgb, var(--brand) 16%, var(--panel)) 0%, var(--panel) 62%);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .2s, box-shadow .25s; }
.wel-opt:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 60%, var(--line2)); box-shadow: 0 28px 56px -30px rgba(0,0,0,.65); }
.wel-opt .fan { height: min(178px, 42cqw); margin: 4px 0 6px; }
.wel-opt:hover .fan { --step: min(38px, 8.6cqw); --turn: 10; } .wel-opt:hover .fan-c { translate: 0 -7px; }
.wel-tx { display: grid; gap: 4px; } .wel-tx b { font-size: var(--fs-xl); letter-spacing: -.02em; } .wel-tx small { color: var(--mut); font-size: var(--fs-sm); line-height: 1.45; }
.wel-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.wel-note { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--ink2); }
.wel-note svg { width: 15px; height: 15px; stroke: var(--brand); fill: none; stroke-width: 2.4; flex: none; }
.wel-go { display: inline-flex; align-items: center; gap: 4px; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 700; font-size: var(--fs-sm); transition: gap .2s; }
.wel-go svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.wel-opt:hover .wel-go { gap: 8px; }
.wel-steps { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 940px; }
.wel-steps li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--bg2); }
.wel-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: var(--fs-sm); background: var(--panel); border: 1px solid var(--line2); color: var(--brand-ink); }
.wel-steps b { display: block; font-size: var(--fs-md); margin-bottom: 2px; } .wel-steps small { color: var(--mut); font-size: var(--fs-sm); line-height: 1.45; }
.wel-sample { justify-self: center; }
@media (max-width: 760px) { .wel-opts, .wel-steps { grid-template-columns: 1fr; } .wel-hero { padding-top: 12px; } }
/* the accounts list on the left, empty */
.rail-empty { container-type: inline-size; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 6px 12px 16px; }
.rail-empty .fan { width: 100%; height: min(112px, 42cqw); margin: 0 0 4px; }
.rail-empty b { font-size: var(--fs-md); } .rail-empty small { color: var(--mut); font-size: var(--fs-sm); line-height: 1.45; }
/* on phones the accounts list scrolls sideways: the empty block takes the whole row */
.acc-list > .rail-empty { flex: 1 0 100%; min-width: 0; }

/* ================= previews while there are no trades ================= */
.pv-kick { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 6px 12px; border-radius: 999px; background: var(--brand-bg); color: var(--brand-ink); font-size: var(--fs-xs); font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.pv-kick svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Journal: one example trade in focus, the rest blurred behind */
.pvj { position: relative; margin-top: 4px; border-radius: var(--r2); overflow: hidden; }
.pvj-bg { position: absolute; inset: 0; padding: 6px; filter: blur(7px) saturate(.75); opacity: .32; transform: scale(1.04); pointer-events: none; user-select: none; }
.pvj-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); align-items: center; gap: clamp(24px, 5vw, 64px); min-height: 620px;
  padding: clamp(24px, 4vw, 56px); background: radial-gradient(90% 80% at 75% 50%, transparent 0%, color-mix(in srgb, var(--bg) 70%, transparent) 70%); }
.pvj-cta { display: grid; gap: 10px; max-width: 520px; }
.pvj-cta h2 { margin: 4px 0 0; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.06; letter-spacing: -.035em; }
.pvj-cta > p { margin: 0; color: var(--ink2); line-height: 1.5; }
.pvj-feats { list-style: none; margin: 8px 0 6px; padding: 0; display: grid; gap: 10px; }
.pvj-feats li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: var(--fs-sm); font-weight: 550; }
.pvj-ic { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-bg); color: var(--brand); }
.pvj-ic svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; }
.pvj-cta .empty-acts { justify-content: flex-start; margin-top: 6px; }
.pvj-focus { position: relative; pointer-events: none; transform: perspective(1400px) rotateY(-12deg) rotateX(5deg) rotate(1.5deg); filter: drop-shadow(0 46px 70px rgba(0,0,0,.5)); animation: pvjFloat 7s ease-in-out infinite; }
.pvj-focus::before { content: ""; position: absolute; inset: -18% -12%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 30%, transparent), transparent); filter: blur(10px); }
.pvj-focus .tcard { width: 100%; margin: 0; }
@keyframes pvjFloat { 50% { transform: perspective(1400px) rotateY(-7deg) rotateX(2deg) rotate(.5deg) translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .pvj-focus { animation: none; } }
@media (max-width: 900px) {
  .pvj-stage { grid-template-columns: 1fr; min-height: 0; padding: 22px 16px; }
  .pvj-focus { order: -1; width: min(360px, 100%); justify-self: center; transform: rotate(1deg); animation: none; }
}

/* Analytics: every box locked */
.pvl-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 4px 0 14px; padding: 14px 18px; border-radius: var(--r2); border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line2));
  background: linear-gradient(100deg, color-mix(in srgb, var(--brand) 12%, var(--panel)), var(--panel) 60%); }
.pvl-ic { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--brand); color: var(--on-ink); }
[data-theme="dark"] .pvl-ic { color: #1a1408; }
.pvl-ic svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.pvl-tx { display: grid; gap: 2px; flex: 1; min-width: 220px; } .pvl-tx b { font-size: var(--fs-lg); letter-spacing: -.01em; } .pvl-tx small { color: var(--mut); font-size: var(--fs-sm); }
.pvl-bar .empty-acts { margin: 0; }
.pvl { pointer-events: none; user-select: none; }
.pvl .lk { position: relative; overflow: hidden; }
.pvl .lk > :not(.lk-badge):not(.kc-h):not(.pn-h):not(.fc-h):not(.gc-h) { filter: blur(6px) grayscale(.5); opacity: .45; }
.pvl .lk::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--ink) 3%, transparent) 10px 11px); pointer-events: none; }
.lk-badge { position: absolute; top: 56%; left: 50%; z-index: 2; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; white-space: nowrap;
  background: color-mix(in srgb, var(--panel) 92%, transparent); border: 1px solid var(--line2); box-shadow: 0 10px 24px -14px rgba(0,0,0,.6); font-size: var(--fs-xs); font-weight: 700; color: var(--ink2); }
.lk-badge svg { width: 13px; height: 13px; stroke: var(--brand); fill: none; stroke-width: 2.4; }

/* Trades: a live table, new trades sliding in at the top */
.pvt { display: grid; gap: 12px; margin-top: 4px; }
.pvt-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 16px 20px; border-radius: var(--r2); background: var(--panel); border: 1px solid var(--line2); }
.pvt-tx { display: grid; gap: 4px; max-width: 560px; } .pvt-tx b { font-size: var(--fs-xl); letter-spacing: -.02em; } .pvt-tx small { color: var(--mut); font-size: var(--fs-sm); line-height: 1.45; }
.pvt-live { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font-size: var(--fs-xs); font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); }
.pvt-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 60%, transparent); animation: pvtPulse 1.6s ease-out infinite; }
@keyframes pvtPulse { 100% { box-shadow: 0 0 0 9px transparent; } }
.pvt-side { display: grid; gap: 10px; justify-items: end; }
.pvt-src { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; font-size: var(--fs-sm); }
.pvt-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 6px; border-radius: 999px; background: var(--bg2); font-weight: 600; font-size: var(--fs-sm); }
.pvt-chip svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; margin-left: 4px; }
.pvt-side .empty-acts { margin: 0; justify-content: flex-end; }
.pvt-tbl { pointer-events: none; user-select: none; }
.pvt-tbl tr.pvt-in { animation: pvtIn .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.35s + var(--d) * .45s); }
.pvt-tbl tr.pvt-in td { animation: pvtFlash 2.4s ease-out both; animation-delay: calc(.35s + var(--d) * .45s); }
@keyframes pvtIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes pvtFlash { 0%, 20% { background: color-mix(in srgb, var(--brand) 14%, transparent); } 100% { background: transparent; } }
.pvt-tbl tr.pvt-ghost { filter: blur(3.5px); opacity: .3; }
@media (prefers-reduced-motion: reduce) { .pvt-tbl tr.pvt-in, .pvt-tbl tr.pvt-in td, .pvt-live i { animation: none; } }
@media (max-width: 760px) { .pvt-side { justify-items: start; } .pvt-src, .pvt-side .empty-acts { justify-content: flex-start; } }
/* logos drawn in white for dark backgrounds (e.g. Take Profit Trader): dark tile so the white parts show */
.logo.dark-tile { background: #141418; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 1px 2px rgba(12,12,13,.2); }

/* own capital: which brokers connect by themselves today */
.auto-legend { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-sm); color: var(--mut); line-height: 1.45; padding: 10px 12px; border-radius: 12px; background: var(--panel-2, rgba(127,127,127,.06)); box-shadow: inset 0 0 0 1px var(--line); }
.auto-legend svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
#wz .bcard.wc .auto-tag { position: absolute; top: 11px; right: 11px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: .01em; line-height: 1.3; color: rgba(255,255,255,.78); background: rgba(0,0,0,.28); backdrop-filter: blur(4px); white-space: nowrap; }
#wz .bcard.wc .auto-tag.on { color: #fff; background: rgba(16,120,72,.55); box-shadow: inset 0 0 0 1px rgba(110,231,170,.45); }
#wz .bcard.wc .auto-tag.on i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 6px #4ade80; }
#wz .bcard.wc.on .auto-tag { right: 42px; }
@media (max-width: 560px) {
  #wz .bcard.wc .auto-tag { top: 8px; right: 8px; font-size: 9.5px; padding: 2px 6px; }
  #wz .bcard.wc.on .auto-tag { right: 34px; }
}
.auto-legend svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* automatic: brokers that do not connect by themselves yet, switched off */
.soon-h { display: flex; flex-direction: column; gap: 2px; margin: 14px 2px 0; padding-top: 14px; border-top: 1px dashed var(--line); }
.soon-h b { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--mut); }
.soon-h span { font-size: var(--fs-sm); color: var(--mut); }
#wz .bcard.wc.off { cursor: not-allowed; filter: grayscale(1) brightness(.55); opacity: .55; transform: none !important; box-shadow: none; }
#wz .bcard.wc.off:hover { transform: none; }
/* while a window (.ov) is open, the page behind it does not scroll */
html:has(body > .ov) { overflow: hidden; }
.ov .drawer, .ov .modal, #wz .dr-b { overscroll-behavior: contain; }
/* right rail: your day + market sessions (replaces the pre-session checklist) */
.check-rail { overflow-y: auto; }
.day-box, .ses-box { display: block; }
.ses-box { border-top: 1px solid var(--line); margin-top: 4px; }
.day-date { font-size: var(--fs-sm); text-transform: capitalize; }
.day { display: grid; gap: 14px; padding: 4px 16px 16px; }
.day-pnl { display: grid; gap: 2px; }
.day-pnl b { font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -.04em; }
.day-pnl b.dn { color: var(--dn); }
.day-pnl small { font-size: var(--fs-sm); color: var(--mut); }
.day-alert { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: var(--fs-sm); line-height: 1.4; background: var(--bg2); color: var(--ink2); }
.day-alert svg { width: 16px; height: 16px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.day-alert.warn { background: rgba(197,138,3,.13); color: var(--warn); }
[data-theme="dark"] .day-alert.warn { color: #f2c14e; }
.day-alert.bad { background: var(--dn-bg); color: var(--dn); font-weight: 600; }
.day-lims { display: grid; gap: 12px; }
.day-row { display: grid; gap: 6px; }
.day-rt { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: var(--fs-sm); color: var(--mut); }
.day-rt b { color: var(--ink); font-weight: 600; font-size: var(--fs-md); }
.day-rt b.dn { color: var(--dn); }
.day-bar { height: 7px; border-radius: 999px; background: var(--bg2); overflow: hidden; }
.day-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ink2); transition: width .4s; }
.day-bar.warn i { background: var(--warn); } .day-bar.err i { background: var(--dn); }
.day-bar.goal i { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.day-none { font-size: var(--fs-sm); margin: 0; }
.day-accs { display: grid; gap: 2px; margin: 0 -8px; }
.day-acc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 9px; row-gap: 5px; align-items: center; padding: 8px; border: 0; background: none; border-radius: 10px; text-align: left; color: inherit; cursor: pointer; font: inherit; }
.day-acc:hover { background: var(--panel2); }
.day-acc .logo { grid-row: 1 / 3; }
.day-an { font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-al { font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.day-al.warn { color: var(--warn); } .day-al.err, .day-al.dn { color: var(--dn); }
.day-mini { grid-column: 2 / 4; display: block; height: 4px; border-radius: 999px; background: var(--bg2); overflow: hidden; }
.day-mini b { display: block; height: 100%; background: var(--ink2); border-radius: inherit; }
.day-mini.warn b { background: var(--warn); } .day-mini.err b { background: var(--dn); }
.day-streak { display: flex; align-items: center; gap: 7px; font-size: var(--fs-sm); font-weight: 600; color: var(--brand-ink); }
.day-streak svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ses { display: grid; gap: 12px; padding: 4px 16px 18px; }
.ses-line { position: relative; display: grid; gap: 4px; padding-bottom: 16px; }
.ses-lane { position: relative; height: 8px; border-radius: 999px; background: var(--bg2); }
.ses-seg { position: absolute; top: 0; bottom: 0; border-radius: 999px; }
.ses-seg.asia, .ses-dot.asia { background: #5b8def; } .ses-seg.london, .ses-dot.london { background: #a77de8; } .ses-seg.ny, .ses-dot.ny { background: var(--brand); }
.ses-now { position: absolute; top: -3px; bottom: 13px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px var(--panel); }
.ses-ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; }
.ses-ticks span { position: absolute; font-size: 10px; color: var(--dim, var(--mut)); transform: translateX(-50%); } .ses-ticks span:first-child { transform: none; }
.ses-list { display: grid; gap: 2px; }
.ses-it { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: var(--fs-sm); }
.ses-it .sp { flex: 1; }
.ses-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; opacity: .45; }
.ses-it.on .ses-dot { opacity: 1; box-shadow: 0 0 0 3px var(--brand-bg); }
.ses-st { color: var(--mut); white-space: nowrap; } .ses-it.on .ses-st { color: var(--ink); font-weight: 600; }
.ses-ov { font-size: var(--fs-sm); padding: 8px 10px; border-radius: 10px; background: var(--brand-bg); color: var(--brand-ink); font-weight: 500; }
.ses-nx { display: grid; gap: 8px; }
.ses-news { display: grid; grid-template-columns: 8px 38px minmax(0, 1fr); gap: 8px; align-items: start; padding: 10px; border-radius: 12px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); }
.ses-news .cur { font-size: var(--fs-xs); font-weight: 700; padding: 2px 5px; border-radius: var(--r-sm); background: var(--bg2); color: var(--ink2); text-align: center; }
.ses-nt { display: grid; min-width: 0; } .ses-nt b { font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; } .ses-nt small { font-size: var(--fs-xs); color: var(--mut); }
.ses-none { font-size: var(--fs-sm); margin: 0; }
.ses-it { align-items: flex-start; padding: 7px 0; }
.ses-it .ses-dot { margin-top: 5px; }
.ses-tx { display: grid; gap: 1px; min-width: 0; flex: 1; }
.ses-r1 { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ses-r1 .dim { font-size: var(--fs-xs); white-space: nowrap; }
.ses-st { font-size: var(--fs-xs); white-space: normal; }
.day-more { padding: 4px 8px 0; font-size: var(--fs-xs); }

/* time zone picker (Forex Factory + sessions share it) */
.tz-pick { display: flex; align-items: center; gap: 7px; padding: 0 10px; height: 32px; border-radius: 10px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); color: var(--mut); cursor: pointer; min-width: 0; }
.tz-pick:hover { box-shadow: inset 0 0 0 1px var(--line2); }
.tz-pick svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; }
.tz-pick select { appearance: none; -webkit-appearance: none; flex: 1; min-width: 0; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 2px center; padding-right: 16px; color: var(--ink); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; outline: none; text-overflow: ellipsis; }
.tz-pick select option { background: var(--panel); color: var(--ink); }
.ses-clock { font-size: var(--fs-md); font-weight: 700; letter-spacing: -.01em; }
.news-foot { display: grid; gap: 8px; padding: 10px 16px 16px; font-size: var(--fs-xs); }
/* Settings: time zone, one tap each (no dropdown) */
.pn-h > svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.tz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tz-c { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 0; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: inherit; cursor: pointer; transition: box-shadow .15s, background .15s; }
.tz-c:hover { box-shadow: inset 0 0 0 1px var(--line2); }
.tz-c b { font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tz-c small { font-size: var(--fs-xs); color: var(--mut); }
.tz-c.on { background: var(--brand-bg); box-shadow: inset 0 0 0 1.5px var(--brand); }
.tz-c.on small { color: var(--brand-ink); }
/* the zone the Dashboard is using, as a small link to Settings */
.tz-note { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: 600; color: var(--mut); text-decoration: none; padding: 3px 7px; border-radius: 999px; background: var(--bg2); white-space: nowrap; }
.tz-note:hover { color: var(--ink); }
.tz-note svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.ses-box .rail-h .tz-note { margin-right: 6px; }
.news-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
/* sessions: clock + zone on their own line; fixed session colours (they must not turn purple in Demo) */
.ses-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: -4px; }
.ses-top .ses-clock { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.ses-seg.asia, .ses-dot.asia { background: #5b8def; }
.ses-seg.london, .ses-dot.london { background: #2fb39a; }
.ses-seg.ny, .ses-dot.ny { background: #e39b3b; }
.ses-it.on .ses-dot { box-shadow: 0 0 0 3px var(--bg2); }
.ses-r1 b { white-space: nowrap; }
/* news: time + impact + currency on one line, the title underneath with the whole width; past news stay fully readable */
.nev { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 10px 8px; }
.nev-top { display: flex; align-items: center; gap: 8px; }
.nev .nt { padding-top: 0; white-space: nowrap; }
.nev .imp { margin-top: 0; }
.nev.past { opacity: 1; }
.nev.past .nt { color: var(--mut); }
.nev-done { margin-left: auto; font-size: var(--fs-xs); color: var(--mut); white-space: nowrap; }
.nev .nti b { font-size: var(--fs-sm); }
.nday.gone { opacity: 1; }

/* top bar: Real/Demo and light/dark are one pair of identical switches (same pill, same sliding thumb, same size) */
.sw-pair { display: inline-flex; align-items: center; gap: 6px; }
.viewsw, .themesw { position: relative; display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--panel); box-shadow: 0 0 0 1px var(--line2); }
.viewsw::before { content: ""; position: absolute; top: 3px; left: 3px; width: 60px; height: 34px; border-radius: 999px; background: var(--ink); box-shadow: 0 4px 10px -5px rgba(0,0,0,.45);
  transition: transform .45s cubic-bezier(.3,.7,.2,1), background-color .35s ease; }
.viewsw.demo::before { transform: translateX(62px); background: #00a06a; }
.viewsw button, .viewsw button[data-view="demo"].on { position: relative; z-index: 1; width: 60px; height: 34px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--mut); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; transition: color .35s ease; }
.viewsw button.on { background: transparent; color: var(--on-ink); }
.viewsw.demo button.on { color: #fff; }
.themesw button.on svg, [data-theme="dark"] .themesw button.on svg, html.demo-mode[data-theme="dark"] .themesw button.on svg { stroke: currentColor; fill: currentColor; }
#notes-btn { height: 40px; padding: 0 14px; border-radius: 999px; }
@media (max-width: 720px) { .viewsw button, .viewsw button[data-view="demo"].on { width: 52px; height: 30px; } .viewsw::before { width: 52px; height: 30px; } .viewsw.demo::before { transform: translateX(54px); } }

/* "Today" panel (replaces the loose notes) */
.td { display: grid; gap: 18px; padding: 0 16px 20px; }
.td-date { margin: -4px 0 0; color: var(--mut); font-size: var(--fs-sm); }
.td-saved { font-size: var(--fs-xs); color: var(--mut); opacity: 0; transition: opacity .2s; } .td-saved.on { opacity: 1; }
.td-sec { display: grid; gap: 8px; }
.td-h { display: flex; align-items: center; gap: 8px; } .td-h b { font-size: var(--fs-md); } .td-h .sp { flex: 1; }
.td-h .btn svg { width: 14px; height: 14px; }
.td-hint { margin: 0; font-size: var(--fs-sm); color: var(--mut); line-height: 1.45; }
.td-rules { margin: 0; padding: 0; list-style: none; counter-reset: r; display: grid; gap: 6px; }
.td-rules li { counter-increment: r; display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border-radius: 10px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-sm); line-height: 1.4; }
.td-rules li::before { content: counter(r); flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--ink); color: var(--on-ink); }
.td-rt { flex: 1; min-width: 0; padding-top: 1px; word-wrap: break-word; }
.td-rules button { border: 0; background: none; color: var(--mut); padding: 2px; border-radius: 6px; cursor: pointer; opacity: 0; transition: opacity .15s; display: grid; place-items: center; }
.td-rules li:hover button { opacity: 1; } .td-rules button:hover { color: var(--dn); }
.td-rules button svg, .td-oldh svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.td-add { display: flex; gap: 6px; } .td-add .inp { flex: 1; min-width: 0; }
.td-ta { min-height: 96px; resize: vertical; line-height: 1.5; }
.td-mood { display: flex; align-items: center; gap: 4px; font-size: var(--fs-sm); color: var(--mut); }
.td-mood span { flex: 1; }
.td-mood button { width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; font-size: 18px; cursor: pointer; filter: grayscale(1); opacity: .55; transition: filter .15s, opacity .15s, background .15s; }
.td-mood button:hover { opacity: .9; }
.td-mood button.on { filter: none; opacity: 1; background: var(--bg2); }
.td-link { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); text-decoration: none; }
.td-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.td-old { border-top: 1px solid var(--line); padding-top: 12px; }
.td-oldh { display: flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: var(--mut); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
/* Real / Demo: a calmer slide, the same pace as light / dark */
.viewsw::before { transition: transform .5s cubic-bezier(.3,.7,.2,1), background-color .5s ease; }
.viewsw button, .viewsw button[data-view="demo"].on { transition: color .5s ease; }
/* both switches: an even, calm slide (no fast start) */
.viewsw::before, .themesw::before, html.theme-anim .themesw::before { transition: transform .6s cubic-bezier(.65,0,.35,1), background-color .6s ease !important; }
/* journal preview: the featured card stays sharp. 3D tilt + filter shadow made Chrome draw it as a stretched image (blurry text);
   now it floats straight up and down, with a real box-shadow; the glow behind keeps the depth */
.pvj-focus { transform: none; filter: none; animation: pvjFloat2 6s ease-in-out infinite; will-change: auto; }
.pvj-focus .tcard { box-shadow: 0 30px 60px -18px rgba(0,0,0,.45), 0 10px 22px -10px rgba(0,0,0,.25); }
@keyframes pvjFloat2 { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .pvj-focus { animation: none; } }
@media (max-width: 900px) { .pvj-focus { transform: none; animation: none; } }
/* journal preview: hover the example card and it turns round, showing what you fill in on a trade (already filled).
   At rest both sides sit flat (no 3D), so the text stays sharp; the 3D is only used while it turns. */
.pvj-focus { pointer-events: auto; cursor: pointer; display: grid; gap: 12px; outline: none; }
.pvj-flip { position: relative; display: grid; perspective: 1600px; }
.pvj-face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .75s cubic-bezier(.45,.05,.2,1); }
.pvj-front { transform: rotateY(0deg); }
.pvj-back { transform: rotateY(180deg); }
.pvj-focus:hover .pvj-front, .pvj-focus.flipped .pvj-front, .pvj-focus:focus-within .pvj-front { transform: rotateY(-180deg); }
.pvj-focus:hover .pvj-back, .pvj-focus.flipped .pvj-back, .pvj-focus:focus-within .pvj-back { transform: rotateY(0deg); }
.pvj-face > .tcard { height: 100%; }
.pvj-hint { justify-self: center; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--mut); transition: opacity .3s; }
.pvj-hint svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pvj-focus:hover .pvj-hint { opacity: 0; }
/* the back */
.pvb { display: grid; align-content: start; gap: 12px; padding: 16px 18px 18px; text-align: left; overflow: hidden; box-shadow: 0 30px 60px -18px rgba(0,0,0,.45), 0 10px 22px -10px rgba(0,0,0,.25); }
.pvb-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pvb-sym { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.02em; }
.pvb-side { font-size: var(--fs-xs); font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--brand-bg); color: var(--brand-ink); }
.pvb-side.sell { background: var(--dn-bg); color: var(--dn); }
.pvb-pnl { font-size: var(--fs-lg); font-weight: 700; } .pvb-pnl small { font-size: var(--fs-xs); font-weight: 600; color: var(--mut); }
.pvb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pvb-c { display: grid; gap: 1px; padding: 7px 9px; border-radius: 9px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.pvb-c span { font-size: 10.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pvb-c b { font-size: var(--fs-sm); font-weight: 600; }
.pvb-f { display: grid; gap: 6px; } .pvb-l { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.pvb .ch { height: 26px; padding: 0 10px; font-size: var(--fs-xs); display: inline-flex; align-items: center; cursor: default; box-shadow: none; }
.pvb .grades { gap: 6px; } .pvb .gr { height: 28px; font-size: var(--fs-sm); display: grid; place-items: center; cursor: default; }
.pvb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pvb-notes { margin: 0; padding: 9px 11px; border-radius: 9px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-sm); line-height: 1.45; color: var(--ink2); }
@media (prefers-reduced-motion: reduce) { .pvj-face { transition: opacity .3s; } }
/* the front sets the size; the back fits inside it */
.pvj-flip { display: block; }
.pvj-front { position: relative; }
.pvj-back { position: absolute; inset: 0; }
.pvj-face > .tcard { height: auto; }
.pvj-back > .pvb { height: 100%; gap: 9px; padding: 14px 16px; }
.pvb-h { padding-bottom: 8px; }
.pvb-notes { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 7px 10px; }
.pvb .gr { height: 26px; }
/* flip on click, not on hover */
.pvj-focus:not(.flipped):hover .pvj-front, .pvj-focus:not(.flipped):focus-within .pvj-front { transform: rotateY(0deg); }
.pvj-focus:not(.flipped):hover .pvj-back, .pvj-focus:not(.flipped):focus-within .pvj-back { transform: rotateY(180deg); }
.pvj-focus:hover .pvj-hint { opacity: 1; color: var(--ink); }
.pvj-focus:focus-visible .pvj-flip { outline: 2px solid var(--brand); outline-offset: 6px; border-radius: 18px; }
.pvj-hint { font-weight: 600; }
/* the back, in three blocks with label / value rows */
.pvb { gap: 12px; }
.pvb-sec { display: grid; gap: 7px; }
.pvb-sec + .pvb-sec { padding-top: 10px; border-top: 1px dashed var(--line); }
.pvb-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 26px; }
.pvb-rl { font-size: var(--fs-xs); color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pvb-row .chs { gap: 5px; flex-wrap: nowrap; overflow: hidden; }
.pvb-row .grades { width: 100%; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.pvb .ch { height: 24px; padding: 0 9px; white-space: nowrap; }
.pvb .gr { height: 24px; font-size: var(--fs-xs); border-width: 1px; }
.pvb-notes { margin-top: 2px; }
.pvb { gap: 9px; padding: 13px 15px; }
.pvb-h { padding-bottom: 7px; }
.pvb-sec { gap: 5px; }
.pvb-sec + .pvb-sec { padding-top: 8px; }
.pvb-grid { gap: 5px; }
.pvb-c { padding: 5px 8px; }
.pvb-row { min-height: 24px; }
.pvb-notes { -webkit-line-clamp: 2; padding: 6px 9px; font-size: var(--fs-xs); }
.pvb { gap: 8px; padding: 12px 15px 12px; } .pvb-sec + .pvb-sec { padding-top: 7px; }

.pvb-row { min-height: 22px; } .pvb .ch, .pvb .gr { height: 22px; } .pvb-notes { margin-top: 0; }

/* journal preview: a slight 3D tilt at rest that follows the mouse a little, plus the gentle float.
   The tilt lives on .pvj-flip (preserve-3d) so the click-flip still turns correctly inside it. No filters (they blur). */
.pvj-focus { perspective: 1500px; }
.pvj-flip { perspective: none; transform-style: preserve-3d; --rx: 4deg; --ry: -9deg; --rz: 1deg;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz)); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pvj-focus.live .pvj-flip { transition: transform .15s ease-out; }
.pvj-face { transform-style: preserve-3d; }
@media (prefers-reduced-motion: reduce) { .pvj-flip { --rx: 0deg; --ry: 0deg; --rz: 0deg; } }
@media (max-width: 900px) { .pvj-flip { --rx: 2deg; --ry: -5deg; --rz: .5deg; } }
/* journal preview: no mouse-following. One calm, slow sway: the tilted card drifts a few degrees and floats, in a single smooth loop */
.pvj-focus { animation: none; }
.pvj-flip { animation: pvjSway 9s ease-in-out infinite; }
@keyframes pvjSway {
  0%, 100% { transform: translateY(0) rotateX(4deg) rotateY(-9deg) rotateZ(1deg); }
  50% { transform: translateY(-8px) rotateX(2.5deg) rotateY(-5deg) rotateZ(.4deg); }
}
@media (prefers-reduced-motion: reduce) { .pvj-flip { animation: none; transform: none; } }
@media (max-width: 900px) { .pvj-flip { animation: none; transform: rotateX(2deg) rotateY(-5deg) rotateZ(.5deg); } }
/* ================= landing, refreshed: the real product in the hero, the platforms that really connect ================= */
.land .hero2 { text-align: left; padding: clamp(40px, 7vw, 90px) 0 clamp(40px, 6vw, 80px); }
.land .hero2 .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.land .hero2 h1 { margin: 22px 0 0; max-width: 12ch; font-size: clamp(42px, 6.2vw, 82px); }
.land .hero2 .lead { margin: 22px 0 0; max-width: 52ch; }
.land .hero2 .ctas { justify-content: flex-start; }
.land .hero2::before { mask-image: radial-gradient(ellipse 60% 70% at 75% 50%, #000 15%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse 60% 70% at 75% 50%, #000 15%, transparent 72%); }
.h2-ticks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink2); font-size: 14px; font-weight: 500; }
.h2-ticks li { display: inline-flex; align-items: center; gap: 7px; }
.h2-ticks li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; flex: none; }
.h2-card { position: relative; justify-self: center; width: min(400px, 100%); }
.h2-card::before { content: ""; position: absolute; inset: -14% -18%; z-index: 0; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 26%, transparent), transparent); pointer-events: none; }
.h2-card .pvj-focus { position: relative; z-index: 1; }
.plats.auto { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.plats.auto .plat { position: relative; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
.plat-on { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 700; color: #0f7a4a; background: rgba(16,170,100,.12); padding: 3px 8px; border-radius: 999px; }
.plats.auto .plat small { display: block; margin-top: 3px; line-height: 1.4; }
.plat-file { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r2); background: #fff; box-shadow: var(--sh); color: var(--ink2); font-size: 14px; line-height: 1.5; }
.plat-file svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.plat-file b { color: var(--ink); }
.fbox.full { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .land .hero2 .wrap { grid-template-columns: 1fr; }
  .land .hero2 { text-align: center; }
  .land .hero2 h1, .land .hero2 .lead { margin-left: auto; margin-right: auto; }
  .land .hero2 .ctas, .h2-ticks { justify-content: center; }
}
.land .hero2 h1 { font-size: clamp(40px, 5.2vw, 72px); max-width: 14ch; }

@media (max-width: 560px) { .lnav .brandlink .bname { display: none; } .lnav .cta { gap: 6px; } }

/* hero card: the front fills the height the back needs */
.pvj-front > .tcard .tbody { flex: 1; }

/* ================= landing: "Inside the app" — a dark band with the app's own look (black, gold, cards) ================= */
.land .lp-in { background: #070708; color: #f5f5f3; padding: clamp(60px, 8vw, 110px) 0; position: relative; overflow: hidden; isolation: isolate; }
.land .lp-in::before { content: ""; position: absolute; inset: -10% 10% auto; height: 70%; z-index: -1; background: radial-gradient(closest-side, rgba(139,109,255,.16), transparent); pointer-events: none; }
.land .lp-in .kicker { color: #8b6dff; }
.land .lp-in h2.big { color: #f5f5f3; }
.land .lp-in .intro { color: #a1a1a9; }
.lp-win { margin-top: 40px; border-radius: 22px; background: #0d0d0f; box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 50px 120px -40px rgba(139,109,255,.25), 0 30px 80px -30px rgba(0,0,0,.9); overflow: hidden; }
.lp-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid #1f1f23; }
.lp-top .sp { flex: 1; }
.lp-dots { display: inline-flex; gap: 6px; } .lp-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a2f; }
.lp-brand .bmark { width: 26px; height: 26px; display: block; }
.lp-nav { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #141417; box-shadow: inset 0 0 0 1px #232327; }
.lp-nav i { width: 34px; height: 28px; border-radius: 999px; display: grid; place-items: center; color: #8a8a92; }
.lp-nav i.on { background: #f5f5f3; color: #5a3ae6; }
.lp-nav svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lp-sw { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: #141417; box-shadow: inset 0 0 0 1px #232327; font-size: 12px; font-weight: 600; }
.lp-sw b, .lp-sw span { padding: 5px 12px; border-radius: 999px; } .lp-sw b { background: #f5f5f3; color: #0a0a0b; } .lp-sw span { color: #8a8a92; }
.lp-body { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(0, 1.25fr) minmax(220px, .9fr); gap: 16px; padding: 18px; }
.lp-col { display: grid; gap: 12px; align-content: start; min-width: 0; }
.lp-lbl { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8a8a92; }
.lp-acc .ccard { width: 100%; }
.lp-mini { display: grid; gap: 2px; padding: 8px; border-radius: 14px; background: #111113; box-shadow: inset 0 0 0 1px #1f1f23; }
.lp-mrow { display: flex; align-items: center; gap: 9px; padding: 7px 6px; font-size: 13px; color: #d2d2d6; }
.lp-mrow span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lp-mrow b { font-weight: 600; color: #f5f5f3; }
.lp-pnl { display: grid; justify-items: center; gap: 6px; padding: 26px 16px; border-radius: 18px; background: #111113; box-shadow: inset 0 0 0 1px #1f1f23; text-align: center; }
.lp-k { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #8b6dff; }
.lp-pnl b { font-size: clamp(34px, 4.4vw, 54px); font-weight: 700; letter-spacing: -.05em; line-height: 1; color: #f5f5f3; }
.lp-chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(139,109,255,.15); color: #b4a3ff; }
.lp-wr { padding: 14px 16px; border-radius: 16px; background: #111113; box-shadow: inset 0 0 0 1px #1f1f23; display: grid; gap: 10px; }
.lp-rt { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12.5px; color: #a1a1a9; } .lp-rt b { color: #f5f5f3; font-weight: 600; }
.lp-wbar { display: flex; height: 26px; border-radius: 999px; overflow: hidden; font-size: 12px; font-weight: 700; }
.lp-wbar i { display: grid; place-items: center; font-style: normal; } .lp-wbar i:first-child { background: #f5f5f3; color: #0a0a0b; } .lp-wbar i:last-child { flex: 1; background: #a996ff; color: #2a1215; }
.lp-kp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lp-kp div { display: grid; gap: 3px; padding: 12px; border-radius: 14px; background: #111113; box-shadow: inset 0 0 0 1px #1f1f23; position: relative; }
.lp-kp span { font-size: 11.5px; color: #a1a1a9; } .lp-kp b { font-size: 20px; font-weight: 700; letter-spacing: -.03em; color: #f5f5f3; }
.lp-kp em { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(139,109,255,.15); color: #b4a3ff; }
.lp-day { padding: 14px; border-radius: 18px; background: #111113; box-shadow: inset 0 0 0 1px #1f1f23; }
.lp-today { display: grid; gap: 2px; } .lp-today span { font-size: 12px; color: #a1a1a9; } .lp-today b { font-size: 26px; font-weight: 700; letter-spacing: -.04em; color: #f5f5f3; }
.lp-row { display: grid; gap: 5px; }
.lp-bar { height: 6px; border-radius: 999px; background: #1f1f23; overflow: hidden; } .lp-bar i { display: block; height: 100%; border-radius: inherit; background: #d2d2d6; }
.lp-bar.goal i { background: linear-gradient(90deg, #8b6dff, #b4a3ff); }
.lp-ses { position: relative; display: grid; gap: 6px; padding-top: 6px; border-top: 1px solid #1f1f23; }
.lp-lane { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 8px; font-size: 11.5px; color: #a1a1a9; }
.lp-lane i { position: relative; height: 6px; border-radius: 999px; background: #1f1f23; } .lp-lane b { position: absolute; top: 0; bottom: 0; border-radius: 999px; }
.lp-lane .s0 { background: #5b8def; } .lp-lane .s1 { background: #2fb39a; } .lp-lane .s2 { background: #e39b3b; }
.lp-now { position: absolute; top: 2px; bottom: -2px; left: calc(62px + 8px + (100% - 70px) * .62); width: 2px; border-radius: 2px; background: #f5f5f3; }
.lp-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 28px; margin-top: 44px; }
.lp-f { display: flex; gap: 14px; align-items: flex-start; }
.lp-fi { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(139,109,255,.13); color: #8b6dff; box-shadow: inset 0 0 0 1px rgba(139,109,255,.25); }
.lp-fi svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lp-f b { display: block; font-size: 16px; color: #f5f5f3; letter-spacing: -.02em; } .lp-f p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: #a1a1a9; }
@media (max-width: 1000px) { .lp-body { grid-template-columns: 1fr 1fr; } .lp-mid { grid-column: 1 / -1; order: -1; } .lp-feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .lp-body { grid-template-columns: 1fr; padding: 12px; } .lp-nav, .lp-dots { display: none; } .lp-feats { grid-template-columns: 1fr; } .lp-kp b { font-size: 17px; } }

/* firms and brokers: mini cards in their own colour and pattern (like "Add account") */
.marq .it.lw { --b: #52525b; position: relative; isolation: isolate; overflow: hidden; gap: 10px; padding: 9px 18px 9px 9px; border-radius: 14px; color: #fff; box-shadow: 0 8px 20px -10px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.08);
  background: radial-gradient(130% 160% at var(--ox, 0%) var(--oy, 0%), color-mix(in srgb, var(--b) 92%, #fff) 0%, color-mix(in srgb, var(--b) var(--mix, 78%), #000) 50%, var(--dark, #0d0d10) 100%); }
.marq .it.lw::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--ang, 115deg), transparent 30%, rgba(255,255,255,.14) 45%, transparent 60%); }
.marq .it.lw b { font-weight: 600; color: #fff; }
.marq .it.lw .logo { box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.lp-mrow .logo { width: 22px; height: 22px; min-width: 22px; flex: none; border-radius: 7px; overflow: hidden; }
.lp-mrow .logo img { width: 100%; height: 100%; object-fit: contain; }
.lp-kp em { position: static; justify-self: start; margin-top: 2px; }
/* the look inside the app works: tabs + Real / Demo (purple in Demo, like the app) */
.lp-win { --acc: #3ddba3; --acc2: #8fe9c6; --accbg: rgba(61,219,163,.15); }
.lp-win[data-view="demo"] { --acc: #3ddba3; --acc2: #8fe9c6; --accbg: rgba(61,219,163,.16); }
.lp-win [data-only="demo"] { display: none !important; }
.lp-win[data-view="demo"] [data-only="real"] { display: none !important; }
.lp-win[data-view="demo"] [data-only="demo"] { display: revert !important; }
.lp-win[data-view="demo"] .lp-wbar[data-only="demo"], .lp-win[data-view="demo"] .lp-cards[data-only="demo"], .lp-win[data-view="demo"] .lp-mrow[data-only="demo"] { display: flex !important; }
.lp-win[data-view="demo"] .lp-cards[data-only="demo"] { display: grid !important; }
.lp-pane { display: none; }
.lp-win[data-tab="dash"] [data-pane="dash"], .lp-win[data-tab="accs"] [data-pane="accs"], .lp-win[data-tab="jrnl"] [data-pane="jrnl"], .lp-win[data-tab="trades"] [data-pane="trades"], .lp-win[data-tab="ana"] [data-pane="ana"] { display: block; animation: lpIn .35s ease; }
@keyframes lpIn { from { opacity: 0; transform: translateY(6px); } }
.lp-nav button { height: 28px; padding: 0 10px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; background: transparent; color: #8a8a92; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.lp-nav button span { display: none; }
.lp-nav button:hover { color: #f5f5f3; }
.lp-nav button.on { background: #f5f5f3; color: #0a0a0b; }
.lp-nav button.on svg { color: var(--acc); stroke: #5a3ae6; }
.lp-win[data-view="demo"] .lp-nav button.on svg { stroke: #0f2a22; }
.lp-nav button.on span { display: inline; }
.lp-nav svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lp-sw button { padding: 5px 12px; border: 0; border-radius: 999px; background: transparent; color: #8a8a92; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .3s, color .3s; }
.lp-sw button.on { background: #f5f5f3; color: #0a0a0b; }
.lp-win[data-view="demo"] .lp-sw button.on { background: #00a06a; color: #fff; }
.lp-sw b, .lp-sw span { all: unset; }
.lp-k, .lp-kp em, .lp-chip { transition: color .4s, background .4s; }
.lp-k { color: var(--acc); }
.lp-chip, .lp-kp em { background: var(--accbg); color: var(--acc2); }
.lp-bar.goal i { background: linear-gradient(90deg, var(--acc), var(--acc2)); }
.lp-win { box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 50px 120px -40px var(--accbg), 0 30px 80px -30px rgba(0,0,0,.9); transition: box-shadow .5s; }
.lp-pad { padding: 18px; min-height: 420px; }
.lp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-cards .ccard { width: 100%; }
.lp-dc { --b: #52525b; position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1.586; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  background: radial-gradient(130% 160% at var(--ox, 0%) var(--oy, 0%), color-mix(in srgb, var(--b) 92%, #fff) 0%, color-mix(in srgb, var(--b) var(--mix, 78%), #000) 50%, var(--dark, #0d0d10) 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 12px 30px -14px rgba(0,0,0,.7); }
.lp-dch { display: flex; align-items: center; gap: 10px; } .lp-dch b { display: block; font-size: 14px; } .lp-dch small { font-size: 11px; opacity: .75; }
.lp-dcf { display: flex; justify-content: space-between; align-items: baseline; } .lp-dcf b { font-size: 22px; letter-spacing: -.03em; } .lp-dcf span { font-size: 13px; font-weight: 600; opacity: .85; }
.lp-tcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-tcards .tcard { background: #111113; color: #f5f5f3; box-shadow: inset 0 0 0 1px #1f1f23; cursor: default; }
.lp-tcards .tcard :is(.tdate, .tmeta, .tnote) { color: #a1a1a9; } .lp-tcards .tcard .sym, .lp-tcards .tcard .pnl { color: #f5f5f3; }
.lp-tcards .tshot { background: #0d0d0f; }
.lp-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; color: #d2d2d6; }
.lp-tbl th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8a8a92; padding: 0 12px 10px; border-bottom: 1px solid #1f1f23; }
.lp-tbl td { padding: 11px 12px; border-bottom: 1px solid #18181b; } .lp-tbl td b { color: #f5f5f3; } .lp-tbl .dim { color: #8a8a92; }
.lp-tbl .up { color: #f5f5f3; font-weight: 600; } .lp-tbl .dn { color: #a996ff; font-weight: 600; }
.lp-side { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--accbg); color: var(--acc2); } .lp-side.sell { background: rgba(139,109,255,.15); color: #a996ff; }
.lp-ana { display: grid; gap: 16px; align-content: start; }
.lp-kp.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-anb { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lp-box { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: #111113; box-shadow: inset 0 0 0 1px #1f1f23; align-content: start; }
.lp-hb { display: grid; grid-template-columns: 64px 1fr 80px; align-items: center; gap: 10px; font-size: 12.5px; color: #a1a1a9; }
.lp-hb i { height: 8px; border-radius: 999px; background: #1f1f23; overflow: hidden; } .lp-hb b { display: block; height: 100%; border-radius: inherit; }
.lp-hb b.up { background: linear-gradient(90deg, var(--acc), var(--acc2)); } .lp-hb b.dn { background: #a996ff; }
.lp-hb em { font-style: normal; text-align: right; font-weight: 600; } .lp-hb em.up { color: #f5f5f3; } .lp-hb em.dn { color: #a996ff; }
@media (max-width: 1000px) { .lp-cards, .lp-tcards { grid-template-columns: 1fr 1fr; } .lp-anb { grid-template-columns: 1fr; } .lp-kp.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .lp-cards, .lp-tcards { grid-template-columns: 1fr; } .lp-pad { padding: 12px; min-height: 0; }
  .lp-nav { display: inline-flex !important; } .lp-nav button { padding: 0 8px; } .lp-nav button.on span { display: none; }
  .lp-tbl th:nth-child(3), .lp-tbl td:nth-child(3) { display: none; }
}
var.rd { font: inherit; font-style: normal; color: inherit; }
.lp-win[data-view="demo"] var.rd[data-only="demo"] { display: inline !important; }

/* showcase (the real app inside the landing page): it can be looked at and its sections changed, nothing else */
html.showcase body { overflow-x: hidden; }
html.showcase :is(#page, .rail, #notes-btn, #me, .toast, #toast) { pointer-events: none; }
html.showcase #page { user-select: none; }
html.showcase #toast { display: none; }
/* landing: the real app in a window (showcase), with gold numbered markers and their list */
.sc { margin-top: 40px; display: grid; gap: 26px; }
.sc-win { border-radius: 20px; overflow: hidden; background: #070708; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 60px 140px -50px rgba(139,109,255,.35), 0 30px 80px -30px rgba(0,0,0,.95); }
.sc-bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 16px; background: #111113; border-bottom: 1px solid #1f1f23; }
.sc-url { flex: 1; max-width: 320px; margin: 0 auto; text-align: center; font-size: 12px; color: #8a8a92; background: #18181b; border-radius: 8px; padding: 4px 10px; }
.sc-view { position: relative; overflow: hidden; }
.sc-frame { position: absolute; top: 0; left: 0; width: 1360px; height: 860px; border: 0; transform-origin: 0 0; background: #070708; display: block; }
.sc-marks { position: absolute; inset: 0; pointer-events: none; }
.sc-mark { position: absolute; z-index: 2; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 0; display: grid; place-items: center; pointer-events: auto; cursor: default;
  font: 800 13px/1 Inter, system-ui, sans-serif; color: #1a1206; background: linear-gradient(180deg, #b4a3ff, #8b6dff); box-shadow: 0 0 0 4px rgba(139,109,255,.25), 0 8px 18px rgba(0,0,0,.5); transition: transform .2s, box-shadow .2s; }
.sc-mark::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(240,205,133,.7); animation: scPulse 2.4s ease-out infinite; }
@keyframes scPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.sc-mark.lit { transform: scale(1.18); box-shadow: 0 0 0 6px rgba(139,109,255,.35), 0 8px 18px rgba(0,0,0,.5); }
.sc-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.sc-legend li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; transition: background .2s; }
.sc-legend li.lit { background: rgba(139,109,255,.08); }
.sc-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #1a1206; background: linear-gradient(180deg, #b4a3ff, #8b6dff); }
.sc-legend b { display: block; font-size: 15px; color: #f5f5f3; letter-spacing: -.02em; line-height: 1.3; }
.sc-legend p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: #a1a1a9; }
@media (max-width: 1100px) { .sc-legend { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .sc-legend { grid-template-columns: 1fr; gap: 6px; } .sc-mark { width: 22px; height: 22px; margin: -11px 0 0 -11px; font-size: 11px; } }
html.showcase, html.showcase body { overflow: hidden !important; }

/* showcase: sections other than the Dashboard, blurred with a padlock (to be discovered) */
html.sc-locked :is(#page, .rail) { filter: blur(7px) saturate(.7); opacity: .55; transition: filter .3s, opacity .3s; }
.sc-lockbox { position: fixed; left: 50%; top: 52%; transform: translate(-50%, -50%); z-index: 50; width: min(460px, 86vw); display: grid; justify-items: center; gap: 10px; text-align: center;
  padding: 30px 28px; border-radius: 22px; background: color-mix(in srgb, var(--panel) 92%, transparent); box-shadow: 0 0 0 1px var(--line2), 0 40px 90px -30px rgba(0,0,0,.9); animation: lpIn .35s ease; }
.sc-lock-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-bg); color: var(--brand); }
.sc-lock-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sc-lockbox b { font-size: 22px; letter-spacing: -.03em; color: var(--ink); }
.sc-lockbox p { margin: 0; color: var(--mut); line-height: 1.5; }
.sc-lockbox .btn { margin-top: 8px; height: 42px; padding: 0 20px; border-radius: 999px; }
/* showcase markers: a gold frame round each part, its number and title on it; the active one is lit and the rest of the app dims */
.sc-marks .sc-mark { position: absolute; left: -13px; top: -13px; margin: 0; width: 28px; height: 28px; pointer-events: auto; cursor: pointer; }
.sc-spot { position: absolute; border-radius: 16px; pointer-events: none; box-shadow: inset 0 0 0 1.5px rgba(139,109,255,.35); transition: box-shadow .45s ease, opacity .45s ease; }
.sc-spot .sc-tip { position: absolute; left: 22px; top: -13px; height: 26px; display: inline-flex; align-items: center; padding: 0 11px; border-radius: 999px; white-space: nowrap;
  font: 700 12.5px/1 Inter, system-ui, sans-serif; letter-spacing: -.01em; color: #1a1206; background: linear-gradient(180deg, #b4a3ff, #8b6dff); box-shadow: 0 8px 18px rgba(0,0,0,.45);
  opacity: 0; transform: translateX(-6px); transition: opacity .35s ease, transform .35s ease; }
.sc-spot.r .sc-tip { left: auto; right: calc(100% - 14px); transform: translateX(6px); }
.sc-spot.r .sc-mark { left: auto; right: -13px; }
.sc-spot.r .sc-tip { right: 22px; }
.sc-spot.act { box-shadow: inset 0 0 0 2.5px #8b6dff, 0 0 0 9999px rgba(4,4,5,.58), 0 0 40px 6px rgba(139,109,255,.35); z-index: 1; }
.sc-spot.act .sc-tip { opacity: 1; transform: none; }
.sc-spot.act .sc-mark { transform: scale(1.12); }
.sc-spot:not(.act) .sc-mark::after { animation: none; opacity: 0; }
.sc-legend li { cursor: pointer; }
.sc-legend li.act { background: rgba(139,109,255,.1); box-shadow: inset 0 0 0 1px rgba(139,109,255,.35); }
.sc-legend li.act .sc-n { box-shadow: 0 0 0 4px rgba(139,109,255,.25); }
@media (max-width: 700px) { .sc-spot .sc-tip { display: none; } .sc-marks .sc-mark { width: 22px; height: 22px; left: -10px; top: -10px; } }
.sc-spot.b .sc-mark, .sc-spot.b .sc-tip { top: auto; bottom: -13px; }

/* landing: the app's sections as tabs above the window (no numbers) */
.sc-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 36px; }
.sc-tab { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 0; border-radius: 16px; background: #111113; box-shadow: inset 0 0 0 1px #1f1f23; color: #a1a1a9; text-align: left; font: inherit; cursor: pointer; transition: background .25s, box-shadow .25s, transform .25s; }
.sc-tab:hover { background: #161618; transform: translateY(-2px); }
.sc-ti { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #1a1a1d; color: #a1a1a9; transition: background .25s, color .25s; }
.sc-ti svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sc-tx { display: grid; gap: 3px; min-width: 0; }
.sc-tx b { font-size: 15px; color: #f5f5f3; letter-spacing: -.02em; }
.sc-tx small { font-size: 12.5px; line-height: 1.4; color: #8a8a92; }
.sc-tab.on { background: linear-gradient(180deg, rgba(139,109,255,.16), rgba(139,109,255,.06)); box-shadow: inset 0 0 0 1.5px rgba(139,109,255,.6), 0 18px 40px -22px rgba(139,109,255,.5); }
.sc-tab.on .sc-ti { background: linear-gradient(180deg, #b4a3ff, #8b6dff); color: #1a1206; }
.sc-tab.on .sc-tx small { color: #c9b48a; }
.sc .sc-win { margin-top: 4px; }
@media (max-width: 1000px) { .sc-tabs { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; } }
@media (max-width: 640px) { .sc-tabs { grid-template-columns: repeat(5, minmax(120px, 1fr)); } .sc-tx small { display: none; } .sc-tab { padding: 10px; align-items: center; } }
/* showcase: the example trade card of the Journal preview can still be turned round */
html.showcase .pvj-focus { pointer-events: auto; }
/* Dashboard: which period the big number covers */
.hp-per { display: block; margin-top: 3px; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--mut); }
/* Dashboard locked (no trades yet): the labels stay readable, the numbers behind are blurred */
.pvl .lk > .hp-lbl { filter: none; opacity: 1; }
.pvl .hero-pnl.lk .lk-badge, .pvl .wr-card.lk .lk-badge { top: 62%; }
/* app top bar on phones: "Today" as its icon only, the two switches more compact, so nothing goes under the logo */
@media (max-width: 520px) {
  #notes-btn { width: 40px; padding: 0; justify-content: center; }
  #notes-btn span { display: none; }
  .topbar .right { gap: 6px; }
  .sw-pair { gap: 4px; }
}
@media (max-width: 380px) {
  .viewsw button, .viewsw button[data-view="demo"].on { width: 44px; height: 30px; font-size: 12px; }
  .viewsw::before { width: 44px; height: 30px; } .viewsw.demo::before { transform: translateX(46px); }
  .themesw button { width: 30px; height: 30px; } .themesw::before { width: 30px; height: 30px; } .themesw.dark::before { transform: translateX(32px); }
  .themesw button svg { width: 15px; height: 15px; }
  #notes-btn { width: 34px; height: 34px; } .topbar #me { width: 34px; height: 34px; font-size: 12px; }
  .topbar .right { gap: 4px; }
}
/* landing: language in the top bar on a computer, in the footer on a phone */
.lf-lang { display: none; }
@media (max-width: 560px) {
  .lnav .ln-lang { display: none; }
  .lf-lang { display: block; margin-top: 10px; }
}
/* score: always "out of 100", so it is not read as a percentage */
.score .big b { display: flex; align-items: baseline; justify-content: center; }
.score .big b .of100 { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--mut); margin-left: 1px; }
.score .part { grid-template-columns: 104px 1fr 54px; }
.score .part .of100 { font-size: var(--fs-xs); font-weight: 500; color: var(--mut); }
/* profit factor gauge: its 0 / 1 / 3+ readable (they were 8 px) */
.kg-t { font-size: 11px; }
/* "Your day" leads to the "Today" panel: one place for today's plan and notes */
.day-open { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--brand-bg); color: var(--brand-ink); font: inherit; font-size: var(--fs-sm); font-weight: 600; text-align: left; cursor: pointer; transition: filter .15s; }
.day-open:hover { filter: brightness(1.06); }
.day-open span { flex: 1; }
.day-open svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Trades: "has notes" as a label, not a loose pencil */
.has-notes { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: 600; color: var(--mut); padding: 2px 7px; border-radius: 999px; background: var(--bg2); }
.has-notes svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
/* Trades on a phone: the filters fold behind one button; each trade is a small card (date, symbol, side, R, P&L) */
.flt-btn { display: none; }
@media (max-width: 640px) {
  .tools .flt-btn { display: inline-flex; gap: 6px; }
  .tools .flt-btn svg { width: 15px; height: 15px; }
  .tools .search { width: auto !important; flex: 1; min-width: 0; }
  .tools > .sel, .tools > .dd, .tools > .tools-end { display: none; }
  .tools.flt-open > .sel, .tools.flt-open > .dd, .tools.flt-open > .tools-end { display: flex; flex: 1 1 45%; }
  .tbl-wrap .tbl thead { display: none; }
  .tbl-wrap .tbl tr[data-trade] { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "sym side pnl" "date acc r"; align-items: center; gap: 2px 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .tbl-wrap .tbl tr[data-trade] td { padding: 0; border: 0; }
  .tbl tr[data-trade] .c-x { display: none; }
  .tbl tr[data-trade] .c-sym { grid-area: sym; } .tbl tr[data-trade] .c-side { grid-area: side; }
  .tbl tr[data-trade] .c-pnl { grid-area: pnl; text-align: right; }
  .tbl tr[data-trade] .c-date { grid-area: date; font-size: var(--fs-sm); color: var(--mut); white-space: nowrap; }
  .tbl tr[data-trade] .c-acc { grid-area: acc; max-width: none !important; font-size: var(--fs-sm); min-width: 0; }
  .tbl tr[data-trade] .c-r { grid-area: r; text-align: right; font-size: var(--fs-sm); }
  .tbl tr[data-trade] .c-r::after { content: "R"; }
}
.c-ru { display: none; } @media (max-width: 640px) { .tbl tr[data-trade] .c-r::after { content: none; } .c-ru { display: inline; } }

/* MT5 code: the three steps first; "How it works" folded underneath */
details.ea-how { display: block; padding: 0; }
details.ea-how > summary { list-style: none; cursor: pointer; padding: 12px 16px; color: var(--ink2); font-weight: 600; }
details.ea-how > summary::-webkit-details-marker { display: none; }
details.ea-how > summary::after { content: "+"; margin-left: auto; font-size: 18px; font-weight: 500; color: var(--mut); }
details.ea-how[open] > summary::after { content: "−"; }
details.ea-how .ea-how-i { padding: 0 16px 12px; }
/* brokers (Automatic): two groups, the ones that connect first, "Coming soon" folded */
.grp-h { display: flex; align-items: center; gap: 8px; margin: 4px 2px 0; font-size: var(--fs-sm); }
.grp-h b { text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-xs); }
.grp-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fb37a; box-shadow: 0 0 0 3px rgba(47,179,122,.18); }
details.soon-grp > summary { list-style: none; cursor: pointer; }
details.soon-grp > summary::-webkit-details-marker { display: none; }
details.soon-grp > summary b::after { content: " +"; color: var(--mut); }
details.soon-grp[open] > summary b::after { content: " −"; }
/* connection logins: one field under another, in the order you fill them */
.form-grid.one { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
.form-grid.one .field.full { grid-column: auto; }

/* Accounts: the account number tells apart accounts with the same name */
.acc-it .r2 .acc-no { flex: none; font-variant-numeric: tabular-nums; }
/* Accounts on a phone: the list's own title is enough ("Accounts" was there twice) */
@media (max-width: 720px) { .layout.l-acc #page > .page-h h1 { display: none; } .layout.l-acc #page > .page-h:empty { display: none; } }
/* Payouts: three figures in one even row, no decorative glow */
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis.three .kpi.big { grid-column: auto; }
.kpis.three .kpi.big::after { display: none; }
@media (max-width: 560px) { .kpis.three { grid-template-columns: minmax(0, 1fr); } .kpis.three .kpi.big { grid-column: auto; } }
/* example trade card (Journal preview and landing): straight and still; it only turns when you click it */
.pvj-flip, .pvj-focus { animation: none !important; transform: none !important; }
@media (max-width: 900px) { .pvj-flip { transform: none !important; } }
/* Dashboard on the first day: a welcome with the three steps, above the real (empty) page */
.dwel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 16px; padding: 26px 28px; border-radius: var(--r3); background: var(--panel);
  box-shadow: var(--sh), inset 0 0 0 1px color-mix(in srgb, var(--brand) 30%, transparent); position: relative; overflow: hidden; isolation: isolate; }
.dwel::before { content: ""; position: absolute; inset: -40% 40% auto -10%; height: 140%; z-index: -1; background: radial-gradient(closest-side, var(--brand-bg), transparent); }
.dwel-tx { display: grid; gap: 10px; justify-items: start; }
.dwel-tx h2 { margin: 2px 0 0; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.03em; line-height: 1.15; }
.dwel-tx p { margin: 0; color: var(--ink2); line-height: 1.5; max-width: 46ch; }
.dwel-tx .empty-acts { margin: 6px 0 0; justify-content: flex-start; }
.dwel-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dwel-steps li { display: grid; grid-template-columns: 26px 38px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); }
.dwel-steps li.now { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brand) 60%, transparent); background: var(--brand-bg); }
.dwel-steps li.done { opacity: .7; }
.dwel-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--bg2); color: var(--ink2); }
.dwel-steps li.now .dwel-n { background: var(--brand); color: var(--on-ink); }
[data-theme="dark"] .dwel-steps li.now .dwel-n { color: #1a1206; }
.dwel-steps li.done .dwel-n { background: var(--ink); color: var(--on-ink); }
.dwel-n svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.dwel-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--bg2); color: var(--brand); }
.dwel-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dwel-steps b { display: block; font-size: var(--fs-md); } .dwel-steps small { color: var(--mut); font-size: var(--fs-sm); line-height: 1.4; }
@media (max-width: 860px) { .dwel { grid-template-columns: 1fr; padding: 20px; } }
/* indicators with no trades: a short line instead of a dash */
.kv .kv-wait, .kv-wait { display: block; font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0; line-height: 1.35; color: var(--mut); white-space: normal; }
.hero-pnl + .dwel { margin-top: 0; }

/* first visit: add the first account or look around first */
.modal .fv { display: grid; justify-items: center; gap: 10px; padding: 34px 34px 28px; text-align: center; }
.fv-mark .bmark { width: 54px; height: 54px; display: block; filter: drop-shadow(0 8px 18px rgba(0,0,0,.25)); }
.fv h2 { margin: 8px 0 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.035em; line-height: 1.15; }
.fv-sub { margin: 0; color: var(--ink2); max-width: 44ch; line-height: 1.5; }
.fv-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; margin-top: 14px; }
.fv-opt { display: grid; justify-items: start; align-content: start; gap: 6px; padding: 20px; border: 0; border-radius: 18px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.fv-opt:hover, .fv-opt:focus-visible { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--line2), 0 16px 30px -18px rgba(0,0,0,.4); outline: none; }
.fv-opt.main { background: var(--brand-bg); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brand) 55%, transparent); }
.fv-opt.main:hover, .fv-opt.main:focus-visible { box-shadow: inset 0 0 0 2px var(--brand), 0 18px 34px -18px color-mix(in srgb, var(--brand) 60%, transparent); }
.fv-opt .fan { margin: 2px 0 8px; }
.fv-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--bg2); color: var(--ink2); margin-bottom: 8px; }
.fv-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fv-opt b { font-size: 17px; letter-spacing: -.02em; }
.fv-opt small { color: var(--mut); font-size: var(--fs-sm); line-height: 1.45; }
.fv-go { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.fv-opt.main .fv-go { color: var(--brand-ink); }
.fv-go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.fv-steps { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: var(--fs-sm); color: var(--mut); }
.fv-steps li { display: inline-flex; align-items: center; gap: 7px; }
.fv-steps span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--bg2); color: var(--ink2); }
@media (max-width: 600px) { .fv-opts { grid-template-columns: 1fr; } .modal .fv { padding: 24px 18px 20px; } }
.fv-opt { overflow: hidden; } .fv-opt .fan { justify-self: center; margin: 4px auto 10px; }

/* Demo: no purple line under the top bar (the purple switch and accents already say it) */
.topbar.is-demo { box-shadow: none; }

/* while the colours fade (Real <-> Demo, light <-> dark) the Real/Demo thumb keeps its own calm slide */
html.theme-anim .viewsw::before { transition: transform .6s cubic-bezier(.65,0,.35,1), background-color .6s ease !important; }

/* ================= sign-up on the Trader ID: a big card in the middle, you type on it ================= */
.qwrap.qc { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 18px; width: min(760px, 100%); margin: 0 auto; padding: 6px 0 30px; }
.qc-prog { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--mut); }
.qc-prog i { width: 26px; height: 5px; border-radius: 999px; background: var(--line2); transition: background .4s, width .4s; }
.qc-prog i.done { background: var(--ink2); } .qc-prog i.on { width: 42px; background: var(--brand); }
.qc-prog span { margin-left: 8px; }
.qc-head { text-align: center; display: grid; gap: 6px; animation: qcIn .45s ease both; }
.qc-head h1 { margin: 0; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.04em; line-height: 1.1; }
.qc-head p { margin: 0; color: var(--mut); }
@keyframes qcIn { from { opacity: 0; transform: translateY(8px); } }
.qc-stage { width: 100%; display: grid; justify-items: center; }
.qc-card { position: relative; width: 420px; animation: qcCard .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes qcCard { from { opacity: 0; transform: translateY(14px) rotate(-1.5deg); } }
.qc-card .tid { box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 0 0 1px rgba(0,0,0,.18), 0 40px 70px -34px rgba(0,0,0,.6); }
/* the field of this step: a gold highlight that slides from field to field */
.qc-card .tid-f.focus { background: none; box-shadow: none; }
/* typing on the card: the inputs sit right on top of the name and username */

.qc-card.typing .tid-f[data-f="name"] b, .qc-card.typing .tid-f[data-f="username"] b { visibility: hidden; }
.qc-ans { width: 100%; display: grid; justify-items: center; }
.qc-opts { width: 100%; animation: qcIn .45s .05s ease both; }
.qc-acc { width: min(440px, 100%); display: grid; gap: 12px; animation: qcIn .45s .05s ease both; }
.qc-foot { width: 100%; display: flex; align-items: center; gap: 10px; }
.qc-foot .sp { flex: 1; }
/* a choice flying onto the card */
.qc-fly { position: fixed; z-index: 100; transform: translate(-50%, -50%); padding: 6px 12px; border-radius: 999px; pointer-events: none; white-space: nowrap;
  font: 700 13px var(--sans); color: #1a1206; background: linear-gradient(180deg, #b4a3ff, #8b6dff); box-shadow: 0 10px 24px rgba(0,0,0,.25);
  transition: left .55s cubic-bezier(.5,0,.3,1), top .55s cubic-bezier(.5,0,.3,1), transform .55s ease, opacity .55s ease; }
@media (prefers-reduced-motion: reduce) { .qc-card, .qc-head, .qc-opts, .qc-acc { animation: none; } }
.qc-card .tid { text-align: left; }

.qc .term { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--mut); background: var(--panel2); border-radius: var(--r); padding: 11px 13px; }
.qc .term svg { flex: none; width: 15px; height: 15px; margin-top: 1px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.qc-card .tid .tid-f { text-align: left; }
.qc-card .tid, .qc-card .tid .tid-f { justify-items: start; }

/* ===== Trader ID laid out like an identity card ===== */

/* the hologram on the corner of the photo */

/* the small see-through portrait, bottom right */

.tid-f em .en { opacity: .62; }

/* sign-up: the card at its normal size, the whole time */
.qc-stage { width: 100%; display: grid; justify-items: center; }
.qc-card { position: relative; width: 420px; }
/* where you are from: the flag on the card */
.qc-country { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--mut); }
.qcc-btn { display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px 7px 9px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); font: 600 13px var(--sans); color: var(--ink); }
.qcc-btn:hover { box-shadow: inset 0 0 0 1px var(--line2); }
.qcc-btn small { font-weight: 500; color: var(--mut); }
.qcc-btn .flag, .qcc-opt .flag { width: 22px; height: 15px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.14); }
.qcc-panel { width: min(600px, 100%); display: grid; gap: 10px; padding: 12px; border-radius: var(--r); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); animation: qcIn .3s ease both; }
.qcc-panel[hidden] { display: none; }
.qcc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px; max-height: 232px; overflow: auto; overscroll-behavior: contain; }
.qcc-opt { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 8px 9px; border: 0; border-radius: 8px; background: none; cursor: pointer; text-align: left; font: 500 13px var(--sans); color: var(--ink); }
.qcc-opt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qcc-opt:hover { background: var(--bg2); }
.qcc-opt.on { background: var(--bg2); font-weight: 700; }
.qcc-none { color: var(--mut); font-size: 13px; padding: 6px 4px; }
/* Trader ID without a photo: the data takes the whole card */

/* sign-up: your card, and the gold and black ones locked next to it */
.qc-stage { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; }
.qc-stage .qc-locked { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qc-stage.wide .qc-locked { width: 200px; grid-template-columns: 1fr; gap: 16px; }
.qc-lock { position: relative; border-radius: 9px; }
.qc-lock-card { width: 420px; opacity: .6; filter: saturate(.85) blur(.5px); pointer-events: none; user-select: none; }
.qc-lock-tag { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 3px; padding: 6px; text-align: center; border-radius: 9px;
  color: #fff; background: linear-gradient(180deg, rgba(14,14,18,.28), rgba(14,14,18,.5)); }
.qc-lock-tag svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 2px; }
.qc-lock-tag b { font-size: 13px; letter-spacing: -.01em; }
.qc-lock-tag span { font-size: 11px; opacity: .85; }.qc-lock[data-metal="black"] .qc-lock-card { opacity: .42; }
.qc-lock-tag { text-shadow: 0 1px 2px rgba(0,0,0,.35); }

/* Trader ID background: a drawn car, engraved into the card */

/* picking it */

/* ================= Landing hero: black and white until the gold wave colours it in ================= */
@property --ph-step { syntax: '<length>'; inherits: false; initial-value: 116px; }
.ph-hero { --u: min(1px, 100cqi / 1440, 100svh / 900); --uc: max(var(--u), .82px); --gold: #7457ff; --gold-d: #5a3ae6; --gold-l: #b4a3ff; --pk: #0c0c0d; --pb: #55555b; --pm: #8b8b90;
  position: relative; isolation: isolate; container-type: inline-size; display: flex; flex-direction: column; min-height: calc(100svh - 64px); background: #fff; overflow: clip; color: var(--pk); }
.ph-hero[data-state="mono"] > :is(.ph-stage, .ph-trust, .ph-badge, .ph-pulses) { filter: grayscale(1); }
.ph-grid { --ph-step: max(72px, calc(116 * var(--u))); position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(to right, #efefed 1px, transparent 1px);
  background-size: var(--ph-step) 100%; background-position: calc(50% - var(--ph-step) / 2) 0; animation: phFade .9s .35s both;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 90px, #000 88%, transparent); mask-image: linear-gradient(to bottom, transparent 0, #000 90px, #000 88%, transparent); }
.ph-pulses { position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 90px, #000 88%, transparent); mask-image: linear-gradient(to bottom, transparent 0, #000 90px, #000 88%, transparent); }
.ph-pulses span { position: absolute; top: 0; width: 1.5px; height: 64px; margin-left: -.25px; border-radius: 999px; opacity: .9; transform: translateY(-100%); animation: phPulse var(--dur) linear var(--del) infinite; }
.ph-pulses[data-paused="true"] span { animation-play-state: paused; }
@keyframes phPulse { 0% { transform: translateY(-100%); } 62%, 100% { transform: translateY(var(--travel)); } }
/* the wave */
.ph-wave { --wx: 50%; --wy: 50%; --r0: 0px; --r1: 0px; --band: 0; position: absolute; inset: 0; z-index: 60; pointer-events: none; }
.ph-wave-gray { position: absolute; inset: 0; -webkit-backdrop-filter: grayscale(1); backdrop-filter: grayscale(1);
  -webkit-mask-image: radial-gradient(circle at var(--wx) var(--wy), transparent var(--r0), #000 var(--r1)); mask-image: radial-gradient(circle at var(--wx) var(--wy), transparent var(--r0), #000 var(--r1)); }
.ph-wave-band { position: absolute; inset: 0; opacity: var(--band);
  background: radial-gradient(circle at var(--wx) var(--wy), transparent max(0px, calc(var(--r1) - 220px)), rgba(139,109,255,.13) calc(var(--r1) - 70px), transparent var(--r1)); }
.ph-hero:not([data-state="moving"]) .ph-wave > * { visibility: hidden; }
/* layout */
.ph-stage { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px 0 32px; }
.ph-center { position: relative; width: 100%; }
.ph-copy { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.ph-halo { position: absolute; z-index: -1; top: -36px; bottom: -28px; left: 50%; width: 100%; translate: -50% 0; pointer-events: none; background: #fff;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent), linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent), linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent); mask-composite: intersect; }
.ph-halo.t { top: -24px; bottom: 0; }
.ph-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 max(14px, calc(20 * var(--u))); padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid #efe3c4; background: #fbf6ea;
  color: #4325c4; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.ph-eyeseal svg { width: 18px; height: 18px; display: block; }
.ph-hero .ros { fill: var(--gold); }
.ph-hero .tick { fill: none; stroke: #fff; stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; }
/* headline */
.ph-h { --hs: min(66px, 12.6cqi); margin: 0; font-size: var(--hs); font-weight: 800; line-height: .94; letter-spacing: -.045em; word-spacing: .08em; color: var(--pk); }
.ph-h .ln { display: block; }
.ph-h .ln.ph-in { animation-name: phLine; }
.ph-l2 { position: relative; display: inline-block; }
.ph-h .last { white-space: nowrap; font-size: 1.34em; line-height: .9; letter-spacing: -.05em; }
.ph-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* the switch in place of the first letter */
.ph-tgw { position: relative; display: inline-block; }
.ph-tg { --kx: 0em; position: relative; display: inline-block; width: 1.72em; height: .72em; margin: 0 .08em 0 0; padding: 0; border: 0; border-radius: 999px; background: none; font-size: inherit;
  vertical-align: baseline; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ph-tg[aria-checked="true"] { --kx: .91em; }
.ph-tg-tr { position: absolute; inset: 0; border: .045em solid #c9c9cc; border-radius: inherit; background: #f3f3f2; box-shadow: inset 0 .02em .06em rgba(12,12,13,.08); transition: border-color .3s, background-color .3s, box-shadow .3s; }
.ph-tg:hover .ph-tg-tr { border-color: #a9a9ad; }
.ph-tg[aria-checked="true"] .ph-tg-tr { border-color: var(--gold); background: #efeaff; box-shadow: inset 0 .02em .06em rgba(90,58,230,.15), 0 .06em .2em -.04em rgba(116,87,255,.5); }
.ph-tg:focus-visible { outline: 3px solid var(--pk); outline-offset: 5px; }
.ph-tg-kn { position: absolute; top: 50%; left: .085em; width: .56em; height: .56em; margin-top: -.28em; translate: var(--kx) 0; border-radius: 999px; background: #fff;
  box-shadow: 0 .03em .08em rgba(12,12,13,.16), 0 0 0 .02em rgba(12,12,13,.04); transition: translate .46s cubic-bezier(.3,1.35,.5,1), scale .18s ease; }
.ph-hero:not(.touched) .ph-tg-kn { animation: phNudge 1.3s 1.95s ease-in-out both; }
@keyframes phNudge { 0%, 5% { transform: none; } 30% { transform: translateX(.2em); } 55% { transform: none; } 75% { transform: translateX(.09em); } 100% { transform: none; } }
.ph-tg:hover .ph-tg-kn { translate: calc(var(--kx) + .04em) 0; }
.ph-tg[aria-checked="true"]:hover .ph-tg-kn { translate: calc(var(--kx) - .04em) 0; }
.ph-tg:active .ph-tg-kn { scale: 1.1 .92; }
.ph-tg-seal { position: absolute; inset: 6%; width: 88%; height: 88%; }
.ph-tg-seal .ros { fill: #c9c9cc; transition: fill .3s; }
.ph-tg[aria-checked="true"] .ph-tg-seal .ros { fill: var(--gold); }
.ph-tg-seal .tick { opacity: .6; transition: opacity .25s; }
.ph-tg[aria-checked="true"] .ph-tg-seal .tick { opacity: 1; }
/* "click to organise" */
.ph-hint { position: absolute; top: calc(100% + .18em); left: 50%; translate: -50% 0; display: flex; align-items: flex-start; gap: 4px; font-size: 12px; line-height: 1; letter-spacing: 0; word-spacing: normal;
  white-space: nowrap; font-weight: 500; color: var(--pm); pointer-events: none; animation: phFade .5s 1.4s both; transition: opacity .2s; }
.ph-hero.touched .ph-hint { opacity: 0; animation: none; }
.ph-hint kbd { display: inline-grid; place-items: center; min-width: 1.6em; margin-left: .25em; padding: .15em .35em; border: 1px solid #dcdcdf; border-bottom-width: 2px; border-radius: .35em; background: #fff; color: var(--pb); font: 600 .85em/1 var(--sans); }
.ph-hint-t { display: none; }
.ph-hint-arrow { display: none; width: 40px; height: auto; margin-top: 6px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ph-hint-arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: phDraw .55s 1.55s cubic-bezier(.65,0,.35,1) forwards; }
.ph-hint-arrow path + path { animation-duration: .25s; animation-delay: 2.05s; }
@media (pointer: coarse) { .ph-hint-p { display: none; } .ph-hint-t { display: inline; } }
/* buttons */
.ph-btn { --grad: linear-gradient(110deg, #9a82ff, #6C4BFF 50%, #4b2fd6); --glint: rgba(255,255,255,.55); position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; text-decoration: none; font-weight: 600; transition: translate .35s cubic-bezier(.22,1,.36,1), box-shadow .35s cubic-bezier(.22,1,.36,1), scale .2s ease; }
.ph-btn:hover, .ph-btn:focus-visible { translate: 0 -3px; }
.ph-btn::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, var(--glint) 50%, transparent 65%); translate: -120% 0; }
.ph-btn:hover::after, .ph-btn:focus-visible::after { translate: 120% 0; transition: translate .8s cubic-bezier(.65,0,.35,1); }
.ph-btn:active { scale: .98; }
.ph-btn:focus-visible { outline: 3px solid var(--pk); outline-offset: 4px; }
.ph-btn.solid { background: var(--grad); color: #ffffff; box-shadow: 0 16px 30px -16px rgba(90,58,230,.85); }
.ph-btn.solid:hover { box-shadow: 0 22px 34px -16px rgba(90,58,230,.95); }
.ph-btn.outline { --glint: rgba(116,87,255,.16); border: 1.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; color: #4325c4; }
.ph-btn.outline:hover { background: linear-gradient(#fdf8ec, #fdf8ec) padding-box, var(--grad) border-box; box-shadow: 0 14px 26px -16px rgba(90,58,230,.55); }
.ph-btn.lg { height: 56px; padding: 0 26px 0 28px; font-size: 15.5px; }
.ph-btn.outline.lg { padding: 0 28px 0 24px; }
.ph-btn svg { width: 18px; height: 18px; flex: none; transition: translate .4s cubic-bezier(.3,1.4,.5,1); }
.ph-btn:hover svg { translate: 3px 0; }
.ph-btn .ph-play { fill: currentColor; stroke: none; }
.ph-btn:hover .ph-play { translate: none; }
.ph-arrow { position: absolute; top: 50%; left: calc(100% + .66em); width: max(44px, .56em); height: max(44px, .56em); translate: 0 -46%; padding: 0; animation: phPop .5s .5s cubic-bezier(.3,1.6,.5,1) both; }
.ph-arrow:hover, .ph-arrow:focus-visible { translate: 0 calc(-46% - 3px); }
.ph-arrow svg { width: 40%; height: 40%; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.ph-arrow:hover svg { translate: 2px -2px; }
.ph-sub { margin: 30px 0 0; max-width: 25.2em; font-size: 15.5px; line-height: 1.55; color: var(--pb); text-wrap: pretty; }
.ph-acts { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
@media (min-width: 640px) { .ph-acts { flex-direction: row; gap: 20px; } .ph-btn.lg { height: 58px; } }
/* floating pieces */
.ph-floats { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 36px; margin-top: 44px; padding: 0 16px 28px; }
.ph-arc { display: none; }
/* the stats card */
.ph-stats { font-size: calc(16 * var(--uc)); display: flex; align-items: flex-start; gap: .95em; padding: .95em 1.4em .95em .95em; border-radius: 1.15em; border: 1px solid rgba(0,0,0,.035); background: #fff;
  box-shadow: 0 .9em 2em -1em rgba(60,40,160,.22), 0 .12em .3em rgba(12,12,13,.04); transition: translate .35s cubic-bezier(.3,1.2,.5,1), box-shadow .35s, border-color .35s; }
.ph-stats.on { border-color: rgba(116,87,255,.2); box-shadow: 0 1.1em 2.2em -1em rgba(60,40,160,.32), 0 .12em .3em rgba(12,12,13,.05); }
.ph-stats:hover { translate: 0 -4px; box-shadow: 0 1.3em 2.4em -1em rgba(60,40,160,.3), 0 .12em .3em rgba(12,12,13,.05); }
.ph-stats-ic { display: grid; place-items: center; width: 2.75em; height: 2.75em; flex: none; border-radius: .8em; background: #efeaff; color: var(--gold); }
.ph-bars { width: 1.45em; height: 1.45em; fill: currentColor; }
.ph-bars rect { height: calc(var(--h0) * 1px); y: calc((19.5 - var(--h0)) * 1px); transition: height .5s cubic-bezier(.3,1.5,.5,1), y .5s cubic-bezier(.3,1.5,.5,1); }
.ph-stats.on .ph-bars rect { height: calc(var(--h1) * 1px); y: calc((19.5 - var(--h1)) * 1px); }
.ph-stats.on .ph-bars rect:nth-child(1) { transition-delay: .12s; } .ph-stats.on .ph-bars rect:nth-child(2) { transition-delay: .21s; } .ph-stats.on .ph-bars rect:nth-child(3) { transition-delay: .3s; }
.ph-stats-tx { display: flex; flex-direction: column; text-align: left; }
.ph-stats-w1 { display: flex; gap: .28em; font-size: .82em; line-height: 1.35; font-weight: 500; color: var(--pb); }
.ph-swap { position: relative; display: inline-grid; overflow: hidden; }
.ph-swap > span { grid-area: 1 / 1; transition: transform .42s cubic-bezier(.65,0,.35,1); }
.ph-swap .on { transform: translateY(105%); }
.ph-stats.on .ph-swap .off { transform: translateY(-105%); }
.ph-stats.on .ph-swap .on { transform: none; }
.ph-stats-n { font-size: 1.2em; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ph-stats-note { display: grid; grid-template-rows: 0fr; width: 0; min-width: 100%; opacity: 0; transition: grid-template-rows .35s cubic-bezier(.3,0,.2,1), opacity .25s, margin .35s; }
.ph-stats-note > span { overflow: hidden; min-height: 0; font-size: .72em; line-height: 1.3; color: var(--pm); }
.ph-stats:hover .ph-stats-note { grid-template-rows: 1fr; opacity: 1; margin-top: .3em; }
/* the pile of example trades */
.ph-stack { position: relative; font-size: calc(16 * var(--uc)); width: 15em; height: 8.9em; }
.ph-card { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; margin: 0; padding: 1.15em; border: 0; border-radius: 17px; background: #fff;
  text-align: left; font: inherit; font-family: var(--sans); color: var(--pk); cursor: default; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  transition: transform .55s cubic-bezier(.3,1.25,.5,1), box-shadow .35s; box-shadow: 0 10px 24px -18px rgba(60,40,160,.35), 0 1px 3px rgba(12,12,13,.04); }
.ph-card.top { cursor: grab; box-shadow: 0 18px 36px -22px rgba(60,40,160,.32), 0 2px 6px rgba(12,12,13,.04); }
.ph-stack.on .ph-card.top { box-shadow: 0 26px 46px -22px rgba(60,40,160,.45), 0 2px 6px rgba(12,12,13,.05); }
.ph-stack.hover .ph-card.top { box-shadow: 0 34px 54px -22px rgba(60,40,160,.5), 0 2px 6px rgba(12,12,13,.05); }
.ph-card.drag { cursor: grabbing; transition: box-shadow .35s; }
.ph-card:focus-visible { outline: 3px solid var(--pk); outline-offset: 4px; }
.ph-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--ac) 16%, transparent), transparent 62%); }
.ph-card-frame { position: absolute; inset: .4em; border-radius: .8em; border: 1px solid color-mix(in srgb, var(--ac) 18%, transparent); pointer-events: none; }
.ph-card > span:not(.ph-card-frame) { position: relative; }
.ph-card-h { display: flex; align-items: center; gap: .45em; width: 100%; }
.ph-card-h .sp { flex: 1; }
.ph-card-ic { display: grid; place-items: center; width: 1.65em; height: 1.65em; border-radius: .5em; background: color-mix(in srgb, var(--ac) 13%, white); color: var(--ac); }
.ph-card-ic svg { width: .95em; height: .95em; }
.ph-card-k { font-size: .62em; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--pm); }
.ph-card-st { font-size: .64em; font-weight: 700; padding: .15em .6em; border-radius: 999px; background: color-mix(in srgb, var(--ac) 13%, white); color: var(--ac); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.ph-stack.on .ph-card-st { opacity: 1; transform: none; transition: opacity .3s calc(var(--stamp) + .25s), transform .3s calc(var(--stamp) + .25s); }
.ph-card-t { margin-top: .5em; font-size: 1.02em; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.ph-card-s { margin-top: .3em; font-size: .62em; color: var(--pm); }
.ph-card-f { margin-top: auto; display: flex; align-items: flex-end; width: 100%; gap: .5em; }
.ph-card-chips { flex: 1; min-width: 0; display: grid; }
.ph-card-chips > span { grid-area: 1 / 1; }
.ph-chips { display: flex; gap: .3em; transition: opacity .22s, transform .22s; }
.ph-chips i { font-style: normal; font-size: .56em; font-weight: 500; padding: .25em .55em; border-radius: 999px; border: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.7); white-space: nowrap; color: var(--pb); }
.ph-card-open { display: flex; align-items: center; gap: .3em; align-self: center; font-size: .66em; font-weight: 700; color: var(--ac); white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity .22s, transform .22s; }
.ph-card-open svg { width: 1.1em; height: 1.1em; }
.ph-stack.hover .ph-card.top .ph-chips { opacity: 0; transform: translateY(-4px); }
.ph-stack.hover .ph-card.top .ph-card-open { opacity: 1; transform: none; }
.ph-card-pnl { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.ph-card-pnl b { font-size: .86em; font-weight: 800; color: var(--ac); }
.ph-card-pnl small { font-size: .56em; color: var(--pm); }
.ph-card-seal { position: relative; width: 2.2em; height: 2.2em; flex: none; margin: 0 -.15em -.15em 0; }
.ph-slot { position: absolute; inset: 8%; border-radius: 50%; border: 1.5px dashed #d3d3d6; transition: opacity .25s, transform .25s; }
.ph-stack.on .ph-slot { opacity: 0; transform: scale(.8); transition-delay: var(--stamp); }
.ph-stamp { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(1.6) rotate(-28deg); filter: drop-shadow(0 4px 8px rgba(60,40,160,.3)); transition: transform .22s cubic-bezier(.4,0,1,1), opacity .22s; }
.ph-hero .ph-stamp .ros { fill: var(--ac); }
.ph-stamp .tick { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .2s; }
.ph-stack.on .ph-stamp { opacity: 1; transform: none; transition: transform .5s cubic-bezier(.3,1.6,.5,1) var(--stamp), opacity .12s var(--stamp); }
.ph-stack.on .ph-stamp .tick { stroke-dashoffset: 0; transition: stroke-dashoffset .42s cubic-bezier(.65,0,.35,1) calc(var(--stamp) + .18s); }
/* the trade opened */
.ph-trade { display: grid; gap: 12px; }
.ph-trade-note { justify-self: start; padding: 5px 12px; border-radius: 999px; background: #efeaff; color: #4325c4; font-size: 12px; font-weight: 600; }
/* platforms */
.ph-trust { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; padding: 0 16px 32px; }
.ph-trust p { margin: 0; font-size: 10.5px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--pm); }
.ph-trust ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 30px; max-width: 520px; }
.ph-trust li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--pb); }
/* the wax seal */
.ph-badge { display: none; }
.ph-badge-lift { position: absolute; inset: 0; transform-origin: 80% 85%; transition: transform .35s cubic-bezier(.3,1.3,.5,1); }
.ph-badge.lift .ph-badge-lift { transform: translateY(-6px) rotate(-4deg); }
.ph-badge.flipped .ph-badge-lift { transform: scale(1.42); transition: transform .65s cubic-bezier(.65,0,.35,1); }
.ph-badge-sh { position: absolute; left: 16%; right: 16%; top: 30%; bottom: 2%; border-radius: 50%; background: var(--gold); filter: blur(14px); opacity: .2; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.ph-badge.lift .ph-badge-sh { opacity: .42; transform: translateY(10px) scale(.9); }
.ph-badge-flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .65s cubic-bezier(.65,0,.35,1); }
.ph-badge.flipped .ph-badge-flip { transform: rotateY(180deg); }
.ph-face { position: absolute; inset: 0; border-radius: 50%; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.ph-front { padding: 0; border: 0; background: none; cursor: pointer; }
.ph-front:focus-visible { outline: 3px solid var(--pk); outline-offset: 4px; }
.ph-wax { width: 100%; height: 100%; display: block; transform: scale(1, 1) rotate(-6deg); }
.ph-wax text { fill: #9a80ff; font-family: var(--sans); }
.ph-badge.on .ph-wax { animation: phStamp .6s ease-out; }
@keyframes phStamp { 0% { transform: scale(1, 1) rotate(-6deg); } 40% { transform: scale(1.07, .9) rotate(-6deg); } 70% { transform: scale(.98, 1.03) rotate(-6deg); } 100% { transform: scale(1, 1) rotate(-6deg); } }
.ph-badge.on .ph-front::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 2px solid var(--gold); pointer-events: none; animation: phRing .9s .18s cubic-bezier(.22,1,.36,1) both; }
@keyframes phRing { from { transform: scale(.75); opacity: .5; } to { transform: scale(1.4); opacity: 0; } }
.ph-sheen { animation: phSheen 5.3s .9s infinite cubic-bezier(.45,0,.25,1) both; }
@keyframes phSheen { 0% { transform: translateX(-120px); } 28%, 100% { transform: translateX(200px); } }
.ph-back { transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 13%; text-align: center; color: #1a1206;
  background: radial-gradient(circle at 34% 28%, #cfc4ff, #7457ff 52%, #4325c4);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.14), inset 0 2px 6px rgba(255,255,255,.4), inset 0 -6px 12px rgba(58,42,8,.35), 0 14px 26px -14px rgba(58,42,8,.6); }
.ph-back svg { width: 1.6em; height: 1.6em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ph-back b { margin-top: .4em; font-size: 1em; line-height: 1.15; }
.ph-back span { margin-top: .35em; font-size: .8em; line-height: 1.3; opacity: .85; }
.ph-back-btn { margin-top: .6em; padding: .35em 1.1em; border: 0; border-radius: 999px; background: rgba(255,255,255,.32); color: inherit; font: 700 .8em/1 var(--sans); cursor: pointer; }
.ph-back-btn:hover { background: rgba(255,255,255,.5); }
.ph-back-btn:focus-visible { outline: 2px solid #1a1206; outline-offset: 2px; }
.ph-badge-tip { position: absolute; top: -8px; left: 50%; padding: 4px 10px; border-radius: 999px; background: var(--pk); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translate(-50%, -100%) translateY(4px); transition: opacity .2s, transform .2s; }
.ph-badge.lift .ph-badge-tip { opacity: 1; transform: translate(-50%, -100%); }
/* entrance */
.ph-in { animation: phUp .5s var(--d, 0s) cubic-bezier(.22,1,.36,1) both; }
.ph-in-l { animation: phLeft .6s var(--d, 0s) cubic-bezier(.22,1,.36,1) both; }
.ph-in-r { animation: phRight .6s var(--d, 0s) cubic-bezier(.22,1,.36,1) both; }
@keyframes phUp { from { opacity: 0; transform: translateY(12px); } }
@keyframes phLine { from { opacity: 0; transform: translateY(.28em); } }
@keyframes phLeft { from { opacity: 0; transform: translateX(-20px); } }
@keyframes phRight { from { opacity: 0; transform: translateX(20px); } }
@keyframes phFade { from { opacity: 0; } }
@keyframes phPop { from { opacity: 0; scale: .6; } }
@keyframes phDraw { to { stroke-dashoffset: 0; } }
/* computer: the pieces float around the headline, in design pixels that scale with the window */
@media (min-width: 1024px) {
  .ph-stage { padding: calc(40 * var(--u)) 0 calc(30 * var(--u)); }
  .ph-copy .ph-halo { top: calc(-44 * var(--u)); bottom: calc(-34 * var(--u)); width: calc(980 * var(--u)); }
  .ph-eyebrow { font-size: max(10.5px, calc(11.5 * var(--u))); }
  .ph-h { --hs: max(54px, calc(88 * var(--u))); }
  .ph-hint { top: auto; right: calc(100% - .06em); bottom: 72%; left: auto; translate: 0 0; font-size: 13px; }
  .ph-hint-arrow { display: block; }
  .ph-sub { margin-top: max(18px, calc(26 * var(--u))); font-size: clamp(15px, calc(17.5 * var(--u)), 17.5px); }
  .ph-acts { margin-top: max(26px, calc(38 * var(--u))); }
  .ph-floats { position: absolute; inset: 0; z-index: 20; display: block; margin: 0; padding: 0; pointer-events: none; }
  .ph-float { position: absolute; top: calc(var(--y) * var(--u)); left: calc(50% + var(--x) * var(--u)); pointer-events: auto; }
  .ph-arc { display: block; width: calc(62 * var(--u)); height: auto; pointer-events: none; color: #e3cf9f; }
  .ph-arc path { stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: phDraw .7s .65s cubic-bezier(.65,0,.35,1) forwards; }
  .ph-arc.right path { animation-delay: .75s; }
  .ph-arc circle { fill: var(--gold); transform-box: fill-box; transform-origin: center; scale: 0; animation: phDot .4s 1.2s cubic-bezier(.3,1.6,.5,1) forwards; }
  .ph-arc.right circle { animation-delay: 1.3s; }
  .ph-trust { padding-bottom: max(28px, calc(46 * var(--u))); }
  .ph-trust ul { max-width: none; flex-wrap: nowrap; gap: calc(48 * var(--u)); }
  .ph-badge { display: block; position: absolute; z-index: 20; bottom: calc(66 * var(--u)); left: calc(50% + 458 * var(--u)); width: calc(150 * var(--uc)); height: calc(150 * var(--uc)); font-size: calc(10 * var(--uc)); perspective: 700px; }
}
@keyframes phDot { to { scale: 1; } }
@media (max-width: 1023.98px) { .ph-stats, .ph-stack { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) {
  .ph-in, .ph-in-l, .ph-in-r, .ph-grid, .ph-arrow, .ph-hint, .ph-hero:not(.touched) .ph-tg-kn, .ph-sheen, .ph-badge.on .ph-wax, .ph-badge.on .ph-front::after { animation: none !important; }
  .ph-pulses { display: none; }
  .ph-btn::after { display: none; }
  .ph-hint-arrow path, .ph-arc path { stroke-dashoffset: 0; animation: none; }
  .ph-arc circle { scale: 1; animation: none; }
}.ph-chips { min-width: 0; overflow: hidden; }
.ph-chips i { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ===== "Inside the app": compact, with the hero's gold lines, seal label and sliding pill ===== */
.land .lp-c { --u: min(1px, 100vw / 1440); padding: clamp(48px, 6vw, 84px) 0 clamp(52px, 6vw, 90px); }
.lp-c > .ph-grid { background-image: linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px); z-index: -1; }
.lp-c > .ph-pulses { z-index: -1; opacity: .75; }
.lp-c .wrap { position: relative; }
.lp-head { display: grid; justify-items: center; text-align: center; }
.lp-head h2 { margin: 0; font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; line-height: 1.05; letter-spacing: -.045em; color: #f5f5f3; text-wrap: balance; }
.lp-head .intro { margin: 12px auto 0; max-width: 56ch; font-size: 15.5px; line-height: 1.55; color: #a1a1a9; text-wrap: pretty; }
.ph-eyebrow.lp-eye { margin-bottom: 16px; border-color: rgba(139,109,255,.32); background: rgba(139,109,255,.08); color: #8b6dff; }
.lp-c .ph-eyeseal .ros { fill: #8b6dff; }
.lp-c .ph-eyeseal .tick { fill: none; stroke: #1a1206; stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; }
.lp-c .sc { display: block; margin-top: 26px; }
.lp-c .sc-tabs { position: relative; display: flex; gap: 2px; width: max-content; max-width: 100%; margin: 0 auto; padding: 5px; border-radius: 999px; background: rgba(17,17,19,.9);
  box-shadow: inset 0 0 0 1px #232327; overflow-x: auto; scrollbar-width: none; }
.lp-c .sc-tabs::-webkit-scrollbar { display: none; }
.sc-ind { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; border-radius: 999px; background: linear-gradient(110deg, #9a82ff, #7457ff 50%, #5a3ae6);
  box-shadow: 0 10px 24px -12px rgba(116,87,255,.75); transition: transform .45s cubic-bezier(.3,1.25,.5,1), width .45s cubic-bezier(.3,1.25,.5,1); }
.lp-c .sc-tab { position: relative; z-index: 1; flex: none; display: flex; align-items: center; gap: 8px; padding: 7px 16px 7px 8px; border-radius: 999px; background: none; box-shadow: none;
  color: #a1a1a9; font: 600 14px var(--sans); white-space: nowrap; transform: none; transition: color .25s; }
.lp-c .sc-tab:hover { background: none; transform: none; color: #f5f5f3; }
.lp-c .sc-tab b { font-size: 14px; font-weight: 600; color: inherit; letter-spacing: -.01em; }
.lp-c .sc-ti { width: 28px; height: 28px; border-radius: 50%; background: #1a1a1d; color: inherit; transition: background .25s, color .25s; }
.lp-c .sc-ti svg { width: 15px; height: 15px; }
.lp-c .sc-tab.on { background: none; box-shadow: none; color: #1a1206; }
.lp-c .sc-tab.on .sc-ti { background: rgba(26,18,6,.14); color: #1a1206; }
.lp-c .sc-tab:focus-visible { outline: 2px solid #8b6dff; outline-offset: 2px; }
.sc-desc { margin: 12px 0 0; text-align: center; font-size: 14px; color: #8a8a92; min-height: 1.4em; }
.lp-c .sc .sc-win { margin: 18px auto 0; max-width: 100%; }
@media (max-width: 640px) { .lp-c .sc-tab { padding: 6px 13px 6px 6px; font-size: 13px; } .lp-c .sc-tab b { font-size: 13px; } .lp-c .sc-ti { width: 24px; height: 24px; } }.land .lp-c { padding-top: clamp(40px, 5vw, 60px); }
.sc-real { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(139,109,255,.1); color: #d9b46a; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.sc-real::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8b6dff; box-shadow: 0 0 0 3px rgba(139,109,255,.2); }
@media (max-width: 700px) { .sc-real { display: none; } }.sc-win.narrow .sc-real { display: none; }

/* liquid metal inside the Trader ID (sign-up) */

.qc-card { transform-style: preserve-3d; will-change: transform; }
.qc-sheen { position: absolute; inset: 0; z-index: 2; border-radius: 18px; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(60% 80% at var(--sx, 50%) var(--sy, 40%), rgba(255,255,255,.55), transparent 70%), linear-gradient(115deg, transparent 35%, rgba(255,255,255,.25) calc(var(--sx, 50%) - 5%), transparent calc(var(--sx, 50%) + 12%)); }
/* "Create my journal": gold fills it while the journal is created, then a seal */
.qc-create { position: relative; overflow: hidden; isolation: isolate; transition: color .5s .35s, background-color .4s; }
.qc-create:disabled { opacity: 1; cursor: default; }
.qc-fill { position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: left center; background: linear-gradient(110deg, #9a82ff, #7457ff 50%, #5a3ae6);
  transition: transform 1.3s cubic-bezier(.2,.7,.2,1); }
.qc-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); background-size: 200% 100%; animation: qcShine 1.2s linear infinite; }
@keyframes qcShine { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.qc-create.busy .qc-fill { transform: scaleX(.9); }
.qc-create.ok .qc-fill { transform: scaleX(1); transition-duration: .3s; }
.qc-create.busy, .qc-create.ok { color: #1a1206; }
.qc-cl { display: inline-flex; align-items: center; gap: 8px; }
.qc-dots { display: inline-flex; gap: 3px; } .qc-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: qcDot 1s infinite; }
.qc-dots i:nth-child(2) { animation-delay: .15s; } .qc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes qcDot { 0%, 100% { opacity: .35; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.qc-okseal { display: inline-block; width: 22px; height: 22px; animation: qcSeal .5s cubic-bezier(.3,1.6,.5,1) both; }
.qc-okseal svg { width: 100%; height: 100%; display: block; }
.qc-okseal .ros { fill: #1a1206; }
.qc-okseal .tick { fill: none; stroke: #b4a3ff; stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: phDraw .42s .2s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes qcSeal { from { opacity: 0; transform: scale(1.6) rotate(-28deg); } }
@media (prefers-reduced-motion: reduce) { .qc-fill, .qc-create { transition: none; } .qc-fill::after, .qc-dots i, .qc-okseal { animation: none; } .qc-okseal .tick { stroke-dashoffset: 0; animation: none; } }
/* ===== Trader ID v3: a clean metal card ===== */

/* ===== sign-up: the card on the left, the questions on the right ===== */
.qwrap.qc.qc2 { width: min(1140px, 100%); justify-items: stretch; gap: 22px; }
.qc2 .qc-prog { justify-self: center; }
.qc-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.qc-left { position: sticky; top: 20px; display: grid; gap: 16px; }
.qc2 .qc-stage { display: block; width: 100%; }
.qc2 .qc-locked { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.qc-right { display: grid; gap: 18px; align-content: start; min-width: 0; }
.qc2 .qc-head { text-align: left; justify-items: start; }
.qc2 .qc-head h1 { font-size: clamp(26px, 2.8vw, 36px); }
.qc2 .qc-ans { justify-items: stretch; }
.qc2 .qc-opts { grid-template-columns: 1fr; }
.qc2 .qc-opts.qc-chips { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 360px; overflow: auto; padding: 2px; }
.opt.chip { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 8px 38px 8px 10px; border-radius: 12px; }
.opt.chip b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt.chip::after { right: 11px; width: 18px; height: 18px; margin-top: -9px; }
.opt.chip .logo { flex: none; }
.qc-fields { display: grid; gap: 14px; }
.qc-fields .field > span { display: block; margin-bottom: 6px; }
.qc-fields .qcc-btn { justify-self: start; }
.qc-fields .qcc-panel { margin-top: 10px; width: 100%; }
.qc2 .qc-acc { width: 100%; }
.qc2 .qc-foot { width: 100%; }
.qc2 .qalt { text-align: left; }
@media (max-width: 900px) {
  .qc-grid { grid-template-columns: 1fr; }
  .qc-left { position: static; }
  .qc2 .qc-head { text-align: center; justify-items: center; }
  .qc2 .qalt { text-align: center; }
}.qc2 .qc-opts.qc-chips { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
@media (max-width: 600px) { .qc-prog i { width: 16px; } .qc-prog i.on { width: 26px; } .qc-prog span { margin-left: 4px; white-space: nowrap; } }

/* ===== Trader ID v4: identity in front, the profile behind ===== */

.tid-lgs { display: flex; flex-wrap: wrap; gap: 4px; }
.tid-lg { display: inline-grid; place-items: center; }
.tid-lg .logo { width: 22px; height: 22px; border-radius: 6px; font-size: 8px; }
.tid-lgs.many .tid-lg .logo { width: 16px; height: 16px; border-radius: 4px; }
.tid-lg.more { width: 22px; height: 22px; border-radius: 6px; font-size: 13px; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
/* the hologram strip: your username in tiny letters, in rainbow foil */

@keyframes tidHolo { to { background-position: 200% 0; } }
.tid-sig { height: 26px; max-width: 46%; display: flex; align-items: flex-end; }
.tid-sig i { font: italic 600 15px "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tid-sigsvg { height: 26px; width: auto; aspect-ratio: 300 / 90; }
.tid-sigsvg path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
/* back */

.tid-dna-svg { width: 112px; height: 112px; display: block; overflow: visible; }
.tid-dna-svg .ring { fill: none; stroke: currentColor; stroke-width: .5; opacity: .2; }
.tid-dna-svg .ax { stroke: currentColor; stroke-width: .5; opacity: .2; }
.tid-dna-svg .shape { fill: rgba(201,154,60,.35); stroke: #b8862b; stroke-width: 1.3; stroke-linejoin: round; transition: all .5s; }
.tid-dna-svg .dot { fill: #a87a1f; }
.tid-dna-svg text { font: 700 5.3px var(--sans); letter-spacing: .06em; fill: currentColor; opacity: .6; }
.tid-exp { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 6px; }
.tid-exp i { width: 14px; height: 5px; border-radius: 2px; background: currentColor; opacity: .16; }
.tid-exp i.on { background: #b8862b; opacity: 1; }
/* badges */
.tid-badges { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; width: 100%; }
.tid-badge { display: grid; justify-items: center; gap: 5px; padding: 10px 6px; border-radius: 14px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.tid-badge b { font-size: 11px; font-weight: 600; line-height: 1.25; color: var(--mut); }
.tid-bi { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); color: var(--mut); }
.tid-bi svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tid-badge.on .tid-bi { background: linear-gradient(145deg, #f6dc9c, #c99a3c 60%, #a87a1f); color: #2a1d05; box-shadow: 0 6px 14px -6px rgba(168,122,31,.6); }
.tid-badge.on b { color: var(--ink); }
.tid-modal .tid-badges { max-width: 460px; }
/* sign-up bits */
.qc-card .tid-flip { width: 100%; margin: 0; cursor: pointer; }
.qc-turn { margin: -6px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--mut); }
.qc-turn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.qc-sign { display: grid; gap: 8px; }
.qc-pad { width: 100%; aspect-ratio: 300 / 90; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line2); cursor: crosshair; touch-action: none;
  background-image: linear-gradient(transparent calc(78% - 1px), rgba(0,0,0,.12) calc(78% - 1px), rgba(0,0,0,.12) 78%, transparent 78%); }
.qc-pad-acts { display: flex; align-items: center; gap: 10px; }
.qc-pad-acts .sp { flex: 1; }
.qc-pad-acts .hint { margin: 0; }
.qc-pad-acts .btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 600px) { .tid-badges { grid-template-columns: repeat(5, minmax(56px, 1fr)); overflow-x: auto; } .tid-badge b { font-size: 10px; } }
@media (max-width: 900px) { .qc2 .tid-badges, .qc2 .qc-locked { display: none; } }
.tid .tid-f { justify-items: start; text-align: left; }
.tid-add { font-size: 9px; font-weight: 600; opacity: .55; font-style: italic; }
/* markets as ticker tags */

.tid-exp { margin-right: 0; }
.tid-exp i { width: 22px; height: 6px; }/* the front's foot: a gold contact chip and the ID number embossed in the metal */
/* the trader number, plain, like on an identity document */
/* back: capital and experience side by side, so the passport strip at the bottom has room */

/* the avatar with your photo (top bar and menu) */
.avatar.has-photo { padding: 0; overflow: hidden; }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
/* "My ID" in the user menu: a little card */
.menu .menu-id { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.mid-card { flex: none; width: 46px; height: 29px; border-radius: 5px; display: grid; place-items: center; position: relative; overflow: hidden;
  background: linear-gradient(125deg, #f7f8fa 0%, #b3b6be 30%, #eceef2 50%, #9da1aa 76%, #dfe1e6 100%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), 0 2px 5px rgba(0,0,0,.15); }
.mid-card .bmark { width: 14px; height: 14px; position: absolute; left: 5px; top: 5px; }
.mid-card i { position: absolute; left: 5px; right: 8px; bottom: 6px; height: 3px; border-radius: 2px; background: rgba(0,0,0,.18); }
.menu-id span:last-child { display: grid; gap: 1px; text-align: left; }
.menu-id b { font-size: 13.5px; }
.menu-id small { font: 600 11px ui-monospace, Consolas, monospace; letter-spacing: .06em; color: var(--mut); }
/* the card flying into the avatar after sign-up */
.card-fly { position: fixed; z-index: 2000; pointer-events: none; transform-origin: 0 0; will-change: transform, opacity; }
.card-fly .tid { box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.avatar.got-id { animation: gotId 1s cubic-bezier(.3,1.5,.5,1); }
@keyframes gotId { 0% { transform: scale(.6); box-shadow: 0 0 0 0 rgba(139,109,255,.7); } 45% { transform: scale(1.18); box-shadow: 0 0 0 10px rgba(139,109,255,0); } 100% { transform: none; box-shadow: 0 0 0 0 rgba(139,109,255,0); } }
/* ================= Glass: the app's surfaces as frosted glass over a soft scene (same layout, same colours) ================= */
/* the scene behind the glass: warm light with gold and silver glows (dark: charcoal with gold glows) */
html:has(.topbar) {
  --g-fill: rgba(255,255,255,.56); --g-rim: rgba(255,255,255,.78); --g-hi: rgba(255,255,255,.92); --g-lo: rgba(40,30,15,.09); --g-gloss: rgba(255,255,255,.5);
  --g-shadow: 0 1px 2px rgba(40,30,15,.05), 0 14px 36px -18px rgba(40,30,15,.28);
  --panel: rgba(255,255,255,.62); --panel2: rgba(255,255,255,.42); --bg2: rgba(40,30,15,.055); --line: rgba(40,30,15,.09); --line2: rgba(40,30,15,.14);
}
html[data-theme="dark"]:has(.topbar) {
  --g-fill: rgba(24,24,28,.52); --g-rim: rgba(255,255,255,.09); --g-hi: rgba(255,255,255,.14); --g-lo: rgba(0,0,0,.45); --g-gloss: rgba(255,255,255,.045);
  --g-shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 44px -20px rgba(0,0,0,.85);
  --panel: rgba(26,26,30,.6); --panel2: rgba(255,255,255,.05); --bg2: rgba(255,255,255,.07); --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.13);
}
html:has(.topbar) body {
  background:
    radial-gradient(55% 45% at 8% 6%, rgba(139,109,255,.30), transparent 62%),
    radial-gradient(45% 40% at 94% 12%, rgba(150,152,162,.34), transparent 64%),
    radial-gradient(60% 55% at 72% 100%, rgba(116,87,255,.22), transparent 62%),
    radial-gradient(50% 50% at 0% 96%, rgba(120,122,132,.26), transparent 62%),
    linear-gradient(160deg, #f1eee8, #e6e2db 55%, #eee9e0);
  background-attachment: fixed;
}
html[data-theme="dark"]:has(.topbar) body {
  background:
    radial-gradient(55% 45% at 8% 6%, rgba(139,109,255,.16), transparent 62%),
    radial-gradient(45% 40% at 94% 12%, rgba(140,142,160,.12), transparent 64%),
    radial-gradient(60% 55% at 72% 100%, rgba(116,87,255,.12), transparent 62%),
    linear-gradient(160deg, #0b0b0d, #131316 58%, #0e0d0b);
  background-attachment: fixed;
}
/* demo mode: the glows turn violet, like the rest of the demo accents */
html.demo-mode:has(.topbar) body {
  background:
    radial-gradient(55% 45% at 8% 6%, rgba(0,160,106,.26), transparent 62%),
    radial-gradient(45% 40% at 94% 12%, rgba(150,152,162,.3), transparent 64%),
    radial-gradient(60% 55% at 72% 100%, rgba(0,160,106,.18), transparent 62%),
    linear-gradient(160deg, #f0eef4, #e5e3ec 55%, #ecebf2);
  background-attachment: fixed;
}
html.demo-mode[data-theme="dark"]:has(.topbar) body {
  background:
    radial-gradient(55% 45% at 8% 6%, rgba(61,219,163,.16), transparent 62%),
    radial-gradient(60% 55% at 72% 100%, rgba(61,219,163,.1), transparent 62%),
    linear-gradient(160deg, #0b0b0f, #131318 58%, #0d0c12);
  background-attachment: fixed;
}
/* the glass itself: frosted fill, a bright rim, a light edge on top and a soft shade underneath */
html:has(.topbar) :is(.pn, .rail, .kpi, .card, .menu, .modal, .drawer, .dd-menu, .acc-detail) {
  background: linear-gradient(150deg, var(--g-gloss), transparent 32% 74%, var(--g-gloss)), var(--g-fill);
  border-color: var(--g-rim);
  box-shadow: inset 1px 1px 1px var(--g-hi), inset -1px -1px 1px var(--g-lo), var(--g-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(1.35); backdrop-filter: blur(18px) saturate(1.35);
}
html:has(.topbar) :is(.pn, .rail, .kpi) { border: 1px solid var(--g-rim); }
/* the top bar floats as glass too; the sections pill and the switches get the same rim */
html:has(.topbar) .topbar { background: linear-gradient(180deg, var(--g-gloss), transparent), color-mix(in srgb, var(--g-fill) 70%, transparent);
  border-bottom-color: var(--g-rim); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); }
html:has(.topbar) :is(.topnav, .viewsw, .themesw, [id="notes-btn"]) {
  background: linear-gradient(160deg, var(--g-gloss), transparent 40% 70%, var(--g-gloss)), var(--g-fill);
  box-shadow: inset 1px 1px 1px var(--g-hi), inset -1px -1px 1px var(--g-lo), 0 0 0 1px var(--g-rim), 0 8px 22px -14px rgba(40,30,15,.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35); backdrop-filter: blur(16px) saturate(1.35);
}
html[data-theme="dark"]:has(.topbar) :is(.topnav, .viewsw, .themesw, [id="notes-btn"]) { box-shadow: inset 1px 1px 1px var(--g-hi), inset -1px -1px 1px var(--g-lo), 0 0 0 1px var(--g-rim), 0 8px 22px -14px rgba(0,0,0,.8); }
/* glass is not for everyone: less transparency or more contrast gets solid panels */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  html:has(.topbar) { --g-fill: #ffffff; --panel: #ffffff; --panel2: #f7f7f5; }
  html[data-theme="dark"]:has(.topbar) { --g-fill: #111113; --panel: #111113; --panel2: #18181b; }
  html:has(.topbar) :is(.pn, .rail, .kpi, .card, .menu, .modal, .drawer, .dd-menu, .acc-detail, .topbar, .topnav, .viewsw, .themesw, [id="notes-btn"]) { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* ===== Glass, stronger: bolder scene behind, clearer glass in front ===== */
html:has(.topbar) {
  --g-fill: rgba(255,255,255,.34); --g-rim: rgba(255,255,255,.85); --g-hi: rgba(255,255,255,.95); --g-lo: rgba(60,40,15,.14); --g-gloss: rgba(255,255,255,.55);
  --g-shadow: 0 1px 2px rgba(60,40,15,.08), 0 22px 50px -22px rgba(60,40,15,.45);
  --panel: rgba(255,255,255,.42); --panel2: rgba(255,255,255,.3);
}
html[data-theme="dark"]:has(.topbar) {
  --g-fill: rgba(18,18,22,.38); --g-rim: rgba(255,255,255,.14); --g-hi: rgba(255,255,255,.2); --g-lo: rgba(0,0,0,.55); --g-gloss: rgba(255,255,255,.07);
  --g-shadow: 0 1px 2px rgba(0,0,0,.5), 0 24px 56px -22px rgba(0,0,0,.9);
  --panel: rgba(22,22,26,.44); --panel2: rgba(255,255,255,.06);
}
html:has(.topbar) body {
  background:
    radial-gradient(38% 34% at 12% 14%, rgba(224,170,70,.75), transparent 70%),
    radial-gradient(30% 30% at 88% 8%, rgba(70,72,84,.55), transparent 70%),
    radial-gradient(42% 38% at 78% 62%, rgba(196,140,70,.6), transparent 70%),
    radial-gradient(36% 36% at 22% 88%, rgba(90,92,104,.45), transparent 70%),
    radial-gradient(28% 26% at 50% 40%, rgba(255,236,196,.8), transparent 72%),
    linear-gradient(160deg, #e9dfcf, #d9cdb9 50%, #e3d6c2);
  background-attachment: fixed;
}
html[data-theme="dark"]:has(.topbar) body {
  background:
    radial-gradient(38% 34% at 12% 14%, rgba(224,170,70,.38), transparent 70%),
    radial-gradient(30% 30% at 88% 8%, rgba(120,124,150,.22), transparent 70%),
    radial-gradient(42% 38% at 78% 62%, rgba(196,140,70,.3), transparent 70%),
    radial-gradient(36% 36% at 22% 88%, rgba(110,112,130,.18), transparent 70%),
    linear-gradient(160deg, #0d0c0b, #17150f 50%, #0f0e0c);
  background-attachment: fixed;
}
html.demo-mode:has(.topbar) body {
  background:
    radial-gradient(38% 34% at 12% 14%, rgba(0,160,106,.6), transparent 70%),
    radial-gradient(30% 30% at 88% 8%, rgba(70,72,84,.45), transparent 70%),
    radial-gradient(42% 38% at 78% 62%, rgba(110,227,184,.5), transparent 70%),
    radial-gradient(28% 26% at 50% 40%, rgba(232,248,240,.8), transparent 72%),
    linear-gradient(160deg, #e4e0f0, #d6d1e6 50%, #e0dcee);
  background-attachment: fixed;
}
html.demo-mode[data-theme="dark"]:has(.topbar) body {
  background:
    radial-gradient(38% 34% at 12% 14%, rgba(0,160,106,.32), transparent 70%),
    radial-gradient(42% 38% at 78% 62%, rgba(110,227,184,.24), transparent 70%),
    linear-gradient(160deg, #0c0b12, #15131f 50%, #0e0d15);
  background-attachment: fixed;
}
html:has(.topbar) :is(.pn, .rail, .kpi, .card, .menu, .modal, .drawer, .dd-menu, .acc-detail) {
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
}
html:has(.topbar) :is(.pn, .rail, .kpi) { border-radius: 24px; }
html:has(.topbar) .topbar { background: linear-gradient(180deg, var(--g-gloss), transparent), color-mix(in srgb, var(--g-fill) 60%, transparent); }
/* ================= 60 / 30 / 10: cream glass 60%, black 30%, gold 10% ================= */
/* 10%: gold only where it must stand out — the main buttons and the section you are in (violet in demo) */
html:has(.topbar) { --cta-ink: #ffffff; }
html.demo-mode:has(.topbar) { --cta-ink: #fff; }
html:has(.topbar) .btn.pri { background: linear-gradient(110deg, var(--brand-2), var(--brand) 55%, color-mix(in srgb, var(--brand) 80%, #000)); border-color: transparent; color: var(--cta-ink);
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--brand) 85%, transparent), inset 0 1px 0 rgba(255,255,255,.35); }
html:has(.topbar) .btn.pri:hover { background: linear-gradient(110deg, var(--brand-2), var(--brand)); filter: brightness(1.06); }
html:has(.topbar) .btn.pri svg { stroke: currentColor; }
/* 30%: black — the top bar and the big P&L panel (light theme; the dark theme is already black) */
html:not([data-theme="dark"]):has(.topbar) .topbar {
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent), rgba(14,14,16,.84); border-bottom-color: rgba(255,255,255,.08); }
html:not([data-theme="dark"]):has(.topbar) .topbar .bname { color: #f5f5f3; }
html:has(.topbar) .topbar .topnav { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
html:not([data-theme="dark"]):has(.topbar) .topbar .topnav a { color: rgba(245,245,243,.72); }
html:not([data-theme="dark"]):has(.topbar) .topbar .topnav a:hover:not(.on) { color: #fff; background: rgba(255,255,255,.08); }
html:has(.topbar) .topbar .topnav .tn-ind { background: linear-gradient(110deg, var(--brand-2), var(--brand)); box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--brand) 80%, transparent); }
html:has(.topbar) .topbar .topnav a.on { color: var(--cta-ink); }
html:not([data-theme="dark"]):has(.topbar) .hero-pnl {
  --ink: #f5f5f3; --ink2: #d2d2d6; --mut: #a1a1a9; --dim: #85858d; --on-ink: #0a0a0b; --up: #f5f5f3;
  --panel: rgba(255,255,255,.07); --panel2: rgba(255,255,255,.08); --bg2: rgba(255,255,255,.08); --line: rgba(255,255,255,.1); --line2: rgba(255,255,255,.16);
  color: var(--ink); background: linear-gradient(150deg, rgba(255,255,255,.08), transparent 35% 70%, rgba(255,255,255,.05)), rgba(14,14,16,.86);
  border: 1px solid rgba(255,255,255,.1); box-shadow: inset 1px 1px 1px rgba(255,255,255,.12), 0 24px 60px -24px rgba(20,14,6,.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); }/* the black top bar: everything inside it uses the dark palette, so the switches and buttons read on it */
html:not([data-theme="dark"]):has(.topbar) .topbar {
  --ink: #f5f5f3; --on-ink: #0a0a0b; --ink2: #d2d2d6; --mut: #a1a1a9; --dim: #85858d;
  --panel: rgba(255,255,255,.07); --panel2: rgba(255,255,255,.1); --bg2: rgba(255,255,255,.08); --line: rgba(255,255,255,.1); --line2: rgba(255,255,255,.16);
  --g-fill: rgba(255,255,255,.07); --g-gloss: rgba(255,255,255,.06); --g-rim: rgba(255,255,255,.12); --g-hi: rgba(255,255,255,.14); --g-lo: rgba(0,0,0,.4);
  color: var(--ink);
}
/* ================= Colour palettes to try (60 / 30 / 10). Default: cream + black + gold ================= */
/* Navy: cream #F4EDE0 60% · navy #14213D 30% · coral #FF6B5B 10% */
html[data-pal="navy"]:not([data-theme="dark"]):has(.topbar) {
  --brand: #FF6B5B; --brand-2: #ff8f82; --brand-bg: rgba(255,107,91,.14); --brand-ink: #c8463a; --cta-ink: #14213D;
  --ink: #14213D; --ink2: #2c3a5a; --mut: #56627c; --dim: #6d7891; --up: #14213D;
  --g-fill: rgba(250,246,238,.4); --panel: rgba(250,246,238,.5); --panel2: rgba(250,246,238,.34); --bg2: rgba(20,33,61,.06); --line: rgba(20,33,61,.1); --line2: rgba(20,33,61,.15);
  --pal-30: 20,33,61;
}
html[data-pal="navy"]:not([data-theme="dark"]):has(.topbar) body {
  background:
    radial-gradient(38% 34% at 12% 14%, rgba(255,107,91,.42), transparent 70%),
    radial-gradient(32% 32% at 88% 8%, rgba(20,33,61,.45), transparent 70%),
    radial-gradient(42% 38% at 78% 64%, rgba(255,150,120,.32), transparent 70%),
    radial-gradient(38% 38% at 22% 90%, rgba(20,33,61,.3), transparent 70%),
    radial-gradient(30% 28% at 50% 40%, rgba(255,250,240,.85), transparent 72%),
    linear-gradient(160deg, #f4ede0, #ece2d0 55%, #f2e9da);
  background-attachment: fixed;
}
/* Forest: sand #E8DCC4 60% · forest green #1F3D2B 30% · electric purple #8B5CF6 10% */
html[data-pal="forest"]:not([data-theme="dark"]):has(.topbar) {
  --brand: #8B5CF6; --brand-2: #a98bfa; --brand-bg: rgba(139,92,246,.14); --brand-ink: #6d3fe0; --cta-ink: #ffffff;
  --ink: #1F3D2B; --ink2: #34523f; --mut: #5c6f62; --dim: #728476; --up: #1F3D2B;
  --g-fill: rgba(240,232,215,.4); --panel: rgba(240,232,215,.5); --panel2: rgba(240,232,215,.34); --bg2: rgba(31,61,43,.06); --line: rgba(31,61,43,.1); --line2: rgba(31,61,43,.15);
  --pal-30: 31,61,43;
}
html[data-pal="forest"]:not([data-theme="dark"]):has(.topbar) body {
  background:
    radial-gradient(38% 34% at 12% 14%, rgba(139,92,246,.36), transparent 70%),
    radial-gradient(32% 32% at 88% 8%, rgba(31,61,43,.45), transparent 70%),
    radial-gradient(42% 38% at 78% 64%, rgba(170,140,250,.28), transparent 70%),
    radial-gradient(38% 38% at 22% 90%, rgba(31,61,43,.32), transparent 70%),
    radial-gradient(30% 28% at 50% 40%, rgba(250,244,230,.85), transparent 72%),
    linear-gradient(160deg, #e8dcc4, #dccfb3 55%, #e6d9bf);
  background-attachment: fixed;
}
/* the 30% colour takes the place of black: top bar and the big P&L panel */
html[data-pal]:not([data-pal="gold"]):not([data-theme="dark"]):has(.topbar) .topbar {
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent), rgba(var(--pal-30), .9); }
html[data-pal]:not([data-pal="gold"]):not([data-theme="dark"]):has(.topbar) .topbar { --ink: #f7f2e8; --on-ink: rgb(var(--pal-30)); }
html[data-pal]:not([data-pal="gold"]):not([data-theme="dark"]):has(.topbar) .hero-pnl {
  --ink: #f7f2e8; --up: #f7f2e8; --on-ink: rgb(var(--pal-30));
  background: linear-gradient(150deg, rgba(255,255,255,.1), transparent 35% 70%, rgba(255,255,255,.05)), rgba(var(--pal-30), .9); }
html[data-pal]:not([data-pal="gold"]):has(.topbar) .topbar .topnav a.on { color: var(--cta-ink); }
/* dark theme: the 30% colour becomes the deep background, the accent stays */
html[data-pal="navy"][data-theme="dark"]:has(.topbar) { --brand: #FF6B5B; --brand-2: #ff8f82; --brand-bg: rgba(255,107,91,.16); --brand-ink: #ff8f82; --cta-ink: #14213D; --pal-30: 20,33,61; }
html[data-pal="forest"][data-theme="dark"]:has(.topbar) { --brand: #8B5CF6; --brand-2: #a98bfa; --brand-bg: rgba(139,92,246,.18); --brand-ink: #a98bfa; --cta-ink: #fff; --pal-30: 31,61,43; }
html[data-pal="navy"][data-theme="dark"]:has(.topbar) body { background: radial-gradient(40% 36% at 12% 14%, rgba(255,107,91,.2), transparent 70%), radial-gradient(42% 38% at 78% 64%, rgba(255,140,110,.14), transparent 70%), linear-gradient(160deg, #0c1428, #14213D 55%, #0e172d); background-attachment: fixed; }
html[data-pal="forest"][data-theme="dark"]:has(.topbar) body { background: radial-gradient(40% 36% at 12% 14%, rgba(139,92,246,.2), transparent 70%), radial-gradient(42% 38% at 78% 64%, rgba(170,140,250,.14), transparent 70%), linear-gradient(160deg, #0e1d14, #1F3D2B 55%, #10211a); background-attachment: fixed; }
/* the palette picker in the avatar menu */
.menu .pals { display: flex; align-items: center; gap: 8px; padding: 8px 12px 10px; border-top: 1px solid var(--line); }
.menu .pals span { flex: 1; font-size: 12px; color: var(--mut); }
.menu .pals button { width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 2px solid transparent; cursor: pointer; display: grid; place-items: center; background: none; }
.menu .pals button.on { border-color: var(--ink); }
.menu .pals i { width: 22px; height: 22px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
/* ================= Real = black and gold · Demo = navy and cream · losses in coral ================= */
/* losses: wine red in Real (as before), coral in Demo (a deeper coral for text, so it stays readable on light) */
html.demo-mode { --dn: #00a06a; --dn-fill: #00c281; --dn-bg: rgba(0,194,129,.13); }
html.demo-mode[data-theme="dark"] { --dn: #33d69c; --dn-fill: #00c281; --dn-bg: rgba(0,194,129,.16); }
/* Demo: navy #14213D is the strong colour, cream #F4EDE0 the light one */
html.demo-mode { --brand: #0f2a22; --brand-2: #1d4a3b; --brand-bg: rgba(15,42,34,.09); --brand-ink: #0f2a22; --acc: #0f2a22; }
html.demo-mode[data-theme="dark"] { --brand: #3ddba3; --brand-2: #8fe9c6; --brand-bg: rgba(61,219,163,.14); --brand-ink: #8fe9c6; --acc: #3ddba3; }
html.demo-mode:has(.topbar) { --cta-ink: #eef6f1; }
html.demo-mode[data-theme="dark"]:has(.topbar) { --cta-ink: #0f2a22; }
html.demo-mode:not([data-theme="dark"]):has(.topbar) body {
  background:
    radial-gradient(38% 34% at 12% 14%, rgba(15,42,34,.38), transparent 70%),
    radial-gradient(32% 32% at 88% 8%, rgba(40,110,90,.32), transparent 70%),
    radial-gradient(42% 38% at 78% 64%, rgba(15,42,34,.26), transparent 70%),
    radial-gradient(30% 28% at 50% 40%, rgba(244,251,247,.85), transparent 72%),
    linear-gradient(160deg, #eef6f1, #e1eee7 55%, #ebf4ef);
  background-attachment: fixed;
}
html.demo-mode[data-theme="dark"]:has(.topbar) body {
  background: radial-gradient(40% 36% at 12% 14%, rgba(60,150,120,.22), transparent 70%), radial-gradient(42% 38% at 78% 64%, rgba(50,130,105,.16), transparent 70%), linear-gradient(160deg, #0a1d17, #0f2a22 55%, #0c211a);
  background-attachment: fixed;
}
html.demo-mode:not([data-theme="dark"]):has(.topbar) { --g-fill: rgba(240,248,244,.4); --panel: rgba(240,248,244,.5); --panel2: rgba(240,248,244,.34); }
/* the navy top bar and P&L panel in demo; its main buttons are navy with cream text */
html.demo-mode:not([data-theme="dark"]):has(.topbar) .topbar { background: linear-gradient(180deg, rgba(255,255,255,.06), transparent), rgba(15,42,34,.92); }
html.demo-mode:not([data-theme="dark"]):has(.topbar) .hero-pnl { background: linear-gradient(150deg, rgba(255,255,255,.1), transparent 35% 70%, rgba(255,255,255,.05)), rgba(15,42,34,.9); }
html.demo-mode:has(.topbar) .btn.pri { background: linear-gradient(110deg, #1d4a3b, #0f2a22); color: #eef6f1; box-shadow: 0 10px 24px -12px rgba(15,42,34,.7), inset 0 1px 0 rgba(255,255,255,.18); }
html.demo-mode:has(.topbar) .hero-pnl .btn.pri, html.demo-mode[data-theme="dark"]:has(.topbar) .btn.pri { background: linear-gradient(110deg, #ffffff, #eef6f1); color: #0f2a22; }
/* in the navy bar the selected section is a cream pill with a navy icon */
html.demo-mode:has(.topbar) .topbar .topnav .tn-ind { background: #eef6f1; box-shadow: 0 8px 18px -8px rgba(0,0,0,.5); }
html.demo-mode:has(.topbar) .topbar .topnav a.on, html.demo-mode:has(.topbar) .topbar .topnav a.on svg { color: #0f2a22; }
html.demo-mode:has(.topbar) .topbar .avatar { box-shadow: 0 0 0 2px #eef6f1; }
/* the selected section's icon always reads on its pill */
html:has(.topbar) .topbar .topnav a.on, html:has(.topbar) .topbar .topnav a.on svg { color: var(--cta-ink); stroke: currentColor; opacity: 1; }
html:has(.topbar) .topbar .topnav a.on svg { stroke-width: 2.2; }
/* the day panel: its first line no longer sits on the edge */
.rail .day { padding-top: 14px; }
/* the win-rate card before any trade */
.wr-zero .wr-bar .b { background: var(--bg2); }
.wr-zero .kv-wait { font-size: var(--fs-xs); }/* demo: what sat in violet goes cream on the navy bar and panel */
.viewsw.demo::before { background: #eef6f1; }
.viewsw.demo button.on { color: #0f2a22; }
:root[data-theme="dark"] .viewsw.demo::before { background: #3ddba3; }
html.demo-mode:has(.topbar) .topbar, html.demo-mode:has(.topbar) .hero-pnl { --brand: #8fe9c6; --brand-2: #d2f6e7; --brand-ink: #8fe9c6; --brand-bg: rgba(143,233,198,.14); }
html.demo-mode:has(.topbar) .acc-it .ph.demo { background: rgba(15,42,34,.1); color: #0f2a22; }
html.demo-mode[data-theme="dark"]:has(.topbar) .acc-it .ph.demo { background: rgba(61,219,163,.16); color: #8fe9c6; }
/* ================= Demo: navy 30% · cream 60% · coral 10% (coral takes every place violet had) ================= */
html.demo-mode { --brand: #00c281; --brand-2: #3ddba3; --brand-bg: rgba(0,194,129,.14); --brand-ink: #008a5c; --acc: #00c281; }
html.demo-mode[data-theme="dark"] { --brand: #00c281; --brand-2: #3ddba3; --brand-bg: rgba(0,194,129,.16); --brand-ink: #3ddba3; --acc: #00c281; }
html.demo-mode:has(.topbar), html.demo-mode[data-theme="dark"]:has(.topbar) { --cta-ink: #0f2a22; }
html.demo-mode:has(.topbar) .btn.pri, html.demo-mode:has(.topbar) .hero-pnl .btn.pri, html.demo-mode[data-theme="dark"]:has(.topbar) .btn.pri {
  background: linear-gradient(110deg, #3ddba3, #00c281 55%, #00a36c); color: #0f2a22; box-shadow: 0 10px 24px -12px rgba(0,194,129,.75), inset 0 1px 0 rgba(255,255,255,.35); }
html.demo-mode:has(.topbar) .topbar .topnav .tn-ind { background: linear-gradient(110deg, #3ddba3, #00c281); box-shadow: 0 8px 18px -8px rgba(0,194,129,.7); }
html.demo-mode:has(.topbar) .topbar .topnav a.on, html.demo-mode:has(.topbar) .topbar .topnav a.on svg { color: #0f2a22; }
html.demo-mode:has(.topbar) .topbar, html.demo-mode:has(.topbar) .hero-pnl { --brand: #3ddba3; --brand-2: #8fe9c6; --brand-ink: #3ddba3; --brand-bg: rgba(61,219,163,.16); }
html.demo-mode:has(.topbar) .topbar .avatar { box-shadow: 0 0 0 2px #00c281; }
.viewsw.demo::before, :root[data-theme="dark"] .viewsw.demo::before { background: #00c281; }
.viewsw.demo button.on { color: #0f2a22; }
html.demo-mode:has(.topbar) .acc-it .ph.demo { background: rgba(0,194,129,.14); color: #008a5c; }
html.demo-mode[data-theme="dark"]:has(.topbar) .acc-it .ph.demo { background: rgba(0,194,129,.18); color: #3ddba3; }
html.demo-mode:not([data-theme="dark"]):has(.topbar) body {
  background:
    radial-gradient(38% 34% at 12% 14%, rgba(15,42,34,.36), transparent 70%),
    radial-gradient(32% 32% at 88% 8%, rgba(0,194,129,.3), transparent 70%),
    radial-gradient(42% 38% at 78% 64%, rgba(15,42,34,.24), transparent 70%),
    radial-gradient(30% 28% at 50% 40%, rgba(244,251,247,.85), transparent 72%),
    linear-gradient(160deg, #eef6f1, #e1eee7 55%, #ebf4ef);
  background-attachment: fixed;
}
/* the main buttons: plain gold, no glow (coral in demo) — the accent without shouting */
html:has(.topbar) .btn.pri, html:has(.topbar) .hero-pnl .btn.pri { background: var(--brand); color: var(--cta-ink); border-color: transparent; box-shadow: 0 1px 2px rgba(0,0,0,.12); filter: none; }
html:has(.topbar) .btn.pri:hover { background: color-mix(in srgb, var(--brand) 88%, #000); filter: none; }
html.demo-mode:has(.topbar) .btn.pri, html.demo-mode:has(.topbar) .hero-pnl .btn.pri, html.demo-mode[data-theme="dark"]:has(.topbar) .btn.pri { background: #00c281; color: #0f2a22; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
html.demo-mode:has(.topbar) .btn.pri:hover { background: #00b077; }
html:has(.topbar) .topbar .topnav .tn-ind { background: var(--brand); box-shadow: none; }
html.demo-mode:has(.topbar) .topbar .topnav .tn-ind { background: #00c281; box-shadow: none; }
.score-what { margin: -4px 0 14px; font-size: var(--fs-sm); }
/* the score in the middle of its ring */
.score .big b { display: grid; place-items: center; line-height: 1; }
.score .big b .sv { display: inline-flex; align-items: baseline; gap: 1px; font-size: 34px; }
.score .big b .of100 { font-size: 12px; }

/* light/dark: one round glass button (moon = go dark, sun = go light), same height as the switches beside it */
.themebtn { position: relative; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px; display: inline-grid; place-items: center; cursor: pointer;
  color: var(--ink); background: var(--panel); box-shadow: 0 0 0 1px var(--line2); transition: background-color .25s ease, transform .2s ease; }
.themebtn svg { grid-area: 1 / 1; width: 18px; height: 18px; stroke: currentColor; fill: currentColor; fill-opacity: .16; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: opacity .4s ease, transform .55s cubic-bezier(.3,.7,.2,1); }
.themebtn.light svg:last-child { opacity: 0; transform: rotate(90deg) scale(.4); }
.themebtn.dark svg:first-child { opacity: 0; transform: rotate(-90deg) scale(.4); }
.themebtn:active { transform: scale(.94); }
.themebtn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
html:has(.topbar) .themebtn {
  background: linear-gradient(160deg, var(--g-gloss), transparent 40% 70%, var(--g-gloss)), var(--g-fill);
  box-shadow: inset 1px 1px 1px var(--g-hi), inset -1px -1px 1px var(--g-lo), 0 0 0 1px var(--g-rim), 0 8px 22px -14px rgba(40,30,15,.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35); backdrop-filter: blur(16px) saturate(1.35); }
html[data-theme="dark"]:has(.topbar) .themebtn { box-shadow: inset 1px 1px 1px var(--g-hi), inset -1px -1px 1px var(--g-lo), 0 0 0 1px var(--g-rim), 0 8px 22px -14px rgba(0,0,0,.8); }
html:has(.topbar) .themebtn:hover { background: linear-gradient(160deg, var(--g-gloss), transparent 40% 70%, var(--g-gloss)), color-mix(in srgb, var(--ink) 9%, var(--g-fill)); }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) { html:has(.topbar) .themebtn { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--panel); } }
@media (prefers-reduced-motion: reduce) { .themebtn svg { transition: none; } }
@media (max-width: 380px) { .themebtn { width: 34px; height: 34px; } .themebtn svg { width: 16px; height: 16px; } }
/* light/dark switch: the new look grows in a circle from the button (the circle itself is animated from design.js) */
html.theme-vt::view-transition-old(root), html.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-vt::view-transition-old(root) { z-index: 1; }
html.theme-vt::view-transition-new(root) { z-index: 2; }
/* ===== Earlier Trader ID designs, kept to compare (chosen in "My Trader ID") ===== */


/* choosing the design in "My Trader ID" */
.tid-dsw { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tid-dsw button { font: 600 12px/1 var(--sans); padding: 7px 11px; border-radius: 999px; border: 0; cursor: pointer; background: var(--bg2); color: var(--ink2); }
.tid-dsw button.on { background: var(--ink); color: var(--on-ink); }.tid-cardbox { width: 100%; }
/* sign-up: with 6 logos picked, the other firm / platform chips look full */
.qc-chips .opt.full { opacity: .42; }
/* options you added (or the default ones) can be taken off their list: a small × on the chip */
.chw { position: relative; display: inline-flex; }
.ch-x { position: absolute; top: -6px; right: -6px; z-index: 1; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--ink); color: var(--on-ink); box-shadow: 0 0 0 2px var(--panel); opacity: 0; transform: scale(.7); transition: opacity .15s, transform .15s; }
.ch-x svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.chw:hover .ch-x, .chw:focus-within .ch-x, .ch-x:focus-visible { opacity: 1; transform: none; }
.ch-x:hover { background: #b3161d; color: #fff; }
@media (hover: none) { .ch-x { opacity: .9; transform: none; } }
/* ===== the owl: logo (.owl-mark) and mascot (.owl) ===== */
.owl { display: block; overflow: visible; }
.owl .ow-shadow { fill: rgba(40,20,120,.16); transform-box: fill-box; transform-origin: center; }
[data-theme="dark"] .owl .ow-shadow { fill: rgba(0,0,0,.45); }
.owl .ow-all { transform-box: view-box; transform-origin: 60px 104px; }
.owl.bob .ow-all { animation: owBob 3.6s ease-in-out infinite; }
.owl.bob .ow-shadow { animation: owShadow 3.6s ease-in-out infinite; }
@keyframes owBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.4px); } }
@keyframes owShadow { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.9); opacity: .75; } }
.owl .ow-pupil { transform: translate(var(--gx, 0px), var(--gy, 0px)); transition: transform .2s ease-out; }
.owl .ow-lid, .owl-mark .om-lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); }
.owl .ow-lid { animation: owBlink 5.6s infinite; }
.owl .ow-eye:last-child .ow-lid { animation-delay: .03s; }
@keyframes owBlink { 0%, 92.5%, 100% { transform: scaleY(0); } 95.5% { transform: scaleY(1); } }
.owl .ow-eye, .owl .ow-wing { transition: opacity .22s ease; }
.owl .ow-m { opacity: 0; transition: opacity .25s ease, transform .4s cubic-bezier(.34,1.56,.64,1); }
.owl[data-mood="happy"] .ow-m-happy, .owl[data-mood="sleep"] .ow-m-sleep, .owl[data-mood="sad"] .ow-m-sad,
.owl[data-mood="wow"] .ow-m-wow, .owl[data-mood="oops"] .ow-m-oops { opacity: 1; }
.owl[data-mood="happy"] .ow-eye, .owl[data-mood="sleep"] .ow-eye { opacity: 0; }
.owl[data-mood="sad"] .ow-pupil { transform: translate(calc(var(--gx, 0px) * .5), 3px); }
.owl[data-mood="sad"] .ow-lid { animation: none; transform: scaleY(.38); }
.owl[data-mood="wow"] .ow-pupil { transform: translate(var(--gx, 0px), var(--gy, 0px)) scale(1.22); transform-box: fill-box; transform-origin: center; }
.owl[data-mood="oops"] .ow-wing { opacity: 0; }
.owl .ow-m-oops { transform: translateY(16px); transform-box: view-box; }
.owl[data-mood="oops"] .ow-m-oops { transform: none; }
.owl[data-mood="sleep"] .ow-all { animation-duration: 5.2s; }
.owl .ow-z { font: 800 13px/1 var(--sans); opacity: 0; transform-box: fill-box; }
.owl[data-mood="sleep"] .ow-z { animation: owZ 2.8s ease-in-out infinite; }
.owl[data-mood="sleep"] .ow-z.z2 { font-size: 10px; animation-delay: 1.4s; }
@keyframes owZ { 0% { opacity: 0; transform: translate(0, 5px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(7px, -9px); } }
.owl.hop { animation: owHop .6s cubic-bezier(.34,1.56,.64,1); }
@keyframes owHop { 0% { transform: none; } 30% { transform: translateY(-9%) scale(1.04, .96); } 62% { transform: translateY(0) scale(.97, 1.03); } 100% { transform: none; } }
.owl.pop { animation: owPop .75s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes owPop { 0% { opacity: 0; transform: translateY(14px) scale(.6); } 100% { opacity: 1; transform: none; } }

/* the logo: blinks now and then, and tilts its head and blinks when you point at it */
.owl-mark .om-head { transform-box: view-box; transform-origin: 50px 62px; transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
:is(.brand, .brandlink, .lp-brand) .owl-mark .om-lid { animation: owBlink 7.5s 2.2s infinite; }
:is(.brand, .brandlink):hover .owl-mark .om-head { transform: rotate(-9deg); }
:is(.brand, .brandlink):hover .owl-mark .om-lid { animation: owBlinkOnce .38s ease-in-out; }
@keyframes owBlinkOnce { 0%, 100% { transform: scaleY(0); } 50% { transform: scaleY(1); } }
:is(.brand, .brandlink) .bmark { filter: drop-shadow(0 4px 12px rgba(108,75,255,.35)); }

@media (prefers-reduced-motion: reduce) {
  .owl *, .owl, .owl-mark * { animation: none !important; transition: none !important; }
}
/* the owl brand: Real mode's backdrop goes from warm gold to a cool neutral with violet light (Demo keeps navy and coral) */
html:has(.topbar) {
  --g-lo: rgba(10,60,45,.12);
  --g-shadow: 0 1px 2px rgba(10,60,45,.08), 0 22px 50px -22px rgba(10,60,45,.4);
}
html:has(.topbar) body {
  background:
    radial-gradient(38% 34% at 12% 14%, rgba(108,75,255,.42), transparent 70%),
    radial-gradient(30% 30% at 88% 8%, rgba(74,76,96,.4), transparent 70%),
    radial-gradient(42% 38% at 80% 64%, rgba(139,109,255,.34), transparent 70%),
    radial-gradient(26% 24% at 64% 30%, rgba(255,176,32,.14), transparent 70%),
    radial-gradient(36% 36% at 22% 88%, rgba(96,98,118,.3), transparent 70%),
    radial-gradient(28% 26% at 50% 40%, rgba(246,244,255,.85), transparent 72%),
    linear-gradient(160deg, #eceaf4, #dfdcec 50%, #e9e7f2);
  background-attachment: fixed;
}
html[data-theme="dark"]:has(.topbar) body {
  background:
    radial-gradient(38% 34% at 12% 14%, rgba(108,75,255,.3), transparent 70%),
    radial-gradient(30% 30% at 88% 8%, rgba(120,124,160,.16), transparent 70%),
    radial-gradient(42% 38% at 80% 64%, rgba(139,109,255,.2), transparent 70%),
    radial-gradient(26% 24% at 64% 30%, rgba(255,176,32,.06), transparent 70%),
    linear-gradient(160deg, #0c0b13, #13111f 50%, #0d0c15);
  background-attachment: fixed;
}
/* "Your day": the owl next to today's P&L, and what it says under it (a speech bubble pointing up at it) */
.day-pnl.day-pnl-owl { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0 8px; }
.day-pnl-owl > div { display: grid; gap: 2px; min-width: 0; }
.day-owl { width: 68px; height: 68px; margin: -10px -4px -6px 0; }
.day-owl .owl { width: 100%; height: 100%; }
.day-say { position: relative; margin: 6px 0 0; padding: 8px 11px; border-radius: 12px; font-size: 12.5px; line-height: 1.35; font-weight: 500;
  color: #3a22b8; background: rgba(108,75,255,.1); box-shadow: inset 0 0 0 1px rgba(108,75,255,.16); animation: daySay .5s .25s cubic-bezier(.34,1.56,.64,1) both; }
.day-say::before { content: ""; position: absolute; top: -6px; right: 30px; width: 11px; height: 11px; background: inherit; box-shadow: inset 1px 1px 0 rgba(108,75,255,.16); transform: rotate(45deg); border-radius: 2px; }
.day-say.sad, .day-say.oops { color: #4325c4; background: rgba(108,75,255,.1); box-shadow: inset 0 0 0 1px rgba(108,75,255,.18); }
.day-say.sad::before, .day-say.oops::before { box-shadow: inset 1px 1px 0 rgba(108,75,255,.18); }
[data-theme="dark"] .day-say { color: #c9bcff; background: rgba(139,109,255,.14); }
[data-theme="dark"] .day-say.sad, [data-theme="dark"] .day-say.oops { color: #c9bcff; background: rgba(139,109,255,.13); }
@keyframes daySay { from { opacity: 0; transform: translateY(-6px) scale(.96); } to { opacity: 1; transform: none; } }
html.demo-mode .day-say:not(.sad):not(.oops) { color: #0f2a22; background: rgba(0,194,129,.12); box-shadow: inset 0 0 0 1px rgba(0,194,129,.2); }
@media (prefers-reduced-motion: reduce) { .day-say { animation: none; } }
/* landing: the owl perched on the stats card (asleep in grey, awake in colour); a click makes it go "wow" */
.ph-stats { position: relative; }
.ph-owl { position: absolute; right: .5em; top: -4.6em; width: 5.4em; height: 5.4em; cursor: pointer; z-index: 2; }
.ph-owl .owl { width: 100%; height: 100%; }
.ph-owl:hover .owl:not(.hop) { transform: rotate(-6deg); transition: transform .35s cubic-bezier(.34,1.56,.64,1); }.ph-owl { right: auto; left: -.9em; top: -4.5em; }
.sc-real { color: #b4a3ff; }
/* landing band: the owl pops up over the title, eyes covered, and opens them a moment later */
.band-owl { display: block; width: 96px; height: 96px; margin: 0 auto 6px; opacity: 0; transform: translateY(18px) scale(.8); transition: opacity .5s ease, transform .7s cubic-bezier(.34,1.56,.64,1); }
.band-owl.in { opacity: 1; transform: none; }
.band-owl .owl { width: 100%; height: 100%; }
.band-owl .owl .ow-shadow { fill: rgba(0,0,0,.5); }
@media (prefers-reduced-motion: reduce) { .band-owl { opacity: 1; transform: none; transition: none; } }html.demo-mode[data-theme="dark"] .day-say:not(.sad):not(.oops) { color: #d2f6e7; background: rgba(0,194,129,.14); }

/* sign-up and sign-in: the owl guide next to the question */
.qc-head { position: relative; padding-right: 78px; }
.qc-owl { position: absolute; right: -6px; top: -14px; width: 76px; height: 76px; }
.qhead-owl { position: relative; padding-top: 70px; text-align: center; }
.auth-owl { position: absolute; left: 50%; top: -6px; width: 78px; height: 78px; transform: translateX(-50%); }
.qc-owl .owl, .auth-owl .owl, .empty-owl .owl, .owl-load .owl { width: 100%; height: 100%; }
@media (max-width: 560px) { .qc-head { padding-right: 60px; } .qc-owl { width: 58px; height: 58px; top: -8px; } }

/* empty pages: a small owl above the message */
.empty-owl { display: block; width: 86px; height: 86px; margin: 0 auto 6px; }
.owl-load { display: flex; align-items: center; gap: 10px; padding: 16px; color: var(--mut); font-size: var(--fs-sm); }
.owl-load .owl { width: 42px; height: 42px; flex: none; }
/* losses in violet in Real mode (Demo keeps coral) */
html:not(.demo-mode) { --dn: #00c281; --dn-fill: #6ee3b8; --dn-bg: #e3f8ef; }
html:not(.demo-mode)[data-theme="dark"] { --dn: #6ee3b8; --dn-fill: #3ddba3; --dn-bg: rgba(61,219,163,.15); }/* landing: the trade opened from the hero is the journal's two-sided card, sized to fit without scrolling */
.ph-trade .pvj-focus { width: min(400px, 100%); margin: 6px auto 0; }

/* wins and losses: the winner takes the mode's colour (violet in Real, mint in Demo), the loser is plain ink
   (black on light, white on dark) — the minus sign tells a loss apart */
html:not(.demo-mode) { --up: #6C4BFF; --up-bg: #efebff; --dn: var(--ink); --dn-fill: var(--ink); --dn-bg: rgba(12,12,13,.06); }
html:not(.demo-mode)[data-theme="dark"] { --up: #a996ff; --up-bg: rgba(139,109,255,.15); --dn: var(--ink); --dn-fill: var(--ink); --dn-bg: rgba(255,255,255,.08); }
html.demo-mode { --up: #00a06a; --up-bg: #e3f8ef; --dn: var(--ink); --dn-fill: var(--ink); --dn-bg: rgba(12,12,13,.06); }
html.demo-mode[data-theme="dark"] { --up: #3ddba3; --up-bg: rgba(61,219,163,.15); --dn: var(--ink); --dn-fill: var(--ink); --dn-bg: rgba(255,255,255,.08); }.wr-bar .w { background: var(--up); }
.wr-bar .w .wr-pct { color: #fff; }
.wr-bar .l .wr-pct { color: #fff; }
[data-theme="dark"] .wr-bar .l .wr-pct, [data-theme="dark"] .wr-bar .w .wr-pct { color: #111; }.tcard.win { box-shadow: inset 0 -3px 0 var(--up), var(--sh); }

/* ===== landing: pricing (Free · Pro · Elite) ===== */
.pr { position: relative; overflow: hidden; }
.pr-glow { position: absolute; left: 10%; right: 10%; top: 0; height: 100%; pointer-events: none; background: radial-gradient(50% 42% at 50% 38%, rgba(108,75,255,.16), transparent 72%); }
.pr .wrap { position: relative; }
.pr-head { text-align: center; max-width: 760px; margin: 0 auto 34px; display: grid; justify-items: center; gap: 12px; }
.pr-head .big { margin: 0; }
.pr-head .intro { margin: 0 auto; max-width: 56ch; }
.pr-sw { position: relative; display: inline-flex; gap: 4px; padding: 4px; margin-top: 10px; border-radius: 999px; background: #f2f0fa; box-shadow: inset 0 0 0 1px rgba(108,75,255,.14); }
.pr-sw button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: none; cursor: pointer; font: 600 14.5px var(--sans); color: #55536a; transition: color .3s; }
.pr-sw button[aria-checked="true"] { color: #fff; }
.pr-sw button em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #e4dcff; color: #4325c4; transition: background .3s, color .3s; }
.pr-sw button[aria-checked="true"] em { background: rgba(255,255,255,.22); color: #fff; }
.pr-sw-pill { position: absolute; left: 4px; top: 4px; height: 42px; width: 0; border-radius: 999px; background: linear-gradient(180deg, #8b6dff, #6C4BFF 55%, #5a3ae6); box-shadow: 0 8px 20px -8px rgba(90,58,230,.7), inset 0 1px 0 rgba(255,255,255,.3); transition: transform .45s cubic-bezier(.34,1.4,.64,1), width .45s cubic-bezier(.34,1.4,.64,1); }

.pr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; max-width: 1080px; margin: 0 auto; }
.pr-card { position: relative; display: flex; flex-direction: column; padding: 26px 24px 24px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px rgba(20,20,30,.07), 0 18px 40px -28px rgba(30,20,80,.35); transition: transform .35s cubic-bezier(.34,1.4,.64,1), box-shadow .35s; }
.pr-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(108,75,255,.2), 0 26px 50px -26px rgba(60,40,160,.45); }
.pr-card.pop { background: linear-gradient(180deg, #f6f3ff 0%, #fff 60%); box-shadow: 0 0 0 2px #6C4BFF, 0 26px 56px -24px rgba(90,58,230,.55); }
.pr-card h3 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.pr-badge { position: absolute; top: 24px; right: 22px; padding: 5px 11px; border-radius: 999px; background: #6C4BFF; color: #fff; font-size: 12px; font-weight: 700; }
.pr-owl { position: absolute; left: 50%; top: -62px; width: 74px; height: 74px; transform: translateX(-50%); }
.pr-owl .owl { width: 100%; height: 100%; }
.pr-desc { margin: 8px 0 18px; color: #66647a; font-size: 14px; line-height: 1.5; min-height: 42px; }
.pr-price { display: flex; align-items: baseline; gap: 2px; color: #12111a; }
.pr-cur { font-size: 26px; font-weight: 700; align-self: flex-start; margin-top: 6px; }
.pr-price b { font-size: 52px; font-weight: 800; letter-spacing: -.04em; line-height: 1; min-width: 1.2ch; }
.pr-per { margin-left: 6px; color: #77758a; font-size: 14.5px; font-weight: 500; }
.pr-bill { margin: 8px 0 20px; min-height: 18px; font-size: 12.5px; color: #8a889c; }
.pr-bill .y { display: none; } .pr.yearly .pr-bill .y { display: inline; } .pr.yearly .pr-bill .m { display: none; }
.pr-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 14px; font-weight: 700; font-size: 15.5px; text-decoration: none; color: #fff;
  background: linear-gradient(180deg, #2a2932, #121118); box-shadow: 0 10px 22px -12px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12); transition: transform .2s, box-shadow .2s, filter .2s; }
.pr-btn.solid { background: linear-gradient(180deg, #8b6dff, #6C4BFF 55%, #5a3ae6); box-shadow: 0 14px 28px -12px rgba(90,58,230,.75), inset 0 1px 0 rgba(255,255,255,.3); }
.pr-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.pr-btn svg { width: 16px; height: 16px; }
.pr-feats { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.pr-feats li { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 600; color: #2b2a36; }
.pr-ic { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #f1eefc; color: #5a3ae6; }
.pr-ic svg { width: 17px; height: 17px; }
.pr-incl { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(20,20,30,.08); }
.pr-incl h4 { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: #12111a; }
.pr-incl ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pr-incl li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #55536a; }
.pr-ck { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #efebff; box-shadow: inset 0 0 0 1px rgba(108,75,255,.45); color: #5a3ae6; }
.pr-ck svg { width: 13px; height: 13px; stroke-width: 3; }
.pr-note { text-align: center; margin: 26px 0 0; font-size: 13px; color: #8a889c; }

/* entrance: blurred and lifted until the section reaches the screen, then one after another */
.pr .pr-in { opacity: 0; filter: blur(8px); transform: translateY(-16px); transition: opacity .55s ease var(--d, 0s), filter .55s ease var(--d, 0s), transform .6s cubic-bezier(.2,.8,.2,1) var(--d, 0s); }
.pr.seen .pr-in { opacity: 1; filter: none; transform: none; }
.pr.seen .pr-card.pr-in:hover { transform: translateY(-4px); transition: transform .35s cubic-bezier(.34,1.4,.64,1), box-shadow .35s; }

@media (max-width: 900px) {
  .pr-grid { grid-template-columns: minmax(0, 1fr); max-width: 460px; gap: 70px; }
  .pr-card:not(.pop) { margin-top: -40px; }
  .pr-card.pop { order: -1; margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) { .pr .pr-in { opacity: 1; filter: none; transform: none; transition: none; } .pr-sw-pill { transition: none; } }@media (max-width: 900px) { .pr-grid { gap: 22px; } .pr-card:not(.pop) { margin-top: 0; } .pr-card.pop { margin-top: 56px; } }
.pr-head { margin-bottom: 84px; }
.pr-ic svg, .pr-ck svg, .pr-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pr-ck svg { stroke-width: 3; }

/* payouts: a requested payout can be marked as paid */
.po-st { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: inherit; }
.po-paid { gap: 5px; }
.po-paid svg { width: 14px; height: 14px; }
.po-paid:hover { color: var(--up); border-color: color-mix(in srgb, var(--up) 45%, transparent); }
/* glass: the big KPI is glass like the others, so its words go back to the normal ink (they were white on a light pane) */
html:has(.topbar) .kpi.big { color: var(--ink); }
html:has(.topbar) .kpi.big .lbl, html:has(.topbar) .kpi.big .s { color: var(--mut); }
html:has(.topbar) .kpi.big .v.up { color: var(--up); }
html:has(.topbar) .kpi.big .v.dn { color: var(--dn); }
/* the band "The market is not your rival": a contained dark card in the landing's language (was a full-width black strip with 84px type) */
.band { background: transparent; color: inherit; text-align: left; padding: clamp(28px, 5vw, 64px) 0; overflow: visible; }
.band-card { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 48px);
  max-width: 980px; margin: 0 auto; padding: clamp(28px, 4.5vw, 52px) clamp(24px, 5vw, 60px); border-radius: 32px; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, rgba(108,75,255,.38), transparent 55%), radial-gradient(90% 120% at 100% 100%, rgba(108,75,255,.18), transparent 60%), #0f0d18;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 30px 60px -30px rgba(40,20,120,.55); }
.band-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(80% 90% at 15% 30%, #000, transparent 75%); mask-image: radial-gradient(80% 90% at 15% 30%, #000, transparent 75%); }
.band-card > * { position: relative; }
.band .band-owl { width: clamp(84px, 11vw, 120px); height: clamp(84px, 11vw, 120px); margin: 0; }
.band h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.045em; line-height: 1.05; max-width: 20ch; margin: 0; text-wrap: balance; }
.band p { color: rgba(255,255,255,.68); font-size: 16.5px; line-height: 1.55; max-width: 52ch; margin: 14px 0 0; }
@media (max-width: 640px) { .band-card { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } .band h2, .band p { margin-left: auto; margin-right: auto; } }
/* FAQ: two columns — the title on the left (it stays while you scroll), the questions as one glass list on the right */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.faq-side { position: sticky; top: 110px; }
.faq-side .kicker { color: var(--brand, #6C4BFF); }
.faq-side h2 { margin: 0; font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.045em; line-height: 1.05; max-width: 12ch; text-wrap: balance; }
.faq-side p { margin: 16px 0 0; color: var(--mut); font-size: 16px; line-height: 1.55; max-width: 36ch; }
.faq-owl { display: block; width: 92px; height: 92px; margin-top: 22px; }
.faq-owl .owl { width: 100%; height: 100%; }
.faq { max-width: none; margin: 0; gap: 0; counter-reset: q; border-radius: 26px; background: rgba(255,255,255,.72); padding: 6px 26px;
  box-shadow: 0 0 0 1px rgba(20,16,40,.06), 0 24px 50px -30px rgba(40,20,120,.35); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.faq details { background: none; box-shadow: none; border-radius: 0; padding: 0; counter-increment: q; }
.faq details + details { border-top: 1px solid rgba(20,16,40,.08); }
.faq summary { align-items: center; font-size: 16px; padding: 20px 0; transition: color .2s ease; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: counter(q, decimal-leading-zero); flex: none; width: 30px; font-size: 12.5px; font-weight: 600; color: var(--mut); font-variant-numeric: tabular-nums; }
.faq summary > * , .faq summary { text-align: left; }
.faq summary::after { content: ""; flex: none; margin-left: auto; width: 30px; height: 30px; border-radius: 50%;
  background: no-repeat center / 12px 12px linear-gradient(currentColor, currentColor), no-repeat center / 2px 12px linear-gradient(currentColor, currentColor), rgba(108,75,255,.09);
  color: #6C4BFF; transition: transform .35s cubic-bezier(.34,1.4,.64,1), background-color .2s ease; }
.faq summary::after { background-size: 12px 2px, 2px 12px, auto; }
.faq details[open] summary::after { content: ""; transform: rotate(135deg); background-color: #6C4BFF; color: #fff; }
.faq summary:hover { color: #6C4BFF; }
.faq details p { margin: -6px 0 0 30px; padding: 0 44px 22px 0; color: var(--ink2); line-height: 1.6; animation: faqIn .35s ease both; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 860px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } .faq-side { position: static; } .faq-owl { display: none; } .faq { padding: 4px 18px; } .faq details p { padding-right: 0; } }

/* the last call: a violet card, words on the left and the buttons on the right, the owl peeking from the corner */
.end-sec { padding-top: 0; }
.endcta { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px 40px; text-align: left;
  max-width: 980px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) clamp(26px, 5vw, 60px); border-radius: 32px; color: #fff;
  background: radial-gradient(70% 120% at 100% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #7b5cff, #5a3ae6 55%, #4024c4);
  box-shadow: 0 30px 60px -28px rgba(76,46,214,.6); }
.endcta::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-radial-gradient(circle at 105% 120%, transparent 0 34px, rgba(255,255,255,.07) 34px 35px); }
.endcta > * { position: relative; }
.endcta h2 { margin: 0; max-width: 16ch; font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.045em; line-height: 1.05; text-wrap: balance; color: #fff; }
.endcta p { margin: 12px 0 0; color: rgba(255,255,255,.78); font-size: 16.5px; }
.end-btns { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-right: clamp(0px, 8vw, 96px); }
.end-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 26px; border-radius: 999px; background: #fff; color: #2a1a8a;
  font-weight: 700; font-size: 16px; text-decoration: none; box-shadow: 0 12px 26px -12px rgba(20,8,80,.6); transition: transform .2s ease, box-shadow .2s ease; }
.end-go svg { width: 18px; height: 18px; transition: transform .2s ease; }
.end-go:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(20,8,80,.7); }
.end-go:hover svg { transform: translateX(3px); }
.end-alt { text-align: center; padding: 12px 22px; border-radius: 999px; color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); transition: background .2s ease; }
.end-alt:hover { background: rgba(255,255,255,.12); }
.end-owl { position: absolute; right: -10px; bottom: -26px; width: clamp(96px, 11vw, 132px); height: clamp(96px, 11vw, 132px); transform: rotate(-8deg); }
.end-owl .owl { width: 100%; height: 100%; }
.end-owl .ow-shadow { display: none; }
@media (max-width: 760px) { .endcta { grid-template-columns: minmax(0, 1fr); text-align: center; padding-bottom: 96px; } .endcta h2 { margin: 0 auto; } .end-btns { margin: 0 auto; width: min(100%, 280px); } .end-owl { right: 50%; transform: translateX(50%); bottom: -30px; } }
/* the owl sits on the card's top edge (violet on violet would disappear inside it) */
.endcta { overflow: visible; margin-top: 70px; }
.endcta::before { border-radius: inherit; }
.end-owl { top: auto; bottom: calc(100% - 9px); right: clamp(40px, 9vw, 120px); transform: none; width: clamp(88px, 9vw, 112px); height: clamp(88px, 9vw, 112px); }
@media (max-width: 760px) { .endcta { padding-bottom: clamp(32px, 5vw, 56px); } .end-owl { right: 50%; bottom: calc(100% - 9px); transform: translateX(50%); } }.end-go svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* the account menu: who you are on a violet cover, your Trader ID as a card, settings, language, sign out */
.menu.um { width: 300px; min-width: 0; padding: 0 0 8px; overflow: hidden; border-radius: 22px; transform-origin: top right; animation: umIn .22s cubic-bezier(.2,.9,.3,1.2); }
@keyframes umIn { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
.um-head { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: end; padding: 46px 18px 14px; }
.um-cover { position: absolute; left: 0; right: 0; top: 0; height: 62px;
  background: radial-gradient(90% 140% at 100% 0%, rgba(255,255,255,.28), transparent 55%), repeating-radial-gradient(circle at 110% -20%, transparent 0 18px, rgba(255,255,255,.08) 18px 19px), linear-gradient(120deg, #7b5cff, #5a3ae6 60%, #4024c4); }
.um-head .avatar { position: relative; width: 56px; height: 56px; font-size: 20px; color: #fff; cursor: default; box-shadow: 0 0 0 4px var(--panel), 0 8px 18px -8px rgba(40,20,120,.6) !important; }
html:has(.topbar) .um-head .avatar { box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 8px 18px -8px rgba(40,20,120,.6) !important; }
html[data-theme="dark"]:has(.topbar) .um-head .avatar { box-shadow: 0 0 0 4px #1b1a22, 0 8px 18px -8px rgba(0,0,0,.8) !important; }
.um-who { display: grid; min-width: 0; padding-bottom: 4px; line-height: 1.25; }
.um-who b { font-size: 16px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.um-who span { font-size: 13px; color: var(--mut); }
.um-mail { grid-column: 1 / -1; margin-top: 12px; font-size: 13px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-where { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--ink2); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.um-where i { width: 6px; height: 6px; border-radius: 50%; background: #f5a524; box-shadow: 0 0 0 3px rgba(245,165,36,.18); }
.um-where.cloud i { background: #6C4BFF; box-shadow: 0 0 0 3px rgba(108,75,255,.2); }
/* the Trader ID: a little card that tilts and shines when you point at it */
.menu .um-id { margin: 4px 10px 6px; width: calc(100% - 20px); padding: 12px; gap: 12px; border-radius: 16px; color: var(--ink);
  background: linear-gradient(135deg, rgba(108,75,255,.12), rgba(108,75,255,.04)); box-shadow: inset 0 0 0 1px rgba(108,75,255,.18); transition: background .2s ease, box-shadow .2s ease; }
.menu .um-id:hover { background: linear-gradient(135deg, rgba(108,75,255,.2), rgba(108,75,255,.07)); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(108,75,255,.35); }
.um-id .mid-card { width: 58px; height: 37px; border-radius: 7px; box-shadow: 0 6px 14px -6px rgba(40,20,120,.55); transition: transform .35s cubic-bezier(.34,1.5,.64,1); }
.um-id .mid-card .bmark { width: 16px; height: 16px; left: 6px; top: 6px; }
.um-id .mid-card em { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.75) 48%, transparent 66%); transform: translateX(-120%); }
.um-id:hover .mid-card { transform: rotate(-6deg) translateY(-1px) scale(1.06); }
.um-id:hover .mid-card em { transform: translateX(120%); transition: transform .7s ease; }
.um-idt { display: grid; gap: 2px; text-align: left; flex: 1; min-width: 0; }
.um-idt b { font-size: 14px; }
.um-idt small { font: 600 11px ui-monospace, Consolas, monospace; letter-spacing: .06em; color: var(--mut); }
.um-id > svg:last-child, .um-row > svg:last-child { margin-left: auto; width: 15px !important; height: 15px !important; color: var(--mut); transition: transform .2s ease; }
.um-id:hover > svg:last-child, .um-row:hover > svg:last-child { transform: translateX(3px); color: #6C4BFF; }
.menu .um-row { margin: 0 10px; width: calc(100% - 20px); padding: 8px 10px 8px 8px; gap: 12px; font-weight: 500; color: var(--ink); border-radius: 14px; }
.um-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--ink) 6%, transparent); transition: background .2s ease, color .2s ease; }
.um-row:hover .um-ic { background: #6C4BFF; color: #fff; }
/* language: six short codes in one row */
.um-lang { margin: 8px 10px 0; padding: 12px 8px 4px; border-top: 1px solid var(--line); }
.um-lbl { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--mut); margin-bottom: 9px; }
.um-lbl svg { width: 14px !important; height: 14px !important; }
.um-langs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; padding: 3px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.menu .um-langs button { justify-content: center; padding: 7px 0; border-radius: 9px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--mut); }
.menu .um-langs button:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.menu .um-langs button.on { background: #6C4BFF; color: #fff; box-shadow: 0 4px 10px -4px rgba(108,75,255,.7); }
html[data-theme="dark"] .menu .um-langs button.on { background: #8b6dff; color: #fff; border-color: transparent; }
/* sign out, last and quiet */
.menu .um-out { margin: 8px 10px 0; width: calc(100% - 20px); justify-content: center; gap: 8px; padding: 10px; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: var(--mut);
  box-shadow: inset 0 0 0 1px var(--line); }
.menu .um-out:hover { color: #d33a3a; background: rgba(211,58,58,.07); box-shadow: inset 0 0 0 1px rgba(211,58,58,.25); }
@media (prefers-reduced-motion: reduce) { .menu.um { animation: none; } .um-id .mid-card, .um-id .mid-card em { transition: none; } }
/* Trader ID by plan: the mini card in the menu takes the plan's metal */
.mid-card.tier-gold { background: linear-gradient(125deg, #fff3c9 0%, #d8a93a 30%, #f6dc8c 50%, #b98a22 76%, #f0d48a 100%); }
.mid-card.tier-black { background: linear-gradient(125deg, #3a3a40 0%, #111114 35%, #2c2c31 55%, #0a0a0c 80%, #26262b 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 2px 5px rgba(0,0,0,.3); }
.mid-card.tier-black i { background: rgba(255,255,255,.22); }
/* the plan next to your name */
.um-who b { display: flex; align-items: center; gap: 7px; min-width: 0; }
.um-who b > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-plan { flex: none; font: 700 10px/1 Inter, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border-radius: 999px; font-style: normal;
  color: #5b5e66; background: linear-gradient(125deg, #f3f4f6, #d4d7dc); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.um-plan.pro { color: #6b4a00; background: linear-gradient(125deg, #fff0bd, #e3b54a); }
.um-plan.elite { color: #f3f3f1; background: linear-gradient(125deg, #3a3a40, #0e0e11); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
/* the ID card and the rank under it, in one violet box */
.um-idbox { margin: 4px 10px 6px; border-radius: 16px; background: linear-gradient(135deg, rgba(108,75,255,.12), rgba(108,75,255,.04)); box-shadow: inset 0 0 0 1px rgba(108,75,255,.18); }
.menu .um-idbox .um-id { margin: 0; width: 100%; background: none; box-shadow: none; border-radius: 16px 16px 0 0; }
.menu .um-idbox .um-id:hover { background: rgba(108,75,255,.08); box-shadow: none; }
.um-rank { padding: 2px 12px 12px; }
.um-rk { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.um-rk b { font-weight: 700; color: var(--ink); }
.um-rk span { display: inline-flex; align-items: center; gap: 4px; color: var(--mut); font-weight: 500; }
.um-rk span svg { width: 12px !important; height: 12px !important; }
.um-ver { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font: 700 10.5px/1 Inter, system-ui, sans-serif; font-style: normal; color: #6C4BFF; padding: 3px 7px 3px 5px; border-radius: 999px; background: rgba(108,75,255,.12); }
.um-ver svg { width: 11px !important; height: 11px !important; stroke-width: 3 !important; }
.um-bar { height: 6px; margin: 8px 0 7px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 9%, transparent); overflow: hidden; }
.um-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #8b6dff, #6C4BFF); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.um-rank small { display: block; font-size: 11.5px; line-height: 1.4; color: var(--mut); }
.um-rank small a { display: inline; padding: 0; width: auto; color: #6C4BFF; font-weight: 600; font-size: inherit; text-decoration: underline; text-underline-offset: 2px; background: none !important; }
.um-rank.loading .um-rk b, .um-rank.loading small { width: 50%; border-radius: 6px; background: color-mix(in srgb, var(--ink) 7%, transparent); animation: umPulse 1s ease-in-out infinite alternate; }
.um-rank.loading small { width: 80%; }
@keyframes umPulse { to { opacity: .45; } }
/* "My Trader ID": why the rank only counts connected accounts */
.tid-why { display: flex; align-items: flex-start; gap: 8px; max-width: 460px; margin: 4px auto 0; font-size: 12.5px; line-height: 1.45; color: var(--mut); text-align: left; }
.tid-why svg { flex: none; width: 15px; height: 15px; margin-top: 1px; color: #6C4BFF; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }.menu.um { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
/* ================= the metal Trader ID (silver Free · gold Pro · black Elite) ================= */
.tid.tid-mx, .tid.tid-mxb { padding: 0; display: block; gap: 0; border-radius: 4.4cqw; }
.tid.tid-mx::before, .tid.tid-mxb::before { display: none; }
.tid.tid-mx > *, .tid.tid-mxb > * { position: absolute; }
/* brushed metal: fine hairlines over a soft light sweep */
.tid-mx, .tid-mxb { --hair: repeating-linear-gradient(90deg, rgba(255,255,255,.09) 0 .12cqw, rgba(0,0,0,.045) .12cqw .24cqw, transparent .24cqw .5cqw); }
.tid-mx.tier-silver, .tid-mxb.tier-silver { background: var(--hair), linear-gradient(118deg, #f4f5f7 0%, #c4c7cd 22%, #eef0f3 44%, #a9adb5 70%, #dcdfe4 100%); color: #2b2f36; }
.tid-mx.tier-gold, .tid-mxb.tier-gold { background: var(--hair), linear-gradient(118deg, #fbeec4 0%, #d6a947 24%, #f6e0a2 46%, #b8892b 72%, #efd38c 100%); color: #3d2b06; }
.tid-mx.tier-black, .tid-mxb.tier-black { background: var(--hair), radial-gradient(120% 140% at 0% 0%, #34343b 0%, #141417 42%, #070708 100%); color: #e6e6ea;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 0 0 0 .5cqw rgba(108,75,255,.0), 0 24px 44px -24px rgba(0,0,0,.85); }
.tid-mx.tier-black::after, .tid-mxb.tier-black::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 .25cqw rgba(139,109,255,.35); }
/* engraved look for the words on the metal */
.tid-mx, .tid-mxb { --emb: 0 .14cqw 0 rgba(255,255,255,.55), 0 -.08cqw 0 rgba(0,0,0,.18); }
.tid-mx.tier-black, .tid-mxb.tier-black { --emb: 0 .14cqw 0 rgba(0,0,0,.9), 0 -.08cqw 0 rgba(255,255,255,.14); }
/* rings in the corner and the light that crosses the card when you point at it */
.mx-rings { inset: 0; border-radius: inherit; pointer-events: none; opacity: .5;
  background: repeating-radial-gradient(circle at 104% 118%, transparent 0 3.2cqw, rgba(255,255,255,.22) 3.2cqw 3.32cqw); -webkit-mask-image: radial-gradient(70% 90% at 100% 100%, #000, transparent 75%); mask-image: radial-gradient(70% 90% at 100% 100%, #000, transparent 75%); }
.tier-black .mx-rings { background: repeating-radial-gradient(circle at 104% 118%, transparent 0 3.2cqw, rgba(139,109,255,.22) 3.2cqw 3.32cqw); }
.mx-sheen { inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.5) 50%, transparent 62%) no-repeat; background-size: 260% 100%; background-position: 140% 0; mix-blend-mode: soft-light; }
.tier-black .mx-sheen { mix-blend-mode: screen; background-image: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.12) 50%, transparent 60%); }
.tid-flip:hover .mx-sheen, .tid-mx:hover .mx-sheen { background-position: -40% 0; transition: background-position 1.1s cubic-bezier(.3,.7,.2,1); }
/* front, like an identity card without a photo: header, two columns of labelled data, signature, machine-readable lines */
.mx-head { left: 5.4cqw; right: 5.4cqw; top: 4.4cqw; display: flex; align-items: center; gap: 2.4cqw; padding-bottom: 2cqw; border-bottom: .18cqw solid currentColor; border-bottom-color: color-mix(in srgb, currentColor 22%, transparent); }
.mx-brand { display: flex; align-items: center; gap: 1.3cqw; }
.mx-brand .bmark { width: 5.6cqw; height: 5.6cqw; border-radius: 1.4cqw; filter: drop-shadow(0 .25cqw .5cqw rgba(0,0,0,.25)); }
.mx-brand b { font: 800 1.75cqw/1 Inter, system-ui, sans-serif; letter-spacing: .2em; text-shadow: var(--emb); }
.mx-title { flex: 1; text-align: center; font: 800 2.35cqw/1 Inter, system-ui, sans-serif; letter-spacing: .26em; text-shadow: var(--emb); white-space: nowrap; }
.mx-tier { font: 800 2.35cqw/1 Inter, system-ui, sans-serif; letter-spacing: .24em; margin-right: -.24em; padding: 1cqw 1.6cqw; border-radius: 99cqw; box-shadow: inset 0 0 0 .18cqw currentColor; text-shadow: var(--emb); white-space: nowrap; }
.tier-black .mx-tier { color: #c9bcff; }
.mx-col { top: 15.4cqw; display: grid; gap: 1.5cqw; align-content: start; }
.mx-l { left: 5.4cqw; width: 47cqw; }
.mx-r { left: 57cqw; right: 5.4cqw; }
.tid-mx .tid-f { margin: 0 0 0 -.6cqw; padding: .3cqw .6cqw; border-radius: .8cqw; min-width: 0; }
.tid-mx .tid-f em { font: 700 1.4cqw/1 Inter, system-ui, sans-serif; font-style: normal; letter-spacing: .22em; opacity: .6; margin-bottom: .6cqw; }
.tid-mx .tid-f b { font: 700 2.55cqw/1.15 Inter, system-ui, sans-serif; letter-spacing: .06em; text-shadow: var(--emb); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tid-mx .mx-name b { font-size: 3.7cqw; letter-spacing: .07em; text-transform: uppercase; }
.tid-mx .tid-f.empty b i { height: 2.4cqw; width: 24cqw; margin: .2cqw 0; border-radius: .6cqw; }
.tid-mx .mx-name.empty b i { height: 3.4cqw; width: 34cqw; }
.mx-nat b { display: flex; align-items: center; gap: 1.2cqw; }
.mx-nat b svg, .mx-nat b img { width: 4.4cqw; height: auto; flex: none; border-radius: .5cqw; box-shadow: 0 0 0 .15cqw rgba(0,0,0,.18); }
.mx-nat b span { overflow: hidden; text-overflow: ellipsis; }
.mx-rank b { display: flex; align-items: center; gap: 1.2cqw; }
.mx-pips { display: inline-flex; gap: .55cqw; }
.mx-pips i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: currentColor; opacity: .18; }
.mx-pips i.on { opacity: 1; background: #6C4BFF; box-shadow: 0 0 .8cqw rgba(108,75,255,.6); }
.tier-black .mx-pips i.on { background: #a996ff; }
.mx-status b { display: flex; align-items: center; gap: .8cqw; opacity: .55; font-size: 2.2cqw; }
.mx-status.on b { opacity: 1; color: #5a3ae6; }
.tier-black .mx-status.on b { color: #b9a9ff; }
.mx-status svg { width: 2.6cqw; height: 2.6cqw; padding: .35cqw; border-radius: 50%; background: #6C4BFF; fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.mx-sig { left: 5.4cqw; top: 39.6cqw; width: 40cqw; }
.mx-sig em { display: block; font: 700 1.3cqw/1 Inter, system-ui, sans-serif; font-style: normal; letter-spacing: .22em; opacity: .6; }
.mx-sigline { display: flex; align-items: flex-end; height: 6.4cqw; border-bottom: .15cqw solid currentColor; border-bottom-color: color-mix(in srgb, currentColor 35%, transparent); }
.mx-sigline .tid-sigsvg { height: 100%; width: auto; max-width: 100%; }
.mx-sigline .tid-sigsvg path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mx-sigline > i { font: italic 600 3.4cqw/1 "Segoe Script", "Brush Script MT", cursive; padding-bottom: .6cqw; }
.mx-mrz { left: 0; right: 0; bottom: 0; height: 11.2cqw; padding: 1.7cqw 5.4cqw 0; display: grid; align-content: start; gap: .9cqw; border-radius: 0 0 4.4cqw 4.4cqw;
  background: color-mix(in srgb, currentColor 7%, transparent); box-shadow: inset 0 .15cqw 0 color-mix(in srgb, currentColor 12%, transparent); }
.mx-mrz span { font: 600 2.75cqw/1 "OCR A Extended", ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .16em; white-space: nowrap; overflow: hidden; opacity: .78; text-shadow: var(--emb); }
.tid-mx .mx-rings { -webkit-mask-image: radial-gradient(60% 80% at 100% 70%, #000, transparent 75%); mask-image: radial-gradient(60% 80% at 100% 70%, #000, transparent 75%); }
.tid-mx .tid-f.focus, .tid-mxb .tid-f.focus { background: rgba(108,75,255,.16); box-shadow: 0 0 0 .35cqw rgba(108,75,255,.55); }
.tid-mx .tid-f.focus.empty b i, .tid-mxb .tid-f.focus.empty b i { animation: tidblink 1.1s ease-in-out infinite; opacity: .32; }
.tid-mx .tid-add, .tid-mxb .tid-add { font-size: 1.9cqw; font-weight: 600; letter-spacing: .02em; opacity: .55; text-transform: none; }
/* ---- back ---- */
.mxb-band { left: 0; right: 0; top: 5.4cqw; height: 8.6cqw; background: linear-gradient(180deg, #1d1d22, #0c0c0f); }
.tier-black .mxb-band { background: linear-gradient(180deg, #2a2638, #120f1c); box-shadow: inset 0 -.15cqw 0 rgba(139,109,255,.4); }
.tid-mxb .mxb-dna { left: 4.6cqw; top: 16.4cqw; width: 25cqw; margin: 0; padding: 0; display: grid; justify-items: center; gap: .4cqw; }
.mxb-dna .tid-dna-svg { width: 100%; height: auto; overflow: visible; }
.mxb-dna .tid-dna-svg .ring, .mxb-dna .tid-dna-svg .ax { fill: none; stroke: currentColor; stroke-opacity: .22; stroke-width: .8; }
.mxb-dna .tid-dna-svg .shape { fill: rgba(108,75,255,.28); stroke: #6C4BFF; stroke-width: 1.4; stroke-linejoin: round; }
.mxb-dna .tid-dna-svg .dot { fill: #6C4BFF; }
.mxb-dna .tid-dna-svg text { font: 700 5.6px Inter, system-ui, sans-serif; letter-spacing: .06em; fill: currentColor; opacity: .7; }
.tier-black .mxb-dna .tid-dna-svg .shape { fill: rgba(139,109,255,.3); stroke: #a996ff; }
.tier-black .mxb-dna .tid-dna-svg .dot { fill: #a996ff; }
.mxb-dna > em { font: 800 1.45cqw/1 Inter, system-ui, sans-serif; font-style: normal; letter-spacing: .3em; opacity: .65; }
.mxb-rows { left: 33cqw; right: 4.6cqw; top: 16.6cqw; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5cqw 3cqw; }
.tid-mxb .tid-f { margin: 0; padding: .3cqw .6cqw; margin-left: -.6cqw; border-radius: .8cqw; min-width: 0; }
.tid-mxb .tid-f em { font: 700 1.35cqw/1 Inter, system-ui, sans-serif; font-style: normal; letter-spacing: .24em; opacity: .6; margin-bottom: .55cqw; }
.tid-mxb .tid-f b { font: 700 2.15cqw/1.15 Inter, system-ui, sans-serif; letter-spacing: .06em; text-shadow: var(--emb); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tid-mxb .tid-f.empty b i { height: 2cqw; width: 14cqw; margin: .1cqw 0; border-radius: .5cqw; }
.tid-mxb .mxb-wide { grid-column: 1 / -1; }
.tid-mxb .tid-lgs { display: flex; flex-wrap: nowrap; gap: .8cqw; }
.tid-mxb .tid-lg .logo, .tid-mxb .tid-lg.more { width: 3.9cqw; height: 3.9cqw; border-radius: 1cqw; font-size: 1.6cqw; }
.mx-exp { display: inline-flex; gap: .6cqw; vertical-align: middle; }
.mx-exp i { width: 3.4cqw; height: 1.1cqw; border-radius: .5cqw; background: currentColor; opacity: .18; }
.mx-exp i.on { opacity: 1; background: #6C4BFF; }
.tier-black .mx-exp i.on { background: #a996ff; }
.mx-goals { display: inline-flex; gap: .7cqw; }
.mx-goals span { display: inline-grid; place-items: center; width: 2.9cqw; height: 2.9cqw; border-radius: .8cqw; opacity: .28; }
.mx-goals span.on { opacity: 1; background: rgba(108,75,255,.14); color: #6C4BFF; }
.tier-black .mx-goals span.on { background: rgba(139,109,255,.18); color: #b9a9ff; }
.mx-goals svg { width: 2cqw; height: 2cqw; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* foot: the signature strip and the verified numbers */

 .mxb-st { display: block; font: 700 1.3cqw/1 Inter, system-ui, sans-serif; font-style: normal; letter-spacing: .24em; opacity: .6; margin-bottom: .7cqw; }
.mxb-stats { left: 4.6cqw; right: 4.6cqw; bottom: 4.6cqw; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 1.6cqw; }
.mxb-stats .mxb-st { grid-column: 1 / -1; display: flex; align-items: center; gap: .6cqw; white-space: nowrap; }
.mxb-stats.on .mxb-st { color: #6C4BFF; opacity: 1; }
.tier-black .mxb-stats.on .mxb-st { color: #a996ff; }
.mxb-st svg { width: 1.9cqw; height: 1.9cqw; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.mxb-stats > div { display: grid; gap: .6cqw; padding: 1.1cqw 1.2cqw; border-radius: 1cqw; background: rgba(255,255,255,.28); box-shadow: inset 0 0 0 .12cqw rgba(0,0,0,.08); }
.tier-black .mxb-stats > div { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 .12cqw rgba(255,255,255,.08); }
.mxb-stats em { font: 700 1.2cqw/1 Inter, system-ui, sans-serif; font-style: normal; letter-spacing: .16em; opacity: .6; white-space: nowrap; }
.mxb-stats b { font: 800 2.6cqw/1 Inter, system-ui, sans-serif; letter-spacing: .02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mxb-stats b .up { color: #5a3ae6; } .tier-black .mxb-stats b .up { color: #b9a9ff; }
/* the special edition button while it is locked */
.tid-dsw button.locked { opacity: .6; display: inline-flex; align-items: center; gap: 6px; }
.tid-dsw button.locked svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tid-dsw button.shake { animation: tidShake .4s ease; }
@keyframes tidShake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .tid-flip:hover .mx-sheen { transition: none; } }
/* the signature flows under the left column (it can't overlap the nationality any more); tighter rows */
.mx-col { top: 14.6cqw; gap: 1.1cqw; }
.mx-sig { position: static; width: 38cqw; margin-top: .4cqw; }
.mx-sigline { height: 5.4cqw; }
.tid-mx .tid-f.empty b i { height: 2.2cqw; }
.tid-mx .mx-name.empty b i { height: 3cqw; }
/* back: long lists get a smaller type so they fit */
.tid-mxb .mxb-tight b { font-size: 1.75cqw; letter-spacing: .03em; }
/* sign-up: three locked cards in a row (gold, black and the special edition, shown only as a blurred teaser) */
.qc-stage .qc-locked, .qc2 .qc-locked { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.qc-lock[data-metal="special"] .qc-lock-card { opacity: .75; filter: blur(5px) saturate(1.2); }
.qc-lock[data-metal="special"] .qc-lock-tag { background: radial-gradient(80% 90% at 50% 50%, rgba(108,75,255,.35), rgba(108,75,255,.08) 70%, transparent); }
.qc-lock[data-metal="special"] .qc-lock-tag::before { content: "?"; display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 2px; border-radius: 50%;
  font: 800 17px/1 Inter, system-ui, sans-serif; color: #fff; background: #6C4BFF; box-shadow: 0 0 0 4px rgba(255,255,255,.35), 0 6px 16px -6px rgba(76,46,214,.8); animation: qcQ 2.4s ease-in-out infinite; }
.qc-lock[data-metal="special"] .qc-lock-tag > svg { display: none; }
@keyframes qcQ { 50% { transform: translateY(-3px) rotate(-6deg); } }
.qc-lock-tag span { line-height: 1.3; }
@media (prefers-reduced-motion: reduce) { .qc-lock[data-metal="special"] .qc-lock-tag::before { animation: none; } }.qc-lock[data-metal="special"] .qc-lock-card { opacity: .8; filter: blur(8px) saturate(1.3); }
.qc-lock[data-metal="special"] .qc-lock-tag { background: linear-gradient(150deg, rgba(91,58,230,.78), rgba(64,36,196,.62)); color: #fff; }
/* ===== account menu v2: this month, limit alert, connections, badges, Pro, time zone, backup, compact language ===== */
.menu.um { width: 320px; }
.um-head { padding-bottom: 10px; }
/* this month */
.um-month { margin: 2px 10px 8px; padding: 10px 12px 11px; border-radius: 16px; background: color-mix(in srgb, var(--ink) 4%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 7%, transparent); }
.um-mh { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); margin-bottom: 7px; }
.um-kpis { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.um-kpis > div { display: grid; gap: 3px; min-width: 0; }
.um-kpis > div + div { padding-left: 10px; border-left: 1px solid color-mix(in srgb, var(--ink) 9%, transparent); }
.um-kpis em { font-style: normal; font-size: 11px; color: var(--mut); }
.um-kpis b { display: inline-flex; align-items: center; gap: 3px; font-size: 16px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.um-kpis b.up { color: var(--up); } .um-kpis b.dn { color: var(--dn); }
.um-kpis b svg { width: 14px !important; height: 14px !important; color: var(--up); }
.um-sk { display: block; width: 70%; height: 16px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 8%, transparent); animation: umPulse 1s ease-in-out infinite alternate; }
/* the account closest to a limit */
.menu .um-alert { margin: 0 10px 8px; width: calc(100% - 20px); display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 10px; row-gap: 7px; padding: 10px 12px;
  border-radius: 14px; color: var(--ink); background: rgba(108,75,255,.07); box-shadow: inset 0 0 0 1px rgba(108,75,255,.16); }
.menu .um-alert[hidden], .um-sync[hidden] { display: none; }
.um-alert .um-ic { width: 30px; height: 30px; background: rgba(108,75,255,.14); color: #6C4BFF; }
.um-meter { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 9%, transparent); overflow: hidden; }
.um-meter i { display: block; height: 100%; border-radius: inherit; background: #6C4BFF; }
.menu .um-alert.warm { background: rgba(245,165,36,.1); box-shadow: inset 0 0 0 1px rgba(245,165,36,.3); }
.um-alert.warm .um-ic { background: rgba(245,165,36,.18); color: #b77400; } .um-alert.warm .um-meter i { background: #f5a524; }
.menu .um-alert.hot { background: rgba(211,58,58,.08); box-shadow: inset 0 0 0 1px rgba(211,58,58,.3); }
.um-alert.hot .um-ic { background: rgba(211,58,58,.15); color: #d33a3a; } .um-alert.hot .um-meter i { background: #d33a3a; }
.menu .um-alert:hover { filter: brightness(.98); background-color: inherit; }
/* two-line labels */
.um-two { display: grid; gap: 1px; min-width: 0; text-align: left; }
.um-two b { font-size: 13.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-two small { font-size: 11.5px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* connected accounts */
.um-sync { margin: 0 10px 8px; display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 12px; border-radius: 14px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); }
.um-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 25%, transparent); }
.um-dot.ok { background: #19b37a; box-shadow: 0 0 0 3px rgba(25,179,122,.18); } .um-dot.err { background: #d33a3a; box-shadow: 0 0 0 3px rgba(211,58,58,.18); }
.um-sync .um-two { flex: 1; }
.menu .um-syncb { flex: none; width: auto; gap: 5px; padding: 6px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; color: #6C4BFF; background: rgba(108,75,255,.1); }
.menu .um-syncb:hover { background: #6C4BFF; color: #fff; }
.um-syncb svg { width: 13px !important; height: 13px !important; }
.um-syncb.spin svg { animation: umSpin .8s linear infinite; }
@keyframes umSpin { to { transform: rotate(360deg); } }
/* badges under the rank */
.um-badges { display: flex; gap: 6px; padding: 0 12px 12px; }
.um-badges:empty { display: none; }
.um-badges span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--mut); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.um-badges span.on { color: #fff; background: #6C4BFF; box-shadow: 0 4px 10px -4px rgba(108,75,255,.7); }
.um-badges svg { width: 13px !important; height: 13px !important; }
/* Pro, on the Free plan */
.menu .um-pro { margin: 0 10px 8px; width: calc(100% - 20px); gap: 12px; padding: 10px 12px; border-radius: 14px; color: #3d2b06;
  background: linear-gradient(120deg, #fff6d8, #f6e3a8 60%, #f2d68a); box-shadow: inset 0 0 0 1px rgba(184,137,43,.35); }
.menu .um-pro:hover { color: #3d2b06; filter: brightness(1.03); background: linear-gradient(120deg, #fff6d8, #f6e3a8 60%, #f2d68a); }
.um-pro .mid-card { width: 40px; height: 26px; border-radius: 5px; }
.um-pro .mid-card .bmark { width: 12px; height: 12px; left: 4px; top: 4px; }
.um-pro > span:nth-child(2) { display: grid; gap: 1px; text-align: left; flex: 1; min-width: 0; }
.um-pro b { font-size: 13.5px; } .um-pro small { font-size: 11.5px; opacity: .75; }
.um-pro > svg:last-child { width: 15px !important; height: 15px !important; margin-left: auto; }
html[data-theme="dark"] .menu .um-pro, html[data-theme="dark"] .menu .um-pro:hover { background: linear-gradient(120deg, rgba(216,169,58,.22), rgba(216,169,58,.1)); color: #f3dc9e; box-shadow: inset 0 0 0 1px rgba(216,169,58,.35); }
/* rows: value on the right, backup with two lines */
.menu .um-row { margin-bottom: 2px; }
.um-val { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--mut); }
.um-val + svg { margin-left: 6px !important; }
.um-row .um-two b { font-weight: 500; font-size: inherit; }
/* foot: language (one small button that opens the six codes) and sign out, side by side */
.um-foot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; margin: 8px 10px 0; padding-top: 10px; border-top: 1px solid var(--line); }
.um-foot .um-lang { margin: 0; padding: 0; border: 0; display: contents; }
.menu .um-lbtn { width: auto; gap: 5px; padding: 9px 11px; border-radius: 12px; font-size: 12.5px; color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line); }
.um-lbtn svg { width: 14px !important; height: 14px !important; } .um-lbtn svg:last-child { width: 12px !important; height: 12px !important; transition: transform .2s ease; }
.um-lbtn[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
.um-foot .um-langs { grid-column: 1 / -1; grid-row: 2; }
.um-foot .um-langs[hidden] { display: none; }
.menu .um-foot .um-out { margin: 0; width: 100%; }.um-sync .um-two b, .um-sync .um-two small, .um-alert .um-two small { white-space: normal; line-height: 1.3; }
/* My Trader ID: "Edit card" under the card, the answers as chips (the card changes as you pick) */
.tid-under { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.tid-under .dim { margin: 0; font-size: 12.5px; }
.tid-editb { gap: 6px; }
.tid-editb.on { background: #6C4BFF; color: #fff; border-color: #6C4BFF; }
.tid-editb svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tid-editor { display: grid; gap: 14px; max-width: 560px; margin: 4px auto 0; padding: 16px; border-radius: 18px;
  background: color-mix(in srgb, var(--ink) 3%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); animation: tidEd .25s ease; }
.tid-editor[hidden] { display: none; }
@keyframes tidEd { from { opacity: 0; transform: translateY(-6px); } }
.tid-eg[hidden] { display: none; }
.tid-eg .lbl { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.tid-eg .lbl small { font-weight: 400; font-size: 11.5px; color: var(--mut); }
.tid-eg .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tid-eg .chipb { font-size: 12.5px; padding: 6px 11px; }
.tid-eg .chipb.on { background: #6C4BFF; border-color: #6C4BFF; color: #fff; }
.tid-escroll { max-height: 150px; overflow-y: auto; padding: 2px; scrollbar-width: thin; }
.tid-eact { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; border-top: 1px solid var(--line); margin-top: 2px; padding-top: 12px; }
.tid-progress[hidden] { display: none; }
/* Settings → Profile: the link to edit the card */
.prof-tid { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; margin-top: 6px; border: 0; border-radius: 16px; cursor: pointer; text-align: left; color: var(--ink);
  background: linear-gradient(135deg, rgba(108,75,255,.1), rgba(108,75,255,.03)); box-shadow: inset 0 0 0 1px rgba(108,75,255,.2); transition: background .2s ease; }
.prof-tid:hover { background: linear-gradient(135deg, rgba(108,75,255,.17), rgba(108,75,255,.06)); }
.prof-tid > span:nth-child(2) { display: grid; gap: 2px; flex: 1; min-width: 0; }
.prof-tid b { font-size: 14px; } .prof-tid small { font-size: 12.5px; color: var(--mut); }
.prof-tid > svg:last-child { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; color: var(--mut); transition: transform .2s ease; }
.prof-tid:hover > svg:last-child { transform: translateX(3px); color: #6C4BFF; }
.prof-tid .mid-card { width: 52px; height: 33px; }
/* ===== Plans inside the app (#/plans) ===== */
.pl-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: -6px 0 20px; }
.pl-lead { margin: 0; color: var(--mut); font-size: 15px; }
.pl-head .pr-sw { margin-top: 0; }
html[data-theme="dark"] .pr-sw { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(139,109,255,.25); }
html[data-theme="dark"] .pr-sw button { color: #b9b7c8; }
html[data-theme="dark"] .pr-sw button em { background: rgba(139,109,255,.22); color: #d7ccff; }
.pl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.pl-card { position: relative; display: grid; gap: 14px; padding: 18px 18px 20px; border-radius: 24px; background: var(--panel); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -28px rgba(40,20,120,.35);
  animation: plIn .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d); transition: transform .25s ease, box-shadow .25s ease; }
@keyframes plIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
.pl-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(108,75,255,.3), 0 24px 46px -26px rgba(40,20,120,.45); }
.pl-card.pop { box-shadow: 0 0 0 2px #6C4BFF, 0 24px 50px -26px rgba(76,46,214,.55); }
.pl-card.cur { box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink) 30%, transparent), 0 18px 40px -28px rgba(40,20,120,.35); }
.pl-flag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; white-space: nowrap;
  font-size: 11.5px; font-weight: 700; color: var(--on-ink, #fff); background: var(--ink); }
.pl-flag.pop { background: #6C4BFF; color: #fff; }
.pl-flag svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pl-id { margin: 4px 0 2px; transition: transform .35s cubic-bezier(.34,1.4,.64,1); }
.pl-card:hover .pl-id { transform: rotate(-1.5deg) scale(1.02); }
.pl-id .tid { box-shadow: 0 14px 28px -16px rgba(0,0,0,.45); }
.pl-top h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.pl-top p { margin: 4px 0 0; color: var(--mut); font-size: 13.5px; line-height: 1.45; }
.pl-price { display: flex; align-items: baseline; gap: 3px; }
.pl-price .pr-cur { font-size: 20px; font-weight: 600; color: var(--mut); }
.pl-price b { font-size: 40px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.pl-price .pr-per { font-size: 13.5px; color: var(--mut); margin-left: 3px; }
.pl-bill { margin: -8px 0 0; font-size: 12.5px; color: var(--mut); min-height: 18px; }
.pl .pl-bill .y, .pl.yearly .pl-bill .m { display: none; } .pl.yearly .pl-bill .y { display: inline; }
.pl-btn { width: 100%; height: 44px; border-radius: 999px; border: 0; cursor: pointer; font: 600 14.5px var(--sans); transition: transform .15s ease, filter .2s ease, background .2s ease; }
.pl-btn.solid { color: #fff; background: linear-gradient(180deg, #8b6dff, #6C4BFF 55%, #5a3ae6); box-shadow: 0 10px 22px -10px rgba(90,58,230,.7); }
.pl-btn.solid:hover { filter: brightness(1.06); transform: translateY(-1px); }
.pl-btn.low { color: var(--ink); background: none; box-shadow: inset 0 0 0 1px var(--line2, var(--line)); }
.pl-btn.low:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.pl-btn.cur { cursor: default; color: var(--mut); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.pl-feats, .pl-incl ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pl-feats li, .pl-incl li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.4; }
.pl-feats .pr-ic { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: rgba(108,75,255,.1); color: #6C4BFF; }
.pl-feats .pr-ic svg { width: 15px; height: 15px; }
.pl-feats svg, .pl-incl svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-incl { padding-top: 12px; border-top: 1px solid var(--line); }
.pl-incl h4 { margin: 0 0 9px; font-size: 12.5px; color: var(--mut); font-weight: 600; }
.pl-incl .pr-ck { flex: none; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #6C4BFF; color: #fff; margin-top: 1px; }
.pl-incl .pr-ck svg { width: 11px; height: 11px; stroke-width: 3; }
.pl-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px 0 6px; color: var(--mut); font-size: 13px; text-align: center; }
.pl-note svg { flex: none; width: 15px; height: 15px; color: #6C4BFF; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 980px) { .pl-grid { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin: 0 auto; } .pl-head { justify-content: center; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .pl-card { animation: none; } }
/* plans v2: a small metal card by the plan name (not the whole Trader ID), the discount code */
.pl-top { display: flex; align-items: center; gap: 12px; }
.pl-top .mid-card { width: 50px; height: 32px; border-radius: 6px; transition: transform .35s cubic-bezier(.34,1.5,.64,1); }
.pl-top .mid-card .bmark { width: 14px; height: 14px; left: 5px; top: 5px; }
.pl-top .mid-card em { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.7) 48%, transparent 66%); transform: translateX(-120%); }
.pl-card:hover .pl-top .mid-card { transform: rotate(-6deg) scale(1.08); }
.pl-card:hover .pl-top .mid-card em { transform: translateX(120%); transition: transform .7s ease; }
.pl-top h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; line-height: 1.1; }
.pl-top small { font-size: 12px; color: var(--mut); }
.pl-desc { margin: -4px 0 0; color: var(--mut); font-size: 13.5px; line-height: 1.45; min-height: 39px; }
.pl-card { padding-top: 22px; }
.pl-price { flex-wrap: wrap; }
.pl-was { margin-left: 8px; font-size: 15px; color: var(--mut); text-decoration-thickness: 1.5px; }
/* the code */
.pl-code { display: flex; align-items: center; gap: 8px; min-height: 42px; }
.pl-code .inp { width: 150px; height: 38px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.pl-codeb { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; cursor: pointer; font: 600 14px var(--sans); color: #6C4BFF; padding: 8px 4px; }
.pl-codeb:hover { text-decoration: underline; text-underline-offset: 3px; }
.pl-codeb svg, .pl-chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 6px 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, #8b6dff, #6C4BFF); box-shadow: 0 8px 18px -10px rgba(90,58,230,.8); animation: plChip .35s cubic-bezier(.34,1.5,.64,1); }
.pl-chip b { letter-spacing: .08em; }
.pl-chip button { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: rgba(255,255,255,.2); }
.pl-chip button:hover { background: rgba(255,255,255,.35); }
.pl-chip button svg { width: 12px; height: 12px; }
@keyframes plChip { from { opacity: 0; transform: scale(.8); } }
.pl-head { justify-content: flex-start; gap: 20px; }
@media (max-width: 980px) { .pl-head { flex-direction: column; } }
/* landing pricing: the small metal card by each plan name, and the SETUP promo */
.pr-card .pl-top { margin-bottom: 2px; }
.pr-card .pl-top h3 { margin: 0; }
.pr-card:hover .pl-top .mid-card { transform: rotate(-6deg) scale(1.08); }
.pr-card:hover .pl-top .mid-card em { transform: translateX(120%); transition: transform .7s ease; }
.pr-price .pl-was { align-self: center; }
.pr-price .pl-was[hidden] { display: none; }
.pr-promo { display: inline-flex; align-items: center; gap: 12px; margin-top: 16px; padding: 6px 6px 6px 8px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(108,75,255,.1), rgba(108,75,255,.04)); box-shadow: inset 0 0 0 1.5px rgba(108,75,255,.35); }
.pr-promo-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; color: #fff; font-size: 13px;
  background: repeating-linear-gradient(135deg, #6C4BFF 0 8px, #7b5cff 8px 16px); box-shadow: 0 6px 14px -8px rgba(90,58,230,.9); }
.pr-promo-tag b { letter-spacing: .14em; font-family: "Cascadia Mono", ui-monospace, Consolas, monospace; }
.pr-promo-tag svg, .pr-promo-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pr-promo-txt { font-size: 14px; color: #3b3850; }
.pr-promo-txt b { color: #5a3ae6; letter-spacing: .06em; }
.pr-promo-btn { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer; font: 600 13.5px var(--sans); color: #fff; background: #15141c; transition: transform .15s ease, background .2s ease; }
.pr-promo-btn:hover { transform: translateY(-1px); }
.pr-promo.on { background: linear-gradient(90deg, rgba(108,75,255,.18), rgba(108,75,255,.08)); }
.pr-promo.on .pr-promo-btn { background: #6C4BFF; }
@media (max-width: 640px) { .pr-promo { flex-wrap: wrap; justify-content: center; border-radius: 20px; padding: 10px; text-align: center; } }
/* the SETUP promo on the plans page inside the app (next to the monthly / yearly switch) */
.pl-head .pl-promo { margin-top: 0; }
html[data-theme="dark"] .pr-promo { background: linear-gradient(90deg, rgba(139,109,255,.16), rgba(139,109,255,.06)); box-shadow: inset 0 0 0 1.5px rgba(139,109,255,.4); }
html[data-theme="dark"] .pr-promo-txt { color: #d6d4e2; }
html[data-theme="dark"] .pr-promo-txt b { color: #b9a9ff; }
html[data-theme="dark"] .pr-promo-btn { background: #f3f3f1; color: #15141c; }
html[data-theme="dark"] .pr-promo.on .pr-promo-btn { background: #8b6dff; color: #fff; }
/* ---------- legal pages (#/legal, #/privacy, #/cookies, #/terms) and the 404 page ---------- */
.legal-pg { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.legal-pg .wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 max(4vw, 18px); }
.lg-top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.lg-top .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.lg-top .sp { flex: 1; }
.lg-back { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 550; color: var(--mut); padding: 8px 12px; border-radius: 999px; }
.lg-back:hover { color: var(--ink); background: var(--bg2); }
.lg-back svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lg-main { flex: 1; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; padding-top: 44px; padding-bottom: 64px; align-items: start; }
.lg-nav { position: sticky; top: 92px; display: grid; gap: 4px; }
.lg-nav a { padding: 9px 14px; border-radius: 12px; color: var(--mut); font-weight: 550; font-size: var(--fs-md); }
.lg-nav a:hover { color: var(--ink); background: var(--bg2); }
.lg-nav a.on { color: var(--brand-ink); background: var(--brand-bg); }
.lg-doc { max-width: 720px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r3); padding: clamp(24px, 4vw, 48px); box-shadow: var(--sh); }
.lg-doc h1 { margin: 0; font-size: clamp(28px, 4vw, 38px); letter-spacing: -.03em; line-height: 1.1; }
.lg-date { margin: 8px 0 0; color: var(--dim); font-size: var(--fs-sm); }
.lg-draft { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; padding: 12px 14px; border-radius: 14px; background: #fff6e0; color: #7a5600; font-size: var(--fs-sm); font-weight: 550; }
.lg-draft svg { width: 17px; height: 17px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; }
.lg-lang { margin: 18px 0 0; color: var(--mut); font-size: var(--fs-sm); font-style: italic; }
.lg-doc section { margin-top: 34px; }
.lg-doc h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 10px; font-size: 19px; letter-spacing: -.02em; }
.lg-n { font-size: 12px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.lg-doc p, .lg-doc li { color: var(--ink2); line-height: 1.7; }
.lg-doc p { margin: 0 0 10px; }
.lg-doc ul { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; }
.lg-doc a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; }
.lg-pend { background: #fff1c2; color: #7a5600; padding: 1px 7px; border-radius: 6px; font-weight: 650; font-size: .92em; }
.lg-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 28px 0 36px; }
.lg-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.lg-links a { color: var(--mut); }
.lg-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
footer.lf .lg-links { order: 3; width: 100%; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 820px) {
  .lg-main { grid-template-columns: 1fr; gap: 18px; padding-top: 20px; }
  .lg-nav { position: static; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * max(4vw, 18px)); padding: 0 max(4vw, 18px); }
  .lg-nav a { white-space: nowrap; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: var(--fs-sm); }
  .lg-nav a.on { border-color: transparent; }
  .lg-doc { border-radius: var(--r2); }
  .lg-back b, .lg-back { font-size: 12.5px; }
}
/* the "you accept the terms" line under "Create my journal" */
.qc-legal { margin: 12px 2px 0; font-size: 12px; line-height: 1.5; color: var(--dim); text-align: center; }
.qc-legal a { color: var(--ink2); text-decoration: underline; text-underline-offset: 2px; }
.legal-pg main.wrap { flex: 1; }
.lg-back { white-space: nowrap; }
@media (max-width: 420px) { .lg-top .brandlink .bname { display: none; } }

/* ---------- 404: a giant fading "404" with the owl perched on it, a line of text and two ways out ---------- */
.nf2 { position: relative; isolation: isolate; display: grid; place-items: center; width: 100%; min-height: calc(100vh - 64px - 120px); padding: 48px 18px 64px; overflow: hidden; }
.nf2.in-app { min-height: calc(100vh - var(--top) - 80px); }
.nf2-main { flex: 1; display: grid; }
.nf2-glow { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(460px 340px at 50% 42%, color-mix(in srgb, var(--brand-2) 22%, transparent), transparent 72%); }
.nf2-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image: linear-gradient(color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(420px 300px at 50% 45%, #000, transparent 78%); mask-image: radial-gradient(420px 300px at 50% 45%, #000, transparent 78%); }
.nf2-in { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; max-width: 520px; }
.nf2-hero { --fs: clamp(150px, 32vw, 250px); display: flex; flex-direction: column; align-items: center; }
.nf2-owl { width: calc(var(--fs) * .46); height: calc(var(--fs) * .46); margin-bottom: calc(var(--fs) * -.2); position: relative; z-index: 1; }
.nf2-owl .owl { width: 100%; height: 100%; overflow: visible; }
.nf2-owl .ow-shadow { display: none; }
.nf2-code { margin: 0; font-size: var(--fs); line-height: 1; font-weight: 850; letter-spacing: -.06em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--brand-2) 10%, var(--brand) 60%); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 80%); mask-image: linear-gradient(to bottom, #000 20%, transparent 80%); }
.nf2-code .sr { color: var(--ink); }
.nf2-desc { margin: calc(var(--fs, 200px) * -.2) 0 0; position: relative; color: color-mix(in srgb, var(--ink) 80%, transparent); font-size: var(--fs-lg); line-height: 1.55; font-weight: 500; }
.nf2-in > .nf2-desc { margin-top: clamp(-60px, -7vw, -34px); }
.nf2-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.nf2-btn { display: inline-flex; align-items: center; gap: 8px; height: var(--h-lg); padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: var(--fs-md); white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, border-color .18s ease; }
.nf2-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nf2-btn.pri { background: var(--brand); color: #fff; box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--brand) 80%, transparent); }
.nf2-btn.pri:hover { background: var(--brand-2); transform: translateY(-1px); }
.nf2-btn.out { background: var(--panel); color: var(--ink); border: 1px solid var(--line2); }
.nf2-btn.out:hover { border-color: var(--brand); color: var(--brand-ink); transform: translateY(-1px); }
.nf2-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
html[data-theme="dark"] .nf2-btn.out:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .nf2-btn { transition: none; } .nf2-btn:hover { transform: none; } }
/* news filters (dashboard rail) */
.nf { display: grid; gap: 8px; padding: 4px 16px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.nf .chipb { height: 28px; padding: 0 10px; font-size: var(--fs-sm); }
@media (max-width: 560px) { .nf2-desc br { display: none; } .nf2-desc { font-size: var(--fs-md); max-width: 300px; } }

/* the legal links inside the app: Settings (a row of pills) and the foot of the account menu (small text) */
.set-legal .pn-b { display: grid; gap: 12px; }
.set-legal .mut { margin: 0; }
.set-legal-links { display: flex; flex-wrap: wrap; gap: 8px; }
.set-legal-links a { display: inline-flex; align-items: center; height: var(--h-sm); padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); font-size: var(--fs-sm); font-weight: 550; }
.set-legal-links a:hover { border-color: var(--brand); color: var(--brand-ink); }
html[data-theme="dark"] .set-legal-links a:hover { color: #fff; }
.um-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 12px; padding: 10px 12px 4px; margin-top: 6px; border-top: 1px solid var(--line); font-size: 11.5px; }
.um-legal a { color: var(--dim); }
.um-legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }.menu.um .um-legal a { display: inline; width: auto; height: auto; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: 11.5px; font-weight: 500; line-height: 1.6; color: var(--dim); }
.menu.um .um-legal a:hover { background: none; color: var(--ink); }

/* Journal cards: never wider than the page (on a 320 px phone a 300 px minimum overflowed) */
.tgrid { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
@media (max-width: 820px) { .lg-nav a { flex: none; } .lg-nav { padding-bottom: 2px; } }
/* calendar: "2 trades" when it fits; in a narrow cell, the trades icon and the number (the full text on hover) */
.cal .d { container-type: inline-size; }
.cal .d .t { white-space: nowrap; }
.cal .d .t .tk { display: none; align-items: center; gap: 3px; }
.cal .d .t .tk svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@container (max-width: 76px) { .cal .d .t .tf { display: none; } .cal .d .t .tk { display: inline-flex; } }
/* contrast in dark mode: the brand violet is lighter there (#8b6dff) and white text on it was 3.7:1; the primary buttons
   use the owl's violet instead (5.1:1), a little darker on hover */
html[data-theme="dark"] .btn.pri, html[data-theme="dark"] .nf2-btn.pri { background: #6c4bff; color: #fff; }
html[data-theme="dark"] .btn.pri:hover:not(:disabled), html[data-theme="dark"] .nf2-btn.pri:hover { background: #5a3ae6; }
/* Buy / Sell pills: a direction, not a win or a loss; both readable on their own background (≥ 4.5:1) */
.pill.side-b.up { background: var(--brand-bg); color: var(--brand-ink); }
.pill.side-b.dn { background: var(--bg2); color: var(--ink2); }
html[data-theme="dark"] .pill.side-b.up { background: rgba(139,109,255,.2); color: #d4c9ff; }
html[data-theme="dark"] .pill.side-b.dn { background: rgba(255,255,255,.09); color: #dcdce2; }.ff-logo svg { width: 19px; height: 19px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* phones: the bar's glass lives on a layer behind it, so the fixed tab bar is not trapped inside the bar (it was drawn on top, over the avatar) */
@media (max-width: 760px) {
  html:has(.topbar) .topbar { -webkit-backdrop-filter: none; backdrop-filter: none; }
  html:has(.topbar) .topbar::before { -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); }
}

/* Plans: managing a paid plan (Paddle's page) */
.pl-manage { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 18px auto 0; font-size: var(--fs-sm); }

/* =====================================================================
   CHECKOUT (#/checkout): your Trader ID turning into the plan's metal, our summary, Paddle's card form inside
   ===================================================================== */
.ckp { max-width: 1120px; margin: 0 auto; padding-bottom: 28px; }
.ck-back { display: inline-flex; align-items: center; gap: 6px; color: var(--mut); font-size: 13.5px; font-weight: 600; text-decoration: none; padding: 6px 10px 6px 4px; border-radius: 999px; transition: color .2s, background .2s; }
.ck-back:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.ck-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ck-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 10px; }
@media (max-width: 960px) { .ck-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; gap: 22px; } }
.ck-side { display: grid; gap: 18px; min-width: 0; }
.ck-kick { justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #6C4BFF; background: rgba(108,75,255,.1); box-shadow: inset 0 0 0 1px rgba(108,75,255,.25); }
.ck-kick svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ck-side h1 { margin: -4px 0 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
/* the card: the old silver one behind, the new metal rising over it, a light sweep, a glow of its colour under it */
.ck-stage { position: relative; width: min(470px, 100%); margin: 8px 0 6px 14px; perspective: 1300px; isolation: isolate; }
.ck-stage::after { content: ""; position: absolute; z-index: -1; left: 8%; right: 8%; bottom: -26px; height: 60px; border-radius: 50%; filter: blur(26px); opacity: .9; background: rgba(108,75,255,.35); }
.ck-stage.tier-gold::after { background: rgba(216,169,58,.42); }
.ck-stage.tier-black::after { background: rgba(70,52,170,.45); }
.ck-old { position: absolute; inset: 0; transform: translate(-14px, -16px) rotate(-5deg) scale(.94); transform-origin: 30% 60%; opacity: .55; filter: saturate(.6); pointer-events: none; animation: ckOld .9s cubic-bezier(.2,.8,.2,1) both; }
.ck-new { position: relative; animation: ckRise .95s .15s cubic-bezier(.2,.9,.25,1.05) both; }
.ck-tilt { position: relative; border-radius: 18px; transform-style: preserve-3d; transition: transform .25s ease-out; box-shadow: 0 30px 50px -28px rgba(20,10,60,.6); --sx: 50%; }
.ck-shine { position: absolute; inset: 0; border-radius: 18px; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--sx) 0%, rgba(255,255,255,.55), transparent 55%), linear-gradient(105deg, transparent 38%, rgba(255,255,255,.65) 50%, transparent 62%) no-repeat;
  background-size: 100% 100%, 260% 100%; background-position: 0 0, 160% 0; animation: ckSweep 1.3s .9s ease both; }
.ck-stage.won .ck-tilt { animation: ckWon .7s cubic-bezier(.34,1.5,.64,1); }
.ck-stage.won .ck-shine { animation: ckSweep 1.1s ease both; }
.ck-stage.won .ck-old { opacity: 0; transition: opacity .5s; }
@keyframes ckOld { from { transform: none; opacity: 1; } }
@keyframes ckRise { from { opacity: 0; transform: translateY(46px) rotateX(24deg) scale(.96); } }
@keyframes ckSweep { from { background-position: 0 0, 160% 0; } to { background-position: 0 0, -60% 0; } }
@keyframes ckWon { 40% { transform: scale(1.04) rotate(-1.5deg); } }
/* the summary */
.ck-sum { display: grid; gap: 12px; padding: 18px 20px 20px; border-radius: 24px; background: var(--panel); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -28px rgba(40,20,120,.35); }
.ck-sum-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ck-sum h2, .ck-pay h2 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.ck-sw { margin: 0; transform: scale(.9); transform-origin: right center; }
.ck-rows { display: grid; gap: 9px; }
.ck-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink2); }
.ck-row b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.ck-row.off span { display: inline-flex; align-items: center; gap: 6px; color: #6C4BFF; font-weight: 600; }
.ck-row.off b { color: #6C4BFF; }
.ck-row.off svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ck-row.total { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--ink); }
.ck-row.total b { font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.ck-then { margin: -2px 0 0; font-size: 12.5px; color: var(--mut); }
.ck-dots { display: inline-block; width: 48px; height: 10px; border-radius: 6px; vertical-align: middle; background: linear-gradient(90deg, var(--line) 0%, var(--line2) 50%, var(--line) 100%); background-size: 200% 100%; animation: ckDots 1.1s linear infinite; }
@keyframes ckDots { to { background-position: -200% 0; } }
.ck-code { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 14px; border-radius: 14px; border: 1.5px dashed rgba(108,75,255,.45); background: rgba(108,75,255,.04); color: var(--ink2); font: 500 13.5px var(--sans); text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.ck-code:hover { background: rgba(108,75,255,.09); }
.ck-code span { flex: 1; } .ck-code b { color: #6C4BFF; letter-spacing: .06em; }
.ck-code u { text-decoration: none; font-weight: 700; color: #6C4BFF; }
.ck-code svg { flex: none; width: 16px; height: 16px; color: #6C4BFF; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ck-code.on { border-style: solid; border-color: transparent; color: #fff; background: linear-gradient(180deg, #8b6dff, #6C4BFF); box-shadow: 0 10px 22px -12px rgba(90,58,230,.8); }
.ck-code.on svg, .ck-code.on u { color: #fff; } .ck-code.on u { opacity: .8; font-weight: 600; }
.ck-incl { list-style: none; margin: 2px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 14px; }
.ck-incl li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink2); line-height: 1.35; }
.ck-incl svg { flex: none; width: 15px; height: 15px; margin-top: 1px; color: #6C4BFF; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
/* the payment side: Paddle's frame inside our panel */
.ck-pay { position: sticky; top: 16px; display: grid; gap: 14px; padding: 20px 20px 18px; border-radius: 26px; background: var(--panel); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px rgba(40,20,120,.45); animation: ckPay .6s .1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ckPay { from { opacity: 0; transform: translateY(14px); } }
@media (max-width: 960px) { .ck-pay { position: static; } }
.ck-pay-h { display: flex; align-items: flex-start; gap: 12px; }
.ck-pay-h p { margin: 3px 0 0; font-size: 12.5px; color: var(--mut); line-height: 1.4; }
.ck-lock { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: #fff; background: linear-gradient(180deg, #8b6dff, #6C4BFF); box-shadow: 0 8px 18px -10px rgba(90,58,230,.8); }
.ck-lock svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ck-frame-wrap { position: relative; min-height: 450px; margin: 0 -8px; }
.ck-frame { position: relative; z-index: 1; opacity: 0; transition: opacity .35s ease; }
.ck-frame-wrap.ready .ck-frame { opacity: 1; }
.ck-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--mut); font-size: 13.5px; transition: opacity .25s; }
.ck-frame-wrap.ready .ck-wait { opacity: 0; pointer-events: none; }
.ckp .spin { width: 22px; height: 22px; border-width: 2.5px; border-color: rgba(108,75,255,.2); border-top-color: #6C4BFF; }
.ck-safe { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mut); line-height: 1.45; }
.ck-safe svg { flex: none; width: 15px; height: 15px; margin-top: 1px; color: #6C4BFF; fill: none; stroke: currentColor; stroke-width: 2; }
/* paid */
.ck-done { display: grid; justify-items: center; gap: 10px; padding: 46px 12px 40px; text-align: center; animation: ckPay .5s ease both; }
.ck-done h2 { font-size: 22px; letter-spacing: -.03em; max-width: 340px; text-wrap: balance; }
.ck-done p { margin: 0 0 8px; font-size: 13.5px; }
.ck-done-ic { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: rgba(108,75,255,.1); }
.ck-done.ok .ck-done-ic { color: #fff; background: linear-gradient(180deg, #8b6dff, #6C4BFF); box-shadow: 0 14px 28px -14px rgba(90,58,230,.9); animation: ckWon .6s cubic-bezier(.34,1.5,.64,1); }
.ck-done-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .ck-old, .ck-new, .ck-shine, .ck-pay, .ck-done, .ck-stage.won .ck-tilt { animation: none; } .ck-tilt { transition: none; } }
@media (max-width: 520px) { .ck-stage { margin-left: 10px; } .ck-sw { transform: none; } .ck-pay { padding: 16px 14px; border-radius: 22px; } .ck-frame-wrap { margin: 0 -6px; } }
/* the payment panel: solid white or near-black so Paddle's form (light or dark, nothing in between) sits on its own colour */
.ck-pay[data-paddle="light"] { background: #ffffff; color: #0c0c0d; --ink: #0c0c0d; --mut: #5c5c62; --line: #ececea; box-shadow: 0 0 0 1px rgba(0,0,0,.07), 0 30px 60px -36px rgba(40,20,120,.45); }
.ck-pay[data-paddle="dark"] { background: #161618; color: #f5f5f3; --ink: #f5f5f3; --mut: #a1a1a9; --line: #2a2a2f; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -36px rgba(0,0,0,.7); }
.ck-pay { -webkit-backdrop-filter: none; backdrop-filter: none; }
/* the account menu on Pro: "Upgrade to Elite" in the black card's colours */
.menu .um-pro.elite, .menu .um-pro.elite:hover, html[data-theme="dark"] .menu .um-pro.elite, html[data-theme="dark"] .menu .um-pro.elite:hover { color: #f5f5f3; background: linear-gradient(120deg, #2a2a30, #121215 55%, #24242a); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 10px 22px -14px rgba(0,0,0,.6); }
.menu .um-pro.elite:hover, html[data-theme="dark"] .menu .um-pro.elite:hover { filter: brightness(1.15); }
/* moving between sections: the last page stays, faded and not clickable, while the new one reads its data */
#page.stale { pointer-events: none; animation: pgStale .3s ease .15s both; }
@keyframes pgStale { to { opacity: .5; } }
#page.stale * { animation: none !important; }
/* the news rail's icon: the site's violet (white calendar on the violet square), in every theme and mode */
.ff-logo, html[data-theme="dark"] .ff-logo { background: linear-gradient(180deg, #8b6dff, #6C4BFF 55%, #5a3ae6); box-shadow: 0 8px 18px -10px rgba(90,58,230,.8), inset 0 1px 0 rgba(255,255,255,.22); }
.ff-logo svg, html[data-theme="dark"] .ff-logo svg { stroke: #fff; }
/* P&L columns (Analytics): the bar takes its share of the room left after its amount, so the amount sits on the bar's
   end and never runs into the axis names; a zero line under the names when every value is a loss */
.vcols:not(.cnt) .vc i { height: calc(var(--h, 0) * (100% - 20px)); }
.vcols:not(.cnt) .vc em { height: 20px; line-height: 16px; padding: 2px 0; flex: none; }
.vc-b { overflow: visible; }
.vc-l { padding-top: 4px; }
/* the images of a trade, in order: drag to reorder (or the arrows), the first one is the cover */
.thumbs.sortable { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.thumbs.sortable .thumb { cursor: grab; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; }
.thumbs.sortable .thumb:active { cursor: grabbing; }
.thumbs.sortable .thumb.cover { cursor: grab; box-shadow: 0 0 0 2px #6C4BFF; }
.thumbs.sortable .thumb.dragging { opacity: .4; }
.thumbs.sortable .thumb.over { transform: scale(1.04); box-shadow: 0 0 0 2px #6C4BFF, 0 8px 18px -8px rgba(90,58,230,.7); }
.th-n { position: absolute; left: 5px; top: 5px; display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 700; color: #fff; background: rgba(0,0,0,.6); pointer-events: none; }
.thumb.cover .th-n { background: #6C4BFF; }
.th-n svg { width: 10px; height: 10px; fill: currentColor; stroke: none; }
.th-mv { position: absolute; right: 4px; bottom: 4px; display: flex; gap: 3px; opacity: 0; transition: opacity .15s; }
.thumb:hover .th-mv, .thumb:focus-within .th-mv { opacity: 1; }
@media (hover: none) { .th-mv { opacity: 1; } }
.th-mv button { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: rgba(0,0,0,.6); }
.th-mv button:hover { background: #6C4BFF; }
.th-mv svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.th-hint { margin: -2px 0 0; font-size: var(--fs-xs); }
/* the images of a trade: a gallery. The picked one big, then a strip of every image in order (the automatic chart is
   one more), dragged to reorder; the first carries the "Cover" mark */
.gal-view { position: relative; border-radius: var(--r); overflow: hidden; background: #0c0c0d; aspect-ratio: 16 / 10; display: grid; place-items: center; }
.gal-view img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gal-view.chart { background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); padding: 10px 10px 30px; aspect-ratio: auto; }
.gal-view.chart > svg, .gal-view.chart > div { width: 100%; }
.gal-tag { position: absolute; left: 10px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--mut); }
.gal-tag svg { width: 13px; height: 13px; stroke: #6C4BFF; fill: none; stroke-width: 2; }
.gal-strip { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding: 3px 2px 4px; scrollbar-width: thin; }
.gal-th { position: relative; flex: none; width: 92px; height: 58px; border-radius: 10px; overflow: hidden; background: #0c0c0d; cursor: pointer; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .15s ease, transform .15s ease, opacity .15s ease; }
.gal-th img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.gal-th.is-chart { background: var(--panel2); }
.gal-mini { position: absolute; inset: 3px; display: block; pointer-events: none; overflow: hidden; }
.gal-mini > * { width: 100% !important; height: 100% !important; }
.gal-mini svg { width: 100%; height: 100%; }
.gal-th:hover { transform: translateY(-1px); }
.gal-th.on { box-shadow: 0 0 0 2px #6C4BFF; }
.gal-th.dragging { opacity: .35; }
.gal-th.over { box-shadow: 0 0 0 2px #6C4BFF, 0 8px 18px -8px rgba(90,58,230,.7); transform: scale(1.05); }
.gal-cover { position: absolute; left: 4px; bottom: 4px; height: 16px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 10px; font-weight: 700; letter-spacing: .02em; color: #fff; background: #6C4BFF; pointer-events: none; }
.gal-x { position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(0,0,0,.62); opacity: 0; transition: opacity .15s, background .15s; }
.gal-th:hover .gal-x, .gal-th:focus-within .gal-x { opacity: 1; }
@media (hover: none) { .gal-x { opacity: 1; } }
.gal-x:hover { background: var(--danger, #e5484d); }
.gal-x svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.gal-add { flex: none; width: 58px; height: 58px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: var(--mut); border: 1.5px dashed var(--line2); transition: color .15s, border-color .15s, background .15s; }
.gal-add:hover { color: #6C4BFF; border-color: #6C4BFF; background: rgba(108,75,255,.06); }
.gal-add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.gal-hint { margin: 2px 0 0; font-size: var(--fs-xs); }
.rc.imgs .autochart-back { margin: 8px 0 0; }
/* the images of a trade, big, one under another: drag one onto another to reorder, click for full screen */
.gal-list { display: grid; gap: 12px; }
.gal-it { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: #0c0c0d; cursor: zoom-in; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .15s ease, transform .15s ease, opacity .15s ease; }
.gal-it img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; pointer-events: none; }
.gal-it.is-chart { background: var(--panel2); padding: 10px 10px 30px; }
.gal-it.is-chart svg { pointer-events: none; }
.gal-it:hover { box-shadow: 0 0 0 1px var(--line2), 0 14px 30px -20px rgba(0,0,0,.55); }
.gal-it.dragging { opacity: .35; }
.gal-it.over { box-shadow: 0 0 0 2px #6C4BFF, 0 14px 30px -16px rgba(90,58,230,.7); transform: scale(1.015); }
.gal-badge { position: absolute; left: 10px; top: 10px; height: 22px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
.gal-badge.cover { background: #6C4BFF; }
.gal-grip { position: absolute; left: 50%; top: 8px; transform: translateX(-50%) rotate(90deg); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: rgba(0,0,0,.5); cursor: grab; opacity: 0; transition: opacity .15s; }
.gal-grip svg { width: 16px; height: 16px; fill: currentColor; }
.gal-it:hover .gal-grip { opacity: 1; }
.gal-it:active { cursor: grabbing; }
.gal-it .gal-x { width: 28px; height: 28px; right: 8px; top: 8px; }
.gal-it:hover .gal-x, .gal-it:focus-within .gal-x { opacity: 1; }
.gal-it .gal-x svg { width: 13px; height: 13px; }
@media (hover: none) { .gal-it .gal-x, .gal-grip { opacity: 1; } }
.gal-it .gal-tag { left: 12px; bottom: 9px; }
.rc.imgs .gal-hint { margin: -4px 0 10px; }
.rc.imgs .drop2.small { margin-top: 12px; }
/* full screen */
.lbox { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: auto 1fr; background: rgba(6,6,8,.97); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); outline: none; animation: lbIn .18s ease both; }
.lbox.out { animation: lbOut .18s ease both; }
@keyframes lbIn { from { opacity: 0; } } @keyframes lbOut { to { opacity: 0; } }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; color: #f5f5f3; font-size: 13.5px; font-weight: 600; }
.lb-stage { display: grid; place-items: center; padding: 0 64px 28px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 90px); object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
.lb-chart { width: min(1300px, 100%); background: #111113; border-radius: 14px; padding: 16px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.lb-chart svg { width: 100%; height: auto; max-height: calc(100vh - 120px); }
.lb-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: rgba(255,255,255,.1); transition: background .15s; }
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb-prev, .lb-next { position: fixed; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
@media (max-width: 640px) { .lb-stage { padding: 0 8px 70px; } .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } .lb-prev { left: calc(50% - 52px); } .lb-next { right: calc(50% - 52px); } }
@media (prefers-reduced-motion: reduce) { .lbox, .lbox.out { animation: none; } }
/* phones: labels that were cut with "…" in Spanish and the other longer languages wrap instead */
@media (max-width: 560px) {
  .acc-it .tx .r1 { flex-wrap: wrap; row-gap: 0; }
  .acc-it .tx .r1 b { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.2; }
  .ccard .cc-c em { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.15; }
  .kv .lbl { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.2; }
}@media (max-width: 560px) {
  .rc.imgs .rc-h { flex-wrap: wrap; row-gap: 8px; }
  .rc.imgs .rc-h .seg { flex: 1 0 100%; display: flex; }
  .rc.imgs .rc-h .seg button { flex: 1; white-space: nowrap; }
}
/* "How to connect MetaTrader 5": steps with drawings of MetaTrader's windows (not screenshots) */
.ea-guide { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; color: #6C4BFF; background: none; border: 0; padding: 0; cursor: pointer; }
.ea-guide svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.ea-guide:hover { text-decoration: underline; text-underline-offset: 3px; }
.mg { display: grid; gap: 18px; }
.mg-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: center; min-height: 260px; }
@media (max-width: 720px) { .mg-grid { grid-template-columns: minmax(0, 1fr); } }
.mg-n { font-size: 12px; font-weight: 700; color: #6C4BFF; letter-spacing: .02em; }
.mg-tx h3 { margin: 4px 0 8px; font-size: 20px; letter-spacing: -.02em; }
.mg-tx p { margin: 0 0 12px; color: var(--ink2); line-height: 1.5; font-size: 14.5px; }
.mg-tx b { color: var(--ink); }
.mg-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.mg-foot .btn svg { width: 16px; height: 16px; }
.mg-dots { display: flex; gap: 6px; }
.mg-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line2); cursor: pointer; transition: width .2s, background .2s; }
.mg-dots button.on { width: 22px; background: #6C4BFF; }
/* the drawn window */
.mg-win { border-radius: 12px; overflow: hidden; background: #fff; color: #1c1c20; box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 22px 44px -26px rgba(20,10,60,.55); font: 500 13px var(--sans); }
.mg-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; background: #eceef2; border-bottom: 1px solid #d9dce2; font-size: 12px; color: #4a4d55; }
.mg-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9ccd3; }
.mg-bar span { margin-left: 6px; font-weight: 600; }
.mg-body { position: relative; padding: 12px; min-height: 170px; }
.mg-cursor { padding: 0 !important; background: none !important; display: block !important; width: 22px !important; height: 22px !important; position: absolute; right: -6px; bottom: -14px; width: 22px; height: 22px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); animation: mgPoint 1.4s ease-in-out infinite; }
.mg-cursor svg { width: 100%; height: 100%; fill: #111; stroke: #fff; stroke-width: 1.3; }
@keyframes mgPoint { 50% { transform: translate(-3px, -3px); } }
@media (prefers-reduced-motion: reduce) { .mg-cursor { animation: none; } }
.mg-menu { display: flex; gap: 2px; margin: -12px -12px 0; padding: 4px 6px; background: #f6f7f9; border-bottom: 1px solid #e3e5ea; }
.mg-menu > span { padding: 4px 9px; border-radius: 5px; }
.mg-menu > span.on, .mg-tabs > span.on { background: #6C4BFF; color: #fff; }
.mg-drop, .mg-ctx { display: grid; width: 220px; margin-top: 2px; padding: 5px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px #e1e3e8, 0 12px 26px -14px rgba(0,0,0,.4); }
.mg-drop > span, .mg-ctx > span { position: relative; padding: 7px 10px; border-radius: 6px; }
.mg-drop > span.on, .mg-ctx > span.on { background: rgba(108,75,255,.12); color: #4b2ee0; font-weight: 700; }
.mg-ctx { position: absolute; right: 14px; top: 64px; width: 190px; }
.mg-path { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 6px; background: #f3f4f7; font-size: 12px; color: #5b5e66; margin-bottom: 10px; }
.mg-files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mg-files > span, .mg-tree > span { display: flex; align-items: center; gap: 7px; position: relative; }
.mg-files > span { flex-direction: column; justify-content: center; text-align: center; padding: 12px 6px; border-radius: 8px; font-size: 11.5px; word-break: break-all; }
.mg-files svg, .mg-tree svg, .mg-file svg { width: 22px; height: 22px; fill: none; stroke: #8b8f98; stroke-width: 1.7; flex: none; }
.mg-file { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; }
.mg-file small { margin-left: auto; color: #8b8f98; font-size: 11px; }
.mg-file.on, .mg-files .on { background: rgba(108,75,255,.1); box-shadow: inset 0 0 0 1.5px rgba(108,75,255,.5); }
.mg-file.on svg, .mg-files .on svg { stroke: #6C4BFF; }
.mg-files .drop { animation: mgDrop 1.6s ease-in-out infinite; }
@keyframes mgDrop { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-4px, -4px); } }
@media (prefers-reduced-motion: reduce) { .mg-files .drop { animation: none; } }
.mg-tree { display: grid; gap: 4px; }
.mg-tree > span { padding: 5px 6px; border-radius: 6px; }
.mg-tree .kid { margin-left: 26px; }
.mg-tree .on { background: rgba(108,75,255,.12); color: #4b2ee0; font-weight: 700; }
.mg-tree .on svg { stroke: #6C4BFF; }
.mg-tabs { display: flex; gap: 4px; margin-bottom: 14px; }
.mg-tabs > span { padding: 5px 10px; border-radius: 6px; background: #f1f2f5; font-size: 12px; }
.mg-check { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.mg-check i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: #6C4BFF; }
.mg-check svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 3; }
.mg-url { position: relative; margin: 10px 0 0 27px; padding: 8px 10px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px #6C4BFF; background: rgba(108,75,255,.05); }
.mg-url code, .mg-inp code { font-size: 12px; color: #4b2ee0; word-break: break-all; }
.mg-inp { display: grid; grid-template-columns: 1fr 1.6fr; border-bottom: 1px solid #eceef2; }
.mg-inp > span { position: relative; padding: 8px 6px; }
.mg-inp:first-of-type span { font-size: 11.5px; color: #8b8f98; font-weight: 600; }
.mg-inp.on { background: rgba(108,75,255,.08); }
.mg-done { display: grid; justify-items: center; gap: 8px; padding: 40px 10px; border-radius: 16px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.mg-ok { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; color: #fff; background: linear-gradient(180deg, #8b6dff, #6C4BFF); box-shadow: 0 14px 28px -14px rgba(90,58,230,.9); }
.mg-ok svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mg-done b { font-size: 18px; } .mg-done small { color: var(--mut); }
/* admin panel (#/admin) */
.ad { display: grid; gap: 16px; }
.ad-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .ad-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ad-kpi { display: grid; gap: 4px; padding: 16px 18px; border-radius: 20px; background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
.ad-kpi span { font-size: 12.5px; color: var(--mut); font-weight: 600; }
.ad-kpi b { font-size: 30px; letter-spacing: -.03em; line-height: 1.05; }
.ad-kpi small { font-size: 12px; color: var(--mut); }
.ad-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ad-grid .ad-c2 { grid-column: 1 / -1; }
@media (max-width: 900px) { .ad-grid { grid-template-columns: minmax(0, 1fr); } }
.ad-days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; height: 120px; align-items: end; }
.ad-days span { height: 100%; display: flex; align-items: flex-end; }
.ad-days i { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, #8b6dff, #6C4BFF); }
.ad-funnel { display: grid; gap: 10px; }
.ad-step-h { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; }
.ad-step-h span { flex: 1; color: var(--ink2); }
.ad-step-h em { font-style: normal; font-size: 12px; color: #6C4BFF; font-weight: 700; min-width: 38px; text-align: right; }
.ad-bar { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); margin-top: 5px; overflow: hidden; }
.ad-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #8b6dff, #6C4BFF); }
.ad-list { list-style: none; margin: 0; padding: 0; display: grid; }
.ad-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ad-list li:last-child { border-bottom: 0; }
.ad-h4 { margin: 14px 0 4px; font-size: 12.5px; color: var(--mut); }
.ad-note { margin: 10px 0 0; font-size: 12px; }
.ad-errs { display: grid; }
.ad-err { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.ad-err:last-child { border-bottom: 0; }
.ad-err b { display: block; font-weight: 600; word-break: break-word; }
.ad-err small { color: var(--mut); font-size: 12px; }
/* the account menu: "Admin" under the name, for the people who can open the admin panel */
.um-sub { display: flex; align-items: center; gap: 7px; min-width: 0; }
.um-sub > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-who .um-admin { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px; border-radius: 999px; font: 700 10.5px/1 Inter, system-ui, sans-serif; letter-spacing: .05em; text-transform: uppercase; font-style: normal; color: #fff; background: linear-gradient(180deg, #8b6dff, #6C4BFF); box-shadow: 0 6px 14px -8px rgba(90,58,230,.8); }
.um-who .um-admin svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; }