/* group dev3: scoped helpers (every rule sits under .toolbox and a d3- class) */
.toolbox .d3-pf{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;margin:12px 0 16px}
.toolbox .d3-pf>div{min-width:0}
.toolbox .d3-pf textarea{min-height:64px}
.toolbox .d3-hxv{height:360px;overflow:auto;border:1.5px solid var(--line);border-radius:12px;background:#fff;margin:10px 0;position:relative}
.toolbox .d3-hxv:focus{outline:2px solid var(--teal,#14b8a6);outline-offset:1px}
.toolbox .d3-hxr{display:flex;align-items:center;gap:14px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;white-space:nowrap;padding:0 8px;line-height:22px;min-width:max-content}
.toolbox .d3-hxo{color:var(--mute);flex:none}
.toolbox .d3-hxh i,.toolbox .d3-hxa b{font-style:normal;font-weight:400;display:inline-block;text-align:center;cursor:pointer;border-radius:3px}
.toolbox .d3-hxh i{width:24px}
.toolbox .d3-hxa b{width:9px}
.toolbox .d3-hxh i.mod,.toolbox .d3-hxa b.mod{color:#b45309;background:#fef3c7}
.toolbox .d3-hxh i.hit,.toolbox .d3-hxa b.hit{background:#cffafe}
.toolbox .d3-hxh i.sel,.toolbox .d3-hxa b.sel{background:var(--navy);color:#fff}
.toolbox .d3-fc2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.toolbox .d3-fcs{min-width:0;border:1.5px solid var(--line);border-radius:14px;padding:14px;background:#fff}
.toolbox .d3-fcs input[type=file]{max-width:100%}
.toolbox .d3-drop{margin-top:12px;border:2px dashed var(--line);border-radius:12px;padding:18px 10px;text-align:center;color:var(--mute);font-size:14px}
.toolbox .d3-drop.over{border-color:var(--navy);background:var(--ice,#f0f9ff)}
.toolbox .d3-pg{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.toolbox .d3-pg>div{min-width:0}
.toolbox .d3-pg .tabs{margin:0 0 8px}
.toolbox .d3-pg .tabs button{padding:6px 14px;font-size:14px}
.toolbox .d3-ed{min-height:300px;white-space:pre;overflow:auto;tab-size:2}
.toolbox .d3-pgf{width:100%;height:340px;border:1.5px solid var(--line);border-radius:12px;background:#fff;display:block}
.toolbox .d3-cons-h{margin:14px 0 6px}
.toolbox .d3-cons{background:#0f172a;color:#e2e8f0;border-radius:12px;padding:10px 12px;min-height:70px;max-height:200px;overflow:auto;font-size:13px}
.toolbox .d3-cl{white-space:pre-wrap;overflow-wrap:anywhere;padding:2px 0;border-bottom:1px solid rgba(255,255,255,.08)}
.toolbox .d3-err{color:#fca5a5}.toolbox .d3-warn{color:#fcd34d}
.toolbox .d3-devs{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:0 14px}
.toolbox .d3-frames{display:flex;flex-wrap:wrap;gap:18px;align-items:flex-start;margin-top:14px;max-width:100%}
.toolbox .d3-fig{margin:0;max-width:100%}
.toolbox .d3-fig figcaption{font-size:14px;margin:0 0 6px;max-width:100%}
.toolbox .d3-fw{overflow:hidden;border:1.5px solid var(--line);border-radius:10px;background:#fff;max-width:100%}
@media(max-width:700px){.toolbox .d3-pf,.toolbox .d3-fc2,.toolbox .d3-pg{grid-template-columns:1fr}.toolbox .d3-hxv{height:300px}}
