/* Journal — harmonize the existing journal internals (styles.css jrnl-* system)
   with the redesign member shell. Loaded AFTER styles.css + redesign-member.css.
   We keep the tested journal markup/JS and just align the frame + palette. */
body[data-journal-page]{background:var(--bg,#0b0805);color:var(--text,#f5f1e9);font-family:var(--sans,'Hanken Grotesk',system-ui,sans-serif);color-scheme:dark}
/* Native dropdown popups (month/year picker, filter selects) and date-picker
   calendars render light-on-white by default on a dark page → unreadable.
   color-scheme:dark above tells the browser to paint them dark; the option
   colours below are the belt-and-suspenders for engines that ignore it. */
body[data-journal-page] select option,body[data-journal-page] datalist option{background:#17110a;color:#f5f1e9}
body[data-journal-page] select{color-scheme:dark}
body[data-journal-page] input[type="date"],body[data-journal-page] input[type="datetime-local"]{color-scheme:dark}
/* the journal content lives inside .rm-main; give its sections breathing room */
.rm-main .section{margin-top:8px}
.rm-main .section:first-child{margin-top:0}
.rm-main .eyebrow{font-family:var(--mono,'JetBrains Mono',monospace);font-size:11px;letter-spacing:0.16em;text-transform:uppercase;color:var(--muted,#9c9fa8)}
.rm-main h1{font-family:var(--serif,'Newsreader',serif);font-weight:500;letter-spacing:-0.02em}
.rm-main h2,.rm-main h3{font-family:var(--serif,'Newsreader',serif);font-weight:500;letter-spacing:-0.01em}
.rm-main .lead{color:var(--muted,#9c9fa8)}
.rm-main .section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:14px}
/* let the skew block + analytics use their own styles.css rules; nothing else here */

/* --- design stat cards (redesign-journal-stats.js) --- */
.jstat-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px}
.jstat-row:empty{display:none}
.jstat{position:relative;background:linear-gradient(160deg,#1a130b,#110c07);border:1px solid rgba(212,180,131,0.14);border-radius:16px;padding:22px 22px 20px;overflow:hidden;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.jstat::before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,rgba(212,180,131,0),#d4b483 45%,rgba(212,180,131,0));opacity:.55}
.jstat:hover{transform:translateY(-2px);border-color:rgba(212,180,131,0.34);box-shadow:0 14px 32px -20px rgba(212,180,131,0.55)}
.jstat__v{font-family:var(--mono,'JetBrains Mono',monospace);font-size:30px;color:#f5f1e9;font-weight:500;letter-spacing:-0.02em;line-height:1.05}
.jstat__l{font-family:var(--mono,'JetBrains Mono',monospace);font-size:9.5px;letter-spacing:0.16em;text-transform:uppercase;color:#9a8f7c;margin-top:8px}
/* soft warm glow behind the hero — ambiance, scoped to the journal page */
.jrnl-pagehead{position:relative}
.jrnl-pagehead::before{content:"";position:absolute;inset:-50px -20% auto -12%;height:280px;background:radial-gradient(55% 100% at 26% 0%,rgba(212,180,131,0.11),transparent 70%);pointer-events:none;z-index:-1}

/* First-trade onboarding checklist (redesign-journal-onboarding.js) */
.jonb[hidden]{display:none}
.jonb{margin:4px 0 8px;animation:jonb-in .4s cubic-bezier(.22,1,.36,1) both}
.jonb.is-leaving{animation:jonb-out .26s ease forwards}
@keyframes jonb-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes jonb-out{to{opacity:0;transform:translateY(-6px)}}
.jonb-body{position:relative;background:linear-gradient(165deg,rgba(212,180,131,0.10),rgba(212,180,131,0.02) 55%,transparent),#130d07;border:1px solid rgba(212,180,131,0.24);border-radius:18px;padding:22px 24px;overflow:hidden}
.jonb-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.jonb-eyebrow{font-family:var(--mono,'JetBrains Mono',monospace);font-size:10px;letter-spacing:0.16em;text-transform:uppercase;color:#d4b483}
.jonb-title{font-family:var(--serif,'Newsreader',serif);font-weight:500;font-size:22px;color:#f5f1e9;margin:5px 0 0;letter-spacing:-0.01em}
.jonb-lead{font-size:13.5px;color:#c9c2b4;line-height:1.5;margin:7px 0 0;max-width:560px}
.jonb-dismiss{flex:none;font-family:var(--mono,'JetBrains Mono',monospace);font-size:10px;letter-spacing:0.08em;text-transform:uppercase;color:#8a8478;background:transparent;border:1px solid rgba(245,241,233,0.14);border-radius:100px;padding:6px 12px;cursor:pointer;transition:color .15s,border-color .15s}
.jonb-dismiss:hover{color:#e6ddca;border-color:rgba(212,180,131,0.4)}
.jonb-bar{height:6px;background:rgba(245,241,233,0.07);border-radius:100px;margin:18px 0 6px;overflow:hidden}
.jonb-bar__fill{display:block;height:100%;width:0;border-radius:100px;background:linear-gradient(90deg,#d4b483,#e6c896);transition:width .8s cubic-bezier(.22,1,.36,1)}
.jonb-bar__label{font-family:var(--mono,'JetBrains Mono',monospace);font-size:10px;letter-spacing:0.06em;color:#8a8478;margin-bottom:14px}
.jonb-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.jonb-step{display:flex;align-items:flex-start;gap:13px;padding:12px 14px;background:#0d0a06;border:1px solid rgba(245,241,233,0.06);border-radius:12px;transition:border-color .2s,background .2s}
.jonb-step.is-done{background:rgba(115,240,176,0.05);border-color:rgba(115,240,176,0.18)}
.jonb-step__mark{flex:none;width:28px;height:28px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:rgba(245,241,233,0.06);border:1px solid rgba(245,241,233,0.12)}
.jonb-step.is-done .jonb-step__mark{background:rgba(115,240,176,0.14);border-color:rgba(115,240,176,0.4);color:#73f0b0}
.jonb-num{font-family:var(--mono,'JetBrains Mono',monospace);font-size:12px;color:#9a8f7c}
.jonb-check{width:16px;height:16px;color:#73f0b0}
.jonb-check__path{stroke-dasharray:26;stroke-dashoffset:26;animation:jonb-draw .5s ease forwards .1s}
@keyframes jonb-draw{to{stroke-dashoffset:0}}
.jonb-step__body{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.jonb-step__label{font-size:14px;color:#f5f1e9;font-weight:500}
.jonb-step.is-done .jonb-step__label{color:#d7d0c2}
.jonb-step__why{font-size:12px;color:#8a8478;line-height:1.45}
.jonb-step__prog{flex:none;align-self:center;font-family:var(--mono,'JetBrains Mono',monospace);font-size:12px;color:#d4b483}
.jonb-step__cta{flex:none;align-self:center;font-family:var(--sans,'Hanken Grotesk',system-ui,sans-serif);font-size:12.5px;font-weight:600;color:#1a1206;background:linear-gradient(180deg,#e6cfa6,#d4b483);border:0;border-radius:9px;padding:8px 14px;cursor:pointer;white-space:nowrap;transition:filter .12s,transform .12s}
.jonb-step__cta:hover{filter:brightness(1.05);transform:translateY(-1px)}
@media (prefers-reduced-motion:reduce){.jonb,.jonb.is-leaving{animation:none}.jonb-bar__fill{transition:none}.jonb-check__path{animation:none;stroke-dashoffset:0}}
/* --- Weekly digest (redesign-journal-weekly.js) — seven-day recap --- */
.jweek[hidden]{display:none}
.jweek-head{font-size:13.5px;color:#c9c2b4;margin:0 0 14px;line-height:1.5}
.jweek-empty{font-size:13px;color:#8a8478;padding:18px;border:1px dashed rgba(245,241,233,0.12);border-radius:12px;max-width:560px}
.jweek-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.jweek-card{background:#15100a;border:1px solid rgba(245,241,233,0.08);border-radius:13px;padding:16px 18px;display:flex;flex-direction:column;gap:4px}
.jweek-card__v{font-family:var(--mono,'JetBrains Mono',monospace);font-size:19px;color:#f5f1e9;letter-spacing:-0.01em;line-height:1.15}
.jweek-card__v.jweek-pos{color:#73f0b0}
.jweek-card__v.jweek-neg{color:#ff8b8b}
.jweek-card__l{font-family:var(--mono,'JetBrains Mono',monospace);font-size:9.5px;letter-spacing:0.12em;text-transform:uppercase;color:#8a8478}
.jweek-card__s{margin-top:4px}
.jweek-delta{font-family:var(--mono,'JetBrains Mono',monospace);font-size:10px;letter-spacing:0.02em}
.jweek-delta--up{color:#73f0b0}
.jweek-delta--dn{color:#ff8b8b}
.jweek-delta--flat{color:#7d776c}

/* --- Session context panel (redesign-journal-context.js) — real worker data --- */
.jrnl-ctx .section-heading{align-items:flex-start}
.jctx-lede{font-size:13.5px;margin:6px 0 0;max-width:640px}
.jctx-tabs{display:inline-flex;gap:4px;background:#0d0a06;border:1px solid rgba(245,241,233,0.1);border-radius:100px;padding:3px}
.jctx-tab{font-family:var(--mono,'JetBrains Mono',monospace);font-size:11px;letter-spacing:0.08em;color:#9c9fa8;background:transparent;border:0;border-radius:100px;padding:6px 13px;cursor:pointer}
.jctx-tab:hover{color:#e6ddca}
.jctx-tab.is-active{background:rgba(212,180,131,0.16);color:#e6c896}
.jctx-tab:focus-visible{outline:2px solid #d4b483;outline-offset:1px}

.jctx-body{margin-top:14px}
.jctx-loading,.jctx-empty{font-size:13px;color:#8a8478;padding:22px 0;text-align:center;line-height:1.5}
.jctx-empty{border:1px dashed rgba(245,241,233,0.12);border-radius:12px;padding:20px;max-width:560px}

.jctx-fear{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid rgba(245,241,233,0.07)}
.jctx-fear__lbl{font-family:var(--mono,'JetBrains Mono',monospace);font-size:10px;letter-spacing:0.14em;text-transform:uppercase;color:#7d776c}
.jctx-chips{display:flex;gap:6px;flex-wrap:wrap}
.jctx-chips--posture{margin-bottom:14px}
.jctx-chip{font-family:var(--mono,'JetBrains Mono',monospace);font-size:12px;color:#e8e2d5;background:#0d0a06;border:1px solid rgba(245,241,233,0.09);border-radius:8px;padding:5px 10px}
.jctx-chip b{color:#8a8478;font-weight:600;margin-right:6px;font-size:9.5px;letter-spacing:.06em;text-transform:uppercase}
.jctx-chip--z b{color:#d4b483}

.jctx-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.jctx-regime{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;color:#d7d0c2;background:#0d0a06;border:1px solid rgba(245,241,233,0.1);border-radius:100px;padding:6px 13px}
.jctx-regime__dot{width:8px;height:8px;border-radius:50%;background:#8a8478;flex:none}
.jctx-regime--pos .jctx-regime__dot{background:#73f0b0}
.jctx-regime--neg .jctx-regime__dot{background:#ff8b8b}
.jctx-spot{font-size:12.5px;color:#9c9fa8}
.jctx-spot b{font-family:var(--mono,'JetBrains Mono',monospace);color:#f5f1e9;margin-left:5px}
.jctx-when{font-family:var(--mono,'JetBrains Mono',monospace);font-size:10.5px;color:#7d776c;margin-left:auto}

.jctx-ladder{display:flex;flex-direction:column;gap:5px}
.jctx-lvl{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:12px;background:#0d0a06;border:1px solid rgba(245,241,233,0.06);border-left:3px solid rgba(245,241,233,0.2);border-radius:8px;padding:9px 13px}
.jctx-lvl__name{font-size:12.5px;color:#c9c2b4}
.jctx-lvl__val{font-family:var(--mono,'JetBrains Mono',monospace);font-size:14px;color:#f5f1e9;letter-spacing:-0.01em}
.jctx-lvl__dist{font-family:var(--mono,'JetBrains Mono',monospace);font-size:11px;color:#8a8478;min-width:120px;text-align:right}
.jctx-lvl__dist.is-up{color:#73f0b0}
.jctx-lvl__dist.is-dn{color:#ff9b8b}
.jctx-lvl--call{border-left-color:#73f0b0}
.jctx-lvl--put{border-left-color:#ff8b8b}
.jctx-lvl--gamma{border-left-color:#d4b483}
.jctx-lvl--zero{border-left-color:#7d8aa8}
.jctx-lvl--focus{border-left-color:#c39be0}
.jctx-lvl--spot{background:rgba(212,180,131,0.08);border-left-color:#f5f1e9;border-color:rgba(212,180,131,0.25)}
.jctx-lvl--spot .jctx-lvl__name{color:#e6c896}

.jctx-sub{margin-top:16px;padding-top:14px;border-top:1px solid rgba(245,241,233,0.07)}
.jctx-sub__h{font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:#7d776c;margin-bottom:9px}
.jctx-foot{margin-top:14px;font-family:var(--mono,'JetBrains Mono',monospace);font-size:10px;letter-spacing:0.04em;color:#6f695f}
/* Personal edge line (idea #1 — loop the loop): your historical edge in today's regime */
.jctx-edge:empty{display:none}
.jctx-edge__wrap{margin:0 0 14px;padding:12px 14px;background:rgba(212,180,131,0.06);border:1px solid rgba(212,180,131,0.18);border-radius:10px}
.jctx-edge__lbl{display:block;font-family:var(--mono,'JetBrains Mono',monospace);font-size:10px;letter-spacing:0.1em;text-transform:uppercase;color:#e6c896;margin-bottom:8px}
.jctx-edge__note{display:block;margin-top:8px;font-family:var(--mono,'JetBrains Mono',monospace);font-size:9.5px;letter-spacing:0.03em;color:#6f695f}

.jctx-upsell{border:1px solid rgba(212,180,131,0.3);border-radius:14px;background:linear-gradient(160deg,rgba(212,180,131,0.08),rgba(212,180,131,0.02));padding:22px;max-width:620px}
.jctx-upsell__eyebrow{font-family:var(--mono,'JetBrains Mono',monospace);font-size:9.5px;letter-spacing:0.14em;text-transform:uppercase;color:#d4b483;margin-bottom:9px}
.jctx-upsell h3{font-size:18px;color:#f5f1e9;margin:0 0 8px;line-height:1.25}
.jctx-upsell p{font-size:13.5px;color:#b3ab9c;line-height:1.55;margin:0 0 12px}
.jctx-upsell__list{margin:0 0 14px;padding:0 0 0 2px;list-style:none;display:flex;flex-direction:column;gap:7px}
.jctx-upsell__list li{font-size:13px;color:#c9c2b4;line-height:1.45;padding-left:20px;position:relative}
.jctx-upsell__list li::before{content:"→";position:absolute;left:0;color:#d4b483;font-family:var(--mono,'JetBrains Mono',monospace)}
.jctx-upsell__list b{color:#e6ddca;font-weight:600}
.jctx-upsell__fine{font-size:11px !important;color:#7d776c !important;margin:0 0 14px !important}
.jctx-upsell__cta{display:inline-block;font-family:var(--mono,'JetBrains Mono',monospace);font-size:12px;letter-spacing:0.04em;color:#0d0a06;background:#d4b483;border-radius:8px;padding:9px 16px;text-decoration:none}
.jctx-upsell__cta:hover{background:#e6c896}

/* --- Edge vs GEX structure at entry (redesign-journal-structure-edge.js) ---
   The moat, aggregated: the trader's own results bucketed by the objective
   dealer structure frozen at entry. Same palette as the Session context panel. */
.jse[hidden]{display:none}
.jse-body{display:flex;flex-direction:column;gap:26px;margin-top:4px}
.jse-coach{border:1px dashed rgba(212,180,131,0.28);border-radius:14px;background:linear-gradient(160deg,rgba(212,180,131,0.06),rgba(212,180,131,0.015));padding:22px;max-width:660px}
.jse-coach p{font-size:13.5px;color:#b3ab9c;line-height:1.6;margin:0}
.jse-coach p+p{margin-top:10px}
.jse-coach b{color:#e6c896;font-weight:600}
.jse-coach__count{font-family:var(--mono,'JetBrains Mono',monospace);font-size:11.5px;color:#8a8478}

.jse-view{display:flex;flex-direction:column;gap:12px}
.jse-view__head{display:flex;flex-direction:column;gap:4px}
.jse-view__title{font-family:var(--serif,'Newsreader',serif);font-weight:500;font-size:17px;color:#f5f1e9;margin:0;letter-spacing:-0.01em}
.jse-view__explain{font-size:12.5px;color:#8a8478;line-height:1.5;margin:0;max-width:660px}
.jse-view__insight{font-size:12.5px;color:#c9c2b4;line-height:1.55;margin:0;padding:9px 13px;background:rgba(212,180,131,0.06);border:1px solid rgba(212,180,131,0.16);border-radius:9px;max-width:660px}
.jse-view__insight b{color:#e6c896;font-weight:600}

.jse-rows{display:flex;flex-direction:column;gap:9px}
.jse-row{background:#0d0a06;border:1px solid rgba(245,241,233,0.06);border-left:3px solid rgba(245,241,233,0.2);border-radius:10px;padding:12px 15px}
.jse-row--pos,.jse-row--up{border-left-color:#73f0b0}
.jse-row--neg,.jse-row--dn{border-left-color:#ff8b8b}
.jse-row--cw{border-left-color:#73f0b0}
.jse-row--pw{border-left-color:#ff8b8b}
.jse-row__top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.jse-row__name{font-size:13.5px;color:#e8e2d5;display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.jse-row__net{font-family:var(--mono,'JetBrains Mono',monospace);font-size:15px;letter-spacing:-0.01em;color:#c9c2b4}
.jse-row__net--pos{color:#73f0b0}
.jse-row__net--neg{color:#ff8b8b}
.jse-row__track{height:6px;background:rgba(245,241,233,0.05);border-radius:100px;margin:9px 0;overflow:hidden}
.jse-row__fill{display:block;height:100%;width:0;border-radius:100px;transition:width .5s cubic-bezier(.22,1,.36,1)}
.jse-row__fill--pos{background:linear-gradient(90deg,rgba(115,240,176,0.45),#73f0b0)}
.jse-row__fill--neg{background:linear-gradient(90deg,rgba(255,139,139,0.45),#ff8b8b)}
.jse-row__fill--flat{background:rgba(245,241,233,0.2)}
.jse-row__metrics{display:flex;gap:16px;flex-wrap:wrap;font-family:var(--mono,'JetBrains Mono',monospace);font-size:11px;letter-spacing:0.02em;color:#8a8478}
.jse-row__metrics b{color:#e8e2d5;font-weight:600;margin-right:4px}

.jse-badge{font-family:var(--mono,'JetBrains Mono',monospace);font-size:9px;letter-spacing:0.08em;text-transform:uppercase;padding:2px 7px;border-radius:100px;border:1px solid transparent}
.jse-badge--meaningful{color:#73f0b0;border-color:rgba(115,240,176,0.35);background:rgba(115,240,176,0.08)}
.jse-badge--developing{color:#e6c896;border-color:rgba(212,180,131,0.35);background:rgba(212,180,131,0.08)}
.jse-badge--limited{color:#c9a86a;border-color:rgba(212,180,131,0.22)}
.jse-badge--insufficient{color:#8a8478;border-color:rgba(245,241,233,0.14)}

.jse-foot{margin-top:2px;font-family:var(--mono,'JetBrains Mono',monospace);font-size:10px;letter-spacing:0.03em;color:#6f695f;line-height:1.5;max-width:680px}

/* Behaviour × structure rows (idea #4) */
.jse-brows{display:flex;flex-direction:column;gap:7px}
.jse-brow{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:12px;background:#0d0a06;border:1px solid rgba(245,241,233,0.06);border-radius:9px;padding:9px 13px}
.jse-brow__tag{font-family:var(--mono,'JetBrains Mono',monospace);font-size:11px;letter-spacing:0.02em;padding:3px 9px;border-radius:100px;border:1px solid transparent;white-space:nowrap}
.jse-brow__tag--emotion{color:#c39be0;border-color:rgba(195,155,224,0.3);background:rgba(195,155,224,0.08)}
.jse-brow__tag--mistake{color:#ff9b8b;border-color:rgba(255,139,139,0.3);background:rgba(255,139,139,0.08)}
.jse-brow__conc{font-size:12px;color:#c9c2b4}
.jse-brow__m{font-family:var(--mono,'JetBrains Mono',monospace);font-size:10.5px;color:#8a8478;white-space:nowrap}
.jse-brow__net{font-family:var(--mono,'JetBrains Mono',monospace);font-size:13px;color:#c9c2b4;white-space:nowrap}
.jse-brow__net--pos{color:#73f0b0}
.jse-brow__net--neg{color:#ff8b8b}

/* --- Per-trade candlestick chart (redesign-journal-trade-chart.js) ---
   Real 5-min candles around the trade with the frozen GEX levels overlaid.
   Pure SVG, drawn above the existing structure map in the trade drawer. */
.jrnl-tchart{background:#0d0a06;border:1px solid rgba(245,241,233,0.07);border-radius:12px;padding:14px;margin-bottom:14px}
.jrnl-tchart:empty{display:none}
.jrnl-tchart__head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:8px}
.jrnl-tchart__title{font-family:var(--serif,'Newsreader',serif);font-size:14.5px;color:#f5f1e9}
.jrnl-tchart__meta{font-family:var(--mono,'JetBrains Mono',monospace);font-size:10px;letter-spacing:0.04em;color:#8a8478}
.jrnl-tchart__svgwrap{width:100%;overflow-x:auto}
.jrnl-tchart__svg{display:block;width:100%;height:auto;min-width:300px}
.jrnl-tchart__legend{display:flex;gap:14px;flex-wrap:wrap;margin-top:10px}
.jrnl-tchart__key{font-family:var(--mono,'JetBrains Mono',monospace);font-size:10px;letter-spacing:0.03em;color:#8a8478;display:inline-flex;align-items:center;gap:6px}
.jrnl-tchart__key::before{content:"";width:12px;height:2px;border-radius:2px;background:#8a8478;display:inline-block}
.jrnl-tchart__key[data-k="entry"]::before{width:8px;height:8px;border-radius:50%;background:#f5f1e9}
.jrnl-tchart__key[data-k="exit"]::before{width:8px;height:8px;border-radius:50%;background:transparent;border:1.6px solid #e6c896}
.jrnl-tchart__key[data-k="call"]::before{background:#73f0b0}
.jrnl-tchart__key[data-k="gamma"]::before{background:#d4b483}
.jrnl-tchart__key[data-k="put"]::before{background:#ff8b8b}
.jrnl-tchart__foot{margin-top:8px;font-family:var(--mono,'JetBrains Mono',monospace);font-size:9.5px;letter-spacing:0.03em;color:#6f695f;line-height:1.5}
.jrnl-tchart__note{font-size:12.5px;color:#8a8478;line-height:1.5;padding:14px;text-align:center}
.jrnl-tchart__note--load{color:#9c9fa8}

/* Daily-plan tools (idea #2 — insert today's GEX levels) */
.jrnl-daily__tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:-2px 0 4px}
.jrnl-daily__tools .field-hint{margin:0}

/* Per-trade process scorecard (idea #3) */
.jrnl-proc{background:#0d0a06;border:1px solid rgba(245,241,233,0.07);border-radius:12px;padding:14px;margin-bottom:14px}
.jrnl-proc__head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:10px}
.jrnl-proc__title{font-family:var(--serif,'Newsreader',serif);font-size:14.5px;color:#f5f1e9}
.jrnl-proc__score{font-family:var(--mono,'JetBrains Mono',monospace);font-size:18px;color:#e6c896;font-weight:500}
.jrnl-proc__den{color:#8a8478;font-size:12px}
.jrnl-proc__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:5px}
.jrnl-proc__item{display:flex;align-items:center;gap:9px;font-size:12.5px;color:#c9c2b4}
.jrnl-proc__mark{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;border-radius:50%;font-size:10px;flex:none}
.jrnl-proc__item--ok .jrnl-proc__mark{background:rgba(115,240,176,0.14);color:#73f0b0}
.jrnl-proc__item--no .jrnl-proc__mark{background:rgba(255,139,139,0.12);color:#ff9b8b}
.jrnl-proc__item--no{color:#8a8478}
.jrnl-proc__note{margin:10px 0 0;font-size:10px}

/* Collapsible trade-form sections (progressive disclosure — keep logging fast) */
.jrnl-formsec{border:1px solid rgba(245,241,233,0.09);border-radius:11px;margin-top:10px;background:#100b07;overflow:hidden}
.jrnl-formsec>summary{list-style:none;cursor:pointer;display:flex;align-items:baseline;gap:12px;padding:13px 15px;user-select:none}
.jrnl-formsec>summary::-webkit-details-marker{display:none}
.jrnl-formsec>summary::after{content:"+";font-family:var(--mono,'JetBrains Mono',monospace);font-size:16px;color:#d4b483;line-height:1;flex:none;margin-left:4px}
.jrnl-formsec[open]>summary::after{content:"–"}
.jrnl-formsec>summary:hover{background:rgba(245,241,233,0.03)}
.jrnl-formsec>summary:focus-visible{outline:2px solid #d4b483;outline-offset:-2px}
.jrnl-formsec__t{font-size:14px;color:#f5f1e9;font-weight:500}
.jrnl-formsec__h{font-family:var(--mono,'JetBrains Mono',monospace);font-size:10px;letter-spacing:0.03em;color:#7d776c;margin-left:auto;text-align:right}
.jrnl-formsec>.jrnl-form-grid{padding:2px 15px 14px}
.jrnl-formsec>label{display:block;padding:6px 15px 14px}
@media (max-width:520px){.jrnl-formsec__h{display:none}}

/* Single "Complete view" label (Auto/Essential/Pro switch removed) */
.jrnl-mode--single .jrnl-mode__label{font-family:var(--mono,'JetBrains Mono',monospace);font-size:10px;letter-spacing:0.14em;text-transform:uppercase;color:#8a8478}

/* Trade history pager (5 per page) */
.jrnl-pager{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:14px}
.jrnl-pager__btn,.jrnl-pager__num{min-width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;background:#15100a;border:1px solid rgba(245,241,233,0.10);border-radius:9px;color:#f5f1e9;font-family:inherit;font-size:13.5px;cursor:pointer;padding:0 9px;transition:border-color .15s,background .15s}
.jrnl-pager__btn:hover:not(:disabled),.jrnl-pager__num:hover{border-color:#d4b483}
.jrnl-pager__btn:disabled{opacity:.4;cursor:not-allowed}
.jrnl-pager__num.is-active{background:rgba(212,180,131,0.16);border-color:rgba(212,180,131,0.55);color:#e0c79a;font-weight:600}
.jrnl-pager__gap{min-width:20px;text-align:center;color:#7d776c}

/* --- Log-a-trade button (opens the drawer) --- */
.jrnl-logbtn{display:inline-flex;align-items:center;gap:9px;font-family:var(--sans,'Hanken Grotesk',system-ui,sans-serif);font-size:14.5px;font-weight:600;letter-spacing:.01em;color:#1a1206;background:linear-gradient(180deg,#e6cfa6,#d4b483);border:1px solid rgba(212,180,131,.75);border-radius:11px;padding:12px 20px;cursor:pointer;box-shadow:0 6px 18px -9px rgba(212,180,131,.6);transition:transform .12s ease,box-shadow .12s ease,filter .12s ease}
.jrnl-logbtn:hover{filter:brightness(1.05);box-shadow:0 9px 24px -9px rgba(212,180,131,.72);transform:translateY(-1px)}
.jrnl-logbtn:active{transform:translateY(0)}
.jrnl-logbtn:focus-visible{outline:2px solid #e0c79a;outline-offset:2px}
.jrnl-logbtn__plus{font-size:19px;line-height:1;font-weight:500;margin-top:-1px}

/* --- Log-a-trade drawer (slide-out, right) --- */
.jrnl-drawer{position:fixed;inset:0;z-index:140;display:flex;justify-content:flex-end}
.jrnl-drawer[hidden]{display:none}
.jrnl-drawer__scrim{position:absolute;inset:0;background:rgba(6,4,2,.66);opacity:0;transition:opacity .28s ease;cursor:pointer}
.jrnl-drawer.is-open .jrnl-drawer__scrim{opacity:1}
.jrnl-drawer__panel{position:relative;width:min(560px,100%);height:100%;display:flex;flex-direction:column;background:#0f0b07;border-left:1px solid rgba(212,180,131,.22);box-shadow:-26px 0 64px -22px rgba(0,0,0,.72);transform:translateX(100%);transition:transform .3s cubic-bezier(.22,1,.36,1)}
.jrnl-drawer.is-open .jrnl-drawer__panel{transform:translateX(0)}
.jrnl-drawer__head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:22px 24px 18px;border-bottom:1px solid rgba(245,241,233,.08);flex-shrink:0}
.jrnl-drawer__head .eyebrow{font-family:var(--mono,'JetBrains Mono',monospace);font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#d4b483}
.jrnl-drawer__head h2{font-family:var(--serif,'Newsreader',serif);font-weight:500;font-size:23px;letter-spacing:-.01em;margin:4px 0 0;color:#f5f1e9}
.jrnl-drawer__close{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:9px;background:rgba(245,241,233,.05);border:1px solid rgba(245,241,233,.1);color:#b3ab9c;cursor:pointer;flex-shrink:0;transition:background .12s,color .12s}
.jrnl-drawer__close:hover{background:rgba(245,241,233,.1);color:#f5f1e9}
.jrnl-drawer__form{display:flex;flex-direction:column;min-height:0;flex:1}
.jrnl-drawer__body{overflow-y:auto;padding:20px 24px;flex:1;min-height:0}
.jrnl-drawer__foot{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:15px 24px;border-top:1px solid rgba(245,241,233,.08);background:#0d0906;flex-shrink:0}
body.jrnl-drawer-open{overflow:hidden}
.jrnl-drawer__share{margin-right:auto}
.jrnl-drawer__share[hidden]{display:none}
@media (max-width:640px){.jrnl-drawer__panel{width:100%}.jrnl-drawer__head h2{font-size:20px}}

/* --- Library cross-sell (journal → paid education; sold separately) --- */
.jrnl-upsell__card{position:relative;overflow:hidden;background:linear-gradient(180deg,#171009,#120d07);border:1px solid rgba(212,180,131,0.28);border-radius:16px;padding:26px 28px}
.jrnl-upsell__card::before{content:"";position:absolute;inset:0;background:radial-gradient(60% 120% at 100% 0%,rgba(212,180,131,0.12),transparent 60%);pointer-events:none}
.jrnl-upsell__body{position:relative;max-width:660px}
.jrnl-upsell__card h2{margin:6px 0 8px}
.jrnl-upsell__card .lead{margin:0 0 18px}
.jrnl-upsell__cta{display:inline-flex;align-items:center;gap:9px;font-family:var(--sans,'Hanken Grotesk',system-ui,sans-serif);font-size:14.5px;font-weight:600;letter-spacing:.01em;color:#1a1206;background:linear-gradient(180deg,#e6cfa6,#d4b483);border:1px solid rgba(212,180,131,.75);border-radius:11px;padding:12px 22px;text-decoration:none;box-shadow:0 6px 18px -9px rgba(212,180,131,.6);transition:transform .12s ease,box-shadow .12s ease,filter .12s ease}
.jrnl-upsell__cta:hover{filter:brightness(1.05);transform:translateY(-1px);box-shadow:0 9px 24px -9px rgba(212,180,131,.72)}
.jrnl-upsell__cta:active{transform:translateY(0)}
.jrnl-upsell__cta:focus-visible{outline:2px solid #e0c79a;outline-offset:2px}

/* --- First-run welcome (shown in the analytics slot when 0 trades) --- */
.jrnl-welcome{position:relative;overflow:hidden;background:linear-gradient(180deg,#161009,#110c07);border:1px solid rgba(212,180,131,0.24);border-radius:16px;padding:30px 30px 26px}
.jrnl-welcome::before{content:"";position:absolute;inset:0;background:radial-gradient(70% 130% at 0% 0%,rgba(212,180,131,0.13),transparent 58%);pointer-events:none}
.jrnl-welcome__intro{position:relative;max-width:640px}
.jrnl-welcome__eyebrow{font-family:var(--mono,'JetBrains Mono',monospace);font-size:11px;letter-spacing:0.16em;text-transform:uppercase;color:#d4b483;margin:0}
.jrnl-welcome__title{font-family:var(--serif,'Newsreader',serif);font-weight:500;font-size:27px;line-height:1.15;letter-spacing:-0.01em;color:#f5f1e9;margin:9px 0 0;text-wrap:balance}
.jrnl-welcome__lede{color:#b7b1a4;font-size:15px;line-height:1.6;margin:12px 0 20px}
.jrnl-welcome__cta{display:inline-flex;align-items:center;gap:9px;font-family:var(--sans,'Hanken Grotesk',system-ui,sans-serif);font-size:14.5px;font-weight:600;letter-spacing:.01em;color:#1a1206;background:linear-gradient(180deg,#e6cfa6,#d4b483);border:1px solid rgba(212,180,131,.75);border-radius:11px;padding:12px 22px;cursor:pointer;box-shadow:0 6px 18px -9px rgba(212,180,131,.6);transition:transform .12s ease,box-shadow .12s ease,filter .12s ease}
.jrnl-welcome__cta:hover{filter:brightness(1.05);transform:translateY(-1px);box-shadow:0 9px 24px -9px rgba(212,180,131,.72)}
.jrnl-welcome__cta:active{transform:translateY(0)}
.jrnl-welcome__cta:focus-visible{outline:2px solid #e0c79a;outline-offset:2px}
.jrnl-welcome__steps{position:relative;list-style:none;margin:26px 0 0;padding:22px 0 0;border-top:1px solid rgba(245,241,233,0.07);display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.jrnl-welcome__step{display:flex;gap:13px;align-items:flex-start}
.jrnl-welcome__num{flex:none;width:28px;height:28px;border-radius:100px;display:grid;place-items:center;font-family:var(--mono,'JetBrains Mono',monospace);font-size:12px;font-weight:600;color:#e0c79a;background:rgba(212,180,131,0.1);border:1px solid rgba(212,180,131,0.32)}
.jrnl-welcome__body h4{font-family:var(--serif,'Newsreader',serif);font-weight:500;font-size:16px;color:#f5f1e9;margin:2px 0 5px;letter-spacing:-0.01em}
.jrnl-welcome__body p{color:#9c9fa8;font-size:13px;line-height:1.55;margin:0}
@media (max-width:640px){.jrnl-welcome{padding:24px 20px}.jrnl-welcome__title{font-size:23px}.jrnl-welcome__steps{grid-template-columns:1fr;gap:16px}}

/* --- Email-only access gate (anonymous visitor) --- */
/* When anonymous, app.js sets html[data-journal-anon]: collapse the member
   chrome and show only the gate so the page is a clean sign-up, not an empty
   shell. */
html[data-journal-anon] .rm-side{display:none}
html[data-journal-anon] .rm-grid{display:block}
html[data-journal-anon] .rm-top__user{display:none}
html[data-journal-anon] .rm-main > :not([data-journal-gate]){display:none}
.jgate{display:flex;justify-content:center;padding:22px 0 40px}
.jgate__card{position:relative;overflow:hidden;width:100%;max-width:560px;background:linear-gradient(180deg,#161009,#110c07);border:1px solid rgba(212,180,131,0.24);border-radius:18px;padding:32px 30px 26px}
.jgate__card::before{content:"";position:absolute;inset:0;background:radial-gradient(75% 130% at 0% 0%,rgba(212,180,131,0.14),transparent 58%);pointer-events:none}
.jgate__eyebrow{position:relative;font-family:var(--mono,'JetBrains Mono',monospace);font-size:11px;letter-spacing:0.16em;text-transform:uppercase;color:#d4b483;margin:0}
.jgate__title{position:relative;font-family:var(--serif,'Newsreader',serif);font-weight:500;font-size:28px;line-height:1.14;letter-spacing:-0.01em;color:#f5f1e9;margin:9px 0 0;text-wrap:balance}
.jgate__lede{position:relative;color:#b7b1a4;font-size:15px;line-height:1.6;margin:12px 0 22px}
.jgate__form{position:relative;margin:0}
.jgate__label{display:block;font-family:var(--mono,'JetBrains Mono',monospace);font-size:10.5px;letter-spacing:0.1em;text-transform:uppercase;color:#8a8478;margin:0 0 8px}
.jgate__echo{color:#e0c79a;text-transform:none;letter-spacing:0}
.jgate__row{display:flex;gap:10px;align-items:stretch}
.jgate__input{flex:1;min-width:0;font-family:var(--sans,'Hanken Grotesk',system-ui,sans-serif);font-size:15px;color:#f5f1e9;background:rgba(245,241,233,0.04);border:1px solid rgba(245,241,233,0.14);border-radius:11px;padding:12px 14px}
.jgate__input::placeholder{color:#6f6a60}
.jgate__input:focus{outline:none;border-color:rgba(212,180,131,0.6);box-shadow:0 0 0 3px rgba(212,180,131,0.16)}
.jgate__input--code{letter-spacing:0.32em;font-family:var(--mono,'JetBrains Mono',monospace);font-size:18px;text-align:center;max-width:170px}
.jgate__btn{flex:none;font-family:var(--sans,'Hanken Grotesk',system-ui,sans-serif);font-size:14.5px;font-weight:600;letter-spacing:.01em;color:#1a1206;background:linear-gradient(180deg,#e6cfa6,#d4b483);border:1px solid rgba(212,180,131,.75);border-radius:11px;padding:12px 20px;cursor:pointer;box-shadow:0 6px 18px -9px rgba(212,180,131,.6);transition:transform .12s ease,box-shadow .12s ease,filter .12s ease}
.jgate__btn:hover{filter:brightness(1.05);transform:translateY(-1px);box-shadow:0 9px 24px -9px rgba(212,180,131,.72)}
.jgate__btn:active{transform:translateY(0)}
.jgate__btn:focus-visible{outline:2px solid #e0c79a;outline-offset:2px}
.jgate__btn:disabled{opacity:.62;cursor:default;transform:none;box-shadow:none}
.jgate__msg{margin:12px 0 0;font-size:13px;line-height:1.5;color:#9c9fa8}
.jgate__msg.is-ok{color:#9fd3a6}
.jgate__msg.is-error{color:#e6a2a2}
.jgate__alt{display:flex;gap:16px;margin:14px 0 0}
.jgate__link{background:none;border:0;padding:0;cursor:pointer;font-family:var(--sans,'Hanken Grotesk',system-ui,sans-serif);font-size:13px;color:#d4b483;text-decoration:underline;text-underline-offset:2px}
.jgate__link:hover{color:#e6cfa6}
.jgate__link:focus-visible{outline:2px solid #e0c79a;outline-offset:2px;border-radius:4px}
.jgate__points{position:relative;list-style:none;margin:24px 0 0;padding:22px 0 0;border-top:1px solid rgba(245,241,233,0.07);display:grid;gap:11px}
.jgate__points li{font-size:13.5px;line-height:1.5;color:#9c9fa8;padding-left:20px;position:relative}
.jgate__points li::before{content:"";position:absolute;left:0;top:8px;width:7px;height:7px;border-radius:2px;background:linear-gradient(180deg,#e6cfa6,#d4b483)}
.jgate__points strong{color:#f5f1e9;font-weight:600}
.jgate__fine{position:relative;margin:20px 0 0;font-size:12px;line-height:1.55;color:#7d776c}
.jgate__fine a{color:#d4b483}
@media (max-width:560px){.jgate__card{padding:26px 20px}.jgate__title{font-size:24px}.jgate__row{flex-direction:column}.jgate__input--code{max-width:none}.jgate__btn{width:100%}}

/* --- Analytics v4: time-of-day / hold-time / risk-cost notes --- */
.jrnl-holdnote,.jrnl-feenote{margin:12px 0 8px;font-size:12.5px}
.jrnl-feenote{margin-top:16px}

/* --- Calendar heat grid (month tiles + weekly totals) --- */
.jrnl-cal{min-width:560px;font-family:var(--sans,'Hanken Grotesk',system-ui,sans-serif)}
.jrnl-cal__head{display:grid;grid-template-columns:repeat(7,1fr) 0.8fr;gap:6px;margin:0 0 6px}
.jrnl-cal__head span{font-family:var(--mono,'JetBrains Mono',monospace);font-size:10px;letter-spacing:0.1em;text-transform:uppercase;color:#8a8478;text-align:center;padding:2px 0}
.jrnl-cal__head .jrnl-cal__wk{color:#d4b483}
.jrnl-cal__week{display:grid;grid-template-columns:repeat(7,1fr) 0.8fr;gap:6px;margin:0 0 6px}
.jrnl-cal__cell{position:relative;min-height:62px;border:1px solid rgba(245,241,233,0.06);border-radius:9px;padding:6px 7px;background:rgba(245,241,233,0.015);display:flex;flex-direction:column;gap:2px;text-align:left}
.jrnl-cal__cell--empty{border-color:transparent;background:transparent}
button.jrnl-cal__cell{cursor:pointer;font:inherit;color:inherit;transition:transform .1s ease,border-color .1s ease,filter .1s ease}
button.jrnl-cal__cell:hover{transform:translateY(-1px);border-color:rgba(212,180,131,0.5);filter:brightness(1.08)}
button.jrnl-cal__cell:focus-visible{outline:2px solid #e0c79a;outline-offset:1px}
.jrnl-cal__num{font-family:var(--mono,'JetBrains Mono',monospace);font-size:10.5px;color:#8a8478}
.jrnl-cal__pnl{font-family:var(--mono,'JetBrains Mono',monospace);font-size:12.5px;font-weight:600;font-variant-numeric:tabular-nums;margin-top:auto}
.jrnl-cal__ct{font-family:var(--mono,'JetBrains Mono',monospace);font-size:9.5px;color:#8a8478}
.jrnl-cal__cell--pos{border-color:rgba(120,182,124,0.32)}
.jrnl-cal__cell--pos .jrnl-cal__pnl{color:#9fd3a6}
.jrnl-cal__cell--pos.jrnl-cal__cell--l1{background:rgba(120,182,124,0.10)}
.jrnl-cal__cell--pos.jrnl-cal__cell--l2{background:rgba(120,182,124,0.20)}
.jrnl-cal__cell--pos.jrnl-cal__cell--l3{background:rgba(120,182,124,0.32)}
.jrnl-cal__cell--neg{border-color:rgba(214,124,124,0.32)}
.jrnl-cal__cell--neg .jrnl-cal__pnl{color:#e6a2a2}
.jrnl-cal__cell--neg.jrnl-cal__cell--l1{background:rgba(214,124,124,0.10)}
.jrnl-cal__cell--neg.jrnl-cal__cell--l2{background:rgba(214,124,124,0.20)}
.jrnl-cal__cell--neg.jrnl-cal__cell--l3{background:rgba(214,124,124,0.32)}
.jrnl-cal__cell--zero .jrnl-cal__pnl{color:#9c9fa8}
.jrnl-cal__wktot{align-items:flex-end;justify-content:center;font-family:var(--mono,'JetBrains Mono',monospace);font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;background:rgba(245,241,233,0.02)}
.jrnl-cal__foot{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;margin-top:10px;padding-top:12px;border-top:1px solid rgba(245,241,233,0.07)}
.jrnl-cal__footmo{font-family:var(--serif,'Newsreader',serif);font-size:16px;color:#f5f1e9}
.jrnl-cal__footnet{font-family:var(--mono,'JetBrains Mono',monospace);font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}
.jrnl-cal__note{margin-top:10px}
@media (prefers-reduced-motion:reduce){button.jrnl-cal__cell{transition:none}}

/* --- Daily journal (plan + reflection) --- */
.jrnl-daily__datewrap{display:inline-flex;flex-direction:column;gap:5px;font-family:var(--mono,'JetBrains Mono',monospace);font-size:10px;letter-spacing:0.1em;text-transform:uppercase;color:#8a8478}
.jrnl-daily__date{font-family:var(--sans,'Hanken Grotesk',system-ui,sans-serif);font-size:13px;color:#f5f1e9;background:rgba(245,241,233,0.04);border:1px solid rgba(245,241,233,0.14);border-radius:9px;padding:8px 10px}
.jrnl-daily__date:focus{outline:none;border-color:rgba(212,180,131,0.6);box-shadow:0 0 0 3px rgba(212,180,131,0.16)}
.jrnl-daily__form{display:grid;gap:16px}
.jrnl-daily__field{display:flex;flex-direction:column;gap:7px}
.jrnl-daily__label{font-family:var(--mono,'JetBrains Mono',monospace);font-size:10.5px;letter-spacing:0.1em;text-transform:uppercase;color:#d4b483}
.jrnl-daily__ta{font-family:var(--sans,'Hanken Grotesk',system-ui,sans-serif);font-size:14.5px;line-height:1.55;color:#f5f1e9;background:rgba(245,241,233,0.03);border:1px solid rgba(245,241,233,0.12);border-radius:11px;padding:12px 14px;resize:vertical;min-height:92px}
.jrnl-daily__ta::placeholder{color:#6f6a60}
.jrnl-daily__ta:focus{outline:none;border-color:rgba(212,180,131,0.55);box-shadow:0 0 0 3px rgba(212,180,131,0.14)}
.jrnl-daily__foot{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.jrnl-daily__status{font-size:12.5px}
.jrnl-daily__status.jrnl-error{color:#e6a2a2}

/* --- Trade form: keep fields top-aligned so a helper line never stretches the
   row-neighbour's input into a tall box (label is display:grid site-wide). --- */
.jrnl-form-grid{align-items:start}
.jrnl-form-grid > label{align-content:start}

/* --- Quick-pick chips (mistakes / emotions) --- */
.jrnl-chippick{display:flex;flex-wrap:wrap;gap:5px;margin:4px 0 7px}
.jrnl-chippick button{font-family:var(--mono,'JetBrains Mono',monospace);font-size:10.5px;letter-spacing:0.02em;color:#b7b1a4;background:rgba(245,241,233,0.04);border:1px solid rgba(245,241,233,0.12);border-radius:100px;padding:4px 10px;cursor:pointer;transition:border-color .1s ease,color .1s ease,background .1s ease}
.jrnl-chippick button:hover{color:#e6cfa6;border-color:rgba(212,180,131,0.45);background:rgba(212,180,131,0.08)}
.jrnl-chippick button:focus-visible{outline:2px solid #e0c79a;outline-offset:1px}

/* --- Goals & risk limits --- */
.jrnl-goals__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;align-items:end}
.jrnl-goals__grid label{display:flex;flex-direction:column;gap:7px}
.jrnl-goals__lbl{font-family:var(--mono,'JetBrains Mono',monospace);font-size:10.5px;letter-spacing:0.08em;text-transform:uppercase;color:#8a8478;line-height:1.35;min-height:28px;display:flex;align-items:flex-start}
.jrnl-goals__grid input{width:100%;font-family:var(--sans,'Hanken Grotesk',system-ui,sans-serif);font-size:14px;color:#f5f1e9;background:rgba(245,241,233,0.04);border:1px solid rgba(245,241,233,0.14);border-radius:9px;padding:9px 11px}
.jrnl-goals__grid input:focus{outline:none;border-color:rgba(212,180,131,0.6);box-shadow:0 0 0 3px rgba(212,180,131,0.16)}
.jrnl-goals__foot{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:16px}
.jrnl-goals__status{font-size:12.5px}
.jrnl-goals__status.jrnl-error{color:#e6a2a2}
.jrnl-goals__mo{font-family:var(--mono,'JetBrains Mono',monospace);font-size:10.5px;letter-spacing:0.08em;text-transform:uppercase;margin:18px 0 10px}
.jrnl-goals__rows{display:grid;gap:8px}
.jrnl-goal{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;padding:10px 0;border-top:1px solid rgba(245,241,233,0.06)}
.jrnl-goal__l{flex:1 1 180px;font-size:13.5px;color:#cfc8ba}
.jrnl-goal__v{font-family:var(--mono,'JetBrains Mono',monospace);font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}
.jrnl-goal__m{font-family:var(--mono,'JetBrains Mono',monospace);font-size:11px}

/* --- Sortable table headers --- */
.jrnl-sort{display:inline-flex;align-items:center;gap:5px;background:none;border:0;padding:0;margin:0;cursor:pointer;font:inherit;color:inherit;letter-spacing:inherit}
.jrnl-sort:hover{color:#e6cfa6}
.jrnl-sort.is-active{color:#e6cfa6}
.jrnl-sort:focus-visible{outline:2px solid #e0c79a;outline-offset:2px;border-radius:4px}
.jrnl-sort__arr{font-size:9px;color:#d4b483}
.jrnl-sort__arr--off{color:#5f5a51}

/* --- Pagehead actions: Log a trade + Duplicate last --- */
.jrnl-pagehead__actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.jrnl-logbtn--ghost{color:#e6cfa6;background:transparent;border:1px solid rgba(212,180,131,.42);box-shadow:none}
.jrnl-logbtn--ghost:hover{filter:none;background:rgba(212,180,131,.08);transform:translateY(-1px);box-shadow:none}
.jrnl-logbtn--ghost[hidden]{display:none}

/* Subtle affiliate nudge under the journal upsell (2026-08-25) */
.jrnl-affline{text-align:center;font-size:13px;color:#8a8478;line-height:1.55;margin:14px auto 0;max-width:600px}
.jrnl-affline strong{color:#e6c896;font-weight:600}
.jrnl-affline a{color:#d4b483}

/* G-246: a paper trade, marked beside the instrument where it is read rather
   than buried in the tag list at the far right. Written before the generated
   marker so gen-themes.py writes the dark and white variants for it. */
.jt-paper { display: inline-block; margin-left: 6px; padding: 1px 5px; border-radius: 3px;
  font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(125,119,108,.16); color: #7d776c; vertical-align: 1px; }

/* ===== GEX THEMES (GENERATED - do not edit, run scripts/gen-themes.py) ===== */
/* -- theme dark -- */
html[data-theme="dark"] body[data-journal-page] { background: var(--bg,#000000); }
html[data-theme="dark"] body[data-journal-page] select option, html[data-theme="dark"] body[data-journal-page] datalist option { background: #070605; }
html[data-theme="dark"] .rm-main .eyebrow { color: var(--muted,#8f97a3); }
html[data-theme="dark"] .rm-main .lead { color: var(--muted,#8f97a3); }
html[data-theme="dark"] .jstat { background: linear-gradient(160deg,#080705,#08090b); }
html[data-theme="dark"] .jonb-body { background: linear-gradient(165deg,rgba(212,180,131,0.10),rgba(212,180,131,0.02) 55%,transparent),#050504; }
html[data-theme="dark"] .jonb-step { background: #040405; }
html[data-theme="dark"] .jweek-card { background: #0b0c0e; }
html[data-theme="dark"] .jweek-delta--flat { color: #7d8590; }
html[data-theme="dark"] .jctx-tabs { background: #040405; }
html[data-theme="dark"] .jctx-tab { color: #8f97a3; }
html[data-theme="dark"] .jctx-fear__lbl { color: #7d8590; }
html[data-theme="dark"] .jctx-chip { background: #040405; }
html[data-theme="dark"] .jctx-regime { background: #040405; }
html[data-theme="dark"] .jctx-spot { color: #8f97a3; }
html[data-theme="dark"] .jctx-when { color: #7d8590; }
html[data-theme="dark"] .jctx-lvl { background: #040405; }
html[data-theme="dark"] .jctx-sub__h { color: #7d8590; }
html[data-theme="dark"] .jctx-upsell__fine { color: #7d8590; }
html[data-theme="dark"] .jctx-upsell__cta { color: #040405; }
html[data-theme="dark"] .jse-row { background: #040405; }
html[data-theme="dark"] .jse-brow { background: #040405; }
html[data-theme="dark"] .jrnl-tchart { background: #040405; }
html[data-theme="dark"] .jrnl-tchart__note--load { color: #8f97a3; }
html[data-theme="dark"] .jrnl-proc { background: #040405; }
html[data-theme="dark"] .jrnl-formsec { background: #050403; }
html[data-theme="dark"] .jrnl-formsec__h { color: #7d8590; }
html[data-theme="dark"] .jrnl-pager__btn, html[data-theme="dark"] .jrnl-pager__num { background: #0b0c0e; }
html[data-theme="dark"] .jrnl-pager__gap { color: #7d8590; }
html[data-theme="dark"] .jrnl-drawer__scrim { background: rgba(5, 4, 3, .66); }
html[data-theme="dark"] .jrnl-drawer__panel { background: #050403; }
html[data-theme="dark"] .jrnl-drawer__foot { background: #050403; }
html[data-theme="dark"] .jrnl-upsell__card { background: linear-gradient(180deg,#070604,#050403); }
html[data-theme="dark"] .jrnl-welcome { background: linear-gradient(180deg,#070604,#08090b); }
html[data-theme="dark"] .jrnl-welcome__body p { color: #8f97a3; }
html[data-theme="dark"] .jgate__card { background: linear-gradient(180deg,#070604,#08090b); }
html[data-theme="dark"] .jgate__msg { color: #8f97a3; }
html[data-theme="dark"] .jgate__points li { color: #8f97a3; }
html[data-theme="dark"] .jgate__fine { color: #7d8590; }
html[data-theme="dark"] .jrnl-cal__cell--zero .jrnl-cal__pnl { color: #8f97a3; }
html[data-theme="dark"] .jt-paper { background: rgba(125, 133, 144, .16); }
html[data-theme="dark"] .jt-paper { color: #7d8590; }
/* -- theme white -- */
html[data-theme="white"] body[data-journal-page] { background: var(--bg,#faf8f4); }
html[data-theme="white"] body[data-journal-page] { color: var(--text,#241f16); }
html[data-theme="white"] body[data-journal-page] select option, html[data-theme="white"] body[data-journal-page] datalist option { background: #f6f4f1; }
html[data-theme="white"] body[data-journal-page] select option, html[data-theme="white"] body[data-journal-page] datalist option { color: #241f16; }
html[data-theme="white"] .rm-main .eyebrow { color: var(--muted,#6c675d); }
html[data-theme="white"] .rm-main .lead { color: var(--muted,#6c675d); }
html[data-theme="white"] .jstat { background: linear-gradient(160deg,#f6f4f1,#f6f2ea); }
html[data-theme="white"] .jstat { border-color: rgba(165, 128, 60, 0.14); }
html[data-theme="white"] .jstat::before { background: linear-gradient(90deg,rgba(165, 128, 60, 0),#a5803c 45%,rgba(165, 128, 60, 0)); }
html[data-theme="white"] .jstat:hover { border-color: rgba(165, 128, 60, 0.34); }
html[data-theme="white"] .jstat__v { color: #241f16; }
html[data-theme="white"] .jrnl-pagehead::before { background: radial-gradient(55% 100% at 26% 0%,rgba(165, 128, 60, 0.11),transparent 70%); }
html[data-theme="white"] .jonb-body { background: linear-gradient(165deg,rgba(165, 128, 60, 0.10),rgba(165, 128, 60, 0.02) 55%,transparent),#f6f4f1; }
html[data-theme="white"] .jonb-body { border-color: rgba(165, 128, 60, 0.24); }
html[data-theme="white"] .jonb-eyebrow { color: #a5803c; }
html[data-theme="white"] .jonb-title { color: #241f16; }
html[data-theme="white"] .jonb-lead { color: #807869; }
html[data-theme="white"] .jonb-dismiss { color: #8a8478; }
html[data-theme="white"] .jonb-dismiss { border-color: rgba(36, 31, 22, 0.14); }
html[data-theme="white"] .jonb-dismiss:hover { color: #372e1b; }
html[data-theme="white"] .jonb-dismiss:hover { border-color: rgba(165, 128, 60, 0.4); }
html[data-theme="white"] .jonb-bar { background: rgba(36, 31, 22, 0.07); }
html[data-theme="white"] .jonb-bar__fill { background: linear-gradient(90deg,#a5803c,#8f6f2c); }
html[data-theme="white"] .jonb-bar__label { color: #8a8478; }
html[data-theme="white"] .jonb-step { background: #fbfaf7; }
html[data-theme="white"] .jonb-step { border-color: rgba(36, 31, 22, 0.06); }
html[data-theme="white"] .jonb-step.is-done { background: rgba(28, 125, 79, 0.05); }
html[data-theme="white"] .jonb-step.is-done { border-color: rgba(28, 125, 79, 0.18); }
html[data-theme="white"] .jonb-step__mark { background: rgba(36, 31, 22, 0.06); }
html[data-theme="white"] .jonb-step__mark { border-color: rgba(36, 31, 22, 0.12); }
html[data-theme="white"] .jonb-step.is-done .jonb-step__mark { background: rgba(28, 125, 79, 0.14); }
html[data-theme="white"] .jonb-step.is-done .jonb-step__mark { border-color: rgba(28, 125, 79, 0.4); }
html[data-theme="white"] .jonb-step.is-done .jonb-step__mark { color: #1c7d4f; }
html[data-theme="white"] .jonb-check { color: #1c7d4f; }
html[data-theme="white"] .jonb-step__label { color: #241f16; }
html[data-theme="white"] .jonb-step.is-done .jonb-step__label { color: #6e6553; }
html[data-theme="white"] .jonb-step__why { color: #8a8478; }
html[data-theme="white"] .jonb-step__prog { color: #a5803c; }
html[data-theme="white"] .jonb-step__cta { background: linear-gradient(180deg,#8f6f2c,#a5803c); }
html[data-theme="white"] .jweek-head { color: #807869; }
html[data-theme="white"] .jweek-empty { color: #8a8478; }
html[data-theme="white"] .jweek-empty { border-color: rgba(36, 31, 22, 0.12); }
html[data-theme="white"] .jweek-card { background: #f4f0e8; }
html[data-theme="white"] .jweek-card { border-color: rgba(36, 31, 22, 0.08); }
html[data-theme="white"] .jweek-card__v { color: #241f16; }
html[data-theme="white"] .jweek-card__v.jweek-pos { color: #1c7d4f; }
html[data-theme="white"] .jweek-card__v.jweek-neg { color: #c04747; }
html[data-theme="white"] .jweek-card__l { color: #8a8478; }
html[data-theme="white"] .jweek-delta--up { color: #1c7d4f; }
html[data-theme="white"] .jweek-delta--dn { color: #c04747; }
html[data-theme="white"] .jweek-delta--flat { color: #8a8478; }
html[data-theme="white"] .jctx-tabs { background: #fbfaf7; }
html[data-theme="white"] .jctx-tabs { border-color: rgba(36, 31, 22, 0.1); }
html[data-theme="white"] .jctx-tab { color: #6c675d; }
html[data-theme="white"] .jctx-tab:hover { color: #372e1b; }
html[data-theme="white"] .jctx-tab.is-active { background: rgba(165, 128, 60, 0.16); }
html[data-theme="white"] .jctx-tab.is-active { color: #8f6f2c; }
html[data-theme="white"] .jctx-tab:focus-visible { outline-color: #a5803c; }
html[data-theme="white"] .jctx-loading, html[data-theme="white"] .jctx-empty { color: #8a8478; }
html[data-theme="white"] .jctx-empty { border-color: rgba(36, 31, 22, 0.12); }
html[data-theme="white"] .jctx-fear { border-bottom-color: rgba(36, 31, 22, 0.07); }
html[data-theme="white"] .jctx-fear__lbl { color: #8a8478; }
html[data-theme="white"] .jctx-chip { color: #352d1d; }
html[data-theme="white"] .jctx-chip { background: #fbfaf7; }
html[data-theme="white"] .jctx-chip { border-color: rgba(36, 31, 22, 0.09); }
html[data-theme="white"] .jctx-chip b { color: #8a8478; }
html[data-theme="white"] .jctx-chip--z b { color: #a5803c; }
html[data-theme="white"] .jctx-regime { color: #6e6553; }
html[data-theme="white"] .jctx-regime { background: #fbfaf7; }
html[data-theme="white"] .jctx-regime { border-color: rgba(36, 31, 22, 0.1); }
html[data-theme="white"] .jctx-regime__dot { background: #8a8478; }
html[data-theme="white"] .jctx-regime--pos .jctx-regime__dot { background: #1c7d4f; }
html[data-theme="white"] .jctx-regime--neg .jctx-regime__dot { background: #c04747; }
html[data-theme="white"] .jctx-spot { color: #6c675d; }
html[data-theme="white"] .jctx-spot b { color: #241f16; }
html[data-theme="white"] .jctx-when { color: #8a8478; }
html[data-theme="white"] .jctx-lvl { background: #fbfaf7; }
html[data-theme="white"] .jctx-lvl { border-color: rgba(36, 31, 22, 0.06); }
html[data-theme="white"] .jctx-lvl { border-left-color: rgba(36, 31, 22, 0.2); }
html[data-theme="white"] .jctx-lvl__name { color: #807869; }
html[data-theme="white"] .jctx-lvl__val { color: #241f16; }
html[data-theme="white"] .jctx-lvl__dist { color: #8a8478; }
html[data-theme="white"] .jctx-lvl__dist.is-up { color: #1c7d4f; }
html[data-theme="white"] .jctx-lvl__dist.is-dn { color: #371e1b; }
html[data-theme="white"] .jctx-lvl--spot { background: rgba(165, 128, 60, 0.08); }
html[data-theme="white"] .jctx-lvl--spot { border-color: rgba(165, 128, 60, 0.25); }
html[data-theme="white"] .jctx-lvl--spot .jctx-lvl__name { color: #8f6f2c; }
html[data-theme="white"] .jctx-sub { border-top-color: rgba(36, 31, 22, 0.07); }
html[data-theme="white"] .jctx-sub__h { color: #8a8478; }
html[data-theme="white"] .jctx-edge__wrap { background: rgba(165, 128, 60, 0.06); }
html[data-theme="white"] .jctx-edge__wrap { border-color: rgba(165, 128, 60, 0.18); }
html[data-theme="white"] .jctx-edge__lbl { color: #8f6f2c; }
html[data-theme="white"] .jctx-upsell { border-color: rgba(165, 128, 60, 0.3); }
html[data-theme="white"] .jctx-upsell { background: linear-gradient(160deg,rgba(165, 128, 60, 0.08),rgba(165, 128, 60, 0.02)); }
html[data-theme="white"] .jctx-upsell__eyebrow { color: #a5803c; }
html[data-theme="white"] .jctx-upsell h3 { color: #241f16; }
html[data-theme="white"] .jctx-upsell p { color: #6e6759; }
html[data-theme="white"] .jctx-upsell__list li { color: #807869; }
html[data-theme="white"] .jctx-upsell__list li::before { color: #a5803c; }
html[data-theme="white"] .jctx-upsell__list b { color: #372e1b; }
html[data-theme="white"] .jctx-upsell__fine { color: #8a8478; }
html[data-theme="white"] .jctx-upsell__cta { color: #fbfaf7; }
html[data-theme="white"] .jctx-upsell__cta { background: #a5803c; }
html[data-theme="white"] .jctx-upsell__cta:hover { background: #8f6f2c; }
html[data-theme="white"] .jse-coach { border-color: rgba(165, 128, 60, 0.28); }
html[data-theme="white"] .jse-coach { background: linear-gradient(160deg,rgba(165, 128, 60, 0.06),rgba(165, 128, 60, 0.015)); }
html[data-theme="white"] .jse-coach p { color: #6e6759; }
html[data-theme="white"] .jse-coach b { color: #8f6f2c; }
html[data-theme="white"] .jse-coach__count { color: #8a8478; }
html[data-theme="white"] .jse-view__title { color: #241f16; }
html[data-theme="white"] .jse-view__explain { color: #8a8478; }
html[data-theme="white"] .jse-view__insight { color: #807869; }
html[data-theme="white"] .jse-view__insight { background: rgba(165, 128, 60, 0.06); }
html[data-theme="white"] .jse-view__insight { border-color: rgba(165, 128, 60, 0.16); }
html[data-theme="white"] .jse-view__insight b { color: #8f6f2c; }
html[data-theme="white"] .jse-row { background: #fbfaf7; }
html[data-theme="white"] .jse-row { border-color: rgba(36, 31, 22, 0.06); }
html[data-theme="white"] .jse-row { border-left-color: rgba(36, 31, 22, 0.2); }
html[data-theme="white"] .jse-row__name { color: #352d1d; }
html[data-theme="white"] .jse-row__net { color: #807869; }
html[data-theme="white"] .jse-row__net--pos { color: #1c7d4f; }
html[data-theme="white"] .jse-row__net--neg { color: #c04747; }
html[data-theme="white"] .jse-row__track { background: rgba(36, 31, 22, 0.05); }
html[data-theme="white"] .jse-row__fill--pos { background: linear-gradient(90deg,rgba(28, 125, 79, 0.45),#1c7d4f); }
html[data-theme="white"] .jse-row__fill--neg { background: linear-gradient(90deg,rgba(192, 71, 71, 0.45),#c04747); }
html[data-theme="white"] .jse-row__fill--flat { background: rgba(36, 31, 22, 0.2); }
html[data-theme="white"] .jse-row__metrics { color: #8a8478; }
html[data-theme="white"] .jse-row__metrics b { color: #352d1d; }
html[data-theme="white"] .jse-badge--meaningful { color: #1c7d4f; }
html[data-theme="white"] .jse-badge--meaningful { border-color: rgba(28, 125, 79, 0.35); }
html[data-theme="white"] .jse-badge--meaningful { background: rgba(28, 125, 79, 0.08); }
html[data-theme="white"] .jse-badge--developing { color: #8f6f2c; }
html[data-theme="white"] .jse-badge--developing { border-color: rgba(165, 128, 60, 0.35); }
html[data-theme="white"] .jse-badge--developing { background: rgba(165, 128, 60, 0.08); }
html[data-theme="white"] .jse-badge--limited { color: #372d1b; }
html[data-theme="white"] .jse-badge--limited { border-color: rgba(165, 128, 60, 0.22); }
html[data-theme="white"] .jse-badge--insufficient { color: #8a8478; }
html[data-theme="white"] .jse-badge--insufficient { border-color: rgba(36, 31, 22, 0.14); }
html[data-theme="white"] .jse-brow { background: #fbfaf7; }
html[data-theme="white"] .jse-brow { border-color: rgba(36, 31, 22, 0.06); }
html[data-theme="white"] .jse-brow__tag--emotion { color: #2b1b37; }
html[data-theme="white"] .jse-brow__tag--mistake { color: #371e1b; }
html[data-theme="white"] .jse-brow__tag--mistake { border-color: rgba(192, 71, 71, 0.3); }
html[data-theme="white"] .jse-brow__tag--mistake { background: rgba(192, 71, 71, 0.08); }
html[data-theme="white"] .jse-brow__conc { color: #807869; }
html[data-theme="white"] .jse-brow__m { color: #8a8478; }
html[data-theme="white"] .jse-brow__net { color: #807869; }
html[data-theme="white"] .jse-brow__net--pos { color: #1c7d4f; }
html[data-theme="white"] .jse-brow__net--neg { color: #c04747; }
html[data-theme="white"] .jrnl-tchart { background: #fbfaf7; }
html[data-theme="white"] .jrnl-tchart { border-color: rgba(36, 31, 22, 0.07); }
html[data-theme="white"] .jrnl-tchart__title { color: #241f16; }
html[data-theme="white"] .jrnl-tchart__meta { color: #8a8478; }
html[data-theme="white"] .jrnl-tchart__key { color: #8a8478; }
html[data-theme="white"] .jrnl-tchart__key::before { background: #8a8478; }
html[data-theme="white"] .jrnl-tchart__key[data-k="entry"]::before { background: #241f16; }
html[data-theme="white"] .jrnl-tchart__key[data-k="exit"]::before { border-color: #8f6f2c; }
html[data-theme="white"] .jrnl-tchart__key[data-k="call"]::before { background: #1c7d4f; }
html[data-theme="white"] .jrnl-tchart__key[data-k="gamma"]::before { background: #a5803c; }
html[data-theme="white"] .jrnl-tchart__key[data-k="put"]::before { background: #c04747; }
html[data-theme="white"] .jrnl-tchart__note { color: #8a8478; }
html[data-theme="white"] .jrnl-tchart__note--load { color: #6c675d; }
html[data-theme="white"] .jrnl-proc { background: #fbfaf7; }
html[data-theme="white"] .jrnl-proc { border-color: rgba(36, 31, 22, 0.07); }
html[data-theme="white"] .jrnl-proc__title { color: #241f16; }
html[data-theme="white"] .jrnl-proc__score { color: #8f6f2c; }
html[data-theme="white"] .jrnl-proc__den { color: #8a8478; }
html[data-theme="white"] .jrnl-proc__item { color: #807869; }
html[data-theme="white"] .jrnl-proc__item--ok .jrnl-proc__mark { background: rgba(28, 125, 79, 0.14); }
html[data-theme="white"] .jrnl-proc__item--ok .jrnl-proc__mark { color: #1c7d4f; }
html[data-theme="white"] .jrnl-proc__item--no .jrnl-proc__mark { background: rgba(192, 71, 71, 0.12); }
html[data-theme="white"] .jrnl-proc__item--no .jrnl-proc__mark { color: #371e1b; }
html[data-theme="white"] .jrnl-proc__item--no { color: #8a8478; }
html[data-theme="white"] .jrnl-formsec { background: #f6f3f1; }
html[data-theme="white"] .jrnl-formsec { border-color: rgba(36, 31, 22, 0.09); }
html[data-theme="white"] .jrnl-formsec>summary::after { color: #a5803c; }
html[data-theme="white"] .jrnl-formsec>summary:hover { background: rgba(36, 31, 22, 0.03); }
html[data-theme="white"] .jrnl-formsec>summary:focus-visible { outline-color: #a5803c; }
html[data-theme="white"] .jrnl-formsec__t { color: #241f16; }
html[data-theme="white"] .jrnl-formsec__h { color: #8a8478; }
html[data-theme="white"] .jrnl-mode--single .jrnl-mode__label { color: #8a8478; }
html[data-theme="white"] .jrnl-pager__btn, html[data-theme="white"] .jrnl-pager__num { background: #f4f0e8; }
html[data-theme="white"] .jrnl-pager__btn, html[data-theme="white"] .jrnl-pager__num { color: #241f16; }
html[data-theme="white"] .jrnl-pager__btn, html[data-theme="white"] .jrnl-pager__num { border-color: rgba(36, 31, 22, 0.10); }
html[data-theme="white"] .jrnl-pager__btn:hover:not(:disabled), html[data-theme="white"] .jrnl-pager__num:hover { border-color: #a5803c; }
html[data-theme="white"] .jrnl-pager__num.is-active { background: rgba(165, 128, 60, 0.16); }
html[data-theme="white"] .jrnl-pager__num.is-active { border-color: rgba(165, 128, 60, 0.55); }
html[data-theme="white"] .jrnl-pager__num.is-active { color: #b08a45; }
html[data-theme="white"] .jrnl-pager__gap { color: #8a8478; }
html[data-theme="white"] .jrnl-logbtn { background: linear-gradient(180deg,#8f6f2c,#a5803c); }
html[data-theme="white"] .jrnl-logbtn { border-color: rgba(165, 128, 60, .75); }
html[data-theme="white"] .jrnl-logbtn:focus-visible { outline-color: #b08a45; }
html[data-theme="white"] .jrnl-drawer__scrim { background: rgba(246, 244, 241, .66); }
html[data-theme="white"] .jrnl-drawer__panel { background: #f6f4f1; }
html[data-theme="white"] .jrnl-drawer__panel { border-left-color: rgba(165, 128, 60, .22); }
html[data-theme="white"] .jrnl-drawer__head { border-bottom-color: rgba(36, 31, 22, .08); }
html[data-theme="white"] .jrnl-drawer__head .eyebrow { color: #a5803c; }
html[data-theme="white"] .jrnl-drawer__head h2 { color: #241f16; }
html[data-theme="white"] .jrnl-drawer__close { background: rgba(36, 31, 22, .05); }
html[data-theme="white"] .jrnl-drawer__close { color: #6e6759; }
html[data-theme="white"] .jrnl-drawer__close { border-color: rgba(36, 31, 22, .1); }
html[data-theme="white"] .jrnl-drawer__close:hover { background: rgba(36, 31, 22, .1); }
html[data-theme="white"] .jrnl-drawer__close:hover { color: #241f16; }
html[data-theme="white"] .jrnl-drawer__foot { background: #f6f3f1; }
html[data-theme="white"] .jrnl-drawer__foot { border-top-color: rgba(36, 31, 22, .08); }
html[data-theme="white"] .jrnl-upsell__card { background: linear-gradient(180deg,#f6f4f1,#f6f4f1); }
html[data-theme="white"] .jrnl-upsell__card { border-color: rgba(165, 128, 60, 0.28); }
html[data-theme="white"] .jrnl-upsell__card::before { background: radial-gradient(60% 120% at 100% 0%,rgba(165, 128, 60, 0.12),transparent 60%); }
html[data-theme="white"] .jrnl-upsell__cta { background: linear-gradient(180deg,#8f6f2c,#a5803c); }
html[data-theme="white"] .jrnl-upsell__cta { border-color: rgba(165, 128, 60, .75); }
html[data-theme="white"] .jrnl-upsell__cta:focus-visible { outline-color: #b08a45; }
html[data-theme="white"] .jrnl-welcome { background: linear-gradient(180deg,#f6f4f1,#f6f2ea); }
html[data-theme="white"] .jrnl-welcome { border-color: rgba(165, 128, 60, 0.24); }
html[data-theme="white"] .jrnl-welcome::before { background: radial-gradient(70% 130% at 0% 0%,rgba(165, 128, 60, 0.13),transparent 58%); }
html[data-theme="white"] .jrnl-welcome__eyebrow { color: #a5803c; }
html[data-theme="white"] .jrnl-welcome__title { color: #241f16; }
html[data-theme="white"] .jrnl-welcome__lede { color: #2e2b24; }
html[data-theme="white"] .jrnl-welcome__cta { background: linear-gradient(180deg,#8f6f2c,#a5803c); }
html[data-theme="white"] .jrnl-welcome__cta { border-color: rgba(165, 128, 60, .75); }
html[data-theme="white"] .jrnl-welcome__cta:focus-visible { outline-color: #b08a45; }
html[data-theme="white"] .jrnl-welcome__steps { border-top-color: rgba(36, 31, 22, 0.07); }
html[data-theme="white"] .jrnl-welcome__num { color: #b08a45; }
html[data-theme="white"] .jrnl-welcome__num { background: rgba(165, 128, 60, 0.1); }
html[data-theme="white"] .jrnl-welcome__num { border-color: rgba(165, 128, 60, 0.32); }
html[data-theme="white"] .jrnl-welcome__body h4 { color: #241f16; }
html[data-theme="white"] .jrnl-welcome__body p { color: #6c675d; }
html[data-theme="white"] .jgate__card { background: linear-gradient(180deg,#f6f4f1,#f6f2ea); }
html[data-theme="white"] .jgate__card { border-color: rgba(165, 128, 60, 0.24); }
html[data-theme="white"] .jgate__card::before { background: radial-gradient(75% 130% at 0% 0%,rgba(165, 128, 60, 0.14),transparent 58%); }
html[data-theme="white"] .jgate__eyebrow { color: #a5803c; }
html[data-theme="white"] .jgate__title { color: #241f16; }
html[data-theme="white"] .jgate__lede { color: #2e2b24; }
html[data-theme="white"] .jgate__label { color: #8a8478; }
html[data-theme="white"] .jgate__echo { color: #b08a45; }
html[data-theme="white"] .jgate__input { color: #241f16; }
html[data-theme="white"] .jgate__input { background: rgba(36, 31, 22, 0.04); }
html[data-theme="white"] .jgate__input { border-color: rgba(36, 31, 22, 0.14); }
html[data-theme="white"] .jgate__input:focus { border-color: rgba(165, 128, 60, 0.6); }
html[data-theme="white"] .jgate__btn { background: linear-gradient(180deg,#8f6f2c,#a5803c); }
html[data-theme="white"] .jgate__btn { border-color: rgba(165, 128, 60, .75); }
html[data-theme="white"] .jgate__btn:focus-visible { outline-color: #b08a45; }
html[data-theme="white"] .jgate__msg { color: #6c675d; }
html[data-theme="white"] .jgate__msg.is-ok { color: #1b371e; }
html[data-theme="white"] .jgate__msg.is-error { color: #371b1b; }
html[data-theme="white"] .jgate__link { color: #a5803c; }
html[data-theme="white"] .jgate__link:hover { color: #8f6f2c; }
html[data-theme="white"] .jgate__link:focus-visible { outline-color: #b08a45; }
html[data-theme="white"] .jgate__points { border-top-color: rgba(36, 31, 22, 0.07); }
html[data-theme="white"] .jgate__points li { color: #6c675d; }
html[data-theme="white"] .jgate__points li::before { background: linear-gradient(180deg,#8f6f2c,#a5803c); }
html[data-theme="white"] .jgate__points strong { color: #241f16; }
html[data-theme="white"] .jgate__fine { color: #8a8478; }
html[data-theme="white"] .jgate__fine a { color: #a5803c; }
html[data-theme="white"] .jrnl-cal__head span { color: #8a8478; }
html[data-theme="white"] .jrnl-cal__head .jrnl-cal__wk { color: #a5803c; }
html[data-theme="white"] .jrnl-cal__cell { background: rgba(36, 31, 22, 0.015); }
html[data-theme="white"] .jrnl-cal__cell { border-color: rgba(36, 31, 22, 0.06); }
html[data-theme="white"] button.jrnl-cal__cell:hover { border-color: rgba(165, 128, 60, 0.5); }
html[data-theme="white"] button.jrnl-cal__cell:focus-visible { outline-color: #b08a45; }
html[data-theme="white"] .jrnl-cal__num { color: #8a8478; }
html[data-theme="white"] .jrnl-cal__ct { color: #8a8478; }
html[data-theme="white"] .jrnl-cal__cell--pos .jrnl-cal__pnl { color: #1b371e; }
html[data-theme="white"] .jrnl-cal__cell--neg .jrnl-cal__pnl { color: #371b1b; }
html[data-theme="white"] .jrnl-cal__cell--zero .jrnl-cal__pnl { color: #6c675d; }
html[data-theme="white"] .jrnl-cal__wktot { background: rgba(36, 31, 22, 0.02); }
html[data-theme="white"] .jrnl-cal__foot { border-top-color: rgba(36, 31, 22, 0.07); }
html[data-theme="white"] .jrnl-cal__footmo { color: #241f16; }
html[data-theme="white"] .jrnl-daily__datewrap { color: #8a8478; }
html[data-theme="white"] .jrnl-daily__date { color: #241f16; }
html[data-theme="white"] .jrnl-daily__date { background: rgba(36, 31, 22, 0.04); }
html[data-theme="white"] .jrnl-daily__date { border-color: rgba(36, 31, 22, 0.14); }
html[data-theme="white"] .jrnl-daily__date:focus { border-color: rgba(165, 128, 60, 0.6); }
html[data-theme="white"] .jrnl-daily__label { color: #a5803c; }
html[data-theme="white"] .jrnl-daily__ta { color: #241f16; }
html[data-theme="white"] .jrnl-daily__ta { background: rgba(36, 31, 22, 0.03); }
html[data-theme="white"] .jrnl-daily__ta { border-color: rgba(36, 31, 22, 0.12); }
html[data-theme="white"] .jrnl-daily__ta:focus { border-color: rgba(165, 128, 60, 0.55); }
html[data-theme="white"] .jrnl-daily__status.jrnl-error { color: #371b1b; }
html[data-theme="white"] .jrnl-chippick button { color: #2e2b24; }
html[data-theme="white"] .jrnl-chippick button { background: rgba(36, 31, 22, 0.04); }
html[data-theme="white"] .jrnl-chippick button { border-color: rgba(36, 31, 22, 0.12); }
html[data-theme="white"] .jrnl-chippick button:hover { color: #8f6f2c; }
html[data-theme="white"] .jrnl-chippick button:hover { border-color: rgba(165, 128, 60, 0.45); }
html[data-theme="white"] .jrnl-chippick button:hover { background: rgba(165, 128, 60, 0.08); }
html[data-theme="white"] .jrnl-chippick button:focus-visible { outline-color: #b08a45; }
html[data-theme="white"] .jrnl-goals__lbl { color: #8a8478; }
html[data-theme="white"] .jrnl-goals__grid input { color: #241f16; }
html[data-theme="white"] .jrnl-goals__grid input { background: rgba(36, 31, 22, 0.04); }
html[data-theme="white"] .jrnl-goals__grid input { border-color: rgba(36, 31, 22, 0.14); }
html[data-theme="white"] .jrnl-goals__grid input:focus { border-color: rgba(165, 128, 60, 0.6); }
html[data-theme="white"] .jrnl-goals__status.jrnl-error { color: #371b1b; }
html[data-theme="white"] .jrnl-goal { border-top-color: rgba(36, 31, 22, 0.06); }
html[data-theme="white"] .jrnl-goal__l { color: #302b21; }
html[data-theme="white"] .jrnl-sort:hover { color: #8f6f2c; }
html[data-theme="white"] .jrnl-sort.is-active { color: #8f6f2c; }
html[data-theme="white"] .jrnl-sort:focus-visible { outline-color: #b08a45; }
html[data-theme="white"] .jrnl-sort__arr { color: #a5803c; }
html[data-theme="white"] .jrnl-logbtn--ghost { color: #8f6f2c; }
html[data-theme="white"] .jrnl-logbtn--ghost { border-color: rgba(165, 128, 60, .42); }
html[data-theme="white"] .jrnl-logbtn--ghost:hover { background: rgba(165, 128, 60, .08); }
html[data-theme="white"] .jrnl-affline { color: #8a8478; }
html[data-theme="white"] .jrnl-affline strong { color: #8f6f2c; }
html[data-theme="white"] .jrnl-affline a { color: #a5803c; }
html[data-theme="white"] .jt-paper { background: rgba(138, 132, 120, .16); }
html[data-theme="white"] .jt-paper { color: #8a8478; }
/* ===== END GEX THEMES ===== */


















































/* Desk sections (2026-09-06): the prop replay, execution quality and the regime
   report share one shape, so the three read as one family. */
.jdesk__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 0 0 14px; }
.jdesk__lbl { display: block; font-size: 12px; opacity: .75; margin-bottom: 4px; }
.jdesk__form select,
.jdesk__form input { font: inherit; font-size: 13px; padding: 7px 9px; border-radius: 8px; width: 100%; border: 1px solid var(--jrnl-line, rgba(128,128,128,.28)); background: var(--jrnl-raise, rgba(128,128,128,.06)); color: inherit; }
.jdesk__body { min-height: 40px; }
.jdesk__note { font-size: 12px; margin-top: 12px; }
.jdesk__verdict { border: 1px solid var(--jrnl-line, rgba(128,128,128,.2)); border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; }
.jdesk__verdict h3 { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; opacity: .65; margin: 0 0 6px; }
.jdesk__verdict p { margin: 0 0 6px; font-size: 13px; }
.jdesk__verdict.is-fail { border-color: var(--jrnl-neg, #b1554f); }
.jdesk__verdict.is-pass { border-color: var(--jrnl-pos, #3f8f68); }
.jdesk__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.jdesk__dim { margin: 0 0 16px; }
.jdesk__dim h4 { font-size: 13px; margin: 0 0 6px; }
.jdesk__tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.jdesk__tbl th, .jdesk__tbl td { padding: 6px 9px; border-bottom: 1px solid var(--jrnl-line, rgba(128,128,128,.16)); text-align: left; }
.jdesk__tbl th { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; opacity: .68; }
.jdesk__tbl td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jdesk__tbl .pos { color: var(--jrnl-pos, #3f8f68); }
.jdesk__tbl .neg { color: var(--jrnl-neg, #b1554f); }
.jdesk__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
