/* ============================================================
   PRIMENESS: Field Survey page, revision of 10/11/2026 (REV1011)
   Sharp zoom tiles, the sheet ribbon (#sample), where your work lives (#files), the client portal (#portal).
   Script: assets/js/fs-rev.js (and the tiles in field-survey.js). Black + volt, same tokens as styles.css.
   ============================================================ */

/* "Coming soon" bits of the Primeness Cloud storage add-on. When it opens for sale add:
   [data-soon="cloud-storage"] { display: none !important; }   and bump fs-rev.css?v= */
.fs-soon { display: inline-flex; align-items: center; margin-left: 10px; padding: 3px 9px; border: 1px solid rgba(255,176,32,.45); border-radius: 100px;
  background: rgba(255,176,32,.08); font: 600 11px/1.2 var(--font-mono); letter-spacing: .04em; color: #ffc65c; vertical-align: middle; white-space: nowrap; }

/* ---------- sharp zoom tiles ---------- */
.fs-deep { position: absolute; left: 0; top: 0; pointer-events: none; }
.fs-deep[hidden] { display: none; }
.fs-deep--kx { width: 100%; height: 100%; }
.fs-deep--lb { transform-origin: 0 0; }
.fs-deep--lb.is-anim { transition: transform .32s var(--ease-out); }
.fs-deep__t { position: absolute; display: block; max-width: none; border-radius: 0; opacity: 0; transition: opacity .45s var(--ease-out); user-select: none; -webkit-user-drag: none; }
.fs-deep__t.is-in { opacity: 1; }

/* ---------- #sample: count tiles as buttons + the sheet ribbon ---------- */
.fs-set li { position: relative; transition: background .3s; }
.fs-set__hit { position: absolute; inset: 0; z-index: 1; border: 0; background: transparent; cursor: pointer; border-radius: 0; }
.fs-set__hit:focus-visible { outline: 2px solid var(--volt); outline-offset: -3px; }
.fs-set li:hover { background: #111114; }
.fs-set li.is-pick { background: linear-gradient(180deg, rgba(191,255,0,.12), rgba(191,255,0,.02)); }
.fs-set li.is-pick b { text-shadow: 0 0 22px rgba(191,255,0,.55); }
.fs-set li > b { transition: transform .4s var(--ease-out); }
.fs-set li.is-pick > b { transform: translateY(-2px) scale(1.06); }

.fs-rb { max-width: 1120px; margin: calc(-1 * clamp(20px, 3vw, 36px)) auto clamp(36px, 5vw, 56px); }
.fs-rb__bars { display: grid; grid-template-columns: repeat(var(--n, 63), minmax(0, 1fr)); gap: 2px; align-items: end; height: 46px; padding: 0 2px; }
.fs-rb__bars i { display: block; height: 22px; border-radius: 2px; background: #2a2a31; transform-origin: 50% 100%;
  transition: background .35s, height .45s var(--ease-out), box-shadow .35s, opacity .35s; }
.fs-rb__bars i.is-first { margin-left: 3px; }
.fs-rb__bars i.is-on { background: rgba(191,255,0,.55); }
.fs-rb.is-pick .fs-rb__bars i:not(.is-on) { opacity: .35; }
.fs-rb.is-pick .fs-rb__bars i.is-on { background: var(--volt); box-shadow: 0 0 12px -2px var(--volt-glow); }
.fs-rb__bars i.is-rise { animation: rbRise .5s var(--ease-out) both; animation-delay: calc(var(--j, 0) * 22ms); height: 40px; }
@keyframes rbRise { from { height: 22px; } 60% { height: 46px; } to { height: 40px; } }
.fs-rb.is-wait .fs-rb__bars i { transform: scaleY(0); }
.fs-rb.is-build .fs-rb__bars i { animation: rbBuild .5s var(--ease-out) both; animation-delay: calc(var(--k) * 18ms); }
@keyframes rbBuild { from { transform: scaleY(0); background: var(--volt); } 70% { background: var(--volt); } to { transform: scaleY(1); } }
.fs-rb__read { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 16px; min-height: 44px; margin-top: 14px; text-align: center; }
.fs-rb__say { font: 500 13px/1.5 var(--font-mono); color: var(--muted); }
.fs-rb__say b { color: var(--volt); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.fs-rb__say > span:not(.fs-rb__range) { color: var(--faint); }
.fs-rb__range { padding: 2px 8px; border: 1px solid rgba(191,255,0,.35); border-radius: 100px; color: var(--ink); white-space: nowrap; }
.fs-rb__open { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid rgba(191,255,0,.45); border-radius: 100px;
  background: rgba(10,10,11,.6); font: 600 12px/1 var(--font-mono); color: var(--volt); cursor: pointer; transition: background .25s, box-shadow .25s; }
.fs-rb__open:hover { background: rgba(191,255,0,.1); box-shadow: 0 0 22px -8px var(--volt-glow); }
.fs-rb__open[hidden] { display: none; }
@media (max-width: 640px) {
  .fs-rb { margin-top: -12px; }
  .fs-rb__bars { gap: 1px; height: 38px; }
  .fs-rb__bars i { height: 18px; }
  .fs-rb__bars i.is-rise { height: 32px; }
  @keyframes rbRise { from { height: 18px; } 60% { height: 38px; } to { height: 32px; } }
}

/* ---------- #portal: the client portal, drawn live ---------- */
.fs-pvsec { background: radial-gradient(70% 50% at 50% 0%, rgba(191,255,0,.06), rgba(191,255,0,0) 70%), #08080a; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fs-pv { max-width: 1040px; margin: 0 auto; }
.fs-pv__win { border-radius: 14px; overflow: hidden; border: 1px solid #2c2c32; background: #0d0d10;
  box-shadow: 0 50px 110px -50px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.03) inset, 0 0 90px -40px rgba(191,255,0,.35); }
.fs-pv__app { position: relative; padding: clamp(14px, 2.4vw, 26px); min-height: 430px; }
.fs-pv__hd { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.fs-pv__logo { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--volt); border-radius: 11px; font: 700 16px/1 var(--font-display); color: var(--volt); box-shadow: 0 0 22px -8px var(--volt-glow); }
.fs-pv__who { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; }
.fs-pv__who b { font: 700 17px/1.2 var(--font-display); color: var(--white); }
.fs-pv__who span { font: 500 12px/1.4 var(--font-mono); color: var(--muted); }
.fs-pv__req { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(191,255,0,.5); border-radius: 100px;
  background: rgba(191,255,0,.06); font: 600 13px/1 var(--font-display); color: var(--volt); cursor: pointer; transition: background .25s, box-shadow .25s; }
.fs-pv__req:hover, .fs-pv__req[aria-expanded="true"] { background: rgba(191,255,0,.14); box-shadow: 0 0 24px -8px var(--volt-glow); }
.fs-pv__tabs { position: relative; display: flex; gap: 4px; margin-top: 14px; padding: 4px; border: 1px solid var(--line); border-radius: 100px; background: #09090b; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.fs-pv__tabs::-webkit-scrollbar { display: none; }
.fs-pv__tab { flex: none; min-height: 36px; padding: 0 16px; border: 0; border-radius: 100px; background: transparent; font: 600 13px/1 var(--font-display); color: var(--muted); cursor: pointer; transition: color .25s, background .3s; }
.fs-pv__tab:hover { color: var(--ink); }
.fs-pv__tab[aria-selected="true"] { background: var(--volt); color: #0A0A0B; box-shadow: 0 0 20px -6px var(--volt-glow); }
.fs-pv__tab:focus-visible { outline: 2px solid var(--volt); outline-offset: 2px; }
.fs-pv__body { margin-top: 18px; }
.fs-pv__pane[hidden] { display: none; }
.fs-pv__lbl { font: 500 12px/1.5 var(--font-mono); color: var(--faint); letter-spacing: .02em; }

/* overview */
.fs-pv__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fs-pv__tile { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2);
  opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), border-color .4s; }
.fs-pv__tile.is-in { opacity: 1; transform: none; border-color: rgba(191,255,0,.28); }
.fs-pv__tile b { font: 700 clamp(26px, 3vw, 34px)/1 var(--font-display); color: var(--volt); font-variant-numeric: tabular-nums; }
.fs-pv__tile span { font: 500 12px/1.35 var(--font-mono); color: var(--muted); }
.fs-pv__row { margin-top: 18px; }
.fs-pv__rbars { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; align-items: end; height: 130px; margin-top: 10px; }
.fs-pv__rbars span { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; height: 100%; gap: 6px; }
.fs-pv__rbars i { display: block; height: calc(var(--h) * 100px + 4px); border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #3a3a42, #222227);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .7s var(--ease-out); transition-delay: calc(var(--i) * 60ms); }
.fs-pv__rbars span.is-here i { background: linear-gradient(180deg, var(--volt), #6f9400); box-shadow: 0 0 22px -6px var(--volt-glow); }
.fs-pv__rbars b { font: 600 11px/1 var(--font-mono); color: var(--muted); text-align: center; }
.fs-pv__rbars span.is-here b { color: var(--volt); }
.fs-pv__row.is-on .fs-pv__rbars i { transform: scaleY(1); }

/* racks */
.fs-pv__rk { display: grid; grid-template-columns: 200px minmax(0, 170px) minmax(0, 1fr); grid-template-areas: "list art tip" "list art qr"; gap: 14px 22px; align-items: start; }
.fs-pv__rlist { grid-area: list; display: flex; flex-direction: column; gap: 4px; }
.fs-pv__rlist li { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; border-radius: 8px; border: 1px solid transparent; font: 500 12px/1.3 var(--font-mono); color: var(--faint);
  opacity: 0; transform: translateX(-10px); transition: opacity .4s var(--ease-out), transform .5s var(--ease-out), background .4s, border-color .4s, color .4s; transition-delay: calc(var(--i) * 45ms); }
.fs-pv__rlist li b { color: var(--muted); }
.fs-pv__rlist li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-pv__rk.is-on .fs-pv__rlist li { opacity: 1; transform: none; }
.fs-pv__rlist li.is-here { border-color: rgba(191,255,0,.45); background: rgba(191,255,0,.08); color: var(--ink); }
.fs-pv__rlist li.is-here b { color: var(--volt); }
.fs-pv__art { grid-area: art; position: relative; opacity: 0; transform: translateY(20px) scale(.97); transition: opacity .6s var(--ease-out) .3s, transform .7s var(--ease-out) .3s; }
.fs-pv__rk.is-on .fs-pv__art { opacity: 1; transform: none; }
.fs-pv__art svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.7)); }
.fs-pv__hl { fill: rgba(191,255,0,.14); stroke: var(--volt); stroke-width: 1.4; opacity: 0; transition: y .45s var(--ease-out), height .45s var(--ease-out), opacity .3s; }
.fs-pv__hl.is-on { opacity: 1; }
.fs-pv__tip { grid-area: tip; min-height: 64px; padding: 14px 16px; border: 1px solid rgba(191,255,0,.3); border-radius: 12px; background: rgba(191,255,0,.05); font: 600 15px/1.45 var(--font-display); color: var(--white); }
.fs-pv__tip:empty { opacity: 0; }
.fs-pv__tip b { margin-right: 6px; font-family: var(--font-mono); color: var(--volt); }
.fs-pv__tip span { display: block; margin-top: 4px; font: 500 12px/1.4 var(--font-mono); color: var(--muted); }
.fs-pv__tip.is-in { animation: pvTip .45s var(--ease-out); }
@keyframes pvTip { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fs-pv__qr { grid-area: qr; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; }
.fs-pv__qr p { display: flex; flex-direction: column; gap: 3px; }
.fs-pv__qr b { font: 600 14px/1.2 var(--font-display); color: var(--white); }
.fs-pv__qr span { font: 500 12px/1.4 var(--font-mono); color: var(--muted); }
.fs-pv__qrc { position: relative; flex: none; width: 54px; height: 54px; border-radius: 6px; overflow: hidden;
  background: conic-gradient(from 90deg at 30% 30%, #f4f4f5 0 25%, #0A0A0B 0 50%, #f4f4f5 0 75%, #0A0A0B 0) 0 0 / 9px 9px; box-shadow: 0 0 0 4px #f4f4f5 inset; }
.fs-pv__qrc::before, .fs-pv__qrc::after { content: ""; position: absolute; width: 16px; height: 16px; border: 4px solid #0A0A0B; outline: 3px solid #f4f4f5; background: #f4f4f5; }
.fs-pv__qrc::before { left: 5px; top: 5px; }
.fs-pv__qrc::after { right: 5px; top: 5px; }
.fs-pv__qr.is-scan { border-color: rgba(191,255,0,.5); }
.fs-pv__qr.is-scan .fs-pv__qrc { animation: pvScan 1.4s var(--ease) 2; }
@keyframes pvScan { 0%, 100% { box-shadow: 0 0 0 4px #f4f4f5 inset, 0 0 0 0 rgba(191,255,0,0); } 50% { box-shadow: 0 0 0 4px var(--volt) inset, 0 0 26px 2px rgba(191,255,0,.5); } }

/* tests */
.fs-pv__tbars { display: grid; grid-template-columns: repeat(18, minmax(0, 1fr)); gap: 6px; align-items: end; height: 170px; margin-top: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.fs-pv__tbars span { display: flex; align-items: flex-end; height: 100%; }
.fs-pv__tbars i { display: block; width: 100%; height: calc(var(--h) * 100%); border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, var(--volt), #5d7d00);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .6s var(--ease-out); transition-delay: calc(var(--i) * 55ms); }
.fs-pv__tbars span.is-mar i { background: linear-gradient(180deg, #ffc65c, #8a6100); }
.fs-pv__tbars.is-on i { transform: scaleY(1); }
.fs-pv__tsum { margin-top: 14px; font: 600 15px/1.5 var(--font-display); color: var(--white); }
.fs-pv__tsum b { color: var(--volt); font-size: 22px; font-variant-numeric: tabular-nums; }
.fs-pv__tsum span { display: block; font: 500 12px/1.5 var(--font-mono); color: var(--muted); }

/* documents */
.fs-pv__pane[data-pane="docs"] .fs-pv__live { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "fan docs" "fan rb"; gap: 14px 28px; align-items: start; }
.fs-pv__fan { grid-area: fan; position: relative; aspect-ratio: 16 / 10.5; }
.fs-pv__docs { grid-area: docs; }
.fs-pv__rebuild { grid-area: rb; }
.fs-pv__fan span { position: absolute; left: 0; top: 0; width: 70%; aspect-ratio: 480 / 311; border-radius: 6px; overflow: hidden; border: 1px solid #2c2c32; box-shadow: 0 18px 40px -18px #000;
  transform: translate(0, 10px) rotate(0); opacity: 0; transition: transform .8s var(--ease-out), opacity .5s; transition-delay: calc(var(--i) * 90ms); }
.fs-pv__fan img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.fs-pv__fan.is-on span { opacity: 1; transform: translate(calc(var(--i) * 12%), calc(var(--i) * 9px)) rotate(calc((var(--i) - 1.5) * 2.4deg)); }
.fs-pv__fan.is-new span:last-child { animation: pvNew 1s var(--ease-out); }
@keyframes pvNew { 40% { box-shadow: 0 0 0 2px var(--volt), 0 0 30px -4px var(--volt-glow); } }
.fs-pv__docs { display: grid; grid-template-columns: 1fr; gap: 10px; opacity: 0; transform: translateY(10px); transition: opacity .5s .3s, transform .6s var(--ease-out) .3s; }
.fs-pv__docs.is-on { opacity: 1; transform: none; }
.fs-pv__doc { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.fs-pv__doc b { font: 600 15px/1.2 var(--font-display); color: var(--white); }
.fs-pv__doc span { font: 500 12px/1.4 var(--font-mono); color: var(--muted); }
.fs-pv__doc em { margin-top: 6px; font: 600 12px/1 var(--font-mono); font-style: normal; color: var(--volt); }
.fs-pv__rebuild { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; counter-reset: rb; }
.fs-pv__rebuild li { counter-increment: rb; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 100px; font: 500 12px/1.3 var(--font-mono); color: var(--faint); transition: color .4s, border-color .4s, background .4s; }
.fs-pv__rebuild li::before { content: counter(rb); display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid currentColor; font-size: 10px; }
.fs-pv__rebuild li.is-done { color: var(--ink); border-color: rgba(191,255,0,.45); background: rgba(191,255,0,.07); }
.fs-pv__rebuild li.is-done::before { content: "\2713"; background: var(--volt); border-color: var(--volt); color: #0A0A0B; }

/* request service: the email the client's own mail app would open */
.fs-pv__mail { position: absolute; right: clamp(14px, 2.4vw, 26px); top: 76px; z-index: 3; width: min(380px, calc(100% - 28px)); padding: 16px; border: 1px solid rgba(191,255,0,.45); border-radius: 14px;
  background: #121215; box-shadow: 0 30px 70px -20px #000, 0 0 40px -16px var(--volt-glow); opacity: 0; transform: translateY(-10px) scale(.97); transform-origin: 90% 0; transition: opacity .35s, transform .45s var(--ease-out); }
.fs-pv__mail.is-on { opacity: 1; transform: none; }
.fs-pv__mail[hidden] { display: none; }
.fs-pv__mh { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font: 600 14px/1.3 var(--font-display); color: var(--white); }
.fs-pv__mh span { font: 500 11px/1.4 var(--font-mono); color: var(--faint); text-align: right; }
.fs-pv__mrow { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font: 500 12px/1.4 var(--font-mono); }
.fs-pv__mrow span { flex: none; width: 56px; color: var(--faint); }
.fs-pv__mrow b { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.fs-pv__mbody { min-height: 60px; padding-top: 10px; font: 400 14px/1.55 var(--font-body); color: var(--ink); }
.fs-pv__mbody::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--volt); animation: pvCaret 1s steps(1) infinite; }
@keyframes pvCaret { 50% { opacity: 0; } }

.fs-pv__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(22px, 3vw, 32px); }
.fs-pv__facts li { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-left: 2px solid rgba(191,255,0,.5); }
.fs-pv__facts b { font: 600 16px/1.25 var(--font-display); color: var(--white); }
.fs-pv__facts span { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

@media (max-width: 900px) {
  .fs-pv__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fs-pv__rk { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); grid-template-areas: "art tip" "art qr" "list list"; }
  .fs-pv__rlist { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .fs-pv__rlist li span { display: none; }
  .fs-pv__rlist li { justify-content: center; }
  .fs-pv__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .fs-pv__app { min-height: 0; }
  .fs-pv__hd { flex-wrap: wrap; }
  .fs-pv__req { width: 100%; justify-content: center; }
  .fs-pv__tab { padding: 0 12px; font-size: 12.5px; }
  .fs-pv__rk { grid-template-columns: minmax(0, 120px) minmax(0, 1fr); gap: 12px; }
  .fs-pv__tip { font-size: 13.5px; padding: 12px; }
  .fs-pv__qr { flex-direction: column; align-items: flex-start; gap: 8px; }
  .fs-pv__qrc { width: 42px; height: 42px; }
  .fs-pv__qrc::before, .fs-pv__qrc::after { width: 12px; height: 12px; border-width: 3px; }
  .fs-pv__tbars { gap: 3px; height: 130px; }
  .fs-pv__rbars { gap: 4px; height: 110px; }
  .fs-pv__rbars i { height: calc(var(--h) * 80px + 4px); }
  .fs-pv__pane[data-pane="docs"] .fs-pv__live { grid-template-columns: 1fr; grid-template-areas: "fan" "docs" "rb"; }
  .fs-pv__facts { grid-template-columns: 1fr; gap: 8px; }
  .fs-pv__mail { top: 120px; }
}

/* ---------- #files: where your work lives ---------- */
.fs-flsec { background: radial-gradient(60% 50% at 50% 100%, rgba(191,255,0,.05), rgba(191,255,0,0) 70%), var(--bg); border-top: 1px solid var(--line); }
.fs-fl { max-width: 1040px; margin: 0 auto; }
.fs-fl__flow { display: flex; align-items: center; justify-content: center; gap: 0; max-width: 680px; margin: 0 auto 22px; }
.fs-fl__node { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 96px; color: var(--muted); transition: color .4s; }
.fs-fl__node svg { width: 58px; height: 58px; padding: 14px; border: 1px solid var(--line); border-radius: 50%; background: #000; transition: border-color .4s, box-shadow .4s, color .4s; }
.fs-fl__node b { font: 600 12px/1.2 var(--font-mono); }
.fs-fl__wire { position: relative; flex: 1 1 auto; height: 2px; margin-bottom: 26px; background: #26262c; overflow: hidden; border-radius: 2px; }
.fs-fl__wire i { position: absolute; top: -2px; left: -12%; width: 10%; height: 6px; border-radius: 6px; background: var(--volt); box-shadow: 0 0 12px var(--volt-glow); opacity: 0; }
.fs-fl[data-at="0"] .fs-fl__node[data-n="0"], .fs-fl[data-at="1"] .fs-fl__node[data-n="1"], .fs-fl[data-at="2"] .fs-fl__node[data-n="2"], .fs-fl[data-at="3"] .fs-fl__node[data-n="1"] { color: var(--volt); }
.fs-fl[data-at="0"] .fs-fl__node[data-n="0"] svg, .fs-fl[data-at="1"] .fs-fl__node[data-n="1"] svg, .fs-fl[data-at="2"] .fs-fl__node[data-n="2"] svg, .fs-fl[data-at="3"] .fs-fl__node[data-n="1"] svg { border-color: rgba(191,255,0,.6); box-shadow: 0 0 30px -8px var(--volt-glow); }
.fs-fl[data-at="0"] .fs-fl__wire[data-w="0"] i, .fs-fl[data-at="1"] .fs-fl__wire i, .fs-fl[data-at="2"] .fs-fl__wire[data-w="1"] i { animation: flPulse 1.6s linear infinite; opacity: 1; }
.fs-fl[data-at="1"] .fs-fl__wire[data-w="0"] i { animation-direction: reverse; }
.fs-fl__wire i:nth-child(2) { animation-delay: .53s !important; }
.fs-fl__wire i:nth-child(3) { animation-delay: 1.06s !important; }
@keyframes flPulse { from { left: -12%; } to { left: 102%; } }
.fs-fl__flow[data-sig="off"] .fs-fl__wire[data-w="0"] { background: repeating-linear-gradient(90deg, #ffb020 0 6px, transparent 6px 12px); opacity: .7; }
.fs-fl__flow[data-sig="off"] .fs-fl__wire[data-w="0"] i { animation: none; opacity: 0; }

.fs-fl__rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fs-fl__tab { position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2);
  font: 600 14px/1.2 var(--font-display); color: var(--muted); text-align: left; cursor: pointer; overflow: hidden; transition: color .3s, border-color .3s, background .3s; }
.fs-fl__tab b { font: 700 12px/1 var(--font-mono); color: var(--faint); }
.fs-fl__tab span { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.fs-fl__tab em { font: 600 10px/1 var(--font-mono); font-style: normal; padding: 3px 6px; border-radius: 100px; border: 1px solid rgba(255,176,32,.45); color: #ffc65c; }
.fs-fl__tab:hover { color: var(--ink); border-color: rgba(191,255,0,.3); }
.fs-fl__tab[aria-selected="true"] { color: var(--white); border-color: rgba(191,255,0,.6); background: linear-gradient(180deg, rgba(191,255,0,.1), rgba(191,255,0,.02)), var(--bg-2); }
.fs-fl__tab[aria-selected="true"] b { color: var(--volt); }
.fs-fl__tab:focus-visible { outline: 2px solid var(--volt); outline-offset: 2px; }
.fs-fl__panes { margin-top: 14px; }
.fs-fl__pane { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(18px, 3vw, 36px); align-items: start; padding: clamp(18px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--radius); background: #0c0c0f; min-height: 330px; }
.fs-fl__pane[hidden] { display: none; }
.fs-fl__txt h3 { font: 600 clamp(19px, 2vw, 23px)/1.25 var(--font-display); color: var(--white); }
.fs-fl__txt h3 .fs-soon { margin-left: 10px; }
.fs-fl__txt p { margin-top: 10px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.fs-fl__foot { margin-top: 18px; text-align: center; font: 500 12.5px/1.5 var(--font-mono); color: var(--faint); }

.fs-fl__chip { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 4px 9px; border-radius: 100px; font: 600 11px/1 var(--font-mono); white-space: nowrap; }
.fs-fl__chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fs-fl__chip.is-ok { color: var(--volt); background: rgba(191,255,0,.09); }
.fs-fl__chip.is-wait { color: #ffc65c; background: rgba(255,176,32,.1); }
.fs-fl__chip.is-wait i { animation: flBlink 1s steps(1) infinite; }
.fs-fl__chip.is-flip { animation: flFlip .5s var(--ease-out); }
@keyframes flBlink { 50% { opacity: .2; } }
@keyframes flFlip { 0% { transform: rotateX(90deg); } 100% { transform: none; } }
/* 01 phone */
.fs-fl__sig { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font: 600 12px/1 var(--font-mono); color: var(--volt); transition: color .3s; }
.fs-fl__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.fs-fl__bars i { width: 3px; border-radius: 1px; background: currentColor; transition: opacity .3s; }
.fs-fl__bars i:nth-child(1) { height: 25%; } .fs-fl__bars i:nth-child(2) { height: 50%; } .fs-fl__bars i:nth-child(3) { height: 75%; } .fs-fl__bars i:nth-child(4) { height: 100%; }
.fs-fl__sig.is-off { color: #ffc65c; }
.fs-fl__sig.is-off .fs-fl__bars i:not(:first-child) { opacity: .2; }
.fs-fl__log { display: flex; flex-direction: column; gap: 6px; }
.fs-fl__log li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.fs-fl__log li.is-new { animation: flIn .45s var(--ease-out); }
@keyframes flIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.fs-fl__log li > b { flex: none; width: 46px; font: 700 12px/1 var(--font-mono); color: var(--muted); }
.fs-fl__log li > span:not(.fs-fl__chip) { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; font: 600 13px/1.25 var(--font-mono); color: var(--ink); overflow: hidden; }
.fs-fl__log li small { font: 500 11px/1.3 var(--font-body); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 02 cloud */
.fs-fl__devs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fs-fl__dev { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); transition: border-color .4s, box-shadow .4s; }
.fs-fl__dev b { font: 600 14px/1.2 var(--font-display); color: var(--white); }
.fs-fl__dev small { font: 500 11px/1.3 var(--font-mono); color: var(--faint); }
.fs-fl__val { margin-top: 8px; font: 500 11.5px/1.4 var(--font-mono); color: var(--muted); }
.fs-fl__val em { font-style: normal; font-weight: 700; color: var(--ink); }
.fs-fl__dev.is-type, .fs-fl__dev.is-got { border-color: rgba(191,255,0,.5); }
.fs-fl__dev.is-got { animation: flGot .7s var(--ease-out); }
.fs-fl__dev.is-got::after, .fs-fl__dev.is-sent::after { content: "Synced"; position: absolute; top: 10px; right: 10px; font: 600 10px/1 var(--font-mono); color: var(--volt); }
@keyframes flGot { 40% { box-shadow: 0 0 0 2px rgba(191,255,0,.4), 0 0 26px -6px var(--volt-glow); } }
.fs-fl__ring { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; opacity: .35; transition: opacity .5s; }
.fs-fl__ring.is-on { opacity: 1; }
.fs-fl__ring svg { flex: none; width: 52px; height: 52px; transform: rotate(-90deg); }
.fs-fl__ring circle { fill: none; stroke: #26262c; stroke-width: 4; }
.fs-fl__ring circle.is-fill { stroke: var(--volt); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.1s var(--ease-out); }
.fs-fl__ring.is-on circle.is-fill { stroke-dashoffset: 0; }
.fs-fl__ring p { display: flex; flex-direction: column; gap: 3px; }
.fs-fl__ring b { font: 600 14px/1.2 var(--font-display); color: var(--white); }
.fs-fl__ring span { font: 500 12px/1.45 var(--font-mono); color: var(--muted); }
.fs-fl__ring em { font-style: normal; font-weight: 700; color: var(--volt); }
/* 03 storage */
.fs-fl__files { display: flex; flex-wrap: wrap; gap: 8px; }
.fs-fl__file { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 12px; border: 1px solid rgba(191,255,0,.4); border-radius: 10px; background: rgba(191,255,0,.06); opacity: 0; transform: translateY(-10px);
  transition: opacity .4s, transform .5s var(--ease-out); transition-delay: calc(var(--i) * 120ms); }
.fs-fl__file b { font: 600 13px/1.2 var(--font-display); color: var(--white); }
.fs-fl__file small { font: 600 10.5px/1 var(--font-mono); color: var(--volt); }
.fs-fl__files.is-go .fs-fl__file { opacity: 1; transform: none; }
.fs-fl__places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.fs-fl__places li { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2);
  font: 500 12px/1.25 var(--font-mono); color: var(--muted); animation: flIn .4s var(--ease-out) both; animation-delay: calc(var(--i) * 40ms); transition: border-color .4s, color .4s, background .4s; }
.fs-fl__places li b { font-weight: 600; }
.fs-fl__places li small { font: 600 10px/1 var(--font-mono); color: #ffc65c; }
.fs-fl__places li.is-hit { border-color: rgba(191,255,0,.6); color: var(--white); background: rgba(191,255,0,.07); }
.fs-fl__places li.is-hit::after { content: "\2713  Saved"; display: block; margin-top: 2px; font: 700 10px/1 var(--font-mono); color: var(--volt); animation: flIn .35s var(--ease-out); }
/* 04 keep it all */
.fs-fl__time { display: flex; flex-direction: column; gap: 16px; padding-top: 6px; }
.fs-fl__lane { display: flex; flex-direction: column; gap: 8px; }
.fs-fl__lane > b { font: 600 13px/1.2 var(--font-display); color: var(--white); }
.fs-fl__track { position: relative; display: block; height: 30px; border-radius: 8px; background: #16161a; overflow: hidden; }
.fs-fl__track i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 8px; transition: width 1.2s var(--ease-out); }
.fs-fl__std { background: linear-gradient(90deg, rgba(191,255,0,.5), rgba(191,255,0,.25)); }
.fs-fl__inf { background: linear-gradient(90deg, var(--volt), rgba(191,255,0,.55) 80%, rgba(191,255,0,.15)); transition-delay: .5s !important; }
.fs-fl__time.is-on .fs-fl__std { width: 26%; }
.fs-fl__time.is-on .fs-fl__inf { width: 100%; }
.fs-fl__track em { position: relative; z-index: 1; display: flex; align-items: center; height: 100%; padding: 0 12px; font: 600 11.5px/1.2 var(--font-mono); font-style: normal; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-fl__lane.is-plus em { color: #0A0A0B; opacity: 0; transition: opacity .4s 1.4s; }
.fs-fl__time.is-on .fs-fl__lane.is-plus em { opacity: 1; }
.fs-fl__ticks { display: grid; grid-template-columns: 26% 24% 24% 1fr; font: 500 10.5px/1 var(--font-mono); color: var(--faint); }
.fs-fl__ticks span:nth-child(2) { margin-left: -14px; }

@media (max-width: 860px) {
  .fs-fl__pane { grid-template-columns: 1fr; min-height: 0; }
  .fs-fl__rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .fs-fl__node { width: 72px; }
  .fs-fl__node svg { width: 48px; height: 48px; padding: 12px; }
  .fs-fl__tab { min-height: 48px; padding: 8px 10px; font-size: 13px; gap: 8px; }
  .fs-fl__devs { grid-template-columns: 1fr; }
  .fs-fl__dev { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
  .fs-fl__val { margin-top: 0; flex-basis: 100%; }
  .fs-fl__places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fs-fl__track em { font-size: 10.5px; padding: 0 8px; }
  .fs-fl__lane:not(.is-plus) em { white-space: normal; line-height: 1.15; }
}

/* reduced motion: everything shown in its end state */
@media (prefers-reduced-motion: reduce) {
  .fs-rb__bars i, .fs-pv__tile, .fs-pv__rbars i, .fs-pv__rlist li, .fs-pv__art, .fs-pv__tbars i, .fs-pv__fan span, .fs-pv__docs, .fs-fl__file, .fs-fl__track i, .fs-deep__t { transition: none !important; animation: none !important; }
  .fs-fl__wire i, .fs-fl__chip.is-wait i, .fs-pv__mbody::after, .fs-fl__places li, .fs-fl__log li { animation: none !important; }
}

/* grid and flex children may shrink below their content (long ids, chips), so nothing pushes the page sideways */
.fs-fl, .fs-pv, .fs-fl__pane > *, .fs-fl__panes, .fs-pv__body, .fs-pv__live, .fs-pv__rk > * { min-width: 0; }
@media (max-width: 560px) {
  .fs-fl__log li { gap: 8px; padding: 8px 10px; }
  .fs-fl__log li > b { width: 40px; font-size: 11px; }
  .fs-fl__chip { padding: 4px 7px; font-size: 10px; }
}
