/* LEVEL ARENA — R detail pass (24.11): the live set R, the full trade details, the «What works for you» screen.
   Colours: positive R = the target colour, negative R = the stop colour, zero = the ink. Numbers and R stay LTR (.num). */
.rpos { color: var(--target-ink, var(--target)); }
.rneg { color: var(--stop-ink, var(--stop)); }
.rzero { color: var(--ink); }

/* the live set R at the top of the side panel */
.setR { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border: 1px solid var(--frame); border-radius: 10px; background: var(--panel); }
.setR .sr-k { font-size: 13px; color: var(--mute); }
.setR .sr-v { font-family: var(--mono); font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.setR .sr-n { font-size: 12.5px; color: var(--mute); margin-inline-start: auto; }

/* the done screen: the set R is the biggest number */
.dres-big.dres-r .num { font-size: 76px; }
.dres-big.dres-r .num.rpos, .dres-big.dres-r .num.rneg, .dres-big.dres-r .num.rzero { background: none; -webkit-background-clip: border-box; background-clip: border-box; }
.dres-big.dres-r .num.rpos { color: var(--target-ink, var(--target)); }
.dres-big.dres-r .num.rneg { color: var(--stop-ink, var(--stop)); }
.dres-big.dres-r .num.rzero { color: var(--ink); }
@media (max-width: 640px) { .dres-big.dres-r .num { font-size: 62px; } }
.dres-k b.rpos, .dres-k b.rneg { font-weight: 700; }

/* one trade's details: the result card and the done list */
.tdet { display: grid; gap: 6px; font-size: 13px; border-top: 1px solid var(--line); padding-top: 8px; }
.td-h { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-weight: 700; font-size: 14px; }
.td-h .td-r { margin-inline-start: auto; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.td-w { color: var(--mute); font-size: 12.5px; }
.td-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; margin: 0; }
.td-g > div { display: grid; gap: 1px; padding: 5px 8px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line); min-width: 0; }
.td-g .tk { font-size: 11.5px; color: var(--mute); }
.td-g .tv { font-size: 13.5px; font-weight: 700; overflow-wrap: anywhere; }
.td-end { font-weight: 700; }

/* the done list «Your 10 touches» */
.tlist { display: grid; gap: 6px; }
.tlist details.tr { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.tlist details.tr > summary { list-style: none; cursor: pointer; padding: 8px 12px; display: grid; gap: 2px; min-height: 44px; }
.tlist details.tr > summary::-webkit-details-marker { display: none; }
.tlist .tr-1 { display: flex; gap: 4px 8px; align-items: baseline; flex-wrap: wrap; font-weight: 700; font-size: 14px; }
.tlist .tr-1 .td-r { margin-inline-start: auto; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tlist .tr-2 { color: var(--mute); font-size: 12.5px; }
.tlist .tr-2::after { content: " ▾"; }
.tlist details[open] .tr-2::after { content: " ▴"; }
.tlist details.tr > .tdet { padding: 8px 12px 10px; }
.tlist .tr.skip { padding: 8px 12px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.tlist .tr.skip .mute { margin-inline-start: auto; }

/* «What works for you» */
.works { display: grid; gap: 16px; max-width: 900px; margin: 0 auto; }
.works .wsum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.works .wsum > div { display: grid; gap: 3px; padding: 8px 10px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); }
.works .wsum span { font-size: 12px; color: var(--mute); }
.works .wsum b { font-size: 20px; }
@media (max-width: 560px) { .works .wsum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wt { width: 100%; border-collapse: collapse; font-size: 13px; }
.wt th, .wt td { padding: 6px 6px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: baseline; }
.wt th { font-size: 11.5px; color: var(--mute); font-weight: 600; }
.wt td.n, .wt th.n { text-align: end; white-space: nowrap; }
[dir=rtl] .wt td.n, [dir=rtl] .wt th.n { text-align: left; }
.wt tr.few td { color: var(--mute); }
.wt tr.best td { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.wt tr.best td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
[dir=rtl] .wt tr.best td:first-child { box-shadow: inset -3px 0 0 var(--accent); }
.wt .wtag { display: inline-block; margin-inline-start: 6px; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.wt td.sym { font-family: var(--mono); font-weight: 700; }
.wnote { font-size: 13px; color: var(--mute); margin: 0; }
.wnote.best { color: var(--ink); }
@media (max-width: 420px) { .wt { font-size: 12px; } .wt th, .wt td { padding: 5px 3px; } }
