/* Journal de trading (base commune : hub.css). */
.head.compact { padding-block: clamp(22px, 4vw, 40px) 0; }
.head.compact h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.head.compact .lead { font-size: var(--t-md); }

/* ---------- Barre : onglets + compte + ajout ---------- */
.jr-bar { position: sticky; top: 60px; z-index: 30; margin-top: 22px; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; background: rgba(58, 58, 58, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.jr-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.jr-tabs::-webkit-scrollbar { display: none; }
.jr-tabs button { flex: none; font: 600 var(--t-sm)/1 var(--f-body); color: var(--ink-2); background: transparent; border: 1px solid transparent; border-radius: var(--radius); padding: 10px 12px; cursor: pointer; white-space: nowrap; }
.jr-tabs button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.jr-tabs button[aria-selected="true"] { color: #fff; background: var(--wine); border-color: var(--wine-hi); }
.jr-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.jr-actions select { width: auto; max-width: 220px; }
.btn-sm { padding: 10px 14px; font-size: var(--t-sm); }
.btn-add { white-space: nowrap; }
@media (max-width: 720px) {
  .jr-bar { top: 60px; }
  .jr-actions { width: 100%; }
  .jr-actions select { flex: 1; max-width: none; }
}

/* ---------- Formulaires (communs) ---------- */
.jr input, .jr select, .jr textarea, .dlg input, .dlg select, .dlg textarea { font: 500 var(--t-sm)/1.3 var(--f-body); color: var(--ink); background: #262626; border: 1px solid #555; border-radius: var(--radius); padding: 9px 11px; width: 100%; min-width: 0; }
.jr textarea, .dlg textarea { resize: vertical; min-height: 70px; }
.jr input:focus, .jr select:focus, .jr textarea:focus, .dlg input:focus, .dlg select:focus, .dlg textarea:focus { outline: none; border-color: var(--rose); }
.dlg [aria-invalid="true"] { border-color: var(--bear); }
.num, input.num { font-family: var(--f-mono); }
.fld { display: grid; gap: 5px; align-content: start; }
.fld > span { font: 500 var(--t-xs)/1.2 var(--f-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.fld small { color: var(--ink-3); font-size: var(--t-xs); }
.seg { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.seg .chip { padding: 8px 12px; }

/* ---------- Cartes, KPI, sections ---------- */
.view { padding-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.sec-t { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; margin: 0 0 12px; }
.sec-t h2 { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; line-height: 1; text-transform: uppercase; margin: 0; }
.sec-t .hint { font-size: var(--t-xs); color: var(--ink-3); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid3 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
@media (max-width: 980px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 178px), 1fr)); gap: 12px; }
.kpi { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(40, 40, 40, 0.55); min-width: 0; }
@media (max-width: 520px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .kpi { padding: 12px; } .kpi .v { font-size: 1rem; } }
.kpi .k { font: 500 var(--t-xs)/1.25 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.kpi .v { font: 600 clamp(1.05rem, 1.5vw, 1.3rem)/1.2 var(--f-mono); margin-top: 6px; white-space: nowrap; }
.kpi .s { font-size: var(--t-xs); color: var(--ink-3); margin-top: 3px; }
.pos { color: var(--bull); }
.neg { color: var(--bear); }
.dim { color: var(--ink-3); }
.statlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 0 28px; }
.statlist dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; }
.statlist dt, .statlist dd { margin: 0; padding: 8px 0; border-top: 1px solid var(--line); font-size: var(--t-sm); }
.statlist dt { color: var(--ink-3); }
.statlist dd { font-family: var(--f-mono); text-align: right; }
.statlist h3 { grid-column: 1 / -1; margin: 6px 0 4px; font: 500 var(--t-xs)/1.2 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--rose); }

/* ---------- Tableaux ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(34, 34, 34, 0.55); }
table.tbl { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.tbl th { position: sticky; top: 0; background: #2c2c2c; font: 500 var(--t-xs)/1.2 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); text-align: left; padding: 10px 10px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; font-family: var(--f-mono); }
.tbl .c { text-align: center; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover td { background: rgba(255, 255, 255, 0.04); }
.tbl tfoot td { border-top: 1px solid var(--line); font-weight: 600; }
.tbl .wrap-cell { white-space: normal; min-width: 180px; max-width: 360px; color: var(--ink-2); }
.tbl.cmp th, .tbl.cmp td { padding-inline: 8px; }
.tbl.cmp th { white-space: normal; vertical-align: bottom; }
.tbl.cmp td:first-child { white-space: normal; min-width: 96px; }
.tbl.jl td:first-child { white-space: nowrap; min-width: 0; }
.calc-t { table-layout: fixed; }
.calc-t td:first-child { white-space: normal; }
.tbl .ell { max-width: 196px; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.tag { display: inline-block; font: 500 11px/1 var(--f-mono); letter-spacing: 0.04em; padding: 4px 7px; border-radius: 999px; border: 1px solid #555; color: var(--ink-2); white-space: nowrap; }
.tag.long { color: var(--bull); border-color: rgba(127, 214, 160, 0.45); }
.tag.short { color: var(--bear); border-color: rgba(239, 138, 151, 0.45); }
.tag.st-eval { color: #f2c66d; border-color: rgba(242, 198, 109, 0.45); }
.tag.st-funded { color: var(--bull); border-color: rgba(127, 214, 160, 0.45); }
.tag.st-failed, .tag.st-lost { color: var(--bear); border-color: rgba(239, 138, 151, 0.45); }
.tag.st-closed, .tag.st-abandoned { color: var(--ink-3); }
.tag.pending { color: #f2c66d; border-color: rgba(242, 198, 109, 0.45); }
.tag.ok { color: var(--bull); border-color: rgba(127, 214, 160, 0.45); }
.tag.ko { color: var(--bear); border-color: rgba(239, 138, 151, 0.45); }
.stars { color: #f2c66d; letter-spacing: 1px; }
.stars.sm { font-size: 11px; letter-spacing: 0; }
.bar { position: relative; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); min-width: 56px; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; background: var(--bull); border-radius: 3px; }
.bar.warn i { background: #f2c66d; }
.bar.bad i { background: var(--bear); }

/* ---------- Barre d'outils du journal ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar input[type="search"] { flex: 1 1 200px; width: auto; }
.toolbar select { width: auto; }
.summary { display: flex; flex-wrap: wrap; gap: 6px 22px; font: 500 var(--t-sm)/1.4 var(--f-mono); color: var(--ink-2); padding: 10px 2px 0; }
.daychip { display: inline-flex; align-items: center; gap: 8px; }
/* Compléter le R (18 novembre) : bandeau au-dessus des filtres du Journal. */
.nor-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; padding: 12px 14px 12px 16px; border-radius: 12px; border: 1px solid rgba(212, 160, 23, 0.4); background: rgba(212, 160, 23, 0.08); font-size: 0.92rem; }
.daychip button { font: inherit; background: none; border: 0; color: var(--rose); cursor: pointer; padding: 0 2px; font-size: 1.1rem; line-height: 1; }
.more-row { text-align: center; padding: 12px; }

/* ---------- Graphiques (SVG) ---------- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .ax { font: 500 11px var(--f-mono); fill: var(--ink-3); }
.chart .grid-l { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.chart .zero { stroke: rgba(255, 255, 255, 0.25); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .ctip { position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 10px)); width: max-content; background: #1e1e1e; border: 1px solid #555; border-radius: var(--radius); padding: 6px 9px; font: 500 12px/1.35 var(--f-mono); color: var(--ink); white-space: nowrap; z-index: 5; }
.chart .cursor { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; }
.chart-empty { padding: 34px 10px; text-align: center; color: var(--ink-3); font-size: var(--t-sm); }

/* ---------- Calendrier ---------- */
.cal-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-nav { display: flex; gap: 8px; align-items: center; }
.cal-nav b { font-family: var(--f-display); font-size: 1.6rem; text-transform: uppercase; min-width: 210px; text-align: center; }
.cal-nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #555; background: rgba(38, 38, 38, 0.6); color: var(--ink); cursor: pointer; font-size: 1.1rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) minmax(0, 1.1fr); gap: 6px; }
.cal-grid .dh { font: 500 var(--t-xs)/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding: 4px 6px; }
.cal-day { min-height: 86px; padding: 7px 8px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(34, 34, 34, 0.55); display: flex; flex-direction: column; gap: 2px; text-align: left; color: var(--ink); font: inherit; }
.cal-day.out { opacity: 0.25; }
.cal-day.has { cursor: pointer; }
.cal-day.has:hover { border-color: var(--ink-3); }
.cal-day.today { box-shadow: inset 0 0 0 1px var(--rose); }
.cal-day .d { font: 500 var(--t-xs)/1 var(--f-mono); color: var(--ink-3); }
.cal-day .p { font: 600 var(--t-sm)/1.2 var(--f-mono); margin-top: auto; }
.cal-day .p .short { display: none; }
.cal-day .n { font-size: 11px; color: var(--ink-3); }
.cal-week { min-height: 86px; padding: 7px 8px; border-radius: var(--radius); border: 1px dashed #555; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.cal-week .d { font: 500 var(--t-xs)/1 var(--f-mono); color: var(--ink-3); margin-bottom: auto; }
.cal-week .p { font: 600 var(--t-sm)/1.2 var(--f-mono); }
@media (max-width: 720px) {
  .cal-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
  .cal-grid .dh.wk, .cal-week { display: none; }
  .cal-day { min-height: 56px; padding: 4px; }
  .cal-day .n { display: none; }
  .cal-day .p { font-size: 10px; }
  .cal-day .p .full { display: none; }
  .cal-day .p .short { display: inline; }
}
.year { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 720px) { .year { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.year button { padding: 10px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(34, 34, 34, 0.55); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.year button:hover { border-color: var(--ink-3); }
.year button .m { font: 500 var(--t-xs)/1 var(--f-mono); text-transform: uppercase; color: var(--ink-3); letter-spacing: 0.06em; }
.year button .p { display: block; font: 600 var(--t-sm)/1.3 var(--f-mono); margin-top: 6px; }

/* ---------- Sous-onglets (prop) ---------- */
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Objectifs & règles ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
@media (max-width: 720px) { .plan-grid { grid-template-columns: 1fr; } }
.rules { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--ink-2); }
.check { display: grid; gap: 8px; }
.check label { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(34, 34, 34, 0.55); cursor: pointer; color: var(--ink-2); }
.check label.done { color: var(--ink-3); text-decoration: line-through; }
.check input { width: auto; margin-top: 3px; accent-color: var(--wine); }
.check-state { font: 500 var(--t-sm)/1.2 var(--f-mono); }

/* ---------- États vides ---------- */
.empty-card { text-align: center; padding: clamp(26px, 5vw, 48px) 20px; }
.empty-card h2 { font-family: var(--f-display); font-weight: 800; font-size: 2rem; text-transform: uppercase; margin: 0; }
.empty-card p { color: var(--ink-2); max-width: 60ch; margin: 10px auto 0; }
.empty-steps { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }

/* ---------- Fenêtre de saisie ---------- */
.dlg { width: min(860px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid #555; border-radius: 10px; background: #2b2b2b; color: var(--ink); }
.dlg::backdrop { background: rgba(0, 0, 0, 0.6); }
.dlg form { display: flex; flex-direction: column; max-height: calc(100dvh - 26px); }
.dlg-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dlg-h h2 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; }
.dlg-x { font: inherit; font-size: 1.6rem; line-height: 1; background: none; border: 0; color: var(--ink-3); cursor: pointer; padding: 4px 8px; }
.dlg-b { padding: 16px 20px; overflow-y: auto; display: grid; gap: 18px; }
.dlg-f { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); background: #262626; border-radius: 0 0 10px 10px; }
.dlg-f .spacer { flex: 1; }
.dlg fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.dlg legend { font: 500 var(--t-xs)/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--rose); padding: 0; margin-bottom: 10px; }
.frow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.frow.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.frow.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.frow.end { align-items: end; }
.frow .span2 { grid-column: span 2; }
.frow .span4 { grid-column: 1 / -1; }
@media (max-width: 620px) { .frow, .frow.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .frow .span2 { grid-column: 1 / -1; } }
.preview { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 12px 14px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); font: 500 var(--t-sm)/1.4 var(--f-mono); }
.preview span b { font-weight: 600; }
.star-in { display: inline-flex; gap: 2px; }
.star-in button { font-size: 1.35rem; line-height: 1; background: none; border: 0; cursor: pointer; color: #555; padding: 2px; }
.star-in button.on { color: #f2c66d; }

/* ---------- Commentaires : modèles, sections, captures ---------- */
.tpl-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.tpl-bar small { margin-right: 4px; }
.tpl-bar .chip { padding: 6px 10px; }
.tpl-bar .sp { flex: 1; }
.cm-miss { display: grid; place-items: center; min-height: 80px; border: 1px dashed #555; border-radius: 4px; color: var(--ink-3); font-size: var(--t-xs); }
.cm-view { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.03); padding: 4px 14px 12px; }
.cm-view .cm-h { font: 500 var(--t-xs)/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 10px 0 2px; }
.cm-view h4 { font: 700 var(--t-md)/1.2 var(--f-body); margin: 14px 0 6px; color: var(--ink); }
.cm-view p { margin: 4px 0; color: var(--ink-2); font-size: var(--t-sm); white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; margin: 6px 0; }
.cm-imgs img { display: block; width: 100%; height: auto; border-radius: 4px; border: 1px solid var(--line); background: #1e1e1e; }
.tpl-ed-h { display: flex; gap: 6px; align-items: center; }
.tpl-ed textarea { min-height: 150px; font-family: var(--f-mono); font-size: var(--t-xs); line-height: 1.5; }

/* ---------- Rappel de sauvegarde ---------- */
.bk-banner { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 18px; padding: 12px 14px; border: 1px solid rgba(242, 198, 109, 0.45); border-radius: var(--radius); background: rgba(242, 198, 109, 0.08); font-size: var(--t-sm); color: var(--ink-2); }
.bk-banner .sp { flex: 1; }

/* ---------- Divers ---------- */
.jr-local { margin: 26px 0 0; font-size: var(--t-xs); color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.dlg .ac-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.dlg .ac-kv dt { color: var(--ink-3); }
.dlg .ac-kv dd { margin: 0; }
.linkbtn { font: inherit; background: none; border: 0; color: var(--rose); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; background: #1e1e1e; border: 1px solid #555; border-radius: var(--radius); padding: 10px 16px; font-size: var(--t-sm); color: var(--ink); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); }
.fab { display: none; }
@media (max-width: 720px) {
  .fab { display: grid; place-items: center; position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--wine); color: #fff; font-size: 1.9rem; border: 0; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); cursor: pointer; }
  .btn-add { display: none; }
}
.lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.lists textarea { min-height: 150px; font-size: var(--t-xs); line-height: 1.5; }
.inst-tbl input { padding: 6px 8px; }

/* Bilans de la semaine / du mois (3 novembre 2026) */
.rv-nav b { font-size: 1.3rem; min-width: 0; }
.rv-nav button:disabled { opacity: 0.35; cursor: default; }
.rv-me { display: grid; gap: 16px; align-content: start; }
.rv-me .sec-t { margin-bottom: 0; }
.rv-me textarea { min-height: 84px; }
.rv-prev { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid rgba(242, 198, 109, 0.35); border-radius: var(--radius); background: rgba(242, 198, 109, 0.06); }
.rv-prev .k { font: 500 var(--t-xs)/1.2 var(--f-mono); letter-spacing: 0.07em; text-transform: uppercase; color: #f2c66d; }
.rv-prev p { margin: 0; color: var(--ink); }
#rv-saved.ok { color: var(--bull); }
.rv-h3 { margin: 0 0 4px; font: 500 var(--t-xs)/1.2 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--rose); }
.rv-goal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: var(--t-sm); }
.rv-goal > span:last-of-type { font-family: var(--f-mono); }
.rv-goal .bar { grid-column: 1 / -1; }
.tbl tr.cur td { background: rgba(138, 27, 44, 0.18); }
.rv-kp dl { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 12px; }
.rv-kp dd { overflow-wrap: anywhere; }
@media (max-width: 520px) { .rv-nav b { font-size: 1.05rem; } .rv-kp dl { grid-template-columns: minmax(0, 1fr); } .rv-kp dt { padding-bottom: 0; } .rv-kp dd { border-top: 0; padding-top: 2px; text-align: left; } }
.rv-nudge { border-color: rgba(242, 198, 109, 0.45); background: rgba(242, 198, 109, 0.05); }
.rv-nudge .sec-t { margin-bottom: 4px; }
.rv-due { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 12px 0 2px; border-top: 1px solid var(--line); }
.rv-nudge .sec-t + .rv-due { border-top: 0; }

/* =====================================================================================
   REFONTE v2 (10 novembre 2026) : le journal au style du nouvel accueil (index-v2.html) et de v2.css.
   Tout est sous « html.v2 » (classe posée par la ligne DESIGN_V2 de journal.html) : sans elle, ce bloc n'a aucun effet
   et le journal garde son style actuel. Préfixe « .jr » (la page) ou « .dlg » : passe devant les règles de même forme
   de v2.css, chargé après ce fichier. En-tête, liens entre outils, avertissement et pied de page : v2.css.
   Rendus propres à la v2 dans journal.js (isV2) : graphiques en dégradé et colonnes arrondies, jours du calendrier
   teintés par classes (up / down, intensité --t), montants des KPI réduits s'ils débordent, onglet ouvert visible.
   ===================================================================================== */

/* ---------- Encoche en paysage (iPhone, journal installé) : marges latérales au moins aussi larges que l'encoche ---------- */
html.v2 .jr { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* ---------- Titre de page : plus compact que sur les autres pages (le journal est une application) ---------- */
html.v2 .head.compact { padding-block: clamp(26px, 4.4vw, 52px) 0; }
html.v2 .jr .head.compact h1 { font-size: clamp(2.6rem, 6.4vw, 4.4rem); }
html.v2 .jr .head.compact .lead { font-size: 1.05rem; max-width: 62ch; }

/* ---------- Barre collante : verre flottant sous l'en-tête (66 px), onglets en contrôle segmenté ---------- */
html.v2 .jr .jr-bar { top: calc(76px + env(safe-area-inset-top, 0px)); margin-top: 26px; padding: 6px; gap: 6px 8px; border: 1px solid var(--line); border-radius: 16px; background: rgba(18, 18, 18, 0.84); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9); }
html.v2 .jr .jr-tabs { flex: 0 1 auto; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, 0.24); }
html.v2 .jr .jr-tabs button { font: 500 0.88rem/1 var(--f-body); padding: 10px 13px; border: 0; border-radius: 9px; color: var(--ink-3); transition: color 0.2s, background 0.2s, box-shadow 0.2s; }
html.v2 .jr .jr-tabs button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
html.v2 .jr .jr-tabs button[aria-selected="true"] { color: #fff; background: linear-gradient(180deg, #a8263d, #8a1b2c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 6px 16px -6px rgba(138, 27, 44, 0.95); }
html.v2 .jr .jr-tabs button:focus-visible { outline-offset: -2px; }
html.v2 .jr .jr-actions { gap: 6px; }
html.v2 .jr .jr-actions select { height: 42px; padding-block: 0; font-weight: 500; }
html.v2 .jr .btn-add { height: 42px; padding-inline: 16px; }
@media (max-width: 720px) {
  /* En-tête de 64 px ; onglets qui défilent : fondu à droite (la suite est là), onglet ouvert ramené par journal.js. */
  html.v2 .jr .jr-bar { top: calc(72px + env(safe-area-inset-top, 0px)); margin-top: 20px; padding: 5px; gap: 5px; border-radius: 14px; }
  html.v2 .jr .jr-tabs { flex: 1 1 100%; padding-right: 30px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent); }
  html.v2 .jr .jr-tabs button { padding: 10px 11px; font-size: 0.86rem; }
  html.v2 .jr .jr-actions select { height: 40px; }
}

/* ---------- Bandeau de sauvegarde et ligne « données dans ce navigateur » ---------- */
html.v2 .jr .bk-banner { position: relative; margin-top: 16px; padding: 12px 14px 12px 52px; border: 1px solid rgba(242, 198, 109, 0.34); border-radius: 14px; background: linear-gradient(90deg, rgba(242, 198, 109, 0.11), rgba(242, 198, 109, 0.03) 70%); color: var(--ink-2); }
html.v2 .jr .bk-banner::before { content: ""; position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(242, 198, 109, 0.3); background: rgba(242, 198, 109, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2c66d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7.5 10.5L12 15l4.5-4.5M5 19.5h14'/%3E%3C/svg%3E") center / 15px no-repeat; }
html.v2 .jr .bk-banner > span:first-child { padding-top: 3px; }
@media (max-width: 520px) { html.v2 .jr .bk-banner .sp { display: none; } html.v2 .jr .bk-banner .btn { flex: 1 1 auto; } }
html.v2 .jr .jr-local { margin-top: 24px; padding: 12px 16px; gap: 8px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--glass); font-size: 0.8rem; line-height: 1.5; }
html.v2 .jr .jr-local::before { content: ""; flex: none; width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(231, 161, 171, 0.22); background: rgba(138, 27, 44, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e7a1ab' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='9.5' rx='2.5'/%3E%3Cpath d='M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
html.v2 .jr .jr-local > span { flex: 0 1 auto; }
html.v2 .jr .jr-local .linkbtn { padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, 0.04); color: var(--ink-2); font-weight: 500; text-decoration: none; transition: background 0.2s, border-color 0.2s, color 0.2s; }
html.v2 .jr .jr-local .linkbtn:hover { color: var(--ink); background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.26); }
@media (max-width: 720px) { html.v2 .jr .jr-local { display: grid; grid-template-columns: 26px minmax(0, 1fr); } html.v2 .jr .jr-local .linkbtn { grid-column: 2; justify-self: start; } }

/* ---------- Titres de section, indications, liens « Tout voir », compteur de la check-list ---------- */
html.v2 .jr .view { gap: 20px; }
html.v2 .jr .sec-t { margin-bottom: 14px; align-items: center; }
html.v2 .jr .sec-t h2 { font-size: 1.6rem; letter-spacing: 0.012em; }
html.v2 .jr .sec-t .hint { font-size: 0.8rem; line-height: 1.4; color: var(--ink-3); }
html.v2 .jr .check-state { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.025); font: 500 0.7rem/1.2 var(--f-mono); color: var(--ink-2); }
html.v2 .jr .sec-t .linkbtn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, 0.04); color: var(--ink-2); font: 500 0.8rem/1 var(--f-body); text-decoration: none; transition: background 0.2s, border-color 0.2s, color 0.2s; }
html.v2 .jr .sec-t .linkbtn::after { content: "\2192"; color: var(--rose); transition: transform 0.2s var(--ease); }
html.v2 .jr .sec-t .linkbtn:hover { color: var(--ink); background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.26); }
html.v2 .jr .sec-t .linkbtn:hover::after { transform: translateX(3px); }
html.v2 .jr .card:not(.tip) { padding: 22px; }
@media (max-width: 520px) { html.v2 .jr .card:not(.tip) { padding: 16px; } html.v2 .jr .sec-t h2 { font-size: 1.4rem; } }

/* ---------- KPI : carte « verre », libellé mono, montant en police d'affichage, teinte selon le signe ---------- */
html.v2 .jr .kpis { gap: 12px; }
html.v2 .jr .kpi { position: relative; overflow: hidden; padding: 16px 18px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--glass); transition: border-color 0.25s; }
html.v2 .jr .kpi::before { content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent); }
html.v2 .jr .kpi:hover { border-color: var(--line-2); }
html.v2 .jr .kpi .k { font: 500 0.68rem/1.3 var(--f-mono); letter-spacing: 0.1em; color: var(--ink-3); }
html.v2 .jr .kpi .v { font: 800 1.95rem/1 var(--f-display); letter-spacing: 0.012em; margin-top: 12px; }
html.v2 .jr .kpi .s { margin-top: 7px; font-size: 0.78rem; line-height: 1.35; color: var(--ink-3); }
html.v2 .jr .kpi:has(> .v.pos) { background: radial-gradient(120% 110% at 100% 0%, rgba(127, 214, 160, 0.1), transparent 58%), var(--glass); }
html.v2 .jr .kpi:has(> .v.pos)::before { background: linear-gradient(90deg, transparent, rgba(127, 214, 160, 0.55), transparent); }
html.v2 .jr .kpi:has(> .v.neg) { background: radial-gradient(120% 110% at 100% 0%, rgba(239, 138, 151, 0.1), transparent 58%), var(--glass); }
html.v2 .jr .kpi:has(> .v.neg)::before { background: linear-gradient(90deg, transparent, rgba(239, 138, 151, 0.55), transparent); }
@media (max-width: 520px) { html.v2 .jr .kpis { gap: 8px; } html.v2 .jr .kpi { padding: 13px 14px; } html.v2 .jr .kpi .v { font-size: 1.6rem; margin-top: 9px; } }
/* Libellé sur deux lignes dans une carte : les montants de la rangée restent alignés (lignes communes, subgrid). */
@supports (grid-template-rows: subgrid) {
  html.v2 .jr .kpi { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
  html.v2 .jr .kpi .v, html.v2 .jr .kpi .s { margin-top: 0; }
}
/* Rangées pleines plutôt qu'une carte seule sur la dernière ligne. 7 KPI (prop firms) : 3 larges puis 4 ; 8 KPI (un seul
   compte) : 2 × 4 ; 6 KPI sur écran moyen : 2 × 3. */
@media (min-width: 721px) and (max-width: 1199px) { html.v2 .jr .kpis:has(> .kpi:nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  html.v2 .jr .kpis:has(> .kpi:nth-child(7):last-child) { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  html.v2 .jr .kpis:has(> .kpi:nth-child(7):last-child) > .kpi { grid-column: span 3; }
  html.v2 .jr .kpis:has(> .kpi:nth-child(7):last-child) > .kpi:nth-child(-n+3) { grid-column: span 4; }
  html.v2 .jr .kpis:has(> .kpi:nth-child(8)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Statistiques en liste : valeur limitée à la moitié de la ligne (une valeur longue, « Taille trop grosse (5) »,
   passe à la ligne au lieu de réduire tous les libellés à une colonne étroite), date sous le montant ---------- */
html.v2 .jr .statlist:not(.rv-kp) dl { grid-template-columns: minmax(0, 1fr) fit-content(48%); column-gap: 12px; }
html.v2 .jr .statlist dt, html.v2 .jr .statlist dd { padding: 9px 0; border-top-color: var(--line); }
html.v2 .jr .statlist dd .dim { display: block; font-size: 0.74rem; }
html.v2 .jr .statlist h3 { margin: 2px 0 8px; font-size: 0.68rem; letter-spacing: 0.14em; }

/* ---------- Tableaux : en-tête discret, lignes aérées, survol ; ombres sur le bord qui défile (contenu caché) ---------- */
html.v2 .jr .tbl-wrap { --tw: #151515; border: 1px solid var(--line); border-radius: 12px; scrollbar-width: thin; scrollbar-color: #3a3a3a transparent;
  background: linear-gradient(90deg, var(--tw) 35%, rgba(21, 21, 21, 0)) 0 0 / 36px 100% no-repeat local, linear-gradient(270deg, var(--tw) 35%, rgba(21, 21, 21, 0)) 100% 0 / 36px 100% no-repeat local,
    linear-gradient(90deg, rgba(0, 0, 0, 0.6), transparent) 0 0 / 16px 100% no-repeat, linear-gradient(270deg, rgba(0, 0, 0, 0.6), transparent) 100% 0 / 16px 100% no-repeat, var(--tw); }
html.v2 .jr .tbl { font-size: 0.88rem; }
html.v2 .jr .tbl th { padding-block: 12px; background: rgba(255, 255, 255, 0.035); border-bottom: 1px solid var(--line); font: 500 0.66rem/1.2 var(--f-mono); letter-spacing: 0.1em; color: var(--ink-3); }
html.v2 .jr .tbl td { padding-block: 11px; border-bottom-color: rgba(255, 255, 255, 0.045); }
html.v2 .jr .tbl tbody tr:hover td { background: rgba(255, 255, 255, 0.022); }
html.v2 .jr .tbl tbody tr.click:hover td { background: rgba(255, 255, 255, 0.05); }
html.v2 .jr .tbl tbody tr.click:hover td:first-child, html.v2 .jr .tbl tbody tr.click:focus-visible td:first-child { box-shadow: inset 2px 0 0 var(--rose); }
html.v2 .jr .tbl tbody tr.click:focus-visible { outline-offset: -2px; }
html.v2 .jr .tbl tfoot td { padding-block: 12px; background: rgba(255, 255, 255, 0.03); border-top: 1px solid var(--line-2); }
html.v2 .jr .tbl tr.cur td { background: rgba(138, 27, 44, 0.2); }
html.v2 .jr .tbl input { padding: 7px 9px; }
html.v2 .jr .tag { padding: 5px 8px; border-color: var(--line-2); background: rgba(255, 255, 255, 0.03); font-size: 0.68rem; }
html.v2 .jr .tag.long, html.v2 .jr .tag.ok, html.v2 .jr .tag.st-funded { background: rgba(127, 214, 160, 0.09); }
html.v2 .jr .tag.short, html.v2 .jr .tag.ko, html.v2 .jr .tag.st-failed, html.v2 .jr .tag.st-lost { background: rgba(239, 138, 151, 0.09); }
html.v2 .jr .tag.pending, html.v2 .jr .tag.st-eval { background: rgba(242, 198, 109, 0.09); }
html.v2 .jr .bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); }
html.v2 .jr .bar i { border-radius: 999px; background: linear-gradient(90deg, rgba(127, 214, 160, 0.5), var(--bull)); }
html.v2 .jr .bar.warn i { background: linear-gradient(90deg, rgba(242, 198, 109, 0.5), #f2c66d); }
html.v2 .jr .bar.bad i { background: linear-gradient(90deg, rgba(239, 138, 151, 0.5), var(--bear)); }

/* ---------- Barres d'outils (recherche, filtres), filtre « jour », sous-onglets en contrôle segmenté ---------- */
html.v2 .jr .toolbar { gap: 8px; }
html.v2 .jr .toolbar input[type="search"] { padding-left: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f8b87' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 13px 50%; background-size: 16px; }
html.v2 .jr .summary { padding: 12px 2px 0; font-size: 0.8rem; color: var(--ink-3); }
html.v2 .jr .daychip { padding: 4px 4px 4px 12px; border: 1px solid rgba(231, 161, 171, 0.35); border-radius: 999px; background: rgba(138, 27, 44, 0.24); color: var(--ink); }
html.v2 .jr .daychip button { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: var(--ink); font-size: 1rem; }
html.v2 .jr .daychip button:hover { background: rgba(255, 255, 255, 0.2); }
html.v2 .jr .subtabs { justify-self: start; flex-wrap: nowrap; gap: 2px; padding: 3px; max-width: 100%; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.03); }
html.v2 .jr .subtabs::-webkit-scrollbar { display: none; }
html.v2 .jr .subtabs .chip { flex: none; padding: 9px 13px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-3); font: 500 0.86rem/1 var(--f-body); letter-spacing: 0; }
html.v2 .jr .subtabs .chip:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
html.v2 .jr .subtabs .chip[aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, #a8263d, #8a1b2c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 6px 16px -6px rgba(138, 27, 44, 0.95); }
html.v2 .jr .subtabs .chip:focus-visible { outline-offset: -2px; }

/* ---------- Choix uniques (Long / Short, Prix / P&L, Oui / Non, Semaine / Mois…) : contrôle segmenté ---------- */
html.v2 .seg:not(.mseg) { display: inline-flex; flex-wrap: nowrap; gap: 2px; padding: 3px; max-width: 100%; border: 1px solid var(--line-2); border-radius: 11px; background: rgba(0, 0, 0, 0.26); }
html.v2 .seg:not(.mseg) .chip { flex: 1 1 auto; padding: 8px 13px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); font: 500 0.84rem/1 var(--f-body); letter-spacing: 0; white-space: nowrap; }
html.v2 .seg:not(.mseg) .chip:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
html.v2 .seg:not(.mseg) .chip[aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, #a8263d, #8a1b2c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 14px -8px rgba(138, 27, 44, 0.95); }
html.v2 .seg:not(.mseg) .chip:focus-visible { outline-offset: -2px; }
html.v2 .dlg [data-seg="sig"] { justify-self: start; width: min(100%, 420px); }
html.v2 .seg[data-seg="dir"] .chip[data-v="L"][aria-pressed="true"] { color: #e3f8ea; background: linear-gradient(180deg, rgba(127, 214, 160, 0.34), rgba(127, 214, 160, 0.18)); box-shadow: inset 0 0 0 1px rgba(127, 214, 160, 0.5); }
html.v2 .seg[data-seg="dir"] .chip[data-v="S"][aria-pressed="true"] { color: #fde6ea; background: linear-gradient(180deg, rgba(239, 138, 151, 0.34), rgba(239, 138, 151, 0.18)); box-shadow: inset 0 0 0 1px rgba(239, 138, 151, 0.5); }
/* Choix multiples (modèles d'entrée) : pastilles, coche sur les choisies. */
html.v2 .mseg .chip { display: inline-flex; align-items: center; gap: 6px; }
html.v2 .mseg .chip[aria-pressed="true"]::before { content: ""; width: 12px; height: 12px; margin-left: -2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- Graphiques (dégradés et colonnes arrondies : journal.js) ---------- */
html.v2 .jr .chart .ax { font: 500 10.5px var(--f-mono); fill: var(--ink-3); }
html.v2 .jr .chart .grid-l { stroke: rgba(255, 255, 255, 0.06); stroke-dasharray: none; }
html.v2 .jr .chart .zero { stroke: rgba(255, 255, 255, 0.2); stroke-dasharray: none; }
html.v2 .jr .chart .cursor { stroke: rgba(231, 161, 171, 0.55); stroke-dasharray: 3 3; }
html.v2 .jr .chart .ctip { padding: 8px 11px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(20, 20, 20, 0.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.85); font: 500 11.5px/1.5 var(--f-mono); }
/* Rien à montrer (graphique, tableau, liste vide) : cadre en pointillés. */
html.v2 .jr .chart-empty { margin: 0; padding: 30px 16px; border: 1px dashed var(--line-2); border-radius: 12px; background: rgba(255, 255, 255, 0.015); color: var(--ink-3); font-size: 0.88rem; }
html.v2 .jr p.chart-empty { margin-top: 4px; }

/* ---------- Calendrier P&L : jours teintés selon le résultat (classes up / down, --t de 0 à 1 : journal.js) ---------- */
html.v2 .jr .cal-head { margin-bottom: 16px; }
html.v2 .jr .cal-nav { gap: 10px; }
html.v2 .jr .cal-nav b { font-size: 1.8rem; letter-spacing: 0.01em; }
html.v2 .jr .cal-nav button { width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 11px; background: rgba(255, 255, 255, 0.04); color: var(--ink); transition: background 0.2s, border-color 0.2s; }
html.v2 .jr .cal-nav button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.28); }
html.v2 .jr .cal-grid .dh { padding: 2px 4px 6px; font-size: 0.66rem; letter-spacing: 0.12em; }
html.v2 .jr .cal-day { min-height: 92px; padding: 9px 10px; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 12px; background: rgba(255, 255, 255, 0.02); transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s; }
html.v2 .jr .cal-day.out { opacity: 1; border-color: transparent; background: transparent; }
html.v2 .jr .cal-day.out .d { opacity: 0.4; }
html.v2 .jr .cal-day .d { font-size: 0.72rem; }
html.v2 .jr .cal-day .p { font-size: 0.86rem; }
html.v2 .jr .cal-day .n { font-size: 0.7rem; }
html.v2 .jr .cal-day.up { --c: 127, 214, 160; }
html.v2 .jr .cal-day.down { --c: 239, 138, 151; }
html.v2 .jr .cal-day.up, html.v2 .jr .cal-day.down { border-color: rgba(var(--c), calc(0.16 + var(--t) * 0.4)); background: linear-gradient(160deg, rgba(var(--c), calc(0.06 + var(--t) * 0.26)), rgba(var(--c), calc(0.02 + var(--t) * 0.08))); }
html.v2 .jr .cal-day.up .n, html.v2 .jr .cal-day.down .n { color: var(--ink-2); }
html.v2 .jr .cal-day.has:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.32); box-shadow: 0 12px 26px -16px rgba(0, 0, 0, 0.9); }
html.v2 .jr .cal-day.today { box-shadow: inset 0 0 0 1px var(--rose), 0 0 0 3px rgba(231, 161, 171, 0.12); }
html.v2 .jr .cal-day.today .d { align-self: flex-start; padding: 3px 6px; margin: -3px 0 0 -4px; border-radius: 6px; background: linear-gradient(180deg, #a8263d, #8a1b2c); color: #fff; }
html.v2 .jr .cal-week { min-height: 92px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.025); }
html.v2 .jr .cal-week .d { font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; }
html.v2 .jr .year { gap: 8px; }
html.v2 .jr .year button { padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.025); transition: background 0.2s, border-color 0.2s; }
html.v2 .jr .year button:hover { border-color: rgba(255, 255, 255, 0.26); background: rgba(255, 255, 255, 0.05); }
html.v2 .jr .year button[aria-current="true"] { background: linear-gradient(180deg, rgba(138, 27, 44, 0.34), rgba(138, 27, 44, 0.12)); }
html.v2 .jr .year button .p { font: 800 1.2rem/1.1 var(--f-display); letter-spacing: 0.01em; margin-top: 8px; }
@media (max-width: 720px) {
  html.v2 .jr .cal-nav b { font-size: 1.4rem; min-width: 150px; }
  html.v2 .jr .cal-day { min-height: 58px; padding: 6px 5px; border-radius: 9px; }
  html.v2 .jr .cal-day .p { font: 700 13px/1 var(--f-display); letter-spacing: 0.02em; }
  html.v2 .jr .cal-day.today .d { margin: -2px 0 0 -2px; padding: 2px 4px; }
}

/* ---------- Bilans, objectifs, règles, check-list ---------- */
html.v2 .jr .rv-nav b { font-size: 1.5rem; }
html.v2 .jr .card > .cal-head:last-child { margin-bottom: 0; }
html.v2 .jr .rv-prev .seg { justify-self: start; }
html.v2 .jr .rv-prev { padding: 14px 16px; border-color: rgba(242, 198, 109, 0.3); border-radius: 14px; background: linear-gradient(180deg, rgba(242, 198, 109, 0.08), rgba(242, 198, 109, 0.025)); }
html.v2 .jr .rv-nudge { border-color: rgba(242, 198, 109, 0.32); background: radial-gradient(640px 220px at 0 0, rgba(242, 198, 109, 0.1), transparent 70%), var(--glass); }
html.v2 .jr .rv-goal { padding: 11px 0; border-top-color: var(--line); }
html.v2 .jr .rules { gap: 10px; padding-left: 34px; }
html.v2 .jr .rules li { padding-left: 6px; }
html.v2 .jr .rules li::marker { content: counter(list-item, decimal-leading-zero) "  "; font: 500 0.78rem var(--f-mono); color: var(--rose); }
html.v2 .jr .check label { padding: 11px 14px; border-color: var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.02); transition: background 0.2s, border-color 0.2s, color 0.2s; }
html.v2 .jr .check label:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.045); }
html.v2 .jr .check label.done { border-color: rgba(127, 214, 160, 0.2); background: rgba(127, 214, 160, 0.045); }
html.v2 .jr .check input { -webkit-appearance: none; appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 6px; background: rgba(0, 0, 0, 0.3); cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
html.v2 .jr .check input:checked { border-color: rgba(127, 214, 160, 0.55); background: rgba(127, 214, 160, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fd6a0' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
html.v2 .jr .check input:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
html.v2 .jr .plan-grid { gap: 14px 16px; }

/* ---------- États vides : appel « Commence ton journal » ---------- */
html.v2 .jr .card.empty-card { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 76px) 22px; border-color: rgba(231, 161, 171, 0.2); background: radial-gradient(560px 260px at 50% 0%, rgba(231, 161, 171, 0.13), transparent 70%), radial-gradient(900px 440px at 50% 125%, rgba(138, 27, 44, 0.42), transparent 70%), #141414; }
html.v2 .jr .empty-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 10%, transparent 72%); mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 10%, transparent 72%); }
html.v2 .jr .empty-card > * { position: relative; }
html.v2 .jr .empty-card h2 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); line-height: 0.95; letter-spacing: 0.004em; text-wrap: balance; }
html.v2 .jr .empty-card h2::before { content: ""; display: block; width: 54px; height: 54px; margin: 0 auto 22px; border: 1px solid rgba(231, 161, 171, 0.3); border-radius: 16px; background: rgba(138, 27, 44, 0.3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e7a1ab' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='3.5'/%3E%3Cpath d='M7 15.5l3.2-3.6 2.6 2.4L17 9.5'/%3E%3C/svg%3E") center / 24px no-repeat; box-shadow: 0 18px 40px -14px rgba(138, 27, 44, 0.95); }
html.v2 .jr .empty-card p { max-width: 54ch; margin-top: 16px; font-size: 1.05rem; color: var(--ink-2); }
html.v2 .jr .empty-steps { gap: 12px; margin-top: 30px; }
@media (max-width: 520px) { html.v2 .jr .empty-steps .btn { width: 100%; } }

/* ---------- Paramètres (instruments : lignes de champs plus serrées), bouton × des fenêtres et des listes ---------- */
html.v2 .jr .inst-tbl td { padding-block: 7px; }
html.v2 .dlg-x { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line-2); border-radius: 11px; background: rgba(255, 255, 255, 0.04); color: var(--ink-2); font-size: 1.3rem; transition: background 0.2s, border-color 0.2s, color 0.2s; }
html.v2 .dlg-x:hover { color: var(--ink); background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.28); }

/* ---------- Fenêtres de saisie : verre flouté, sections numérotées, grille de champs, pied fixe ---------- */
html.v2 .dlg { width: min(880px, calc(100vw - 24px)); border: 1px solid var(--line-2); border-radius: 20px; background: linear-gradient(180deg, rgba(36, 36, 36, 0.9), rgba(22, 22, 22, 0.94)); -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05); overflow: hidden; }
html.v2 .dlg::backdrop { background: rgba(8, 8, 8, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html.v2 .dlg-h { padding: 18px 20px 16px 24px; border-bottom-color: var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent); }
html.v2 .dlg-h h2 { font-size: 1.8rem; line-height: 1.05; letter-spacing: 0.012em; }
html.v2 .dlg-b { counter-reset: fs; padding: 20px 24px 24px; gap: 24px; scrollbar-width: thin; scrollbar-color: #3a3a3a transparent; }
html.v2 .dlg fieldset { counter-increment: fs; gap: 14px; }
html.v2 .dlg legend { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 14px; font-size: 0.7rem; letter-spacing: 0.14em; }
html.v2 .dlg legend::before { content: counter(fs, decimal-leading-zero); padding: 4px 7px; border: 1px solid rgba(231, 161, 171, 0.3); border-radius: 7px; background: rgba(138, 27, 44, 0.2); letter-spacing: 0.06em; }
html.v2 .dlg legend::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
html.v2 .dlg .frow { gap: 14px; }
html.v2 .dlg .fld { gap: 7px; }
html.v2 .dlg .fld > span { font-size: 0.68rem; letter-spacing: 0.09em; }
html.v2 .dlg .fld small { font-size: 0.74rem; line-height: 1.4; }
html.v2 .dlg input:not([type="hidden"]):not([type="checkbox"]):not([type="file"]), html.v2 .dlg select { min-height: 42px; }
html.v2 .dlg .preview { gap: 8px 26px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)); font-size: 0.86rem; color: var(--ink-3); }
html.v2 .dlg .preview b { font-size: 0.95rem; }
html.v2 .dlg .preview b:not(.pos):not(.neg) { color: var(--ink); }
html.v2 .star-in { gap: 1px; }
html.v2 .star-in button { padding: 2px 3px; font-size: 1.45rem; color: rgba(255, 255, 255, 0.16); transition: color 0.15s, transform 0.15s; }
html.v2 .star-in button.on { color: #f2c66d; text-shadow: 0 0 14px rgba(242, 198, 109, 0.35); }
@media (hover: hover) {
  /* Aperçu au survol : les étoiles jusqu'à celle survolée. */
  html.v2 .star-in:hover button { color: #f2c66d; }
  html.v2 .star-in button:hover ~ button { color: rgba(255, 255, 255, 0.16); text-shadow: none; }
  html.v2 .star-in button:hover { transform: scale(1.12); }
}
html.v2 .dlg .tpl-bar { gap: 6px; margin-bottom: 6px; }
html.v2 .dlg .cm-view { padding: 6px 16px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.025); }
html.v2 .dlg .cm-imgs img { border-radius: 10px; }
html.v2 .dlg .cm-miss { border-radius: 10px; }
html.v2 .dlg-f { gap: 8px; padding: 14px 24px; border-top-color: var(--line); background: rgba(0, 0, 0, 0.24); border-radius: 0; }
@media (max-width: 620px) {
  html.v2 .dlg { width: calc(100vw - 16px); max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); border-radius: 18px; }
  html.v2 .dlg form { max-height: calc(100dvh - 18px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
  html.v2 .dlg-h { padding: 14px 14px 12px 18px; }
  html.v2 .dlg-h h2 { font-size: 1.5rem; }
  html.v2 .dlg-b { padding: 16px 16px 20px; gap: 20px; }
  html.v2 .dlg .frow { gap: 12px; }
  /* Pied : boutons étirés, « Enregistrer » sur toute la largeur en dernier. */
  html.v2 .dlg-f { padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)); }
  html.v2 .dlg-f .spacer { display: none; }
  html.v2 .dlg-f .btn { flex: 1 1 auto; }
  html.v2 .dlg-f .btn-primary:last-child { flex-basis: 100%; }
}

/* ---------- Message (toast), bouton + mobile, statut de synchro du compte ---------- */
html.v2 .toast { display: flex; align-items: center; gap: 10px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); width: max-content; max-width: calc(100vw - 32px); padding: 11px 18px 11px 14px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(24, 24, 24, 0.86); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.9); font-size: 0.9rem; line-height: 1.4; animation: jr-toast 0.32s var(--ease); }
html.v2 .toast::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 10px rgba(231, 161, 171, 0.8); }
@keyframes jr-toast { from { opacity: 0; transform: translate(-50%, 12px); } }
@media (max-width: 720px) {
  html.v2 .toast { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  html.v2 .fab { right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; font-size: 0; transition: transform 0.2s var(--ease), box-shadow 0.2s;
    background: linear-gradient(#fff, #fff) center / 20px 2px no-repeat, linear-gradient(#fff, #fff) center / 2px 20px no-repeat, linear-gradient(180deg, #a8263d, #8a1b2c);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 16px 34px -10px rgba(138, 27, 44, 0.95), 0 4px 14px rgba(0, 0, 0, 0.5); }
  html.v2 .fab:active { transform: scale(0.94); }
}
/* Menu du compte (account.js) : le point de synchro sur l'avatar et la ligne de statut n'existent que sur le journal. */
html.v2 .acct-btn .acct-dot { border-color: #141414; }
html.v2 .acct-dot.ok { box-shadow: 0 0 8px rgba(127, 214, 160, 0.7); }
html.v2 .acct-st { padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.03); font: 500 0.76rem/1.35 var(--f-mono); }

/* ---------- Tableau de bord v2 (11 novembre 2026) : période, P&L héro et courbe, cartes à jauges, activité, forme ---------- */
html.v2 .jr .dv > .sec-t { flex-wrap: wrap; gap: 10px 14px; }
html.v2 .jr .dv-per .chip { min-width: 52px; }
html.v2 .jr .dv-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(250px, 290px) minmax(0, 1fr); gap: 10px 30px; padding: 26px 22px 18px 26px;
  border-color: rgba(231, 161, 171, 0.16); background: radial-gradient(760px 340px at 0% 0%, rgba(138, 27, 44, 0.34), transparent 68%), radial-gradient(520px 260px at 100% 100%, rgba(231, 161, 171, 0.06), transparent 70%), var(--glass); }
html.v2 .jr .dv-hero::before { content: ""; position: absolute; top: 0; left: 26px; right: 26px; height: 1px; background: linear-gradient(90deg, transparent, rgba(231, 161, 171, 0.6), transparent); }
html.v2 .jr .dv-hero:has(.dv-big.pos)::before { background: linear-gradient(90deg, transparent, rgba(127, 214, 160, 0.6), transparent); }
html.v2 .jr .dv-hero:has(.dv-big.neg)::before { background: linear-gradient(90deg, transparent, rgba(239, 138, 151, 0.6), transparent); }
html.v2 .jr .dv-fig { display: flex; flex-direction: column; min-width: 0; }
html.v2 .jr .dv-fig > .k { font: 500 0.68rem/1.3 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
html.v2 .jr .dv-big { margin-top: 16px; font: 800 clamp(3rem, 5.4vw, 4.7rem)/0.9 var(--f-display); letter-spacing: 0.004em; white-space: nowrap; color: var(--ink); }
html.v2 .jr .dv-big.pos { color: var(--bull); text-shadow: 0 0 42px rgba(127, 214, 160, 0.22); }
html.v2 .jr .dv-big.neg { color: var(--bear); text-shadow: 0 0 42px rgba(239, 138, 151, 0.22); }
html.v2 .jr .dv-sub { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
html.v2 .jr .dv-sub span { padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, 0.04); font: 500 0.74rem/1.2 var(--f-mono); color: var(--ink-2); }
html.v2 .jr .dv-vs { margin: 12px 0 0; font-size: 0.82rem; color: var(--ink-3); }
html.v2 .jr .dv-vs span { font-weight: 600; }
html.v2 .jr .dv-mini { margin: auto 0 0; padding-top: 22px; font-size: 0.84rem; }
html.v2 .jr .dv-mini > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
html.v2 .jr .dv-mini dt { margin: 0; color: var(--ink-3); }
html.v2 .jr .dv-mini dd { margin: 0; text-align: right; font-weight: 600; }
html.v2 .jr .dv-mini dd .dim { display: block; margin-top: 2px; font-size: 0.72rem; font-weight: 400; }
html.v2 .jr .dv-curve { min-width: 0; align-self: end; }
html.v2 .jr .chart .cap { font: 500 10px var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; fill: var(--ink-3); }
html.v2 .jr .chart .lbl { font: 600 11px var(--f-mono); fill: var(--ink-2); paint-order: stroke; stroke: #161616; stroke-width: 4px; stroke-linejoin: round; }
html.v2 .jr .chart svg:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; border-radius: 8px; }
@media (max-width: 920px) {
  html.v2 .jr .dv-hero { grid-template-columns: minmax(0, 1fr); padding: 22px 18px 14px; }
  /* Repères en cases 2 × 2 (4 sur une ligne en tablette) : libellé au-dessus de la valeur. */
  html.v2 .jr .dv-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-top: 18px; }
  html.v2 .jr .dv-mini > div { flex-direction: column; justify-content: flex-start; gap: 6px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, 0.18); }
  html.v2 .jr .dv-mini dt { font-size: 0.74rem; line-height: 1.3; }
  html.v2 .jr .dv-mini dd { text-align: left; }
}
@media (max-width: 620px) { html.v2 .jr .dv-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  html.v2 .jr .dv-hero { padding: 18px 14px 10px; }
  html.v2 .jr .dv > .sec-t .dv-per { width: 100%; }
}
/* KPI en nombre impair sur deux colonnes (téléphone, jusqu'à 560 px) : la dernière prend la ligne entière. */
@media (max-width: 560px) { html.v2 .jr .kpis:not(.dv-tiles) > .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* Cartes : libellé, valeur, détail, visuel (jauge, barre segmentée, petites colonnes), alignés d'une carte à l'autre. */
html.v2 .jr .dv-tiles { margin-top: 12px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
html.v2 .jr .tile .vis { margin-top: 14px; align-self: end; min-height: 8px; }
@supports (grid-template-rows: subgrid) { html.v2 .jr .dv-tiles .kpi { grid-row: span 4; } html.v2 .jr .tile .vis { margin-top: 6px; } }
@media (max-width: 1099px) {
  html.v2 .jr .dv-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  html.v2 .jr .dv-tiles .kpi { grid-column: span 2; }
  html.v2 .jr .dv-tiles .kpi:nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 620px) {
  html.v2 .jr .dv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.v2 .jr .dv-tiles .kpi, html.v2 .jr .dv-tiles .kpi:nth-child(n+4) { grid-column: span 1; }
  html.v2 .jr .dv-tiles .kpi:first-child { grid-column: span 2; }
}
html.v2 .jr .sbar { display: flex; gap: 2px; height: 8px; }
html.v2 .jr .sbar i { min-width: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); }
html.v2 .jr .sbar .w { background: var(--bull); }
html.v2 .jr .sbar .l { background: var(--bear); }
html.v2 .jr .mtr { position: relative; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); }
html.v2 .jr .mtr i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, rgba(127, 214, 160, 0.45), var(--bull)); }
html.v2 .jr .mtr.bad i { background: linear-gradient(90deg, rgba(239, 138, 151, 0.45), var(--bear)); }
html.v2 .jr .mtr b { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--ink-2); box-shadow: 0 0 0 2px #171717; }
html.v2 .jr .minis { display: flex; align-items: flex-end; gap: 2px; height: 30px; }
html.v2 .jr .minis i { flex: 1 1 0; max-width: 18px; min-height: 0; border-radius: 3px 3px 1px 1px; background: rgba(231, 161, 171, 0.35); }
html.v2 .jr .minis i.p { background: rgba(127, 214, 160, 0.75); }
html.v2 .jr .minis i.n { background: rgba(239, 138, 151, 0.75); }
html.v2 .jr .minis i.c { background: var(--rose); }
/* Activité et jour × heure : cartes de chaleur (cases : journal.js). */
html.v2 .jr .chart .heat { display: block; max-width: 100%; height: auto; }
html.v2 .jr .heat .cell { fill: rgba(255, 255, 255, 0.035); transition: fill 0.2s; }
html.v2 .jr .heat .cell.z { fill: rgba(255, 255, 255, 0.2); }
html.v2 .jr .heat .cell.p1, html.v2 .jr .heat-leg .p1 { fill: rgba(127, 214, 160, 0.2); background: rgba(127, 214, 160, 0.2); }
html.v2 .jr .heat .cell.p2, html.v2 .jr .heat-leg .p2 { fill: rgba(127, 214, 160, 0.42); background: rgba(127, 214, 160, 0.42); }
html.v2 .jr .heat .cell.p3, html.v2 .jr .heat-leg .p3 { fill: rgba(127, 214, 160, 0.68); background: rgba(127, 214, 160, 0.68); }
html.v2 .jr .heat .cell.p4, html.v2 .jr .heat-leg .p4 { fill: #7fd6a0; background: #7fd6a0; }
html.v2 .jr .heat .cell.n1, html.v2 .jr .heat-leg .n1 { fill: rgba(239, 138, 151, 0.2); background: rgba(239, 138, 151, 0.2); }
html.v2 .jr .heat .cell.n2, html.v2 .jr .heat-leg .n2 { fill: rgba(239, 138, 151, 0.42); background: rgba(239, 138, 151, 0.42); }
html.v2 .jr .heat .cell.n3, html.v2 .jr .heat-leg .n3 { fill: rgba(239, 138, 151, 0.68); background: rgba(239, 138, 151, 0.68); }
html.v2 .jr .heat .cell.n4, html.v2 .jr .heat-leg .n4 { fill: #ef8a97; background: #ef8a97; }
html.v2 .jr .heat-leg .z { background: rgba(255, 255, 255, 0.2); }
html.v2 .jr .heat .cell.now { stroke: var(--rose); stroke-width: 1.5px; }
html.v2 .jr .heat .hov { fill: none; stroke: var(--ink); stroke-width: 1.5px; pointer-events: none; }
html.v2 .jr .heat-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-top: 14px; font-size: 0.8rem; color: var(--ink-3); }
html.v2 .jr .heat-leg { display: inline-flex; align-items: center; gap: 3px; font: 500 0.7rem/1 var(--f-mono); }
html.v2 .jr .heat-leg > span:first-child { margin-right: 6px; }
html.v2 .jr .heat-leg > span:last-child { margin-left: 6px; }
html.v2 .jr .heat-leg i { width: 12px; height: 12px; border-radius: 3px; }
html.v2 .jr .heat-sum b { color: var(--ink); font-weight: 600; }
/* Forme récente : séries sous le graphique. */
html.v2 .jr .dv-streak { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
html.v2 .jr .dv-streak span { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.025); font-size: 0.78rem; color: var(--ink-3); }
html.v2 .jr .dv-streak b { margin-left: 4px; color: var(--ink); font-weight: 600; }
html.v2 .jr .dv-streak b.pos { color: var(--bull); }
html.v2 .jr .dv-streak b.neg { color: var(--bear); }

/* Ce que disent tes trades : points forts (vert) et fuites (rouge), barre = écart par trade rapporté au plus grand. */
html.v2 .jr .dv-in { margin-top: 12px; }
html.v2 .jr .in-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
html.v2 .jr .in-col { padding: 16px 16px 6px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0, 0, 0, 0.16); }
html.v2 .jr .in-col.good { border-color: rgba(127, 214, 160, 0.2); background: linear-gradient(180deg, rgba(127, 214, 160, 0.06), transparent 60%), rgba(0, 0, 0, 0.16); }
html.v2 .jr .in-col.bad { border-color: rgba(239, 138, 151, 0.2); background: linear-gradient(180deg, rgba(239, 138, 151, 0.06), transparent 60%), rgba(0, 0, 0, 0.16); }
html.v2 .jr .in-col h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 500 0.7rem/1.2 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
html.v2 .jr .in-col h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bull); box-shadow: 0 0 10px rgba(127, 214, 160, 0.6); }
html.v2 .jr .in-col.bad h3::before { background: var(--bear); box-shadow: 0 0 10px rgba(239, 138, 151, 0.6); }
html.v2 .jr .in-col ol { margin: 0; padding: 0; list-style: none; }
html.v2 .jr .in-col li { padding: 12px 0 13px; border-top: 1px solid var(--line); }
html.v2 .jr .in-col li:first-child { border-top: 0; }
html.v2 .jr .in-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
html.v2 .jr .in-k { min-width: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
html.v2 .jr .in-top b { flex: none; font: 800 1.25rem/1 var(--f-display); letter-spacing: 0.01em; }
html.v2 .jr .in-top b small { font: 500 0.7rem var(--f-body); color: var(--ink-3); letter-spacing: 0; }
html.v2 .jr .in-bar { height: 4px; margin: 9px 0 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
html.v2 .jr .in-bar i { display: block; height: 100%; border-radius: 999px; background: var(--bull); }
html.v2 .jr .in-bar.n i { background: var(--bear); }
html.v2 .jr .in-s { font-size: 0.76rem; line-height: 1.45; color: var(--ink-3); }
html.v2 .jr .in-none { margin: 6px 0 12px; font-size: 0.86rem; color: var(--ink-3); }
@media (max-width: 720px) { html.v2 .jr .in-grid { grid-template-columns: minmax(0, 1fr); } }

/* Simulateur d'éval (Prop firms) : réglages en grille, chance de réussite, barre des issues, évals tirées, risque. */
html.v2 .jr .sim .frow { margin-top: 14px; }
html.v2 .jr .sim-intro { max-width: 76ch; margin: 0 0 4px; font-size: 0.9rem; line-height: 1.55; }
html.v2 .jr #sim-res { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
html.v2 .jr .sim-top { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 18px 30px; align-items: center; margin-bottom: 22px; }
html.v2 .jr .sim-fig > .k { font: 500 0.68rem/1.3 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
html.v2 .jr .sim-fig .dv-big { margin-top: 12px; }
html.v2 .jr .sim-fig p { margin: 12px 0 0; font-size: 0.8rem; line-height: 1.45; }
html.v2 .jr .sim-med { color: var(--ink-2); }
html.v2 .jr .tbar { display: flex; gap: 2px; height: 28px; }
html.v2 .jr .tbar i { display: flex; align-items: center; min-width: 4px; padding: 0 8px; border-radius: 4px; overflow: hidden; font: 600 0.74rem/1 var(--f-mono); font-style: normal; color: #10261a; white-space: nowrap; }
html.v2 .jr .tbar .w, html.v2 .jr .tleg .w { background: var(--bull); }
html.v2 .jr .tbar .l, html.v2 .jr .tleg .l { background: var(--bear); color: #2a0d12; }
html.v2 .jr .tbar .d, html.v2 .jr .tleg .d { background: #f2c66d; color: #2b2006; }
html.v2 .jr .tbar .b, html.v2 .jr .tleg .b { background: rgba(255, 255, 255, 0.28); color: #121212; }
html.v2 .jr .tleg { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 0.8rem; color: var(--ink-3); }
html.v2 .jr .tleg li { display: inline-flex; align-items: center; gap: 7px; }
html.v2 .jr .tleg li > i { width: 10px; height: 10px; border-radius: 3px; }
html.v2 .jr .tleg b { color: var(--ink); font-weight: 600; }
html.v2 .jr .sim .grid2 .sec-t h3 { margin: 0; font: 800 1.2rem/1.1 var(--f-display); letter-spacing: 0.012em; text-transform: uppercase; }
html.v2 .jr .chart .sim-tg { stroke: var(--bull); stroke-width: 1; }
html.v2 .jr .chart .sim-fl { stroke: var(--bear); stroke-width: 1; }
@media (max-width: 820px) { html.v2 .jr .sim-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { html.v2 .jr .sim .frow > .fld:has(> .seg) { grid-column: 1 / -1; } }
/* Colonne mise en avant (risque actuel du simulateur) : les autres plus discrètes. */
html.v2 .jr .chart svg:has(path.hi) path.bp:not(.hi), html.v2 .jr .chart svg:has(path.hi) path.bn:not(.hi) { opacity: 0.45; }

/* Carte à partager (Bilans) : aperçu de l'image dans la fenêtre. */
html.v2 .dlg .sc-prev { margin: 0; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #111; box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.9); }
html.v2 .dlg .sc-prev img { display: block; width: 100%; height: auto; }
html.v2 .dlg .sc-hint { margin: 2px 0 0; font-size: 0.84rem; }
html.v2 .dlg .sc-post { display: grid; gap: 10px; margin-top: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.025); }
html.v2 .dlg .sc-post-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
html.v2 .dlg .sc-post-h b { font: 500 0.7rem/1.2 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
html.v2 .dlg .sc-post-h .seg .chip { padding: 6px 10px; font-size: 0.76rem; }
html.v2 .dlg .sc-cnt { margin-left: auto; font: 600 0.76rem var(--f-mono); color: var(--ink-3); }
html.v2 .dlg .sc-cnt.over { color: var(--bear); }
html.v2 .dlg #sc-text { width: 100%; min-height: 200px; resize: vertical; font: 400 0.92rem/1.5 var(--f-body); }

/* Journal installable : pastille à côté des liens d'outils, carte dans Paramètres. */
html.v2 .jr .tools-nav .app-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid rgba(231, 161, 171, 0.35); border-radius: 999px; background: rgba(138, 27, 44, 0.24); color: var(--ink); font: 500 0.78rem/1 var(--f-mono); letter-spacing: 0.04em; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
html.v2 .jr .tools-nav .app-chip::before { content: ""; width: 12px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e7a1ab' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7.5 10.5L12 15l4.5-4.5M5 19.5h14'/%3E%3C/svg%3E") center / contain no-repeat; }
html.v2 .jr .tools-nav .app-chip:hover { background: rgba(138, 27, 44, 0.4); border-color: rgba(231, 161, 171, 0.6); }
html.v2 .jr .app-card { border-color: rgba(231, 161, 171, 0.2); background: radial-gradient(520px 200px at 0 0, rgba(138, 27, 44, 0.3), transparent 70%), var(--glass); }
html.v2 .jr .app-in { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; align-items: center; }
html.v2 .jr .app-in img { border-radius: 16px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.9); }
html.v2 .jr .app-in h2 { margin: 0; font-size: 1.4rem; }
html.v2 .jr .app-in p { margin: 6px 0 0; font-size: 0.88rem; line-height: 1.5; color: var(--ink-2); }
html.v2 .jr .app-in .app-how { color: var(--ink); }
html.v2 .jr .app-in .app-note { font-size: 0.8rem; color: var(--ink-3); }
@media (max-width: 620px) { html.v2 .jr .app-in { grid-template-columns: 52px minmax(0, 1fr); align-items: start; } html.v2 .jr .app-in img { width: 52px; height: 52px; border-radius: 13px; } html.v2 .jr .app-in .btn { grid-column: 1 / -1; } }

/* Mode revue : fenêtre plein écran, capture à gauche (en haut sur téléphone), détails et leçon à droite. */
html.v2 .rw { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #0e0e0e; color: var(--ink); }
html.v2 .rw[open] { display: flex; flex-direction: column; }
html.v2 .rw::backdrop { background: #000; }
html.v2 .rw-top { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: calc(12px + env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) 12px max(18px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
html.v2 .rw-top > b { font: 800 1.3rem/1 var(--f-display); letter-spacing: 0.02em; text-transform: uppercase; }
html.v2 .rw-n { padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; font: 600 0.78rem/1 var(--f-mono); }
html.v2 .rw-done { font-size: 0.82rem; color: var(--ink-3); }
html.v2 .rw-todo { display: inline-flex; align-items: center; gap: 7px; font-size: 0.84rem; color: var(--ink-2); cursor: pointer; }
html.v2 .rw-top .sp { flex: 1; }
html.v2 .rw-keys { font: 500 0.74rem var(--f-mono); }
html.v2 .rw-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 400px; }
html.v2 .rw-media { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 0; padding: 20px 64px; background: radial-gradient(700px 400px at 30% 20%, rgba(138, 27, 44, 0.16), transparent 70%), #0b0b0b; touch-action: pan-y; }
html.v2 .rw-shot { display: flex; align-items: center; justify-content: center; max-width: 100%; max-height: 100%; min-height: 0; flex: 1; }
html.v2 .rw-shot img { display: block; max-width: 100%; max-height: calc(100dvh - 140px); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9); object-fit: contain; }
html.v2 .rw-thumbs { display: flex; gap: 6px; }
html.v2 .rw-thumbs button { min-width: 34px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 9px; background: rgba(255, 255, 255, 0.04); color: var(--ink-2); font: 600 0.78rem var(--f-mono); cursor: pointer; }
html.v2 .rw-thumbs button[aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, #a8263d, #8a1b2c); border-color: transparent; }
html.v2 .rw-noshot { display: grid; justify-items: center; gap: 12px; padding: 40px 24px; border: 1px dashed var(--line-2); border-radius: 14px; color: var(--ink-3); text-align: center; }
html.v2 .rw-noshot p { margin: 0; }
html.v2 .rw-nav { position: absolute; top: 50%; width: 44px; height: 64px; margin-top: -32px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(20, 20, 20, 0.8); color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; transition: background 0.2s; }
html.v2 .rw-nav:hover:not(:disabled) { background: rgba(138, 27, 44, 0.5); }
html.v2 .rw-nav:disabled { opacity: 0.25; cursor: default; }
html.v2 .rw-nav.prev { left: 10px; } html.v2 .rw-nav.next { right: 10px; }
html.v2 .rw-side { min-height: 0; overflow-y: auto; padding: 22px 22px calc(26px + env(safe-area-inset-bottom, 0px)); border-left: 1px solid var(--line); scrollbar-width: thin; }
html.v2 .rw-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
html.v2 .rw-h h2 { margin: 0 4px 0 0; font: 800 2rem/1 var(--f-display); letter-spacing: 0.01em; }
html.v2 .rw-when { margin: 8px 0 0; font-size: 0.82rem; }
html.v2 .rw-res { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px; }
html.v2 .rw-res b { font: 800 3rem/0.9 var(--f-display); letter-spacing: 0.01em; }
html.v2 .rw-res span { font-size: 0.9rem; font-weight: 600; }
html.v2 .rw-res span.dim { font: 500 0.8rem var(--f-mono); }
html.v2 .rw-dl { margin: 18px 0 0; }
html.v2 .rw-dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.86rem; }
html.v2 .rw-dl dt { color: var(--ink-3); } html.v2 .rw-dl dd { margin: 0; text-align: right; font-weight: 600; }
html.v2 .rw-cm { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.025); font-size: 0.86rem; line-height: 1.5; color: var(--ink-2); }
html.v2 .rw-cm h4 { margin: 8px 0 2px; font: 600 0.72rem var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--rose); }
html.v2 .rw-cm p { margin: 4px 0; }
html.v2 .rw-lesson { margin-top: 18px; }
html.v2 .rw-lesson textarea { width: 100%; min-height: 96px; resize: vertical; font: 400 0.92rem/1.5 var(--f-body); }
html.v2 .rw-verdict { margin-top: 10px; }
html.v2 .rw-verdict .chip[data-v="keep"][aria-pressed="true"] { color: #e3f8ea; background: linear-gradient(180deg, rgba(127, 214, 160, 0.34), rgba(127, 214, 160, 0.18)); box-shadow: inset 0 0 0 1px rgba(127, 214, 160, 0.5); }
html.v2 .rw-verdict .chip[data-v="avoid"][aria-pressed="true"] { color: #fde6ea; background: linear-gradient(180deg, rgba(239, 138, 151, 0.34), rgba(239, 138, 151, 0.18)); box-shadow: inset 0 0 0 1px rgba(239, 138, 151, 0.5); }
html.v2 .rw-saved { margin: 8px 0 14px; font-size: 0.76rem; }
html.v2 .rw-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
html.v2 .rw-undo { font-size: 0.8rem; }
html.v2 .rw-badge { padding: 4px 9px; border: 1px solid rgba(127, 214, 160, 0.45); border-radius: 999px; background: rgba(127, 214, 160, 0.12); color: var(--bull); font: 600 0.7rem/1.2 var(--f-mono); }
html.v2 .rw-badge[hidden] { display: none; }
html.v2 .rw .dlg-x { margin-left: 4px; }
@media (max-width: 860px) {
  html.v2 .rw-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; overflow-y: auto; }
  html.v2 .rw-media { padding: 14px 52px; min-height: 240px; }
  html.v2 .rw-shot img { max-height: 46dvh; }
  html.v2 .rw-side { overflow: visible; border-left: 0; border-top: 1px solid var(--line); }
  html.v2 .rw-keys { display: none; }
  html.v2 .rw-nav { width: 38px; height: 54px; margin-top: -27px; }
}

/* ---------- Entrée d'un onglet (journal.js : classe « enter » sur la vue, « anim » sur les graphiques) ---------- */
@keyframes jr-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes jr-fade { from { opacity: 0; } }
@keyframes jr-grow { from { transform: scaleY(0); } }
html.v2 .jr .view.enter > * { animation: jr-rise 0.62s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
html.v2 .jr .chart.anim .ar { animation: jr-fade 1s 0.35s both; }
html.v2 .jr .chart.anim .mk { animation: jr-fade 0.5s 1.05s both; }
html.v2 .jr .chart.anim path.bp, html.v2 .jr .chart.anim path.bn { transform-box: fill-box; transform-origin: 50% 100%; animation: jr-grow 0.7s var(--ease) both; animation-delay: calc(var(--k, 0) * 22ms + 150ms); }
html.v2 .jr .chart.anim path.bn { transform-origin: 50% 0; }
html.v2 .jr .chart.anim .heat .cell { animation: jr-fade 0.45s both; animation-delay: calc(var(--k, 0) * 11ms + 120ms); }

/* ---------- Animations : rien avec « réduire les animations » ---------- */
@media (prefers-reduced-motion: reduce) {
  html.v2 .toast, html.v2 .jr .view.enter > *, html.v2 .jr .chart.anim .ar, html.v2 .jr .chart.anim .mk, html.v2 .jr .chart.anim path, html.v2 .jr .chart.anim .heat .cell { animation: none; }
  html.v2 .jr .jr-tabs button, html.v2 .jr .subtabs .chip, html.v2 .jr .kpi, html.v2 .jr .cal-day, html.v2 .jr .year button, html.v2 .jr .check label, html.v2 .jr .check input, html.v2 .star-in button, html.v2 .fab, html.v2 .jr .sec-t .linkbtn, html.v2 .jr .sec-t .linkbtn::after { transition: none; }
  html.v2 .jr .cal-day.has:hover, html.v2 .star-in button:hover, html.v2 .jr .sec-t .linkbtn:hover::after { transform: none; }
}

/* ---------- Téléphone (19 novembre) : liste des trades en cartes, onglets, barre collée, bouton « + » ---------- */
.tabs-more { display: none; }
@media (max-width: 720px) {
  /* Onglets : flèche « › » au bout tant qu'il en reste à droite (tabsEdge, journal.js) ; barre collée sous l'en-tête. */
  html.v2 .jr .jr-bar { top: calc(66px + env(safe-area-inset-top, 0px)); }
  html.v2 .jr .tabs-more { display: grid; place-items: center; position: absolute; top: 9px; right: 9px; width: 30px; height: 36px; padding: 0 0 2px; border: 0; border-radius: 9px; background: rgba(40, 40, 40, 0.92); color: var(--ink); font: 600 1.35rem/1 var(--f-body); cursor: pointer; box-shadow: -10px 0 14px -4px rgba(18, 18, 18, 0.9); }
  html.v2 .jr .jr-bar.t-end .tabs-more { display: none; }
  html.v2 .jr .jr-bar.t-end .jr-tabs { -webkit-mask-image: none; mask-image: none; }
  /* Barre collée (classe stuck) : onglets seuls, le choix du compte revient en haut de page. */
  html.v2 .jr .jr-bar.stuck .jr-actions { display: none; }
  /* Bouton « + » : masqué en descendant (fab-off), marge en bas pour ne rien cacher en fin de page. */
  html.v2 .fab { transition: transform 0.25s var(--ease), opacity 0.25s; }
  html.v2 .fab.fab-off { transform: translateY(120%); opacity: 0; pointer-events: none; }
  html.v2 .jr .view { padding-bottom: 72px; }
}
@media (max-width: 620px) {
  /* Liste des trades et derniers trades : une carte par trade, résultat à droite (le tableau défilait de côté et
     cachait le P&L et le R). Colonnes secondaires (séance, quantité, %, émotion, commentaire) dans la fiche du trade. */
  html.v2 .jr .tbl.jl, html.v2 .jr .tbl.jl tbody, html.v2 .jr .tbl.lt, html.v2 .jr .tbl.lt tbody, html.v2 .jr .tbl.rvl, html.v2 .jr .tbl.rvl tbody { display: block; }
  html.v2 .jr .tbl.jl thead { display: none; }
  html.v2 .jr .tbl.jl tr, html.v2 .jr .tbl.lt tr, html.v2 .jr .tbl.rvl tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; row-gap: 4px; align-items: baseline; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  html.v2 .jr .tbl.jl tr:last-child, html.v2 .jr .tbl.lt tr:last-child, html.v2 .jr .tbl.rvl tr:last-child { border-bottom: 0; }
  html.v2 .jr .tbl.jl tr { grid-template-areas: "sym sym pnl" "setup setup r" "date acct plan"; }
  html.v2 .jr .tbl.lt tr { grid-template-areas: "sym dir pnl" "date date r"; }
  html.v2 .jr .tbl.rvl tr { grid-template-areas: "sym st pnl" "setup setup r" "date date date"; }
  html.v2 .jr .tbl.rvl .c-st { grid-area: st; justify-self: start; }
  html.v2 .jr .tbl.rvl .c-date:empty { display: none; }
  html.v2 .jr .tbl.jl td, html.v2 .jr .tbl.lt td, html.v2 .jr .tbl.rvl td { padding: 0; border: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none !important; box-shadow: none !important; }
  html.v2 .jr .tbl.jl .c-x { display: none; }
  html.v2 .jr .tbl .c-sym { grid-area: sym; font-size: 0.98rem; }
  html.v2 .jr .tbl .c-dir { grid-area: dir; justify-self: start; }
  html.v2 .jr .tbl .c-pnl { grid-area: pnl; font: 600 1rem/1.2 var(--f-mono); text-align: right; }
  html.v2 .jr .tbl .c-setup { grid-area: setup; color: var(--ink-2); font-size: 0.84rem; }
  html.v2 .jr .tbl .c-r { grid-area: r; font: 500 0.84rem/1.2 var(--f-mono); text-align: right; }
  html.v2 .jr .tbl .c-date { grid-area: date; color: var(--ink-3); font-size: 0.78rem; }
  html.v2 .jr .tbl .c-date .dim { color: inherit; }
  html.v2 .jr .tbl .c-acct { grid-area: acct; color: var(--ink-3); font-size: 0.78rem; }
  html.v2 .jr .tbl .c-plan { grid-area: plan; font-size: 0.8rem; text-align: right; }
  html.v2 .jr .tbl.jl tr.click:active, html.v2 .jr .tbl.lt tr.click:active { background: rgba(255, 255, 255, 0.05); }
  html.v2 .jr .tbl.jl tr.click:focus-visible, html.v2 .jr .tbl.lt tr.click:focus-visible { box-shadow: inset 2px 0 0 var(--rose); }
}
@media (prefers-reduced-motion: reduce) { html.v2 .fab { transition: none; } }

/* ---------- Téléphone (19 novembre, suite) : répartitions de l'Analyse et tableaux trop larges ---------- */
.tbl tr.bt-more { display: none; }
@media (max-width: 620px) {
  /* Répartitions : libellé sur toute la largeur, puis les 5 chiffres alignés sous leurs titres (n · part, WR, P&L, R, PF). */
  html.v2 .jr .tbl.bt, html.v2 .jr .tbl.bt thead, html.v2 .jr .tbl.bt tbody { display: block; }
  html.v2 .jr .tbl.bt tr { display: grid; grid-template-columns: 0.9fr 0.75fr 1.55fr 0.95fr 0.7fr; column-gap: 6px; row-gap: 4px; align-items: baseline; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
  html.v2 .jr .tbl.bt thead tr { padding-block: 9px 7px; background: rgba(255, 255, 255, 0.02); }
  html.v2 .jr .tbl.bt tr:last-child { border-bottom: 0; }
  html.v2 .jr .tbl.bt th, html.v2 .jr .tbl.bt td { padding: 0; border: 0; position: static; background: none; min-width: 0; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.v2 .jr .tbl.bt th { font-size: 0.62rem; }
  html.v2 .jr .tbl.bt th:first-child { display: none; }
  html.v2 .jr .tbl.bt td { font: 500 0.8rem/1.25 var(--f-mono); }
  html.v2 .jr .tbl.bt td:first-child { grid-column: 1 / -1; text-align: left; white-space: normal; font: 500 0.9rem/1.3 var(--f-body); color: var(--ink); }
  html.v2 .jr .tbl.bt td .dim { display: none; }
  /* Lignes repliées et bouton « + N autres » (data-act bt-more : classe open sur le tableau). */
  html.v2 .jr .tbl.bt:not(.open) tr.bt-h { display: none; }
  html.v2 .jr .tbl.bt tr.bt-more { display: block; padding: 8px 12px; text-align: center; }
  html.v2 .jr .tbl.bt tr.bt-more td { display: block; text-align: center; overflow: visible; }
  html.v2 .jr .tbl.bt.open tr.bt-more { display: none; }
  /* Tableaux trop larges (classe stk, stackTables) : une carte par ligne, valeurs sur 2 colonnes avec leur titre. */
  html.v2 .jr .tbl.stk, html.v2 .jr .tbl.stk tbody { display: block; }
  html.v2 .jr .tbl.stk thead { display: none; }
  html.v2 .jr .tbl.stk tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 14px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  html.v2 .jr .tbl.stk tr:last-child { border-bottom: 0; }
  html.v2 .jr .tbl.stk td { padding: 0; border: 0; min-width: 0; text-align: left; white-space: normal; overflow-wrap: anywhere; background: none !important; }
  html.v2 .jr .tbl.stk td::before { content: attr(data-l); display: block; margin-bottom: 2px; font: 500 0.62rem/1.2 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
  html.v2 .jr .tbl.stk td:first-child { grid-column: 1 / -1; font-weight: 600; font-size: 0.95rem; }
  html.v2 .jr .tbl.stk td:first-child::before, html.v2 .jr .tbl.stk td[data-l=""]::before { display: none; }
  html.v2 .jr .tbl.stk td[colspan] { grid-column: 1 / -1; }
}
/* Répartitions secondaires repliées sur téléphone (bt-sec ; bouton bt-tog étiré sur tout le titre, nombre de lignes + chevron). */
.bt-tog { display: none; }
@media (max-width: 620px) {
  html.v2 .jr .bt-sec .sec-t { position: relative; margin-bottom: 0; }
  html.v2 .jr .bt-sec.open .sec-t { margin-bottom: 12px; }
  html.v2 .jr .bt-sec:not(.open) .tbl-wrap { display: none; }
  html.v2 .jr .bt-tog { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 4px 2px 4px 10px; border: 0; background: none; color: var(--ink-3); font: 500 0.78rem/1 var(--f-mono); cursor: pointer; }
  html.v2 .jr .bt-tog::before { content: ""; position: absolute; inset: -10px -8px; }
  html.v2 .jr .bt-tog::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s; }
  html.v2 .jr .bt-sec.open .bt-tog::after { transform: translateY(2px) rotate(-135deg); }
  html.v2 .jr .bt-sec .sec-t h2 { font-size: 1.2rem; }
}

/* ---------- Téléphone (19 novembre) : saisie ---------- */
@media (max-width: 720px) {
  /* Champs en 16 px : en dessous, Safari sur iPhone zoome la page dès qu'on touche un champ. */
  html.v2 .jr input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), html.v2 .jr select, html.v2 .jr textarea,
  html.v2 .dlg input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), html.v2 .dlg select, html.v2 .dlg textarea { font-size: 16px; }
  /* Pastilles de la fiche (modèles, modèles de commentaire) : cibles d'au moins 34 px. */
  html.v2 .dlg .chip { min-height: 34px; padding-inline: 12px; }
  /* « Résultat saisi en » (Prices / Direct P&L) : trop large pour une demi-colonne -> toute la largeur. */
  html.v2 .dlg .frow > .fld:has(> .seg[data-seg="mode"]) { grid-column: 1 / -1; }
}
/* Saisie rapide (v2, téléphone, nouveau trade : classe quick sur le formulaire, openTrade) : champs « qk » seulement,
   sans titres de section ; en mode « P&L direct » (pnlm), quantité / entrée / stop / sortie masqués. */
.q-more { display: none; }
html.v2 .dlg form.quick .dlg-b .fld:not(.qk), html.v2 .dlg form.quick .dlg-b fieldset:not(:has(.qk)), html.v2 .dlg form.quick .dlg-b legend,
html.v2 .dlg form.quick .dlg-b .fld.qk > small, html.v2 .dlg form.quick.pnlm .dlg-b .qp { display: none; }
html.v2 .dlg form.quick .dlg-b fieldset { margin: 0; padding: 0; border: 0; }
html.v2 .dlg form.quick .dlg-b fieldset + fieldset { margin-top: 12px; }
html.v2 .dlg form.quick .q-more { display: block; width: 100%; min-height: 44px; flex: none; margin-top: 16px; }
