/* ftw.trade — one design system for the landing page, sign-in and the app. */
:root {
  /* Surfaces: a cool near-black ladder. The page is the darkest; panels sit a step above it, their header strips a step above that. */
  --bg: #060709;
  --bg2: #0a0b0e;
  --card: #0d0e12;
  --card2: #13151a;
  --raise: #1a1d23;
  --panel: var(--card);
  --panel-head: #101217;
  /* Hairlines rather than borders. */
  --line: rgba(255, 255, 255, 0.065);
  --line2: rgba(255, 255, 255, 0.1);
  --line3: rgba(255, 255, 255, 0.16);
  --ink: #e9eaee;
  --dim: #9a9ca8;
  --faint: #656874;
  /* One accent, for primary actions, links, focus and selection. */
  --accent: #7c84ff;
  --accent-soft: rgba(124, 132, 255, 0.12);
  --blue: var(--accent);
  --blue2: #aeb3ff;
  --violet: #aeb3ff;
  --up: #2ebd85;
  --down: #f0616d;
  --warn: #e8a849;
  --glow: 0 0 0 1px rgba(124, 132, 255, 0.55), 0 0 0 3px rgba(124, 132, 255, 0.16);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 24px 60px -20px rgba(0, 0, 0, 0.85);
  --r: 10px;
  --r-sm: 6px;
  /* Controls share one height so a row of input, select and button lines up. */
  --ctl-h: 32px;
  --ctl-h-sm: 28px;
  /* Type scale: 13px body, labels and table heads at 11, numbers that matter at 20+. */
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-md: 13px;
  --fs-lg: 15px;
  --fs-xl: 20px;
  --sans: var(--font-sans, 'Inter'), ui-sans-serif, system-ui, -apple-system, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  --mono: var(--font-mono, 'JetBrains Mono'), ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 13px/1.5 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: 'cv11', 'ss01', 'ss03'; text-rendering: optimizeLegibility; }
button, input, select, textarea { font-feature-settings: inherit; }
body { min-height: 100vh; }
a { color: var(--blue2); text-decoration: none; }
a:hover { color: #fff; }
::selection { background: rgba(139, 147, 255, 0.3); }
h1, h2, h3 { letter-spacing: -0.022em; }

.fs-site { color: var(--ink); background: #060709; min-height: 100vh; font-size: 15px; }
.fs-site * { box-sizing: border-box; }
.fs-site a { text-decoration: none; }
.fs-site a:focus-visible, .fs-site button:focus-visible { outline: 2px solid #a5b0ff; outline-offset: 5px; }
.fs-site main:focus { outline: none; }
.fs-wrap { max-width: 1200px; padding: 0 28px; margin: 0 auto; }
.fs-skip { position: fixed; top: 12px; left: 20px; z-index: 50; padding: 12px 18px; border-radius: 8px; background: #f1f2f6; color: #060709; transform: translateY(-180%); }
.fs-skip:focus { transform: none; }
.fs-header { border-bottom: 1px solid var(--line); }
.fs-header-in { min-height: 82px; display: flex; align-items: center; gap: 44px; }
.fs-brand { display: inline-flex; align-items: center; gap: 10px; color: #f1f2f6; font-weight: 600; font-size: 20px; letter-spacing: -0.04em; }
.fs-brand > span { color: #a5b0ff; font: italic 28px Georgia, serif; }
.fs-header nav { display: flex; gap: 28px; margin-left: auto; }
.fs-header nav a, .fs-app { display: inline-flex; align-items: center; min-height: 44px; color: #aaadba; font-size: 13px; }
.fs-header a:hover, .fs-footer a:hover { color: white; }
.fs-app { gap: 8px; border-left: 1px solid var(--line2); padding-left: 28px; }
.fs-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; padding: 96px 0 72px; }
.fs-eyebrow { color: #a5b0ff; font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; line-height: 1.7; }
.fs-hero h1 { font-size: clamp(40px, 4.4vw, 58px); line-height: 1.08; letter-spacing: -.055em; font-weight: 550; margin: 22px 0 26px; }
.fs-hero h1 > span { color: #a5b0ff; }
.fs-lead { color: #c2c5d0; font-size: 17px; line-height: 1.75; margin: 0 0 16px; }
.fs-support { color: #9297a8; font-size: 15px; line-height: 1.75; margin: 0; }
.fs-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fs-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 12px 17px; border-radius: 8px; font-size: 13px; font-weight: 550; }
.fs-primary { background: #7c84ff; color: #080a22; }
.fs-primary:hover { background: #a5b0ff; }
.fs-secondary { border: 1px solid var(--line2); color: #d9dbe3; }
.fs-secondary:hover { border-color: #737a97; }
.fs-free { margin-top: 20px; color: #9297a8; font-size: 11px; line-height: 1.7; }
.fs-example { min-width: 0; border: 1px solid #30354c; border-radius: 14px; background: #0b0e15; box-shadow: 0 28px 80px -44px #000; overflow: hidden; }
.fs-example-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.fs-file { display: inline-flex; align-items: center; gap: 10px; color: #d9dbe3; font: 12px var(--mono); }
.fs-file svg { color: #a5b0ff; }
.fs-example-tag { color: #8fdcb8; font-size: 10px; }
.fs-site .dx-code { margin: 0; background: #090b11; }
.fs-site .dx-code-h { display: flex; align-items: center; justify-content: space-between; min-height: 36px; padding: 4px 12px 4px 20px; color: #9399ac; font-size: 10px; }
.fs-site .dx-copy { color: #b6bdd1; background: transparent; border: 1px solid var(--line2); border-radius: 5px; padding: 6px 10px; font: 11px var(--sans); cursor: pointer; min-height: 32px; }
.fs-site .dx-copy:hover { color: white; border-color: #737a97; }
.fs-site .dx-code pre { margin: 0; padding: 12px 20px 24px; font: 12px/1.85 var(--mono); color: #d9dbe3; white-space: pre-wrap; overflow-wrap: anywhere; }
.fs-site .tk-k { color: #c5a6ff; }
.fs-site .tk-s { color: #8fdcb8; }
.fs-site .tk-n { color: #f0b36a; }
.fs-site .tk-c { color: #9399ac; }
.fs-example > p { color: #a5aabd; font-size: 12px; line-height: 1.7; margin: 0; padding: 18px 20px 12px; border-top: 1px solid var(--line); }
.fs-example > a { display: inline-flex; align-items: center; gap: 8px; padding: 0 20px 16px; min-height: 44px; color: #a5b0ff; font-size: 12px; }
.fs-reading { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); padding: 32px 0; gap: 40px; }
.fs-reading > div > span { color: #9399ac; font: 10px var(--mono); letter-spacing: .04em; }
.fs-reading h2 { font-size: 16px; font-weight: 550; margin: 12px 0 8px; letter-spacing: -.02em; }
.fs-reading p { font-size: 13px; line-height: 1.75; margin: 0; color: #a5aabd; max-width: 310px; }
.fs-reading code { color: #c5a6ff; font-family: var(--mono); font-size: 12px; }
.fs-learn { padding-top: 92px; scroll-margin-top: 28px; }
.fs-section-head h2, .fs-next h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.15; letter-spacing: -.04em; font-weight: 550; margin: 16px 0; }
.fs-section-head > p, .fs-next p { color: #a5aabd; font-size: 14px; line-height: 1.75; margin: 0; }
.fs-guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.fs-guide { position: relative; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line2); border-radius: 10px; background: #0b0d13; transition: border-color .15s; }
.fs-guide:hover { border-color: #737a97; }
.fs-guide-start { grid-column: 1 / -1; background: #101425; border-color: #343c65; }
.fs-guide-number { color: #9399ac; font: 10px var(--mono); letter-spacing: .06em; }
.fs-guide-start .fs-guide-number { color: #a5b0ff; }
.fs-guide h3 { font-size: 17px; letter-spacing: -.025em; font-weight: 550; color: #e5e7ef; margin: 16px 24px 10px 0; }
.fs-guide p { font-size: 13px; line-height: 1.7; color: #a5aabd; margin: 0; max-width: 730px; }
.fs-guide-arrow { position: absolute; right: 24px; top: 50px; color: #a5b0ff; font-size: 18px; }
.fs-next { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 80px; margin-top: 80px; padding: 44px 0; border-top: 1px solid var(--line2); }
.fs-next-links { display: grid; }
.fs-next-links a { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; min-height: 48px; gap: 16px; color: #c9ceeb; border-bottom: 1px solid var(--line); font-size: 13px; }
.fs-next-links a:hover { color: white; }
.fs-footer { margin-top: 32px; min-height: 100px; display: flex; align-items: center; gap: 24px; border-top: 1px solid var(--line2); }
.fs-footer > span { font-size: 12px; color: #9399ac; }
.fs-footer > span a { color: #c9ceeb; }
.fs-footer nav { display: flex; gap: 24px; margin-left: auto; }
.fs-footer nav a { display: flex; align-items: center; min-height: 44px; font-size: 12px; color: #a5aabd; }
@media (max-width: 1000px) {
  .fs-hero { gap: 40px; padding-top: 64px; }
  .fs-actions { flex-direction: column; align-items: stretch; }
  .fs-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fs-next { gap: 40px; }
}
@media (max-width: 760px) {
  .fs-wrap { padding-left: 20px; padding-right: 20px; }
  .fs-header-in { min-height: 72px; gap: 18px; flex-wrap: wrap; }
  .fs-brand { font-size: 18px; }
  .fs-header nav { gap: 18px; }
  .fs-app { display: none; }
  .fs-hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 52px 0 40px; }
  .fs-hero-copy { max-width: 560px; }
  .fs-hero h1 { font-size: clamp(38px, 8.2vw, 54px); }
  .fs-lead { font-size: 16px; }
  .fs-actions { flex-direction: row; }
  .fs-reading { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px 0; }
  .fs-reading p { max-width: 500px; }
  .fs-learn { padding-top: 56px; }
  .fs-guides { grid-template-columns: minmax(0, 1fr); }
  .fs-guide { padding: 22px; }
  .fs-next { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 48px; }
  .fs-footer { flex-wrap: wrap; gap: 12px 20px; padding-top: 24px; padding-bottom: 24px; }
  .fs-footer nav { width: 100%; margin: 0; }
}
@media (max-width: 400px) {
  .fs-header-in { gap: 10px; }
  .fs-header nav { gap: 12px; }
  .fs-header nav a { font-size: 12px; }
  .fs-actions { flex-direction: column; }
  .fs-example-head { padding-left: 14px; padding-right: 14px; }
  .fs-site .dx-code pre { padding-left: 14px; padding-right: 14px; font-size: 11px; }
}

/* Local illustration: incoming records → closed bar → rules → decision. */
.fs-site [hidden] { display: none !important; }
.fs-flow { padding-top: 88px; }
.fs-flow-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.fs-flow-heading p { max-width: 650px; color: #a5aabd; font-size: 14px; line-height: 1.75; margin: 0; }
.fs-illustration { flex-shrink: 0; color: #9b9fb1; font: 10px/1.6 var(--mono); padding-bottom: 4px; }
.fs-flow-figure { margin: 0; border: 1px solid #30364e; border-radius: 14px; background: radial-gradient(ellipse at 50% 0, #141a303d, transparent 70%), #0b0d13; overflow: hidden; }
.fs-flow-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 10px 24px; border-bottom: 1px solid var(--line); }
.fs-flow-toolbar > span { display: flex; align-items: center; gap: 10px; font: 12px var(--mono); color: #c9cddd; }
.fs-flow-mark { color: #a5b0ff; font: italic 22px Georgia, serif; }
.fs-flow-mode { border: 1px solid #2b463d; color: #8fdcb8; border-radius: 4px; padding: 4px 6px; font-size: 9px; letter-spacing: .06em; }
.fs-flow-toggle { min-height: 40px; padding: 6px 10px; border: 1px solid #353a50; border-radius: 6px; color: #c2c8df; background: #121623; font: 11px var(--sans); cursor: pointer; }
.fs-flow-toggle:hover { border-color: #737a97; color: #f1f2f6; }
.fs-flow-controls { display: flex; align-items: center; gap: 16px; }
.fs-flow-scenario { display: flex; align-items: center; gap: 8px; color: #949cb1; font-size: 11px; }
.fs-flow-scenario select { min-height: 40px; border: 1px solid #353a50; border-radius: 6px; color: #c2c8df; background: #121623; padding: 6px 8px; font: 11px var(--sans); }
.fs-flow-scenario select:focus-visible { outline: 2px solid #a5b0ff; outline-offset: 3px; }
.fs-flow-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fs-flow-canvas { display: grid; grid-template-columns: minmax(160px, 1.05fr) 36px minmax(130px, .9fr) 36px minmax(190px, 1.2fr) 36px minmax(165px, 1fr); padding: 32px 24px 28px; align-items: start; }
.fs-flow-stage { min-width: 0; }
.fs-flow-stage h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; font-size: 12px; font-weight: 500; color: #c5cada; }
.fs-flow-stage h3 > span { font: 10px var(--mono); color: #767e98; }
.fs-flow-stage > p { margin: 16px 0 0; color: #949cb1; font-size: 11px; line-height: 1.7; }
.fs-source-options { display: grid; gap: 10px; }
.fs-source-options button { display: flex; align-items: center; gap: 10px; min-height: 58px; width: 100%; padding: 10px; text-align: left; border: 1px solid #252b3b; border-radius: 8px; background: #0d1018; color: #8c95ad; cursor: pointer; transition: border-color .2s, background .2s; }
.fs-source-options button:disabled { cursor: default; opacity: 1; }
.fs-source-options button:hover:not(:disabled) { border-color: #596381; }
.fs-source-options button[aria-pressed="true"] { border-color: #636dc0; background: #171c33; color: #e3e7f8; }
.fs-source-icon { display: grid; place-items: center; width: 23px; height: 24px; font: 17px var(--mono); flex-shrink: 0; color: #8e9acb; }
.fs-source-options strong { display: block; font-size: 11px; font-weight: 500; }
.fs-source-options small { display: block; color: #949cb1; font-size: 10px; margin-top: 4px; }
.fs-source-dot { width: 5px; height: 5px; border-radius: 50%; background: #394159; margin-left: auto; flex-shrink: 0; }
.fs-source-options [aria-pressed="true"] .fs-source-dot { background: #b4baff; box-shadow: 0 0 10px #a5b0ff66; }
.fs-flow-wire { --wire-length: 36px; height: 1px; margin-top: 130px; background: #303750; position: relative; }
.fs-flow-wire::after { content: ''; position: absolute; right: 0; top: -2px; width: 5px; height: 5px; border-top: 1px solid #67739c; border-right: 1px solid #67739c; transform: rotate(45deg); }
.fs-flow-wire > i { position: absolute; left: 0; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: #b4baff; opacity: 0; box-shadow: 0 0 8px #a5b0ff88; animation: fs-packet 1.2s linear infinite; animation-play-state: paused; }
.fs-flow-wire > i:nth-child(2) { animation-delay: .4s; }
.fs-flow-wire > i:nth-child(3) { animation-delay: .8s; }
.fs-bar-window, .fs-rule-window, .fs-decision-window { height: 194px; border: 1px solid #2b3249; border-radius: 8px; background: #0a0d15; overflow: hidden; }
.fs-event-tape { display: flex; gap: 6px; padding: 16px 12px 12px; overflow: hidden; border-bottom: 1px dashed #293047; }
.fs-event-tape > span { border: 1px solid #333c60; color: #9faee7; background: #171e36; border-radius: 4px; padding: 5px 7px; font: 9px var(--mono); animation: fs-event 1.4s ease-in-out infinite; animation-play-state: paused; }
.fs-event-tape > span:nth-child(2) { animation-delay: .3s; }
.fs-event-tape > span:nth-child(3) { animation-delay: .6s; }
.fs-bar-chart { height: 95px; padding: 14px 16px 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; background: repeating-linear-gradient(to top, transparent 0 29px, #1a2033 29px 30px); }
.fs-bar-chart i { width: 15%; max-width: 18px; height: 38%; border: 1px solid #465579; background: #263454; border-radius: 3px 3px 0 0; }
.fs-bar-chart i:nth-child(2) { height: 58%; }
.fs-bar-chart i:nth-child(3) { height: 46%; }
.fs-bar-chart i:nth-child(4) { height: 67%; }
.fs-bar-chart i:last-child { height: 82%; border-color: #85c4b0; background: #365f58; transform-origin: bottom; }
.fs-bar-label { display: flex; justify-content: space-between; padding: 13px 12px; color: #bac5df; font: 9px var(--mono); }
.fs-bar-check { color: #8fdcb8; }
.fs-rule-header { padding: 12px 14px; border-bottom: 1px solid #242b3e; font: 10px var(--mono); color: #b6c0dc; }
.fs-rule-header > span { font: italic 16px Georgia, serif; color: #a5b0ff; margin-right: 7px; }
.fs-rule-row { display: flex; align-items: center; gap: 8px; padding: 0 12px; margin-top: 14px; color: #aeb6cd; font-size: 11px; white-space: nowrap; }
.fs-rule-row code { font: 10px var(--mono); color: #c9b4f2; }
.fs-rule-dot { width: 4px; height: 4px; background: #414c68; border-radius: 50%; flex-shrink: 0; }
.fs-rule-result { margin: 16px 12px 0; padding-top: 10px; border-top: 1px solid #242b3e; color: #949cb1; font-size: 10px; }
.fs-decision-window { display: flex; flex-direction: column; align-items: center; padding: 20px 10px 16px; text-align: center; }
.fs-decision-icon { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #3d465f; border-radius: 50%; background: #1a2031; color: #b7c1dd; font-size: 24px; margin-bottom: 14px; }
.fs-decision-window strong { font-weight: 500; font-size: 13px; color: #d2d9ed; }
.fs-decision-window > span:not(.fs-decision-icon) { margin-top: 7px; color: #8f99b2; font-size: 10px; }
.fs-decision-window code { margin-top: auto; padding-top: 12px; color: #949eb9; font: 9px/1.5 var(--mono); }
.fs-flow[data-step="0"] .fs-bar-chart i:last-child { border-color: #8e9af1; background: #454e84; transform: scaleY(.65); }
.fs-flow[data-step="0"] .fs-bar-check { visibility: hidden; }
.fs-flow[data-step="0"][data-playing="true"] .fs-bar-chart i:last-child { animation: fs-build 2.8s ease-in-out infinite; }
.fs-flow[data-step="0"][data-playing="true"] .fs-flow-input + .fs-flow-wire > i,
.fs-flow[data-step="0"][data-playing="true"] .fs-event-tape > span,
.fs-flow[data-step="1"][data-playing="true"] .fs-event-tape > span,
.fs-flow[data-step="2"][data-playing="true"] .fs-flow-bar + .fs-flow-wire > i,
.fs-flow[data-step="3"][data-playing="true"] .fs-flow-rules + .fs-flow-wire > i { animation-play-state: running; }
.fs-flow[data-step="1"] .fs-bar-window { border-color: #59669c; }
.fs-flow[data-step="2"] .fs-rule-window { border-color: #7d79bf; box-shadow: 0 0 24px #7772be13; }
.fs-flow[data-step="2"] .fs-rule-dot { background: #b3a4f1; }
.fs-flow[data-step="2"][data-playing="true"] .fs-rule-dot { animation: fs-evaluate 1.2s ease-in-out infinite; }
.fs-flow[data-step="2"] .fs-rule-row:nth-child(3) .fs-rule-dot { animation-delay: .25s; }
.fs-flow[data-step="2"] .fs-rule-row:nth-child(4) .fs-rule-dot { animation-delay: .5s; }
.fs-flow[data-step="3"][data-outcome="buy"] .fs-decision-window { border-color: #477e6b; background: #0b1716; }
.fs-flow[data-step="3"][data-outcome="buy"] .fs-decision-icon { color: #9ae6c0; background: #19382c; border-color: #416955; }
.fs-flow[data-step="3"][data-outcome="buy"] .fs-decision-window strong,
.fs-flow[data-step="3"][data-outcome="buy"] .fs-decision-window code { color: #9ae6c0; }
.fs-flow-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.fs-flow-progress button { position: relative; display: flex; align-items: center; gap: 9px; padding: 16px 20px; min-height: 50px; border: 0; background: transparent; color: #949cb1; font: 11px var(--sans); text-align: left; cursor: pointer; }
.fs-flow-progress button > span { font: 9px var(--mono); color: #6e7895; }
.fs-flow-progress button::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: transparent; }
.fs-flow-progress button[aria-pressed="true"] { background: #161b2c; color: #d6ddfb; }
.fs-flow-progress button[aria-pressed="true"]::before { background: #929cff; }
.fs-flow-progress button:hover { color: white; }
.fs-flow-figure figcaption { display: flex; justify-content: space-between; gap: 20px; padding: 18px 24px; border-top: 1px solid var(--line); color: #929bb0; font-size: 11px; line-height: 1.7; }
.fs-flow-figure figcaption p { margin: 0; max-width: 420px; color: #b0b9d0; }
.fs-flow-figure figcaption > span { max-width: 330px; text-align: right; }
@keyframes fs-packet { 0% { transform: translateX(0); opacity: 0; } 15%, 80% { opacity: 1; } 100% { transform: translateX(var(--wire-length)); opacity: 0; } }
@keyframes fs-event { 0%, 100% { opacity: .45; transform: translateY(2px); } 45% { opacity: 1; transform: translateY(0); } }
@keyframes fs-evaluate { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes fs-build { 0% { transform: scaleY(.3); } 50% { transform: scaleY(.5); } 100% { transform: scaleY(.65); } }
@media (prefers-reduced-motion: reduce) {
  .fs-flow *, .fs-flow *::before, .fs-flow *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 900px) {
  .fs-flow { padding-top: 56px; }
  .fs-flow-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .fs-flow-canvas { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; }
  .fs-flow-stage { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr); column-gap: 24px; }
  .fs-flow-stage h3 { grid-column: 1; margin: 0; align-self: start; }
  .fs-flow-stage > p { grid-column: 1; grid-row: 1; padding-top: 30px; align-self: start; }
  .fs-flow-stage > div { grid-column: 2; grid-row: 1; }
  .fs-flow-wire { --wire-length: 30px; height: 30px; width: 1px; margin: 12px 27% 12px auto; }
  .fs-flow-wire::after { right: -2px; top: auto; bottom: 0; transform: rotate(135deg); }
  .fs-flow-wire > i { left: -2px; top: 0; animation-name: fs-packet-down; }
  .fs-flow-progress button { padding: 14px 10px; font-size: 10px; gap: 6px; }
  .fs-flow-progress button > span { display: none; }
  .fs-flow-figure figcaption { flex-direction: column; gap: 8px; }
  .fs-flow-figure figcaption > span { max-width: none; text-align: left; }
}
@keyframes fs-packet-down { 0% { transform: translateY(0); opacity: 0; } 15%, 80% { opacity: 1; } 100% { transform: translateY(var(--wire-length)); opacity: 0; } }
@media (max-width: 480px) {
  .fs-flow-toolbar { flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
  .fs-flow-controls { width: 100%; justify-content: space-between; gap: 8px; }
  .fs-flow-toolbar > span { font-size: 10px; gap: 6px; }
  .fs-flow-toggle { font-size: 10px; padding: 6px 8px; }
  .fs-flow-mode { font-size: 8px; }
  .fs-flow-canvas { padding: 24px 16px; }
  .fs-flow-stage { grid-template-columns: minmax(0, 1fr); }
  .fs-flow-stage h3 { margin-bottom: 14px; }
  .fs-flow-stage > div { grid-column: 1; grid-row: 2; }
  .fs-flow-stage > p { grid-row: 3; padding: 0; margin-top: 10px; }
  .fs-source-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .fs-source-options button { flex-direction: column; justify-content: flex-start; text-align: center; padding: 12px 4px; gap: 8px; min-height: 98px; }
  .fs-source-options strong { font-size: 10px; }
  .fs-source-options small { font-size: 9px; }
  .fs-source-dot { display: none; }
  .fs-flow-wire { --wire-length: 24px; margin-left: auto; margin-right: auto; height: 24px; }
  .fs-rule-row { font-size: 12px; margin-top: 13px; }
  .fs-rule-row code { font-size: 11px; }
  .fs-rule-result { font-size: 10px; }
  .fs-decision-window code { font-size: 11px; }
  .fs-flow-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fs-flow-progress button { padding: 12px 16px; min-height: 44px; }
  .fs-flow-figure figcaption { padding: 16px; }
}
