/* 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; }
/* owner 2026-11-26: the scrub slider gets its own full-width row so every collision marker is clear; the controls sit compactly below */
#simBar { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px 8px; background: #161c23ee; border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px 6px; width: calc(100% - 20px); max-width: 1600px; box-sizing: border-box; flex-wrap: wrap; box-shadow: 0 6px 24px #0009; }
#simBar #simPosWrap { flex: 1 1 100%; min-width: min(50vw, 100%); position: relative; padding-top: 20px; }
#simBar #simPos { display: block; width: 100%; min-width: 0; margin: 0; flex: none; } #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, #tree .sketch-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,
#tree .sketch-eye:hover, #tree .sketch-eye:focus-visible { color: var(--acc); }
#tree .sketch-tree-item { padding-inline-start: 16px; }
#tree .sketch-tree-item.hid .nm { color: var(--mut); }
#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-info { border-color: #60c8c1; background: #60c8c110; }
.issue.sev-info .ii, .wn.sev-info, .tabw.sev-info { color: #60c8c1; }
.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:#1d4ed8;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 #2563eb;background:#dbeafe;color:#1e40af;font:600 11px/1 system-ui,sans-serif;text-decoration:none;opacity:1;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 100px 44px 20px 22px; } .f.g1f select { grid-column: 2 / 6; }
/* owner 2026-11-25: linked speeds and feeds - an Override box after each field, overridden fields marked */
.g1ovr { width: 15px; height: 15px; margin: 0; accent-color: var(--acc, #e8590c); } .g1ovr-none { width: 15px; }
.g1ovrh { margin-left: auto; font-size: 10px; font-weight: 600; color: var(--mut); text-transform: none; letter-spacing: 0; }
.f.g1on input[type="number"] { border-color: var(--acc, #e8590c) !important; box-shadow: inset 3px 0 0 var(--acc, #e8590c); }
.g1mark { display: inline-block; font-size: 9px; font-weight: 700; padding: 0 4px; border-radius: 3px; background: var(--acc, #e8590c); color: #fff; vertical-align: middle; }
.g1flags { margin: 4px 0; padding-left: 18px; color: #ffb347; font-size: 12px; } .g1save { margin: 8px 0 4px; } .g1opt span { font-size: 12px; }
.g1bad { outline: 1px solid #ff6b5b; }
#dlgTools .teb .f.tl-link { grid-template-columns: 1fr 120px 60px 18px; }
.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: #1d4ed8; 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; }

/* auto-hide top bar (owner 2026-11-24): the top bar leaves the layout, so drop its grid row */
body.wf-autohide-top { grid-template-rows: auto 1fr 24px; }

/* "New CAM file: choose a part" (owner 2026-11-24 "redesign it", Windfire Admin) */
dialog.pl-dlg { width: min(760px, 94vw); max-width: 94vw; max-height: min(720px, 90vh); padding: 0; display: none; flex-direction: column; overflow: hidden; border-radius: 12px; background: var(--pan); box-shadow: 0 18px 50px #000a; }
dialog.pl-dlg[open] { display: flex; }
.pl-dlg .pl-head { display: flex; align-items: center; gap: 6px; padding: 14px 16px 2px; }
.pl-dlg .pl-head h3 { margin: 0; flex: 1; font-size: 16px; min-width: 0; }
.pl-dlg .pl-help { text-decoration: none; font-weight: 600; color: #1e40af; background: #dbeafe; border: 1px solid #2563eb; }
.pl-dlg .pl-hint { margin: 2px 16px 10px; font-size: 12px; color: var(--mut); line-height: 1.4; }
.pl-dlg .pl-search { display: flex; align-items: center; gap: 8px; margin: 0 16px 10px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--pan2); }
.pl-dlg .pl-search:focus-within { border-color: var(--acc); }
.pl-dlg .pl-search svg { width: 16px; height: 16px; fill: none; stroke: var(--mut); stroke-width: 2; flex: none; }
.pl-dlg .pl-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; padding: 8px 0; font: inherit; outline: none; }
.pl-dlg .pl-body { flex: 1; min-height: 0; overflow: auto; padding: 0 16px 8px; border-top: 1px solid var(--line); }
.pl-dlg h4 { position: sticky; top: 0; z-index: 1; margin: 0; padding: 10px 0 6px; background: var(--pan); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.pl-dlg .pl-n { margin-left: 4px; padding: 0 6px; border-radius: 9px; background: var(--pan2); color: var(--tx); font-size: 11px; letter-spacing: 0; }
.pl-dlg .pl-n:empty { display: none; }
.pl-dlg ul.pl { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 6px; }
.pl-dlg ul.pl li.hint { grid-column: 1 / -1; padding: 6px 2px; color: var(--mut); font-size: 12px; }
.pl-dlg .pl-card { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--pan2); color: inherit; font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.pl-dlg .pl-card:hover { border-color: #3d4b5a; background: #222c37; }
.pl-dlg .pl-card:focus-visible { outline: none; border-color: var(--acc); box-shadow: 0 0 0 2px #ff7a1a44; }
.pl-dlg .pl-ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: #2f81f71f; }
.pl-dlg .pl-ico.surface { background: #ff7a1a1f; }
.pl-dlg .pl-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.pl-dlg .pl-ico.surface svg { stroke: var(--acc); }
.pl-dlg .pl-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pl-dlg .pl-nm { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-dlg .pl-txt small { font-size: 11px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-dlg .pl-go { flex: none; color: var(--mut); font-size: 18px; line-height: 1; }
.pl-dlg .pl-card:hover .pl-go { color: var(--acc); }
.pl-dlg .pl-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--pan); }
.pl-dlg .pl-foot .sp { flex: 1; }

/* owner 2026-11-24: tool preview in the tool library */
#dlgTools .tsk-box { display: flex; justify-content: center; padding: 6px 0 2px; border-bottom: 1px solid var(--line); background: #0f141a; }
#dlgTools .tsk .tsk-h { fill: #2a3440; stroke: #3d4b5a; } #dlgTools .tsk .tsk-c { fill: #b9c3cf; stroke: #e6edf3; stroke-width: .8; }
#dlgTools .tsk .tsk-fl { fill: #ff7a1a33; stroke: none; } #dlgTools .tsk .tsk-th { stroke: #5b6673; stroke-width: .7; fill: none; }

.smop [data-smpick][aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: #111; }
.cam-pick-target {
  position: absolute;
  left: 50%;
  bottom: 3.5rem;
  transform: translateX(-50%);
  max-width: 80%;
  padding: 0.25rem 0.6rem;
  border: 1px solid #22d3ee;
  border-radius: 0.35rem;
  color: #eefbff;
  background: #111d2b;
  pointer-events: none;
  z-index: 5;
}

/* coord-487: the value and offset beside a dragged height plane */
.cam-height-tip { position: absolute; padding: 0.2rem 0.5rem; border-radius: 0.35rem; border: 1px solid var(--hc, #3e8ef7); border-left-width: 4px;
  background: #0f1419ee; color: #fff; font: 600 12px system-ui, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; z-index: 6; }
.cam-height-tip small { display: block; font-weight: 500; opacity: .8; } .cam-height-tip small.warn { color: #ffb4a8; opacity: 1; }
[data-stop-plane].sel > summary { box-shadow: inset 3px 0 0 #3e8ef7; font-weight: 600; } /* owner 2026-11-25: the selected Stop plane (its triad shows in the view) */

/* Project tree disclosures */
#tree li.tree-group { display: block; padding: 0; cursor: default; }
#tree .tree-group > ul { list-style: none; margin: 0; padding: 0 0 0 12px; }
#tree li.setup-h, #tree li.model-h { flex-wrap: wrap; cursor: pointer; }
#tree .tree-caption, #tree .tree-count { flex: 0 0 auto; }
#tree .tree-orientation { overflow-wrap: anywhere; }
#tree .tree-filename { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tree .tree-role-summary { flex: 1 1 100%; padding-inline-start: 16px; margin: 0; }
#tree .tree-arrow { min-width: 16px; min-height: 20px; padding: 0; color: var(--tx); appearance: none; background: none; border: 0; font: inherit; cursor: pointer; }
#tree .tree-arrow:hover { color: var(--acc); }
#tree li.tree-body-summary { cursor: default; }

/* Operation folders sit in the same machining tree as their operations. */
#tree li.op-folder, #tree li.operations-h { cursor: pointer; }
#tree li.op-folder .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#tree li.op-folder.sup .nm { color: var(--mut); }
#tree li.op-folder.droptgt, #tree li.operations-h.droptgt { outline: 1px solid var(--acc); outline-offset: -1px; }

/* Template capture selection is separate from the operation being edited. */
#tree .op[aria-selected="true"] { outline: 2px solid var(--acc); outline-offset: -2px; }

/* Bind template selections beside the viewport without trapping the geometry picker. */
#g11BindTemplate.template-binding {
  position: fixed; inset: 8em 0 auto auto; margin: 0 12px 0 0; z-index: 110;
  width: min(365px, calc(100vw - 24px)); min-width: 0; max-height: min(66vh, 680px); overflow: auto;
}
.template-binding .template-binding-slots { display: grid; gap: 8px; }
.template-binding fieldset { border: 1px solid var(--line); padding: 8px; min-width: 0; }
.template-binding legend { font-weight: 600; }
.template-binding-targets { display: flex; flex-wrap: wrap; gap: 4px; }

/* owner 2026-11-25: Generate + Auto in the operation panel */
.ptitle .pgen { display: inline-flex; gap: 6px; align-items: center; margin-left: auto; white-space: nowrap; }
.ptitle .pgen .chk { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; }
/* owner 2026-11-25: simulation speed slider and view toggles */
#simBar .simspd { display: inline-flex; align-items: center; gap: 6px; }
#simBar .simspd input { width: 90px; }
#simBar .simspd output { min-width: 3.2em; font-variant-numeric: tabular-nums; font-size: 12px; }
#simBar #simTxt { min-width: 3.2em; font-variant-numeric: tabular-nums; font-size: 12px; }
#simBar #simCol { margin-left: auto; } #simBar #simCol[hidden] + * { margin-left: auto; }
/* owner 2026-11-26: Model / Cut stock / See-through live in a small View pill; the switch opens on hover, focus or tap */
#simBar .simview { position: relative; display: inline-flex; font-size: 12px; white-space: nowrap; }
#simBar #simViewBtn { white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
#simBar #simViewBtn[aria-expanded="true"] { background: #ffffff1f; }
#simBar .simviewpop { position: absolute; left: 0; bottom: 100%; padding-bottom: 6px; z-index: 6; } /* the padding bridges the gap, so the pointer can reach it */
#simBar .simviewpop[hidden] { display: none; }
#simBar .simviewpop::before { content: ''; position: absolute; inset: 0 0 6px 0; background: #161c23f7; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px #0009; z-index: -1; }
#simBar .simviewpop .chk { display: flex; align-items: center; gap: 6px; padding: 6px 12px 0; }
#simBar .simviewpop .chk:last-child { padding-bottom: 8px; }
#simBar .simviewpop .chk:first-child { padding-top: 8px; }
/* collision / gouge markers over the scrub track: inset by half the thumb so a marker sits where the thumb lands */
#simBar #simMarks { position: absolute; left: 8px; right: 8px; top: 0; height: 20px; pointer-events: none; }
#simBar #simMarks i { position: absolute; top: 9px; width: 4px; height: 11px; margin-left: -2px; border-radius: 2px; cursor: pointer; pointer-events: auto; box-shadow: 0 0 0 1px #0b0f14; }
#simBar #simMarks i.lane1 { top: 0; height: 8px; }
#simBar #simMarks i:hover, #simBar #simMarks i:focus-visible { transform: scaleX(1.6); outline: none; box-shadow: 0 0 0 1px #fff; }
/* narrow windows: the 3D view is too small for a usable scrub slider, so the bar spans the window above the status line */
@media (min-width: 761px) and (max-width: 1000px) { #simBar { position: fixed; left: 8px; right: 8px; bottom: 30px; transform: none; width: auto; max-width: none; z-index: 20; background: #161c23; } #simBar #simPosWrap { min-width: 0; } body:has(#simBar:not([hidden])) :is(#left, #props) { padding-bottom: 120px; } /* review: the panels' last rows scroll clear of the full-width bar */ }
@media (max-width: 700px) { #simBar .simspd input { width: 64px; } #simBar #simViewBtn { max-width: 150px; } }

/* Measure (cam-measure.js): the readout panel and the labels over the canvas; same look as Design's Inspect > Measure */
#camMeasure { position: absolute; top: 134px; right: 8px; width: 300px; max-height: calc(100% - 150px); overflow: auto; background: var(--pan); border: 1px solid var(--line); border-radius: 10px; padding: 10px; z-index: 14; box-shadow: 0 10px 30px #0009; font-size: 12px; line-height: 1.6; }
#camMeasure[hidden], #camMeasureLabels:empty { display: none; }
#camMeasure select { background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 3px; color: inherit; }
#camMeasure .mf { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0 6px; }
#camMeasure .mf button { background: var(--bg); color: inherit; border: 1px solid var(--line); border-radius: 12px; padding: 2px 9px; font-size: 11px; cursor: pointer; }
#camMeasure .mf button.on { background: #1f6feb; border-color: #1f6feb; color: #fff; }
#camMeasure .mr { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
#camMeasure .big { font-size: 15px; font-weight: 700; }
#camMeasure .mut, #camMeasure .msel { opacity: .7; font-size: 11px; }
#camMeasure .ftag { font-size: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 0 5px; opacity: .8; }
#camMeasure .mtools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 2px; }
#camMeasure .mtools label { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--mut); }
#camMeasure .mtools button { font-size: 11px; background: var(--bg); color: inherit; border: 1px solid var(--line); border-radius: 5px; padding: 2px 8px; cursor: pointer; }
#camMeasure .mtools button[aria-pressed="true"] { background: #1f6feb; border-color: #1f6feb; color: #fff; }
#camMeasure .mtools .seg { display: inline-flex; gap: 0; } #camMeasure .mtools .seg button { border-radius: 0; margin: 0; } #camMeasure .mtools .seg button:first-child { border-radius: 5px 0 0 5px; } #camMeasure .mtools .seg button:last-child { border-radius: 0 5px 5px 0; }
#camMeasure .row.end button { background: var(--bg); color: inherit; border: 1px solid var(--line); border-radius: 5px; padding: 3px 10px; cursor: pointer; }
#camMeasure .cm-help { float: right; width: 18px; height: 18px; line-height: 16px; text-align: center; border: 1px solid #2563eb; border-radius: 50%; color: #1e40af; background: #dbeafe; text-decoration: none; font-size: 11px; }
#camMeasureLabels { position: absolute; inset: 0; pointer-events: none; z-index: 15; overflow: hidden; }
#camMeasureLabels .ml { position: absolute; left: 0; top: 0; padding: 2px 7px; border-radius: 6px; font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; color: #fff; background: #1b2230e6; border: 1px solid #ff9f1c; box-shadow: 0 2px 10px #0007; }
#camMeasureLabels .ml.x { border-color: #e5484d; color: #ffb4b6; } #camMeasureLabels .ml.y { border-color: #46a758; color: #b6efc2; } #camMeasureLabels .ml.z { border-color: #3e8ed0; color: #b9dbff; }

/* Engineering plan hint, using the existing WindFire ribbon. */
.englock { opacity:.8; font-size:.78em; white-space:nowrap; }
/* owner 2026-11-25: the setup tree's secondary text was too faint, and setup names did not stand out */
#tree li.hd { color: color-mix(in srgb, var(--tx) 78%, transparent); }
#tree .hd .sub, #tree .otc { opacity: 1; color: color-mix(in srgb, var(--tx) 82%, transparent); font-size: 12px; }
#tree li.setup-h { color: var(--tx); font-size: 13px; font-weight: 700; letter-spacing: .04em; margin-top: 6px; padding-top: 7px; padding-bottom: 7px;
  background: color-mix(in srgb, var(--acc) 13%, transparent); border-left: 3px solid var(--acc); border-radius: 4px; }
#tree li.setup-h .sub, #tree li.setup-h .otc { font-weight: 500; }
#tree .hd.setup-o { opacity: 1; }
#tree li.setup-h.setup-o { background: color-mix(in srgb, var(--tx) 6%, transparent); border-left-color: var(--line); }
:root { --wf-toast-bottom: 110px; }
@media (min-width: 761px) and (max-width: 1000px) { :root:has(#simBar:not([hidden])) { --wf-toast-bottom: 200px; } } /* review 2026-11-26: the full-width simulation bar (fixed, bottom 30px, wraps) sits under the toast here */ /* owner 2026-11-26: save notification above the toolpath legend, the undo toast and the simulation bar */
/* owner 2026-11-26: setup Position tab - stock and fixtures on the machine table (cam/js/placement-ui.js) */
.pt-wrap { margin: 6px 0; background: #0f1419; border: 1px solid var(--line); border-radius: 8px; padding: 4px; touch-action: none; }
#ptSvg { display: block; width: 100%; height: auto; max-height: 340px; user-select: none; }
#ptSvg * { vector-effect: non-scaling-stroke; }
#ptSvg .pt-table { fill: #3a4350; stroke: #8b95a3; stroke-width: 1.5; }
#ptSvg .pt-zone { fill: #2f81f722; stroke: #2f81f7aa; stroke-width: 1; stroke-dasharray: 4 3; }
#ptSvg .pt-slot { stroke: #1d252e; stroke-width: 3; } #ptSvg .pt-axis { stroke: #ffffff18; stroke-width: 1; stroke-dasharray: 3 4; }
#ptSvg .pt-stock { fill: #5aa0e655; stroke: #5aa0e6; stroke-width: 2; cursor: grab; } #ptSvg .pt-stock.pt-dash { stroke-dasharray: 6 4; fill: #5aa0e622; }
#ptSvg .pt-fx polygon { fill: #e8833a66; stroke: #ff9a4d; stroke-width: 1.5; cursor: grab; } #ptSvg .pt-body { fill: #e8833a22; stroke: #ff9a4d; stroke-width: 1; stroke-dasharray: 3 3; }
#ptSvg .on, #ptSvg .pt-fx.on polygon { stroke: #fff; } #ptSvg [data-drag]:focus { outline: none; } #ptSvg [data-drag]:focus-visible, #ptSvg .pt-fx:focus-visible polygon { stroke: #fff; stroke-width: 3; }
#ptSvg .pt-home path { stroke: #ffb02e; stroke-width: 2; fill: none; } #ptSvg .pt-home circle { fill: #ffb02e; }
#ptSvg .pt-wcs circle { fill: #fff; } #ptSvg .pt-wx { stroke: #ff4d4d; stroke-width: 2; } #ptSvg .pt-wy { stroke: #3ddc84; stroke-width: 2; }
#ptSvg .pt-snap { stroke: #ff7a1a; stroke-width: 1; stroke-dasharray: 4 3; } #ptSvg .pt-dt { fill: var(--mut); }
.pt-leg { flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--mut); } .pt-li { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; } .pt-k { display: inline-block; width: 12px; height: 8px; border-radius: 2px; }
.pt-k-stock { background: #5aa0e6; } .pt-k-fx { background: #ff9a4d; } .pt-k-home { background: #ffb02e; } .pt-k-wcs { background: #fff; } .pt-k-slot { background: #1d252e; border: 1px solid #8b95a3; }
.pt-fxrow { border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; margin: 6px 0; }
.pt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin: 4px 0; } .pt-in { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--mut); min-width: 0; }
.pt-iu { display: flex; align-items: center; gap: 4px; } .pt-iu input { flex: 1; min-width: 0; width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; color: var(--tx); } .pt-iu em { font-style: normal; font-size: 11px; color: var(--mut); }
/* owner 2026-11-26: setup Post settings tab (cam/js/postsettings-ui.js) */
.ps-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 6px 0 8px; }
.ps-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 22px; gap: 6px; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--pan2); }
.ps-row:last-child { border-bottom: 0; } .ps-row.sub .ps-l { padding-left: 12px; color: var(--mut); }
.ps-row.over { background: color-mix(in srgb, var(--acc) 10%, var(--pan2)); box-shadow: inset 3px 0 0 var(--acc); }
.ps-l { font-size: 12.5px; } .ps-chg { font-style: normal; font-size: 10px; color: var(--acc); border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent); border-radius: 999px; padding: 0 5px; margin-left: 3px; }
.ps-bad { grid-column: 1 / -1; color: #e5484d; font-size: 11px; }
.ps-tg { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12px; } .ps-tg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ps-sw { width: 28px; height: 16px; border-radius: 999px; background: var(--line); position: relative; } .ps-sw::after { content: ''; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: left .12s; }
.ps-tg input:checked + .ps-sw { background: var(--acc); } .ps-tg input:checked + .ps-sw::after { left: 14px; } .ps-tg input:focus-visible + .ps-sw { outline: 2px solid var(--acc); outline-offset: 2px; } .ps-tg input:disabled + .ps-sw { opacity: .45; }
.ps-seg { margin: 0; } .ps-seg button { font-size: 11.5px; padding: 3px 8px; }
.ps-num { width: 84px; } .ps-txt { width: 150px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; } .ps .bad { border-color: #e5484d; }
.ps-reset { background: none; border: 1px solid var(--line); border-radius: 6px; color: var(--acc); cursor: pointer; padding: 0 4px; line-height: 18px; }
.ps-prev { margin: 4px 0 0; padding: 6px 8px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font: 11.5px/16px ui-monospace, Menlo, Consolas, monospace; color: var(--tx); max-height: 260px; overflow: auto; white-space: pre; }

/* Advanced Swarf: one grouped form, using the existing WindFire palette. */
.advanced-swarf-section{min-width:0;margin:14px 0;padding:10px 0;border:0;border-top:1px solid var(--line)}
.advanced-swarf-section legend{font-weight:650;padding:0 5px 0 0;max-width:100%;overflow-wrap:anywhere}
.advanced-swarf-section fieldset{min-width:0;margin:12px 0;padding:10px 0 0;border:0;border-top:1px solid var(--line)}
.advanced-swarf-section .f:not(.ck){grid-template-columns:minmax(0,1fr) 110px auto}
.advanced-swarf-section .hint{overflow-wrap:anywhere}
.advanced-swarf-section table{width:100%;border-collapse:collapse;font-size:11px}
.advanced-swarf-section th,.advanced-swarf-section td{padding:5px 3px;border-bottom:1px solid var(--line);text-align:left;overflow-wrap:anywhere}
.advanced-swarf-section th{font-weight:500;color:var(--mut)}

/* owner 2026-11-26: 5-axis strategy preview card and example viewer (js/mx/strategy-preview-ui.js) */
.spv { position: relative; margin: 8px 12px 0; }
.spv-card { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 76px; max-height: 84px; padding: 6px 30px 6px 6px; background: var(--pan2); color: var(--tx); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; text-align: left; font: inherit; }
.spv-card:hover { border-color: color-mix(in srgb, var(--acc) 55%, var(--line)); }
.spv-card:focus-visible, .spv-link:focus-visible, .spv-hide:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.spv-card img { flex: none; width: 112px; height: 63px; border-radius: 5px; background: radial-gradient(ellipse at 50% 40%, #26303b, var(--bg)); object-fit: cover; }
.spv-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.spv-txt b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spv-cap { font-size: 12px; color: var(--mut); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spv-tag { align-self: flex-start; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 55%, transparent); border-radius: 4px; padding: 0 5px; line-height: 15px; }
.spv-open { position: absolute; right: 9px; bottom: 7px; color: var(--mut); font-size: 13px; }
.spv-hide { position: absolute; top: 4px; right: 4px; background: none; border: 0; color: var(--mut); cursor: pointer; padding: 2px 6px; border-radius: 4px; font-size: 11px; }
.spv-hide:hover { color: var(--tx); background: var(--pan); }
.spv-min { margin-top: 4px; }
.spv-link { background: none; border: 0; padding: 2px 0; color: var(--blue); cursor: pointer; font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }
dialog.spv-dlg { width: min(760px, 94vw); max-height: 92vh; padding: 12px 14px; overflow: auto; }
.spv-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .spv-head h3 { margin: 0; flex: 1; font-size: 15px; } .spv-head .spv-tag { align-self: center; }
.spv-stage { position: relative; height: min(52vh, 420px); min-height: 220px; border-radius: 8px; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, #232c36, var(--bg)); border: 1px solid var(--line); }
.spv-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; } .spv-stage canvas:active { cursor: grabbing; }
.spv-fallback { width: 100%; height: 100%; object-fit: contain; }
.spv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 4px; }
.spv-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mut); }
.spv-legend > i { width: 120px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #2f81f7, #2ec4b6 33%, #ffb02e 67%, #ff6a1a); }
.spv-key { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; } .spv-key i { width: 18px; border-top: 2px dashed #9aa6b4; }
.spv-dlg p { margin: 6px 0; line-height: 1.45; }
@media (max-width: 800px) { .spv-card img { width: 96px; height: 54px; } dialog.spv-dlg { padding: 10px; } .spv-stage { height: 46vh; } }
/* owner 2026-11-26: five-axis strategy group A form (js/mx/fivex/form.js) */
.fx-hold { margin: 0 0 8px; padding: 6px 8px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--warn) 55%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); color: var(--tx); font-size: 12px; line-height: 1.4; }
.fx-blurb { margin-top: 0; }
.fx-contact { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.fx-contact-f { flex: 1; min-width: 180px; }
.fx-tool { flex: none; background: var(--pan2); border: 1px solid var(--line); border-radius: 8px; }
.fx-tool .fx-cutter { fill: color-mix(in srgb, var(--mut) 35%, transparent); stroke: var(--tx); stroke-width: 1.2; }
.fx-tool .fx-shank { fill: color-mix(in srgb, var(--mut) 18%, transparent); stroke: var(--mut); stroke-width: 1; }
.fx-tool .fx-dash { stroke: var(--blue); stroke-width: 1; stroke-dasharray: 3 2; }
.fx-tool .fx-ref { fill: none; stroke: var(--blue); stroke-width: 2; }
.fx-tool .fx-cut { fill: #ff8a1a; stroke: #fff; stroke-width: 1; }
.fx-tool .fx-lbl { fill: var(--mut); font-size: 10px; }
.fx-fam { border: 1px solid var(--line); border-radius: 6px; margin: 6px 0; padding: 4px 8px; } .fx-fam legend { font-size: 12px; color: var(--mut); }
.fx-curves { max-height: 160px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; margin: 4px 0; }
.fx-simres ul { margin: 6px 0; padding-left: 18px; font-size: 12px; } .fx-ok { color: var(--tx); }

/* Advanced Swarf: one grouped form, using the existing WindFire palette. */
.advanced-swarf-section{min-width:0;margin:14px 0;padding:10px 0;border:0;border-top:1px solid var(--line)}
.advanced-swarf-section legend{font-weight:650;padding:0 5px 0 0;max-width:100%;overflow-wrap:anywhere}
.advanced-swarf-section fieldset{min-width:0;margin:12px 0;padding:10px 0 0;border:0;border-top:1px solid var(--line)}
.advanced-swarf-section .f:not(.ck){grid-template-columns:minmax(0,1fr) 110px auto}
.advanced-swarf-section .hint{overflow-wrap:anywhere}
.advanced-swarf-section table{width:100%;border-collapse:collapse;font-size:11px}
.advanced-swarf-section th,.advanced-swarf-section td{padding:5px 3px;border-bottom:1px solid var(--line);text-align:left;overflow-wrap:anywhere}
.advanced-swarf-section th{font-weight:500;color:var(--mut)}


/* Contact/reference controls share the WindFire drawer palette and wrap before
   the tool picture can squeeze the dimension controls out of a narrow panel. */
.tc-box,.lr-box{min-width:0;max-width:100%;box-sizing:border-box;margin:12px 0;padding:10px;border:1px solid var(--line);border-top:2px solid var(--acc);border-radius:8px}
.tc-box legend,.lr-box legend{max-width:100%;padding:0 5px;font-weight:600;overflow-wrap:anywhere}
.tc-box .tc-row{flex-wrap:wrap}
.tc-box .tc-pic{flex:0 0 98px;min-width:0;max-width:100%;margin-inline:auto}
.tc-box .tc-pic .tsk{display:block;width:98px;max-width:100%;height:auto}
.tc-box .tc-ctl{flex-basis:220px!important;max-width:100%}
.tc-box .f{grid-template-columns:minmax(100px,1fr) minmax(0,110px) 24px}
.tc-box .f>span,.lr-box .f>span{color:var(--tx);overflow-wrap:anywhere}
.tc-box .f input,.tc-box .f select,.lr-box .f select{color:var(--tx);box-sizing:border-box}
.lr-box .f{grid-template-columns:minmax(0,1fr)}
.lr-box .f select{grid-column:1}
.tc-box .hint,.lr-box .hint{overflow-wrap:anywhere}
.tc-box .tsk-h{fill:var(--line);stroke:var(--mut)}
.tc-box .tsk-c{fill:var(--mut);stroke:var(--tx);stroke-width:.8}
.tc-box .tsk-fl{fill:var(--acc);fill-opacity:.2;stroke:none}
.tc-box .tsk-th{fill:none;stroke:var(--mut);stroke-width:.7}
.tc-box .tsk-ref circle,.tc-box .tsk-ref path{stroke:var(--blue)}
.tc-box .tsk-ct line{stroke:var(--acc)}
.tc-box .tsk-ct circle{fill:var(--acc)}

/* Help is informational; warning/error selectors and theme accent remain unchanged. */
.f3help:focus-visible,.g1help:focus-visible,a.help:focus-visible,#camMeasure .cm-help:focus-visible,.pl-dlg .pl-help:focus-visible{outline:2px solid #60a5fa;outline-offset:2px}
/* WindFire operation Axis tab: bounded guide columns and wrapping operation tabs. */
.fx-axis-guide .row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.fx-axis-guide label{min-width:0}.fx-axis-guide input{width:100%;min-width:0}
#props>.tabs{flex-wrap:wrap}

.turning-library {width:min(860px,94vw);max-height:85vh;overflow:auto}
.turning-library header,.turning-library footer {display:flex;align-items:center;justify-content:space-between;gap:12px}
.turning-library label {display:inline-flex;gap:8px;align-items:center;margin:0 12px 8px 0}
.turning-catalog-table {overflow-x:auto}
.turning-catalog-table table {width:100%;border-collapse:collapse}
.turning-catalog-table :is(td,th) {padding:6px;text-align:start;border-bottom:1px solid var(--line,#77808855)}
.turning-library footer {justify-content:flex-end;margin-top:12px}
