/* =====================================================
   ASSTIO FLOW (/software/crm)
   Page-only styles, loaded from CrmFlow.razor.
   Body uses the new design language (Figtree, soft cards,
   brand purple, a few hand-made touches). Site header,
   footer and Font Awesome icons are the standard ones.
   All product mock-ups are pure HTML/CSS (no JS).
   ===================================================== */

.fl {
    --fl-bg: #F3F2F8;
    --fl-surface: #FFFFFF;
    --fl-ink: #120D24;
    --fl-ink-2: #4B4760;
    --fl-mute: #8A869C;
    --fl-line: #E7E4F0;
    --fl-line-2: #D6D2E3;
    --fl-purple: #6D3EFF;
    --fl-purple-hover: #5A2EEB;
    --fl-purple-soft: #EDE8FF;
    --fl-purple-mid: #ADA9FF;
    --fl-red: #E11D48;   --fl-red-bg: #FDECEF;
    --fl-amber: #B7740A; --fl-amber-bg: #FEF3E2;
    --fl-blue: #2563EB;  --fl-blue-bg: #E8EFFE;
    --fl-sans: 'Figtree', 'Source Sans 3', Arial, sans-serif;
    --fl-hand: 'Caveat', 'Segoe Print', cursive;
    --fl-shadow: 0 2px 4px rgb(18 13 36 / .04), 0 12px 32px -8px rgb(18 13 36 / .10);

    background: var(--fl-bg);
    color: var(--fl-ink);
    font-family: var(--fl-sans);
    font-size: 16px;
    line-height: 1.55;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
.fl h1, .fl h2, .fl h3 { font-family: var(--fl-sans); color: var(--fl-ink); margin: 0; letter-spacing: -0.025em; font-weight: 700; }
.fl p { margin: 0; }
.fl-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }

.fl button { font-family: inherit; }

/* ---------- buttons ---------- */
.fl-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 46px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
    font-size: 15.5px; font-weight: 600; white-space: nowrap;
    transition: background .15s, border-color .15s;
}
.fl-btn--primary { background: var(--fl-purple); color: #fff !important; }
.fl-btn--primary:hover { background: var(--fl-purple-hover); }
.fl-btn--ghost { background: var(--fl-surface); border-color: var(--fl-line-2); color: var(--fl-ink) !important; }
.fl-btn--ghost:hover { border-color: var(--fl-ink-2); }
.fl-arrow { font-size: .85em; transition: transform .15s; }
.fl-btn:hover .fl-arrow, .fl-textlink:hover .fl-arrow { transform: translateX(3px); }
.fl-textlink { display: inline-flex; align-items: center; gap: 8px; color: var(--fl-purple); font-weight: 600; font-size: 15px; white-space: nowrap; }

/* ---------- chips + avatars ---------- */
.fl-chip { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.fl-chip i { font-size: 10px; }
.fl-chip--red { color: var(--fl-red); background: var(--fl-red-bg); }
.fl-chip--amber { color: var(--fl-amber); background: var(--fl-amber-bg); }
.fl-chip--purple { color: var(--fl-purple); background: var(--fl-purple-soft); }
.fl-chip--blue { color: var(--fl-blue); background: var(--fl-blue-bg); }
.fl-chip--grey { color: var(--fl-mute); background: #F1F0F5; }
.fl-av {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center; font-size: 11px; font-weight: 700;
    color: hsl(var(--h, 262) 55% 38%); background: hsl(var(--h, 262) 70% 93%);
}
.fl-ico { width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; background: var(--fl-purple-soft); color: var(--fl-purple); font-size: 14px; font-style: normal; }
.fl-ico--lg { width: 42px; height: 42px; border-radius: 11px; font-size: 17px; }
.fl-card { background: var(--fl-surface); border: 1px solid var(--fl-line); border-radius: 16px; padding: 26px; box-shadow: var(--fl-shadow); }

/* ---------- section heads ---------- */
.fl-sec { padding: 96px 0; }
.fl-sec--white { background: var(--fl-surface); border-top: 1px solid var(--fl-line); border-bottom: 1px solid var(--fl-line); }
.fl-sec--white .fl-card { box-shadow: none; background: #FAF9FD; }
.fl-head { max-width: 660px; margin-bottom: 44px; }
.fl-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.fl-kicker { font-size: 14px; font-weight: 700; color: var(--fl-purple); }
.fl-head h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; line-height: 1.12; letter-spacing: -0.03em; margin-top: 10px; }
.fl-head > p:last-child { font-size: 17px; color: var(--fl-ink-2); margin-top: 14px; }

/* =====================================================
   HERO
   ===================================================== */
.fl-hero {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: center;
    padding-top: 150px; padding-bottom: 96px;
}
.fl-eyebrow { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; font-size: 13.5px; color: var(--fl-ink-2); background: var(--fl-surface); border: 1px solid var(--fl-line); padding: 5px 12px 5px 6px; border-radius: 999px; transition: border-color .15s; }
.fl-eyebrow:hover { border-color: var(--fl-line-2); }
.fl-eyebrow b { flex-shrink: 0; font-size: 12px; font-weight: 600; color: var(--fl-purple); background: var(--fl-purple-soft); padding: 2px 9px; border-radius: 999px; }
.fl-eyebrow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-h1 { font-size: clamp(38px, 4vw, 56px) !important; font-weight: 800 !important; line-height: 1.05; letter-spacing: -0.035em !important; margin-top: 22px !important; max-width: 13ch; }
.fl-h1 span { color: var(--fl-purple); }
.fl-sub { font-size: 18px; line-height: 1.55; color: var(--fl-ink-2); margin-top: 20px !important; max-width: 46ch; }
.fl-actions { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }

.fl-checks { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; }
.fl-checks li { display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--fl-ink-2); }
.fl-checks li > i { width: 26px; text-align: center; font-size: 18px; color: var(--fl-purple); flex-shrink: 0; }
.fl-checks b { font-weight: 700; color: var(--fl-ink); }

/* handwritten notes */
.fl-note { font-family: var(--fl-hand); font-weight: 700; font-size: 23px; line-height: 1; color: var(--fl-purple); display: inline-flex; align-items: flex-end; gap: 4px; pointer-events: none; user-select: none; }
.fl-note svg { width: 46px; height: 32px; overflow: visible; }
.fl-note path { fill: none; stroke: var(--fl-purple); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fl-note--cta { pointer-events: auto; cursor: pointer; align-items: flex-start; margin: 8px 0 0 10px; transform: rotate(-4deg); transform-origin: left top; text-decoration: none; transition: color .15s, transform .2s; }
.fl-note--cta svg { width: 34px; height: 42px; margin: 10px 0 0 2px; }
.fl-note--cta:hover { color: var(--fl-purple-hover); transform: rotate(-4deg) translateY(2px); }

/* hero without the app window: centred, the real app sits right below */
.fl-hero--solo { grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: center; text-align: center; padding-bottom: 72px; }
/* the hero fills the first screen, so the Flow client only appears once you scroll */
.fl-hero--solo { position: relative; isolation: isolate; }
.fl-hero--solo > * { position: relative; z-index: 1; }

/* a little life in the hero: one deal travelling through Flow, left to right.
   A small ball rolls along a line through the middle of the row (driven by flow.js,
   which measures the pills). At each pill the ball grows into it: the pill unfolds out
   of the ball, the ball slips out the far end as a small ball again and rolls on.
   At the win it stays inside; the win pops, glows and throws bills. */
fl-story { display: block; justify-self: stretch; width: 100%; }
.fl-story { position: relative; list-style: none; margin: 176px 0 0; padding: 0; display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; }
.fl-beat { position: relative; z-index: 2; display: inline-flex; }
.fl-beat + .fl-beat { margin-left: clamp(24px, 3.6vw, 52px); }
.fl-story-line { position: absolute; z-index: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: linear-gradient(90deg, var(--fl-line-2), var(--fl-purple-mid)); transform-origin: left center; transform: scaleX(0); }
.fl-story-ball { position: absolute; z-index: 1; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--fl-purple); box-shadow: 0 0 0 4px var(--fl-purple-soft), 0 4px 10px rgb(109 62 255 / .45); opacity: 0; }

.fl-story-pill {
    position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 9px 17px 9px 9px;
    border-radius: 999px; background: #1b1c1f; border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 14px 30px -14px rgb(13 9 32 / .5), inset 0 1px 0 rgba(255,255,255,.06);
    font-size: 14px; font-weight: 600; color: #eceef2; white-space: nowrap;
    opacity: 0; clip-path: inset(0 calc(100% - var(--h, 48px)) 0 0 round 999px);
}
.fl-story-txt { display: inline-flex; gap: 6px; opacity: 0; transform: translateX(-8px); }
.fl-story-ico { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12.5px; background: color-mix(in srgb, #ADA9FF 18%, transparent); color: #ADA9FF; transform: scale(0); }
/* the pill appears as the circle the ball just grew into, then unfolds just ahead of the ball */
.fl-beat.is-on .fl-story-pill { opacity: 1; animation: fl-pill-unfold var(--unfold, .46s) cubic-bezier(.12,.8,.3,1) forwards; }
.fl-beat.is-on .fl-story-ico { animation: fl-ico-spin .45s cubic-bezier(.3,1.6,.5,1) forwards; }
.fl-beat.is-on .fl-story-txt { animation: fl-story-txt .4s ease .2s forwards; }
@keyframes fl-pill-unfold { to { clip-path: inset(-30px -30px -30px -30px round 999px); } }
@keyframes fl-ico-spin { from { transform: rotate(-140deg) scale(0); } to { transform: none; } }
@keyframes fl-story-txt { to { opacity: 1; transform: none; } }
.fl-story-pill em { font-style: normal; font-weight: 500; color: #979ca7; }
.fl-story-ico i { font-style: normal; }
.fl-story-ico--info { background: color-mix(in srgb, #94b6e8 18%, transparent); color: #94b6e8; }
.fl-story-ico--warn { background: color-mix(in srgb, #e6c481 18%, transparent); color: #e6c481; }
.fl-story-ico--won { background: #85cfa1; color: #12301f; }

/* the win: same entrance, then an extra pop and a soft green glow */
.fl-beat--won .fl-story-pill { background: #14261b; border-color: rgba(133,207,161,.35); color: #dff5e7; }
.fl-beat--won.is-on .fl-story-pill {
    animation: fl-pill-unfold var(--unfold, .46s) cubic-bezier(.12,.8,.3,1) forwards,
               fl-story-pop .55s cubic-bezier(.3,1.8,.5,1) .5s, fl-story-glow 2.6s ease-in-out 1.4s infinite;
}
.fl-beat--won .fl-story-pill em { color: #85cfa1; font-weight: 700; }
@keyframes fl-story-pop { 0% { scale: 1; } 40% { scale: 1.16; } 100% { scale: 1; } }
@keyframes fl-story-glow { 0%, 100% { box-shadow: 0 12px 26px -14px rgb(13 9 32 / .5), 0 0 0 0 rgba(133,207,161,0); } 50% { box-shadow: 0 12px 26px -14px rgb(13 9 32 / .5), 0 0 0 6px rgba(133,207,161,.18); } }

/* everything visible at once: reduced motion, no JS, or after a resize */
.fl-story.is-static .fl-story-pill { opacity: 1; clip-path: none; animation: none; }
.fl-story.is-static .fl-story-ico, .fl-story.is-static .fl-story-txt { opacity: 1; transform: none; animation: none; }
.fl-story.is-static .fl-story-line { transform: none; }

/* the money: little green bills flying up out of the win */
.fl-bills { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.fl-bills i {
    position: absolute; left: -9px; top: -6px; width: 18px; height: 11px; border-radius: 2px;
    background: radial-gradient(circle at 50% 50%, #b9f0cc 0 2.2px, transparent 2.6px), linear-gradient(135deg, #3aa86b, #23864f);
    box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35), 0 2px 4px rgb(10 40 20 / .3);
    opacity: 0;
}
.fl-beat--won.is-on .fl-bills i { animation: fl-bill 2.6s cubic-bezier(.2,.6,.3,1) infinite; }
.fl-bills i:nth-child(1) { --x: -84px; --y: -38px; --r: -38deg; animation-delay: .9s; }
.fl-bills i:nth-child(2) { --x: -50px; --y: -58px; --r: 24deg;  animation-delay: 1s; }
.fl-bills i:nth-child(3) { --x: -10px; --y: -64px; --r: -16deg; animation-delay: .95s; }
.fl-bills i:nth-child(4) { --x: 34px; --y: -60px; --r: 34deg;  animation-delay: 1.1s; }
.fl-bills i:nth-child(5) { --x: 88px; --y: -34px; --r: -28deg; animation-delay: 1.05s; }
.fl-bills i:nth-child(6) { --x: -66px; --y: -18px; --r: 18deg;  animation-delay: 1.2s; }
.fl-bills i:nth-child(7) { --x: 62px; --y: -20px; --r: -44deg; animation-delay: 1.25s; }
.fl-bills i:nth-child(8) { --x: 12px; --y: -46px; --r: 12deg; animation-delay: 1.15s; }
@keyframes fl-bill {
    0%   { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(.5); }
    12%  { opacity: 1; }
    55%  { opacity: 1; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); }
    100% { opacity: 0; transform: translate(calc(var(--x) * 1.15), calc(var(--y) * .55)) rotate(calc(var(--r) * -1.4)) scale(.9); }
}
@media (max-width: 1200px) {
    .fl-story { flex-direction: column; gap: 24px; margin-top: 72px; }
    .fl-beat + .fl-beat { margin-left: 0; }
    .fl-story-line, .fl-story-ball { display: none; }
}

.fl-hero--solo { min-height: 100vh; min-height: 100svh; padding-top: 110px; }
.fl-hero--solo .fl-h1 { max-width: 24ch; margin-left: auto; margin-right: auto; }
.fl-hero--solo .fl-sub { margin-left: auto; margin-right: auto; max-width: 52ch; }
.fl-hero--solo .fl-actions { justify-content: center; align-items: flex-start; }
.fl-hero--solo .fl-checks { grid-template-columns: repeat(4, auto); justify-content: center; gap: 12px 28px; margin-top: 44px; }
.fl-hero--solo .fl-checks li { font-size: 15px; gap: 10px; }

/* =====================================================
   TRY FLOW: replica of the real Flow app (rendered by flow.js)
   Tokens copied from asstio-flow styles/loupe/tokens.css.
   ===================================================== */
.fl-try { padding: 72px 24px 96px; background: var(--fl-surface); border-top: 1px solid var(--fl-line); border-bottom: 1px solid var(--fl-line); }
.fl-try-head { max-width: 1400px; margin: 0 auto; }
.fl-try-head > * { max-width: 680px; }
.fl-try-head h2 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 800; line-height: 1.08; letter-spacing: -0.035em; margin-top: 10px; }
.fl-try-head > p:last-child { font-size: 18px; color: var(--fl-ink-2); margin-top: 14px; }
.fl-try-bar { max-width: 1400px; margin: 36px auto 14px; display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.fl-try-hint { font-size: 14px; color: var(--fl-mute); }
.fl-try-hint i { color: var(--fl-purple); margin-right: 6px; }
.fl-try-bar .fl-btn { margin-left: auto; }
.fl-btn--sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 9px; gap: 8px; }
.fl-btn--sm i { font-size: 12px; }

fl-board { display: block; }
.fx {
    --bg: #1b1c1f; --surface: #212328; --surface-2: #292b31; --row-hover: #2c2e34;
    --border: rgba(255,255,255,.05); --glass-border: rgba(255,255,255,.08);
    --text: #dde0e6; --muted: #979ca7; --faint: #6f737d; --accent: #ADA9FF;
    --primary: #4b4f58; --primary-fg: #eceef2;
    --positive: #85cfa1; --warn: #e6c481; --danger: #e3a4a1; --info: #94b6e8; --special: #e2a0ca; --gold: #e8c66a;
    --brand-mark-a: #C9DBFF; --brand-mark-b: #6FA8FF; --brand-mark-c: #2E7BFF;
    --glass: rgba(255,255,255,.04); --glass-spec: rgba(255,255,255,.30); --glass-shadow: rgba(0,0,0,.22); --scrim: rgba(8,9,12,.55);
    --fx-font: "SF Pro Text", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
    --fx-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
    max-width: 1400px; margin: 0 auto; border-radius: 24px; overflow: hidden;
    box-shadow: 0 40px 80px -30px rgb(18 13 36 / .45), 0 0 0 1px rgb(18 13 36 / .08);
    font-family: var(--fx-font); color: var(--text); font-variant-numeric: normal; letter-spacing: 0;
}
.fx[data-theme="light"] {
    --bg: #FAFAFE; --surface: #ffffff; --surface-2: #F0EEFF; --row-hover: #F4F1FF;
    --border: rgba(109,62,255,.12); --glass-border: rgba(255,255,255,.7);
    --text: #0D0920; --muted: #6B6580; --faint: #928DA3; --accent: #6D3EFF;
    --primary: #565b65; --primary-fg: #f3f4f6;
    --positive: #277B4F; --warn: #8C6514; --danger: #B64940; --info: #3A6BBC; --special: #AF438A; --gold: #896712;
    --brand-mark-a: #7FB0FF; --brand-mark-b: #3E86FF; --brand-mark-c: #1E5FD8;
    --glass: rgba(255,255,255,.62); --glass-spec: rgba(255,255,255,.5); --glass-shadow: rgba(13,9,32,.06); --scrim: rgba(13,9,32,.34);
}
.fx *, .fx *::before, .fx *::after { box-sizing: border-box; }
.fx button { font: inherit; color: inherit; cursor: pointer; }
.fx h3, .fx h4 { font-family: var(--fx-display); color: var(--text); letter-spacing: -0.02em; margin: 0; }
.fx p { margin: 0; }
.fx-noscript { padding: 48px; text-align: center; color: var(--muted); background: var(--bg); }

.fx-app { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 8px 12px 12px; height: 700px; background: var(--bg); transition: background .3s; }
.fx-glass { background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); border: 1px solid var(--glass-border); box-shadow: 0 6px 18px var(--glass-shadow), inset 0 1px 0 var(--glass-spec); }
.fx[data-theme="dark"] .fx-glass { box-shadow: 0 6px 18px var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,.06); }

/* top bar */
.fx-top { flex: 0 0 56px; display: flex; align-items: center; gap: 10px; padding: 0 16px 0 10px; border-radius: 18px; }
.fx-brand { display: inline-flex; align-items: center; padding-left: 4px; }
.fx-brand b { font-family: var(--fx-display); font-size: 20px; font-weight: 700; color: var(--text); }
.fx-search { margin-left: auto; height: 40px; width: 288px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.fx-search i { font-size: 13px; }
.fx-round { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); display: grid; place-items: center; color: var(--muted) !important; }
.fx-theme { position: relative; width: 60px; height: 32px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); display: flex; align-items: center; justify-content: space-between; color: var(--muted) !important; font-size: 12px; }
.fx-theme i { position: relative; z-index: 1; width: 14px; text-align: center; transition: color .2s; }
.fx-theme span { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s cubic-bezier(.2,.6,.2,1); }
.fx[data-theme="dark"] .fx-theme span { transform: translateX(28px); }
.fx[data-theme="dark"] .fx-theme .fa-moon, .fx[data-theme="light"] .fx-theme .fa-sun { color: var(--accent); }
.fx-theme:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }

/* body: sidebar + main */
.fx-body { flex: 1; min-height: 0; display: flex; gap: 12px; }
.fx-side { flex: 0 0 14rem; border-radius: 18px; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.fx-side > button { display: flex; align-items: center; gap: 12px; width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: 14px; background: transparent; font-size: 14px; color: var(--muted) !important; text-align: left; transition: background .15s, color .15s; }
.fx-side > button:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--text) !important; }
.fx-side > button i { width: 20px; text-align: center; font-size: 15px; }
.fx-side > button.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text) !important; }
.fx-side > button.on i { color: var(--accent); }
.fx-side small { margin-top: auto; padding: 0 12px; font-size: 11px; color: var(--faint); text-align: center; }
.fx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

/* toolbar */
.fx-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 2px 2px 0; }
.fx-tabs { display: inline-flex; padding: 4px; gap: 2px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.fx-tabs button { position: relative; height: 32px; padding: 0 14px; border-radius: 10px; border: 0; background: transparent; font-size: 14px; font-weight: 500; color: var(--muted) !important; }
.fx-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text) !important; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.fx-badge { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 var(--gold); animation: fx-ping 1.4s ease-out infinite; }
@keyframes fx-ping { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.fx-scope { font-size: 13px; color: var(--muted); }
.fx-stats { display: flex; gap: 6px; flex-wrap: wrap; }
.fx-stat { display: inline-flex; align-items: baseline; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 12px; }
.fx-stat small { color: var(--muted); font-size: 12px; }
.fx-stat b { color: var(--text); font-size: 13px; font-weight: 600; line-height: 28px; }
.fx-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.fx-select { height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--text); }
.fx-select i { font-size: 10px; color: var(--muted); }
.fx-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted) !important; font-size: 13px; }
.fx-primary { height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--primary); color: var(--primary-fg) !important; font-size: 14px; font-weight: 600; transition: transform .12s cubic-bezier(.2,.6,.2,1), filter .15s; }
.fx-primary:hover { filter: brightness(1.12); }
.fx-primary:active { transform: scale(.98); }
.fx-primary i { font-size: 12px; }
.fx-primary[disabled] { opacity: .45; cursor: not-allowed; }
.fx-primary--wide { width: 100%; margin-top: 14px; }

/* board */
.fx-board { flex: 1; min-height: 0; display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 8px; }
.fx-col { flex: 0 0 16rem; display: flex; flex-direction: column; min-height: 0; }
.fx-col header { display: flex; align-items: flex-start; gap: 8px; padding: 6px 4px 10px; }
.fx-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.fx-col-name { font-size: 10px; line-height: 16px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.fx-col-n { margin-left: auto; font-size: 11px; line-height: 16px; color: var(--muted); text-align: right; white-space: nowrap; }
.fx-col-n small { display: block; color: var(--faint); font-size: 11px; }
.fx-drop { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 18px; background: var(--bg); border: 1px solid var(--border); transition: border-color .15s, background .15s; }
.fx[data-theme="dark"] .fx-drop { background: #18191c; }
.fx-col.is-over .fx-drop { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 8%, var(--bg)); }
.fx-empty { margin: auto; font-size: 12px; color: var(--faint); }

.fx-t-info { background: var(--info); } .fx-t-warn { background: var(--warn); } .fx-t-positive { background: var(--positive); }
.fx-t-danger { background: var(--danger); } .fx-t-faint { background: var(--faint); }

/* cards */
.fx-card { flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); line-height: 1.25; cursor: grab; user-select: none; outline: none; transition: border-color .15s, background .15s; }
.fx-card:hover { background: var(--row-hover); }
.fx-card:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.fx-card.is-overdue { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); }
.fx-card.is-dragging { display: none; }
.fx-card.is-flash { animation: fx-flash 1.6s ease; }
@keyframes fx-flash { 0%, 30% { box-shadow: 0 0 0 2px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.fx-c-top { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; }
.fx-pdot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.fx-c-top b { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fx-c-town { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.fx-c-top .fx-pill { margin-left: auto; flex-shrink: 0; }
.fx-c-cap { font-size: 11px; line-height: 16px; color: var(--muted); }
.fx-c-meta { font-size: 12px; color: var(--muted); }
.fx-c-faint { font-size: 11px; line-height: 16px; color: var(--faint); }
.fx-c-due { font-size: 11px; line-height: 16px; color: var(--muted); }
.fx-c-due.is-late { color: var(--warn); }
.fx-c-due i { margin-right: 3px; }
.fx-c-money { font-size: 13px; font-weight: 600; color: var(--text); }
.fx-c-money span { font-weight: 400; color: var(--muted); }
.fx-bar { width: 100%; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.fx-bar i { display: block; height: 100%; border-radius: 6px; background: var(--info); transition: width .4s cubic-bezier(.2,.6,.2,1); }
.fx-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 500; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
.fx-pill--soft { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.fx-pill--danger { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }
.fx-pill--vivid { color: var(--bg); font-weight: 600; }
.fx-v-info { background: var(--info); } .fx-v-special { background: var(--special); } .fx-v-gold { background: var(--gold); }
.fx-c-actions { display: flex; align-items: center; gap: 4px; width: 100%; margin-top: 2px; }
.fx-c-actions span { flex: 1; }
.fx-mini { width: 28px; height: 28px; border-radius: 10px; border: 0; background: transparent; display: grid; place-items: center; color: var(--muted) !important; font-size: 12px; line-height: 1; transition: background .15s, color .15s; }
.fx-mini:hover { background: var(--surface-2); color: var(--text) !important; }
.fx-mini--gold { color: var(--gold) !important; }
.fx-mini--gold:hover { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold) !important; }
.fx-mini--lg { width: 36px; height: 36px; font-size: 15px; border: 1px solid var(--border); background: var(--surface-2); }

.fx-ph { flex-shrink: 0; border-radius: 14px; border: 1.5px dashed color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.fx-drag { position: absolute; left: 0; top: 0; z-index: 50; pointer-events: none; cursor: grabbing; box-shadow: 0 28px 70px rgba(0,0,0,.35); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
html.fx-grabbing, html.fx-grabbing * { cursor: grabbing !important; user-select: none !important; }

/* layers */
.fx-layer { position: absolute; inset: 0; z-index: 40; display: none; }
.fx-layer.is-on { display: block; }
.fx-scrim { position: absolute; inset: 0; background: var(--scrim); animation: fx-fade .2s ease; }
.fx-scrim--clear { background: transparent; }
@keyframes fx-fade { from { opacity: 0; } }
.fx-dialog { position: absolute; left: 50%; top: 50%; width: min(420px, calc(100% - 32px)); transform: translate(-50%, -50%); border-radius: 24px; padding: 28px; text-align: center; animation: fx-pop .25s cubic-bezier(.2,.6,.2,1); }
.fx[data-theme="dark"] .fx-dialog, .fx[data-theme="dark"] .fx-peek, .fx[data-theme="dark"] .fx-menu { background: rgba(33,35,40,.92); }
.fx[data-theme="light"] .fx-dialog, .fx[data-theme="light"] .fx-peek, .fx[data-theme="light"] .fx-menu { background: rgba(255,255,255,.94); }
@keyframes fx-pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.97); } }
.fx-dialog-ico { width: 52px; height: 52px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 22px; color: var(--gold); background: color-mix(in srgb, var(--gold) 18%, transparent); }
.fx-dialog h3 { font-size: 20px; margin-top: 14px; }
.fx-dialog p { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.fx-dialog-actions { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.fx-ghost { height: 36px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); font-size: 14px; font-weight: 500; }
.fx-gold { height: 36px; padding: 0 18px; border-radius: 10px; border: 0; background: var(--gold); color: #1b1c1f !important; font-size: 14px; font-weight: 700; }
.fx-menu { position: absolute; z-index: 2; width: 170px; border-radius: 14px; padding: 6px; animation: fx-fade .15s ease; }
.fx-menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border-radius: 10px; border: 0; background: transparent; font-size: 13.5px; text-align: left; }
.fx-menu button:hover { background: var(--surface-2); }
.fx-menu button.is-danger { color: var(--danger) !important; }
.fx-menu i { width: 14px; font-size: 12px; color: var(--muted); }
.fx-menu .is-danger i { color: var(--danger); }

/* peek */
.fx-peek { position: absolute; inset: 28px 36px; border-radius: 24px; display: flex; flex-direction: column; overflow: hidden; animation: fx-rise .28s cubic-bezier(.2,.6,.2,1); }
@keyframes fx-rise { from { opacity: 0; transform: translateY(10px) scale(.99); } }
.fx-peek-h { display: flex; align-items: flex-start; gap: 24px; padding: 20px 22px 14px; border-bottom: 1px solid var(--border); }
.fx-peek-title { min-width: 0; }
.fx-peek-title h3 { display: inline; font-size: 21px; }
.fx-peek-title .fx-pill { margin-left: 8px; vertical-align: 3px; }
.fx-peek-title p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.fx-peek-metrics { display: flex; gap: 22px; margin-left: auto; }
.fx-peek-metrics small { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.fx-peek-metrics b { display: block; font-size: 15px; font-weight: 600; color: var(--text); margin-top: 2px; white-space: nowrap; }
.fx-peek-act { display: flex; gap: 8px; }
.fx-steps { display: flex; gap: 4px; padding: 10px 22px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.fx-steps button { flex: 1 0 auto; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); font-size: 12.5px; color: var(--muted) !important; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.fx-steps button small { color: var(--faint); font-size: 11px; }
.fx-steps button.on { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--text) !important; }
.fx-peek-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 15rem minmax(0, 1fr) 17rem; }
.fx-peek-body > * { min-height: 0; overflow-y: auto; padding: 18px 20px; }
.fx-facts { border-right: 1px solid var(--border); font-size: 14px; }
.fx-facts p { margin-bottom: 4px; }
.fx-label { font-size: 10px !important; line-height: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 12px 0 4px !important; }
.fx-facts .fx-label:first-child { margin-top: 0 !important; }
.fx-link { color: var(--accent); font-size: 13px; }
.fx-field { display: block; margin-top: 12px; }
.fx-field span { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.fx-field select, .fx-field input { width: 100%; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-size: 13.5px; outline: none; }
.fx-field select:focus, .fx-field input:focus { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.fx-ptabs { display: flex; gap: 2px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); width: max-content; max-width: 100%; overflow-x: auto; }
.fx-ptabs button { height: 30px; padding: 0 12px; border-radius: 10px; border: 0; background: transparent; font-size: 13px; color: var(--muted) !important; white-space: nowrap; }
.fx-ptabs button.on { background: var(--surface); color: var(--text) !important; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.fx-panel { margin-top: 14px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.fx-panel h4 { font-size: 15px; }
.fx-panel--row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fx-row-btns { display: flex; gap: 6px; }
.fx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-chips button { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); font-size: 12.5px; color: var(--muted) !important; }
.fx-chips button.on { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--text) !important; }
.fx-seg { display: inline-flex; gap: 4px; padding: 4px; margin-top: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.fx-seg button { height: 32px; padding: 0 18px; border-radius: 10px; border: 0; background: transparent; font-size: 13.5px; font-weight: 600; color: var(--muted) !important; }
.fx-seg button.on { background: color-mix(in srgb, var(--positive) 22%, transparent); color: var(--positive) !important; }
.fx-seg button.on.is-lost { background: color-mix(in srgb, var(--danger) 22%, transparent); color: var(--danger) !important; }
.fx-timeline { border-left: 1px solid var(--border); }
.fx-timeline ul { list-style: none; margin: 0; padding: 0; }
.fx-timeline li { position: relative; padding: 0 0 14px 20px; font-size: 13px; color: var(--muted); }
.fx-timeline li::before { content: ""; position: absolute; left: 4px; top: 12px; bottom: -2px; width: 1px; background: var(--border); }
.fx-timeline li:last-child::before { display: none; }
.fx-timeline li b { color: var(--text); font-weight: 600; margin-right: 4px; }
.fx-timeline li small { display: block; font-size: 11px; color: var(--faint); margin-top: 1px; }
.fx-tl-dot { position: absolute; left: 0; top: 4px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--accent); background: var(--bg); }

.fx-toast { position: absolute; z-index: 60; left: 50%; bottom: 22px; transform: translate(-50%, 10px); max-width: calc(100% - 40px); padding: 10px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 13.5px; font-weight: 600; text-align: center; box-shadow: 0 16px 40px rgba(0,0,0,.3); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.fx-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.fx-confetti { position: absolute; z-index: 70; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; animation: fx-confetti 1s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes fx-confetti { to { transform: translate(var(--x), var(--y)) rotate(260deg); opacity: 0; } }

/* ---------- replica pages: Hem, Personer, Historik (read-only) ---------- */
.fx-main > .fx-page, .fx-mmain > .fx-page { overflow-y: auto; }
.fx-main:has(> .fx-page) { overflow-y: auto; padding-right: 4px; }
.fx-page { flex: 0 0 auto; width: 100%; max-width: 72rem; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; padding: 4px 4px 24px; }
.fx-page > * { flex-shrink: 0; }
.fx-page--narrow { max-width: 56rem; }
.fx-hhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fx-month { display: inline-flex; align-items: center; gap: 2px; }
.fx-month b { min-width: 4.5rem; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.fx-ghost--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.fx-ghost--plain { background: transparent; border-color: transparent; }
.fx-ghost.on { background: var(--surface-2); border-color: var(--border); color: var(--text) !important; }
.fx-primary--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.fx-select--sm { height: 32px; font-size: 12.5px; }
.fx-hhead .fx-primary--sm { margin-left: auto; }

.fx-rings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fx-ring-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.fx-ring-wrap { position: relative; display: grid; place-items: center; }
.fx-ring { width: 120px; height: 120px; transform: rotate(-90deg); }
.fx-ring-track { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.fx-ring-arc { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dasharray .5s cubic-bezier(.2,.6,.2,1); }
.fx-s-special { stroke: var(--special); } .fx-s-positive { stroke: var(--positive); } .fx-s-info { stroke: var(--info); }
.fx-s-neutral { stroke: var(--muted); } .fx-s-accent { stroke: var(--accent); } .fx-s-danger { stroke: var(--danger); }
.fx-ring-val { position: absolute; font-family: var(--fx-display); font-size: 17px; font-weight: 700; color: var(--text); max-width: 96px; line-height: 1.15; }
.fx-ring-label { margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.fx-ring-card small { margin-top: 2px; font-size: 11.5px; color: var(--faint); }
.fx-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fx-tile { padding: 12px 16px; border-radius: 14px; }
.fx-tile small { display: block; font-size: 11.5px; color: var(--muted); }
.fx-tile b { display: block; font-size: 22px; font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-tone-info { background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--info); }
.fx-tone-special { background: color-mix(in srgb, var(--special) 16%, transparent); color: var(--special); }
.fx-tone-warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.fx-tone-positive { background: color-mix(in srgb, var(--positive) 14%, transparent); color: var(--positive); }
.fx-tone-neutral { background: var(--surface-2); color: var(--muted); }
.fx-cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fx-hcard { padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.fx-hcard--flush { padding: 0; overflow: hidden; }
.fx-hcard h4 { font-size: 15px; display: flex; align-items: baseline; gap: 8px; }
.fx-hcard h4 small { font-size: 11.5px; font-weight: 400; color: var(--faint); font-family: var(--fx-font); }
.fx-act { display: flex; gap: 22px; margin-top: 10px; }
.fx-act span { font-size: 12px; color: var(--muted); }
.fx-act b { display: block; font-family: var(--fx-display); font-size: 24px; color: var(--text); }
.fx-spark { width: 100%; height: 90px; margin-top: 8px; }
.fx-spark polyline { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.fx-trio { display: flex; align-items: center; justify-content: space-around; gap: 12px; margin-top: 10px; }
.fx-trio > div:last-child { display: flex; gap: 14px; }
.fx-donut { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); }
.fx-donut svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.fx-donut--lg svg { width: 96px; height: 96px; }
.fx-donut .fx-ring-track, .fx-donut .fx-ring-arc { stroke-width: 8; }
.fx-donut b { position: absolute; font-size: 13px; color: var(--text); }
.fx-donut--lg b { font-size: 17px; font-family: var(--fx-display); }
.fx-score summary { cursor: pointer; list-style: none; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 4px; }
.fx-score summary::after { content: " ▸"; }
.fx-score[open] summary::after { content: " ▾"; }
.fx-score[open] > *:not(summary) { margin-top: 10px; }

.fx-hsec { padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.fx-hsec header { display: flex; align-items: center; gap: 8px; }
.fx-hsec h3 { font-size: 17px; font-weight: 700; }
.fx-count { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.fx-hsec header small { margin-left: auto; font-size: 12px; color: var(--faint); }
.fx-hsec ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fx-hrow { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: 14px; background: var(--surface-2); cursor: pointer; }
.fx-hrow > div { flex: 1; min-width: 0; }
.fx-hrow b { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-hrow small { display: block; font-size: 12px; color: var(--muted); }
.fx-hday { display: flex; align-items: center; gap: 8px; padding: 8px 2px 2px; }
.fx-hday b { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.fx-hday small { font-size: 11px; color: var(--faint); }
.fx-hday i { flex: 1; height: 1px; background: var(--border); }

.fx-phead h2 { font-family: var(--fx-display); font-size: 21px; font-weight: 700; color: var(--text); margin: 0; }
.fx-phead p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.fx-phead .fx-stats { margin-top: 10px; }
.fx-pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.fx-plist h4 { font-size: 16px; margin-bottom: 8px !important; }
.fx-plist header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.fx-plist header h4 { margin: 0 !important; }
.fx-plist ul { list-style: none; margin: 0; padding: 0; }
.fx-plist li { padding: 12px 16px; border-top: 1px solid var(--border); }
.fx-plist li:first-child { border-top: 0; }
.fx-plist li b { display: block; font-size: 14px; font-weight: 500; }
.fx-plist li small { font-size: 12px; color: var(--muted); }
.fx-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.fx-table th { text-align: left; padding: 10px 14px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 600; border-bottom: 1px solid var(--border); white-space: nowrap; }
.fx-table th i { font-size: 9px; margin-left: 3px; }
.fx-table td { padding: 10px 14px; color: var(--text); border-top: 1px solid var(--border); }
.fx-table tbody tr:first-child td { border-top: 0; }
.fx-table tr.is-link, .fx-plist li.is-link { cursor: pointer; }
.fx-table tr.is-link:hover, .fx-plist li.is-link:hover { background: var(--surface-2); }
.fx-scrollx { overflow-x: auto; }

.fx-seg2 { display: inline-flex; width: max-content; gap: 2px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.fx-seg2 button { height: 32px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; font-size: 13.5px; color: var(--muted) !important; }
.fx-seg2 button.on { background: var(--surface-2); color: var(--text) !important; }
.fx-hfilters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fx-hfilters .fx-select { margin-right: 6px; }
.fx-note { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.fx-log-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--border); }
.fx-log-row:first-child { border-top: 0; }
.fx-log-row > div { flex: 1; min-width: 0; }
.fx-log-row p { font-size: 13.5px; color: var(--text); line-height: 1.45; }
.fx-log-rec { color: var(--faint); font-size: 12px; margin-left: 4px; }
.fx-log-row small { font-size: 11.5px; color: var(--faint); }
.fx-page .fx-label { margin: 6px 0 -8px !important; }
.fx-log-tip { display: flex; align-items: center; gap: 8px; }
.fx-log-tip i { color: var(--accent); }
.fx-badge-n { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; border-radius: 999px; background: var(--accent); color: var(--bg); font-size: 10px; display: grid; place-items: center; padding: 0 4px; }
.fx-icon { position: relative; }
.fx-empty--block { text-align: center; padding: 32px 0; }
.fx-menu .fx-label { padding: 6px 10px 2px; margin: 0 !important; }
.fx-menu button i.fa-check { margin-left: auto; color: var(--accent); }

/* mobile tweaks for the pages */
.fx-app.is-mobile .fx-page { padding: 0 0 12px; gap: 14px; }
.fx-app.is-mobile .fx-rings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fx-app.is-mobile .fx-ring { width: 92px; height: 92px; }
.fx-app.is-mobile .fx-ring-val { font-size: 13px; max-width: 76px; }
.fx-app.is-mobile .fx-tiles, .fx-app.is-mobile .fx-cards2, .fx-app.is-mobile .fx-pgrid { grid-template-columns: minmax(0, 1fr); }
.fx-app.is-mobile .fx-hhead .fx-primary--sm { margin-left: 0; }
.fx-app.is-mobile .fx-hsec header small { display: none; }

/* swipeable strips: no desktop scrollbars (like on a phone) */
.fx-steps, .fx-ptabs, .fx-board, .fx-scrollx { scrollbar-width: none; }
.fx-steps::-webkit-scrollbar, .fx-ptabs::-webkit-scrollbar, .fx-scrollx::-webkit-scrollbar { display: none; }
.fx:not(.is-phone) .fx-board { scrollbar-width: thin; }

/* ---------- device switch (outside the app) ---------- */
.fl-device { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--fl-surface); border: 1px solid var(--fl-line-2); margin-left: auto; }
.fl-device button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 8px; border: 0; background: transparent; font: 600 14px var(--fl-sans); color: var(--fl-ink-2); cursor: pointer; transition: background .15s, color .15s; }
.fl-device button[aria-checked="true"] { background: var(--fl-purple); color: #fff; }
.fl-device + .fl-btn { margin-left: 0 !important; }
@media (max-width: 767.98px) { .fl-device { display: none; } .fl-try-bar .fl-btn { margin-left: auto !important; } }

/* ---------- phone frame (desktop visitors trying the mobile app) ---------- */
.fx.is-phone { max-width: none; background: transparent; box-shadow: none; border-radius: 0; overflow: visible; display: flex; justify-content: center; padding: 8px 0 24px; }
.fx-phone { position: relative; width: 380px; height: 760px; padding: 12px; border-radius: 56px; background: #0b0b0d; box-shadow: 0 0 0 2px #2a2b30, 0 50px 90px -30px rgb(18 13 36 / .55), inset 0 0 0 1px rgba(255,255,255,.06); }
.fx-phone::before { content: ""; position: absolute; z-index: 90; top: 22px; left: 50%; width: 110px; height: 32px; margin-left: -55px; border-radius: 20px; background: #000; }
.fx-phone .fx-app { height: 100%; border-radius: 44px; overflow: hidden; }
.fx-statusbar { flex: 0 0 34px; display: flex; align-items: center; justify-content: space-between; padding: 6px 26px 0; font-size: 14px; font-weight: 600; color: var(--text); }
.fx-statusbar span:last-child { display: inline-flex; gap: 5px; font-size: 12px; }

/* ---------- mobile shell (Flow < 768px) ---------- */
.fx-app.is-mobile { padding: 8px 8px 0; gap: 8px; height: 100%; }
.fx.is-native .fx-app.is-mobile { height: 680px; border-radius: 18px; }
.fx-app.is-mobile .fx-top { flex-basis: 56px; padding: 0 12px; }
.fx-app.is-mobile .fx-search { display: none; }
.fx-app.is-mobile .fx-round { margin-left: auto; }
.fx-app.is-mobile .fx-round + .fx-round { margin-left: 0; }
.fx-mmain { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px calc(4.5rem + 8px); display: flex; flex-direction: column; gap: 10px; scrollbar-width: none; }
.fx-mmain::-webkit-scrollbar { display: none; }
.fx-bottombar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around; align-items: stretch; padding: 0 6px 6px; border-radius: 24px 24px 0 0; border-bottom: 0; }
.fx-bottombar button { flex: 1; height: 56px; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted) !important; border-radius: 14px; }
.fx-bottombar button i { font-size: 18px; }
.fx-bottombar button span { font-size: 10px; font-weight: 500; letter-spacing: .02em; }
.fx-bottombar button.on { color: var(--accent) !important; }
.fx-mtoggle { display: flex; justify-content: center; padding-top: 4px; }
.fx-mtoolbar { display: flex; align-items: center; gap: 8px; }
.fx-mtoolbar h3 { font-size: 18px; font-weight: 700; margin-right: auto !important; }
.fx-mtoolbar .fx-primary { width: 36px; padding: 0; }
.fx-mgroup { font-size: 10px; line-height: 16px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 8px 4px 0; }
.fx-mrow { padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); cursor: pointer; transition: background .15s; outline: none; }
.fx-mrow:active, .fx-mrow:hover { background: var(--row-hover); }
.fx-mrow:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.fx-mrow.is-flash { animation: fx-flash 1.6s ease; }
.fx-mrow-top { display: flex; align-items: center; gap: 8px; }
.fx-mrow-top b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; margin-right: auto; }
.fx-mrow .fx-c-cap { margin-top: 2px; }
.fx-mrow-act { display: flex; align-items: center; gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.fx-mrow-act span { flex: 1; }
.fx-app.is-mobile .fx-mini { width: 36px; height: 36px; }

/* bottom sheets (peek, sort) */
.fx-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 85%; overflow-y: auto; border-radius: 24px 24px 0 0; padding: 12px 18px 22px; animation: fx-sheet .28s cubic-bezier(.2,.6,.2,1); scrollbar-width: none; }
.fx[data-theme="dark"] .fx-sheet { background: rgba(33,35,40,.97); }
.fx[data-theme="light"] .fx-sheet { background: rgba(255,255,255,.98); }
@keyframes fx-sheet { from { transform: translateY(40px); opacity: 0; } }
.fx-handle { display: block; width: 36px; height: 4px; border-radius: 4px; margin: 0 auto 12px; background: var(--faint); opacity: .5; }
.fx-sheet h3 { font-size: 18px; }
.fx-radio { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 46px; padding: 0 4px; border: 0; border-bottom: 1px solid var(--border); background: transparent; font-size: 15px; text-align: left; }
.fx-radio i { color: var(--accent); }
.fx-sheet .fx-peek-h { flex-wrap: wrap; padding: 0 0 12px; gap: 12px; }
.fx-sheet .fx-peek-metrics { margin-left: 0; width: 100%; order: 3; gap: 16px; }
.fx-sheet .fx-peek-act { margin-left: auto; }
.fx-sheet .fx-steps { padding: 10px 0; margin: 0 -2px; }
.fx-sheet .fx-steps button { flex: 0 0 auto; }
.fx-sheet .fx-facts { border: 0; padding: 12px 0; border-bottom: 1px solid var(--border); }
.fx-sheet .fx-peek-main { padding-top: 12px; }
.fx-sheet .fx-ptabs { width: 100%; }
.fx-sheet .fx-timeline { border: 0; padding: 12px 2px 0; }

@media (max-width: 1180px) {
    .fx-side { flex-basis: 4rem; }
    .fx-side > button { justify-content: center; padding: 0; gap: 0; }
    .fx-side > button span { display: none; }
    .fx-side > button i { font-size: 16px; }
    .fx-side small { display: none; }
    .fx-peek-body { grid-template-columns: 13rem minmax(0, 1fr); }
    .fx-timeline { display: none; }
}
@media (max-width: 760px) {
    .fl-try { padding: 56px 12px 64px; }
    .fx.is-native { border-radius: 18px; }
}

/* =====================================================
   ORDER x FLOW: the handshake (CSS-only toggle)
   ===================================================== */
.fl-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.fl-duo > input { position: absolute; opacity: 0; pointer-events: none; }
.fl-duo-switch { display: flex; width: max-content; margin: 0 auto 40px; padding: 4px; background: var(--fl-surface); border: 1px solid var(--fl-line); border-radius: 999px; box-shadow: var(--fl-shadow); }
.fl-duo-switch label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--fl-ink-2); cursor: pointer; transition: background .2s, color .2s; }
.fl-duo-switch label i { font-size: 13px; }
#fl-m1:checked ~ .fl-duo-switch label[for="fl-m1"],
#fl-m2:checked ~ .fl-duo-switch label[for="fl-m2"] { background: var(--fl-purple); color: #fff; }
.fl-duo > input:focus-visible ~ .fl-duo-switch { outline: 2px solid var(--fl-purple); outline-offset: 3px; }

/* puzzle pieces: Order's tab fits Flow's notch. In "Bara Flow" Order
   shrinks to a dot and dissolves, Flow glides to the centre and its
   notch fills in. Widths animate, so the centring is a real slide. */
.fl-duo { --piece: 340px; --tab: 34px; }
.fl-duo-stage { display: flex; justify-content: center; align-items: center; min-height: 260px; }
.fl-piece {
    position: relative; flex: 0 0 var(--piece); width: var(--piece);
    transition: flex-basis .7s cubic-bezier(.7,0,.2,1), width .7s cubic-bezier(.7,0,.2,1), opacity .45s ease, transform .7s cubic-bezier(.7,0,.2,1), filter .5s ease, margin .7s cubic-bezier(.7,0,.2,1);
}
.fl-piece-in {
    position: relative; z-index: 1; background: var(--fl-surface); border: 1px solid var(--fl-line); border-radius: 20px; padding: 22px;
    box-shadow: var(--fl-shadow); width: var(--piece); transition: border-radius .6s ease, border-color .4s, box-shadow .4s;
}
/* Order: the tab on its right edge */
.fl-piece--order .fl-piece-in::after {
    content: ""; position: absolute; top: 50%; right: calc(var(--tab) / -2 - 1px); width: var(--tab); height: var(--tab); margin-top: calc(var(--tab) / -2);
    border-radius: 50%; background: var(--fl-surface); border: 1px solid var(--fl-line); border-left-color: transparent; border-bottom-color: transparent; transform: rotate(45deg); z-index: 2;
}
/* Flow: the notch on its left edge (filled in when standing alone) */
.fl-piece--flow .fl-piece-in::before {
    content: ""; position: absolute; top: 50%; left: calc(var(--tab) / -2 - 1px); width: var(--tab); height: var(--tab); margin-top: calc(var(--tab) / -2);
    border-radius: 50%; background: var(--fl-bg); border: 1px solid var(--fl-line); border-left-color: transparent; border-bottom-color: transparent; transform: rotate(45deg);
    transition: transform .5s cubic-bezier(.3,1.6,.5,1) .35s, opacity .3s .35s;
}
.fl-piece--order { z-index: 2; }
.fl-piece--order .fl-piece-in { padding-right: 46px; }
.fl-piece--flow .fl-piece-in { padding-left: 46px; transition: border-radius .6s ease, border-color .4s, box-shadow .4s, padding .6s ease; }
#fl-m2:checked ~ .fl-duo-stage .fl-piece--flow .fl-piece-in { padding-left: 22px; }
.fl-piece--flow { margin-left: -2px; z-index: 1; }
.fl-piece--flow .fl-piece-in { border-color: #DCD2FF; }
.fl-joint {
    position: relative; z-index: 3; flex: 0 0 0; width: 0; display: grid; place-items: center;
    transition: opacity .3s, transform .5s cubic-bezier(.3,1.6,.5,1);
}
.fl-joint i { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--fl-purple); color: #fff; font-size: 22px; box-shadow: 0 0 0 6px var(--fl-bg), 0 12px 24px -8px rgb(45 20 140 / .55); flex-shrink: 0; }

/* together: pieces snap in from apart */
#fl-m1:checked ~ .fl-duo-stage .fl-piece--order { animation: fl-snap-l .8s cubic-bezier(.3,1.4,.5,1) both; }
#fl-m1:checked ~ .fl-duo-stage .fl-piece--flow { animation: fl-snap-r .8s cubic-bezier(.3,1.4,.5,1) both; }
#fl-m1:checked ~ .fl-duo-stage .fl-joint { animation: fl-joint .6s .55s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes fl-snap-l { from { transform: translateX(-46px); } }
@keyframes fl-snap-r { from { transform: translateX(46px); } }
@keyframes fl-joint { from { transform: scale(0) rotate(-30deg); } 60% { transform: scale(1.15) rotate(6deg); } }

/* solo: Order morphs away, Flow takes the centre */
#fl-m2:checked ~ .fl-duo-stage .fl-piece--order { flex-basis: 0; width: 0; opacity: 0; transform: scale(.2); filter: blur(8px); }
#fl-m2:checked ~ .fl-duo-stage .fl-piece--order .fl-piece-in { border-radius: 50%; }
#fl-m2:checked ~ .fl-duo-stage .fl-joint { opacity: 0; transform: scale(0); }
#fl-m2:checked ~ .fl-duo-stage .fl-piece--flow { margin-left: 0; }
#fl-m2:checked ~ .fl-duo-stage .fl-piece--flow .fl-piece-in { border-color: var(--fl-purple); box-shadow: 0 0 0 5px var(--fl-purple-soft), var(--fl-shadow); }
#fl-m2:checked ~ .fl-duo-stage .fl-piece--flow .fl-piece-in::before { transform: rotate(45deg) scale(0); opacity: 0; }

.fl-duo-caption { max-width: 640px; margin: 34px auto 0; text-align: center; min-height: 92px; }
.fl-duo-cap p { font-size: 15.5px; color: var(--fl-ink-2); margin-top: 12px; }
.fl-duo-cap--solo, #fl-m2:checked ~ .fl-duo-caption .fl-duo-cap--together { display: none; }
#fl-m2:checked ~ .fl-duo-caption .fl-duo-cap--solo { display: block; animation: fl-in .45s cubic-bezier(.2,.7,.2,1); }
#fl-m1:checked ~ .fl-duo-caption .fl-duo-cap--together { animation: fl-in .45s cubic-bezier(.2,.7,.2,1); }
.fl-duo-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.fl-duo-chips li { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--fl-ink-2); background: var(--fl-surface); border: 1px solid var(--fl-line); padding: 6px 13px; border-radius: 999px; white-space: nowrap; }
.fl-duo-chips li i { color: var(--fl-purple); font-size: 11px; }
.fl-app-card-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.fl-app-card-h > i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; flex-shrink: 0; }
.fl-piece--order .fl-app-card-h > i { background: #FFF4D6; color: #B07A00; }
.fl-piece--flow .fl-app-card-h > i { background: var(--fl-purple-soft); color: var(--fl-purple); }
.fl-app-card-h b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.fl-app-card-h small { display: block; font-size: 13px; color: var(--fl-mute); }
.fl-app-line { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--fl-bg); font-size: 13.5px; margin-top: 6px; }
.fl-app-line span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-app-line em { font-style: normal; color: var(--fl-mute); white-space: nowrap; }

/* the customer's journey: strictly left to right. The dot fades in at
   the start, glides to the end, fades out and starts over; each step
   lights up while the dot passes it. One 9s clock drives it all. */
.fl-journey { max-width: 1000px; margin: 56px auto 0; }
.fl-journey-track { position: relative; height: 6px; border-radius: 6px; margin: 0 6%; background: linear-gradient(90deg, var(--fl-purple) 0 33.3%, #F2C14E 33.3% 66.6%, var(--fl-purple) 66.6% 100%); transition: background .4s; }
#fl-m2:checked ~ .fl-journey .fl-journey-track { background: linear-gradient(90deg, var(--fl-purple) 0 33.3%, #D6D2E3 33.3% 66.6%, var(--fl-purple) 66.6% 100%); }
.fl-journey-dot { position: absolute; top: 50%; left: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; border: 4px solid var(--fl-purple); box-shadow: 0 4px 10px rgb(45 20 140 / .35); animation: fl-travel 9s linear infinite; }
@keyframes fl-travel {
    0%   { left: 0; opacity: 0; }
    4%   { opacity: 1; }
    33%  { border-color: var(--fl-purple); }
    36%  { border-color: #E0A800; }
    64%  { border-color: #E0A800; }
    67%  { border-color: var(--fl-purple); }
    94%  { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}
.fl-journey-steps { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr); align-items: start; margin-top: 22px; text-align: center; }
.fl-step { padding: 16px 14px 18px; border-radius: 16px; border: 1px solid transparent; transition: background .3s, border-color .3s; animation: 9s linear infinite; }
.fl-step--1 { animation-name: fl-j1; } .fl-step--2 { animation-name: fl-j2; } .fl-step--3 { animation-name: fl-j3; }
@keyframes fl-j1 { 0%, 3% { background: transparent; } 6%, 30% { background: var(--fl-surface); border-color: var(--fl-line); box-shadow: var(--fl-shadow); } 34%, 100% { background: transparent; border-color: transparent; box-shadow: none; } }
@keyframes fl-j2 { 0%, 33% { background: transparent; } 36%, 63% { background: var(--fl-surface); border-color: var(--fl-line); box-shadow: var(--fl-shadow); } 67%, 100% { background: transparent; border-color: transparent; box-shadow: none; } }
@keyframes fl-j3 { 0%, 66% { background: transparent; } 69%, 94% { background: var(--fl-surface); border-color: var(--fl-line); box-shadow: var(--fl-shadow); } 100% { background: transparent; border-color: transparent; box-shadow: none; } }
.fl-step-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--fl-purple-soft); color: var(--fl-purple); font-size: 13px; font-weight: 800; margin-right: 6px; vertical-align: middle; }
.fl-step--2 .fl-step-n { background: #FFF4D6; color: #9A6B00; }
#fl-m2:checked ~ .fl-journey .fl-step--2 .fl-step-n { background: #F1F0F5; color: var(--fl-mute); }
.fl-step .fl-tag { vertical-align: middle; }
.fl-step b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; margin-top: 10px; }
.fl-step small { display: block; font-size: 13.5px; color: var(--fl-mute); margin-top: 2px; }
.fl-step-arrow { align-self: center; justify-self: center; margin-top: -14px; color: var(--fl-line-2); font-size: 16px; }
.fl-step-loop { grid-column: 5; justify-self: center; margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--fl-purple); background: var(--fl-purple-soft); padding: 4px 11px; border-radius: 999px; }
.fl-step-loop i { font-size: 11px; }
.fl-tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; padding: 2px 9px; border-radius: 999px; }
.fl-tag--flow { color: var(--fl-purple); background: var(--fl-purple-soft); }
.fl-tag--order { color: #9A6B00; background: #FFF4D6; }
.fl-tag--other { color: var(--fl-mute); background: #F1F0F5; border: 1px dashed var(--fl-line-2); }
.fl-solo, #fl-m2:checked ~ .fl-journey .fl-together { display: none; }
#fl-m2:checked ~ .fl-journey .fl-solo { display: inline-block; }

/* =====================================================
   TOUR: CSS-only tabs (radio inputs)
   ===================================================== */
.fl-tour { position: relative; }
.fl-tour > input { position: absolute; opacity: 0; pointer-events: none; }
.fl-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fl-tabs label { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--fl-line); background: var(--fl-surface); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.fl-tabs label:hover { border-color: var(--fl-purple-mid); transform: translateY(-1px); }
.fl-tabs label > i { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--fl-purple-soft); color: var(--fl-purple); font-size: 15px; transition: background .15s, color .15s; }
.fl-tabs label b { display: block; font-size: 16px; font-weight: 700; color: var(--fl-ink); }
.fl-tabs label small { display: block; font-size: 13px; color: var(--fl-mute); margin-top: 1px; line-height: 1.35; }
#fl-t1:checked ~ .fl-tabs label[for="fl-t1"],
#fl-t2:checked ~ .fl-tabs label[for="fl-t2"],
#fl-t3:checked ~ .fl-tabs label[for="fl-t3"],
#fl-t4:checked ~ .fl-tabs label[for="fl-t4"],
#fl-t5:checked ~ .fl-tabs label[for="fl-t5"],
#fl-t6:checked ~ .fl-tabs label[for="fl-t6"],
#fl-t7:checked ~ .fl-tabs label[for="fl-t7"],
#fl-t8:checked ~ .fl-tabs label[for="fl-t8"] { border-color: var(--fl-purple); box-shadow: 0 0 0 3px var(--fl-purple-soft); }
#fl-t1:checked ~ .fl-tabs label[for="fl-t1"] > i,
#fl-t2:checked ~ .fl-tabs label[for="fl-t2"] > i,
#fl-t3:checked ~ .fl-tabs label[for="fl-t3"] > i,
#fl-t4:checked ~ .fl-tabs label[for="fl-t4"] > i,
#fl-t5:checked ~ .fl-tabs label[for="fl-t5"] > i,
#fl-t6:checked ~ .fl-tabs label[for="fl-t6"] > i,
#fl-t7:checked ~ .fl-tabs label[for="fl-t7"] > i,
#fl-t8:checked ~ .fl-tabs label[for="fl-t8"] > i { background: var(--fl-purple); color: #fff; }
.fl-tour > input:focus-visible ~ .fl-tabs { outline: 2px solid var(--fl-purple); outline-offset: 4px; border-radius: 14px; }

.fl-panels { margin-top: 16px; }
.fl-panel { display: none; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 48px; align-items: center; background: var(--fl-surface); border: 1px solid var(--fl-line); border-radius: 16px; padding: 40px; box-shadow: var(--fl-shadow); }
#fl-t1:checked ~ .fl-panels .fl-p1,
#fl-t2:checked ~ .fl-panels .fl-p2,
#fl-t3:checked ~ .fl-panels .fl-p3,
#fl-t4:checked ~ .fl-panels .fl-p4,
#fl-t5:checked ~ .fl-panels .fl-p5,
#fl-t6:checked ~ .fl-panels .fl-p6,
#fl-t7:checked ~ .fl-panels .fl-p7,
#fl-t8:checked ~ .fl-panels .fl-p8 { display: grid; animation: fl-in .35s cubic-bezier(.2,.7,.2,1); }
.fl-panel-copy h3 { font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; margin-bottom: 12px; }
.fl-panel-copy p { font-size: 16.5px; line-height: 1.65; color: var(--fl-ink-2); }
.fl-mock { background: var(--fl-bg); border: 1px solid var(--fl-line); border-radius: 14px; padding: 14px; display: grid; gap: 8px; }

.fl-item { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--fl-line); border-radius: 11px; padding: 10px 12px; animation: fl-in .45s cubic-bezier(.2,.7,.2,1) both; }
.fl-item:nth-child(2) { animation-delay: .08s; } .fl-item:nth-child(3) { animation-delay: .16s; }
.fl-item b { display: block; font-size: 14px; font-weight: 700; line-height: 1.25; }
.fl-item small { display: block; font-size: 12.5px; color: var(--fl-mute); }
.fl-item--suggest { border-color: #D9CFFF; box-shadow: 0 0 0 3px #F4F0FF; }
.fl-item--dim { opacity: .7; }
.fl-link { font-size: 12.5px; font-weight: 600; white-space: nowrap; padding: 4px 10px; border-radius: 999px; border: 1px dashed #CFC6F5; color: var(--fl-purple); }
.fl-link i { margin-right: 4px; font-size: 11px; }
.fl-link.on { border-style: solid; border-color: transparent; background: var(--fl-purple-soft); }
.fl-link.ghost { color: var(--fl-mute); border-color: var(--fl-line); }

.fl-timeline { padding: 18px 20px; gap: 0; }
.fl-timeline > div { position: relative; padding: 0 0 16px 26px; font-size: 14px; color: var(--fl-ink-2); animation: fl-in .45s cubic-bezier(.2,.7,.2,1) both; }
.fl-timeline > div:nth-child(2) { animation-delay: .08s; } .fl-timeline > div:nth-child(3) { animation-delay: .16s; } .fl-timeline > div:nth-child(4) { animation-delay: .24s; padding-bottom: 0; }
.fl-timeline > div::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: -2px; width: 1.5px; background: var(--fl-line-2); }
.fl-timeline > div:last-child::before { display: none; }
.fl-timeline b { color: var(--fl-ink); font-weight: 700; margin-right: 6px; }
.fl-timeline small { display: block; font-size: 12px; color: var(--fl-mute); margin-top: 1px; }
.fl-tl-dot { position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--fl-purple); }

.fl-goal { background: #fff; border: 1px solid var(--fl-line); border-radius: 11px; padding: 13px 14px; }
.fl-goal > div { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 9px; }
.fl-goal b { font-weight: 700; }
.fl-goal span { color: var(--fl-mute); }
.fl-goal > i { display: block; height: 8px; border-radius: 8px; background: #E2DFEA; position: relative; overflow: hidden; }
.fl-goal > i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 8px; background: var(--fl-purple); animation: fl-bar .9s cubic-bezier(.2,.7,.2,1) .15s both; }
@keyframes fl-bar { from { width: 0; } }

/* =====================================================
   DETAILS, CHANGELOG, CTA
   ===================================================== */


/* tour mock pieces: number tiles and the editable phase ladder */
.fl-kpis { display: flex; gap: 8px; }
.fl-kpis span { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--fl-line); border-radius: 11px; padding: 10px 12px; }
.fl-kpis small { display: block; font-size: 11.5px; color: var(--fl-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-kpis b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.fl-phase { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--fl-line); border-radius: 11px; padding: 10px 14px; font-size: 14px; }
.fl-phase span { font-weight: 600; }
.fl-phase b { font-size: 13px; color: var(--fl-purple); background: var(--fl-purple-soft); padding: 2px 9px; border-radius: 999px; }
.fl-phase--add { justify-content: center; gap: 8px; border-style: dashed; color: var(--fl-mute); font-weight: 600; background: transparent; }
.fl-phase--add i { font-size: 11px; }
.fl-panel-copy .fl-textlink { margin-top: 10px; display: inline-flex; }

/* =====================================================
   CHANGELOG: a log, not cards
   ===================================================== */
.fl-head--row p:not(.fl-kicker) { font-size: 17px; color: var(--fl-ink-2); margin-top: 10px !important; }
.fl-cl { list-style: none; margin: 0; padding: 0; background: var(--fl-bg); border: 1px solid var(--fl-line); border-radius: 18px; overflow: hidden; }
.fl-cl li + li { border-top: 1px solid var(--fl-line); }
.fl-cl-empty { padding: 28px 24px; font-size: 15px; color: var(--fl-mute); display: flex; align-items: center; gap: 10px; }
.fl-cl-empty i { color: var(--fl-purple); }
.fl-cl-item { display: grid; grid-template-columns: 110px 150px minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 18px 24px; }
.fl-cl time { font-size: 13.5px; font-weight: 600; color: var(--fl-mute); font-variant-numeric: tabular-nums; }
.fl-cl-mod { display: inline-flex; align-items: center; gap: 7px; width: max-content; font-size: 12.5px; font-weight: 700; color: var(--fl-purple); background: var(--fl-purple-soft); padding: 3px 10px; border-radius: 999px; }
.fl-cl-mod i { font-size: 10.5px; }
.fl-cl-text b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.015em; }
.fl-cl-text span { display: block; font-size: 14.5px; line-height: 1.55; color: var(--fl-ink-2); margin-top: 3px; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1040px) {
    .fl-wrap { padding-left: 20px; padding-right: 20px; }
    .fl-hero { grid-template-columns: minmax(0, 1fr); gap: 56px; padding-top: 120px; padding-bottom: 72px; }
    .fl-hero--solo .fl-checks { grid-template-columns: repeat(2, auto); }
    .fl-sec { padding: 64px 0; }
    .fl-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fl-panel { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px; }
    .fl-cl-item { grid-template-columns: 96px minmax(0, 1fr); }
    .fl-cl-mod { display: none; }
    .fl-duo { --piece: 290px; --tab: 28px; }
}
@media (max-width: 860px) {
}
@media (max-width: 640px) {
    .fl-cl-item { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px 18px; }
    .fl-journey-steps { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .fl-step-arrow { transform: rotate(90deg); margin: 0; }
    .fl-step-loop { grid-column: 1; }
    .fl-journey-track { display: none; }
    .fl-duo { --piece: 150px; --tab: 22px; }
    .fl-piece-in { padding: 12px; border-radius: 14px; }
    .fl-piece--order .fl-piece-in { padding-right: 26px; }
    .fl-piece--flow .fl-piece-in { padding-left: 26px; }
    .fl-app-line em { display: none; }
    .fl-app-card-h small { display: none; }
    .fl-app-card-h b { font-size: 14px; }
    .fl-app-card-h > i { width: 32px; height: 32px; font-size: 13px; }
    .fl-joint i { width: 42px; height: 42px; font-size: 16px; }
    .fl-h1 { font-size: 38px !important; }
    .fl-sub { font-size: 16.5px; }
    .fl-hero--solo .fl-checks { grid-template-columns: minmax(0, 1fr); justify-items: start; width: max-content; margin-left: auto; margin-right: auto; }
    .fl-hero--solo .fl-actions { flex-direction: column; align-items: center; }
    .fl-actions .fl-btn { flex: 1 1 auto; }
    .fl-tabs { grid-template-columns: minmax(0, 1fr); }
    .fl-item { grid-template-columns: 32px minmax(0, 1fr); }
    .fl-item .fl-link, .fl-item .fl-chip { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
    .fl *, .fl *::before, .fl *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition: none !important; }
    .fl-bills { display: none; }
}
