@font-face{font-family:Inter;font-weight:400;src:url(fonts/inter-400.woff2) format('woff2')}
@font-face{font-family:Inter;font-weight:500;src:url(fonts/inter-500.woff2) format('woff2')}
@font-face{font-family:Inter;font-weight:600;src:url(fonts/inter-600.woff2) format('woff2')}
@font-face{font-family:Poppins;font-weight:600;src:url(fonts/poppins-600.woff2) format('woff2')}
@font-face{font-family:Poppins;font-weight:700;src:url(fonts/poppins-700.woff2) format('woff2')}
:root{--gold:#C9A24A;--gold-text:#7A5A1E;--gold-light:#E4C671;--navy:#16213A;--charcoal:#16181D;--ink:#2B2D31;--muted:#5E6168;--cream:#FAF7F0;--line:#E7E1D3;--white:#fff;
--ok:#2F7D4F;--okbg:#E5F3EA;--warn:#8A5A00;--warnbg:#FFF3D6;--bad:#B3261E;--badbg:#FBE7E5;--head:Poppins,"Segoe UI",system-ui,sans-serif;--body:Inter,"Segoe UI",system-ui,sans-serif}
*{box-sizing:border-box}html,body{margin:0}
body{font-family:var(--body);background:var(--cream);color:var(--ink);font-size:15px;line-height:1.5;padding-bottom:72px}
.num{font-variant-numeric:tabular-nums}
h1,h2,h3{font-family:var(--head);margin:0;color:var(--charcoal)}h2{font-size:18px;letter-spacing:-.01em}h3{font-size:15px}
a{color:var(--navy)}
.previewbar{background:#FFF3D6;color:#5C3E00;font-size:12px;text-align:center;padding:6px 10px;font-weight:600;position:sticky;top:0;z-index:30}
.hidden{display:none!important}
.pe-sticky{position:sticky;top:28px;z-index:8;background:var(--warnbg);color:#5C3E00;border-bottom:1px solid #E8D4A0;padding:8px 14px;font-size:12px;font-weight:600;text-align:center}
/* Auth — Budget App style */
.auth{min-height:calc(100vh - 28px);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 16px;background:var(--navy)}
.auth .box{background:#fff;border-radius:20px;padding:24px 20px;width:100%;max-width:420px;box-shadow:0 20px 50px rgba(0,0,0,.3)}
.auth .lg{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.auth .lg img{height:64px;width:auto;object-fit:contain}
.auth .lg b{font:700 20px var(--head);display:block;color:var(--charcoal)}.auth .lg small{color:var(--muted);font-size:13px;white-space:nowrap}
.auth h2{font-size:20px;margin:0 0 4px}
.auth .tag{color:var(--muted);font-size:14px;margin:4px 0 12px}
.auth label{display:block;font-size:13px;font-weight:600;margin:12px 0 4px}
.auth input{width:100%;font:16px var(--body);min-height:46px;border:1px solid #CFC8B8;border-radius:10px;padding:0 12px;background:#fff}
.auth .btn{width:100%;margin-top:16px}
.auth .msg{min-height:20px;font-size:13px;color:var(--bad);margin-top:10px;font-weight:600}
.auth .links{display:flex;justify-content:space-between;gap:10px;margin-top:14px;font-size:14px}.auth .links a{color:var(--navy);font-weight:600}
.auth .foot2{color:#C9CEDA;font-size:12px;text-align:center;margin-top:16px;max-width:420px}.auth .foot2 a{color:#fff;font-weight:600}
.side{display:none}
.top{position:sticky;top:28px;z-index:9;background:var(--navy);color:#fff;display:flex;align-items:center;gap:10px;padding:10px 14px}
.mlogo{width:38px;height:38px;object-fit:contain}
.proj{flex:1;min-width:0}.proj small{display:block;color:#C9CEDA;font-size:11px}.proj b{font-family:var(--head);font-size:14px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.toplinks{display:flex;align-items:center;gap:8px}
.ceo-badge{background:var(--gold);color:var(--charcoal);font:700 11px var(--head);padding:4px 10px;border-radius:999px;letter-spacing:.04em}
.out{border:1px solid rgba(255,255,255,.35);background:transparent;color:#fff;border-radius:10px;min-height:38px;padding:0 12px;font:600 13px var(--body);cursor:pointer}
#screen{padding:14px;max-width:1180px}
.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;margin-bottom:14px;box-shadow:0 6px 20px rgba(22,24,29,.05)}
.card .sec{font:700 12px var(--body);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:0 0 12px}
.hero{background:var(--navy);color:#fff;border:0}.hero h2{color:#fff;opacity:.9;font-size:14px;font-weight:600}.hero .big{font:700 22px var(--head);margin:6px 0 8px;color:#fff}
.hero p{margin:0;color:#C9CEDA;font-size:13px}
.btn{display:flex;align-items:center;justify-content:center;min-height:46px;border-radius:12px;font:600 15px var(--body);text-decoration:none;border:1.5px solid var(--navy);color:var(--navy);background:#fff;cursor:pointer;padding:0 16px;text-align:center}
.btn.gold{background:var(--gold);border-color:var(--gold);color:var(--charcoal)}.btn.navy{background:var(--navy);color:#fff;border-color:var(--navy)}.btn.ghost-l{background:none;border-color:rgba(255,255,255,.5);color:#fff}.btn.sm{min-height:40px;font-size:13px;padding:0 12px}
.modgrid{display:grid;grid-template-columns:1fr;gap:12px}
.mod{display:block;text-align:left;padding:16px;border-radius:16px;border:1px solid var(--line);background:#fff;cursor:pointer;text-decoration:none;color:var(--ink)}
.mod:hover{border-color:var(--gold);box-shadow:0 8px 24px rgba(22,24,29,.08)}
.mod .ic{width:40px;height:40px;border-radius:12px;background:#F1ECE0;display:flex;align-items:center;justify-content:center;font:700 16px var(--head);color:var(--gold-text);margin-bottom:10px}
.mod b{display:block;font-family:var(--head);font-size:16px;margin-bottom:4px}.mod span{font-size:13px;color:var(--muted)}
.projfields{display:grid;grid-template-columns:1fr;gap:10px;margin-bottom:4px}
label{display:block;font-size:13px;font-weight:600;margin:0 0 4px}
input,select{width:100%;font:16px var(--body);min-height:46px;border:1px solid #CFC8B8;border-radius:10px;padding:0 12px;background:#fff;color:var(--ink)}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.three{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}
.field{margin-bottom:12px}
.field .hint{font-size:11px;color:var(--muted);margin-top:4px;font-weight:400;line-height:1.35}
.ws{display:grid;grid-template-columns:1fr;gap:14px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.chip{font-size:13px;font-weight:700;padding:6px 12px;border-radius:14px;background:#EEF0F5;color:#3A4256;letter-spacing:.02em}
.chip.pass{background:#F1ECE0;color:var(--gold-text)}.chip.amber{background:var(--warnbg);color:var(--warn)}.chip.fail{background:var(--charcoal);color:var(--cream)}.chip.neutral{background:#EEF0F5;color:#3A4256}
.chip.code-edition{background:var(--charcoal);color:var(--cream);border:1px solid var(--gold)}
.checkrow{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:12px 0;border-top:1px solid var(--line);font-size:13px}
.checkrow:first-of-type{border-top:0}
.checkrow .lbl{font-weight:600}.checkrow .det{color:var(--muted);display:block;font-weight:400;font-size:12px;margin-top:3px}
.kv{display:grid;grid-template-columns:1fr auto;gap:8px 12px;font-size:13px;margin:10px 0}
.kv dt{color:var(--muted)}.kv dd{margin:0;font-weight:600;text-align:right;font-variant-numeric:tabular-nums}
.pebanner{background:var(--warnbg);color:#5C3E00;border-left:4px solid #D99A1E;border-radius:10px;padding:10px 12px;font-size:13px;margin:0 0 12px;font-weight:600}
.steps{font-size:12px;color:var(--muted);max-height:280px;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:8px 10px;background:#FBF9F4}
.steps table{width:100%;border-collapse:collapse}.steps td,.steps th{padding:4px 6px;border-bottom:1px solid var(--line);text-align:left;font-size:11px}
.steps td.r{text-align:right}
.tog{margin:10px 0}.tog summary{cursor:pointer;font-weight:600;font-size:13px;color:var(--navy)}
.barsch{width:100%;border-collapse:collapse;font-size:13px;margin-top:8px}.barsch th,.barsch td{padding:10px 6px;border-top:1px solid var(--line);text-align:left}.barsch th{color:var(--muted);font-size:12px}.barsch td.r{text-align:right}
.modebar{display:flex;background:#EFE9DC;border-radius:12px;padding:3px;margin-bottom:12px}
.modebar button{flex:1;border:0;background:none;min-height:42px;border-radius:10px;font:600 13px var(--body);color:var(--muted);cursor:pointer}
.modebar button.on{background:#fff;color:var(--charcoal);box-shadow:0 1px 3px rgba(0,0,0,.1)}
.backrow{display:flex;gap:10px;margin-bottom:12px;flex-wrap:wrap;align-items:center}
.foot{padding:14px 16px 24px;max-width:1180px;font-size:12px;color:var(--muted)}.foot .pe{color:#5C3E00}.foot .site{margin-top:10px;font-weight:600;color:var(--ink)}
.tabs{position:fixed;left:0;right:0;bottom:0;z-index:6;background:#fff;border-top:1px solid var(--line);display:flex}
.tabs a{flex:1;min-height:62px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:10px;color:var(--muted);text-decoration:none;font-weight:600;gap:2px;padding:4px}
.tabs a i{font-style:normal;font-size:16px}.tabs a.on{color:var(--navy)}.tabs a.on i{color:var(--gold-text)}
.note-box{font-size:12px;color:var(--muted);background:#F6F1E6;border-radius:10px;padding:10px 12px;margin-top:10px;line-height:1.4}
.empty{text-align:center;padding:28px 16px;color:var(--muted)}.empty b{display:block;color:var(--charcoal);margin-bottom:6px}
.toggle-row{display:flex;align-items:flex-start;gap:8px;font-size:13px;margin:8px 0;padding:10px;background:#F6F1E6;border-radius:10px}
.toggle-row input{width:auto;min-height:20px;margin-top:2px}
@media (min-width:900px){
  body{padding-bottom:0}
  .shell{display:grid;grid-template-columns:240px 1fr;min-height:100vh}
  .side{display:flex;flex-direction:column;background:var(--navy);color:#fff;padding:20px 16px;position:sticky;top:28px;height:calc(100vh - 28px)}
  .brand{display:flex;gap:10px;align-items:center;margin-bottom:24px}.brand img{width:48px;height:48px;object-fit:contain}.brand b{font-family:var(--head);display:block}.brand small{color:#C9CEDA;font-size:12px}
  #sidenav a{display:flex;gap:10px;align-items:center;color:#DCE1EC;text-decoration:none;padding:12px;border-radius:10px;font-weight:600;min-height:44px;font-size:13px}
  #sidenav a.on{background:rgba(255,255,255,.12);color:#fff}#sidenav i{font-style:normal;width:22px;color:var(--gold-light)}
  .sidecta{margin-top:auto}
  .tabs,.mlogo{display:none}.top{padding:14px 24px}#screen{padding:22px 24px}.foot{padding:8px 24px 24px}
  .pe-sticky{top:calc(28px + 66px);text-align:left;padding-left:24px}
  .modgrid{grid-template-columns:1fr 1fr}
  .ws{grid-template-columns:1.05fr 1fr}
  .projfields{grid-template-columns:1fr 1fr 1fr}
}

.exportbar{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.export-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0 6px}
.export-actions .btn{width:100%}
.exportbar .hint{font-size:11px;color:var(--muted);margin:0}
@media (max-width:520px){.export-actions{grid-template-columns:1fr}}

/* Schematic drawings */
.drawings{margin:12px 0 16px}
.draw-grid{display:grid;grid-template-columns:1fr;gap:10px}
@media(min-width:720px){.draw-grid{grid-template-columns:1fr 1fr}}
.draw-card{background:var(--cream);border:1px solid var(--line);border-radius:12px;padding:8px;overflow:hidden}
.draw-label{font:700 12px var(--head);color:var(--navy);margin:0 0 6px;letter-spacing:.02em}
.draw-card svg{display:block;width:100%;height:auto;border-radius:8px}

/* P–M interaction curve (RC Column) */
.pm-curve{margin:8px 0 14px;background:var(--cream);border:1px solid var(--line);border-radius:12px;padding:10px;overflow:hidden}
.pm-curve .pm-curve-svg,.pm-curve svg{display:block;width:100%;height:auto;border-radius:8px}
.pm-curve .hint{margin:0}

/* Plus / Pro plan gating */
.plan-badge{background:rgba(255,255,255,.14);color:#fff;font:700 11px var(--head);padding:4px 10px;border-radius:999px;letter-spacing:.04em;border:1px solid rgba(201,162,74,.55)}
.plan-badge[data-plan="plus"]{background:var(--gold);color:var(--charcoal);border-color:var(--gold)}
.lock-badge{display:inline-block;margin-left:6px;background:var(--gold);color:var(--charcoal);font:700 10px var(--head);padding:2px 7px;border-radius:999px;vertical-align:middle;letter-spacing:.03em}
.mod.locked{opacity:.72;cursor:pointer;border-style:dashed;background:#FBF9F4}
.mod.locked:hover{border-color:var(--gold)}
.mod.locked .ic{background:#EFE9DC;color:var(--muted)}
.modebar button.locked{opacity:.55;color:var(--muted);position:relative}
.modebar button.locked.on{opacity:.7}
/* Sidenav groups + nested sub-groups — stageA-nav-subgroups-1029a */
#sidenav{flex:1;overflow-y:auto;overflow-x:hidden;min-height:0;padding-right:2px;margin-bottom:12px}
#sidenav a{padding-left:12px}
#sidenav .nav-group{margin:10px 0 4px}
#sidenav .nav-group-h{display:flex;align-items:center;justify-content:space-between;width:100%;gap:8px;border:0;background:transparent;color:#9AA3B5;padding:6px 8px 4px;cursor:pointer;font:700 10px/1.2 var(--head);letter-spacing:.08em;text-transform:uppercase;min-height:32px}
#sidenav .nav-group-h:hover{color:#C9CEDA}
#sidenav .nav-group-label{flex:1;text-align:left}
#sidenav .nav-group-chev{font-size:11px;opacity:.85;color:#9AA3B5}
#sidenav .nav-group-items{display:flex;flex-direction:column;gap:2px;padding-left:6px;border-left:1px solid rgba(255,255,255,.12);margin-left:8px}
#sidenav .nav-group-items[hidden]{display:none}
#sidenav .nav-group-items > a{padding-left:10px;font-size:12.5px;min-height:40px}
/* Nested sub-groups — smaller/muted than section; extra indent; default expanded */
#sidenav .nav-sub{margin:4px 0 2px;padding-left:4px}
#sidenav .nav-sub-h{display:flex;align-items:center;justify-content:space-between;width:100%;gap:6px;border:0;background:transparent;color:#7A8499;padding:4px 6px 2px;cursor:pointer;font:600 9px/1.2 var(--head);letter-spacing:.06em;text-transform:uppercase;min-height:28px}
#sidenav .nav-sub-h:hover{color:#A8B0C0}
#sidenav .nav-sub-label{flex:1;text-align:left}
#sidenav .nav-sub-chev{font-size:10px;opacity:.8;color:#7A8499}
#sidenav .nav-sub-items{display:flex;flex-direction:column;gap:2px;padding-left:8px;border-left:1px solid rgba(255,255,255,.08);margin-left:6px}
#sidenav .nav-sub-items[hidden]{display:none}
#sidenav .nav-sub-items a{padding-left:10px;font-size:12.5px;min-height:38px}
/* Mobile tabs: same groups + sub-group labels, scrollable strip */
#tabs{overflow-x:auto;-webkit-overflow-scrolling:touch;gap:0}
#tabs a{flex:0 0 auto;min-width:64px;padding:4px 8px}
#tabs .nav-tab-group{display:flex;align-items:stretch;flex:0 0 auto}
#tabs .nav-tab-h{display:flex;align-items:center;padding:0 6px;font:700 9px/1 var(--head);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);white-space:nowrap;border-left:1px solid var(--line);margin-left:2px}
#tabs .nav-tab-sub{display:flex;align-items:stretch;flex:0 0 auto}
#tabs .nav-tab-sub-h{display:flex;align-items:center;padding:0 5px;font:600 8px/1 var(--head);letter-spacing:.05em;text-transform:uppercase;color:#8A93A5;white-space:nowrap;opacity:.9}

#sidenav a.locked,#tabs a.locked{opacity:.65}
#sidenav a .lock-badge,#tabs a .lock-badge{margin-left:4px;font-size:9px;padding:1px 6px}
.upgrade-card b{display:block;font-family:var(--head);font-size:16px;margin:0 0 8px;color:var(--charcoal)}
.upgrade-card p{margin:0 0 10px;color:var(--muted);font-size:14px;line-height:1.45}
.contact-line{font-size:13px;color:var(--ink);margin:10px 0 14px!important;line-height:1.5}
.contact-line a{font-weight:600}
.levels-grid{display:grid;grid-template-columns:1fr;gap:14px}
.levels-grid b{display:block;font-family:var(--head);margin-bottom:6px;color:var(--navy)}
.levels-grid ul{margin:0;padding-left:18px;color:var(--muted);font-size:13px;line-height:1.55}
.preview-plus{border-color:var(--gold);background:#FFFBF0}
@media(min-width:720px){.levels-grid{grid-template-columns:1fr 1fr}}

/* ===== Login FAQ + Suggestions (match Estimate, Oct 26) ===== */
.faq-link-wrap{text-align:center;margin:.6rem 0 0}
.faq-link{background:none;border:0;padding:0 .75rem;min-height:44px;font:inherit;font-size:15px;color:#1f3a5f;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.faq-link:hover{color:#0f2440}
.faq-link:focus-visible,.faq-btn:focus-visible,.faq-x:focus-visible{outline:2px solid #1f3a5f;outline-offset:2px}
.faq-link-foot{padding:0;color:#1f3a5f;font-size:inherit;min-height:44px;display:inline}
.faq-foot-links{margin-top:8px;line-height:1.8}
html.faq-lock,html.faq-lock body{overflow:hidden}
.faq-overlay{position:fixed;inset:0;z-index:1000;background:rgba(10,20,35,.55);display:flex;align-items:center;justify-content:center;padding:1rem}
.faq-overlay[hidden]{display:none}
.faq-dialog{background:#fff;color:#1b2430;width:100%;max-width:640px;max-height:80vh;border-radius:12px;display:flex;flex-direction:column;box-shadow:0 20px 50px rgba(0,0,0,.3);outline:none}
.faq-head{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.6rem .6rem .6rem 1.25rem;border-bottom:1px solid #e3e7ec;background:#fff;border-radius:12px 12px 0 0}
.faq-head h2{font-size:1.15rem;margin:0;font-family:var(--head),serif}
.faq-grab{display:none}
.faq-x{width:44px;height:44px;flex:0 0 44px;border:0;background:none;font-size:28px;line-height:1;border-radius:8px;cursor:pointer;color:#1b2430}
.faq-x:hover{background:#f0f2f5}
.faq-body{overflow-y:auto;padding:.25rem 1.25rem 1rem;overscroll-behavior:contain}
.faq-grp{font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;color:#5b6676;margin:1.1rem 0 .3rem}
.faq-item{border-bottom:1px solid #eceff3}
.faq-q{margin:0;font-size:inherit}
.faq-btn{display:flex;width:100%;align-items:center;justify-content:space-between;gap:.75rem;min-height:44px;padding:.65rem 0;background:none;border:0;text-align:left;font:inherit;font-weight:600;font-size:15.5px;color:#1b2430;cursor:pointer}
.faq-chev{width:20px;height:20px;flex:0 0 20px;transition:transform .2s}
.faq-btn[aria-expanded="true"] .faq-chev{transform:rotate(180deg)}
.faq-a p{margin:0 0 .9rem;font-size:15.5px;line-height:1.5;font-weight:400;color:#323c48}
.faq-foot{padding:.8rem 1.25rem;border-top:1px solid #e3e7ec;background:#f7f8fa;border-radius:0 0 12px 12px;font-size:14.5px}
.faq-foot p{margin:0}
.faq-foot a{color:#1f3a5f;word-break:break-word}
@media (max-width:640px){
  .faq-overlay{padding:0;align-items:flex-end}
  .faq-dialog{max-width:none;height:100%;max-height:100%;border-radius:0;transition:transform .2s}
  .faq-head{border-radius:0;flex-wrap:wrap;padding-top:.9rem}
  .faq-grab{display:block;position:absolute;top:6px;left:50%;width:40px;height:4px;margin-left:-20px;border-radius:2px;background:#cfd5dc}
  .faq-foot{border-radius:0;padding-bottom:calc(.8rem + env(safe-area-inset-bottom))}
}
.faq-link-wrap.sug-link-wrap{margin-top:0}
.sug-dialog{max-width:520px}
.sug-body{padding-top:.75rem}
.sug-intro{margin:0 0 .9rem;font-size:15px;line-height:1.5;color:#323c48}
.sug-field{margin:0 0 .8rem}
.sug-field label{display:block;font-weight:600;font-size:14.5px;margin:0 0 .3rem;color:#1b2430}
.sug-field .lbl-hint,.sug-req{font-weight:400;color:#5b6676;font-size:13px}
.sug-field input,.sug-field textarea{width:100%;box-sizing:border-box;font:inherit;font-size:16px;padding:.6rem .7rem;border:1px solid #c9d0d8;border-radius:8px;background:#fff;color:#1b2430}
.sug-field textarea{resize:vertical;min-height:120px;line-height:1.45}
.sug-field input:focus,.sug-field textarea:focus{outline:2px solid #1f3a5f;outline-offset:1px;border-color:#1f3a5f}
.sug-count{margin:.25rem 0 0;text-align:right;font-size:12.5px;color:#5b6676}
.sug-count.over{color:#b42318}
.sug-hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
.sug-dpa{font-size:13px;line-height:1.45;color:#5b6676;margin:.2rem 0 .9rem}
.sug-err{margin:0 0 .8rem;font-size:13px;color:var(--bad);font-weight:600}
.sug-done{text-align:center;padding:1.5rem .5rem 1rem;outline:none}
.sug-check{width:56px;height:56px;margin:0 auto .8rem;border-radius:50%;background:#e7f4ec;color:#1e7a46;font-size:30px;line-height:56px;font-weight:700}
.sug-done h3{margin:0 0 .4rem;font-size:1.2rem}
.sug-done p{margin:0 0 1.2rem;font-size:15.5px;line-height:1.5;color:#323c48}
.sug-close2{background:#f0f2f5;color:#1b2430;border:1px solid #d5dbe2;min-height:44px;width:100%}

/* Frame 2D / 3D */
.frame-canvas-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px;background:#FAF7F0}
.frame-canvas{display:block;max-width:100%;height:auto}
.frame-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.tbl-wrap{overflow:auto;margin-bottom:8px}
.frame-tbl{width:100%;border-collapse:collapse;font-size:13px}
.frame-tbl th,.frame-tbl td{padding:8px 6px;border-top:1px solid var(--line);text-align:left;vertical-align:middle}
.frame-tbl th{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.04em}
.frame-tbl td.r,.frame-tbl input{font-variant-numeric:tabular-nums}
.frame-tbl input[type=number],.frame-tbl input[type=text],.frame-tbl input:not([type]){min-height:36px;font-size:13px;padding:0 8px}
.frame-tbl input[type=checkbox]{width:auto;min-height:0}
.diag-grid{display:grid;grid-template-columns:1fr;gap:10px}
.diag-card{border:1px solid var(--line);border-radius:10px;padding:8px 10px;background:#FBF9F4}
.diag-card b{font-size:13px;display:block;margin-bottom:4px}
.formula-list{margin:0;padding-left:18px;font-size:13px;color:var(--muted)}
.formula-list li{margin-bottom:4px}
@media(min-width:900px){
  .diag-grid{grid-template-columns:1fr 1fr}
  .frame-editors{grid-template-columns:1fr 1fr}
}


/* Stage A — PE / code / stale */
.results-fresh{margin:0 0 10px;font-size:12px}
.stale-banner{background:var(--warnbg);color:#5C3E00;border:1.5px solid var(--gold);border-radius:10px;padding:10px 12px;font-size:13px;font-weight:700;margin:0 0 12px}
.results-stale{opacity:0.92;outline:2px dashed var(--gold);outline-offset:2px}
.chip.code-edition{background:var(--charcoal);color:var(--cream);border:1px solid var(--gold);font-weight:700}


/* Stage B — Frame 2D diagnostics / jump */
.f2d-diag-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.f2d-diag-item{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#FBF9F4}
.f2d-diag-item.fail{border-color:#16213A;background:#EEF0F5}
.f2d-diag-item.amber{border-color:var(--gold);background:var(--warnbg)}
.f2d-diag-msg{flex:1;min-width:180px;font-size:13px;line-height:1.4}
.f2d-diag.has-fail{outline:2px solid var(--charcoal);outline-offset:2px}
.f2d-jump-flash{animation:f2dFlash 1.2s ease}
@keyframes f2dFlash{0%,100%{box-shadow:none}40%{box-shadow:0 0 0 3px var(--gold)}}

/* DXF v1 import summary / unit picker */
.dxf-summary{border-left:3px solid var(--navy,#1a3a5c)}
.dxf-summary .dxf-warns{margin-top:6px;color:#8a5a00}
.dxf-unit-dialog{max-width:480px}

/* ===== Stage F — Modeling UX (phone-first ~390px) ===== */
.f-tap,.frame-actions .btn.sm,.f-story-chip{min-height:44px}
.f-primary-cta{min-height:48px;font-size:16px;font-weight:700}
.f-story-strip{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.f-story-chip{border:1.5px solid var(--line);background:#FBF9F4;border-radius:12px;padding:8px 12px;font:600 13px var(--body);color:var(--ink);cursor:pointer;display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px}
.f-story-chip small{font-weight:500;color:var(--muted);font-size:11px}
.f-story-chip.on{background:var(--navy);color:#fff;border-color:var(--navy)}
.f-story-chip.on small{color:#C9CEDA}
.f-construct-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.f-construct-item{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start;padding:8px 10px;border:1px solid var(--gold);border-radius:10px;background:var(--warnbg);font-size:13px;line-height:1.4}
.f-row-dim{opacity:.38}
.f-grids-panel .tbl-wrap,.f-stories-panel .tbl-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.frame-editors-phone .card{min-width:0}
.frame-editors-phone .frame-tbl input{min-height:44px;font-size:16px}
@media (max-width:420px){
  #screen{padding:10px}
  .frame-actions{gap:8px}
  .frame-actions .btn{flex:1 1 calc(50% - 8px);min-width:0}
  .frame-actions .f-primary-cta{flex:1 1 100%}
  .two.f-grid-cols{grid-template-columns:1fr}
  .frame-tbl{font-size:12px}
  .tbl-wrap{overflow-x:auto;max-width:100vw;margin-left:-4px;margin-right:-4px;padding:0 4px}
  .card{padding:14px;border-radius:14px}
  .f-story-chip{flex:1 1 calc(33% - 8px);min-width:72px}
}


/* Frame 3D UX P1 — modeling workspace (stageF-frame3d-ux-sap-p3-1029a) */
.f3d-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0 10px}
.f3d-tool.on{background:var(--navy,#16213A);color:#fff;border-color:var(--navy,#16213A)}
.f3d-toolbar-sep{width:1px;height:22px;background:var(--line);margin:0 4px}
.f3d-toolbar-hint{font-size:12px;margin:0}
.f3d-prop-sheet{display:flex;flex-direction:column;gap:4px;margin:0 0 8px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#FBF9F4}
.f3d-prop-item{font-size:13px}
.f3d-prop-empty{margin:0 0 8px}
.f3d-canvas-host{min-height:280px;user-select:none}
.f3d-row-sel{background:#F8E7C3}
.f3d-canvas-interactive .f3d-snap{pointer-events:all}
@media(max-width:520px){
  .f3d-toolbar-hint{display:none}
}

/* Frame 3D UX P2 — Assign bars / libs · stageF-frame3d-ux-sap-p3-1029a */
.f3d-assign-bar{margin:0 0 10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#F4F7FB}
.f3d-assign-bar .sec{margin:0 0 8px}
.f3d-dof-row{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
.f3d-dof-chk{font-size:13px;display:inline-flex;align-items:center;gap:4px}
.f3d-restr-preset.on,.f3d-tool.on{outline:2px solid var(--navy,#1B3A5C);outline-offset:1px}
.f3d-libs-panel .hint{margin-top:0}
.f3d-sec-label{font-size:12px;white-space:nowrap;min-width:9.5rem}.f3d-sec-label select{min-width:9.5rem;max-width:14rem} /* run-6 F8 */
.f3d-row-sel{background:#E8F0FA}

/* Frame 3D UX P3 — Loads area · Assign Load / UDL · stageF-frame3d-ux-sap-p3-1029a */
.f3d-loads-area{margin-top:12px}
.f3d-loads-area #f3d-loads-head{margin-bottom:8px}
.f3d-load-dofs{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end}
.f3d-load-dofs .field label{font-size:11px}

/* Frame 3D UX P4 — Run + Display · left Display tree · load-table widths · stageF-frame3d-ux-sap-p4-1029d */
.f3d-runbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 8px}
.f3d-run-pill{font-size:12px}
.f3d-run-diag{font-size:12px;margin:0}
.f3d-ws-split{display:grid;grid-template-columns:190px minmax(0,1fr);gap:10px;align-items:start}
.f3d-display-tree{border:1px solid var(--line);border-radius:10px;background:#FBF9F4;padding:8px 10px;font-size:13px}
.f3d-tree-h{font-weight:700;margin:0 0 6px}
.f3d-display-tree summary{cursor:pointer;font-weight:600;margin:4px 0}
.f3d-tree-row{display:flex;align-items:center;gap:6px;margin:3px 0 3px 6px}
.f3d-tree-sub{margin-left:24px}
.f3d-tree-sub input{width:70px}
.f3d-tree-note{font-size:11px;margin:4px 0 0 6px}
.f3d-loads-area table{min-width:100%}
.f3d-loads-area td input,.f3d-loads-area td select{min-width:5.5rem;width:100%}
.f3d-loads-area td:first-child input{min-width:4.5rem}
#f3d-joint-loads-card,#f3d-member-udl-card{overflow-x:auto}
@media(max-width:720px){.f3d-ws-split{grid-template-columns:1fr}}
.f3d-loads-area .frame-editors{grid-template-columns:1fr !important}
.f3d-display-tree .f3d-tree-row{justify-content:flex-start;text-align:left;font-weight:400}
.f3d-display-tree input[type=checkbox],.f3d-display-tree input[type=radio]{width:16px;height:16px;min-width:0;flex:0 0 16px;margin:0}
.f3d-display-tree select{width:auto;max-width:100%;font-size:12px;padding:2px 4px}
.f3d-ws-split{grid-template-columns:220px minmax(0,1fr)}

/* stageF-frame3d-viewport-sap-1029b — WebGL 3D viewport */
.f3d-vp-bar{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;margin:6px 0}
.f3d-vp-grp{display:inline-flex;gap:4px;align-items:center;flex-wrap:wrap;padding-right:8px;border-right:1px solid #e5e1d6}
.f3d-vp-bar .btn.on{background:#1f2d4a;color:#fff}
.f3d-vp-chk{display:inline-flex;gap:4px;align-items:center;font-size:.85rem}
.f3d-vp-host{position:relative;width:100%;height:min(62vh,560px);min-height:300px;border:1px solid #e5e1d6;border-radius:10px;overflow:hidden;background:#f8f6f1;touch-action:none}
.f3d-vp-canvas{display:block;outline:none}
.f3d-vp-rubber{position:absolute;border:1.5px solid #2563eb;background:#2563eb18;pointer-events:none}
.f3d-vp-rubber.crossing{border-style:dashed;border-color:#16a34a;background:#16a34a18}
.f3d-vp-cube-wrap{position:absolute;right:12px;top:12px;width:80px;height:80px;perspective:300px;z-index:3}
.f3d-vp-cube{position:absolute;inset:0;transform-style:preserve-3d}
.f3d-vp-face{position:absolute;left:10px;top:10px;width:60px;height:60px;display:flex;align-items:center;justify-content:center;font:600 10px system-ui;color:#1f2d4a;background:#fffdf7e6;border:1px solid #9aa7b8;backface-visibility:hidden;cursor:pointer;padding:0}
.f3d-vp-face:hover{background:#c9a24a}
.f3d-vp-face.front{transform:translateZ(30px)}.f3d-vp-face.back{transform:rotateY(180deg) translateZ(30px)}
.f3d-vp-face.right{transform:rotateY(90deg) translateZ(30px)}.f3d-vp-face.left{transform:rotateY(-90deg) translateZ(30px)}
.f3d-vp-face.top{transform:rotateX(90deg) translateZ(30px)}.f3d-vp-face.bottom{transform:rotateX(-90deg) translateZ(30px)}
.f3d-vp-cube-iso{position:absolute;right:-6px;bottom:-10px;z-index:4;border:1px solid #9aa7b8;background:#fff;border-radius:50%;width:22px;height:22px;font-size:12px;cursor:pointer;padding:0}
.f3d-vp-legend{position:absolute;left:12px;bottom:12px;display:flex;gap:6px;align-items:center;font-size:.75rem;background:#fffc;padding:4px 8px;border-radius:6px}
.f3d-vp-legend i{display:inline-block;width:120px;height:10px;background:linear-gradient(90deg,#1a40d9,#00b3e6,#26bf4d,#f2cc1a,#d91a1a)}
.f3d-vp-tip{position:absolute;left:12px;top:12px;background:#1f2d4ae6;color:#fff;font-size:.8rem;padding:4px 8px;border-radius:6px}
.f3d-vp-menu{position:absolute;z-index:6;width:270px;background:#fff;border:1px solid #c9a24a;border-radius:8px;box-shadow:0 6px 24px #0003;padding:8px;font-size:.82rem;display:flex;flex-wrap:wrap;gap:4px}
.f3d-vp-menu[hidden]{display:none}
.f3d-vp-menu-h{width:100%;font-weight:700}.f3d-vp-menu-sub{width:100%;margin-top:4px;font-weight:600;color:#7a5c12}
.f3d-vp-menu-foot{width:100%;margin-top:6px;border-top:1px solid #eee;padding-top:6px}
.f3d-vp-dlg{border:1px solid #c9a24a;border-radius:10px;max-width:520px}
.f3d-vp-form{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;margin:8px 0}
.f3d-vp-form label{display:flex;flex-direction:column;font-size:.82rem}
.f3d-vp-tpls{display:flex;gap:10px;flex-wrap:wrap}
.f3d-vp-dlg-btns{text-align:right}
@media (max-width:640px){.f3d-vp-host{height:52vh}.f3d-vp-form{grid-template-columns:1fr}}
.f3d-vp-chk input[type=checkbox],.f3d-vp-tpl input{width:auto;height:auto;min-height:0;margin:0}
/* stageF-frame3d-viewport-sap-1029b — full-height workspace: menubar · toolbar · viewport + side panel · status bar */
.f3d-vp-app{display:flex;flex-direction:column;height:calc(100vh - 96px);min-height:600px;padding:0;overflow:hidden;gap:0}
.f3d-vp-menubar{display:flex;align-items:center;gap:2px;padding:4px 8px;background:#1f2d4a;color:#fff;border-radius:10px 10px 0 0;flex-wrap:wrap;position:relative;z-index:30}
.f3d-vp-brand{font-weight:700;letter-spacing:.02em;margin-right:10px;color:#e8c766}
.f3d-vp-mb{position:relative}
.f3d-vp-mb>summary{list-style:none;cursor:pointer;padding:5px 10px;border-radius:6px;font-size:13px;user-select:none}
.f3d-vp-mb>summary::-webkit-details-marker{display:none}
.f3d-vp-mb[open]>summary,.f3d-vp-mb>summary:hover{background:rgba(255,255,255,.14)}
.f3d-vp-mb-list{position:absolute;top:100%;left:0;min-width:230px;background:#fff;color:#1f2d4a;border:1px solid #d9d4c7;border-radius:8px;box-shadow:0 10px 28px rgba(15,23,42,.22);padding:4px;display:flex;flex-direction:column;z-index:40}
.f3d-vp-mb-list hr{border:0;border-top:1px solid #eee;margin:3px 0}
.f3d-vp-mi{all:unset;cursor:pointer;padding:6px 10px;border-radius:5px;font-size:13px}
.f3d-vp-mi:hover{background:#f3efe4}.f3d-vp-mi[disabled]{opacity:.4;pointer-events:none}
.f3d-vp-mb-chk .f3d-vp-chk{padding:4px 8px}
.f3d-vp-mb-sp{flex:1}
.f3d-vp-www{color:#e8c766;font-size:12px;margin-left:10px;text-decoration:underline}
.f3d-vp-app>.f3d-vp-bar{padding:5px 8px;margin:0;border-bottom:1px solid #e5e1d6;background:#fbfaf6}
.f3d-vp-range{display:inline-flex;align-items:center;gap:4px}.f3d-vp-range input[type=range]{width:110px}
.f3d-vp-main{flex:1;display:grid;grid-template-columns:1fr 290px;min-height:0}
.f3d-vp-app .f3d-vp-host{height:100%;min-height:0;border:0;border-radius:0}
.f3d-vp-side{border-left:1px solid #e5e1d6;overflow:auto;background:#fff;font-size:12.5px;display:flex;flex-direction:column}
.f3d-vp-side-h{font-weight:700;padding:6px 8px;background:#f3efe4;border-bottom:1px solid #e5e1d6;position:sticky;top:0;z-index:1}
.f3d-vp-tree{flex:1 1 55%;overflow:auto;border-bottom:1px solid #e5e1d6}
.f3d-vp-tree details{padding:2px 8px}.f3d-vp-tree summary{cursor:pointer;font-weight:600;padding:3px 0}
.f3d-vp-tree ul{list-style:none;margin:0 0 4px 8px;padding:0}
.f3d-vp-tree-it{all:unset;cursor:pointer;padding:1px 6px;border-radius:4px;display:block}
.f3d-vp-tree-it:hover{background:#f3efe4}.f3d-vp-tree-it.on{background:#fde68a;font-weight:600}
.f3d-vp-pats{display:flex;flex-direction:column;gap:2px;margin:2px 0 4px 6px}
.f3d-vp-props{flex:1 1 45%;overflow:auto}.f3d-vp-props .f3d-prop-item{padding:5px 8px;border-bottom:1px dashed #eee}
.f3d-vp-prop-btns{padding:6px 8px}
.f3d-vp-status{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center;padding:4px 10px;font-size:12px;background:#f3efe4;border-top:1px solid #e5e1d6;color:#334155}
.f3d-vp-status .hint{font-size:11px}
.f3d-panel-tabs{display:flex;flex-wrap:wrap;gap:4px;align-items:center;margin:10px 0 6px}
.f3d-panel[hidden]{display:none!important}
@media (max-width:900px){.f3d-vp-main{grid-template-columns:1fr}.f3d-vp-side{max-height:260px;border-left:0;border-top:1px solid #e5e1d6}.f3d-vp-app{height:auto}.f3d-vp-app .f3d-vp-host{height:56vh}}
.f3d-vp-app .f3d-vp-bar label{display:inline-flex;align-items:center;gap:4px;margin:0;font-size:12px}
.f3d-vp-app .f3d-vp-bar select{width:auto;min-width:0;padding:3px 6px;height:auto;font-size:12px}
.f3d-vp-app .f3d-vp-bar .btn.sm{padding:4px 9px}

/* ===== stageF-frame3d-model-sap-1029a ===== */
body.ps-f3d-full:has(#f3d-vp-card) header.top,
body.ps-f3d-full:has(#f3d-vp-card) .pe-sticky,
body.ps-f3d-full:has(#f3d-vp-card) footer.foot,
body.ps-f3d-full:has(#f3d-vp-card) #screen > .backrow,
body.ps-f3d-full:has(#f3d-vp-card) #screen > .pebanner,
body.ps-f3d-full:has(#f3d-vp-card) #screen > .f3d-panel-tabs,
body.ps-f3d-full:has(#f3d-vp-card) #screen > .f3d-panel { display: none !important; }
body.ps-f3d-full:has(#f3d-vp-card) { overflow: hidden; }
.f3d-vp-app.f3d-vp-full { position: fixed; inset: 0; z-index: 950; height: 100vh !important; max-height: none; margin: 0; border-radius: 0; }
.f3d-vp-dlg-w { max-width: min(920px, 96vw); width: 920px; }
.f3d-vp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .f3d-vp-cols { grid-template-columns: 1fr; } }
.f3d-vp-rt { border-collapse: collapse; font-size: 12px; width: 100%; }
.f3d-vp-rt th, .f3d-vp-rt td { border-bottom: 1px solid #e5e7eb; padding: 2px 4px; text-align: right; white-space: nowrap; }
.f3d-vp-rt th:first-child, .f3d-vp-rt td:first-child { text-align: left; }
.f3d-vp-rt input { width: 84px; font-size: 12px; }
.f3d-vp-rt input[size="3"] { width: 44px; }
.f3d-vp-react { border-top: 1px solid #e5e7eb; padding: 6px; }
.f3d-vp-react-wrap { max-height: 180px; overflow: auto; max-width: 100%; }
/* 1030e — compact reactions so OutputCase … M3 fit the side panel */
.f3d-vp-rt { font-size: 9.5px; table-layout: fixed; border-collapse: collapse; width: 100%; }
.f3d-vp-rt th, .f3d-vp-rt td { padding: 1px 2px; white-space: nowrap; text-align: right; overflow: hidden; text-overflow: ellipsis; }
.f3d-vp-rt th:nth-child(1) { width: 13%; } .f3d-vp-rt th:nth-child(2) { width: 14%; white-space: normal; line-height: 1.05; }
.f3d-vp-rt tfoot td:first-child { overflow: visible; }
.f3d-vp-rt th:first-child, .f3d-vp-rt td:first-child, .f3d-vp-rt td:nth-child(2), .f3d-vp-rt th:nth-child(2) { text-align: left; }
/* 1030e — Assign Joint Forces: two rows (forces / moments), never wider than the dialog */
.f3d-jf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 8px; }
.f3d-jf-cell { display: flex; flex-direction: column; font-size: 12px; min-width: 0; }
.f3d-jf-cell input { width: 100%; min-width: 0; box-sizing: border-box; }
#f3d-sap-dlg { max-width: min(94vw, 760px); max-height: 92vh; overflow: auto; box-sizing: border-box; }
#f3d-sap-dlg .f3d-sap-body { overflow-x: hidden; }
.f3d-vp-mi-lab { display: flex; gap: 6px; align-items: center; padding: 4px 10px; white-space: nowrap; }
.f3d-vp-mi[disabled] { opacity: .45; cursor: not-allowed; }
.f3d-vp-mi-h{font-size:11px;font-weight:700;color:#8a7f66;padding:4px 8px 0;text-transform:uppercase;letter-spacing:.04em}
.f3d-sap-h{margin:0 0 8px}.f3d-sap-f{display:flex;justify-content:space-between;gap:10px;margin:4px 0;font-size:13px}.f3d-sap-f input,.f3d-sap-f select{width:140px}
.f3d-sap-tw{max-height:50vh;overflow:auto}.f3d-sap-tbl{font-size:12px;border-collapse:collapse}.f3d-sap-tbl td,.f3d-sap-tbl th{border:1px solid #e5e0d3;padding:3px 6px;text-align:right}

/* sap-parity-1030b QA #2 — table editor drawer over the full-screen workspace */
body.ps-f3d-full.ps-f3d-panel-over:has(#f3d-vp-card) #screen > .f3d-panel:not([hidden]) { display: block !important; position: fixed; top: 0; right: 0; bottom: 0; width: min(820px, 94vw); z-index: 970; overflow: auto; background: #fff; box-shadow: -8px 0 24px rgba(0,0,0,.25); padding: 12px; }
.f3d-panel-over-x { display: none; }
body.ps-f3d-full.ps-f3d-panel-over .f3d-panel-over-x { display: inline-block; position: sticky; top: 0; z-index: 2; margin-bottom: 8px; }

/* 1030e — option radios/checkboxes inline in SAP dialogs */
#f3d-sap-dlg input[type=radio], #f3d-sap-dlg input[type=checkbox] { width: auto; height: auto; margin: 0 4px 0 0; }
#f3d-sap-dlg fieldset label:has(> input[type=radio]) { display: inline-flex; align-items: center; margin-right: 14px; font-size: 12px; }
/* sap-parity-1030f — area stress legend, design legend, tiled window 2, plots, section designer */
.f3d-vp-alegend { position: absolute; left: 10px; bottom: 10px; z-index: 5; background: rgba(255,255,255,.94); border: 1px solid #c9d2de; border-radius: 6px; padding: 6px 8px; font-size: 11px; display: grid; grid-template-columns: repeat(3, auto); gap: 2px 10px; min-width: 220px; }
.f3d-vp-alegend b { grid-column: 1 / -1; }
.f3d-vp-alegend i { grid-column: 1 / -1; height: 10px; border-radius: 3px; display: block; }
.f3d-vp-alegend span:nth-of-type(2) { text-align: center; } .f3d-vp-alegend span:nth-of-type(3) { text-align: right; }
.f3d-vp-dlegend { display: flex; flex-wrap: wrap; gap: 4px 8px; bottom: 10px; left: auto; right: 10px; min-width: 0; }
.f3d-vp-win2 { position: absolute; top: 0; right: 0; bottom: 0; width: 42%; z-index: 4; background: #fff; border-left: 3px solid #1f5f8b; overflow: hidden; display: flex; flex-direction: column; }
.f3d-vp-win2-h { font-size: 11px; font-weight: 600; padding: 3px 8px; background: #eef3f9; border-bottom: 1px solid #c9d2de; }
.f3d-vp-win2 svg { width: 100%; height: auto; flex: 1; }
#f3d-sap-dlg .f3d-spark { display: block; margin: 6px 0; max-width: 100%; }
#f3d-sap-dlg .f3d-sd-svg { float: right; margin: 0 0 6px 10px; }
#f3d-sap-dlg textarea { width: 100%; box-sizing: border-box; font-family: monospace; font-size: 12px; }
#f3d-sap-dlg .f3d-sap-row { display: flex; flex-wrap: wrap; gap: 6px 12px; }
/* vip100-1030g — reactions readout: full width, wrapped, no truncation */
.f3d-vp-react { min-width: 0; width: 100%; box-sizing: border-box; }
.f3d-vp-react-wrap { max-height: 260px; overflow: auto; }
.f3d-vp-react table { width: 100%; table-layout: auto; font-size: 11px; border-collapse: collapse; }
.f3d-vp-react th, .f3d-vp-react td { white-space: normal; word-break: break-word; overflow: visible; text-overflow: clip; padding: 2px 4px; }
.f3d-vp-react .f3d-vp-side-h { white-space: normal; }
/* p5f: Benchmarks popup — opaque card, docked below the Frame 3D menu/toolbar (never covers it) */
#f3d-bench-ov{align-items:flex-start}
#f3d-bench-ov .faq-modal{background:#fff;opacity:1;color:#1b2430;border-radius:12px;padding:18px 20px;box-shadow:0 12px 40px rgba(0,0,0,.35);width:100%;max-height:calc(100vh - var(--bench-top,0px) - 24px);overflow:auto}
/* p5f: busy overlay for heavy viewport work — blocks queued clicks from landing on the canvas */
.f3d-busy{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:100050;pointer-events:none;display:flex;font:600 14px var(--head,sans-serif);color:#1f3b5b}
.f3d-busy span{background:#fff;padding:10px 16px;border-radius:10px;box-shadow:0 4px 18px rgba(0,0,0,.2)}

/* p5g: worker run progress chip (non-blocking) */
.f3d-run-prog{position:fixed;right:16px;bottom:16px;z-index:100060;background:#fff;border:1px solid #c9d3e0;border-radius:10px;box-shadow:0 4px 18px rgba(0,0,0,.2);padding:8px 12px;font:600 13px var(--head,sans-serif);color:#1f3b5b;display:flex;gap:8px;align-items:center;max-width:90vw}
.f3d-run-prog progress{width:120px}

/* p5g NJCO-13 minors */
#f3d-sup-prompt .faq-modal{background:#fff!important;opacity:1!important;backdrop-filter:none}
#f3d-sup-prompt{background:transparent!important;pointer-events:none}
#f3d-sup-prompt .faq-modal{pointer-events:auto;box-shadow:0 10px 40px rgba(15,30,50,.45)} /* m3sap3: non-blocking — Run and the toolbar stay clickable while Review supports is open */
.f3d-cmb-tbl td:first-child{white-space:nowrap}
/* m3sap4 perf: off-screen result tables skip layout/paint until scrolled into view (T4 output-case switch) */
.f3d-panel .f3d-sap-tbl, .f3d-panel table{content-visibility:auto;contain-intrinsic-size:auto 480px}
/* m3sap4 P6-01: phone-width editor tables scroll inside their card; numeric inputs keep a readable width */
.f3d-panel,.f3d-panel .card,.f3d-panel .tbl-wrap{min-width:0;max-width:100%}
.f3d-panel .tbl-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.f3d-panel .frame-tbl input[type=number]{min-width:10ch}
.f3d-panel .frame-tbl select[data-f3d-mem-sec]{min-width:12ch;min-height:36px}
@media (max-width:640px){.f3d-panel .frame-tbl{width:max-content;min-width:100%}.f3d-panel .frame-tbl input[type=number]{min-width:12ch}}
.f3d-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}
.f3d-chip{font-size:12px;padding:2px 8px;border-radius:999px;border:1px solid var(--line)}
.f3d-chip.ok{background:#e7f6ec;color:#11602e}.f3d-chip.off{background:#f3f3f3;color:#777}.f3d-chip.warn{background:#fff3d6;color:#7a4b00}
.f2d-row-sel{outline:2px solid #C9A24A}.f2d-tools{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:6px}
/* m3sap5 perf: big editor tables skip layout/paint while off-screen (case switches with the Tables panel open) */
[data-f3d-panel="tables"] .tbl-wrap { content-visibility: auto; contain-intrinsic-size: auto 480px; }
/* m3sap5 run-5 P6-01: no page-level horizontal scroll at phone widths — grid tracks may shrink, tables scroll inside .tbl-wrap */
.two.f-grid-cols > *, .f3d-panel .card { min-width: 0; }
@media (max-width: 720px) { .two.f-grid-cols { grid-template-columns: minmax(0, 1fr) !important; } .f3d-panel { max-width: 100%; overflow-x: clip; } }
/* closed Section select shows its whole label */
select[data-f3d-mem-sec] { field-sizing: content; min-width: 9ch; max-width: none; }
/* ── m3sap8-menu v2 LOCKED: workspace layout (calc/menuLayout.js) ── */
.ml-v2{--ml-navy:#1B2A4A;--ml-char:#2B2F36;--ml-gold:#C9A227;--ml-amber:#E0A800;font-family:Poppins,system-ui,sans-serif}
.ml-v2 .f3d-vp-menubar{background:var(--ml-char);color:#eee;font-size:13px;gap:2px}
.ml-v2 .f3d-vp-menubar>details>summary{color:#eee;padding:4px 9px}
.ml-v2 .f3d-vp-menubar .f3d-vp-www{color:#f1e7c6}
.ml-v2 .ml-burger{display:none}
.ml-wf{display:flex;gap:4px;padding:5px 8px;background:#f4f4f2;border-bottom:1px solid #ddd;overflow-x:auto;scrollbar-width:thin}
.ml-wf-tab,.ml-wf-all{border:1px solid #ccc;background:#fff;border-radius:16px;padding:4px 12px;font:600 12.5px Poppins,system-ui,sans-serif;color:var(--ml-char);cursor:pointer;white-space:nowrap;border-bottom-width:3px}
.ml-wf-tab .ml-wf-n{display:inline-block;min-width:16px;height:16px;line-height:16px;border-radius:8px;background:#e5e5e5;font-size:11px;text-align:center;margin-right:3px}
.ml-wf-tab.on,.ml-wf-all.on{background:var(--ml-char);color:#fff;border-bottom-color:var(--ml-gold)}
.ml-wf-tab.on .ml-wf-n{background:var(--ml-gold);color:var(--ml-char)}
.ml-wf-tab[disabled]{opacity:.45;cursor:not-allowed}
.ml-wf-all{margin-left:auto;font-weight:500}
.ml-pulse{box-shadow:0 0 0 3px var(--ml-gold)}
.ml-v2 .ml-tb{display:flex;flex-wrap:wrap;align-items:center;gap:0;padding:3px 6px}
.ml-v2 .ml-tb>.ml-g{display:inline-flex;align-items:center;gap:3px;padding:0 12px;border-right:1px solid #d6d6d6}
.ml-v2 .ml-tb>.ml-g:last-child{border-right:0}
.ml-v2 .ml-off,.ml-v2 .ml-hide{display:none!important}
.ml-v2 .ml-tb .btn,.ml-v2 .ml-tb .btn.gold{background:#fff;color:var(--ml-char);border-color:#ccc}
.ml-v2 .ml-ic{min-width:32px;min-height:32px;font-size:16px;display:inline-flex;flex-direction:column;align-items:center;justify-content:center}
.ml-v2 .ml-ic .ml-lab{display:none;font-size:10px}
@media (min-width:1440px){.ml-v2 .ml-ic .ml-lab{display:block}}
.ml-v2 .ml-tb .ml-run,.ml-v2 .ml-run{background:var(--ml-gold)!important;color:var(--ml-char)!important;border-color:#a8861b!important;font-weight:700}
.ml-v2 .f3d-vp-main{grid-template-columns:40px 240px minmax(60%,1fr) 280px}
.ml-v2.ml-noexp .f3d-vp-main{grid-template-columns:40px 0 minmax(60%,1fr) 280px}
.ml-v2.ml-noprops .f3d-vp-main{grid-template-columns:40px 240px minmax(60%,1fr) 28px}
.ml-v2.ml-noexp.ml-noprops .f3d-vp-main{grid-template-columns:40px 0 1fr 28px}
.ml-v2.ml-noexp .ml-explorer{overflow:hidden;width:0;border:0}
.ml-v2.ml-noprops .ml-props>*:not(.ml-pane-h){display:none}
.ml-v2.ml-noexp .f3d-vp-host::before{content:'';}
.ml-left{display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 0;background:var(--ml-char);width:40px}
.ml-lt{width:34px;height:34px;border:0;border-radius:4px;background:transparent;color:#eee;font-size:16px;cursor:pointer}
.ml-lt:hover,.ml-lt.on{background:#495060}
.ml-lt.ml-snap{font-size:13px;border:1px solid #666}.ml-lt.ml-snap.on{background:#5c6b8a}
.ml-lt-moreb{display:none}
.ml-left-sep{width:24px;border-top:1px solid #666;margin:3px 0}
.ml-left-sp{flex:1}
.ml-explorer{border-right:1px solid #e5e1d6;overflow:auto;background:#fff;min-width:0}
.ml-pane-h{display:flex;justify-content:space-between;align-items:center;padding:4px 8px;font-size:12.5px;background:#f4f4f2;border-bottom:1px solid #e5e1d6;position:sticky;top:0;z-index:1}
.ml-explorer .f3d-vp-side-h{display:none}
.ml-col{border:0;background:transparent;cursor:pointer;font-size:14px}
.ml-v2 .ml-status{min-height:24px;font-size:12px;color:#555}
.ml-v2 .ml-lock{background:#FFF3CD!important;color:#7a5600!important;border:1px solid var(--ml-amber)!important;cursor:pointer}
.ml-tier{background:var(--ml-navy)!important;color:#fff!important}
.ml-units select{font-size:12px}
.ml-legacy-tabs{display:none!important}
.ml-fab,.ml-sheetbar{display:none}
.ml-dlg{position:fixed;left:50%;top:14%;transform:translateX(-50%);z-index:100002;background:#fff;color:#111;border:1px solid #888;border-radius:6px;padding:14px 18px;min-width:320px;max-width:92vw;max-height:76vh;overflow:auto;box-shadow:0 8px 32px #0006;font-family:Poppins,system-ui,sans-serif}
.ml-dlg h3{margin:0 0 8px;color:#1B2A4A}.ml-dlg-b{text-align:right;margin-top:10px}.ml-keys td{padding:2px 10px 2px 0}
@media (max-width:768px){
  .ml-v2 .f3d-vp-menubar{flex-wrap:wrap}
  .ml-v2 .ml-burger{display:inline-flex;min-width:44px;min-height:44px;align-items:center;justify-content:center;background:transparent;color:#fff;border:0;font-size:22px}
  .ml-v2 .f3d-vp-menubar>details{display:none}
  .ml-v2.ml-burger-open .f3d-vp-menubar>details{display:block;width:100%}
  .ml-v2 .f3d-vp-menubar>details>summary{min-height:44px;line-height:36px}
  .ml-wf{flex-wrap:nowrap;overflow-x:auto}.ml-wf-tab,.ml-wf-all{min-height:44px}
  .ml-v2 .f3d-vp-main{display:block;position:relative}
  .ml-left{position:fixed;left:0;right:0;bottom:0;width:auto;height:56px;flex-direction:row;justify-content:space-around;z-index:50}
  .ml-left .ml-lt{width:44px;height:44px}.ml-left .ml-lt-more,.ml-left .ml-snap,.ml-left .ml-left-sep,.ml-left .ml-left-sp{display:none}
  .ml-left .ml-lt-moreb{display:inline-block}
  .ml-v2.ml-more-open .ml-left{height:auto;flex-wrap:wrap}.ml-v2.ml-more-open .ml-left .ml-lt-more,.ml-v2.ml-more-open .ml-left .ml-snap{display:inline-block}
  .ml-explorer,.ml-v2 .ml-props{display:none}
  .ml-v2.ml-sheet-explorer .ml-explorer,.ml-v2.ml-sheet-props .ml-props{display:block;position:fixed;left:0;right:0;bottom:56px;max-height:55vh;overflow:auto;z-index:60;background:#fff;border-top:2px solid var(--ml-char);border-radius:12px 12px 0 0;width:auto;box-shadow:0 -6px 24px #0004}
  .ml-sheetbar{display:flex;gap:6px;padding:6px}.ml-sheetbar button{min-height:44px;flex:1;border:1px solid #ccc;background:#fff;border-radius:6px}
  .ml-fab{display:block;position:fixed;right:14px;bottom:70px;width:56px;height:56px;border-radius:28px;border:0;background:var(--ml-gold);color:var(--ml-char);font-size:22px;z-index:61;box-shadow:0 4px 14px #0005}
  .ml-v2 .ml-status>*:not(.ml-units):not(.ml-lock):not(.ml-unlocked):not(.ml-tier){display:none}
  .ml-v2 .ml-tb>.ml-g{padding:0 6px}.ml-v2 .ml-tb .btn{min-height:44px;min-width:44px}
  .ml-v2-body{padding-bottom:60px}
}
/* m3sap8-menu v2 desktop-first (Paul t400u): 1920×1080 primary, 1366×768 supported */
@media (min-width:1800px){.ml-v2 .f3d-vp-main{grid-template-columns:40px 280px minmax(60%,1fr) 320px}.ml-v2 .ml-tb{flex-wrap:nowrap}}
@media (min-width:1280px) and (max-width:1440px){.ml-v2 .f3d-vp-main{grid-template-columns:40px 200px minmax(58%,1fr) 250px}.ml-v2 .ml-ic{min-width:30px;min-height:30px}}
/* VIP workspace uses the full desktop width */
.ml-v2-body #screen,.ml-v2-body main #screen>*{max-width:none!important}
.ml-v2-body .f3d-vp-app{max-width:none!important;width:100%}
.ml-v2 .ml-status{flex-wrap:wrap;row-gap:2px}
/* m3sap8-menu v2.1: desktop workspace fills the viewport (VIP only) */
@media (min-width:1280px){
.ml-v2.f3d-vp-app{position:fixed;inset:0;z-index:60;height:100vh!important;max-width:none!important;margin:0;border-radius:0;min-height:0}
.ml-v2 .f3d-vp-main{flex:1 1 auto;min-height:0;overflow:hidden}
.ml-v2 .f3d-vp-main>*{min-height:0;overflow:auto}
.ml-v2 .f3d-vp-main .f3d-vp-host{overflow:hidden}
.ml-v2 .ml-status{flex:0 0 auto;flex-wrap:nowrap!important;white-space:nowrap;overflow:hidden;height:30px;align-items:center;font-size:12px}
.ml-v2 .ml-status select{height:22px}
.ml-v2 .ml-status label{display:inline-flex;gap:4px;align-items:center}
.ml-v2 .f3d-vp-menubar{flex-wrap:nowrap;white-space:nowrap}
.ml-v2 .f3d-vp-menubar a{white-space:nowrap}
.ml-v2 .ml-tb{flex:0 0 auto}
}
@media (min-width:1280px) and (max-width:1440px){
.ml-v2 .f3d-vp-main{grid-template-columns:36px 170px minmax(62%,1fr) 210px!important}
.ml-v2 .ml-tb .ml-lab,.ml-v2 .ml-tb small{display:none}
}
@media (min-width:1280px){
.ml-v2 .f3d-vp-menubar{height:32px;min-height:0;padding-top:0;padding-bottom:0;align-items:center;display:flex}
.ml-v2 .f3d-vp-menubar a[href*="njcomasterbuilders"]{margin-left:auto;font-size:11px}
.ml-v2 .ml-wf{height:32px;min-height:0;padding-top:2px;padding-bottom:2px}
.ml-v2 .ml-wf-tab{padding-top:2px;padding-bottom:2px}
.ml-v2 .ml-tb{flex-wrap:nowrap;overflow:hidden;padding-top:2px;padding-bottom:2px;max-height:46px}
.ml-v2 .ml-tb button{min-height:30px;padding-top:2px;padding-bottom:2px}
}
@media (min-width:1280px) and (max-width:1440px){
.ml-v2 .f3d-vp-main{grid-template-columns:34px 150px minmax(62%,1fr) 190px!important}
}
@media (min-width:1280px){.ml-v2 .ml-status{height:26px}}
@media (min-width:1280px) and (max-width:1440px){.ml-v2 .f3d-vp-main{grid-template-columns:34px 150px minmax(62%,1fr) 180px!important}}
@media (min-width:1280px){
.ml-v2 .ml-tb{max-height:none;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.ml-v2 .ml-tb,.ml-v2 .ml-tb *{flex-wrap:nowrap!important;white-space:nowrap}
.ml-v2 .ml-tb>*{flex:0 0 auto;display:flex;align-items:center;gap:2px}
.ml-v2 .ml-tb button{min-height:28px;padding:2px 6px}
.ml-v2 .ml-tb button br{display:none}
}
@media (min-width:1280px) and (max-width:1440px){.ml-v2 .f3d-vp-main{grid-template-columns:34px 145px minmax(62%,1fr) 170px!important}}
@media (min-width:1800px){.ml-v2 .f3d-vp-main{grid-template-columns:40px 240px minmax(62%,1fr) 280px!important}}
.ml-v2 .f3d-vp-storeybar{display:none!important} /* ETABS paused (VIP) */

/* m3sap7c: toolbar '»' overflow (1366 never clips) */
@media (min-width:1280px){.ml-v2 .ml-tb{overflow:visible!important}.ml-v2 .ml-tb.ml-tb-wrap{flex-wrap:wrap!important;max-height:none}}
.ml-v2 .ml-more{position:relative}.ml-v2 .ml-more>summary{list-style:none;cursor:pointer;min-width:28px;min-height:28px;display:flex;align-items:center;justify-content:center;border:1px solid #ccc;border-radius:4px;background:#fff;font-weight:700}
.ml-v2 .ml-more>summary::-webkit-details-marker{display:none}
.ml-v2 .ml-more-box{position:absolute;right:0;top:100%;z-index:70;background:#fff;border:1px solid #bbb;border-radius:6px;box-shadow:0 6px 18px #0003;padding:6px;display:flex;flex-direction:column;gap:4px}
.ml-v2 .ml-more-box>.ml-g{border-right:0!important;padding:2px}

/* m3sap7d: Show Tables (F1) opens the results / table editor as a visible scrollable modal over the menu v2 workspace (1280×800 … 1920) */
.f3d-panel-modal-x{display:none}
body.ps-f3d-panel-modal::after{content:'';position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:900}
body.ps-f3d-panel-modal #screen .f3d-panel[data-f3d-panel="results"]:not([hidden]),body.ps-f3d-panel-modal #screen .f3d-panel[data-f3d-panel="tables"]:not([hidden]){display:block!important;position:fixed;top:4vh;left:50%;transform:translateX(-50%);width:min(1240px,96vw);max-height:92vh;overflow:auto;z-index:901;background:#fff;color:#111;border-radius:8px;box-shadow:0 12px 40px rgba(0,0,0,.35);padding:10px 14px;box-sizing:border-box}
body.ps-f3d-panel-modal .f3d-panel-modal-x{display:inline-block;position:sticky;top:0;float:right;z-index:3}
