/* Ekalix - the traffic map and the database board (web\flowview.js).
 *
 * Every class here starts with flv- so nothing can collide with styles.css or another module.
 * Only the product's custom properties are used, so the five themes work unchanged; the colours
 * for applications are derived from each theme's accents and tones with color-mix(), never
 * written as literals, and no category is ever given the critical red.
 *
 * Motion follows the same three rules as the availability-group diagram:
 *   - particles, the sheen and the pings run under prefers-reduced-motion: no-preference,
 *   - or when the page says data-motion="on", whatever the operating system reports,
 *   - and never under data-motion="off" (styles.css already switches every transition off there).
 * With motion off the picture must still read: thickness, labels and numbers carry the meaning.
 */

/* ---------- shared ------------------------------------------------------------ */

.flv-map,
.flv-board {
  /* The source palette: seven hues from the theme, then a neutral for Others. In order of
     preference - a new name takes the first free one - so the theme's own two accents come
     first, then the cooler mixes, and the two warm hues that sit nearest the severities last. */
  --flv-c0: var(--accent);
  --flv-c1: var(--accent-2);
  --flv-c2: color-mix(in oklab, var(--ok) 60%, var(--info));
  --flv-c3: color-mix(in oklab, var(--accent-2) 50%, var(--serious));
  --flv-c4: color-mix(in oklab, var(--ok) 55%, var(--warning));
  --flv-c5: color-mix(in oklab, var(--warning) 84%, var(--serious));
  --flv-c6: var(--serious);
  --flv-c7: var(--muted);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  font-family: var(--font);
  color: var(--text);
}

/* Aurora's second accent is already teal, which the green-blue mix would repeat: its info blue is free. */
:root[data-theme="aurora"] .flv-map,
:root[data-theme="aurora"] .flv-board { --flv-c2: var(--info); }

.flv-c0 { --flv-col: var(--flv-c0); }
.flv-c1 { --flv-col: var(--flv-c1); }
.flv-c2 { --flv-col: var(--flv-c2); }
.flv-c3 { --flv-col: var(--flv-c3); }
.flv-c4 { --flv-col: var(--flv-c4); }
.flv-c5 { --flv-col: var(--flv-c5); }
.flv-c6 { --flv-col: var(--flv-c6); }
.flv-c7 { --flv-col: var(--flv-c7); }

.flv-head { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; min-width: 0; }
.flv-title {
  flex: 1 1 220px; min-width: 0;
  font-size: 13.5px; font-weight: 650; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.flv-grow { flex: 1 1 auto; }
.flv-it { color: var(--text-3); font-weight: 400; }

.flv-note {
  display: flex; align-items: center; gap: 9px; min-width: 0;
  font-size: var(--fs-small); color: var(--text-2);
  background: var(--info-bg); border: 1px solid var(--info-bd); border-radius: var(--r-s);
  padding: 6px 11px;
}
.flv-note > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.flv-note-i {
  width: 16px; height: 16px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--info); color: var(--bg);
  font-size: 10px; font-weight: 800; line-height: 1;
}

/* ---------- controls ------------------------------------------------------------ */

.flv-ctls { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.flv-ctl { display: inline-flex; align-items: center; gap: 8px; }
.flv-ctl-k {
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3); white-space: nowrap;
}
.flv-seg {
  display: inline-flex; gap: 2px; padding: 2px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2);
}
.flv-seg > button {
  appearance: none; border: 0; margin: 0;
  padding: 3px 11px; border-radius: 999px;
  background: transparent; color: var(--text-3);
  font: inherit; font-size: var(--fs-small); font-weight: 600; line-height: 1.5;
  white-space: nowrap; cursor: pointer;
  transition: background var(--t), color var(--t), box-shadow var(--t);
}
.flv-seg > button:hover { color: var(--text); }
.flv-seg > button.on {
  background: var(--accent-bg); color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-bd);
}
.flv-seg > button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- legend and totals ------------------------------------------------------ */

.flv-legend {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; min-width: 0;
  font-size: var(--fs-small); color: var(--text-3);
}
.flv-lg { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
/* A ribbon in miniature: wide where it leaves, narrower where it lands. */
.flv-lg-thick i {
  display: inline-block; width: 26px; height: 10px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 75%, transparent), color-mix(in srgb, var(--accent) 22%, transparent));
  clip-path: polygon(0 0, 100% 28%, 100% 72%, 0 100%);
}
.flv-lg-part i { display: inline-flex; align-items: center; gap: 4px; }
.flv-lg-part b {
  width: 4px; height: 4px; border-radius: 50%;
  background: color-mix(in oklab, var(--accent) 60%, var(--text));
  box-shadow: 0 0 5px color-mix(in srgb, var(--accent) 70%, transparent);
}
.flv-lg-part b:nth-child(2) { opacity: .7; }
.flv-lg-part b:nth-child(3) { opacity: .45; }
.flv-total {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
  color: var(--text-2); font-variant-numeric: tabular-nums;
}
.flv-total b { font-weight: 600; color: var(--text); }

/* ---------- the stage ---------------------------------------------------------------- */

.flv-scroll {
  position: relative; min-width: 0;
  overflow-x: auto; overflow-y: hidden;
  border: 1px solid var(--hairline); border-radius: var(--r-s);
  background:
    radial-gradient(520px 260px at 6% 50%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 72%),
    radial-gradient(520px 260px at 97% 50%, color-mix(in srgb, var(--accent-2) 6%, transparent), transparent 72%),
    var(--surface-1);
}
/* A faint ruled grid, like the one behind the whole page, so the stage reads as an instrument. */
.flv-stage {
  position: relative; overflow: hidden;
  background-image:
    linear-gradient(color-mix(in srgb, var(--text-3) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--text-3) 4%, transparent) 1px, transparent 1px);
  background-size: 100% 28px, 28px 100%;
}
.flv-svg, .flv-parts { position: absolute; left: 0; top: 0; display: block; overflow: visible; }
/* Its own compositing layer: the particles repaint every frame, the ribbons under them never do. */
.flv-parts { pointer-events: none; will-change: transform; }

.flv-colh {
  position: absolute; top: 8px;
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
}
.flv-colh.l { text-align: right; }

/* ribbons: a gradient per colour, bright where the work leaves and fading into the database */
.flv-grad stop { stop-color: var(--flv-col); }
.flv-grad stop.a { stop-opacity: .66; }
.flv-grad stop.m { stop-opacity: .36; }
.flv-grad stop.b { stop-opacity: .26; }
.flv-rib { opacity: .92; cursor: pointer; transition: opacity .22s ease, filter .22s ease; }
.flv-rib.is-top { filter: drop-shadow(0 0 7px color-mix(in srgb, var(--flv-col) 48%, transparent)); }
.flv-stage.has-hot .flv-rib { opacity: .09; }
.flv-stage.has-hot .flv-rib.is-hot {
  opacity: 1;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--flv-col) 55%, transparent));
}
.flv-rib.is-gone { pointer-events: none; }

/* bars */
.flv-bar { cursor: pointer; transition: opacity .22s ease; }
.flv-bar.s { fill: var(--flv-col); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--flv-col) 60%, transparent)); }
.flv-bar.s.flv-c7 { filter: none; }
.flv-bar.t { fill: color-mix(in oklab, var(--text-2) 82%, var(--accent)); }
.flv-bar.t.is-others { fill: var(--muted); }
.flv-stage.has-hot .flv-bar.is-dim { opacity: .28; }

/* labels: HTML over the drawing, so they ellipsize like every other label on the page */
.flv-labs { position: absolute; inset: 0; pointer-events: none; }
.flv-lab {
  position: absolute; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 0; min-width: 0;
  pointer-events: auto; cursor: pointer;
  border-radius: var(--r-xs);
  transition: opacity .22s ease;
}
.flv-lab.l { align-items: flex-end; text-align: right; }
.flv-lab.r { align-items: flex-start; text-align: left; }
.flv-lab-nm {
  display: block; max-width: 100%;
  font-size: calc(var(--fs-body) + .5px); font-weight: 600; line-height: 15px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.flv-lab-v {
  display: block; max-width: 100%;
  font-family: var(--mono); font-size: var(--fs-micro); line-height: 13px; color: var(--text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* No room for two lines: the figures follow the name on the same line, and the name gives way first. */
.flv-lab.one { flex-direction: row; align-items: baseline; gap: 7px; }
.flv-lab.one.l { justify-content: flex-end; }
.flv-lab.one .flv-lab-nm { flex: 0 1 auto; min-width: 0; }
.flv-lab.one .flv-lab-v { flex: 0 0 auto; max-width: none; }
.flv-lab.is-others .flv-lab-nm { color: var(--text-2); font-weight: 500; font-style: italic; }
.flv-lab.is-hot .flv-lab-nm { color: var(--accent); }
.flv-lab .flv-cyl { color: var(--text-3); margin-right: 5px; vertical-align: -1px; }
.flv-lab.is-hot .flv-cyl { color: var(--accent); }
.flv-stage.has-hot .flv-lab.is-dim { opacity: .3; }

/* particles: invisible unless the animation is really running, because a still dot reads as
   traffic too (the same trap agview.js documents for its packets) */
.flv-lanes { transition: opacity .22s ease; }
.flv-lanes.is-dim { opacity: .08; }
.flv-p {
  fill: none; stroke-linecap: round; opacity: 0;
  stroke: color-mix(in oklab, var(--flv-col) 52%, var(--text));
}
.flv-p.halo, .flv-p.tail { stroke: var(--flv-col); }

@keyframes flv-pour { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes flv-ping { from { transform: scale(.35); opacity: .85; } to { transform: scale(1.3); opacity: 0; } }
@keyframes flv-sheen { 0%, 58% { transform: translateX(-110%); } 100% { transform: translateX(110%); } }
@keyframes flv-grow { from { transform: scaleX(0); } }
@keyframes flv-rowin { from { opacity: 0; } }

/* Longhands only: the duration and the delay are set inline from the rate, and an `animation:`
   shorthand here would reset both. */
@media (prefers-reduced-motion: no-preference) {
  .flv-parts.is-on .flv-p {
    opacity: .95;
    animation-name: flv-pour; animation-timing-function: linear; animation-iteration-count: infinite;
  }
  .flv-parts.is-on .flv-p.halo { opacity: .2; }
  .flv-parts.is-on .flv-p.tail { opacity: .42; }
  .flv-parts.is-on { animation: flv-rowin .7s ease-out backwards; }
  .flv-empty-ring i:first-child { animation: flv-ping 2.8s ease-out infinite; }
  .flv-rows.is-intro .flv-row { animation: flv-rowin .45s ease-out backwards; }
  .flv-rows.is-intro .flv-fill, .flv-rows.is-intro .flv-glow { animation: flv-grow .9s cubic-bezier(.2, .75, .25, 1) backwards; }
  .flv-row.is-lead .flv-fill::after { animation: flv-sheen 4.6s ease-in-out infinite; }
}
/* The reader's override sits outside the media query: a rule inside no-preference can never
   apply on a machine reporting reduce, however specific it is. */
:root[data-motion="on"] .flv-parts.is-on .flv-p {
  opacity: .95;
  animation-name: flv-pour; animation-timing-function: linear; animation-iteration-count: infinite;
}
:root[data-motion="on"] .flv-parts.is-on .flv-p.halo { opacity: .2; }
:root[data-motion="on"] .flv-parts.is-on .flv-p.tail { opacity: .42; }
:root[data-motion="on"] .flv-parts.is-on { animation: flv-rowin .7s ease-out backwards; }
:root[data-motion="on"] .flv-empty-ring i:first-child { animation: flv-ping 2.8s ease-out infinite; }
:root[data-motion="on"] .flv-rows.is-intro .flv-row { animation: flv-rowin .45s ease-out backwards; }
:root[data-motion="on"] .flv-rows.is-intro .flv-fill,
:root[data-motion="on"] .flv-rows.is-intro .flv-glow { animation: flv-grow .9s cubic-bezier(.2, .75, .25, 1) backwards; }
:root[data-motion="on"] .flv-row.is-lead .flv-fill::after { animation: flv-sheen 4.6s ease-in-out infinite; }
/* Last and more specific, so "off" genuinely means off. */
:root[data-motion="off"] .flv-parts .flv-p,
:root[data-motion="off"] .flv-parts .flv-p.halo,
:root[data-motion="off"] .flv-parts .flv-p.tail { opacity: 0; animation-name: none; }
:root[data-motion="off"] .flv-parts,
:root[data-motion="off"] .flv-empty-ring i,
:root[data-motion="off"] .flv-rows .flv-row,
:root[data-motion="off"] .flv-rows .flv-fill,
:root[data-motion="off"] .flv-rows .flv-glow,
:root[data-motion="off"] .flv-row.is-lead .flv-fill::after { animation: none; }

/* the hover card */
.flv-card {
  position: absolute; z-index: 3; pointer-events: none;
  width: calc(var(--fs-small) * 27.5); max-width: calc(100% - 12px);
  padding: 10px 12px 9px;
  border: 1px solid var(--border-2); border-radius: var(--r-s);
  background: color-mix(in srgb, var(--raised) 94%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.flv-card.mid { transform: translateX(-50%); }
.flv-card-t { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 12.5px; font-weight: 650; color: var(--text); }
.flv-card-t .flv-cyl { flex: 0 0 auto; color: var(--text-2); }
.flv-card-nm { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flv-sw {
  width: 10px; height: 10px; flex: 0 0 auto; border-radius: 3px;
  background: var(--flv-col);
  box-shadow: 0 0 7px color-mix(in srgb, var(--flv-col) 65%, transparent);
}
.flv-card-s {
  margin: 1px 0 0 17px; font-size: var(--fs-micro); color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.flv-card-g { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 11px; margin-top: 8px; }
.flv-card-r { display: contents; }
.flv-card-r .k, .flv-card-lt {
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3); align-self: center; white-space: nowrap;
}
.flv-card-r .v {
  font-family: var(--mono); font-size: var(--fs-small); color: var(--text);
  font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.flv-card-l { margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 2px; }
.flv-card-lt { margin-bottom: 1px; align-self: flex-start; }
.flv-card-li { display: flex; align-items: baseline; gap: 10px; min-width: 0; font-size: var(--fs-small); }
.flv-card-li .n { flex: 1 1 auto; min-width: 0; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flv-card-li .v { flex: 0 0 auto; font-family: var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.flv-card-more { font-size: var(--fs-micro); color: var(--text-3); white-space: nowrap; }

/* nothing connected */
.flv-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  text-align: center; padding: 20px;
}
.flv-empty-ring { position: relative; width: 56px; height: 56px; margin-bottom: 10px; }
.flv-empty-ring i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--accent-bd); }
.flv-empty-ring i + i { inset: 19px; border-color: var(--accent); background: var(--accent-bg); }
.flv-empty-t { font-size: 13.5px; font-weight: 650; color: var(--text-2); white-space: nowrap; }
.flv-empty-s { font-size: var(--fs-small); color: var(--text-3); white-space: nowrap; }

.flv-foot { font-size: var(--fs-small); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.flv-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- the database board ---------------------------------------------------------- */

.flv-chips { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.flv-chip {
  appearance: none; margin: 0;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2);
  border-radius: 999px; padding: 3px 11px;
  font: inherit; font-size: var(--fs-small); font-weight: 600; line-height: 1.5;
  white-space: nowrap; cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.flv-chip:hover { border-color: var(--accent-bd); color: var(--text); }
.flv-chip.on { background: var(--accent-bg); border-color: var(--accent-bd); color: var(--accent); }
.flv-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.flv-bsub {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  font-size: var(--fs-small); color: var(--text-3); white-space: nowrap;
}
.flv-bsub > span:first-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.flv-rows {
  position: relative; overflow: hidden;
  border: 1px solid var(--hairline); border-radius: var(--r-s);
  background: var(--surface-1);
}
/* 48 px pitch including the rule, which is ROW_H in flowview.js: the FLIP offsets depend on it. */
.flv-row {
  position: relative; height: 48px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-1);
  transition: transform .62s cubic-bezier(.2, .75, .25, 1);
}
.flv-row:last-child { border-bottom-color: transparent; }
.flv-row.is-lead {
  background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 10%, var(--surface-1)), var(--surface-1) 62%);
}
.flv-rowbtn {
  appearance: none; border: 0; margin: 0;
  width: 100%; height: 100%;
  display: grid;
  /* Fixed tracks, not content-sized ones: every row is its own grid, and only fixed tracks keep
     the bars and the numbers lined up from one row to the next. */
  grid-template-columns: 22px minmax(0, 1.7fr) minmax(0, 1fr) calc(var(--fs-micro) * 15.6);
  align-items: center; column-gap: 12px;
  padding: 0 14px 0 8px;
  background: transparent; color: inherit; font: inherit; text-align: left;
  cursor: pointer;
  transition: background var(--t);
}
.flv-rowbtn:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.flv-rowbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--r-xs); }

.flv-rank {
  font-family: var(--mono); font-size: var(--fs-small); color: var(--text-3);
  text-align: right; font-variant-numeric: tabular-nums;
}
.flv-row.is-lead .flv-rank { color: var(--tone); font-weight: 700; }

.flv-dbn { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.flv-dbnm {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  font-size: calc(var(--fs-body) + 1px); font-weight: 600; color: var(--text); line-height: 16px;
}
.flv-dbnm .flv-cyl { flex: 0 0 auto; color: var(--text-3); }
.flv-row.is-lead .flv-dbnm .flv-cyl { color: var(--tone); }
.flv-dbtx { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flv-dbsub {
  padding-left: 15px; font-size: var(--fs-micro); color: var(--text-3); line-height: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.flv-barw { position: relative; height: 12px; min-width: 0; }
.flv-track {
  position: absolute; left: 0; right: 0; top: 2px; height: 8px;
  border-radius: 999px; overflow: hidden;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-3) 8%, transparent);
}
.flv-fill {
  position: absolute; inset: 0; transform-origin: 0 50%; overflow: hidden;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 42%, transparent), var(--tone));
  transition: transform .7s cubic-bezier(.2, .75, .25, 1);
}
.flv-row.is-lead .flv-fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 38%, transparent), transparent);
  transform: translateX(-110%);
}
.flv-glow {
  position: absolute; left: 0; right: 0; top: 0; height: 12px; transform-origin: 0 50%;
  border-radius: 999px; background: var(--tone); opacity: .38; filter: blur(7px);
  pointer-events: none;
  transition: transform .7s cubic-bezier(.2, .75, .25, 1);
}

.flv-num { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; }
.flv-main { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.flv-main b {
  font-family: var(--mono); font-size: 16px; font-weight: 600; line-height: 19px; color: var(--text);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.flv-main i { font-style: normal; font-size: var(--fs-micro); color: var(--text-3); }
.flv-row.is-lead .flv-main b { color: var(--tone); text-shadow: 0 0 14px color-mix(in srgb, var(--tone) 45%, transparent); }
.flv-row.t-warning .flv-main b, .flv-row.t-critical .flv-main b { color: var(--tone); }
.flv-row.is-null .flv-main b { color: var(--text-3); font-weight: 500; }
.flv-second {
  max-width: 100%; font-family: var(--mono); font-size: var(--fs-micro); line-height: 13px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums;
}
.flv-flag {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 5px; align-self: center;
  font-size: var(--fs-micro); font-weight: 700; color: var(--tone); white-space: nowrap;
}
.flv-flag-g {
  width: 14px; height: 14px; flex: 0 0 auto;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--tone); color: var(--bg);
  font-size: 9px; font-weight: 800; line-height: 1;
}

.flv-more { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: var(--fs-small); color: var(--text-3); white-space: nowrap; }
.flv-more > span:first-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.flv-morebtn {
  appearance: none; margin: 0;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2);
  border-radius: var(--r-xs); padding: 3px 10px;
  font: inherit; font-size: var(--fs-small); white-space: nowrap; cursor: pointer;
  transition: color var(--t), border-color var(--t);
}
.flv-morebtn:hover { color: var(--text); border-color: var(--border-2); }

.flv-bempty {
  padding: 24px 14px; text-align: center;
  font-size: var(--fs-small); color: var(--text-3);
  border: 1px dashed var(--border); border-radius: var(--r-s);
}
