/* Teslavolts HyperCharger Factory page (2.4) — [teslavolts_factory]. Every visual is SVG drawn and
   animated in code: the hero build, floor plan, production line stations, instruments, bays and the
   AC line. Selectors are written ".tvx .x" so Elementor kit and theme styles do not override them. */
.tvx-factory { --accent: #f59e0b; --accent-ink: #9a5200; --accent-soft: #fff4e2; --on-accent: #1a1100; --cyan: #22d3ee; --mint: #34d399; --steel: #b9c6da; --deep: #04132e; }

/* ---------- Hero build ---------- */
.tvx .tvfa-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.tvx .tvfa-hero .tvx-btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.35); }
.tvx .tvfa-hero-art { position: relative; display: grid; gap: 12px; justify-items: center; }
.tvx .tvfa-build { width: min(100%, 420px); height: auto; overflow: visible; }
.tvx .tvfa-build .b-floor { fill: rgba(34,211,238,.12); }
.tvx .tvfa-build .b-grid path { stroke: rgba(34,211,238,.25); stroke-width: 1; }
.tvx .tvfa-build .b-edge { fill: none; stroke: #8fa3c4; stroke-width: 2; }
.tvx .tvfa-build .b-mod { fill: #1b2f52; stroke: #3c6cbf; stroke-width: 1.5; }
.tvx .tvfa-build .b-modline { stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; opacity: .8; }
.tvx .tvfa-build .b-board { fill: #0d5c3f; stroke: #34d399; stroke-width: 1.5; }
.tvx .tvfa-build .b-chip { fill: #0b1b33; }
.tvx .tvfa-build .b-chip2 { fill: #c7a24a; }
.tvx .tvfa-build .b-ic3t { font: 700 14px var(--display); fill: #d1fae5; text-anchor: middle; letter-spacing: .1em; }
.tvx .tvfa-build .b-scr { fill: #061b3d; stroke: #3c6cbf; }
.tvx .tvfa-build .b-bar { fill: rgba(255,255,255,.12); }
.tvx .tvfa-build .b-barfill { fill: url(#tvfa-glow); transform-origin: 140px 0; transform: scaleX(0); animation: tvfa-bar 12s ease-in-out infinite; }
.tvx .tvfa-build .b-kw { font: 700 16px var(--display); fill: #fff; text-anchor: middle; }
.tvx .tvfa-build .b-cable { fill: none; stroke: #1b2738; stroke-width: 7; stroke-linecap: round; }
.tvx .tvfa-build .b-gun { fill: #1b2738; stroke: #3c4d66; stroke-width: 2; }
.tvx .tvfa-build .b-st { fill: rgba(52,211,153,.15); stroke: var(--mint); stroke-width: 2.5; stroke-dasharray: 4 3; }
.tvx .tvfa-build .b-stt { font: 800 12px var(--display); fill: var(--mint); text-anchor: middle; letter-spacing: .08em; }
.tvx .tvfa-build .b-sts { font: 600 9px var(--body); fill: #a7f3d0; text-anchor: middle; letter-spacing: .1em; }
.tvx .tvfa-build .b-scanbeam { fill: var(--cyan); opacity: 0; filter: drop-shadow(0 0 6px var(--cyan)); }
.tvx .tvfa-build .b-part { animation: 12s cubic-bezier(.3,.7,.2,1) infinite both; }
.tvx .tvfa-build .b-shell { animation-name: tvfa-in-shell; }
.tvx .tvfa-build .b-mod1 { animation-name: tvfa-in-left; animation-delay: .3s; }
.tvx .tvfa-build .b-mod2 { animation-name: tvfa-in-right; animation-delay: .6s; }
.tvx .tvfa-build .b-mod3 { animation-name: tvfa-in-left; animation-delay: .9s; }
.tvx .tvfa-build .b-ic3 { animation-name: tvfa-in-top; animation-delay: 1.3s; }
.tvx .tvfa-build .b-screen { animation-name: tvfa-in-top; animation-delay: 1.7s; }
.tvx .tvfa-build .b-gunl { animation-name: tvfa-in-gl; animation-delay: 2.1s; }
.tvx .tvfa-build .b-gunr { animation-name: tvfa-in-gr; animation-delay: 2.3s; }
.tvx .tvfa-build .b-stamp { transform-origin: 300px 80px; animation: tvfa-stamp 12s ease-out infinite both; }
.tvx .tvfa-build .b-scanbeam { animation: tvfa-scan 12s linear infinite; }
@keyframes tvfa-in-shell { 0% { opacity: 0; transform: translateY(30px); } 6%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes tvfa-in-left { 0%, 4% { opacity: 0; transform: translateX(-180px); } 12%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes tvfa-in-right { 0%, 4% { opacity: 0; transform: translateX(180px); } 12%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes tvfa-in-top { 0%, 6% { opacity: 0; transform: translateY(-120px); } 16%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes tvfa-in-gl { 0%, 10% { opacity: 0; transform: translateX(-60px); } 20%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes tvfa-in-gr { 0%, 10% { opacity: 0; transform: translateX(60px); } 20%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes tvfa-scan { 0%, 30% { opacity: 0; transform: translateY(0); } 32% { opacity: .9; } 48% { opacity: .9; transform: translateY(326px); } 50%, 100% { opacity: 0; transform: translateY(326px); } }
@keyframes tvfa-bar { 0%, 50% { transform: scaleX(0); } 72%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes tvfa-stamp { 0%, 74% { opacity: 0; transform: scale(1.8) rotate(-20deg); } 78%, 92% { opacity: 1; transform: scale(1) rotate(-8deg); } 100% { opacity: 0; } }
.tvx .tvfa-build-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tvx .tvfa-build-steps li { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; color: #c9d6ec; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); animation: tvfa-steps 12s infinite both; }
.tvx .tvfa-build-steps li:nth-child(2) { animation-delay: .5s; }
.tvx .tvfa-build-steps li:nth-child(3) { animation-delay: 1.3s; }
.tvx .tvfa-build-steps li:nth-child(4) { animation-delay: 2.1s; }
.tvx .tvfa-build-steps li:nth-child(5) { animation-delay: 6s; }
@keyframes tvfa-steps { 0% { border-color: rgba(255,255,255,.14); color: #c9d6ec; } 8%, 90% { border-color: var(--accent); color: #fff; background: rgba(245,158,11,.16); } 100% { border-color: rgba(255,255,255,.14); } }

/* ---------- Shared ---------- */
.tvx .tvfa-kicker { font: 600 13px/1.3 var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--accent-ink); margin-bottom: 10px; }
.tvx .tvfa-ibtn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 48px; padding: 0 14px; margin: 0; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink); font: 600 14px/1 var(--body); letter-spacing: 0; text-transform: none; cursor: pointer; }
.tvx .tvfa-ibtn:hover { border-color: var(--accent); }

/* ---------- Floor plan ---------- */
.tvx .tvfa-floor-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.tvx .tvfa-floor-wrap { border-radius: 18px; background: var(--deep); padding: 10px; box-shadow: var(--shadow); }
.tvx .tvfa-floor { width: 100%; height: auto; display: block; }
.tvx .tvfa-floor .fl-bg { fill: #071d42; stroke: #1c3d70; }
.tvx .tvfa-floor .fl-aisle { stroke: rgba(255,255,255,.08); stroke-width: 10; fill: none; }
.tvx .tvfa-floor .fl-zone { cursor: pointer; }
.tvx .tvfa-floor .fl-zone > rect { fill: rgba(60,108,191,.14); stroke: rgba(143,163,196,.45); stroke-width: 1.5; transition: fill .2s, stroke .2s; }
.tvx .tvfa-floor .fl-zone:hover > rect { fill: rgba(60,108,191,.28); }
.tvx .tvfa-floor .fl-zone.is-on > rect { fill: rgba(245,158,11,.18); stroke: var(--accent); stroke-width: 2.5; }
.tvx .tvfa-floor .fl-label { font: 600 12px var(--body); fill: #dbe6f7; pointer-events: none; }
.tvx .tvfa-floor .fl-zone.is-on .fl-label { fill: #ffd27a; }
.tvx .tvfa-floor .fl-conv { stroke: #3c4d66; stroke-width: 8; stroke-dasharray: 4 6; animation: tvfa-belt 1.2s linear infinite; }
.tvx .tvfa-floor .fl-unit { fill: #b9c6da; animation: tvfa-pulse 3s ease-in-out infinite; animation-delay: calc(var(--i) * .4s); }
.tvx .tvfa-floor .fl-unit.is-proto { fill: #8fd9ff; }
.tvx .tvfa-floor .fl-bay { fill: none; stroke: rgba(34,211,238,.45); stroke-dasharray: 3 3; }
.tvx .tvfa-floor .fl-heat rect { fill: #b9c6da; animation: tvfa-heatc 2.4s ease-in-out infinite alternate; }
.tvx .tvfa-floor .fl-benches rect { fill: #1b2f52; stroke: #3c6cbf; }
.tvx .tvfa-floor .fl-wave { fill: none; stroke: var(--mint); stroke-width: 2; stroke-dasharray: 120; animation: tvfa-draw 2.6s linear infinite; }
.tvx .tvfa-floor .fl-ch { fill: #0a2a5c; stroke: var(--cyan); animation: tvfa-chamb 4s ease-in-out infinite; }
.tvx .tvfa-floor .fl-rack { fill: #1b2f52; stroke: #3c4d66; }
.tvx .tvfa-floor .fl-crate { fill: #c7a24a; opacity: .85; animation: tvfa-pulse 4s infinite; animation-delay: calc(var(--i) * .5s); }
.tvx .tvfa-floor .fl-agv rect { fill: var(--accent); stroke: #fff; stroke-width: 1.5; }
@keyframes tvfa-belt { to { stroke-dashoffset: -20; } }
@keyframes tvfa-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes tvfa-heatc { from { fill: #b9c6da; } to { fill: #ff8a3d; } }
@keyframes tvfa-draw { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }
@keyframes tvfa-chamb { 0%, 100% { fill: #0a2a5c; } 50% { fill: #5b1d1d; } }
.tvx .tvfa-zones { display: grid; gap: 6px; }
.tvx .tvfa-zones > button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 0; margin: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 14.5px/1.3 var(--body); letter-spacing: 0; text-transform: none; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.tvx .tvx-section:nth-of-type(even) .tvfa-zones > button { background: var(--bg); }
.tvx .tvfa-zones > button:hover { border-color: var(--accent); }
.tvx .tvfa-zones > button[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); }
.tvx .tvfa-zn { flex: none; font: 700 12px/1 var(--display); color: var(--accent-ink); }
.tvx .tvfa-zone-panel { margin-top: 6px; padding: 18px; border-radius: 14px; background: var(--deep); color: #fff; min-height: 120px; }
.tvx .tvfa-zone-panel h3 { font: 600 17px/1.3 var(--display); color: #ffd27a; margin-bottom: 6px; }
.tvx .tvfa-zone-panel p { color: #c9d6ec; font-size: 15px; }

/* ---------- Production line (factory twin) ---------- */
.tvx .tvx-section.tvfa-linesec, .tvx .tvx-section.tvfa-linesec:nth-of-type(even) { background: radial-gradient(60% 50% at 80% 0%, rgba(245,158,11,.12), transparent 70%), linear-gradient(170deg, #061b3d, #020b1f); color: #fff; }
.tvx .tvfa-linesec .tvx-h2 { color: #fff; }
.tvx .tvfa-linesec .tvx-sub { color: #c9d6ec; margin-top: 10px; }
.tvx .tvfa-linesec .tvfa-kicker { color: #ffb547; }
.tvx .tvfa-linesec .tvx-fine { color: #a9bbd8; margin-top: 12px; }
.tvx .tvfa-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tvx .tvfa-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.tvx .tvfa-seg button { min-height: 36px; margin: 0; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: #c9d6ec; font: 600 13.5px/1 var(--body); letter-spacing: 0; text-transform: none; cursor: pointer; white-space: nowrap; }
.tvx .tvfa-seg button[aria-pressed="true"] { background: var(--accent); color: #1a1100; }
.tvx .tvfa-linesec .tvfa-ibtn { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.tvx .tvfa-line { position: relative; margin-top: 8px; }
.tvx .tvfa-track { position: relative; height: 26px; margin: 0 4px 10px; }
.tvx .tvfa-belt { position: absolute; left: 0; right: 0; top: 10px; height: 8px; border-radius: 4px; background: repeating-linear-gradient(90deg, #2a3b55 0 10px, #1b2738 10px 20px); animation: tvfa-beltbg 1s linear infinite; }
.tvx .tvfa-factory.is-paused .tvfa-belt { animation-play-state: paused; }
@keyframes tvfa-beltbg { to { background-position: 20px 0; } }
.tvx .tvfa-unit { position: absolute; top: -4px; left: 0; width: 22px; height: 30px; border-radius: 4px; background: linear-gradient(#e9eef6, #b9c6da); box-shadow: 0 0 0 2px rgba(245,158,11,.6), 0 0 16px rgba(245,158,11,.6); transform: translateX(-50%); transition: left .9s cubic-bezier(.5,0,.3,1); }
.tvx .tvfa-unit::before { content: ""; position: absolute; left: 4px; right: 4px; top: 4px; height: 7px; border-radius: 2px; background: #061b3d; }
.tvx .tvfa-unit.is-ac { width: 18px; height: 24px; top: -1px; border-radius: 5px; }
.tvx .tvfa-stations { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; }
.tvx .tvfa-st button { position: relative; display: grid; justify-items: center; gap: 6px; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 10px 6px 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #dbe6f7; font: 400 13px/1.25 var(--body); letter-spacing: 0; text-transform: none; text-align: center; cursor: pointer; transition: border-color .3s, background .3s, box-shadow .3s; }
.tvx .tvfa-st button:hover { border-color: rgba(255,255,255,.35); }
.tvx .tvfa-st.is-on button { border-color: var(--accent); background: rgba(245,158,11,.1); box-shadow: 0 0 0 1px var(--accent), 0 12px 30px -12px rgba(245,158,11,.6); }
.tvx .tvfa-st.is-done button { border-color: rgba(52,211,153,.5); }
.tvx .tvfa-st-n { position: absolute; top: 8px; left: 10px; font: 700 11px/1 var(--display); color: #8fa3c4; }
.tvx .tvfa-st strong { font: 600 13px/1.25 var(--body); color: #fff; }
.tvx .tvfa-st-state { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: #a9bbd8; }
.tvx .tvfa-st.is-on .tvfa-st-state { background: rgba(245,158,11,.22); color: #ffd27a; }
.tvx .tvfa-st.is-done .tvfa-st-state { background: rgba(52,211,153,.18); color: #a7f3d0; }
.tvx .tvfa-scene { width: 100%; max-width: 110px; height: auto; aspect-ratio: 120 / 96; }
.tvx .tvfa-st:not(.is-on) .tvfa-scene * { animation-play-state: paused; }
.tvx .tvfa-factory.is-paused .tvfa-scene * { animation-play-state: paused; }
/* scene parts */
.tvx .tvfa-scene .f-pcb { fill: #0d5c3f; stroke: #34d399; stroke-width: 1; }
.tvx .tvfa-scene .f-chips rect { fill: #0b1b33; }
.tvx .tvfa-scene .f-arm { fill: none; stroke: #b9c6da; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.tvx .tvfa-scene .f-joint { fill: #f59e0b; }
.tvx .tvfa-scene .f-cone { stroke: rgba(34,211,238,.35); stroke-width: 1; }
.tvx .tvfa-scene .f-scan { fill: #22d3ee; filter: drop-shadow(0 0 3px #22d3ee); animation: tvfa-sc 1.6s ease-in-out infinite alternate; }
@keyframes tvfa-sc { from { transform: translateY(0); } to { transform: translateY(42px); } }
.tvx .tvfa-scene .f-pick { animation: tvfa-pick 2s ease-in-out infinite; }
.tvx .tvfa-scene .f-head { fill: #b9c6da; }
.tvx .tvfa-scene .f-chip-move { fill: #0b1b33; stroke: #c7a24a; }
@keyframes tvfa-pick { 0%, 100% { transform: translate(0, 0); } 40%, 60% { transform: translate(0, 12px); } }
.tvx .tvfa-scene .f-cab { fill: #dfe6f0; stroke: #8fa3c4; stroke-width: 1.5; }
.tvx .tvfa-scene .f-slots rect { fill: #1b2f52; }
.tvx .tvfa-scene .f-slot-empty { fill: none; stroke: #f59e0b; stroke-dasharray: 2 2; }
.tvx .tvfa-scene .f-mod rect { fill: #1b2f52; stroke: #22d3ee; }
.tvx .tvfa-scene .f-mod { animation: tvfa-mod 2.4s ease-in-out infinite; }
@keyframes tvfa-mod { 0% { transform: translate(-6px, -10px); } 50%, 100% { transform: translate(32px, 4px); } }
.tvx .tvfa-scene .f-arm-rot { transform-origin: 18px 40px; animation: tvfa-armr 2.4s ease-in-out infinite; }
@keyframes tvfa-armr { 0% { transform: rotate(-10deg); } 50%, 100% { transform: rotate(8deg); } }
.tvx .tvfa-scene .f-cable { fill: none; stroke: #3c4d66; stroke-width: 3; }
.tvx .tvfa-scene .f-cable-run { fill: none; stroke: #f59e0b; stroke-width: 3; stroke-dasharray: 160; stroke-dashoffset: 160; animation: tvfa-wire 2.4s linear infinite; }
@keyframes tvfa-wire { to { stroke-dashoffset: 0; } }
.tvx .tvfa-scene .f-term { fill: #c7a24a; }
.tvx .tvfa-scene .f-inst { fill: #1b2f52; stroke: #3c6cbf; }
.tvx .tvfa-scene .f-screen { fill: #04132e; }
.tvx .tvfa-scene .f-read { font: 700 8px var(--body); fill: #34d399; text-anchor: middle; }
.tvx .tvfa-scene .f-knob { fill: #8fa3c4; }
.tvx .tvfa-scene .f-lead { fill: none; stroke: #e53935; stroke-width: 2; }
.tvx .tvfa-scene .f-spark { fill: none; stroke: #fff59d; stroke-width: 2; filter: drop-shadow(0 0 3px #fff59d); animation: tvfa-flick .5s steps(2) infinite; }
@keyframes tvfa-flick { 50% { opacity: .1; } }
.tvx .tvfa-scene .f-load { fill: #1b2f52; stroke: #3c6cbf; }
.tvx .tvfa-scene .f-fins rect { fill: #3c4d66; }
.tvx .tvfa-scene .f-bus { stroke: #c7a24a; stroke-width: 3; }
.tvx .tvfa-scene .f-flow { fill: #fff59d; }
.tvx .tvfa-scene .f-heat { fill: none; stroke: #ff8a3d; stroke-width: 2; stroke-linecap: round; animation: tvfa-rise 1.4s ease-in-out infinite; }
@keyframes tvfa-rise { from { transform: translateY(4px); opacity: 0; } 50% { opacity: 1; } to { transform: translateY(-6px); opacity: 0; } }
.tvx .tvfa-scene .f-therm { fill: #0b1b33; stroke: #8fa3c4; }
.tvx .tvfa-scene .f-therm-fill { fill: #ff5a3d; transform-box: fill-box; transform-origin: bottom; animation: tvfa-temp 3s ease-in-out infinite alternate; }
@keyframes tvfa-temp { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
.tvx .tvfa-scene .f-cycle { animation: tvfa-cyc 4s ease-in-out infinite; }
@keyframes tvfa-cyc { 0%, 100% { transform: scaleY(.25); fill: #22d3ee; } 50% { transform: scaleY(1); fill: #ff5a3d; } }
.tvx .tvfa-scene .f-chamber { fill: #1b2f52; stroke: #3c6cbf; }
.tvx .tvfa-scene .f-window { fill: #04132e; stroke: #22d3ee; animation: tvfa-win 4s ease-in-out infinite; }
@keyframes tvfa-win { 0%, 100% { fill: #062c4f; } 50% { fill: #4a1a12; } }
.tvx .tvfa-scene .f-snow path { stroke: #bfefff; stroke-width: 1.5; }
.tvx .tvfa-scene .f-snow { animation: tvfa-fadea 4s infinite; }
.tvx .tvfa-scene .f-sun { fill: #ffb547; animation: tvfa-fadeb 4s infinite; }
@keyframes tvfa-fadea { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes tvfa-fadeb { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.tvx .tvfa-scene .f-car { fill: #3c6cbf; }
.tvx .tvfa-scene .f-wheel { fill: #0b1b33; stroke: #8fa3c4; }
.tvx .tvfa-scene .f-packets rect { fill: #34d399; animation: tvfa-pkt 1.5s ease-in-out infinite; }
.tvx .tvfa-scene .f-packets rect:nth-child(2) { animation-delay: .25s; }
.tvx .tvfa-scene .f-packets rect:nth-child(3) { animation-delay: .5s; }
@keyframes tvfa-pkt { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.tvx .tvfa-scene .f-cloudline { fill: none; stroke: rgba(52,211,153,.4); stroke-dasharray: 3 3; }
.tvx .tvfa-scene .f-box-top { fill: #d8b77a; }
.tvx .tvfa-scene .f-box-l { fill: #b8935a; }
.tvx .tvfa-scene .f-box-r { fill: #a07c47; }
.tvx .tvfa-scene .f-lid { fill: #e5c991; transform-origin: 24px 46px; animation: tvfa-lid 2.4s ease-in-out infinite; }
@keyframes tvfa-lid { 0%, 20% { transform: rotate(0); } 60%, 100% { transform: rotate(0) translate(18px, 16px) scale(0); } }
.tvx .tvfa-scene .f-label { fill: #fff; }
.tvx .tvfa-scene .f-bars { stroke: #0b1b33; stroke-width: 1; }
.tvx .tvfa-console { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; margin-top: 18px; }
.tvx .tvfa-detail, .tvx .tvfa-log-box { padding: 18px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.tvx .tvfa-detail h3 { font: 600 19px/1.3 var(--display); color: #fff; margin-bottom: 6px; }
.tvx .tvfa-detail p:last-child { color: #c9d6ec; font-size: 15px; }
.tvx .tvfa-log-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 600 13px/1.3 var(--body); color: #dbe6f7; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.tvx .tvfa-live { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(52,211,153,.25); animation: tvfa-pulse 1.4s infinite; }
.tvx .tvfa-count { margin-left: auto; text-transform: none; letter-spacing: 0; color: #a9bbd8; font-weight: 500; }
.tvx .tvfa-count b { color: #ffd27a; font: 700 15px var(--display); }
.tvx .tvfa-log { display: grid; gap: 4px; height: 148px; overflow: hidden; font: 500 12.5px/1.45 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.tvx .tvfa-log li { display: flex; gap: 8px; color: #c9d6ec; animation: tvfa-logIn .35s ease-out; }
.tvx .tvfa-log time { color: #6f86ad; flex: none; }
.tvx .tvfa-log b { color: #a7f3d0; font-weight: 600; }
.tvx .tvfa-log li.is-ship b { color: #ffd27a; }
@keyframes tvfa-logIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Test lab ---------- */
.tvx .tvfa-equip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tvx .tvfa-equip li { padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tvx .tvx-section:nth-of-type(even) .tvfa-equip li { background: var(--bg); box-shadow: none; }
.tvx .tvfa-equip h3 { font: 600 16.5px/1.3 var(--display); color: var(--ink); margin: 12px 0 6px; }
.tvx .tvfa-equip p { color: var(--muted); font-size: 14.5px; }
.tvx .tvfa-inst { display: block; width: 100%; height: auto; aspect-ratio: 120 / 80; border-radius: 12px; background: linear-gradient(160deg, #0a2a5c, #04132e); padding: 8px; }
.tvx .tvfa-inst .i-body { fill: #1b2f52; stroke: #3c6cbf; }
.tvx .tvfa-inst .i-fins rect { fill: #3c4d66; }
.tvx .tvfa-inst .i-dial { fill: #04132e; stroke: #8fa3c4; }
.tvx .tvfa-inst .i-needle { stroke: #ff5a3d; stroke-width: 2.5; stroke-linecap: round; transform-origin: 86px 40px; animation: tvfa-needle 3s ease-in-out infinite alternate; }
@keyframes tvfa-needle { from { transform: rotate(-70deg); } to { transform: rotate(60deg); } }
.tvx .tvfa-inst .i-hub { fill: #fff; }
.tvx .tvfa-inst .i-screen { fill: #04132e; }
.tvx .tvfa-inst .i-trace, .tvx .tvfa-inst .i-sine { fill: none; stroke: #34d399; stroke-width: 1.8; stroke-dasharray: 90; animation: tvfa-draw2 2.4s linear infinite; }
.tvx .tvfa-inst .i-sine2 { fill: none; stroke: #ffb547; stroke-width: 1.5; stroke-dasharray: 90; animation: tvfa-draw2 2.4s linear infinite .3s; }
@keyframes tvfa-draw2 { from { stroke-dashoffset: 90; } to { stroke-dashoffset: -90; } }
.tvx .tvfa-inst .i-lead { fill: none; stroke: #e53935; stroke-width: 2; }
.tvx .tvfa-inst .i-plug { fill: #1b2738; stroke: #8fa3c4; }
.tvx .tvfa-inst .i-bits circle { fill: #34d399; animation: tvfa-pkt 1.2s infinite; }
.tvx .tvfa-inst .i-bits circle:nth-child(2) { animation-delay: .2s; }
.tvx .tvfa-inst .i-bits circle:nth-child(3) { animation-delay: .4s; }
.tvx .tvfa-inst .i-txt { font: 700 8.5px var(--body); fill: #34d399; text-anchor: middle; }
.tvx .tvfa-inst .i-blink { animation: tvfa-pulse 1.6s infinite; }
.tvx .tvfa-inst .i-knob { fill: #8fa3c4; }
.tvx .tvfa-inst .i-spark { fill: none; stroke: #fff59d; stroke-width: 2; animation: tvfa-flick .4s steps(2) infinite; }
.tvx .tvfa-inst .i-window { fill: #062c4f; stroke: #22d3ee; animation: tvfa-win 5s ease-in-out infinite; }
.tvx .tvfa-inst .i-unit { fill: #dfe6f0; }
.tvx .tvfa-inst .i-therm { fill: #04132e; stroke: #8fa3c4; }
.tvx .tvfa-inst .i-therm-fill { fill: #ff5a3d; transform-box: fill-box; transform-origin: bottom; animation: tvfa-cyc 5s ease-in-out infinite; }
.tvx .tvfa-inst .i-sparkle { stroke: #bfefff; stroke-width: 1.5; animation: tvfa-fadea 5s infinite; }
.tvx .tvfa-inst .i-thermbg { fill: #1a0b3a; }
.tvx .tvfa-inst .i-busbar { stroke: #6a4fb3; stroke-width: 6; stroke-linecap: round; }
.tvx .tvfa-inst .i-hot1 { animation: tvfa-hot 2.6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.tvx .tvfa-inst .i-hot2 { animation: tvfa-hot 3.2s ease-in-out infinite alternate-reverse; transform-box: fill-box; transform-origin: center; }
@keyframes tvfa-hot { from { transform: scale(.7); opacity: .6; } to { transform: scale(1.15); opacity: 1; } }
.tvx .tvfa-inst .i-scale { fill: url(#tvfa-hot); }
.tvx .tvfa-bench { margin-top: 28px; padding: clamp(18px, 3vw, 28px); border-radius: 20px; background: linear-gradient(160deg, var(--navy), var(--navy2)); color: #fff; }
.tvx .tvfa-bench-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px 24px; margin-bottom: 18px; }
.tvx .tvfa-bench-head > div:first-child { flex: 1 1 380px; }
.tvx .tvfa-bench h3 { font: 600 20px/1.3 var(--display); color: #fff; }
.tvx .tvfa-bench-head p { color: #c9d6ec; margin-top: 6px; }
.tvx .tvfa-bench-ctl { display: flex; flex-wrap: wrap; gap: 8px; }
.tvx .tvfa-bench-ctl select { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.3); background: #0a2a5c; color: #fff; font: 500 14px var(--body); max-width: 100%; }
.tvx .tvfa-bench .tvx-fine { color: #a9bbd8; margin-top: 12px; }
.tvx .tvfa-bench-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, .8fr); gap: 14px; align-items: stretch; }
.tvx .tvfa-tests { display: grid; gap: 6px; align-content: start; }
.tvx .tvfa-tests li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.05); font-size: 14px; color: #dbe6f7; }
.tvx .tvfa-tests b { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #5a7099; }
.tvx .tvfa-tests li.is-run b { border-color: var(--accent); border-top-color: transparent; animation: tvfa-spin .8s linear infinite; }
.tvx .tvfa-tests li.is-ok b { border-color: var(--mint); background: var(--mint); }
.tvx .tvfa-tests em { font-style: normal; font-weight: 600; color: #a7f3d0; white-space: nowrap; font-variant-numeric: tabular-nums; }
@keyframes tvfa-spin { to { transform: rotate(360deg); } }
.tvx .tvfa-scope { display: grid; grid-template-rows: 1fr auto; gap: 8px; padding: 12px; border-radius: 14px; background: #04132e; border: 1px solid #1c3d70; min-height: 220px; }
.tvx .tvfa-scope svg { width: 100%; height: 100%; min-height: 170px; }
.tvx .tvfa-scope { position: relative; }
.tvx .tvfa-idle { position: absolute; left: 0; right: 0; top: 42%; text-align: center; color: #8fa3c4; font-size: 14px; font-weight: 600; pointer-events: none; }
.tvx .tvfa-scope .sc-grid path { stroke: rgba(255,255,255,.07); }
.tvx .tvfa-scope .sc-kw { fill: none; stroke: var(--cyan); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.tvx .tvfa-scope .sc-temp { fill: none; stroke: #ff8a3d; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 5 4; }
.tvx .tvfa-scope-read { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: #a9bbd8; }
.tvx .tvfa-scope-read i { display: inline-block; width: 10px; height: 3px; margin-right: 6px; vertical-align: middle; background: var(--cyan); }
.tvx .tvfa-scope-read i.is-temp { background: #ff8a3d; }
.tvx .tvfa-scope-read b { color: #fff; font-variant-numeric: tabular-nums; }
.tvx .tvfa-passport { position: relative; display: grid; align-content: start; gap: 8px; padding: 16px; border-radius: 14px; background: #fff; color: var(--ink); animation: tvfa-passIn .5s ease-out; overflow: hidden; }
.tvx .tvfa-passport .tvfa-kicker { color: var(--accent-ink); margin: 0; }
.tvx .tvfa-passport h4 { font: 600 16px/1.3 var(--display); color: var(--ink); margin: 0; }
.tvx .tvfa-passport dl { display: grid; gap: 6px; font-size: 13px; }
.tvx .tvfa-passport dt { color: var(--muted); }
.tvx .tvfa-passport dd { font-weight: 600; overflow-wrap: anywhere; }
.tvx .tvfa-passport.is-wait { background: rgba(255,255,255,.06); color: #c9d6ec; border: 1px dashed rgba(255,255,255,.3); animation: none; }
.tvx .tvfa-passport.is-wait h4, .tvx .tvfa-passport.is-wait dd { color: #fff; }
.tvx .tvfa-passport.is-wait dt { color: #a9bbd8; }
.tvx .tvfa-passport.is-wait .tvfa-kicker { color: #ffb547; }
.tvx .tvfa-passport.is-wait .tvfa-pass { opacity: 0; }
.tvx .tvfa-pass { justify-self: start; padding: 4px 12px; border: 2px solid #0a7a4c; border-radius: 8px; color: #0a7a4c; font: 800 14px/1 var(--display); letter-spacing: .1em; transform: rotate(-6deg); }
@keyframes tvfa-passIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- DC bays ---------- */
.tvx .tvfa-bays { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
.tvx .tvfa-bays li { padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tvx .tvx-section:nth-of-type(even) .tvfa-bays li { background: var(--bg); box-shadow: none; }
.tvx .tvfa-bay-art { border-radius: 12px; background: linear-gradient(160deg, #0a2a5c, #04132e); padding: 10px; margin-bottom: 12px; }
.tvx .tvfa-bayart { width: 100%; height: auto; display: block; }
.tvx .tvfa-bay-n { font: 700 12px/1 var(--display); color: var(--accent-ink); text-transform: uppercase; letter-spacing: .1em; }
.tvx .tvfa-bays h3 { font: 600 17px/1.3 var(--display); color: var(--ink); margin: 6px 0; }
.tvx .tvfa-bays p:last-child { color: var(--muted); font-size: 14.5px; }
.tvx .tvfa-bayart .ba-board { fill: #0d5c3f; stroke: #34d399; }
.tvx .tvfa-bayart .ba-comp { fill: none; stroke: #c7a24a; stroke-width: 2; }
.tvx .tvfa-bayart .ba-wave { fill: none; stroke: #22d3ee; stroke-width: 2; stroke-dasharray: 120; animation: tvfa-draw 2.4s linear infinite; }
.tvx .tvfa-bayart .ba-chip { fill: #0b1b33; stroke: #22d3ee; animation: tvfa-chipglow 2s ease-in-out infinite alternate; }
@keyframes tvfa-chipglow { from { stroke-width: 1; } to { stroke-width: 3; } }
.tvx .tvfa-bayart .ba-pins { stroke: #c7a24a; stroke-width: 2; }
.tvx .tvfa-bayart .ba-t { font: 800 12px var(--display); fill: #22d3ee; text-anchor: middle; }
.tvx .tvfa-bayart .ba-code rect { fill: #34d399; animation: tvfa-pkt 1s infinite; }
.tvx .tvfa-bayart .ba-cab { fill: #dfe6f0; stroke: #8fa3c4; }
.tvx .tvfa-bayart .ba-scr { fill: #061b3d; }
.tvx .tvfa-bayart .ba-mod { fill: #1b2f52; animation: tvfa-pulse 1.6s infinite; }
.tvx .tvfa-bayart .ba-cable { fill: none; stroke: #1b2738; stroke-width: 4; stroke-linecap: round; }
.tvx .tvfa-bayart .ba-line { fill: none; stroke: #34d399; stroke-width: 2.5; stroke-dasharray: 140; animation: tvfa-draw3 3s ease-out infinite; }
@keyframes tvfa-draw3 { from { stroke-dashoffset: 140; } 70%, to { stroke-dashoffset: 0; } }
.tvx .tvfa-bayart .ba-dot { fill: #ffb547; }
.tvx .tvfa-bayart .ba-axis { fill: none; stroke: #3c4d66; }
.tvx .tvfa-bayart .ba-checks path { fill: none; stroke: #34d399; stroke-width: 2; }

/* ---------- AC line ---------- */
.tvx .tvfa-ac-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.tvx .tvfa-acsec .tvx-sub { margin: 12px 0 18px; }
.tvx .tvfa-gates { display: grid; gap: 10px; margin-bottom: 22px; }
.tvx .tvfa-gates li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.tvx .tvx-section:nth-of-type(even) .tvfa-gates li { background: var(--bg); }
.tvx .tvfa-gates b { font: 700 20px/1 var(--display); color: var(--navy); }
.tvx .tvfa-gates span { color: var(--muted); font-size: 14.5px; }
.tvx .tvfa-acline { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: var(--shadow); }
.tvx .tvfa-acline .al-bg { fill: #061b3d; }
.tvx .tvfa-acline .al-belt { stroke: #2a3b55; stroke-width: 14; stroke-dasharray: 8 6; animation: tvfa-belt 1s linear infinite; }
.tvx .tvfa-acline .al-belt2 { stroke: #1b2738; stroke-width: 4; }
.tvx .tvfa-acline .al-cell { fill: rgba(60,108,191,.14); stroke: rgba(143,163,196,.4); }
.tvx .tvfa-acline .al-light { stroke: #22d3ee; stroke-width: 3; animation: tvfa-pulse 2s infinite; animation-delay: calc(var(--i) * .5s); }
.tvx .tvfa-acline .al-lab { font: 600 12px var(--body); fill: #dbe6f7; text-anchor: middle; }
.tvx .tvfa-acline .al-tool { fill: #8fa3c4; transform-box: fill-box; transform-origin: top; animation: tvfa-press 2.8s ease-in-out infinite; animation-delay: calc(var(--i) * .7s); }
@keyframes tvfa-press { 0%, 60%, 100% { transform: scaleY(1); } 30% { transform: scaleY(1.9); } }
.tvx .tvfa-acline .al-unit { offset-path: path("M -20 196 H 500"); animation: tvfa-move 11.2s linear infinite; animation-delay: calc(var(--i) * -1.866s); }
@keyframes tvfa-move { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.tvx .tvfa-acline .al-box { fill: #f4f7fb; stroke: #8fa3c4; }
.tvx .tvfa-acline .al-scr { fill: #061b3d; }
.tvx .tvfa-acline .al-led { fill: #34d399; animation: tvfa-pulse 1s infinite; }
.tvx .tvfa-acline .al-k { font: 600 11px var(--body); fill: #a9bbd8; }
.tvx .tvfa-acline .al-tbg { fill: rgba(255,255,255,.08); }
.tvx .tvfa-acline .al-tfill { fill: #f59e0b; transform-box: fill-box; transform-origin: left; animation: tvfa-takt 1.866s linear infinite; }
@keyframes tvfa-takt { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Technology, products, visit ---------- */
.tvx .tvfa-tech { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tvx .tvfa-tech li { padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.tvx .tvx-section:nth-of-type(even) .tvfa-tech li { background: var(--bg); }
.tvx .tvfa-tech-i { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: #ffb547; }
.tvx .tvfa-tech h3 { font: 600 17px/1.3 var(--display); color: var(--ink); margin: 12px 0 6px; }
.tvx .tvfa-tech p { color: var(--muted); font-size: 14.5px; }
.tvx .tvfa-certs { margin-top: 22px; display: grid; gap: 10px; }
.tvx .tvfa-certs h3 { font: 600 16px/1.3 var(--display); color: var(--ink); }
.tvx .tvfa-certs ul { display: flex; flex-wrap: wrap; gap: 8px; }
.tvx .tvfa-certs li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); font-size: 14px; }
.tvx .tvfa-certs b { display: grid; place-items: center; min-width: 34px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12px; }
.tvx .tvfa-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tvx .tvfa-prods a { display: grid; gap: 4px; height: 100%; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s; }
.tvx .tvx-section:nth-of-type(even) .tvfa-prods a { background: var(--bg); }
.tvx .tvfa-prods a:hover { border-color: var(--accent); transform: translateY(-2px); }
.tvx .tvfa-prod-img { display: block; aspect-ratio: 1; border-radius: 10px; background: #fff; overflow: hidden; margin-bottom: 6px; }
.tvx .tvfa-prod-img img { width: 100%; height: 100%; object-fit: contain; }
.tvx .tvfa-prods strong { font: 600 14.5px/1.3 var(--body); color: var(--ink); }
.tvx .tvfa-prods span:last-child { color: var(--muted); font-size: 13px; }
.tvx .tvfa-start { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1080px) {
	.tvx .tvfa-hero-grid, .tvx .tvfa-floor-grid, .tvx .tvfa-ac-grid { grid-template-columns: minmax(0, 1fr); }
	.tvx .tvfa-stations { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.tvx .tvfa-track { display: none; }
	.tvx .tvfa-equip, .tvx .tvfa-tech { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tvx .tvfa-bays { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tvx .tvfa-bench-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.tvx .tvfa-scope { grid-column: 1 / -1; grid-row: 1; }
	.tvx .tvfa-start { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tvx .tvfa-zones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tvx .tvfa-zone-panel { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
	.tvx .tvfa-stations { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 4px; }
	.tvx .tvfa-stations::-webkit-scrollbar { display: none; }
	.tvx .tvfa-st { scroll-snap-align: start; }
	.tvx .tvfa-console, .tvx .tvfa-bench-body { grid-template-columns: minmax(0, 1fr); }
	.tvx .tvfa-equip, .tvx .tvfa-tech, .tvx .tvfa-bays, .tvx .tvfa-start, .tvx .tvfa-zones { grid-template-columns: minmax(0, 1fr); }
	.tvx .tvfa-seg { width: 100%; }
	.tvx .tvfa-seg button { flex: 1; padding: 0 8px; white-space: normal; line-height: 1.2; }
	.tvx .tvfa-build { width: min(100%, 320px); }
	.tvx .tvfa-gates li { grid-template-columns: 70px minmax(0, 1fr); }
}
/* Reduced motion (only when that setting is on) */
	html.tvx-still .tvx-factory *, html.tvx-still .tvx-factory *::before, html.tvx-still .tvx-factory *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; }
	html.tvx-still .tvx .tvfa-build .b-part, html.tvx-still .tvx .tvfa-build .b-stamp { animation: none !important; opacity: 1; transform: none; }
	html.tvx-still .tvx .tvfa-build .b-barfill { animation: none !important; transform: scaleX(.8); }
	html.tvx-still .tvx .tvfa-acline .al-unit { animation: none !important; }

