/* Cerebrum Factory tab (factory.js). Phone first: one column, 44px+ touch targets, logs scroll inside their own box (never the page). */
.fx{--fx-ink:#e6eef8;--fx-dim:#8b9cb3;--fx-line:rgba(148,163,184,.18);--fx-card:#0b111b;--fx-soft:#111a28;--fx-go:#10b981;--fx-stop:#f43f5e;--fx-you:#fbbf24;--fx-gpu:#a78bfa;--fx-acc:#f59e0b;
  display:flex;flex-direction:column;gap:12px;color:var(--fx-ink);max-width:1100px;min-width:0}
.fx *{box-sizing:border-box}
.fx-head{display:flex;flex-direction:column;gap:4px}
.fx-h{margin:0;font:600 20px/1.3 var(--font-display,inherit);color:#f1f5f9}
.fx-h2{margin:8px 0 4px;font:600 16px/1.3 var(--font-display,inherit);color:#f1f5f9}
.fx-sub,.fx-counts,.fx-gen,.fx-leases,.fx-file{margin:0;font-size:13px;line-height:1.45;color:var(--fx-dim)}
.fx-err{margin:0;font-size:13px;color:#fb7185}
.fx-empty{margin:0;font-size:14px;color:var(--fx-dim)}
.fx-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:10px}
@media (min-width:1000px){.fx-list{grid-template-columns:1fr 1fr;align-items:start}}
.fx-card{position:relative;display:flex;flex-direction:column;gap:7px;min-width:0;padding:14px 14px 14px 18px;border:1px solid var(--fx-line);border-radius:16px;background:var(--fx-card);box-shadow:0 4px 18px rgba(0,0,0,.35);overflow:hidden}
.fx-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--fx-acc)}
.fx-card.is-done::before{background:var(--fx-go)}.fx-card.is-scrapped::before{background:#64748b}
.fx-top{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:12.5px;color:var(--fx-dim)}
.fx-state{padding:3px 9px;border-radius:999px;background:var(--fx-soft);font-weight:700;color:var(--fx-ink)}
.fx-state.is-you{background:rgba(245,158,11,.18);color:#fbbf24}.fx-state.is-stop{background:rgba(244,63,94,.18);color:#fb7185}.fx-state.is-running{background:rgba(16,185,129,.18);color:#34d399}
.fx-state.is-done{background:rgba(16,185,129,.16);color:#34d399}
.fx-id{font-family:ui-monospace,Consolas,monospace}
.fx-title{margin:0;font:600 17px/1.3 inherit;overflow-wrap:anywhere;color:#f1f5f9}
.fx-pb,.fx-count{margin:0;font-size:13px;color:var(--fx-dim)}
.fx-bar{height:10px;border-radius:999px;background:var(--fx-soft);overflow:hidden}
.fx-fill{display:block;height:100%;background:linear-gradient(90deg,var(--fx-acc),var(--fx-go));transition:width .4s}
.fx-wait{margin:0;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.fx-wait.is-you{color:var(--fx-you);font-weight:600}.fx-wait.is-stop{color:#fb7185;font-weight:600}.fx-wait.is-gpu{color:var(--fx-gpu)}
.fx-acts{display:flex;flex-wrap:wrap;gap:8px}
.fx-btn,.fx-more{min-height:44px;padding:0 16px;border-radius:12px;border:1px solid var(--fx-line);background:#111a28;color:var(--fx-ink);font:600 14px/1 inherit;cursor:pointer}
.fx-btn.is-go{background:var(--fx-go);border-color:var(--fx-go);color:#04150f}
.fx-more{align-self:flex-start;background:var(--fx-soft)}
.fx-btn:focus-visible,.fx-more:focus-visible,.fx-pb-card summary:focus-visible{outline:3px solid #38bdf8;outline-offset:2px}
.fx-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.fx-step{padding:8px 10px;border-radius:12px;background:var(--fx-soft);display:flex;flex-direction:column;gap:5px;min-width:0}
.fx-step.is-you{background:rgba(245,158,11,.14)}.fx-step.is-failed{background:rgba(244,63,94,.14)}.fx-step.is-running{background:rgba(16,185,129,.14)}
.fx-step-head{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.fx-dot{width:1.2em;text-align:center}
.fx-step-title{font-weight:600;flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.fx-step-state{font-size:12.5px;color:var(--fx-dim)}
.fx-step-why,.fx-step-gpu{margin:0;font-size:12.5px;color:var(--fx-dim);overflow-wrap:anywhere}
.fx-log{margin:0;max-height:320px;overflow:auto;padding:10px;border-radius:10px;background:#06090d;border:1px solid var(--fx-line);color:#cbd5e1;font:12px/1.45 ui-monospace,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.fx-pbs{display:flex;flex-direction:column;gap:8px}
.fx-pb-card{border:1px solid var(--fx-line);border-radius:14px;background:var(--fx-card);padding:0 14px}
.fx-pb-card summary{min-height:48px;display:flex;align-items:center;font-weight:600;cursor:pointer}
.fx-say{margin:0 0 6px;font-size:13.5px}
.fx-pb-steps{margin:0 0 8px;padding-left:22px;font-size:13.5px;line-height:1.6}
.fx-pb-steps .is-gate{color:var(--fx-you);font-weight:600;list-style:"◆  "}
.fx-file{margin-bottom:12px}
