/* 3DNA FactoryBuilder — /en/industrial/factory-builder/ (premium dark interface around the 3D engine) */
body.fbpage{ background: #070809; }
.fb{ --fb-bg: #070809; --fb-panel: #0f1013; --fb-card: #15161a; --fb-line: rgba(255,255,255,.09); --fb-text: #eceef1; --fb-muted: #8b9098; --fb-accent: #22c55e;
  position: relative; display: grid; grid-template-rows: 60px minmax(0, 1fr); height: 100vh; height: 100dvh; background: var(--fb-bg); color: var(--fb-text); font-family: "Inter", system-ui, sans-serif; overflow: hidden; text-align: left; }
.fb button{ font: inherit; color: inherit; }
.fb__top{ display: flex; align-items: center; gap: 16px; padding: 0 16px; border-bottom: 1px solid var(--fb-line); background: #0b0c0e; min-width: 0; }
.fb__brand{ flex: none; color: #fff; text-decoration: none; font-size: 15px; letter-spacing: .01em; white-space: nowrap; }
.fb__brand b{ font-weight: 800; letter-spacing: .04em; margin-right: 4px; }
.fb__nav{ display: flex; gap: 4px; margin: 0 auto; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.05); overflow-x: auto; scrollbar-width: none; min-width: 0; }
.fb__nav::-webkit-scrollbar{ display: none; }
.fb .fb__nav button{ display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--fb-muted); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s; }
.fb .fb__nav button span{ display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid currentColor; font-size: 10px; }
.fb .fb__nav button:hover{ color: #fff; }
.fb .fb__nav button[aria-pressed="true"]{ background: #fff; color: #070b16; }
.fb__ctas{ display: flex; gap: 8px; flex: none; }
.fb-btn{ display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: #16171b; color: #e5e7eb; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.fb-btn:hover{ border-color: #fff; color: #fff; }
.fb-btn:disabled{ opacity: .5; cursor: default; }
.fb .fb-btn--main{ background: #22c55e; border-color: #22c55e; color: #04130a; }
.fb .fb-btn--main:hover{ background: #4ade80; border-color: #4ade80; color: #04130a; }
.fb .fb-btn--ghost{ background: transparent; }
.fb .fb-btn--go{ width: 100%; min-height: 46px; margin-top: 6px; background: #fff; border-color: #fff; color: #0b0c0e; font-size: 14px; }
.fb__body{ position: relative; display: grid; grid-template-columns: 0 minmax(0, 1fr) 0; min-height: 0; transition: grid-template-columns .3s ease; }
.fb.side-open .fb__body{ grid-template-columns: 390px minmax(0, 1fr) 0; }
.fb.detail-open .fb__body{ grid-template-columns: 0 minmax(0, 1fr) 360px; }
.fb.side-open.detail-open .fb__body{ grid-template-columns: 390px minmax(0, 1fr) 360px; }
.fb__side, .fb__detail{ min-width: 0; overflow-y: auto; overflow-x: hidden; background: var(--fb-panel); overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #2a2c31 transparent; }
.fb__side{ border-right: 1px solid var(--fb-line); padding: 20px 18px 40px; }
.fb__detail{ border-left: 1px solid var(--fb-line); padding: 18px 18px 40px; position: relative; }
.fb:not(.side-open) .fb__side{ padding: 0; border: 0; }
.fb:not(.detail-open) .fb__detail{ padding: 0; border: 0; }
.fb__sidex{ display: none; }
.fb__stage{ position: relative; min-width: 0; overflow: hidden; background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(92,98,110,.2), transparent 70%), linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 40px 40px, #070809; }
.fb__canvas{ position: absolute; inset: 0; }
.fb__canvas canvas{ display: block; width: 100%; height: 100%; }
.fb__hero{ position: absolute; left: 64px; top: 22px; z-index: 3; max-width: 560px; pointer-events: none; transition: opacity .5s ease, transform .5s ease; }
.fb__tag{ margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #7dd3fc; }
.fb__hero h1{ margin: 0; font: 700 clamp(26px, 3vw, 40px)/1.05 "Inter", system-ui, sans-serif; letter-spacing: -.02em; color: #fff; text-transform: none; }
.fb__head{ margin: 10px 0 0; font: italic 400 clamp(18px, 1.7vw, 24px)/1.25 "DM Serif Text", Georgia, serif; color: #e2ecff; }
.fb__sub{ margin: 8px 0 0; font-size: 14px; color: rgba(255,255,255,.72); }
.fb__hero.is-small{ opacity: .9; transform: scale(.82); transform-origin: left top; }
.fb__hero.is-small .fb__sub{ display: none; }
.fb__toggle{ position: absolute; left: 12px; top: 22px; z-index: 4; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(20,21,25,.9); cursor: pointer; }
.fb__toggle span::before{ content: "›"; font-size: 20px; line-height: 1; color: #fff; }
.fb.side-open .fb__toggle span::before{ content: "‹"; }
.fb__strip{ position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.fb__strip div{ padding: 8px 12px; border: 1px solid var(--fb-line); border-radius: 12px; background: rgba(17,18,21,.9); }
.fb__strip span{ display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--fb-muted); }
.fb__strip b{ font-size: 14px; color: #fff; }
.fb__prog{ position: absolute; left: 50%; top: 50%; z-index: 6; width: min(380px, calc(100% - 32px)); transform: translate(-50%, -50%); padding: 18px 20px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(12,13,16,.96); box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.fb__prog[hidden]{ display: none; }
.fb-prog__t{ margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.fb-prog__bar{ height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.fb-prog__bar i{ display: block; height: 100%; background: #22c55e; transition: width .25s ease; }
.fb__prog ol{ margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 12.5px; }
.fb__prog li{ position: relative; padding-left: 22px; color: var(--fb-muted); }
.fb__prog li::before{ content: ""; position: absolute; left: 2px; top: 3px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; }
.fb__prog li.is-run{ color: #fff; } .fb__prog li.is-run::before{ border-color: #22c55e; border-right-color: transparent; animation: fbspin .8s linear infinite; }
.fb__prog li.is-done{ color: #cfd3d8; } .fb__prog li.is-done::before{ background: #22c55e; border-color: #22c55e; }
.fb__prog li.is-fail{ color: #fca5a5; } .fb__prog li.is-fail::before{ background: #ef4444; border-color: #ef4444; }
@keyframes fbspin{ to{ transform: rotate(360deg); } }
.fb__noscript{ position: absolute; inset: auto 20px 80px; color: #fde68a; }
/* panel content */
.fb-h{ margin: 0 0 6px; font: 700 20px/1.2 "Inter", system-ui, sans-serif; color: #fff; text-transform: none; letter-spacing: -.01em; }
.fb-p{ margin: 0 0 14px; font-size: 13px; line-height: 1.55; color: #b9bec6; }
.fb-k{ margin: 18px 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fb-muted); }
.fb-form fieldset{ margin: 0 0 12px; padding: 0; border: 0; display: grid; gap: 12px; }
.fb-form legend{ margin-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #7dd3fc; }
.fb-f{ display: grid; gap: 5px; font-size: 12.5px; color: #cfd3d8; }
.fb-f small{ font-size: 11px; line-height: 1.45; color: var(--fb-muted); }
.fb-f input, .fb-f select, .fb-search{ width: 100%; height: 38px; padding: 0 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: #16171b; color: #fff; font: 14px "Inter", system-ui, sans-serif; }
.fb-f input:focus, .fb-f select:focus, .fb-search:focus{ outline: 2px solid #22c55e; outline-offset: 1px; }
.fb-f--inline{ grid-template-columns: auto 120px; align-items: center; }
.fb-row{ display: flex; gap: 8px; align-items: center; }
.fb-row > input{ flex: 1; min-width: 0; }
.fb-row > select{ flex: none; width: auto; }
.fb-row--btns{ flex-wrap: wrap; margin: 10px 0 0; }
.fb-adv{ margin: 4px 0 8px; border: 1px solid var(--fb-line); border-radius: 12px; padding: 0 12px; }
.fb-adv summary{ cursor: pointer; padding: 12px 0; font-size: 13px; font-weight: 600; color: #fff; }
.fb-adv[open]{ padding-bottom: 12px; }
.fb-err{ margin: 6px 0; padding: 10px 12px; border: 1px solid rgba(239,68,68,.35); border-radius: 10px; background: rgba(239,68,68,.08); color: #fca5a5; font-size: 12.5px; }
.fb-err[hidden]{ display: none; }
.fb-disc{ margin: 18px 0 0; padding: 12px; border-left: 2px solid #facc15; background: rgba(250,204,21,.05); font-size: 11.5px; line-height: 1.55; color: #d6c98f; }
.fb-note{ margin: 10px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--fb-muted); }
.fb-kpis{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fb-kpi{ padding: 10px 12px; border: 1px solid var(--fb-line); border-radius: 12px; background: var(--fb-card); min-width: 0; }
.fb-kpi span{ display: block; font-size: 11px; color: var(--fb-muted); }
.fb-kpi b{ display: block; margin-top: 3px; font-size: 17px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.fb-kpi small{ display: block; margin-top: 2px; font-size: 10.5px; color: var(--fb-muted); }
.fb-kpi.is-main{ grid-column: 1 / -1; background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(34,197,94,.02)); }
.fb-kpi.is-main b{ font-size: 26px; }
.fb .is-good{ color: #4ade80; } .fb .is-bad{ color: #f87171; }
.fb-list{ margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 12.5px; }
.fb-list li{ display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 8px; background: var(--fb-card); color: #cfd3d8; }
.fb-list li span{ color: var(--fb-muted); white-space: nowrap; }
.fb-list--btn li{ padding: 0; background: none; }
.fb-list--btn button{ display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: var(--fb-card); text-align: left; font-size: 12.5px; cursor: pointer; }
.fb-list--btn i, .fb-grp summary i, .fb-layers i, .fb-net i, .fb-d__dept i{ width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.fb-chip{ display: inline-block; padding: 1px 6px; border-radius: 6px; background: rgba(250,204,21,.16); color: #facc15; font-size: 10px; font-style: normal; font-weight: 700; text-transform: uppercase; }
.fb-checks{ margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; max-height: 260px; overflow-y: auto; }
.fb-checks li{ padding: 7px 10px; border-radius: 8px; font-size: 12px; line-height: 1.45; }
.fb-checks .is-error{ background: rgba(239,68,68,.08); color: #fca5a5; }
.fb-checks .is-warn{ background: rgba(250,204,21,.07); color: #fde68a; }
.fb-checks .is-note{ background: rgba(125,211,252,.06); color: #a5d8f3; }
.fb-log{ margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--fb-muted); }
.fb-log li{ display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--fb-line); }
.fb-log b{ color: #cfd3d8; font-weight: 600; font-variant-numeric: tabular-nums; }
.fb-seg{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 3px; border-radius: 12px; background: rgba(255,255,255,.05); }
.fb .fb-seg button{ height: 32px; border: 0; border-radius: 9px; background: none; color: var(--fb-muted); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.fb .fb-seg button[aria-pressed="true"]{ background: #fff; color: #070b16; }
.fb-layers{ margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.fb-layers label{ display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; font-size: 13px; cursor: pointer; }
.fb-layers label:hover{ background: rgba(255,255,255,.04); }
.fb-layers input{ accent-color: #22c55e; }
.fb-layers em{ margin-left: auto; font-style: normal; font-size: 11px; color: var(--fb-muted); }
.fb-search{ flex: 1; }
.fb-grp{ margin-top: 10px; }
.fb-grp summary{ display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 0; font-size: 12.5px; font-weight: 600; color: #fff; }
.fb-grp summary em{ margin-left: auto; font-style: normal; font-size: 11px; color: var(--fb-muted); }
.fb-grp ul{ margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.fb-grp button{ display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; width: 100%; padding: 6px 8px; border: 0; border-radius: 8px; background: none; text-align: left; font-size: 12.5px; cursor: pointer; }
.fb-grp button:hover{ background: rgba(255,255,255,.05); }
.fb-grp code, .fb-d__id code, .fb-links code, .fb-spec code{ font: 600 11px ui-monospace, "SFMono-Regular", Menlo, monospace; color: #7dd3fc; }
.fb-grp b{ font-weight: 600; color: #cfd3d8; font-variant-numeric: tabular-nums; }
.fb-bars{ margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.fb-bars li{ display: grid; grid-template-columns: 110px minmax(0, 1fr) 76px; gap: 8px; align-items: center; font-size: 12px; color: #cfd3d8; }
.fb-bars i{ height: 8px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.fb-bars i b{ display: block; height: 100%; border-radius: 4px; transition: width .6s ease; }
.fb-bars em{ font-style: normal; text-align: right; color: #fff; font-variant-numeric: tabular-nums; }
.fb-assume{ display: grid; gap: 12px; }
.fb-tag{ display: inline-block; padding: 0 5px; border-radius: 5px; font-size: 9.5px; font-style: normal; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
.fb-tag--v{ background: rgba(34,197,94,.15); color: #4ade80; }
.fb-tag--b{ background: rgba(59,130,246,.18); color: #93c5fd; }
.fb-tag--a{ background: rgba(250,204,21,.14); color: #facc15; }
.fb-f a, .fb-note a{ color: #7dd3fc; }
.fb-dev{ margin-top: 18px; padding: 14px; border: 1px dashed rgba(125,211,252,.35); border-radius: 12px; }
.fb-dev .fb-k{ margin-top: 0; color: #7dd3fc; }
.fb-dev ul{ margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 6px; }
.fb-dev li{ display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 12.5px; }
.fb-dev li span{ text-align: right; color: #fff; font-weight: 600; }
.fb-dev li small{ grid-column: 1 / -1; color: var(--fb-muted); font-size: 11px; }
.fb-scroll{ margin-top: 12px; overflow-x: auto; border: 1px solid var(--fb-line); border-radius: 12px; }
.fb-t{ width: 100%; border-collapse: collapse; font-size: 12px; }
.fb-t th, .fb-t td{ padding: 8px; border-bottom: 1px solid var(--fb-line); text-align: right; white-space: nowrap; }
.fb-t th:first-child, .fb-t td:first-child{ text-align: left; color: var(--fb-muted); }
.fb-t th{ font-size: 11px; color: #fff; vertical-align: top; }
.fb-t th small{ display: block; font-weight: 400; color: var(--fb-muted); }
.fb-t th span{ display: flex; gap: 4px; justify-content: flex-end; margin-top: 4px; }
.fb .fb-t th button{ height: 22px; padding: 0 6px; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; background: #16171b; font-size: 10.5px; cursor: pointer; }
/* detail drawer */
.fb-x{ position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: #1d1f24; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.fb-d__dept{ display: flex; align-items: center; gap: 8px; margin: 2px 44px 6px 0; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--fb-muted); }
.fb-d__name{ margin: 0; font: 700 19px/1.25 "Inter", system-ui, sans-serif; color: #fff; text-transform: none; padding-right: 30px; }
.fb-d__id{ margin: 6px 0 10px; }
.fb-d__fn{ margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: #b9bec6; }
.fb-spec{ width: 100%; border-collapse: collapse; font-size: 12.5px; }
.fb-spec th{ padding: 7px 8px 7px 0; text-align: left; font-weight: 400; color: var(--fb-muted); vertical-align: top; width: 44%; border-bottom: 1px solid var(--fb-line); }
.fb-spec td{ padding: 7px 0; color: #fff; border-bottom: 1px solid var(--fb-line); }
.fb-spec td button{ padding: 0; border: 0; background: none; cursor: pointer; }
.fb-net{ display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; font-size: 12px; font-weight: 600; color: #cfd3d8; }
.fb-links{ margin: 0; padding: 0; list-style: none; }
.fb-links button{ display: block; width: 100%; padding: 6px 8px; border: 0; border-radius: 8px; background: none; text-align: left; font-size: 12.5px; color: #e5e7eb; cursor: pointer; }
.fb-links button:hover{ background: rgba(255,255,255,.05); }
.fb-links small{ display: block; color: var(--fb-muted); font-size: 11px; }
/* pricing modal */
.fb-modal{ position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.fb-modal[hidden]{ display: none; }
.fb-modal__bg{ position: absolute; inset: 0; background: rgba(0,0,0,.65); }
.fb-modal__box{ position: relative; width: min(640px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 28px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: #0f1013; color: #eceef1; }
.fb-modal__box h2{ margin: 0 40px 8px 0; font: 700 22px/1.2 "Inter", system-ui, sans-serif; color: #fff; text-transform: none; }
.fb-modal__box > p{ margin: 0 0 14px; font-size: 13.5px; line-height: 1.55; color: #b9bec6; }
.fb-pkgs{ display: grid; gap: 8px; margin-bottom: 12px; }
.fb-pkg{ display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; cursor: pointer; }
.fb-pkg:has(input:checked){ border-color: #22c55e; background: rgba(34,197,94,.06); }
.fb-pkg input{ accent-color: #22c55e; }
.fb-pkg b{ color: #fff; } .fb-pkg span{ color: #fff; font-weight: 600; }
.fb-pkg small{ grid-column: 2 / -1; color: var(--fb-muted); font-size: 12px; }
.fb-small{ font-size: 11.5px; color: var(--fb-muted); }
.fb.is-busy .fb-btn--go{ opacity: .6; }
/* compact desktop */
@media (max-width: 1440px) and (min-width: 901px){ .fb__ctas .fb-btn--ghost{ display: none; } }
@media (max-width: 1280px) and (min-width: 901px){
  .fb.side-open .fb__body{ grid-template-columns: 350px minmax(0, 1fr) 0; }
  .fb.side-open.detail-open .fb__body{ grid-template-columns: 350px minmax(0, 1fr) 330px; }
  .fb.detail-open .fb__body{ grid-template-columns: 0 minmax(0, 1fr) 330px; }
}
/* phones and tablets: top bar on two rows, panels as bottom sheets over the 3D view */
@media (max-width: 900px){
  html:has(body.fbpage), body.fbpage{ height: 100%; overflow: hidden; overscroll-behavior: none; }
  body.fbpage .site-footer, body.fbpage footer{ display: none; }
  body.fbpage .wa-float{ display: none; }
  .fb{ grid-template-rows: auto minmax(0, 1fr); }
  .fb__top{ flex-wrap: wrap; gap: 8px; padding: 8px 10px; }
  .fb__brand{ font-size: 14px; }
  .fb__ctas{ margin-left: auto; }
  .fb__ctas .fb-btn--ghost{ display: none; }
  .fb .fb__ctas .fb-btn--main{ min-height: 32px; padding: 0 10px; font-size: 12px; }
  .fb__nav{ order: 3; width: 100%; margin: 0; }
  .fb .fb__nav button{ height: 32px; padding: 0 10px; font-size: 12px; }
  .fb__body, .fb.side-open .fb__body, .fb.detail-open .fb__body, .fb.side-open.detail-open .fb__body{ grid-template-columns: minmax(0, 1fr); }
  .fb__stage{ grid-row: 1; grid-column: 1; }
  .fb__side, .fb__detail{ position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; height: 58%; padding: 18px 14px calc(30px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--fb-line); border-radius: 18px 18px 0 0; transform: translateY(105%); transition: transform .3s ease; box-shadow: 0 -20px 40px rgba(0,0,0,.5); }
  .fb.side-open .fb__side{ transform: none; padding: 18px 14px calc(30px + env(safe-area-inset-bottom)); }
  .fb.detail-open .fb__detail{ transform: none; padding: 18px 14px calc(30px + env(safe-area-inset-bottom)); z-index: 9; }
  .fb__sidex{ display: block; }
  .fb__hero{ left: 60px; top: 14px; right: 12px; }
  .fb__hero h1{ font-size: 22px; }
  .fb__head{ font-size: 16px; }
  .fb__hero.is-small{ transform: scale(.78); }
  .fb__hero.is-small .fb__head{ display: none; }
  .fb__toggle{ top: 14px; }
  .fb__strip{ top: auto; bottom: calc(10px + env(safe-area-inset-bottom)); left: 10px; right: 10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; pointer-events: auto; }
  .fb__strip div{ flex: none; }
  .fb-bars li{ grid-template-columns: 96px minmax(0, 1fr) 70px; }
}
.fb__stage, .fb__hero, .fb__prog, .fb__side, .fb__detail{ text-align: left; }
/* phones: one-row header; with a sheet open the 3D view shrinks above it so the plant stays in sight */
@media (max-width: 900px){
  .fb__top{ column-gap: 8px; row-gap: 6px; }
  .fb__brand{ font-size: 13px; }
  .fb__ctas{ min-width: 0; }
  .fb .fb__ctas .fb-btn--main{ min-height: 30px; padding: 0 9px; font-size: 11.5px; white-space: nowrap; }
  .fb.side-open .fb__body, .fb.detail-open .fb__body{ grid-template-rows: minmax(0, 44fr) minmax(0, 56fr); }
  .fb.side-open .fb__hero, .fb.detail-open .fb__hero, .fb.side-open .fb__strip, .fb.detail-open .fb__strip{ display: none; }
  .fb__side, .fb__detail{ height: 56%; }
}
@media (max-width: 380px){ .fb__brand b{ display: none; } }
.fb-list li p{ margin: 0; min-width: 0; }
.fb-list li p b{ display: block; color: #fff; font-weight: 600; }
.fb-list li p small{ display: block; margin-top: 2px; font-size: 11.5px; color: var(--fb-muted); }
.fb-list li > span{ text-align: right; }
.fb .fb-btn--wide{ width: 100%; min-height: 44px; margin-top: 14px; }
.fb .fb-share svg{ width: 16px; height: 16px; }
@media (max-width: 900px){ .fb .fb-share{ min-height: 30px; padding: 0 10px; font-size: 12px; } }
.fb .fb-share{ width: 36px; min-height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.fb .fb-share:hover{ background: rgba(255,255,255,.1); }
.fb .fb-share svg{ width: 18px; height: 18px; }
/* ---- Energy & Process Intelligence ---- */
.fb-views{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.fb .fb-views button{ min-height: 36px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: var(--fb-card); color: #cfd3d8; font-size: 12.5px; font-weight: 600; text-align: left; cursor: pointer; }
.fb .fb-views button:hover{ border-color: rgba(255,255,255,.4); color: #fff; }
.fb .fb-views button[aria-pressed="true"]{ background: #fff; border-color: #fff; color: #070b16; }
.fb-sankey-box{ padding: 8px; border: 1px solid var(--fb-line); border-radius: 12px; background: #0b0c0f; }
.fb-sankey{ display: block; width: 100%; height: auto; }
.fb-sankey .sk-l{ transition: stroke-opacity .2s; }
.fb-sankey .sk-l:hover{ stroke-opacity: .85; }
.fb-sankey rect{ fill: #e5e7eb; }
.fb-sankey text{ font: 8.5px "Inter", system-ui, sans-serif; fill: #cfd3d8; pointer-events: none; }
.fb-bars--stack i{ display: flex; }
.fb-bars--stack i b{ border-radius: 0; }
.fb-dot{ display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: 0; }
.fb-measures{ margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 4px; }
.fb-measures label{ display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--fb-card); cursor: pointer; font-size: 12.5px; color: #e5e7eb; }
.fb-measures input{ margin-top: 2px; accent-color: #22c55e; }
.fb-measures small{ display: block; margin-top: 2px; font-size: 11px; color: var(--fb-muted); }
.fb-kpi span .fb-tag, .fb-spec th .fb-tag{ margin-left: 4px; font-size: 8.5px; }
.fb-tag--c{ background: rgba(125,211,252,.16); color: #7dd3fc; }
.fb__hero.is-small{ opacity: 0; pointer-events: none; }

/* facility layout picker (linear, L, T, U, H, grid, ring, radial) */
.fb-lay__grid{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.fb-lay__grid label{ position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 4px 5px; border: 1px solid var(--fb-line); border-radius: 10px; background: rgba(255,255,255,.03); cursor: pointer; font-size: 11px; font-weight: 600; color: var(--fb-muted, #9aa3b2); }
.fb-lay__grid label:hover{ border-color: #3b82f6; color: #fff; }
.fb-lay__grid input{ position: absolute; opacity: 0; pointer-events: none; }
.fb-lay__grid label:has(input:checked){ border-color: #3b82f6; background: rgba(59,130,246,.14); color: #fff; }
.fb-lay__grid label:has(input:focus-visible){ outline: 2px solid #3b82f6; outline-offset: 2px; }
.fb-lay__grid svg{ width: 34px; height: 28px; }
.fb-lay__grid svg .o{ fill: none; stroke: #64748b; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.fb-lay__grid svg .i{ fill: none; stroke: #3b82f6; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
