/* Laboratorio del aceite hidráulico (prefijo ha). Paleta de la serie: aceite ámbar + azul + azul marino. */
.ha { --ha-oil: #d98a0b; --ha-oil-soft: #fff4de; --ha-blue: #1f5fa8; --ha-ink: var(--navy, #0b1f33); --ha-muted: var(--muted, #4a5d70); --ha-line: var(--line, #cfdae6);
  background: var(--card, #ffffff); color: #0b1f33; border: 1px solid var(--ha-line); border-radius: 8px; padding: 18px; margin: 26px 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; font-size: 16px; line-height: 1.45; }
.ha *, .ha *::before, .ha *::after { box-sizing: border-box; }
.ha-head { display: flex; flex-direction: column; gap: 2px; }
.ha-head strong { font-size: 1.15rem; }
.ha-head span { color: var(--ha-muted); font-size: .92rem; line-height: 1.5; }
.ha button { font: inherit; cursor: pointer; }
.ha-tabs, .ha-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.ha-tab, .ha-pre { font-size: .88rem; font-weight: 600; padding: 7px 12px; min-height: 40px; border-radius: 4px; border: 1px solid var(--ha-line); background: #f3f6f9; color: #0b1f33; }
.ha-tab[aria-pressed="true"] { background: #0b1f33; border-color: #0b1f33; color: #fff; }
.ha-pre[aria-pressed="true"] { background: var(--ha-oil-soft); border-color: var(--ha-oil); }
.ha button:focus-visible, .ha select:focus-visible, .ha input:focus-visible { outline: 3px solid var(--ha-oil); outline-offset: 2px; }
.ha-panel[hidden] { display: none; }
.ha-panel { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ha-svg { display: block; width: 100%; height: auto; max-width: 100%; background: #f8fafc; border: 1px solid #e1e8ef; border-radius: 4px; }
.ha-svg text { font-family: Helvetica, Arial, sans-serif; fill: #0b1f33; font-size: 15px; }
.ha-svg text.s { font-size: 13px; fill: #4a5d70; }
.ha-svg text.b { font-weight: 700; }
.ha-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ha fieldset { border: 1px solid var(--ha-line); border-radius: 6px; margin: 0; padding: 6px 10px 8px; min-width: 0; }
.ha legend { font-size: .85rem; font-weight: 700; padding: 0 6px; }
.ha-row { display: flex; flex-direction: column; gap: 2px; padding: 5px 0; min-width: 0; }
.ha-row label { font-size: .86rem; font-weight: 600; }
.ha-in { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ha-in input[type=range] { flex: 1 1 auto; min-width: 0; height: 30px; accent-color: var(--ha-oil); }
.ha-in output { flex: 0 0 auto; min-width: 5.5em; text-align: right; font-variant-numeric: tabular-nums; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; font-weight: 600; }
.ha select, .ha input[type=number] { font: inherit; font-size: .9rem; padding: 7px 8px; border: 1px solid var(--ha-line); border-radius: 4px; background: #fff; color: #0b1f33; max-width: 100%; min-width: 0; width: 100%; }
.ha-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ha-card { border: 1px solid var(--ha-line); border-left: 4px solid var(--ha-blue); border-radius: 4px; padding: 8px 10px; background: #fff; min-width: 0; }
.ha-card small { display: block; font-size: .74rem; color: var(--ha-muted); line-height: 1.3; }
.ha-card b { display: block; font-size: 1.1rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ha-card.ok { border-left-color: #1a7f4b; }
.ha-card.warn { border-left-color: var(--ha-oil); }
.ha-card.bad { border-left-color: #b42318; }
.ha-msg { margin: 0; padding: 10px 12px; border-left: 4px solid var(--ha-oil); background: var(--ha-oil-soft); border-radius: 4px; font-size: .92rem; line-height: 1.55; min-height: 4.6em; }
.ha-msg.bad { border-left-color: #b42318; background: #fdecec; }
.ha-msg.ok { border-left-color: #1a7f4b; background: #e8f6ee; }
.ha-note { font-size: .8rem; color: var(--ha-muted); margin: 0; line-height: 1.5; }
.ha-btn { font-size: .86rem; font-weight: 600; padding: 7px 12px; min-height: 40px; border-radius: 4px; border: 1px solid #0b1f33; background: #0b1f33; color: #fff; align-self: flex-start; }
.ha-btn[aria-pressed="true"] { background: var(--ha-oil); border-color: var(--ha-oil); color: #0b1f33; }
.ha-tblw { overflow-x: auto; max-width: 100%; }
.ha-tblw table { border-collapse: collapse; font-size: .85rem; width: 100%; min-width: 280px; }
.ha-tblw th, .ha-tblw td { border: 1px solid var(--ha-line); padding: 4px 8px; text-align: left; }
@media (min-width: 760px) { .ha-body { flex-direction: row; align-items: flex-start; } .ha-col { flex: 1 1 0; } .ha-col.res { flex: 1.1 1 0; }  }
.ha-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (prefers-color-scheme: dark) { .ha { color-scheme: light; } }
@media (prefers-reduced-motion: reduce) { .ha * { transition: none !important; animation: none !important; } }
