.bcode-wrap{--category-color: var(--color-cat-ids);display:flex;flex-direction:column;gap:.75rem;min-width:0;min-height:0}.bcode-main{display:grid;grid-template-columns:300px minmax(0,1fr);gap:1rem;flex:1 1 0;min-width:0;min-height:0}.bcode-rail{gap:.65rem;overflow:auto}.bcode-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem;flex:none}.bcode-actions button{min-width:0;white-space:normal;line-height:1.25;padding:.5rem}.bcode-action-group,.bcode-label-row{display:flex;align-items:center;gap:.35rem;min-width:0}.bcode-action-group button{flex:1}.bcode-controls,.bcode-appearance,.bcode-preview-card{padding:.8rem;border-radius:var(--radius-lg);background:var(--color-surface-muted);box-shadow:inset 0 0 0 1px var(--color-border-soft);min-width:0;min-height:0}.bcode-controls,.bcode-appearance{flex:none}.bcode-section-title{margin:0;color:var(--color-text);font-family:var(--font-sans);font-size:.88rem;font-weight:760;letter-spacing:.035em}.bcode-appearance>summary{cursor:pointer}.bcode-field-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:.65rem;margin-top:.65rem}.bcode-field{display:flex;flex-direction:column;gap:.3rem;min-width:0}.bcode-field .tool-input{width:100%}.bcode-select{appearance:auto}.bcode-toggles{display:flex;flex-direction:column;gap:.5rem;margin-top:.65rem}.bcode-toggle{display:flex;align-items:center;gap:.45rem;color:var(--color-text-secondary);font-size:.85rem;font-weight:600}.bcode-toggle input{flex-shrink:0}#bcode-c39-toggle[hidden]{display:none}#bcode-status{display:block;flex:none;min-height:2.8em;margin:0;font-size:.85rem;line-height:1.4}.bcode-preview-card{display:flex;flex-direction:column;gap:.65rem}.bcode-card-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;flex:none}.bcode-card-meta{color:var(--color-primary);font-family:var(--font-mono);font-size:.82rem;font-weight:700}.bcode-canvas{display:flex;align-items:center;justify-content:center;flex:1 1 0;min-width:0;min-height:0;padding:1rem;overflow:auto;border-radius:var(--radius-md);background:#fff;box-shadow:inset 0 0 0 1px var(--color-border-soft)}.bcode-canvas svg{display:block;max-width:100%;height:auto}.bcode-hint,.bcode-empty{margin:0;color:var(--color-text-muted);font-size:.78rem;line-height:1.45}.bcode-hint{flex:none}.bcode-empty{display:none;padding:1rem}.bcode-wrap[data-empty=true] .bcode-empty{display:block}.bcode-wrap[data-empty=true] .bcode-canvas{display:none}.bcode-actions button[disabled]{cursor:not-allowed;opacity:.55}@media(max-width:860px){.bcode-main{grid-template-columns:minmax(0,1fr);flex:none}.bcode-rail{overflow:visible}.bcode-canvas{flex:none;min-height:140px;max-height:18rem}.bcode-wrap[data-empty=true] .bcode-preview-card{display:none}}@media(max-width:640px){.bcode-main{gap:.6rem}.bcode-rail{gap:.45rem}.bcode-controls,.bcode-appearance,.bcode-preview-card{padding:.65rem}.bcode-actions button,.bcode-field .tool-input{min-height:44px}.bcode-field input[type=range],.bcode-toggle input,.bcode-appearance>summary{min-width:24px;min-height:24px}#bcode-status{height:2.8em;overflow:auto}.bcode-canvas{height:120px;min-height:120px;max-height:14rem;padding:.65rem}.bcode-canvas svg{max-height:100%;flex-shrink:0}}
