/* Laboratorio de análisis de aceite (prefijo aa). Paleta de la serie: ámbar + azul + azul marino. */
.aa { --aa-oil: #d98a0b; --aa-oil-soft: #fff4de; --aa-blue: #1f5fa8; --aa-muted: var(--muted, #4a5d70); --aa-line: var(--line, #cfdae6);
  background: var(--card, #ffffff); color: #0b1f33; border: 1px solid var(--aa-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; }
.aa *, .aa *::before, .aa *::after { box-sizing: border-box; }
.aa-head { display: flex; flex-direction: column; gap: 2px; }
.aa-head strong { font-size: 1.15rem; }
.aa-head span { color: var(--aa-muted); font-size: .92rem; line-height: 1.5; }
.aa button { font: inherit; cursor: pointer; }
.aa-tabs, .aa-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.aa-tab, .aa-pre { font-size: .88rem; font-weight: 600; padding: 7px 12px; min-height: 40px; border-radius: 4px; border: 1px solid var(--aa-line); background: #f3f6f9; color: #0b1f33; }
.aa-tab[aria-pressed="true"] { background: #0b1f33; border-color: #0b1f33; color: #fff; }
.aa-pre[aria-pressed="true"] { background: var(--aa-oil-soft); border-color: var(--aa-oil); }
.aa button:focus-visible, .aa select:focus-visible, .aa input:focus-visible { outline: 3px solid var(--aa-oil); outline-offset: 2px; }
.aa-panel[hidden] { display: none; }
.aa-panel { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.aa-svg { display: block; width: 100%; height: auto; max-width: 100%; background: #f8fafc; border: 1px solid #e1e8ef; border-radius: 4px; }
.aa-svg text { font-family: Helvetica, Arial, sans-serif; fill: #0b1f33; font-size: 14px; }
.aa-svg text.s { font-size: 13px; fill: #4a5d70; }
.aa-svg text.b { font-weight: 700; }
.aa-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.aa fieldset { border: 1px solid var(--aa-line); border-radius: 6px; margin: 0; padding: 6px 10px 8px; min-width: 0; }
.aa legend { font-size: .85rem; font-weight: 700; padding: 0 6px; }
.aa-row { display: flex; flex-direction: column; gap: 2px; padding: 5px 0; min-width: 0; }
.aa-row label { font-size: .86rem; font-weight: 600; }
.aa-in { display: flex; align-items: center; gap: 10px; min-width: 0; }
.aa-in input[type=range] { flex: 1 1 auto; min-width: 0; height: 30px; accent-color: var(--aa-oil); }
.aa-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; }
.aa select { font: inherit; font-size: .9rem; padding: 7px 8px; border: 1px solid var(--aa-line); border-radius: 4px; background: #fff; color: #0b1f33; max-width: 100%; min-width: 0; width: 100%; }
.aa-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.aa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.aa-card { border: 1px solid var(--aa-line); border-left: 4px solid var(--aa-blue); border-radius: 4px; padding: 8px 10px; background: #fff; min-width: 0; }
.aa-card small { display: block; font-size: .74rem; color: var(--aa-muted); line-height: 1.3; }
.aa-card b { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.aa-card.ok { border-left-color: #1a7f4b; }
.aa-card.warn { border-left-color: var(--aa-oil); }
.aa-card.bad { border-left-color: #b42318; }
.aa-msg { margin: 0; padding: 10px 12px; border-left: 4px solid var(--aa-oil); background: var(--aa-oil-soft); border-radius: 4px; font-size: .92rem; line-height: 1.55; min-height: 5.6em; }
.aa-msg.bad { border-left-color: #b42318; background: #fdecec; }
.aa-msg.ok { border-left-color: #1a7f4b; background: #e8f6ee; }
.aa-note { font-size: .8rem; color: var(--aa-muted); margin: 0; line-height: 1.5; }
.aa-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; }
.aa-btn[aria-pressed="true"] { background: var(--aa-oil); border-color: var(--aa-oil); color: #0b1f33; }
.aa-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (min-width: 760px) { .aa-body { flex-direction: row; align-items: flex-start; } .aa-col { flex: 1 1 0; } .aa-col.res { flex: 1.1 1 0; } }
@media (prefers-color-scheme: dark) { .aa { color-scheme: light; } }
@media (prefers-reduced-motion: reduce) { .aa * { transition: none !important; animation: none !important; } }
.aa-steps { display: flex; flex-direction: column; gap: 6px; }
.aa-step { font-size: .88rem; font-weight: 600; text-align: left; padding: 8px 12px; min-height: 44px; border-radius: 4px; border: 1px solid var(--aa-line); background: #f3f6f9; color: #0b1f33; }
.aa-step[aria-pressed="true"] { background: #e8f6ee; border-color: #1a7f4b; }
.aa-btn.alt { background: #fff; color: #0b1f33; }
.aa-btn.alt[aria-pressed="true"] { background: var(--aa-oil); }
.aa-svg text.w { fill: #fff; }
.aa-svg text.dk { fill: #0b1f33; }
.aa-svg text.s { font-size: 16px; }
.aa-svg text { font-size: 17px; }
@media (min-width: 760px) { .aa-steps { flex-direction: row; flex-wrap: wrap; } .aa-step { flex: 1 1 150px; } }
.aa-chk { flex-direction: row; align-items: center; gap: 8px; }
.aa-chk input { width: 22px; height: 22px; accent-color: var(--aa-oil); flex: 0 0 auto; }
.aa-chk label { font-size: .86rem; font-weight: 600; }
.aa-pts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.aa-pt { font-size: .84rem; font-weight: 600; text-align: left; padding: 6px 8px; min-height: 44px; border-radius: 4px; border: 1px solid var(--aa-line); background: #f3f6f9; color: #0b1f33; display: flex; align-items: center; gap: 6px; min-width: 0; }
.aa-pt .n { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #0b1f33; color: #fff; font-size: .8rem; }
.aa-pt[aria-pressed="true"] { background: #e8f6ee; border-color: #1a7f4b; }
.aa-log { display: flex; flex-direction: column; gap: 4px; }
.aa-logrow { font-size: .84rem; padding: 4px 8px; border-left: 4px solid #1a7f4b; background: #f3f6f9; border-radius: 3px; }
.aa-logrow.bad { border-left-color: #b42318; background: #fdecec; font-weight: 600; }
.aa-tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
.aa-tbl th, .aa-tbl td { border-bottom: 1px solid var(--aa-line); padding: 6px 6px; text-align: left; vertical-align: middle; }
.aa-tbl th { font-size: .78rem; color: var(--aa-muted); }
.aa-chip { display: inline-block; font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; color: #fff; white-space: nowrap; }
.aa-chip.ok { background: #1a7f4b; } .aa-chip.warn { background: #b7791f; } .aa-chip.bad { background: #b42318; }
.aa-num { font: inherit; font-size: .9rem; padding: 7px 8px; border: 1px solid var(--aa-line); border-radius: 4px; width: 100%; min-width: 0; background: #fff; color: #0b1f33; }
.aa-tblwrap { overflow-x: auto; max-width: 100%; }
.aa-big { margin: 0; font-size: 1.2rem; }
.aa-btn { font-size: .86rem; font-weight: 600; padding: 7px 12px; min-height: 40px; border-radius: 4px; border: 1px solid #0b1f33; background: #0b1f33; color: #fff; }
.aa-btn.alt { background: #fff; color: #0b1f33; }
