/* Taller de bloques patron (prefijo bql). */
.bql { --bq-acc: #d98a0b; --bq-soft: #fff4de; --bq-line: var(--line, #cfdae6); --bq-muted: var(--muted, #4a5d70);
  background: var(--card, #fff); color: #0b1f33; border: 1px solid var(--bq-line); border-radius: 8px; padding: 18px; margin: 26px 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bql *, .bql *::before, .bql *::after { box-sizing: border-box; }
.bql-head { display: flex; flex-direction: column; gap: 2px; }
.bql-head strong { font-size: 1.15rem; }
.bql-head span { color: var(--bq-muted); font-size: .92rem; line-height: 1.5; }
.bql button { font: inherit; cursor: pointer; }
.bql-tabs, .bql-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.bql-tab, .bql-pre { font-size: .88rem; font-weight: 600; padding: 7px 12px; min-height: 40px; border-radius: 4px; border: 1px solid var(--bq-line); background: #f3f6f9; color: #0b1f33; }
.bql-tab[aria-pressed="true"] { background: #0b1f33; border-color: #0b1f33; color: #fff; }
.bql-pre[aria-pressed="true"] { background: var(--bq-soft); border-color: var(--bq-acc); }
.bql button:focus-visible, .bql select:focus-visible, .bql input:focus-visible { outline: 3px solid var(--bq-acc); outline-offset: 2px; }
.bql-panel[hidden] { display: none; }
.bql-panel { min-width: 0; }
.bql-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; min-width: 0; }
.bql-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (max-width: 820px) { .bql-body { grid-template-columns: minmax(0, 1fr); } }
.bql fieldset { border: 1px solid var(--bq-line); border-radius: 6px; margin: 0; padding: 6px 10px 8px; min-width: 0; }
.bql legend { font-size: .85rem; font-weight: 700; padding: 0 6px; }
.bql-row { display: flex; flex-direction: column; gap: 2px; padding: 5px 0; min-width: 0; }
.bql-row label { font-size: .86rem; font-weight: 600; }
.bql input[type=number], .bql select { width: 100%; min-width: 0; min-height: 40px; font: inherit; padding: 6px 8px; border: 1px solid var(--bq-line); border-radius: 4px; background: #fff; color: #0b1f33; }
.bql-grid { display: grid; grid-template-columns: 3.4em repeat(2, minmax(0, 1fr)); gap: 4px; align-items: center; }
.bql-gh { font-size: .8rem; font-weight: 700; text-align: center; color: var(--bq-muted); }
.bql-gl { font-size: .86rem; font-weight: 700; }
.bql-svgbox { min-width: 0; }
.bql-svg { display: block; width: 100%; height: auto; max-width: 100%; background: #f8fafc; border: 1px solid #e1e8ef; border-radius: 4px; }
.bql-svg text { font-family: Helvetica, Arial, sans-serif; fill: #0b1f33; font-size: 15px; }
.bql-svg text.s { font-size: 13px; fill: #4a5d70; }
.bql-svg text.b { font-weight: 700; font-size: 16px; }
.bql-blk { fill: #dbe5ef; stroke: #0b1f33; stroke-width: 2; }
.bql-band { fill: rgba(26, 127, 75, .16); stroke: #1a7f4b; stroke-width: 1.5; }
.bql-axis { stroke: #0b1f33; stroke-width: 1.5; }
.bql-bar { fill: #2a6fb0; }
.bql-bar.bad { fill: #b42318; }
.bql-lnA { fill: none; stroke: #2a6fb0; stroke-width: 2.5; }
.bql-lnD { fill: none; stroke: #d98a0b; stroke-width: 2.5; stroke-dasharray: 6 4; }
.bql-dotA { fill: #2a6fb0; }
.bql-dotD { fill: #d98a0b; }
.bql-res { min-width: 0; overflow-x: auto; display: flex; flex-direction: column; gap: 10px; }
.bql-t { border-collapse: collapse; width: 100%; font-size: .86rem; }
.bql-t th, .bql-t td { border: 1px solid var(--bq-line); padding: 5px 6px; text-align: right; font-variant-numeric: tabular-nums; }
.bql-t th { background: #eef2f6; }
.bql-t td:first-child, .bql-t th:first-child { text-align: left; }
.bql-t tr.hl td { background: var(--bq-soft); font-weight: 700; }
.bql-t td.bad { color: #b42318; font-weight: 700; }
.bql-msg { margin: 0; padding: 10px 12px; border-radius: 4px; border-left: 4px solid #1f5fa8; background: #eef4fb; font-size: .92rem; line-height: 1.5; }
.bql-msg.ok { border-left-color: #1a7f4b; background: #e9f6ef; }
.bql-msg.bad { border-left-color: #b42318; background: #fdecea; }
@media (max-width: 520px) { .bql-t { font-size: .78rem; } .bql-t th, .bql-t td { padding: 4px 3px; } .bql { padding: 14px; } }
