/* Account panel. Used on the dashboard and the landing-page preview. Follows the theme. */
.acct {
  box-shadow: var(--shadow);
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: clamp(18px, 3vw, 28px);
  border-top: 5px solid var(--brand);
}
.acct.band-warning { border-top-color: var(--warn); }
.acct.band-critical, .acct.band-breached { border-top-color: var(--crit); }
.acct.is-stale { border-color: var(--crit); }
.acct-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .9rem; }
.acct-head h3 { margin: 0; font-family: var(--fd); font-weight: 720; font-size: 1.3rem; }
.acct-firm { margin: .1rem 0 0; color: var(--muted); font-size: .92rem; }
.sync { margin: 0; display: flex; align-items: center; gap: .45em; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.is-stale .dot { background: var(--crit); box-shadow: 0 0 0 3px color-mix(in srgb, var(--crit) 30%, transparent); }
.stale-msg { background: var(--crit); color: #fff; font-weight: 640; padding: .6em .8em; border-radius: var(--r-md); max-width: none; }

.nearest { margin: 0 0 1.2rem; padding: .7em .9em; border-radius: var(--r-md); font-weight: 600; max-width: none;
  background: var(--raise); border-left: 4px solid var(--brand); }
.nearest.warm { border-left-color: var(--warn); color: var(--warn-text); }
.nearest.hot { border-left-color: var(--crit); color: var(--crit-text); }

.gap { height: 1.3rem; }
.positions { list-style: none; margin: 1.4rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.pos { padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.pos:last-child { border-bottom: 0; padding-bottom: 0; }
.pos-line { display: flex; flex-wrap: wrap; gap: .3em .9em; align-items: baseline; }
.pos-sym { font-weight: 720; font-family: var(--fd); }
.pos-pl { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.pos-pl.up { color: var(--brand); } .pos-pl.down { color: var(--crit); }
.pos-sim { margin: .3rem 0 0; color: var(--muted); font-size: .93rem; max-width: none; }
.pos-sim.bad { color: var(--crit-text); }
.pos-sim .bad { color: var(--crit); }
.flat { color: var(--muted); margin: 1.2rem 0 0; font-size: .95rem; }

.payout { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.payout h4 { margin: 0 0 .7rem; font-size: 1rem; font-family: var(--fd); font-weight: 700; }
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; margin: 0; }
.figs div { background: var(--raise); border-radius: var(--r-sm); padding: .6em .75em; }
.figs dt { font-size: .8rem; color: var(--muted); }
.figs dd { margin: .1rem 0 0; font-weight: 720; font-family: var(--fd); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.figs .hl { background: color-mix(in srgb, var(--brand) 18%, var(--raise)); }
.payout .met { color: var(--brand); font-weight: 650; }
.payout .note { color: var(--muted); font-size: .9rem; margin: .7rem 0 0; }

.acct-foot { display: flex; flex-wrap: wrap; gap: .3em 1.2em; margin-top: 1.2rem; font-size: .86rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.unverified { margin-left: auto; text-decoration: underline dotted; cursor: help; }

.acct.pending { border-top-color: var(--rule); }
.progress { height: 6px; border-radius: 3px; background: var(--raise); overflow: hidden; }
.progress span { display: block; height: 100%; width: 30%; background: var(--brand); animation: slide 1.6s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }

.today, .postmortem { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.today h4, .postmortem h4 { margin: 0 0 .5rem; font-size: 1rem; font-family: var(--fd); font-weight: 700; }
.postmortem { border: 1px solid var(--crit); border-radius: var(--r-md); padding: 1rem; background: color-mix(in srgb, var(--crit) 7%, transparent); }
.postmortem h4 { color: var(--crit-text); }
.postmortem p { font-size: .94rem; max-width: none; }
.daychart { margin: 0; }
.daychart svg { width: 100%; height: auto; overflow: visible; }
.daychart .lbl { font-size: 11px; fill: var(--muted); font-family: var(--f); font-variant-numeric: tabular-nums; }
.daychart .lbl.strong { fill: var(--ink); font-weight: 700; }
.daychart figcaption { font-size: .9rem; color: var(--muted); margin-top: .3rem; }
.daychart figcaption b { color: var(--ink); }
.history { margin-top: 1.2rem; border-top: 1px solid var(--rule); padding-top: .9rem; }
.history summary { cursor: pointer; font-weight: 650; }
.history table { width: 100%; border-collapse: collapse; margin-top: .6rem; font-size: .9rem; font-variant-numeric: tabular-nums; }
.history th, .history td { text-align: left; padding: .45rem .5rem .45rem 0; border-bottom: 1px solid var(--rule); }
.history th { color: var(--muted); font-weight: 600; font-size: .82rem; }
.history .up { color: var(--brand); } .history .down { color: var(--crit-text); }
.history tr.bad td { color: var(--crit-text); }
.history .pct { color: var(--muted); font-size: .82rem; }
@media (max-width: 560px) { .history .pct { display: none; } }

/* Cross-firm overview */
.overview { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); margin-bottom: 18px; }
.ov-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; margin-bottom: 1rem; }
.ov-head h2 { margin: 0; font-size: 1.35rem; }
.ov-head p { margin: 0; }
.ov-figs dd.up { color: var(--brand); } .ov-figs dd.down { color: var(--crit-text); }
.ov-exposure { margin-top: 1rem; }
.ov-exposure .nearest { margin-bottom: .6rem; }
.ov-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; margin-top: 1.2rem; }
@media (max-width: 900px) { .ov-grid { grid-template-columns: 1fr; } }
.ov-grid h3 { font-size: 1rem; margin: 0 0 .5rem; }
.ov-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ov-table th { text-align: left; font-size: .8rem; color: var(--muted); font-weight: 600; padding: .4rem .5rem .4rem 0; border-bottom: 1px solid var(--rule); }
.ov-table td { padding: .6rem .5rem .6rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ov-table td span { display: block; color: var(--muted); font-size: .82rem; }
.ov-table .num { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.ov-table .up { color: var(--brand); } .ov-table .down { color: var(--crit-text); }
.ov-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.ov-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--rule); font-size: .92rem; }
.ov-list span { color: var(--muted); }
@media (max-width: 560px) { .ov-table th:nth-child(3), .ov-table td:nth-child(3) { display: none; } }

/* Loss budget */
.budget { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 1.3rem; }
.bud { background: var(--raise); border-radius: var(--r-md); padding: .65em .8em; display: flex; flex-direction: column; border-left: 3px solid var(--brand); }
.bud b { font-family: var(--fd); font-size: 1.5rem; font-weight: 720; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bud span { font-size: .82rem; color: var(--muted); line-height: 1.3; }
.bud.warm { border-left-color: var(--warn); } .bud.warm b { color: var(--warn-text); }
.bud.hot { border-left-color: var(--crit); } .bud.hot b { color: var(--crit-text); }
.bud-note { margin: .5rem 0 0; font-size: .84rem; color: var(--muted); max-width: none; }

/* Rules on this account */
.objs { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.objs h4, .perf h4 { margin: 0 0 .7rem; font-size: 1rem; font-family: var(--fd); font-weight: 700; }
.obj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.obj { background: var(--raise); border-radius: var(--r-md); padding: .8em .9em; display: flex; flex-direction: column; gap: .2rem; border-top: 3px solid var(--brand); }
.obj-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); font-weight: 600; }
.obj-top i { font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .15em .55em; border-radius: 999px; background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand); white-space: nowrap; }
.obj > b { font-family: var(--fd); font-size: 1.3rem; font-weight: 720; line-height: 1.2; font-variant-numeric: tabular-nums; }
.obj > p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.4; max-width: none; }
.obj .when { display: block; color: var(--ink); font-weight: 600; }
.obj-detail { margin-top: .3rem !important; padding-top: .4rem; border-top: 1px dashed var(--rule); }
.obj-bar { position: relative; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 10%, transparent); margin-top: .45rem; }
.obj-bar i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.obj-bar em { position: absolute; top: -4px; width: 2px; height: 14px; background: var(--ink); border-radius: 1px; }
.obj.s-met { border-top-color: var(--brand); }
.obj.s-watch { border-top-color: var(--warn); } .obj.s-watch .obj-top i { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn-text); } .obj.s-watch .obj-bar i { background: var(--warn); }
.obj.s-bad { border-top-color: var(--crit); } .obj.s-bad .obj-top i { background: color-mix(in srgb, var(--crit) 18%, transparent); color: var(--crit-text); } .obj.s-bad > b { color: var(--crit-text); }
.obj.s-info { border-top-color: var(--rule); } .obj.s-info .obj-top i { background: var(--panel); color: var(--muted); }
.obj.s-met .obj-top i::before { content: "\2713  "; }
.obj-off { margin: .7rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .84rem; color: var(--muted); max-width: none; }
.obj-off b { color: var(--ink); font-weight: 600; }

/* Performance and calendar */
.perf { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.perf-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 760px) { .perf-grid { grid-template-columns: 1fr; } }
.perf .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.perf .figs dd small { display: block; font-family: var(--f); font-size: .76rem; font-weight: 500; color: var(--muted); margin-top: .1rem; }
.perf .up { color: var(--brand); } .perf .down { color: var(--crit-text); }
.cal-h, .cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-h span { font-size: .72rem; color: var(--muted); text-align: center; font-weight: 600; padding-bottom: 2px; }
.cal-d { position: relative; aspect-ratio: 1 / .82; border-radius: 6px; background: var(--raise); padding: 3px 4px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; overflow: hidden; }
.cal-d span { font-size: .66rem; color: var(--muted); }
.cal-d b { font-size: .68rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-d.g { background: color-mix(in srgb, var(--brand) calc(var(--a) * 100%), var(--raise)); }
.cal-d.r { background: color-mix(in srgb, var(--crit) calc(var(--a) * 100%), var(--raise)); }
.cal-d.g b, .cal-d.r b, .cal-d.g span, .cal-d.r span { color: var(--ink); }
.cal-d.now { outline: 2px solid var(--ink); outline-offset: -2px; }
.cal-d.fut { opacity: .35; }
.cal-note { font-size: .78rem; color: var(--muted); margin: .4rem 0 0; }
@media (max-width: 480px) { .cal-d b { display: none; } .cal-d { aspect-ratio: 1; } }

/* Trading plan, live */
.tplan { margin-top: 1.3rem; border: 1px solid var(--rule); border-left: 4px solid var(--brand); border-radius: var(--r-md); padding: .9rem 1rem; background: color-mix(in srgb, var(--brand) 5%, var(--panel)); }
.tplan.tone-warm { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 7%, var(--panel)); }
.tplan.tone-hot { border-left-color: var(--crit); background: color-mix(in srgb, var(--crit) 7%, var(--panel)); }
.tplan.tone-good { border-left-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--panel)); }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.plan-head h4 { margin: 0; font-family: var(--fd); font-size: 1rem; }
.plan-status { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .2em .65em; border-radius: 999px; background: var(--raise); color: var(--muted); }
.tone-warm .plan-status { background: color-mix(in srgb, var(--warn) 22%, transparent); color: var(--warn-text); }
.tone-hot .plan-status { background: color-mix(in srgb, var(--crit) 20%, transparent); color: var(--crit-text); }
.tone-good .plan-status { background: var(--brand); color: var(--brand-ink); }
.plan-text { margin: .35rem 0 .7rem; font-weight: 600; max-width: none; }
.tone-warm .plan-text { color: var(--warn-text); } .tone-hot .plan-text { color: var(--crit-text); }
.plan-bar { position: relative; height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 10%, transparent); margin-top: 1.1rem; }
.plan-bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #7EF0DE); }
.plan-bar em { position: absolute; top: -5px; width: 2px; height: 20px; background: var(--ink); }
.plan-bar em span { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .7rem; color: var(--muted); white-space: nowrap; }
.plan-nums { display: flex; justify-content: space-between; font-size: .84rem; margin-top: .35rem; font-variant-numeric: tabular-nums; }
.plan-nums small { color: var(--muted); }
.plan-loss { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; font-size: .8rem; color: var(--muted); margin-top: .6rem; }
.plan-bar.loss { margin: 0; height: 6px; }
.plan-bar.loss > i { background: var(--crit); }
.plan-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .8rem; }
.plan-chips span { font-size: .8rem; background: var(--raise); border-radius: 999px; padding: .25em .7em; color: var(--muted); }
.plan-chips b { color: var(--ink); font-weight: 650; }
.plan-chips .bad { background: color-mix(in srgb, var(--crit) 15%, transparent); color: var(--crit-text); }
.plan-breaks { list-style: none; margin: .8rem 0 0; padding: 0; }
.plan-breaks li { font-size: .88rem; padding: .4rem 0; border-top: 1px dashed var(--rule); color: var(--crit-text); }
.plan-breaks time { display: inline-block; min-width: 4.6rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.plan-kept { margin: .7rem 0 0; font-size: .86rem; color: var(--brand); font-weight: 600; }
.plan-rules { margin-top: .7rem; font-size: .9rem; }
.plan-rules summary { cursor: pointer; font-weight: 600; }
.plan-rules ol { margin: .4rem 0 0; padding-left: 1.2rem; }
.plan-rules li { margin: .2rem 0; }
.plan-edit { display: inline-block; margin-top: .6rem; font-size: .85rem; color: var(--brand); font-weight: 600; }
.plan-cta { margin: 1.2rem 0 0; font-size: .9rem; color: var(--muted); padding: .7rem .9rem; border: 1px dashed var(--rule); border-radius: var(--r-md); max-width: none; }
.plan-cta a { color: var(--brand); font-weight: 650; }

/* Walls coach: a plan built for this account, size checks, the firm's fine print */
.coach { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.coach.slim { padding-top: .8rem; }
.co-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.co-head h4 { margin: 0; font-family: var(--fd); font-size: 1rem; font-weight: 700; }
.co-head h2 { margin: 0; font-family: var(--fd); font-size: 1.25rem; max-width: none; }
.co-badge { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .2em .6em; border-radius: 999px; background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand); white-space: nowrap; }
.coach.locked p { margin: 0; font-size: .92rem; color: var(--muted); max-width: none; }
.coach.locked a { color: var(--brand); font-weight: 600; }
.co-line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .35em; font-size: .92rem; max-width: none; }
.co-line a { color: var(--brand); font-weight: 600; }
.co-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.co-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.co-plan { min-width: 0; background: var(--raise); border-radius: var(--r-md); padding: .9em 1em; display: flex; flex-direction: column; gap: .45rem; border-top: 3px solid var(--rule); }
.co-plan.lead { border-top-color: var(--brand); }
.co-plan.on { box-shadow: inset 0 0 0 1px var(--brand); }
.co-kind { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.co-plan h3 { margin: 0; font-family: var(--fd); font-size: 1.15rem; }
.co-sum { margin: 0; font-size: .93rem; line-height: 1.45; max-width: none; }
.co-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem .8rem; margin: .1rem 0 0; }
.co-nums div { min-width: 0; }
.co-nums dt { font-size: .74rem; color: var(--muted); font-weight: 600; }
.co-nums dd { margin: 0; font-family: var(--fd); font-weight: 700; font-variant-numeric: tabular-nums; }
.co-plans.big .co-nums { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 560px) { .co-plans.big .co-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.co-act { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .3rem; }
.co-why { margin: 0; padding-left: 1.1rem; font-size: .88rem; color: var(--muted); display: grid; gap: .25rem; }
.co-rules summary, .co-know summary, .coach details > summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.co-rules ol { margin: .4rem 0 0; padding-left: 1.2rem; font-size: .9rem; display: grid; gap: .2rem; }
.co-sumhead { font-weight: 500; }
.coach details > summary { list-style-position: outside; }
.coach details[open] > summary { margin-bottom: .7rem; }
.co-exp { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .4rem; }
.co-exp li { font-size: .9rem; line-height: 1.4; padding: .5em .75em; border-radius: var(--r-md); background: var(--raise); border-left: 4px solid var(--rule); }
.co-exp li.hot { border-left-color: var(--crit); color: var(--crit-text); font-weight: 600; }
.co-exp li.warm { border-left-color: var(--warn); color: var(--warn-text); }
.co-exp li.info { border-left-color: var(--brand); }
.co-know { margin-top: .7rem; }
.co-know ul { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .45rem; }
.co-know li { font-size: .88rem; line-height: 1.45; }
.co-know a { color: var(--brand); }
.co-tag { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .15em .5em; border-radius: 999px; margin-right: .45em; vertical-align: .1em; background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); }
.co-tag.hot { background: color-mix(in srgb, var(--crit) 16%, transparent); color: var(--crit-text); }
.co-tag.warm { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn-text); }
.co-foot { margin: .7rem 0 0; font-size: .86rem; max-width: none; }
.co-foot .linkbtn { color: var(--muted); font-weight: 500; }
.coach-page { background: var(--panel); border: 1px solid var(--rule); border-top: 4px solid var(--brand); border-radius: 16px; padding: 18px 20px; margin-bottom: 18px; display: grid; gap: .7rem; }
.coach-page > .small { margin: 0; max-width: 75ch; }
.coach-page.locked { border-top-color: var(--rule); }
.co-caps { margin: 0; font-size: .9rem; color: var(--muted); max-width: none; }
.co-caps b { color: var(--ink); }
.co-auto { background: var(--raise); padding: .7rem .9rem; border-radius: var(--r-md); margin: 0; }
.co-auto small { display: block; color: var(--muted); font-weight: 400; margin-top: .15rem; }
.co-upsell { margin: 0; }

/* Discipline Score: app view, public card */
.ring .ring-track { stroke: color-mix(in srgb, var(--ink) 10%, transparent); }
.ring .ring-fill { stroke: var(--brand); transition: stroke-dasharray .6s ease; }
.ring-mid .ring-fill { stroke: var(--warn); } .ring-low .ring-fill { stroke: var(--crit); }
.ring .ring-num { font-family: var(--fd); font-weight: 750; font-size: 52px; fill: var(--ink); font-variant-numeric: tabular-nums; }
.ring .ring-sub { font-size: 14px; fill: var(--muted); font-weight: 600; }
.dz-ring { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; }
.dz-ring svg { max-width: 100%; height: auto; }
.dz-level { margin: 0; font-family: var(--fd); font-weight: 700; font-size: 1.25rem; }
.dz-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 32px; align-items: center; background: var(--panel); border: 1px solid var(--rule); border-radius: 16px; padding: 20px 24px; }
@media (max-width: 700px) { .dz-top { grid-template-columns: 1fr; } }
.dz-side { display: grid; gap: .8rem; min-width: 0; }
.dz-side > .small { margin: 0; }
.dz-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0; }
.dz-facts div { background: var(--raise); border-radius: var(--r-md); padding: .7em .85em; min-width: 0; }
.dz-facts dt { font-size: .78rem; color: var(--muted); font-weight: 600; }
.dz-facts dd { margin: .1rem 0 0; font-family: var(--fd); font-weight: 720; font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.dz-facts .dz-style { font-size: 1.05rem; }
.dz-facts .dz-style small { display: block; font-family: var(--f); font-weight: 500; font-size: .8rem; color: var(--muted); }
.dz-tip { margin: 0; padding: .7em .9em; border-left: 4px solid var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--panel)); border-radius: var(--r-md); max-width: none; }
.dz-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; min-width: 0; }
.dz-p-top { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; }
.dz-p-top span { font-family: var(--fd); font-weight: 720; font-variant-numeric: tabular-nums; }
.dz-bar { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 10%, transparent); margin-top: .35rem; overflow: hidden; }
.dz-bar i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.dz-parts .t-mid .dz-bar i { background: var(--warn); } .dz-parts .t-low .dz-bar i { background: var(--crit); }
.dz-parts p { margin: .35rem 0 0; font-size: .9rem; color: var(--muted); max-width: none; }
.dz-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.dz-badges li { display: flex; gap: .7rem; align-items: flex-start; background: var(--raise); border-radius: var(--r-md); padding: .7em .85em; min-width: 0; }
.dz-badges b { display: block; font-size: .95rem; }
.dz-badges small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.dz-medal { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; background: color-mix(in srgb, var(--brand) 20%, transparent); color: var(--brand); }
.dz-badges li.off { opacity: .62; } .dz-badges li.off .dz-medal { background: transparent; border: 2px dashed var(--rule); color: var(--muted); }
.dz-share-form { display: grid; gap: .6rem; }
.dz-share-form .field { margin: 0; max-width: 420px; }
.dz-opts { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; }
.dz-opts .check { margin: 0; }
.dz-link { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.dz-link .input { flex: 1 1 260px; min-width: 0; }
/* the public card */
.dz-card { background: color-mix(in srgb, var(--panel) 92%, transparent); border: 1px solid var(--rule); border-radius: 22px; padding: clamp(18px, 4vw, 34px); display: grid; gap: 1.3rem; backdrop-filter: blur(6px); }
.dz-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.2rem; align-items: flex-start; }
.dz-card-head h1 { margin: .2rem 0 .2rem; font-family: var(--fd); font-size: clamp(1.8rem, 4.5vw, 2.8rem); letter-spacing: -.02em; }
.dz-meta { margin: 0; color: var(--muted); }
.dz-verified { margin: 0; font-size: .85rem; font-weight: 600; color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--rule)); border-radius: 999px; padding: .3em .8em; white-space: nowrap; }
.dz-card-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 40px; align-items: center; }
@media (max-width: 640px) { .dz-card-main { grid-template-columns: 1fr; } }
.dz-h { margin: 0 0 .6rem; font-size: 1rem; font-family: var(--fd); }
.dz-foot { margin: 0; font-size: .84rem; color: var(--muted); max-width: none; }
.lost { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--r-md); background: var(--raise); border-left: 4px solid var(--brand); }
.lost h4 { margin: 0 0 .3rem; font-family: var(--fd); font-size: 1rem; }
.lost p { margin: 0 0 .5rem; font-size: .92rem; max-width: none; }

/* Pending orders */
.pend-orders { margin-top: 1.4rem; }
.pend-head h4 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .3rem; }
.pend-head .count { font-size: .78rem; font-weight: 700; padding: .05rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.pend-head p { margin: 0; font-size: .93rem; color: var(--muted); max-width: none; }
.pend-head p b { color: var(--ink); }
.pend-head.bad { padding: .7rem .8rem; border-radius: var(--r-sm); background: color-mix(in srgb, var(--crit) 9%, transparent); }
.pend-head .bad, .pend-head.bad p b.bad { color: var(--crit-text); }
.pend-orders .positions { margin-top: .8rem; }
.pos.pend .pos-sym::before { content: "◷ "; font-weight: 400; color: var(--muted); }
.pend-away { color: var(--muted) !important; font-weight: 600 !important; font-size: .9rem; }
.pos-sim.warm { color: var(--warn-text); }
.pend-head.warm { padding: .7rem .8rem; border-radius: var(--r-sm); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.pend-sum span + span { margin-left: .2em; }

/* News today: high-impact releases for what this account trades */
.news-today { margin-top: 1.4rem; }
.news-today h4 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .3rem; }
.news-today .count { font-size: .78rem; font-weight: 700; padding: .05rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.news-note { margin: 0 0 .6rem; font-size: .9rem; color: var(--muted); max-width: none; }
.news-today ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.news-ev { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); column-gap: .7rem; row-gap: .1rem; padding: .5rem .7rem; border-radius: var(--r-sm); background: color-mix(in srgb, var(--ink) 4%, transparent); font-size: .93rem; }
.news-ev time { font-weight: 700; font-variant-numeric: tabular-nums; grid-row: span 2; }
.news-ev time small { display: block; font-size: .74rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.news-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.news-state { color: var(--muted); font-size: .88rem; }
.news-ev.open { background: color-mix(in srgb, var(--crit) 10%, transparent); }
.news-ev.open .bad { color: var(--crit-text); }
.news-ev.done { opacity: .55; }
.news-none { margin-top: 1rem; }

/* ---------- dashboard v2: summary tiles, sections ---------- */
.acct.v2 .acct-head { margin-bottom: 1rem; }
.acct-firm .phase { display: inline-block; margin-left: .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .1rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.acct.v2 { container-type: inline-size; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 1rem; }
@container (max-width: 720px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--raise); border-radius: 12px; padding: .75rem .9rem; min-width: 0; }
.kpi > span { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.kpi b { display: block; font-size: 1.25rem; font-variant-numeric: tabular-nums; margin: .15rem 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi b.up { color: var(--brand); } .kpi b.down { color: var(--crit-text); }
.kpi small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .8rem; color: var(--muted); }
.kpi-bar { display: block; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; margin: .3rem 0 .25rem; }
.kpi-bar em { display: block; height: 100%; background: var(--brand); }
.nearest-k { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .7; margin-right: .4rem; }
.acct.v2 .sec { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.acct.v2 .sec-limits { border-top: 0; padding-top: 0; margin-top: 1.2rem; }
.sec-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .8rem; margin-bottom: .8rem; }
.sec-h h4, .fold summary h4 { margin: 0; font-size: 1.05rem; display: inline-flex; align-items: center; gap: .45rem; }
.sec-h .count { font-size: .78rem; font-weight: 700; padding: .05rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.sec-sub { font-size: .88rem; color: var(--muted); }
.limits { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@container (max-width: 780px) { .limits { grid-template-columns: minmax(0, 1fr); } }
.limits .gauge { margin: 0; }
.acct.v2 .budget { margin-top: 1rem; }
.acct.v2 .news-today { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.acct.v2 .sec-plan .tplan, .acct.v2 .sec-plan .coach, .acct.v2 .sec-plan .plan-cta { margin-top: 0; }
.fold summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .8rem; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary h4::before { content: "\25B8"; font-size: .8em; color: var(--muted); transition: transform .15s; }
.fold[open] summary h4::before { transform: rotate(90deg); }
.fold[open] > summary { margin-bottom: .9rem; }
.acct.v2 .objs, .acct.v2 .perf, .acct.v2 .today { margin-top: 0; }
.acct.v2 .acct-foot { margin-top: 1.4rem; }

.firm-change { margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 12px; background: color-mix(in srgb, var(--warn) 13%, transparent); }
.firm-change summary { cursor: pointer; font-size: .92rem; }
.firm-change summary span { color: var(--muted); }
.firm-change ul { margin: .5rem 0; padding-left: 1.1rem; font-size: .9rem; }
.firm-change p { margin: 0; }

.odds { margin: 0 0 1.2rem; padding: .9rem 1rem; border-radius: 12px; background: var(--raise); }
.odds h4 { margin: 0 0 .3rem; }
.odds-main { margin: 0 0 .6rem; max-width: none; }
.odds-main b { font-size: 1.6rem; font-variant-numeric: tabular-nums; margin-right: .3rem; }
.odds-main b.good { color: var(--brand); } .odds-main b.warm { color: var(--warn-text); } .odds-main b.bad { color: var(--crit-text); }
.odds-alt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: .5rem; }
.odds-alt span { background: var(--panel); border-radius: 9px; padding: .45rem .6rem; border: 1px solid var(--rule); }
.odds-alt span.now { border-color: var(--brand); }
.odds-alt small { display: block; font-size: .76rem; color: var(--muted); }
.odds-alt b { font-variant-numeric: tabular-nums; }
.odds .small { margin: 0; }
