/* FLOW PAGE: the tactical SVG drawing (boxes, links, gauges, LEDs) and its phone sizing. Built by js/06-flow.js.
   Class names there: .nd node, .bx box outline, .fk link, .gt/.gv gauge track/value, .led status light, .fl text colours (mut, hi, val, sim...). */

  /* ---- flow page: tactical display ---- */
  #v-flow.on { display:block; }
  #flowbox { position:absolute; inset:.7rem .6rem .5rem; padding:1.1rem .5rem .2rem; }
  #flowsvg { width:100%; height:100%; display:block; }
  .fl text { font-family:var(--font); fill:var(--ink); letter-spacing:.05em; }
  .fl text.mut { fill:var(--mut); } .fl text.hi { fill:var(--ink); font-weight:700; letter-spacing:.1em; }
  .fl text.k { fill:var(--mut); letter-spacing:.2em; font-size:10px; }
  .fl text.val { fill:var(--val); font-weight:700; } .fl text.sim { fill:var(--warn); letter-spacing:.12em; }
  .fl text.badt { fill:var(--bad); font-weight:700; } .fl text.warnt { fill:var(--warn); font-weight:700; } .fl text.deadt { fill:var(--mut); font-weight:700; }
  .fl .nd { cursor:default; } .fl .nd[data-fb], .fl .nd[data-fi], .fl .nd[data-ft], .fl .nd[data-fl], .fl .nd[data-fm], .fl .nd[data-fs] { cursor:pointer; }
  .fl .bx { fill:#03070a; stroke:var(--mut); stroke-opacity:.5; stroke-width:1; } [data-theme="classic"] .fl .bx { fill:var(--card); }
  .fl .bx.pcc { stroke:var(--val); stroke-opacity:1; fill:rgba(53,224,255,.07); }
  .fl .bar { fill:var(--val); opacity:.25; } .fl .nd.warn .bar { fill:var(--warn); } .fl .nd.bad .bar { fill:var(--bad); }
  .fl .nd:hover .bx { stroke:var(--val); stroke-opacity:1; }
  .fl .nd.warn .bx { stroke:var(--warn); stroke-opacity:.9; } .fl .nd.bad .bx { stroke:var(--bad); stroke-opacity:1; } .fl .nd.dead { opacity:.4; }
  .fl .gt { stroke:var(--line2); stroke-width:3; stroke-dasharray:4 0; } .fl .gv { stroke:var(--val); stroke-width:3; stroke-dasharray:4 2; }
  .fl .nd.warn .gv, .fl .gv.warn { stroke:var(--warn); } .fl .nd.bad .gv { stroke:var(--bad); }
  .fl .br { fill:none; stroke:var(--val); stroke-width:1.5; }
  .fl .tk { fill:none; stroke:var(--val); stroke-opacity:.7; } .fl .sym { fill:none; stroke:var(--val); stroke-width:1.4; }
  .fl .gridl { fill:none; stroke:var(--val); stroke-opacity:.06; } .fl .div { stroke:var(--mut); stroke-opacity:.3; stroke-dasharray:2 7; }
  .fl .hl { stroke:var(--val); stroke-opacity:.5; stroke-width:1; }
  .fl .led { fill:var(--val); } .fl .led.warn { fill:var(--warn); } .fl .led.bad { fill:var(--bad); animation:blinkled 1s steps(2) infinite; } .fl .led.dead { fill:var(--mut); }
  .fl .lg { fill:var(--val); } .fl .lg.warn { fill:var(--warn); } .fl .lg.bad { fill:var(--bad); } .fl .lg.dead { fill:var(--mut); }
  @keyframes blinkled { 50% { opacity:.15; } }
  .fk { fill:none; stroke-linejoin:miter; stroke-linecap:butt; } .fk.l { stroke:var(--val); opacity:.55; } .fk.warn { stroke:var(--warn); opacity:.8; } .fk.bad { stroke:var(--bad); opacity:.85; }
  .fk.dead { stroke:var(--mut); opacity:.2; } .fk.lead { stroke:var(--val); stroke-dasharray:2 4; opacity:.6; }
  body.still .fl .led.bad { animation:none; }
  body.phone #flowbox { position:relative; inset:auto; overflow:auto; height:75vh; margin:.5rem; padding-top:1.4rem; }
  body.phone #flowsvg { width:1100px; height:620px; }
  .fl .sp { fill:none; stroke:var(--val); stroke-width:1.4; } .fl .sp.gen { stroke:var(--gen); } .fl text.gen { fill:var(--gen); font-weight:700; } .fl .gv.gen { stroke:var(--gen); }
  .fl .hl.foc { stroke-opacity:1; stroke-width:3; } .fl text.foc { fill:var(--val); }
  .fl .card .bx.pcc { fill:rgba(53,224,255,.05); } .fl text.deadt { fill:var(--mut); }


  /* ---- tracker groups in the strings column: every string shows its tracker name; the strings of one tracker share a band, a solid bar
         on the left, a tinted box and a coloured outline. Four tints repeat (cyan, green, violet, pink: amber and red stay for warnings). ---- */
  .fl .trk.t0 { fill:#35e0ff; } .fl .trk.t1 { fill:#3ddc97; } .fl .trk.t2 { fill:#b48cff; } .fl .trk.t3 { fill:#ff7ab8; } .fl .trk { opacity:.17; }
  .fl .trkbar.t0 { fill:#35e0ff; } .fl .trkbar.t1 { fill:#3ddc97; } .fl .trkbar.t2 { fill:#b48cff; } .fl .trkbar.t3 { fill:#ff7ab8; } .fl .trkbar { opacity:.95; }
  .fl .nd.t0 .bx { fill:rgba(53,224,255,.13); } .fl .nd.t1 .bx { fill:rgba(61,220,151,.13); } .fl .nd.t2 .bx { fill:rgba(180,140,255,.14); } .fl .nd.t3 .bx { fill:rgba(255,122,184,.14); }
  .fl .nd.t0:not(.warn):not(.bad) .bx { stroke:#35e0ff; stroke-opacity:.85; } .fl .nd.t1:not(.warn):not(.bad) .bx { stroke:#3ddc97; stroke-opacity:.85; }
  .fl .nd.t2:not(.warn):not(.bad) .bx { stroke:#b48cff; stroke-opacity:.85; } .fl .nd.t3:not(.warn):not(.bad) .bx { stroke:#ff7ab8; stroke-opacity:.85; }
  .fl text.trkt { font-weight:700; letter-spacing:.04em; } .fl text.trkt.t0 { fill:#35e0ff; } .fl text.trkt.t1 { fill:#3ddc97; } .fl text.trkt.t2 { fill:#b48cff; } .fl text.trkt.t3 { fill:#ff7ab8; }
