/* Smart MLM Engine: animations, live pipeline and module builder */

/* ================= Engine in motion ================= */
.lv { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--border-subtle); border-radius: 28px; background: linear-gradient(160deg, rgba(230,238,248,.07), rgba(230,238,248,.02)); }
body.light-mode .lv { background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(255,255,255,.65)); }
.lv-controls { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.lv-controls button { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border: 1px solid var(--border-subtle); border-radius: 999px; background: transparent; color: var(--text-secondary); font: 500 .85rem var(--font-body); cursor: pointer; transition: all .3s var(--ease); }
.lv-controls button:hover { color: var(--text-primary); border-color: var(--sky); }
.lv-controls button[aria-selected="true"] { color: #04101f; border-color: transparent; background: linear-gradient(120deg, var(--sky), var(--emerald)); }
.lv-controls .lv-play { margin-left: auto; width: 40px; height: 40px; padding: 0; justify-content: center; }
.lv-track { position: relative; display: flex; align-items: flex-start; margin: 0 0 1.6rem; padding: 0; list-style: none; }
.lv-node { flex: 0 0 auto; width: 128px; text-align: center; }
.lv-ic { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto .7rem; border: 1px solid var(--border-subtle); border-radius: 20px; background: var(--bg-body); color: var(--text-tertiary); font-size: 1.3rem; transition: all .45s var(--ease); }
.lv-node strong { display: block; font-size: .95rem; color: var(--text-secondary); transition: color .4s; }
.lv-node small { display: block; margin-top: .15rem; font-size: .75rem; color: var(--text-tertiary); }
.lv-node.is-active .lv-ic { color: #04101f; border-color: transparent; background: linear-gradient(135deg, var(--sky), var(--emerald)); transform: scale(1.12); box-shadow: 0 0 0 8px rgba(41,171,226,.14), 0 18px 40px -14px var(--sky); }
.lv-node.is-active strong { color: var(--text-primary); }
.lv-node.is-done .lv-ic { color: var(--emerald); border-color: rgba(18,183,106,.55); }
.lv-link { position: relative; flex: 1 1 0; height: 2px; margin-top: 31px; background: var(--border-subtle); overflow: hidden; border-radius: 2px; }
.lv-link i { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--sky), var(--emerald)); transition: transform .6s var(--ease); }
.lv-link.is-done i { transform: scaleX(1); }
.lv-packet { position: absolute; top: 25px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(255,164,27,.2), 0 0 18px var(--amber); transition: transform .6s var(--ease); transform: translateX(var(--x, 57px)); pointer-events: none; z-index: 2; }
.lv-log { border: 1px solid var(--border-subtle); border-radius: 18px; overflow: hidden; background: rgba(5,11,24,.55); }
body.light-mode .lv-log { background: rgba(11,20,38,.05); }
.lv-log-head { display: flex; align-items: center; gap: .8rem; padding: .6rem 1rem; border-bottom: 1px solid var(--border-subtle); font: 500 .75rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-tertiary); }
.lv-log ul { margin: 0; padding: .6rem 1rem 1rem; list-style: none; min-height: 168px; font: 400 .85rem var(--font-mono); }
.lv-log li { display: grid; grid-template-columns: 4.6rem 1fr auto; gap: .8rem; padding: .32rem 0; color: var(--text-secondary); animation: lv-in .45s var(--ease) both; }
.lv-log li time { color: var(--text-tertiary); }
.lv-log li em { font-style: normal; font-weight: 600; color: var(--emerald); }
.lv-log li em.out { color: var(--coral); }
@keyframes lv-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ================= Module builder ================= */
.bd { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.2rem, 3vw, 2.4rem); align-items: start; }
.bd-presets { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: 1rem; }
.bd-presets span { margin-right: .3rem; font: 500 .72rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-tertiary); }
.bd-presets button { padding: .4rem .9rem; border: 1px solid var(--border-subtle); border-radius: 999px; background: transparent; color: var(--text-secondary); font: 500 .82rem var(--font-body); cursor: pointer; transition: all .25s; }
.bd-presets button:hover { border-color: var(--emerald); color: var(--text-primary); }
.bd-list { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.bd-mod { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .65rem; width: 100%; padding: .8rem .9rem; border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--bg-card); color: var(--text-secondary); font: 500 .88rem var(--font-body); text-align: left; cursor: pointer; transition: all .35s var(--ease); }
.bd-mod > i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(41,171,226,.12); color: var(--sky); transition: all .35s; }
.bd-mod em { font: 600 .65rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--amber); font-style: normal; }
.bd-mod b { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--border-subtle); transition: background .3s; }
.bd-mod b::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease); }
.bd-mod:hover { border-color: rgba(41,171,226,.5); transform: translateY(-2px); }
.bd-mod[aria-pressed="true"] { color: var(--text-primary); border-color: rgba(18,183,106,.5); background: linear-gradient(160deg, rgba(18,183,106,.1), rgba(41,171,226,.05)); }
.bd-mod[aria-pressed="true"] > i { background: linear-gradient(135deg, var(--sky), var(--emerald)); color: #04101f; }
.bd-mod[aria-pressed="true"] b { background: var(--emerald); }
.bd-mod[aria-pressed="true"] b::after { transform: translateX(14px); }
.bd-mod[data-core] { cursor: default; }

.bd-right { position: sticky; top: 140px; }
.bd-stage { position: relative; display: grid; place-items: center; min-height: 420px; padding: 1.6rem; border: 1px solid var(--border-subtle); border-radius: 26px; overflow: hidden; background: radial-gradient(circle at 50% 0%, rgba(41,171,226,.12), transparent 65%), var(--bg-card); }
.bd-glow { position: absolute; inset: auto 10% -30% 10%; height: 60%; border-radius: 50%; background: radial-gradient(circle, rgba(18,183,106,.28), transparent 70%); filter: blur(30px); opacity: var(--g, .4); transition: opacity .6s; }
.bd-stack { position: relative; display: flex; flex-direction: column-reverse; gap: .45rem; width: min(320px, 100%); margin: 0; padding: 0; list-style: none; }
.bd-block { display: flex; align-items: center; gap: .7rem; height: 0; padding: 0 1rem; border: 1px solid transparent; border-radius: 14px; background: linear-gradient(120deg, rgba(41,171,226,.22), rgba(18,183,106,.2)); color: var(--text-primary); font: 600 .88rem var(--font-body); overflow: hidden; opacity: 0; transform: translateY(-26px) scale(.94); transition: height .5s var(--ease), opacity .4s, transform .55s var(--ease), border-color .4s; }
.bd-block i { color: var(--sky); width: 1.1rem; text-align: center; }
.bd-block:nth-child(3n+2) i { color: var(--emerald); }
.bd-block:nth-child(3n) i { color: var(--amber); }
.bd-block.is-on { height: 40px; opacity: 1; transform: none; border-color: var(--border-subtle); }
.bd-block.is-flash { animation: bd-flash .9s var(--ease); }
@keyframes bd-flash { 0% { box-shadow: 0 0 0 0 rgba(41,171,226,.7); } 100% { box-shadow: 0 0 0 16px rgba(41,171,226,0); } }
.bd-meter { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; margin-top: 1rem; padding: .9rem 1.1rem; border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--bg-card); }
.bd-meter small { display: block; font: 500 .68rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-tertiary); }
.bd-meter b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.bd-bar { height: 8px; border-radius: 8px; background: var(--border-subtle); overflow: hidden; }
.bd-bar i { display: block; height: 100%; width: 10%; border-radius: 8px; background: linear-gradient(90deg, var(--sky), var(--emerald), var(--amber)); transition: width .6s var(--ease); }
.bd-detail { min-height: 3em; margin: .9rem .2rem 0; font-size: .92rem; }

/* ================= Reveal on scroll ================= */
.eng-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--rd, 0s); }
.eng-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .bd { grid-template-columns: 1fr; }
  .bd-right { position: static; }
  .bd-stage { min-height: 360px; }
}
@media (max-width: 720px) {
  .lv-track { flex-direction: column; align-items: stretch; }
  .lv-node { width: 100%; display: grid; grid-template-columns: 64px 1fr; text-align: left; align-items: center; column-gap: 1rem; margin-bottom: .6rem; }
  .lv-ic { grid-row: span 2; margin: 0; }
  .lv-link, .lv-packet { display: none; }
  .bd-list { grid-template-columns: 1fr; }
  .lv-log li { grid-template-columns: 1fr auto; }
  .lv-log li time { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .eng-reveal { opacity: 1; transform: none; transition: none; }
  .lv-node.is-active .lv-ic, .bd-block, .lv-log li, .bd-block.is-flash { transition: none; animation: none; }
}

/* ================= Tagline ================= */
.eng-tagline { margin: -.2rem 0 1rem; font: 600 clamp(.95rem, 1.6vw, 1.1rem) var(--font-body); letter-spacing: .01em; background: linear-gradient(120deg, var(--sky), var(--emerald) 55%, var(--amber)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.eng-tagline-foot { display: block; margin: .25rem 0 .4rem; font-size: .9rem; color: var(--text-secondary); }

/* ================= Configurable workflow ================= */
.lv-nb { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: center; cursor: pointer; }
.lv-nb:focus-visible { outline: 2px solid var(--sky); outline-offset: 6px; border-radius: 16px; }
.lv-node .lv-ic { position: relative; z-index: 3; }
.lv-packet { z-index: 1; }
.lv-nb.is-sel .lv-ic { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(41,171,226,.18); }
.lv-nb.is-sel strong { color: var(--text-primary); }
.lv-nb small { min-height: 2.4em; }
.lv-cfg { margin: 0 0 1.2rem; padding: 1.2rem 1.3rem; border: 1px solid var(--border-subtle); border-radius: 20px; background: var(--bg-card); }
.lv-cfg-head { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1rem; }
.lv-cfg-head .eng-num { margin: 0; }
.lv-cfg-head strong { font-size: 1.05rem; }
.lv-cfg-body { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.6rem; }
.lv-group { display: grid; gap: .5rem; align-content: start; }
.lv-label { font: 500 .7rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-tertiary); }
.lv-opts { display: flex; flex-wrap: wrap; gap: .4rem; }
.lv-opt { padding: .42rem .85rem; border: 1px solid var(--border-subtle); border-radius: 999px; background: transparent; color: var(--text-secondary); font: 500 .83rem var(--font-body); cursor: pointer; transition: all .25s; }
.lv-opt:hover { border-color: var(--sky); color: var(--text-primary); }
.lv-opt[aria-checked="true"] { color: #04101f; border-color: transparent; background: linear-gradient(120deg, var(--sky), var(--emerald)); }
.lv-sw { display: flex; align-items: center; justify-content: space-between; gap: .8rem; width: 100%; padding: .6rem .8rem; border: 1px solid var(--border-subtle); border-radius: 12px; background: transparent; color: var(--text-secondary); font: 500 .85rem var(--font-body); cursor: pointer; transition: all .25s; }
.lv-sw i { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: var(--border-subtle); transition: background .3s; }
.lv-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease); }
.lv-sw[aria-checked="true"] { color: var(--text-primary); border-color: rgba(18,183,106,.5); }
.lv-sw[aria-checked="true"] i { background: var(--emerald); }
.lv-sw[aria-checked="true"] i::after { transform: translateX(14px); }
.lv-cfg-nav { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-top: .4rem; }
.lv-nav, .lv-reset { padding: .4rem .9rem; border: 1px solid var(--border-subtle); border-radius: 999px; background: transparent; color: var(--text-secondary); font: 500 .82rem var(--font-body); cursor: pointer; transition: all .25s; }
.lv-nav:hover:not(:disabled), .lv-reset:hover { border-color: var(--sky); color: var(--text-primary); }
.lv-nav:disabled { opacity: .35; cursor: default; }
.lv-bar { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.lv-run i { margin-right: .35rem; }
.lv-log ul { max-height: 340px; overflow-y: auto; }
.lv-result { margin-top: 1rem; padding: 1.2rem 1.3rem; border: 1px solid rgba(18,183,106,.4); border-radius: 20px; background: linear-gradient(160deg, rgba(18,183,106,.1), rgba(41,171,226,.05)); animation: lv-in .5s var(--ease) both; }
.lv-result[hidden] { display: none; }
.lv-result h3 { margin: 0 0 .9rem; font-size: 1rem; }
.lv-result p { margin: .9rem 0 0; font-size: .9rem; }
.lv-rgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .7rem; }
.lv-rgrid div { padding: .7rem .8rem; border-radius: 12px; background: var(--bg-card); }
.lv-rgrid small { display: block; font: 500 .64rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-tertiary); }
.lv-rgrid b { display: block; margin-top: .2rem; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.lv-rgrid .net b { color: var(--emerald); }
@media (max-width: 900px) { .lv-rgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) {
  .lv-cfg-body, .lv-rgrid { grid-template-columns: 1fr 1fr; }
  .lv-cfg-body { grid-template-columns: 1fr; }
  .lv-nb { display: grid; grid-template-columns: 64px 1fr; text-align: left; align-items: center; column-gap: 1rem; }
  .lv-nb .lv-ic { grid-row: span 2; margin: 0; }
  .lv-node { display: block; }
}

/* ===== simplified, modern config panel (overrides) ===== */
.lv { padding: clamp(1rem, 2.5vw, 1.8rem); }
.lv-cfg { margin: 0 0 1rem; padding: 0; border: 0; background: none; }
.lv-cfg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .9rem; margin-bottom: .9rem; }
.lv-cfg-head strong { font-size: 1.15rem; letter-spacing: -.01em; }
.lv-cfg-head span { font-size: .82rem; color: var(--text-tertiary); }
.lv-cfg-body { display: flex; flex-direction: column; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: 18px; background: rgba(230,238,248,.04); }
body.light-mode .lv-cfg-body { background: rgba(11,20,38,.04); }
.lv-group { gap: .45rem; }
.lv-label { font-size: .68rem; }
.lv-opt { padding: .38rem .8rem; border-color: transparent; background: rgba(230,238,248,.07); font-size: .82rem; }
body.light-mode .lv-opt { background: rgba(11,20,38,.06); }
.lv-opt[aria-checked="true"] { background: var(--text-primary); color: var(--bg-body); }
.lv-toggles { display: flex; flex-wrap: wrap; gap: .4rem; }
.lv-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .8rem .38rem .6rem; border: 1px solid transparent; border-radius: 999px; background: rgba(230,238,248,.07); color: var(--text-tertiary); font: 500 .82rem var(--font-body); cursor: pointer; transition: all .25s; }
body.light-mode .lv-chip { background: rgba(11,20,38,.06); }
.lv-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-tertiary); transition: all .25s; }
.lv-chip[aria-checked="true"] { color: var(--text-primary); }
.lv-chip[aria-checked="true"]::before { background: var(--emerald); box-shadow: 0 0 0 3px rgba(18,183,106,.25); }
.lv-chip:hover { color: var(--text-primary); }
.lv-bar { margin: 0 0 1rem; }
.lv-reset { border: 0; background: none; color: var(--text-tertiary); text-decoration: underline; text-underline-offset: 3px; }
.lv-nb small { max-width: 130px; margin-inline: auto; }
@media (max-width: 720px) { .lv-nb small { max-width: none; margin: 0; } }

/* ===== builder: lighter and modern (overrides) ===== */
.bd-presets button { border-color: transparent; background: rgba(230,238,248,.07); }
body.light-mode .bd-presets button { background: rgba(11,20,38,.06); }
.bd-presets button:hover { background: var(--text-primary); color: var(--bg-body); }
.bd-list { gap: .5rem; }
.bd-mod { padding: .65rem .8rem; border-color: transparent; border-radius: 14px; background: rgba(230,238,248,.05); }
body.light-mode .bd-mod { background: rgba(11,20,38,.05); }
.bd-mod:hover { transform: none; background: rgba(230,238,248,.09); }
.bd-mod[aria-pressed="true"] { border-color: transparent; background: rgba(18,183,106,.12); }
.bd-mod > i { background: transparent; }
.bd-stage { min-height: 0; padding: 1.4rem; border-radius: 22px; place-items: stretch; }
.bd-stack { width: 100%; gap: .4rem; }
.bd-block.is-on { height: 38px; border-color: transparent; background: linear-gradient(120deg, rgba(41,171,226,.2), rgba(18,183,106,.16)); }
.bd-stack::before { content: "Your engine"; order: 99; margin-top: .5rem; font: 500 .68rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-tertiary); }
.bd-meter { border-color: transparent; background: rgba(230,238,248,.05); }
body.light-mode .bd-meter { background: rgba(11,20,38,.05); }
.bd-right { top: 120px; }

/* ================= Product-configurator layout ================= */
/* fix: hidden blocks must not leave gaps in the stack */
.bd-stack { gap: 0; }
.bd-block { margin: 0; }
.bd-block.is-on { margin-top: .4rem; }

.lv { padding: 0; border: 0; background: none; }
.cf { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(1.4rem, 4vw, 3.2rem); align-items: start; margin-bottom: 3rem; }
.cf-tabs { display: flex; gap: .2rem; margin-bottom: 1.8rem; overflow-x: auto; border-bottom: 1px solid var(--border-subtle); scrollbar-width: none; }
.cf-tabs::-webkit-scrollbar { display: none; }
.cf-tab { position: relative; display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1rem; border: 0; background: none; color: var(--text-tertiary); font: 500 .92rem var(--font-body); white-space: nowrap; cursor: pointer; transition: color .25s; }
.cf-tab::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: -1px; height: 2px; border-radius: 2px; background: var(--text-primary); transform: scaleX(0); transition: transform .4s var(--ease); }
.cf-tab:hover { color: var(--text-primary); }
.cf-tab[aria-selected="true"] { color: var(--text-primary); }
.cf-tab[aria-selected="true"]::after { transform: scaleX(1); }
.cf-title { margin: 0 0 1.4rem; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.02em; animation: lv-in .45s var(--ease) both; }
.cf-group { margin-bottom: 1.6rem; animation: lv-in .5s var(--ease) both; }
.cf-label { display: block; margin-bottom: .6rem; font: 500 .72rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-tertiary); }
.cf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem; }
.cf-card { display: grid; gap: .25rem; align-content: start; padding: 1rem 1.1rem; border: 1.5px solid var(--border-subtle); border-radius: 16px; background: transparent; color: var(--text-primary); text-align: left; cursor: pointer; transition: border-color .25s, background .25s, transform .3s var(--ease); }
.cf-card b { font: 600 .95rem var(--font-body); }
.cf-card small { font-size: .78rem; line-height: 1.4; color: var(--text-tertiary); }
.cf-card:hover { border-color: var(--text-tertiary); }
.cf-card[aria-checked="true"] { border-color: var(--text-primary); background: rgba(230,238,248,.06); box-shadow: 0 0 0 1px var(--text-primary); }
body.light-mode .cf-card[aria-checked="true"] { background: rgba(11,20,38,.04); }
.cf-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border-subtle); }
.cf-row { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: .9rem .1rem; border: 0; border-bottom: 1px solid var(--border-subtle); background: none; color: var(--text-secondary); font: 500 .95rem var(--font-body); cursor: pointer; transition: color .25s; }
.cf-row i { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--border-subtle); transition: background .3s; }
.cf-row i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .35s var(--ease); }
.cf-row[aria-checked="true"] { color: var(--text-primary); }
.cf-row[aria-checked="true"] i { background: var(--emerald); }
.cf-row[aria-checked="true"] i::after { transform: translateX(18px); }
.cf-nextbtn { margin-top: .4rem; padding: .7rem 1.3rem; border: 0; border-radius: 999px; background: var(--text-primary); color: var(--bg-body); font: 600 .9rem var(--font-body); cursor: pointer; transition: transform .3s var(--ease), opacity .25s; }
.cf-nextbtn:hover { transform: translateX(3px); }
.cf-nextbtn i { margin-left: .4rem; }

.cf-side { position: sticky; top: 130px; }
.cf-preview { padding: 1.6rem; border-radius: 26px; background: linear-gradient(160deg, rgba(230,238,248,.09), rgba(230,238,248,.03)); border: 1px solid var(--border-subtle); }
body.light-mode .cf-preview { background: linear-gradient(160deg, #fff, rgba(255,255,255,.7)); }
.cf-k { display: block; font: 500 .72rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-tertiary); }
.cf-big { margin: .3rem 0 .2rem; font: 700 clamp(2.4rem, 5vw, 3.4rem) var(--font-head, var(--font-body)); letter-spacing: -.03em; font-variant-numeric: tabular-nums; background: linear-gradient(120deg, var(--sky), var(--emerald)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cf-sub { margin: 0 0 1.2rem; font-size: .9rem; }
.cf-spec { margin: 0 0 1.3rem; padding: 0; list-style: none; border-top: 1px solid var(--border-subtle); }
.cf-spec li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--border-subtle); font-size: .86rem; cursor: pointer; transition: background .2s; }
.cf-spec li span { color: var(--text-tertiary); }
.cf-spec li b { font-weight: 600; text-align: right; }
.cf-spec li:hover b { color: var(--sky); }
.cf-foot { display: flex; align-items: center; gap: 1rem; }
.cf-run { flex: 1; justify-content: center; }
.cf-reset { border: 0; background: none; color: var(--text-tertiary); font: 500 .82rem var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cf-flowhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; margin-bottom: 1.4rem; padding-top: 2rem; border-top: 1px solid var(--border-subtle); }
.cf-flowhead strong { font-size: 1.3rem; letter-spacing: -.01em; }
.cf-flowhead span { font-size: .88rem; color: var(--text-tertiary); }

@media (max-width: 900px) {
  .cf { grid-template-columns: 1fr; }
  .cf-side { position: static; order: -1; }
}

/* multi-select cards show a check */
.cf-card[role="checkbox"] { position: relative; padding-right: 2.4rem; }
.cf-card[role="checkbox"]::after { content: ""; position: absolute; top: .9rem; right: .9rem; width: 18px; height: 18px; border: 1.5px solid var(--border-subtle); border-radius: 6px; transition: all .25s; }
.cf-card[role="checkbox"][aria-checked="true"]::after { border-color: var(--emerald); background: var(--emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l3 3 5-6' fill='none' stroke='%23042' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
