/* WindFire CAM (Claude; Windfire Admin) */
@import url("../css/viewcube.css");
[hidden] { display: none !important; }
:root { --bg: #0f1419; --pan: #161c23; --pan2: #1d252e; --line: #2a3440; --tx: #dfe6ee; --mut: #8b98a7; --acc: #ff7a1a; --blue: #2f81f7; --warn: #ffb02e; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--tx); font: 13px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { display: grid; grid-template-rows: 44px auto 1fr 24px; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
.btn { background: var(--pan2); border: 1px solid var(--line); border-radius: 6px; padding: 5px 12px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn:hover { border-color: #3d4b5a; } .btn.pri { background: var(--acc); border-color: var(--acc); color: #111; font-weight: 600; } .btn.ghost { background: transparent; }
.btn.sm { padding: 3px 8px; font-size: 12px; }
.ib { background: none; border: 0; cursor: pointer; padding: 4px 7px; border-radius: 5px; color: var(--mut); } .ib:hover { background: var(--pan2); color: var(--tx); }
#top { display: flex; align-items: center; gap: 8px; padding: 0 10px; background: var(--pan); border-bottom: 1px solid var(--line); min-width: 0; }
#top .sp { flex: 1; }
#bDrawer { font-size: 18px; }
#appSw { position: relative; } #appSwB { white-space: nowrap; background: none; border: 0; cursor: pointer; font-size: 15px; padding: 4px 6px; border-radius: 6px; } #appSwB b { color: var(--acc); } #appSwB:hover { background: var(--pan2); }
#appMenu { position: absolute; top: 36px; left: 0; z-index: 30; background: var(--pan2); border: 1px solid var(--line); border-radius: 8px; padding: 4px; width: 250px; box-shadow: 0 8px 30px #0008; }
#appMenu a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--tx); text-decoration: none; font-weight: 600; } #appMenu a small { display: block; font-weight: 400; color: var(--mut); }
#appMenu a:hover, #appMenu a.cur { background: #ffffff10; }
#projName { background: transparent; border: 1px solid transparent; border-radius: 5px; padding: 4px 6px; min-width: 80px; width: 220px; } #projName:hover, #projName:focus { border-color: var(--line); }
#acct.in { color: #7ee2a8; }
#main { display: grid; grid-template-columns: 250px 1fr 330px; min-height: 0; }
#left { background: var(--pan); border-right: 1px solid var(--line); overflow: auto; }
#tree { list-style: none; margin: 0; padding: 6px 0; }
#tree li { display: flex; align-items: center; gap: 6px; padding: 5px 10px; cursor: pointer; }
#tree li.hd { color: var(--mut); text-transform: uppercase; font-size: 11px; letter-spacing: .05em; cursor: default; padding-top: 12px; }
#tree li.hd .addw { margin-left: auto; text-transform: none; letter-spacing: 0; }
#tree li.it:hover, #tree li.op:hover { background: #ffffff08; } #tree li.sel { background: #ff7a1a22; box-shadow: inset 3px 0 var(--acc); }
#tree .ic { width: 18px; text-align: center; color: var(--mut); } #tree .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tree .tm { color: var(--mut); font-size: 11px; } #tree .wn { color: #111; background: var(--warn); border-radius: 9px; padding: 0 6px; font-weight: 700; font-size: 11px; }
#tree li.sup .nm { color: var(--mut); text-decoration: line-through; } #tree .os, #tree .od { padding: 0 4px; font-size: 11px; }
#tree li.empty { color: var(--mut); cursor: default; font-style: italic; }
#vpw { position: relative; min-width: 0; min-height: 0; background: radial-gradient(ellipse at 50% 30%, #243040, #10161c 75%); }
#vp { position: absolute; inset: 0; }
#vtools { position: absolute; top: 8px; left: 8px; right: 136px; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
#vtools button { background: #0f1419cc; border: 1px solid var(--line); border-radius: 5px; padding: 3px 8px; cursor: pointer; font-size: 12px; }
#vtools label { background: #0f1419cc; border: 1px solid var(--line); border-radius: 5px; padding: 2px 8px; font-size: 12px; display: flex; gap: 4px; align-items: center; }
#legend { position: absolute; bottom: 8px; left: 8px; font-size: 11px; color: var(--mut); background: #0f1419aa; padding: 3px 8px; border-radius: 5px; }
.lg { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin: 0 3px 0 8px; } .lg.r { background: #e0b020; } .lg.f { background: var(--blue); } .lg.p { background: #ff5d5d; }
#simBar { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: #161c23ee; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; width: min(640px, 92%); box-shadow: 0 6px 24px #0009; }
#simBar #simPos { flex: 1; } #simBar select { background: var(--pan2); border: 1px solid var(--line); border-radius: 5px; }
#simPlay { font-size: 15px; color: var(--tx); }
.warn { color: var(--warn); }
#busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; background: #0f141999; font-size: 14px; z-index: 12; }
.spin { width: 22px; height: 22px; border: 3px solid #ffffff33; border-top-color: var(--acc); border-radius: 50%; animation: sp .8s linear infinite; } @keyframes sp { to { transform: rotate(360deg); } }
#props { background: var(--pan); border-left: 1px solid var(--line); overflow: auto; display: flex; flex-direction: column; }
.ptitle { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); } .ptitle input { flex: 1; background: transparent; border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; font-weight: 600; }
.ptitle .ty { color: var(--mut); font-size: 12px; margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.tabs { display: flex; border-bottom: 1px solid var(--line); } .tabs button { flex: 1; background: none; border: 0; padding: 8px 4px; cursor: pointer; color: var(--mut); border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--tx); border-bottom-color: var(--acc); }
.pad { padding: 10px 12px; } .pad h4 { margin: 14px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--mut); } .pad h4:first-child { margin-top: 2px; }
.pfoot { margin-top: auto; padding: 8px 12px; border-top: 1px solid var(--line); color: var(--mut); font-size: 12px; } .pfoot .warn { color: var(--warn); }
.f { display: grid; grid-template-columns: 1fr 110px auto; align-items: center; gap: 6px; margin: 5px 0; } .f > span { color: #c3ccd6; } .f em { color: var(--mut); font-style: normal; font-size: 11px; min-width: 24px; }
.f input, .f select, .find, #mSel, .hrow select, .hrow input, .tools input, .tools select { background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; width: 100%; min-width: 0; }
.f select { grid-column: 2 / 4; } .f.ck { grid-template-columns: auto 1fr; } .f.ck input { width: auto; }
.f.s { grid-template-columns: 1fr 80px auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; } .grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; column-gap: 6px; } .grid3 .f.s { grid-template-columns: 1fr; gap: 2px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 4px; } .seg button { background: none; border: 0; padding: 4px 10px; cursor: pointer; color: var(--mut); } .seg button.on { background: var(--acc); color: #111; font-weight: 600; }
.row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 8px 0; } .row.end { justify-content: flex-end; }
.hint { color: var(--mut); font-size: 12px; margin: 4px 0 8px; } .note { color: var(--mut); font-size: 12px; margin: 6px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 10px; } .chips em { color: var(--mut); }
.chip { background: #ff7a1a26; border: 1px solid #ff7a1a66; border-radius: 12px; padding: 2px 4px 2px 9px; font-size: 12px; display: inline-flex; gap: 4px; align-items: center; }
.chip button { background: none; border: 0; cursor: pointer; color: var(--mut); padding: 0 4px; }
.hrow { display: grid; grid-template-columns: 70px 1fr; gap: 4px 6px; align-items: center; padding: 6px 0; border-bottom: 1px solid #ffffff0a; }
.hrow label { grid-column: 2; display: flex; gap: 6px; align-items: center; color: var(--mut); font-size: 12px; } .hrow small { grid-column: 2; color: var(--mut); }
.hl { font-weight: 600; grid-row: span 3; } .hc-clearance { color: #46a758; } .hc-retract { color: #3e8ef7; } .hc-feed { color: #b07ee8; } .hc-top { color: #e5484d; } .hc-bottom { color: #f0a020; }
#mSel { margin-top: 4px; } .find { margin-top: 2px; }
.tools { width: 100%; border-collapse: collapse; font-size: 12px; } .tools th { color: var(--mut); text-align: left; font-weight: 500; padding: 3px; } .tools td { padding: 2px 3px; } .tools td:first-child input { width: 44px; } .tools td:nth-child(3) input { width: 70px; }
#drawer { position: fixed; top: 44px; bottom: 24px; left: 0; width: 320px; background: var(--pan2); border-right: 1px solid var(--line); z-index: 20; transform: translateX(-102%); transition: transform .18s ease; padding: 10px 12px; overflow: auto; box-shadow: 8px 0 30px #0007; }
#drawer.open { transform: none; }
.dh { display: flex; align-items: center; justify-content: space-between; font-size: 15px; margin-bottom: 8px; } .dact { display: flex; flex-wrap: wrap; gap: 6px; }
#projList { list-style: none; padding: 0; margin: 10px 0; } #projList li { display: flex; align-items: center; border-radius: 6px; } #projList li.cur { background: #ff7a1a1c; }
#projList .po { flex: 1; text-align: left; background: none; border: 0; padding: 7px 8px; cursor: pointer; } #projList .po small { display: block; color: var(--mut); font-size: 11px; } #projList li:hover { background: #ffffff0a; }
#projList li.empty { color: var(--mut); padding: 8px; font-style: italic; }
#addMenu { position: fixed; z-index: 40; background: var(--pan2); border: 1px solid var(--line); border-radius: 8px; padding: 4px; display: flex; flex-direction: column; min-width: 190px; box-shadow: 0 8px 30px #0008; }
#addMenu[hidden] { display: none; } #addMenu button { background: none; border: 0; text-align: left; padding: 7px 10px; border-radius: 5px; cursor: pointer; } #addMenu button:hover { background: #ffffff10; }
#addMenu .soon { color: var(--mut); font-size: 11px; padding: 6px 10px; border-top: 1px solid var(--line); margin-top: 4px; max-width: 220px; }
#status { background: var(--pan); border-top: 1px solid var(--line); padding: 3px 10px; color: var(--mut); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
dialog { background: var(--pan2); color: var(--tx); border: 1px solid var(--line); border-radius: 10px; max-width: min(720px, 94vw); width: 100%; } dialog::backdrop { background: #0009; }
dialog h3 { margin: 0 0 6px; } #postText { width: 100%; height: 50vh; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; font: 12px/1.35 ui-monospace, Menlo, Consolas, monospace; padding: 8px; }
@media (max-width: 1000px) { #main { grid-template-columns: 200px 1fr 290px; } #projName { width: 120px; } }
@media (max-width: 760px) {
  #main { grid-template-columns: 1fr; grid-template-rows: 40vh auto auto; overflow: auto; } #vpw { order: 0; min-height: 40vh; } #left { order: 1; max-height: 30vh; } #props { order: 2; }
  #bGen, #bSave { display: none; } #projName { display: none; }
}
#tree .hd .sub { font-weight: 400; opacity: .65; font-size: 11px; margin-left: 4px; text-transform: none; letter-spacing: 0; }
#tree .hd.setup-o { cursor: pointer; opacity: .8; } #tree .hd.setup-o:hover { opacity: 1; background: #ffffff0a; }
/* tool library */
#dlgTools { max-width: min(1240px, 98vw); width: 98vw; height: 88vh; padding: 0; display: none; }
#dlgTools[open] { display: flex; flex-direction: column; }
#dlgTools .tlh { display: flex; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); } #dlgTools .tlh h3 { margin: 0; } #dlgTools .sp { flex: 1; }
#dlgTools .tlb { flex: 1; display: grid; grid-template-columns: 200px 1fr 360px; min-height: 0; }
#dlgTools .tlh { gap: 8px; }
#dlgTools .tl-draft { grid-template-columns: 1fr; }
#dlgTools .tl-draft .tle { width: min(100%, 540px); justify-self: center; border: 0; }
#dlgTools .tl-draft #tlDraftUnits { color: inherit; background: var(--pan2); border: 1px solid var(--line); border-radius: 5px; padding: 4px; }
#dlgTools .tl-draft #tlMessage:empty { display: none; }
#dlgTools .tls { padding: 10px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; overflow: auto; }
#dlgTools .src { text-align: left; background: none; border: 1px solid transparent; color: inherit; padding: 7px 9px; border-radius: 6px; cursor: pointer; display: flex; justify-content: space-between; }
#dlgTools .src.on { background: #1f6feb22; border-color: #1f6feb; } #dlgTools .src em { opacity: .6; font-style: normal; }
#dlgTools hr { border: 0; border-top: 1px solid var(--line); width: 100%; }
#dlgTools .tlm { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
#dlgTools .tlf { display: flex; gap: 6px; padding: 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
#dlgTools .tlf input, #dlgTools .tlf select { background: var(--bg); color: inherit; border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; font-size: 12px; }
#dlgTools #qT { flex: 1 1 200px; } #dlgTools #qD0, #dlgTools #qD1, #dlgTools #qF { width: 70px; }
#dlgTools .tlt { overflow: auto; flex: 1; }
#dlgTools table { width: 100%; border-collapse: collapse; font-size: 12px; } #dlgTools th { position: sticky; top: 0; background: var(--pan2); text-align: left; padding: 6px; border-bottom: 1px solid var(--line); }
#dlgTools td { padding: 5px 6px; border-bottom: 1px solid #ffffff0d; white-space: nowrap; } #dlgTools tr[data-id] { cursor: pointer; } #dlgTools tr[data-id]:hover { background: #ffffff08; } #dlgTools tr.on { background: #1f6feb33; }
#dlgTools .tle { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; padding: 10px; }
#dlgTools .tet { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; } #dlgTools .tet span { opacity: .7; }
#dlgTools .tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 8px; } #dlgTools .tabs button { background: none; border: 0; color: inherit; padding: 6px 8px; cursor: pointer; opacity: .7; font-size: 12px; } #dlgTools .tabs button.on { opacity: 1; border-bottom: 2px solid #ff7a1a; }
#dlgTools .teb { overflow: auto; flex: 1; } #dlgTools .teb h4 { margin: 10px 0 4px; font-size: 12px; opacity: .8; }
#dlgTools .teb .f { display: grid; grid-template-columns: 1fr 120px 60px; gap: 6px; align-items: center; margin: 4px 0; font-size: 12px; }
#dlgTools .teb .f input, #dlgTools .teb .f select { background: var(--bg); color: inherit; border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; width: 100%; }
#dlgTools .teb .f em { font-style: normal; opacity: .6; font-size: 11px; }
#dlgTools .tea { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--line); }
#dlgTools .row { display: flex; gap: 6px; align-items: center; }
@media (max-width: 900px) { #dlgTools .tlb { grid-template-columns: 1fr; overflow: auto; } #dlgTools .tls, #dlgTools .tle { border: 0; } }
#wfVersions, #wfShare { width: min(560px, 94vw); }
.wfvl { max-height: 55vh; overflow: auto; } .wfv { display: grid; grid-template-columns: 50px 1fr 1fr auto auto; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid #ffffff10; font-size: 12px; } .wfv em { opacity: .8; }
#wfShare input { background: var(--bg); color: inherit; border: 1px solid var(--line); border-radius: 6px; padding: 6px; margin: 8px 0; }

/* v1.9.10 (Claude): names the shared machine gallery / editor / post editor use (css/machinegallery.css) */
:root { --panel: var(--pan); --panel2: var(--pan2); --fg: var(--tx); --muted: var(--mut); --btn: var(--pan2); --btnh: #26303b; --sel: #2b3a52; }
/* ribbon tabs, groups and dropdowns (same look as WindFire Design) */
#ribbon { display: flex; gap: 0; padding: 0 6px 0 0; background: var(--pan); border-bottom: 1px solid var(--line); overflow-x: auto; align-items: stretch; scrollbar-width: thin; min-height: 58px; }
#ribbon .tabs { display: flex; flex-wrap: wrap; align-content: center; gap: 2px; padding: 4px 10px; border-right: 1px solid var(--line); max-width: 330px; }
#ribbon .tab { font: 700 11px system-ui; letter-spacing: .08em; color: var(--mut); padding: 2px 6px; border-radius: 4px; background: none; border: 0; cursor: pointer; white-space: nowrap; }
#ribbon .tab:hover { color: var(--tx); } #ribbon .tab.on { color: var(--tx); background: #ffffff14; } #ribbon .tab .lock { font-size: 10px; } #ribbon .tab .soonb { font: 600 9px system-ui; color: #d29922; letter-spacing: 0; }
#ribbon .grp { display: flex; flex-direction: column; padding: 3px 6px 2px; border-right: 1px solid var(--line); align-items: center; justify-content: space-between; }
#ribbon .mains { display: flex; gap: 1px; }
#ribbon .pn { background: none; border: 0; color: var(--mut); font: 600 10px system-ui; letter-spacing: .06em; padding: 2px 8px; border-radius: 4px; cursor: pointer; white-space: nowrap; } #ribbon .pn:hover { background: #ffffff12; color: var(--tx); }
#ribbon .rb { display: flex; flex-direction: column; align-items: center; background: none; border: 1px solid transparent; border-radius: 6px; padding: 2px 6px; cursor: pointer; font-size: 11px; min-width: 52px; white-space: nowrap; color: #c9d3dd; }
#ribbon .rb .ri { font-size: 18px; line-height: 22px; color: var(--tx); } #ribbon .rb:hover { background: #ffffff0d; border-color: var(--line); } #ribbon .rb.lk { opacity: .6; }
.rbmenu { position: fixed; z-index: 70; background: var(--pan2); border: 1px solid var(--line); border-radius: 8px; padding: 4px; display: flex; flex-direction: column; min-width: 220px; box-shadow: 0 10px 30px #0009; }
.rbmenu button { display: flex; align-items: center; gap: 8px; background: none; border: 0; text-align: left; padding: 5px 10px; border-radius: 5px; cursor: pointer; color: var(--tx); white-space: nowrap; } .rbmenu button:hover { background: #ffffff12; } .rbmenu .ri { width: 22px; text-align: center; }
@media (max-width: 1350px) { #ribbon .rb .rl { display: none; } #ribbon .rb { min-width: 34px; } }
#drawer { top: 44px; z-index: 30; }
/* machine card + machine warnings */
.mcard { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 9px; padding: 6px; background: var(--bg); margin: 4px 0 6px; cursor: default; }
.mc-pic { width: 110px; height: 72px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; color: var(--mut); border-radius: 6px; background: radial-gradient(ellipse at 50% 35%, rgba(120,150,190,.22), rgba(0,0,0,0) 70%); }
.mc-pic img { max-width: 100%; max-height: 100%; } .mc-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .mc-txt small { color: var(--mut); display: inline-flex; gap: 4px; align-items: center; }
.mwarn { margin: 6px 0; padding: 6px 8px 6px 22px; border: 1px solid #d2992266; background: #d2992214; border-radius: 7px; color: #e3b341; font-size: 12px; }
.note.ok { color: #3fb950; }
/* U12: blocked post (gouge / rotary limit) */
.pstop{border:1px solid #c0392b;background:rgba(192,57,43,.12);color:inherit;border-radius:6px;padding:8px 12px;margin:6px 0}
.pstop b{color:#e74c3c}.pstop ul{margin:6px 0 0 18px;padding:0}
.btn:disabled,.btn[disabled]{opacity:.4;cursor:not-allowed;filter:grayscale(1)}

/* CAM phase 2.0 (Windfire Admin): panel show / hide / resize, right-click menus */
#main { position: relative; }
.pnl-tg { position: absolute; top: 6px; z-index: 6; width: 22px; height: 22px; padding: 0; border-radius: 11px; border: 1px solid var(--line); background: var(--pan); color: var(--mut); font-size: 12px; line-height: 20px; cursor: pointer; }
.pnl-tg:hover, .pnl-tg:focus-visible { color: #fff; border-color: var(--acc, #3b82f6); }
.pnl-split { position: absolute; top: 0; bottom: 0; width: 6px; z-index: 5; cursor: col-resize; }
.pnl-split:hover { background: #3b82f633; }
#left.collapsed, #props.collapsed { overflow: hidden; cursor: pointer; }
#left.collapsed > *, #props.collapsed > * { visibility: hidden; }
#tree li.nopath .nm { opacity: .55; font-style: italic; }
#tree li:focus-visible { outline: 2px solid var(--acc, #3b82f6); outline-offset: -2px; }
#tree input.rn { width: 100%; font: inherit; padding: 1px 4px; }
.ctxm { position: fixed; z-index: 1000; min-width: 200px; max-width: 320px; padding: 4px; background: #1e2530; border: 1px solid #ffffff22; border-radius: 8px; box-shadow: 0 8px 24px #0008; display: flex; flex-direction: column; }
.ctxi { display: flex; align-items: center; gap: 10px; text-align: left; background: none; border: 0; color: #e6ebf1; padding: 6px 10px; border-radius: 5px; font: inherit; font-size: 13px; cursor: pointer; }
.ctxi:hover, .ctxi:focus { background: #3b82f633; outline: none; }
.ctxi.dis { color: #7d8894; cursor: default; }
.ctxi.dis:hover, .ctxi.dis:focus { background: #ffffff0a; }
.ctxl { flex: 1; } .ctxk { color: #7d8894; font-size: 11px; } .ctxa { color: #7d8894; }
.ctxs { height: 1px; background: #ffffff1a; margin: 4px 6px; }
/* setup WCS (phase 2.0) */
.wcsb { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 6px; } .wcsb .btn.on, #oPick.on { background: var(--acc, #3b82f6); color: #fff; }
.note.warn { color: #fbbf24; }
.boxpick { display: flex; gap: 10px; margin: 4px 0 6px; } .bpz { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--mut); }
.bpg { display: grid; grid-template-columns: repeat(3, 16px); gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 4px; }
.bpg button { width: 16px; height: 16px; padding: 0; border-radius: 50%; border: 1px solid #ffffff40; background: #ffffff10; cursor: pointer; }
.bpg button:hover { border-color: #fff; } .bpg button.on { background: #f97316; border-color: #f97316; }
/* model tree: bodies with show / hide */
#tree li.body .eye { margin-left: auto; background: none; border: 0; color: var(--mut); cursor: pointer; padding: 0 4px; font-size: 13px; }
#tree li.body .eye:hover, #tree li.body .eye:focus-visible { color: var(--acc); }
#tree li.body.hid .nm, #tree li.body.hid .ic { color: var(--mut); opacity: .55; }
/* Design changed after the model was taken */
.designbar { position: absolute; top: 44px; left: 8px; z-index: 6; display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #3a2a10; border: 1px solid #a8741a; border-radius: 6px; color: #ffd9a0; font-size: 13px; max-width: calc(100% - 144px); }
.designbar[hidden] { display: none; }
#tree .tm.busy { display: inline-block; animation: wfspin 1s linear infinite; color: var(--acc); }
@keyframes wfspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #tree .tm.busy { animation: none; } }
/* operation warnings, Fusion-style: icon in the browser, list in the panel, tagged inputs, documentation links */
#tree button.wn { border: 0; cursor: pointer; line-height: 16px; min-width: 20px; }
#tree button.wn.sev-error { background: #e5484d; color: #fff; }
#tree button.wn:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.issues { padding: 6px 10px 2px; display: flex; flex-direction: column; gap: 4px; }
.issue { border: 1px solid #a8741a; background: #3a2a1033; border-radius: 6px; padding: 4px 8px; font-size: 12.5px; }
.issue.sev-error { border-color: #e5484d; background: #e5484d1a; }
.issue summary { cursor: pointer; display: flex; gap: 6px; align-items: baseline; list-style: none; }
.issue summary::-webkit-details-marker { display: none; }
.issue .ii { color: var(--warn); } .issue.sev-error .ii { color: #ff6b6f; }
.issue p { margin: 4px 0; line-height: 1.4; } .issue .im { font-family: inherit; color: var(--tx); opacity: .9; }
.issue .ia { display: flex; gap: 6px; flex-wrap: wrap; } .issue .ia a.btn { text-decoration: none; }
.issue.flash, .flash { animation: wfflash 1.2s ease-out; }
@keyframes wfflash { 0% { box-shadow: 0 0 0 3px var(--acc); } 100% { box-shadow: 0 0 0 0 transparent; } }
.tabs .tabw { margin-left: 4px; font-size: 11px; color: var(--warn); } .tabs .tabw.sev-error { color: #ff6b6f; }
label.haswarn { position: relative; } label.haswarn input, label.haswarn select { outline: 1px solid var(--warn); }
label.haswarn.sev-error input, label.haswarn.sev-error select { outline-color: #e5484d; }
.fwarn { border: 0; background: none; color: var(--warn); cursor: pointer; font-size: 13px; padding: 0 3px; } .fwarn.sev-error { color: #ff6b6f; }
.isspop { position: fixed; z-index: 60; width: 380px; max-width: calc(100vw - 16px); max-height: 70vh; overflow: auto; background: var(--pan, #1b1f26); border: 1px solid #ffffff22; border-radius: 8px; box-shadow: 0 10px 30px #0008; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.isspop .ih { display: flex; justify-content: space-between; align-items: center; padding: 0 2px 4px; }
@media (prefers-reduced-motion: reduce) { .issue.flash, .flash { animation: none; } }
/* NC programs: all setups */
table.pall { border-collapse: collapse; width: 100%; margin: 8px 0; font-size: 13px; } table.pall th, table.pall td { border-bottom: 1px solid #ffffff1a; padding: 4px 6px; text-align: left; }
#dlgPostAll { min-width: 560px; max-width: 92vw; } #dlgPostAll .warn { color: var(--warn); }
/* 3+2 hook: Tool orientation (3+2) block, cam/js/mx/orient.js (CAM batch 3.1) */
.mx-orient { border: 1px solid var(--line, #3a4150); border-radius: 6px; margin: 12px 0 4px; padding: 6px 10px 8px; }
.mx-orient legend { padding: 0 4px; font-weight: 600; }
.mx-orient .badge { font-weight: 400; font-size: 11px; opacity: .8; margin-left: 6px; }
.mx-orient.locked .mx-preview { opacity: .5; pointer-events: none; }
.mx-orient .mx-sols .lbl { display: block; margin: 6px 0 2px; }
.mx-orient .mx-sols label.off { opacity: .5; }
.mx-orient .mx-axis input { width: 5.5em; }

/* finish3d: help link on the 3D finishing panels (Windfire Admin) */
.f3help{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:var(--acc,#e8590c);color:#fff!important;font:700 12px/1 system-ui,sans-serif;text-decoration:none;vertical-align:1px;margin-right:4px}
/* CAM 2.3 (Windfire Admin): "?" help links in panels, per-feature offsets table */
a.help{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-left:6px;border-radius:50%;border:1px solid currentColor;font:600 11px/1 system-ui,sans-serif;text-decoration:none;opacity:.75;vertical-align:middle}
a.help:hover{opacity:1}
table.fo{width:100%;border-collapse:collapse;font-size:12px}table.fo th,table.fo td{padding:2px 4px;text-align:left}table.fo input{width:64px}table.fo tr.ov td:first-child{font-weight:600}

/* cam-visual hook: operation tree status / [T#] / eye / tool changes / drag and drop, one-line legend, Show toggle, height colours (Windfire Admin) */
#tree .ost { width: 14px; flex: 0 0 14px; text-align: center; font-size: 12px; font-weight: 700; line-height: 1; }
#tree .ost.st-ok { color: #3ccf91; } #tree .ost.st-warn { color: var(--warn); } #tree .ost.st-error { color: #ff5d5d; } #tree .ost.st-stale { color: #8e9cff; } #tree .ost.st-off { color: var(--mut); }
#tree .ost.st-calc { color: var(--acc); display: inline-block; animation: wfspin 1.2s linear infinite; }
@media (prefers-reduced-motion: reduce) { #tree .ost.st-calc { animation: none; } }
#tree .otl { color: var(--tx); background: var(--pan2); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; font-size: 10.5px; line-height: 15px; font-weight: 600; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
#tree .oe { padding: 0 4px; font-size: 12px; } #tree li.nopath .oe { opacity: .55; }
#tree .otc { font-size: 10.5px; text-transform: none; letter-spacing: 0; color: var(--mut); margin-left: 6px; white-space: nowrap; }
#tree li.tcm { padding: 0 10px 0 34px; cursor: default; font-size: 10.5px; color: var(--mut); gap: 6px; }
#tree li.tcm span { border-top: 1px dashed #ffffff26; flex: 1; padding-top: 1px; }
#tree li.op[draggable="true"] { cursor: grab; } #tree li.op.dragging { opacity: .45; }
#tree li.droptgt { outline: 2px dashed var(--acc); outline-offset: -2px; }
#otDrop { position: fixed; height: 2px; background: var(--acc); box-shadow: 0 0 0 1px #0006; pointer-events: none; z-index: 50; display: none; }
#otDrop::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
#otToast { position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; background: #1b2330f2; color: #e7edf5; border: 1px solid #ffffff22; border-radius: 8px; padding: 6px 8px 6px 12px; font-size: 12.5px; z-index: 30; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#legend { white-space: nowrap; max-width: calc(100% - 16px); overflow-x: auto; }
#legend .lgrow { display: inline-flex; gap: 10px; align-items: center; }
#legend .lgi { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; } #legend .lgi[hidden] { display: none; }
#legend .lgi i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
#legend .lga b { font-size: 11px; line-height: 1; }
#legend .lgh { display: inline-block; width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 50%; background: #ffffff1c; color: inherit; text-decoration: none; font-weight: 700; }
#vShow { display: inline-flex; align-items: center; gap: 0; margin-left: 6px; }
#vShow .vsl { margin-right: 4px; } #vShow button[aria-pressed="true"] { background: var(--acc); color: #111; }
.otdlg { max-width: 640px; } .otdlg .otcols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .otdlg ol { margin: 4px 0; padding-left: 22px; font-size: 13px; }
.hc-clearance { color: #8e9cff; } .hc-retract { color: #5cc8f0; } .hc-feed { color: #3ccf91; } .hc-top { color: #ffc247; } .hc-bottom { color: #ff6b5b; } /* WindFire height colours: cool in the air, warm in the material */
:root[data-theme="light"] .hc-clearance { color: #5160d8; } :root[data-theme="light"] .hc-retract { color: #1b8fb8; } :root[data-theme="light"] .hc-feed { color: #1e9a66; } :root[data-theme="light"] .hc-top { color: #b07d00; } :root[data-theme="light"] .hc-bottom { color: #d6402f; }
/* end cam-visual */
/* g1 hook: per-operation feeds, speeds and coolant (feeds.js) */
.f.g1f { grid-template-columns: 1fr 110px 44px 22px; } .f.g1f select { grid-column: 2 / 5; }
.f.g1def input { color: var(--mut); } .f.g1def input:focus { color: inherit; }
.g1reset { padding: 2px 4px; }
.g1h { display: flex; align-items: center; gap: 6px; }
.g1help { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: var(--acc, #e8590c); color: #fff !important; font: 700 11px/1 system-ui, sans-serif; text-decoration: none; text-transform: none; letter-spacing: 0; }
.g1fo { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 6px; } .g1fo input:disabled { opacity: .5; }
/* g4 hook: passes and multiple depths (passes-ui.js) */
.g4 { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 4px; } .g4h { display: flex; align-items: center; gap: 6px; }
.f.g4sub > span { padding-left: 14px; } .f.ck.g4sub { padding-left: 14px; } .g4 input:disabled, .g4 select:disabled { opacity: .5; }
/* ribbon groups folded into a dropdown (owner 2026-11-22) */
#ribbon .pn .pnn { display: inline-block; margin-left: 3px; padding: 0 4px; border-radius: 6px; background: #ffffff1a; color: var(--tx); font-size: 9px; letter-spacing: 0; }
#ribbon .pn[aria-expanded="true"] { background: #ffffff14; color: var(--tx); }
#ribbon .grp.folded .mains .rb { min-width: 64px; }
.rbmenu button:focus-visible, .rbmenu button:focus { outline: none; background: #ffffff14; }

/* shared account dialog (js/account.js) on the CAM page (owner 2026-11-22) */
#acctDlg button:not(.acct-x) { background: var(--pan2); color: var(--tx); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; cursor: pointer; } #acctDlg button.pri { background: var(--acc); border-color: var(--acc); color: #111; }

#props [role="tablist"] { flex-wrap: wrap; }
#props [role="tab"] { white-space: nowrap; }
#tabBody h4 {
  padding: 6px 8px;
  border-left: 2px solid var(--acc);
  border-radius: 3px;
  background: var(--pan2);
  color: var(--tx);
}
#opLib { grid-column: 2 / 4; text-align: left; overflow-wrap: anywhere; }
