/* ============================================================
   Flashi — platform overview (operator console)
   Designed, not templated: editorial hierarchy, a diverging in/out
   flow balance (signature), and a hairline-ruled ledger with tabular
   figures + +/- direction. Monochrome, cohesive with widget.css.
   ============================================================ */
.fd{
  width:600px; box-sizing:border-box;
  background:var(--uf-dialog-bg); color:var(--uf-fg);
  border:1px solid var(--uf-border-secondary); border-radius:8px;
  padding:22px 24px 18px;
  box-shadow:0 24px 70px -24px rgba(0,0,0,.7);
  letter-spacing:-.011em;
}
.fd, .fd *{ font-family:"Sons",-apple-system,BlinkMacSystemFont,sans-serif; }
.fd .num{ font-variant-numeric:tabular-nums; font-feature-settings:"tnum" 1,"lnum" 1; }

/* ---- top bar ---- */
.fd-top{ display:flex; align-items:center; gap:9px; margin-bottom:22px; }
.fd-spark{ width:22px; height:22px; display:flex; color:var(--uf-fg); }
.fd-spark svg{ width:100%; height:100%; overflow:visible; }
.fd-word{ font-family:"Open Sauce One",sans-serif; font-weight:700; font-size:16px; letter-spacing:-.025em; }
/* org switcher — clean: just the name + a chevron (no chip, bubble, or hover) */
.fd-slash{ color:var(--uf-border-strong); font-size:14px; }
.fd-org{ display:inline-flex; align-items:center; gap:5px; padding:0; border:0; background:none;
  color:var(--uf-fg); font-size:13px; font-weight:500; letter-spacing:-.01em; cursor:pointer; }
.fd-org-cv{ width:13px; height:13px; color:var(--uf-muted); }
.fd-top .right{ margin-left:auto; display:flex; align-items:center; gap:10px; }
.fd-seg{ display:inline-flex; gap:2px; background:var(--uf-card); border:1px solid var(--uf-border); border-radius:8px; padding:3px; }
.fd-seg button{ font-size:11px; font-weight:600; color:var(--uf-muted); padding:4px 9px; border-radius:6px; cursor:default; }
.fd-seg button.on{ background:var(--uf-card-hover); color:var(--uf-fg); }
.fd-live{ display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:600; color:var(--uf-fg); }
.fd-live .dot{ width:7px; height:7px; border-radius:50%; background:#fff; }

/* ---- primary band ---- */
.fd-eyebrow{ font-size:10.5px; letter-spacing:.2em; text-transform:uppercase; color:var(--uf-muted); }
.fd-volrow{ display:flex; align-items:baseline; gap:12px; margin-top:9px; }
.fd-vol{ font-size:42px; font-weight:600; letter-spacing:-.035em; line-height:1; }
.fd-delta{ font-size:12.5px; color:var(--uf-muted); display:inline-flex; align-items:center; gap:4px; }
.fd-delta svg{ width:12px; height:12px; }

/* signature: diverging in / out flow balance */
.fd-flow{ margin-top:17px; }
.fd-flowlab{ display:flex; justify-content:space-between; font-size:11.5px; margin-bottom:8px; }
.fd-flowlab .l, .fd-flowlab .r{ display:flex; gap:7px; align-items:baseline; }
.fd-flowlab .r{ flex-direction:row-reverse; text-align:right; }
.fd-flowlab .cap{ color:var(--uf-muted); }
.fd-flowlab .amt{ color:var(--uf-fg); font-weight:600; }
/* share split: the two segments grow by percentage (set in JS) so the bar is
   ALWAYS full and the divider glides; never rescaled by absolute amount. */
.fd-flowbar{ display:flex; align-items:center; height:13px; }
.fd-flowbar .fb{ flex:0 1 0; display:flex; min-width:3px; transition:flex-grow .6s cubic-bezier(.22,1,.36,1); }
.fd-flowbar .fb i{ display:block; height:13px; width:100%; }
.fd-flowbar .fb.in i{ background:rgba(255,255,255,.85); border-radius:4px 0 0 4px; }
.fd-flowbar .fb.out i{ background:rgba(255,255,255,.26); border-radius:0 4px 4px 0; }
.fd-flowbar .axis{ width:1px; height:19px; background:var(--uf-border-strong); margin:0 2px; flex:0 0 auto; }

/* ---- credibility meta (one quiet line, not stat boxes) ---- */
/* four KPIs on ONE line: nowrap + space-between, sized to fit a 600px card */
.fd-meta{ margin:16px 0 4px; font-size:11px; color:var(--uf-muted); display:flex; flex-wrap:nowrap; align-items:baseline; justify-content:space-between; gap:10px; white-space:nowrap; letter-spacing:-.01em; }
.fd-meta span{ flex:0 0 auto; }
.fd-meta b{ color:var(--uf-fg); font-weight:600; }

/* ---- ledger (the heart): borderless, hairline-ruled table ---- */
.fd-ledhead{ display:flex; align-items:center; margin:18px 0 2px; }
.fd-ledhead .t{ font-size:12.5px; font-weight:600; }
.fd-ledhead .live{ margin-left:auto; font-size:10.5px; color:var(--uf-muted); display:inline-flex; align-items:center; gap:5px; }
.fd-ledhead .live .dot{ width:6px; height:6px; border-radius:50%; background:#fff; }
.fd-ledger{ overflow:hidden; }                 /* fixed-height clip; no scrollbar, user can't scroll */
.fd-led-track{ will-change:transform; }        /* transformed to scroll the feed down by one row */
.fd-le{ display:grid; grid-template-columns:24px 1fr auto 40px; align-items:center; gap:13px; padding:11px 0; border-bottom:1px solid var(--uf-border); will-change:transform,opacity; }
.fd-le:last-child{ border-bottom:0; }
.le-dir{ width:24px; height:24px; border-radius:7px; display:flex; align-items:center; justify-content:center; }
.le-dir svg{ width:12px; height:12px; }
.le-dir.in{ background:#fff; color:#000; }
.le-dir.out{ border:1px solid var(--uf-border-strong); color:var(--uf-fg); }
.le-desc{ min-width:0; }
.le-desc .a{ font-size:13px; font-weight:500; color:var(--uf-fg); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.le-desc .b{ font-size:11px; color:var(--uf-muted); margin-top:2px; }
.le-amt{ text-align:right; white-space:nowrap; }
.le-amt .v{ font-size:13px; font-weight:600; color:var(--uf-fg); }
.le-amt .s{ font-size:10.5px; color:var(--uf-muted); margin-top:2px; }
.le-time{ font-size:11px; color:var(--uf-muted); text-align:right; }

/* ---- rails / treasury footer ---- */
.fd-rails{ display:flex; align-items:center; gap:16px; margin-top:16px; padding-top:14px; border-top:1px solid var(--uf-border); flex-wrap:wrap; }
.fd-rails .lab{ font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--uf-muted); }
.fd-bal{ display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--uf-fg); }
.fd-bal img{ width:16px; height:16px; border-radius:50%; }
.fd-bal .q{ font-weight:600; }
.fd-bal .u{ color:var(--uf-muted); font-weight:500; }
.fd-route{ margin-left:auto; font-size:11px; color:var(--uf-muted); }
.fd-route b{ color:var(--uf-fg); font-weight:600; }
