/*
 * Trader space, "the line" of grid v3 (space-line.js), in the visual language of the site's "Choose your account" drawing
 * (founder 2026-11-05). Line style is vocabulary: the goal is a glowing solid blue line, the start dashed, today's limit
 * dotted, the overall limit solid silver at full strength with a flat silver zone under it, the equity a dashed pale blue
 * line; the beam is the balance after each closed trade, a thick lit line with the area under it, a ring where it starts.
 * Every level is named in ink at 13 px with its dollars; labels sit on a knockout halo. Tokens of ../v3.css only.
 */
.ln { display: block; overflow: visible; direction: ltr; font-family: var(--f-sans); -webkit-user-select: none; user-select: none; }
.ln text { font-kerning: normal; paint-order: stroke; stroke: var(--halo); stroke-width: 7px; stroke-linejoin: round; }
.ln-flag text { stroke: none; }
.ln-c-blue { stop-color: var(--acc); }
.ln-c-hi { stop-color: var(--blue-hi); }
.ln-c-white { stop-color: var(--white); }
.ln-gridline { fill: none; stroke: color-mix(in srgb, var(--silver) 6%, transparent); stroke-width: 1; }
.ln-lv, .ln-dim, .ln-room { transition: opacity 0.5s var(--ease-v3); }
.ln-lv__line { stroke-width: 1; }
.ln-lv--goal .ln-lv__line { stroke: color-mix(in srgb, var(--acc) 96%, var(--white)); stroke-width: 2; }
.ln-lv--goal .ln-lv__glow { stroke: var(--blue-hi); stroke-width: 7; opacity: 0.42; transition: opacity 0.4s var(--ease-v3), stroke 0.4s; }
.ln-levels.is-hit .ln-lv--goal .ln-lv__glow { opacity: 1; stroke: color-mix(in srgb, var(--acc) 72%, var(--white)); }
.ln-levels.is-hit .ln-lv--goal .ln-lv__line { stroke: color-mix(in srgb, var(--acc) 40%, var(--white)); }
.ln-lv--start .ln-lv__line { stroke: color-mix(in srgb, var(--silver) 50%, transparent); stroke-dasharray: 3 5; }
.ln-lv--daily .ln-lv__line { stroke: color-mix(in srgb, var(--silver) 78%, transparent); stroke-width: 1.6; stroke-dasharray: 1 4.5; stroke-linecap: round; }
.ln-lv--limit .ln-lv__line { stroke: var(--silver); stroke-width: 1.75; }
.ln-lv--now .ln-lv__line { stroke: color-mix(in srgb, var(--beam-ink) 55%, transparent); stroke-dasharray: 2 3; }
.ln-below { fill: color-mix(in srgb, var(--silver) 7.5%, transparent); }
.ln-lv__ko { fill: var(--halo); opacity: 0.94; }
.ln-mark rect { fill: var(--cell-solid); stroke: var(--hair-3); stroke-width: 1; }
.ln-mark text { font-size: 11px; font-weight: 560; fill: var(--ink-2); stroke: none; }
.ln-mark__tick { stroke: var(--hair-3); stroke-width: 1; stroke-dasharray: 2 2; }
.ln-lv__name { font-size: 13px; font-weight: 600; font-stretch: 104%; fill: var(--ink); }
.ln-lv__val { font-family: var(--f-mono); font-stretch: 87.5%; font-size: 14px; font-weight: 500; fill: var(--ink); }
.ln-lv--goal .ln-lv__name, .ln-lv--now .ln-lv__name { fill: var(--link); }
.ln-lv--goal .ln-lv__val { fill: var(--pale); }
.ln-lv--start :is(.ln-lv__name, .ln-lv__val) { fill: var(--ink-2); }
.ln-lv--now .ln-lv__val { fill: var(--white); }
.ln-dim line, .ln-dim path { fill: none; stroke: color-mix(in srgb, var(--silver) 50%, transparent); stroke-width: 1; }
.ln-dim--up line, .ln-dim--up path { stroke: color-mix(in srgb, var(--link) 80%, transparent); }
.ln-dim__val { font-family: var(--f-mono); font-stretch: 87.5%; font-size: 15px; font-weight: 500; fill: var(--ink); }
.ln-dim--up .ln-dim__val { fill: var(--pale); }
.ln-dim__cap { font-size: 13px; fill: var(--ink-2); }
.ln-path { fill: none; stroke: var(--beam-ink); stroke-width: 2.75; stroke-linejoin: round; stroke-linecap: round; transition: opacity 0.4s; }
.ln-path-glow { fill: none; stroke: var(--blue-hi); stroke-width: 7.5; stroke-opacity: 0.55; stroke-linejoin: round; stroke-linecap: round; }
.ln-area { opacity: 0.55; }
.ln-origin { fill: var(--halo); stroke: color-mix(in srgb, var(--silver) 90%, transparent); stroke-width: 1.5; }
.ln-head__dot { fill: var(--white); }
.ln-head__ring {
  fill: color-mix(in srgb, var(--acc) 20%, transparent); stroke: color-mix(in srgb, var(--link) 90%, transparent); stroke-width: 1;
  transform-box: fill-box; transform-origin: center; animation: ln-pulse 1.6s var(--ease-v3) infinite;
}
@keyframes ln-pulse { 0% { transform: scale(0.45); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
.ln.is-ended :is(.ln-path, .ln-path-glow, .ln-head) { opacity: 0.55; }
.ln.is-ended .ln-area { opacity: 0.3; }
.ln.is-ended .ln-head__ring { animation: none; opacity: 0; }
.ln-flag { opacity: 0; transition: opacity 0.35s var(--ease-v3); }
.ln-flag rect { fill: var(--acc); filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--acc) 55%, transparent)); }
.ln-flag text { font-size: 13px; font-weight: 640; font-stretch: 104%; fill: var(--white); }

@media (max-width: 520px) {
  .ln-dim__cap, .ln-flag text { font-size: 12.5px; }
  .ln-lv__val { font-size: 13px; }
  .ln-dim__val { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .ln-head__ring { animation: none; opacity: 0.5; transform: scale(1); }
  .ln-lv, .ln-dim, .ln-lv--goal .ln-lv__glow, .ln-room, .ln-path, .ln-flag { transition: none; }
}

/* the readout of a point of the beam (hover, or a tap on a phone): a hairline, a dot, the date and the balance on a tag */
.ln-readout__line { stroke: var(--hair-3); stroke-width: 1; stroke-dasharray: 2 3; }
.ln-readout__dot { fill: var(--white); stroke: var(--acc); stroke-width: 2; }
.ln-readout__tag { fill: var(--cell-solid); stroke: var(--hair-3); stroke-width: 1; }
.ln-readout__date { font-family: var(--f-mono); font-stretch: 87.5%; font-size: 11px; fill: var(--ink-2); stroke: none; }
.ln-readout__val { font-family: var(--f-mono); font-stretch: 87.5%; font-size: 13px; font-weight: 500; fill: var(--white); stroke: none; }
.ln { touch-action: pan-y; }
