/* WindFire Design (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; --ok: #4cc38a; --work-hi: #263243; --work-lo: #10161c; --float: #10161ce6; --float-soft: #0f1419cc; --overlay: #0f1419b3; --subtle: #ffffff10; --secondary-tx: #c9d3dd; --danger: #ff6b6b; --paper-field: #2a2f36; 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 58px 24px; overflow: hidden; }
button, input, select { 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 9px; font-size: 12px; }
.btn.danger, button.danger { color: var(--danger); border-color: var(--danger)66; }
.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 { background: none; border: 0; cursor: pointer; font-size: 15px; padding: 4px 6px; border-radius: 6px; white-space: nowrap; } #appSwB b { color: var(--acc); } #appSwB:hover { background: var(--pan2); }
#appMenu { position: absolute; top: 36px; left: 0; z-index: 40; background: var(--pan2); border: 1px solid var(--line); border-radius: 8px; padding: 4px; width: 260px; 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: var(--subtle); }
#projName { background: transparent; border: 1px solid transparent; border-radius: 5px; padding: 4px 6px; width: 200px; } #projName:hover, #projName:focus { border-color: var(--line); }
#units { background: var(--pan2); border: 1px solid var(--line); border-radius: 5px; padding: 3px 4px; }
#expW { position: relative; } #expMenu { position: absolute; right: 0; top: 34px; z-index: 40; background: var(--pan2); border: 1px solid var(--line); border-radius: 8px; padding: 4px; display: flex; flex-direction: column; min-width: 140px; box-shadow: 0 8px 30px #0008; }
#expMenu button { background: none; border: 0; text-align: left; padding: 7px 10px; border-radius: 5px; cursor: pointer; } #expMenu button:hover { background: var(--subtle); }
#acct.in { color: #7ee2a8; }
#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; }
#ribbon .tabs { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 4px 10px; border-right: 1px solid var(--line); }
#ribbon .tab { font: 700 11px system-ui; letter-spacing: .08em; color: var(--mut); padding: 2px 6px; border-radius: 4px; } #ribbon .tab.on { color: var(--tx); background: var(--subtle); } #ribbon .tab.sk.on { background: var(--blue); color: #fff; }
#ribbon .grp { display: flex; flex-direction: column; padding: 3px 6px 2px; border-right: 1px solid var(--line); align-items: center; }
#ribbon .grp.end { margin-left: auto; justify-content: center; border: 0; padding: 4px 8px; }
#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: var(--subtle); color: var(--tx); } #ribbon .pn.dim { cursor: default; }
.rb { display: flex; flex-direction: column; align-items: center; gap: 0; background: none; border: 1px solid transparent; border-radius: 6px; padding: 2px 6px; cursor: pointer; font-size: 11px; min-width: 50px; white-space: nowrap; color: var(--secondary-tx); }
.rb .ri { font-size: 19px; line-height: 23px; color: var(--tx); } .rb:hover:not(:disabled) { background: var(--subtle); border-color: var(--line); } .rb.on { background: #ff7a1a26; border-color: #ff7a1a88; } .rb:disabled { opacity: .4; cursor: default; }
.fin { font-size: 12px; letter-spacing: .03em; }
#panelMenu { 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: 240px; max-height: 70vh; overflow: auto; box-shadow: 0 10px 30px #0009; }
#panelMenu button { display: flex; align-items: center; gap: 8px; background: none; border: 0; text-align: left; padding: 5px 10px; border-radius: 5px; cursor: pointer; white-space: nowrap; } #panelMenu button:hover { background: var(--subtle); }
#panelMenu .ri { width: 22px; text-align: center; font-size: 15px; } #panelMenu kbd { margin-left: auto; color: var(--mut); font: 11px ui-monospace, monospace; border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; } #panelMenu hr { border: 0; border-top: 1px solid var(--line); margin: 3px 4px; }
@media (max-width: 1350px) { .rb .rl { display: none; } .rb { min-width: 34px; } }
#main { display: grid; grid-template-columns: 210px 1fr; min-height: 0; }
#left { background: var(--pan); border-right: 1px solid var(--line); overflow: auto; }
#browser { list-style: none; margin: 0; padding: 6px 0; }
#browser li { display: flex; align-items: center; gap: 6px; padding: 4px 10px; } #browser li.hd { color: var(--mut); text-transform: uppercase; font-size: 11px; letter-spacing: .05em; padding-top: 12px; }
#browser li.it { cursor: pointer; } #browser li.it:hover { background: var(--subtle); } #browser li.sel { background: #ff7a1a22; box-shadow: inset 3px 0 var(--acc); }
#browser .ic { width: 18px; text-align: center; color: var(--mut); } #browser .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #browser .empty { color: var(--mut); font-style: italic; } #browser .warn { color: var(--warn); cursor: default; }
#browser label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
#vpw { position: relative; min-width: 0; min-height: 0; background: radial-gradient(ellipse at 50% 30%, var(--work-hi), var(--work-lo) 75%); overflow: hidden; }
#vp { position: absolute; inset: 0; }
#labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#labels > div { position: absolute; left: 0; top: 0; pointer-events: auto; white-space: nowrap; user-select: none; }
.dim { background: var(--float-soft); border: 1px solid var(--line); color: var(--tx); border-radius: 4px; padding: 0 5px; font: 600 12px/18px ui-monospace, Menlo, Consolas, monospace; cursor: pointer; }
.dim:hover, .dim.sel { border-color: var(--acc); color: var(--acc); }
.glyph { background: #2f81f7; color: #fff; border-radius: 3px; min-width: 14px; height: 14px; padding: 0 2px; font: 700 10px/14px system-ui; text-align: center; cursor: pointer; opacity: .9; }
.glyph.sel { background: var(--acc); }
#vtools { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
#vtools button { background: var(--float-soft); border: 1px solid var(--line); border-radius: 5px; padding: 3px 8px; cursor: pointer; font-size: 12px; }
.sk-only { display: none; } body.sketching .sk-only { display: inline-block; }
#skInfo { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); background: var(--float); border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px; font-size: 12px; }
.okc { color: var(--ok); } .warn { color: var(--warn); }
#pickHint { position: absolute; top: 46px; left: 50%; transform: translateX(-50%); background: var(--acc); color: #111; font-weight: 600; border-radius: 16px; padding: 4px 14px; }
#dimBox { position: absolute; z-index: 20; background: var(--pan2); border: 1px solid var(--acc); border-radius: 8px; padding: 6px 8px; display: flex; gap: 6px; align-items: center; box-shadow: 0 8px 24px #0009; }
#dimBox label { display: flex; gap: 6px; align-items: center; } #dimBox input { width: 90px; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; } #dimBox input.bad { border-color: var(--danger); } #dimBox em { color: var(--mut); font-style: normal; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; } .seg button { background: none; border: 0; padding: 4px 10px; cursor: pointer; } .seg button:hover { background: var(--acc); color: #111; }
#dlg { position: absolute; top: 8px; right: 8px; width: 300px; max-height: calc(100% - 16px); overflow: auto; background: var(--pan); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px #0009; z-index: 15; }
#dlg .dh { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); } #dlg .dh input { flex: 1; background: transparent; border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; font-weight: 600; } #dlg .ty { color: var(--mut); font-size: 12px; }
#dlg .db { padding: 8px 10px; } #dlg .dmsg { padding: 6px 10px; font-size: 12px; color: var(--mut); border-top: 1px solid var(--line); } #dlg .dmsg.warn { color: var(--warn); }
#dlg .df { display: flex; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--line); } #dlg .df .sp { flex: 1; }
.f { display: grid; grid-template-columns: 1fr 100px auto; align-items: center; gap: 6px; margin: 5px 0; } .f > span { color: var(--secondary-tx); } .f em { color: var(--mut); font-style: normal; font-size: 11px; min-width: 18px; }
.f input, .f 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 input.bad { border-color: var(--danger); }
.f.ck { grid-template-columns: auto 1fr; } .f.ck input { width: auto; }
.hint { color: var(--mut); font-size: 12px; margin: 4px 0 8px; } .note { color: var(--mut); font-size: 12px; }
.chks { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; } .chks label { display: flex; gap: 6px; align-items: center; }
#coord { position: absolute; right: 10px; bottom: 8px; color: var(--mut); font: 12px ui-monospace, Menlo, monospace; background: var(--float-soft); padding: 2px 8px; border-radius: 5px; }
#bld { position: absolute; left: 10px; bottom: 8px; color: var(--mut); font-size: 12px; display: flex; gap: 6px; align-items: center; }
#busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--overlay); font-size: 14px; z-index: 30; }
.spin { width: 22px; height: 22px; border: 3px solid #ffffff33; border-top-color: var(--acc); border-radius: 50%; animation: sp .8s linear infinite; } .spin.sm { width: 12px; height: 12px; border-width: 2px; } @keyframes sp { to { transform: rotate(360deg); } }
#timeline { display: flex; gap: 4px; align-items: center; padding: 6px 10px; background: var(--pan); border-top: 1px solid var(--line); overflow-x: auto; }
.tl { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; max-width: 96px; height: 48px; background: var(--pan2); border: 1px solid var(--line); border-radius: 7px; cursor: pointer; padding: 2px 6px; }
.tl span { font-size: 17px; line-height: 20px; } .tl small { font-size: 10px; color: var(--mut); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl:hover { border-color: #3d4b5a; } .tl.cur { border-color: var(--acc); background: #ff7a1a22; } .tl.off { opacity: .45; } .tl.err { border-color: var(--danger); } .tl.err small { color: var(--danger); }
.tlhint { color: var(--mut); font-style: italic; }
.tl.related { border-style: dashed; color: var(--mut); }
.tl[draggable="true"] { cursor: grab; }
.tl.tl-drop { border-color: var(--acc); }
.tl-filter { display: flex; position: sticky; left: 0; z-index: 1; align-items: center; gap: 8px; flex: 0 0 auto; max-width: min(40vw, 210px); padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--pan); color: var(--tx); cursor: pointer; }
.tl-filter b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#browser li.doc, #browser li.comp { cursor: pointer; }

#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; }
#ctx { position: fixed; z-index: 60; background: var(--pan2); border: 1px solid var(--line); border-radius: 8px; padding: 4px; display: flex; flex-direction: column; min-width: 160px; box-shadow: 0 8px 30px #0008; transform: translateY(-100%); }
#ctx button { background: none; border: 0; text-align: left; padding: 6px 10px; border-radius: 5px; cursor: pointer; } #ctx button:hover { background: var(--subtle); }
#drawer { position: fixed; top: 44px; bottom: 24px; left: 0; width: 300px; background: var(--pan2); border-right: 1px solid var(--line); z-index: 35; transform: translateX(-102%); transition: transform .18s ease; padding: 10px 12px; overflow: auto; box-shadow: 8px 0 30px #0007; }
#drawer.open { transform: none; } #drawer .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 .empty { color: var(--mut); padding: 8px; font-style: italic; }
dialog { background: var(--pan2); color: var(--tx); border: 1px solid var(--line); border-radius: 10px; max-width: min(520px, 94vw); } dialog::backdrop { background: #0009; } dialog h3 { margin: 0 0 6px; }
.row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 8px 0; } .row.end { justify-content: flex-end; }
@media (max-width: 900px) { #main { grid-template-columns: 1fr; } #left { display: none; } #projName { width: 110px; } #bSave { display: none; } #dlg { width: min(300px, calc(100% - 16px)); } }
@media (max-width: 600px) { #projName, #units, #expW { display: none; } #appSwB { font-size: 14px; } .rb { min-width: 46px; padding: 3px 4px; } }

#treeQ { margin: 6px 8px 0; width: calc(100% - 16px); background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; }
#browser li.doc { padding: 8px 10px 4px; justify-content: space-between; } #browser li.fd { padding: 4px 6px; gap: 2px; font-weight: 600; } #browser .tw { background: none; border: 0; color: var(--mut); cursor: pointer; width: 18px; padding: 0; } #browser li.fd .nm { cursor: pointer; }
#browser .cnt { color: var(--mut); font-size: 11px; background: var(--subtle); border-radius: 8px; padding: 0 6px; margin-left: auto; } #browser .eye { padding: 0 4px; font-size: 12px; }
#browser ul.sub { list-style: none; margin: 0; padding: 0 0 2px 14px; } #browser .sq { width: 12px; height: 12px; border-radius: 3px; border: 1px solid #0006; flex: none; } #browser li.act .nm { color: var(--blue); }
#selInfo { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background: var(--float); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; display: flex; gap: 8px; align-items: center; font-size: 12px; z-index: 12; }
#insp { 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; }
#insp select { background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 3px; }
#finFloat { position: absolute; right: 12px; bottom: 12px; z-index: 13; box-shadow: 0 6px 20px #0008; }
#dlg .dh .ti { font-size: 18px; width: 24px; text-align: center; }
#dlg .sel { border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; margin: 6px 0; } #dlg .sel.on { border-color: var(--acc); background: #ff7a1a10; }
#dlg .sel .sl { display: flex; align-items: center; justify-content: space-between; gap: 6px; } #dlg .sel .sl span { color: var(--secondary-tx); }
#dlg .chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; } #dlg .chips em { color: var(--mut); font-size: 12px; }
#dlg .chip { background: #ff7a1a26; border: 1px solid #ff7a1a66; border-radius: 12px; padding: 1px 3px 1px 8px; font-size: 12px; display: inline-flex; gap: 3px; align-items: center; } #dlg .chip button { background: none; border: 0; cursor: pointer; color: var(--mut); padding: 0 3px; }
#dlg .row { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; } #dlg .bp { border-bottom: 1px solid var(--line); padding: 6px 0 8px; } #dlg .bn { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; font-weight: 600; }
.swc { width: 20px; height: 20px; border-radius: 4px; border: 2px solid transparent; cursor: pointer; } .swc.on { border-color: #fff; }
.btn.wide { width: 100%; justify-content: flex-start; margin: 3px 0; } .btn .sq { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
table.pt { width: 100%; border-collapse: collapse; font-size: 12px; } table.pt th { color: var(--mut); text-align: left; font-weight: 500; padding: 2px; } table.pt td { padding: 2px; } table.pt input, table.pt select { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; } table.pt input.bad { border-color: var(--danger); } table.pt .pv { color: var(--mut); white-space: nowrap; }
#dimBox .af { display: flex; flex-direction: column; gap: 5px; min-width: 220px; } #dimBox .af label { display: flex; justify-content: space-between; gap: 6px; align-items: center; } #dimBox .af label.ck { justify-content: flex-start; } #dimBox .row { display: flex; gap: 6px; } #dimBox .row.end { justify-content: flex-end; }
.dim.expr { border-color: #8e6cff; }
.tl.after { opacity: .4; } .rbm { color: var(--acc); font-size: 26px; line-height: 1; margin: 0 -2px; }
#dlg { width: 320px; }

#manipBox { position: absolute; left: 0; top: 0; z-index: 16; display: flex; align-items: center; gap: 4px; background: var(--pan2); border: 1px solid var(--blue); border-radius: 6px; padding: 2px 6px; box-shadow: 0 4px 14px #0008; pointer-events: auto; }
#manipBox input { width: 72px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 2px 5px; font: 600 12px ui-monospace, monospace; } #manipBox input.bad { border-color: var(--danger); } #manipBox em { font-style: normal; font-size: 11px; color: var(--mut); white-space: nowrap; }
#dlg .segf { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 8px; } #dlg .segf > span { color: var(--secondary-tx); font-size: 12px; }
#dlg .segf .seg { display: flex; } #dlg .segf .seg button { flex: 1; padding: 5px 4px; font-size: 12px; border-right: 1px solid var(--line); } #dlg .segf .seg button:last-child { border-right: 0; } #dlg .segf .seg button.on { background: var(--acc); color: #111; font-weight: 700; }
#dlg { top: 132px; }
#insp .mf { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0 6px; }
#insp .mf button { background: var(--bg); color: inherit; border: 1px solid var(--line); border-radius: 12px; padding: 2px 9px; font-size: 11px; cursor: pointer; }
#insp .mf button.on { background: #1f6feb; border-color: #1f6feb; color: #fff; }
#insp .mr { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
#insp .big { font-size: 15px; font-weight: 700; }
#insp .mut { opacity: .7; }
.drv { display: grid; grid-template-columns: 70px 1fr 64px 18px; gap: 6px; align-items: center; margin: 6px 0; font-size: 12px; }
.drv input[type=range] { width: 100%; }
.drv .drn { width: 64px; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 3px 5px; color: inherit; }
#ctx hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
#vtools button.on { border-color: #1f6feb; color: #8ab4ff; }
#dlg .ro { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
/* 2D drawings */
#drawWs { position: fixed; inset: 0; z-index: 80; background: var(--paper-field); display: flex; flex-direction: column; }
#drawWs .dwbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 6px 10px; background: var(--pan); border-bottom: 1px solid var(--line); font-size: 12px; }
#drawWs .dwbar select { background: var(--bg); color: inherit; border: 1px solid var(--line); border-radius: 5px; padding: 3px; }
#drawWs .dwbar .ck { display: inline-flex; gap: 3px; align-items: center; } #drawWs .dwviews { display: inline-flex; gap: 8px; flex-wrap: wrap; } #drawWs .sp { flex: 1; }
#drawWs .dwpage { flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 16px; }
#drawWs #dwSvg { max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: 0 6px 30px #0008; background: #fff; touch-action: none; }
#drawWs .dwhint { padding: 4px 10px; font-size: 12px; background: var(--pan); border-top: 1px solid var(--line); }
#drawWs .dwbusy { margin: auto; color: #ddd; }
#drawWs .dwdlg { position: absolute; top: 60px; right: 20px; background: var(--pan2); border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 6px; width: 280px; z-index: 2; }
#drawWs .dwdlg label { display: grid; grid-template-columns: 90px 1fr; gap: 6px; font-size: 12px; align-items: center; } #drawWs .dwdlg input { background: var(--bg); color: inherit; border: 1px solid var(--line); border-radius: 5px; padding: 4px; }
#cloudList li .po, #projList li .po { text-align: left; }
#wfVersions, #wfShare { background: var(--pan2); color: var(--tx, #e6e6e6); border: 1px solid var(--line); border-radius: 10px; width: min(560px, 94vw); }
#wfVersions::backdrop, #wfShare::backdrop { background: #0009; }
.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; }
#drawWs .dwtabs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 4px 10px; background: var(--pan); border-bottom: 1px solid var(--line); font-size: 12px; }
#drawWs .dwtabs select { background: var(--bg); color: inherit; border: 1px solid var(--line); border-radius: 5px; padding: 2px; } #drawWs .dwtabs .sp { flex: 1; }
#drawWs .dwdlg select { background: var(--bg); color: inherit; border: 1px solid var(--line); border-radius: 5px; padding: 4px; }
#drawWs .dwdlg .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; } #drawWs .dwdlg .row3 input { width: 100%; min-width: 0; text-transform: uppercase; }
#drawWs .dwdlg .ck2 { display: grid; grid-template-columns: 90px auto; }
#drawWs .dwtabs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 4px 10px; background: var(--pan); border-bottom: 1px solid var(--line); font-size: 12px; }
#drawWs .dwtabs select { background: var(--bg); color: inherit; border: 1px solid var(--line); border-radius: 5px; padding: 2px; } #drawWs .dwtabs .sp { flex: 1; }
#drawWs .dwdlg select { background: var(--bg); color: inherit; border: 1px solid var(--line); border-radius: 5px; padding: 4px; }
#drawWs .dwdlg .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; } #drawWs .dwdlg .row3 input { width: 100%; min-width: 0; text-transform: uppercase; }
#drawWs .dwdlg .ck2 { display: grid; grid-template-columns: 90px auto; }
#flatWs { position: fixed; inset: 0; z-index: 80; background: var(--paper-field); display: flex; flex-direction: column; }
#flatWs .dwbar { display: flex; gap: 10px; align-items: center; padding: 6px 10px; background: var(--pan); border-bottom: 1px solid var(--line); font-size: 12px; } #flatWs .sp { flex: 1; }
#flatWs .dwpage { flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 16px; }
#flatWs #flatSvg { max-width: 100%; max-height: 100%; box-shadow: 0 6px 30px #0008; }
#flatWs .dwhint { padding: 4px 10px; font-size: 12px; background: var(--pan); border-top: 1px solid var(--line); }
/* floating feature dialog + feature tree show / hide (panels.js) */
#dlg.moved { right: auto; }
#dlg .dh { cursor: move; touch-action: none; } #dlg .dh input, #dlg .dh button { cursor: auto; }
#dlg.dragging { opacity: .93; box-shadow: 0 16px 40px #000b; user-select: none; }
#main { position: relative; }
#main.treeOff { grid-template-columns: 1fr; } #main.treeOff #left { display: none; }
#left { position: relative; } #treeHide { position: sticky; top: 6px; float: right; margin: 6px 6px 0 0; padding: 2px 7px; z-index: 2; } #left #treeQ { width: calc(100% - 56px); }
#treeShow { position: absolute; left: 0; top: 50%; transform: translateY(-50%); z-index: 16; padding: 14px 5px; border-radius: 0 8px 8px 0; background: var(--pan); border: 1px solid var(--line); border-left: 0; }
@media (max-width: 900px) { #main.treeShowNarrow #left { display: block; position: absolute; left: 0; top: 0; bottom: 0; width: 240px; z-index: 20; box-shadow: 6px 0 20px #0008; } }
#dlg .dgrip { cursor: move; color: var(--mut); font-size: 15px; padding: 0 2px; user-select: none; } #dlg.dragging .dgrip { color: var(--acc); }
#dlg .dsec { border-bottom: 1px solid var(--line); } #dlg .dsec:last-child { border-bottom: 0; }
#dlg .dsec-h { display: flex; align-items: center; gap: 6px; width: 100%; background: none; border: 0; color: var(--secondary-tx); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 8px 0 6px; cursor: pointer; text-align: left; }
#dlg .dsec-h:hover { color: var(--tx); } #dlg .dsec-h .tw { width: 12px; color: var(--mut); } #dlg .dsec-h em { margin-left: auto; font-style: normal; color: var(--mut); background: var(--subtle); border-radius: 8px; padding: 0 6px; font-weight: 400; }
#dlg .dsec-b { padding-bottom: 6px; }
/* title block dialog: more fields + my defaults */
#drawWs .dwdlg:has(.ttgrid) { width: min(560px, calc(100vw - 40px)); max-height: calc(100vh - 90px); overflow: auto; }
#drawWs .dwdlg .ttgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; } #drawWs .dwdlg .ttgrid label.wide { grid-column: 1 / -1; }
#drawWs .dwdlg textarea { background: var(--bg); color: inherit; border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; font: inherit; resize: vertical; }
#drawWs .dwdlg .hint { margin: 2px 0; font-size: 12px; color: var(--mut); } #drawWs .dwdlg .row .sp { flex: 1; }

/* delete with dependents, origin plane menu, preferences (Claude; Windfire Admin) */
#dlgDel { max-width: 460px; }
#dlgDel .deplist { margin: 6px 0 12px; padding-left: 4px; list-style: none; max-height: 180px; overflow: auto; }
#dlgDel .deplist li { padding: 2px 0; } #dlgDel .dtag { font-style: normal; font-size: 11px; color: var(--mut); margin-left: 4px; } #dlgDel li[data-why="breaks"] .dtag { color: var(--danger); } #dlgDel li[data-why="changes"] .dtag { color: var(--warn); }
#dlgDel .col { display: flex; flex-direction: column; gap: 8px; }
#dlgDel .col .btn { text-align: left; white-space: normal; }
#dlgDel .note.warn { color: var(--warn); margin: 0; font-size: 12px; }
#ctx button[disabled] { opacity: .45; cursor: not-allowed; } #ctx button[disabled]:hover { background: none; }
#ctx .cnote { margin: 2px 10px 4px; font-size: 11px; opacity: .7; max-width: 220px; }

/* view windows: 1, 2 side by side or 4 (Claude; Windfire Admin) */
#vp canvas { position: absolute; left: 0; top: 0; }
.vpanes { position: absolute; inset: 0; }
.vpane { position: absolute; box-sizing: border-box; }
.vpane .vsurf { position: absolute; inset: 0; touch-action: none; }
.vpanes.multi .vpane { outline: 1px solid #2b3644; outline-offset: -1px; }
.vpanes.multi .vpane.act { outline: 2px solid #2f81f7; outline-offset: -2px; }
.vhead { position: absolute; left: 6px; top: 6px; z-index: 5; display: flex; gap: 4px; align-items: center; font-size: 11px; user-select: none; }
.vpane.vtl .vhead { top: 40px; }
.vhead select { background: var(--float-soft); color: inherit; border: 1px solid var(--line); border-radius: 5px; padding: 2px 4px; font-size: 11px; }
.vhead .vlink { background: var(--float-soft); color: var(--mut); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; font-size: 11px; cursor: pointer; }
.vhead .vlink.on { color: #8ab4ff; border-color: #1f6feb; }
.vpanes:not(.multi) .vhead { opacity: .75; }
#vtools .vlay { display: inline-flex; margin-left: 6px; } #vtools .vlay button { border-radius: 0; } #vtools .vlay button:first-child { border-radius: 5px 0 0 5px; } #vtools .vlay button:last-child { border-radius: 0 5px 5px 0; }

/* view window header: grip (double-click) + maximise button */
.vhead .vgrip { cursor: pointer; color: var(--mut); padding: 2px 3px; background: var(--float-soft); border: 1px solid var(--line); border-radius: 5px; } .vhead .vmax { background: var(--float-soft); color: var(--mut); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 12px; cursor: pointer; } .vhead .vmax:hover, .vhead .vgrip:hover { color: #fff; }
#treeShow { top: 25%; }
/* sketch dimensions, glyphs, live input boxes (Windfire Admin) */
#dimsvg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
#dimsvg .dimg polyline { fill: none; stroke: #c9d6e3; stroke-width: 1; } #dimsvg .dimg .ext { stroke-opacity: .75; } #dimsvg .dimg .arrow { fill: #c9d6e3; stroke: none; }
#dimsvg .dimg.sel polyline { stroke: var(--acc); } #dimsvg .dimg.sel .arrow { fill: var(--acc); }
#dimsvg .dimg.driven polyline { stroke: #8b98a7; stroke-dasharray: 4 3; } #dimsvg .dimg.driven .arrow { fill: #8b98a7; }
#dimsvg .dimg.preview polyline { stroke: #ffd23f; } #dimsvg .dimg.preview .arrow { fill: #ffd23f; }
.dim.driven { color: #aab6c3; border-style: dashed; } .dim.preview { border-color: #ffd23f; color: #ffd23f; }
#labels > .dim.preview, #labels > .inf-glyph { pointer-events: none; }
.dim { touch-action: none; }
.glyph { display: flex; align-items: center; justify-content: center; width: 17px; height: 17px; min-width: 0; padding: 0; background: #1d3557e6; color: #dbe7f5; border: 1px solid #2f81f7; border-radius: 3px; }
.glyph svg { display: block; } .glyph.faded { opacity: .6; } .glyph:hover { border-color: var(--acc); color: #fff; }
.glyph.inf-glyph { opacity: .7; pointer-events: none; background: #3a2f0be6; border-color: #ffd23f; color: #ffd23f; }
#hud { position: absolute; z-index: 18; display: flex; gap: 4px; pointer-events: none; } #hud.touch { pointer-events: auto; }
#hud label { display: flex; align-items: center; gap: 2px; background: var(--float); border: 1px solid var(--line); border-radius: 5px; padding: 1px 4px; }
#hud input { width: 64px; background: transparent; border: 0; color: var(--tx); font: 600 12px/18px ui-monospace, Menlo, Consolas, monospace; outline: none; padding: 0; }
#hud label:focus-within { border-color: var(--acc); } #hud input.locked { box-shadow: 0 0 0 1px #ffd23f; border-radius: 3px; } #hud input.bad { color: var(--danger); }
#hud em { color: var(--mut); font: 11px system-ui; font-style: normal; } #hud.touch input { height: 40px; font-size: 16px; }
#ribbon .dimgrp { position: sticky; left: 0; z-index: 2; background: var(--pan); }
#ribbon .rb.dimbtn .rl { display: inline; } #ribbon .rb.dimbtn { min-width: 64px; }
.skic { position: relative; } .skic .skst { position: absolute; right: -7px; bottom: -4px; font-size: 9px; font-style: normal; } .skic.warn { color: #f2cc60; }
.dim.conflict, .glyph.conflict { border-color: #f2cc60; color: #f2cc60; background: #3a2f0be6; }
#dimsvg .dimg.conflict polyline { stroke: #f2cc60; } #dimsvg .dimg.conflict .arrow { fill: #f2cc60; }
#dimsvg .dimg.hov polyline { stroke: #ffffff; stroke-width: 1.6; } #dimsvg .dimg.hov .arrow { fill: #ffffff; } /* hovered dimension (Windfire Admin) */
/* constraint icons on the sketch toolbar (Windfire Admin) */
#ribbon .cgrid { display: grid; grid-template-columns: repeat(6, 24px); gap: 2px; padding: 2px 0; }
#ribbon .cb { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: none; border: 1px solid transparent; border-radius: 4px; color: var(--secondary-tx); cursor: pointer; padding: 0; }
#ribbon .cb:hover { background: var(--subtle); border-color: var(--line); color: var(--tx); }
/* ---- sketch look (Windfire Admin): light canvas by default, colours by constraint state, plain dimension text,
   grey constraint icons, the Sketch options palette. All colours are variables; dark theme keeps the same conventions. */
:root[data-theme="light"] { --sk-origin: #ad3340; --sk-hole: #086b60; --sk-grid-minor: #c5d2de; --sk-grid-major: #a6b8cb; --sk-under: #1959b5; --sk-full: #111111; --sk-cons: #96500e; --sk-proj: #7533aa; --sk-sel: #ac155e; --sk-fixed: #1c7135; --sk-err: #835c00; --sk-region: #a55f10;
  --sk-text: #1d2329; --sk-halo: #ffffff; --sk-dimline: #39424c; --sk-driven: #6b7580; --sk-glyph-bg: #e3e6ea; --sk-glyph-fg: #4d5662; --sk-glyph-bd: #b9c0c8; --sk-pal-bg: #ffffffee; --sk-pal-tx: #222; --sk-pal-bd: #c9ced5; }
:root { --sk-origin: #f3767d; --sk-hole: #42cfb7; --sk-grid-minor: #263241; --sk-grid-major: #34445a; --sk-under: #4c9bff; --sk-full: #f1f4f7; --sk-cons: #f0a050; --sk-proj: #c08cff; --sk-sel: #ff6fb8; --sk-fixed: #4cc76a; --sk-err: #f2cc60; --sk-region: #b5874a;
  --sk-text: #eef2f6; --sk-halo: #0d131a; --sk-dimline: #c9d3dd; --sk-driven: #9aa6b2; --sk-glyph-bg: #2a3442; --sk-glyph-fg: #c4ccd6; --sk-glyph-bd: #4a5869; --sk-pal-bg: #161c23ee; --sk-pal-tx: #dfe6ee; --sk-pal-bd: #2a3440; }
:root[data-theme="light"] { --bg: #eef2f6; --pan: #f8fafc; --pan2: #e7edf4; --line: #aab8c7; --tx: #192a3b; --mut: #465c70; --acc: #e87325; --blue: #175cba; --warn: #805200; --ok: #17643c; --work-hi: #f8fbfe; --work-lo: #dce5ee; --float: #f8fafcf2; --float-soft: #edf2f8f2; --overlay: #e7eff6d1; --subtle: #24364813; --secondary-tx: #30475b; --danger: #ae2637; --paper-field: #d5dee8; color-scheme: light; }
body.sketching #labels .dim { background: none; border: 0; border-radius: 0; padding: 0 2px; color: var(--sk-text); font: 500 12px/16px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-shadow: 0 0 2px var(--sk-halo), 0 0 2px var(--sk-halo), 0 0 3px var(--sk-halo); }
body.sketching #labels .dim:hover, body.sketching #labels .dim.sel { color: var(--sk-sel); }
body.sketching #labels .dim.driven { color: var(--sk-driven); border: 0; }
body.sketching #labels .dim.preview { color: var(--sk-sel); border: 0; }
body.sketching #labels .dim.expr { border: 0; text-decoration: underline dotted; text-underline-offset: 3px; }
body.sketching #labels .dim.conflict { color: var(--sk-err); background: none; }
body.sketching #dimsvg .dimg polyline { stroke: var(--sk-dimline); } body.sketching #dimsvg .dimg .arrow { fill: var(--sk-dimline); }
body.sketching #dimsvg .dimg.driven polyline { stroke: var(--sk-driven); } body.sketching #dimsvg .dimg.driven .arrow { fill: var(--sk-driven); }
body.sketching #dimsvg .dimg.sel polyline, body.sketching #dimsvg .dimg.hov polyline, body.sketching #dimsvg .dimg.preview polyline { stroke: var(--sk-sel); } body.sketching #dimsvg .dimg.sel .arrow, body.sketching #dimsvg .dimg.hov .arrow, body.sketching #dimsvg .dimg.preview .arrow { fill: var(--sk-sel); }
body.sketching #labels .glyph { width: 15px; height: 15px; background: var(--sk-glyph-bg); color: var(--sk-glyph-fg); border: 1px solid var(--sk-glyph-bd); border-radius: 2px; }
body.sketching #labels .glyph svg { width: 11px; height: 11px; } body.sketching #labels .glyph:hover, body.sketching #labels .glyph.sel { border-color: var(--sk-sel); color: var(--sk-sel); }
body.sketching #labels .glyph.inf-glyph { background: var(--sk-glyph-bg); color: var(--sk-sel); border-color: var(--sk-sel); }
body.sketching.sk-hide-dims #labels .dim, body.sketching.sk-hide-dims #dimsvg { display: none; } body.sketching.sk-hide-cons #labels .glyph:not(.inf-glyph) { display: none; }
body.sketching #dimBox.dimedit { background: var(--pan); border: 1px solid var(--sk-sel); border-radius: 3px; padding: 1px; box-shadow: 0 2px 8px #0004; gap: 2px; }
body.sketching #dimBox.dimedit label > span.nm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } body.sketching #dimBox.dimedit input { width: 78px; background: var(--pan); color: var(--tx); border: 0; padding: 1px 4px; font: 12px system-ui, sans-serif; }
body.sketching #dimBox.dimedit em { color: var(--mut); font-size: 11px; padding-right: 3px; } body.sketching #dimBox.dimedit #dimOk { display: none; }
body.sketching #skInfo { background: var(--sk-pal-bg); color: var(--sk-pal-tx); border-color: var(--sk-pal-bd); }
#skPal { position: absolute; right: 8px; top: 150px; z-index: 14; width: 236px; max-height: calc(100% - 170px); overflow: auto; background: var(--sk-pal-bg); color: var(--sk-pal-tx); border: 1px solid var(--sk-pal-bd); border-radius: 8px; box-shadow: 0 6px 20px #0003; font-size: 12px; }
#skPal .ph .ib { background: none; } #skPal .ph .hlp { margin-left: auto; margin-right: 4px; text-decoration: none; font-weight: 700; } #skPal .ph { display: flex; align-items: center; justify-content: space-between; padding: 5px 8px; border-bottom: 1px solid var(--sk-pal-bd); letter-spacing: .05em; font-size: 11px; } #skPal .ph .ib { color: inherit; }
#skPal.collapsed .pb { display: none; } #skPal .pb { display: flex; flex-direction: column; gap: 4px; padding: 8px; }
#skPal .prow { display: flex; align-items: center; gap: 6px; cursor: pointer; } #skPal .prow select { margin-left: auto; }
#skPal .pst { font-weight: 600; } #skPal .pst.full { color: var(--sk-full); } #skPal .pst.under { color: var(--sk-under); } #skPal .pst.warn { color: var(--sk-err); }
#skPal .btn { justify-content: center; } #skPal .fin { margin-top: 4px; padding: 7px; }
body.sketching #finFloat { display: none; }
#skPal .btn:not(.pri) { background: transparent; color: inherit; border-color: var(--sk-pal-bd); }
/* split buttons (splitbtn.js; Windfire Admin): an orange corner wedge on the icon opens the variants menu */
.sb { position: relative; display: flex; }
.sb .sbm { padding-right: 9px; }
.sb .sbt { position: absolute; right: 1px; top: 13px; width: 16px; height: 16px; padding: 0; border: 0; border-radius: 3px; background: none; cursor: pointer; }
.sb .sbt::after { content: ''; position: absolute; right: 3px; bottom: 3px; width: 0; height: 0; border-left: 6px solid transparent; border-bottom: 6px solid var(--acc, #ff7a1a); opacity: .85; }
.sb .sbt:hover, .sb .sbt[aria-expanded="true"] { background: #ff7a1a2e; } .sb .sbt:hover::after { opacity: 1; }
.sb .sbm:focus-visible, .sb .sbt:focus-visible { outline: 2px solid var(--acc, #ff7a1a); outline-offset: 1px; }
@media (pointer: coarse) { .sb .sbt { width: 24px; height: 24px; top: 9px; right: -3px; } }
#sbMenu { position: fixed; z-index: 73; background: var(--pan2); border: 1px solid var(--line); border-left: 3px solid var(--acc, #ff7a1a); border-radius: 6px; padding: 4px; display: flex; flex-direction: column; min-width: 230px; box-shadow: 0 10px 28px #0009; }
#sbMenu .sbh { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); padding: 3px 10px 4px; }
#sbMenu button { display: flex; align-items: center; gap: 9px; background: none; border: 0; text-align: left; padding: 6px 10px; border-radius: 4px; cursor: pointer; white-space: nowrap; color: var(--tx); font-size: 13px; }
#sbMenu button:hover, #sbMenu button:focus-visible { background: var(--subtle); outline: none; } #sbMenu button.cur { background: #ff7a1a22; } #sbMenu button.cur .sbl::after { content: ' ●'; color: var(--acc, #ff7a1a); font-size: 9px; }
#sbMenu .ri { width: 22px; text-align: center; font-size: 15px; } #sbMenu kbd { margin-left: auto; color: var(--mut); font: 11px ui-monospace, monospace; border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; }
/* armed constraint tool: its symbol follows the pointer (design.js consBadge; Windfire Admin) */
#consBadge { position: fixed; z-index: 66; pointer-events: none; width: 20px; height: 20px; padding: 2px; border-radius: 5px; background: var(--acc, #ff7a1a); color: #111; box-shadow: 0 2px 6px #0006; }
#consBadge svg { width: 16px; height: 16px; }
.cgrid .cb.on { background: #ff7a1a33; outline: 1px solid var(--acc, #ff7a1a); }
/* box selection (selection.js; Windfire Admin): solid orange = window, dashed blue = crossing */
#selBand { position: fixed; z-index: 64; pointer-events: none; border: 1.5px solid var(--acc, #ff7a1a); background: #ff7a1a14; }
#selBand.crossing { border-style: dashed; border-color: #3d9bff; background: #3d9bff14; }
#selOv .win { fill: #2f81f722; stroke: #2f81f7; stroke-width: 1.5; } /* the shared selection overlay (sd1 solidui uses the same classes) */
#selOv .cross { fill: #3fb95022; stroke: #3fb950; stroke-width: 1.5; stroke-dasharray: 6 4; }
/* Mirror dialog (design.js renderMirDlg; Windfire Admin) */
#mirDlg { position: absolute; left: 12px; top: 12px; z-index: 16; min-width: 230px; background: var(--pan); border: 1px solid var(--line); border-top: 3px solid var(--acc, #ff7a1a); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; box-shadow: 0 6px 20px #0006; color: var(--tx); }
#mirDlg .mrow { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 5px; border: 1px solid transparent; cursor: pointer; } #mirDlg .mrow span { flex: 1; color: var(--mut); } #mirDlg .mrow em { font-style: normal; }
#mirDlg .mrow.act { border-color: var(--acc, #ff7a1a); background: #ff7a1a14; } #mirDlg .mbtn { display: flex; gap: 6px; justify-content: flex-end; } #mirDlg .ib { background: none; border: 0; color: var(--mut); cursor: pointer; font-size: 14px; }
/* tool search (toolsearch.js; Windfire Admin): press S */
#toolSearch { position: fixed; z-index: 80; width: 320px; background: var(--pan2); border: 1px solid var(--line); border-top: 3px solid var(--acc, #ff7a1a); border-radius: 8px; padding: 6px; box-shadow: 0 12px 32px #000a; display: flex; flex-direction: column; gap: 4px; }
#toolSearch input { width: 100%; box-sizing: border-box; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; color: var(--tx); padding: 6px 8px; font-size: 13px; }
#toolSearch .tsl { display: flex; flex-direction: column; max-height: 300px; overflow: auto; } #toolSearch .tsl button { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--tx); text-align: left; padding: 5px 8px; border-radius: 4px; cursor: pointer; font-size: 13px; }
#toolSearch .tsl button.cur, #toolSearch .tsl button:hover { background: #ff7a1a26; } #toolSearch .ri { width: 22px; text-align: center; } #toolSearch kbd { margin-left: auto; color: var(--mut); font: 11px ui-monospace, monospace; border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; } #toolSearch .tsn0 { color: var(--mut); padding: 6px 8px; }
/* first-use units question (design.js withUnits; Windfire Admin) */
#unitAsk { position: fixed; inset: 0; z-index: 90; background: #0008; display: flex; align-items: center; justify-content: center; }
#unitAsk .ua { background: var(--pan); border: 1px solid var(--line); border-top: 3px solid var(--acc, #ff7a1a); border-radius: 10px; padding: 16px 18px; max-width: 360px; color: var(--tx); }
#unitAsk p { color: var(--mut); font-size: 13px; } #unitAsk .uab { display: flex; gap: 8px; justify-content: flex-end; }
/* pattern dialogs (design.js renderPatDlg; Windfire Admin): same look as the Mirror dialog */
#patDlg { position: absolute; left: 12px; top: 12px; z-index: 16; min-width: 250px; background: var(--pan); border: 1px solid var(--line); border-top: 3px solid var(--acc, #ff7a1a); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; box-shadow: 0 6px 20px #0006; color: var(--tx); }
#patDlg .mrow { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 5px; border: 1px solid transparent; cursor: pointer; } #patDlg .mrow span { flex: 1; color: var(--mut); } #patDlg .mrow em { font-style: normal; }
#patDlg .mrow.act { border-color: var(--acc, #ff7a1a); background: #ff7a1a14; } #patDlg .mbtn { display: flex; gap: 6px; justify-content: flex-end; } #patDlg .ib { background: none; border: 0; color: var(--mut); cursor: pointer; font-size: 14px; }
#patDlg input:not([type=checkbox]), #patDlg select { width: 70px; background: var(--pan2); border: 1px solid var(--line); border-radius: 4px; color: var(--tx); padding: 2px 4px; }
#patDlg { width: min(310px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow-y: auto; }
#patDlg .patInstances { max-height: 150px; overflow-y: auto; }
#patDlg summary { cursor: pointer; padding: 3px 6px; }
#patDlg small { color: var(--mut); padding-inline: 6px; }
#patDlg .patError { margin: 0; padding-inline: 6px; color: var(--tx); }
#patDlg input[aria-invalid=true] { outline: 1px solid var(--acc, #ff7a1a); }
/* Find Under-Constrained list and the sketch Measure readout (design.js; Windfire Admin) */
#ucDlg { position: absolute; right: 12px; bottom: 12px; z-index: 16; width: 230px; max-height: 50%; display: flex; flex-direction: column; gap: 6px; background: var(--pan); border: 1px solid var(--line); border-top: 3px solid var(--acc, #ff7a1a); border-radius: 8px; padding: 8px 10px; font-size: 12px; color: var(--tx); box-shadow: 0 6px 20px #0006; }
#ucDlg .ucl { display: flex; flex-direction: column; overflow: auto; } #ucDlg .ucl button { background: none; border: 0; color: var(--tx); text-align: left; padding: 4px 6px; border-radius: 4px; cursor: pointer; } #ucDlg .ucl button:hover, #ucDlg .ucl button.on { background: #3d9bff26; }
#ucDlg .mbtn { display: flex; gap: 6px; align-items: center; } #ucDlg .mbtn span { flex: 1; color: var(--mut); }
#measBox { position: fixed; z-index: 66; pointer-events: none; background: var(--pan2); border: 1px solid var(--acc, #ff7a1a); border-radius: 5px; padding: 3px 8px; font-size: 12px; color: var(--tx); }
/* help links of the dialogs, split-button menus and tool search (Windfire Admin) */
#mirDlg .dq, #patDlg .dq, #projDlg .dq, #ucDlg .dq, #sbMenu .sbq, #toolSearch .tsq { float: right; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); color: var(--mut); font-size: 11px; text-decoration: none; margin-left: 6px; }
#mirDlg .dq:hover, #patDlg .dq:hover, #projDlg .dq:hover, #ucDlg .dq:hover, #sbMenu .sbq:hover, #toolSearch .tsq:hover { color: var(--acc, #ff7a1a); border-color: var(--acc, #ff7a1a); }
#projDlg { position: absolute; left: 12px; top: 12px; z-index: 16; min-width: 250px; background: var(--pan); border: 1px solid var(--line); border-top: 3px solid var(--acc, #ff7a1a); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; box-shadow: 0 6px 20px #0006; color: var(--tx); }
#projDlg .mrow { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 5px; } #projDlg .mrow span { flex: 1; color: var(--mut); } #projDlg .mrow.act { border: 1px solid var(--acc, #ff7a1a); background: #ff7a1a14; } #projDlg .mbtn { display: flex; gap: 6px; justify-content: flex-end; } #projDlg .ib { background: none; border: 0; color: var(--mut); cursor: pointer; } #projDlg select { background: var(--pan2); border: 1px solid var(--line); border-radius: 4px; color: var(--tx); }
/* sk4: Include 3D Geometry / Intersect / Project to Surface dialog (same look as Project) */
#p3Dlg { position: absolute; left: 12px; top: 12px; z-index: 16; min-width: 260px; background: var(--pan); border: 1px solid var(--line); border-top: 3px solid var(--acc, #ff7a1a); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; box-shadow: 0 6px 20px #0006; color: var(--tx); }
#p3Dlg .mrow { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 5px; border: 1px solid transparent; cursor: default; } #p3Dlg .mrow span { flex: 1; color: var(--mut); }
#p3Dlg .mrow.act { cursor: pointer; } #p3Dlg .mrow.act.on { border-color: var(--acc, #ff7a1a); background: #ff7a1a14; }
#p3Dlg .mbtn { display: flex; gap: 6px; justify-content: flex-end; } #p3Dlg .ib { background: none; border: 0; color: var(--mut); cursor: pointer; } #p3Dlg select { background: var(--pan2); border: 1px solid var(--line); border-radius: 4px; color: var(--tx); }
#p3Dlg .dq { float: right; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); color: var(--mut); text-decoration: none; font-size: 11px; } #p3Dlg .dq:hover { color: var(--acc, #ff7a1a); border-color: var(--acc, #ff7a1a); }
/* sk4: Auto-define dialog (same family as the Project dialog) */
#autoDlg { position: absolute; left: 12px; top: 12px; z-index: 16; min-width: 260px; background: var(--pan); border: 1px solid var(--line); border-top: 3px solid var(--acc, #ff7a1a); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; box-shadow: 0 6px 20px #0006; color: var(--tx); }
#autoDlg .mrow { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 5px; border: 1px solid transparent; } #autoDlg .mrow span { flex: 1; color: var(--mut); } #autoDlg .mrow.act { cursor: pointer; } #autoDlg .mrow.act.on { border-color: var(--acc, #ff7a1a); background: #ff7a1a14; } #autoDlg .mrow.warn { color: var(--sk-err, #d29a00); }
#autoDlg .mbtn { display: flex; gap: 6px; justify-content: flex-end; } #autoDlg .dq { float: right; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); color: var(--mut); text-decoration: none; font-size: 11px; } #autoDlg .dq:hover { color: var(--acc, #ff7a1a); border-color: var(--acc, #ff7a1a); }
/* sk4: the 3D sketch plane picker - a small triad with plane squares at the start of the next segment (WindFire colours) */
#ap3 { position: absolute; inset: 0; z-index: 14; pointer-events: none; }
#ap3 svg { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
#ap3 .apq { fill: #ff7a1a22; stroke: #ff7a1a; stroke-width: 1; pointer-events: auto; cursor: pointer; }
#ap3 .apq:hover { fill: #ff7a1a55; } #ap3 .apq.on { fill: #ff7a1acc; stroke-width: 1.5; } #ap3 .apq.faded { opacity: .35; }
#ap3 line { stroke-width: 2; stroke-linecap: round; } #ap3 .apx { stroke: #e5534b; } #ap3 .apy { stroke: #3fb950; } #ap3 .apz { stroke: #2f81f7; }
#ap3 .apf { position: absolute; pointer-events: auto; font-size: 10px; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); background: var(--pan); color: var(--tx); cursor: pointer; }
#ap3 .apf.on { border-color: var(--acc, #ff7a1a); background: #ff7a1a33; }
#ctx .ctxh { display: block; padding: 4px 10px; font-size: 11px; color: var(--mut); text-decoration: none; border-bottom: 1px solid var(--line); } #ctx .ctxh:hover { color: var(--acc, #ff7a1a); } /* sk4: help link in the offset glyph menu */

body.sk-drawing #labels .glyph, body.sk-drawing #labels .dim { pointer-events: none; } /* Guardian r2: create tools click through glyphs and labels */
#ap3[hidden] { display: none !important; } /* the plane picker exists only in 3D sketches */
/* ---- asm1 hook: component tree, Position bar, "components moved" prompt (Windfire Admin) */
#browser li.comp { gap: 3px; } #browser li.comp .arad, #browser li.doc .arad { padding: 0 3px; font-size: 12px; color: var(--mut); } #browser li.actv > .arad, #browser li.doc.actv > .arad { color: var(--acc); }
#browser li.comp.actv .nm, #browser li.doc.actv b { color: var(--acc); } #browser li.comp.off .nm { opacity: .5; } #browser li.dnd { outline: 1px dashed var(--acc); outline-offset: -2px; }
#browser li.rel { color: var(--mut); cursor: default; } #browser .ab { font-style: normal; font-size: 11px; margin-left: 4px; color: var(--mut); } #browser .ab.ood { color: var(--warn); } #browser .ab.inst, #browser .ab.lnk { color: var(--blue); }
#asmPos { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 16; display: flex; gap: 8px; align-items: center; background: var(--pan); border: 1px solid var(--acc); border-radius: 18px; padding: 4px 6px 4px 12px; box-shadow: 0 6px 18px #0008; font-size: 13px; white-space: nowrap; }
#asmPos .pl { color: var(--acc); font-weight: 700; font-size: 11px; letter-spacing: .06em; }
dialog.asmdlg { background: var(--pan); color: var(--tx); border: 1px solid var(--line); border-radius: 10px; padding: 0; width: min(420px, 92vw); box-shadow: 0 16px 40px #000a; }
dialog.asmdlg::backdrop { background: #0008; } dialog.asmdlg .aph { display: flex; gap: 10px; align-items: center; padding: 12px 14px 0; font-size: 15px; } dialog.asmdlg .api { font-size: 22px; color: var(--acc); }
dialog.asmdlg p { padding: 0 14px; line-height: 1.45; color: var(--secondary-tx); } dialog.asmdlg .df { display: flex; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--line); } dialog.asmdlg .df .sp { flex: 1; }
#dlg .dh .hlp { margin-left: auto; font-weight: 700; }

/* ---- lib1 hook: the projects drawer selects on one click and opens on double-click / Enter (Windfire Admin) */
#projList li.sel, #cloudList li.sel { box-shadow: inset 3px 0 var(--acc); background: #ff7a1a2e; }
@media (max-width: 480px) { #top #bLib { display: none; } } /* The Projects drawer retains the Part Library on phones. */

/* shared account dialog (js/account.js) on the Design page: the variable names it expects (owner 2026-11-22: sign in from every module) */
:root { --panel: var(--pan); --panel2: var(--pan2); --fg: var(--tx); --muted: var(--mut); --btn: var(--pan2); --btnh: var(--line); }
#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; }

/* Design viewport tools share the shell palette. Drawing paper stays white. */
#vpw .vhome { background: var(--float-soft); }
#prefTheme { margin-left: auto; background: var(--pan); border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; }

/* Design toolbar. Keep the fixed commands visible while the measured panel strip folds into » . */
#ribbon { overflow: hidden; min-width: 0; align-items: center; min-height: 55px; }
#ribbon .tabs { align-self: stretch; flex: 0 0 auto; }
#ribbon .tab { text-transform: uppercase; }
#ribbon .dimgrp { position: static; align-self: stretch; justify-content: center; }
#ribbon .toolbar-panels { display: flex; flex: 1 1 0; min-width: 0; align-self: stretch; }
#ribbon .toolbar-panel { flex: 0 0 auto; min-height: 55px; justify-content: flex-end; }
#ribbon .toolbar-panel .pn { text-transform: uppercase; }
#ribbon .mains { gap: 2px; }
#ribbon .cgrid { grid-template-columns: none; grid-template-rows: repeat(2, 24px); grid-auto-flow: column; grid-auto-columns: 24px; }
#ribbon .cb.on { background: #ff7a1a26; border-color: #ff7a1a88; }
#ribbon .toolbar-history { flex: 0 0 auto; border: 0; }
#ribbon #finSk { margin: 0 5px; }
#toolbarOverflow { flex: 0 0 auto; font-size: 20px; min-width: 31px; }
#toolbarOverflow[data-tucked]:not([data-tucked="0"]) { color: var(--tx); background: var(--subtle); }
.toolbar-search-wrap { display: flex; align-items: center; position: relative; flex: 0 1 148px; min-width: 100px; margin-left: 5px; }
.toolbar-search-wrap > span { position: absolute; left: 7px; color: var(--mut); pointer-events: none; font-size: 16px; }
#toolbarSearch { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 5px 5px 5px 23px; background: var(--bg); color: var(--tx); }
#toolbarSearch::placeholder { color: var(--mut); opacity: 1; }
#ribbon :focus-visible, #toolbarLayout :focus-visible, #panelMenu :focus-visible, #toolSearch :focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
#panelMenu { width: min(310px, calc(100vw - 16px)); min-width: 0; }
#panelMenu button { white-space: normal; }
#panelMenu .toolbar-menu-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
#panelMenu .toolbar-menu-row .toolbar-pin-button { justify-content: center; width: 31px; text-align: center; color: var(--mut); }
#panelMenu .toolbar-pin-button[aria-checked="true"] { color: var(--acc); }
.toolbar-menu-heading { color: var(--mut); font-size: 11px; font-weight: 600; padding: 6px 9px 2px; }
#toolSearch { width: min(320px, calc(100vw - 16px)); }
#toolSearch .tsl { max-height: min(300px, 40vh); }
#toolSearch .tsl button { flex: 0 0 auto; }
#toolSearch .ts-label { display: grid; flex: 1 1 auto; }
#toolSearch .ts-label small { color: var(--mut); line-height: 1.3; }
#toolbarLayout { width: min(475px, calc(100vw - 28px)); max-height: calc(100dvh - 32px); background: var(--pan); color: var(--tx); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
#toolbarLayout[open] { display: flex; flex-direction: column; gap: 12px; }
#toolbarLayout h3 { margin: 0; }
.toolbar-panel-select { display: flex; align-items: center; gap: 10px; }
.toolbar-panel-select select { background: var(--pan2); border: 1px solid var(--line); border-radius: 5px; padding: 5px 8px; }
.toolbar-layout-tools { overflow: auto; border: 1px solid var(--line); border-radius: 6px; min-height: 0; }
.toolbar-layout-grid { padding: 8px; }
.toolbar-layout-row { display: grid; grid-template-columns: auto minmax(0, 1fr) repeat(3, minmax(28px, auto)); align-items: center; gap: 7px; padding: 5px 8px; border-bottom: 1px solid var(--line); }
.toolbar-layout-row:last-child { border-bottom: 0; }
.toolbar-layout-row.drag-target { outline: 2px solid var(--blue); outline-offset: -2px; }
.toolbar-layout-row [aria-pressed="true"] { border-color: var(--acc); }
.toolbar-layout-row :disabled { opacity: .35; cursor: default; }
.toolbar-handle { color: var(--mut); cursor: grab; }
.toolbar-layout-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 700px) {
  #ribbon .tabs, #ribbon .toolbar-history .rl { display: none; }
  .toolbar-search-wrap { flex-basis: 125px; }
}
@media (max-width: 550px) {
  #ribbon { flex-wrap: wrap; min-height: 0; }
  #ribbon .toolbar-panels { order: 2; flex: 0 0 100%; }
  #ribbon .toolbar-panel { min-height: 42px; }
  #ribbon .toolbar-finish-label { display: none; }
  .toolbar-search-wrap { flex: 1 1 100px; margin: 4px 0 4px 5px; }
}
