/* Herramientas MACC · estilos compartidos de las páginas de herramientas
   (preoperacional, control de fatiga, reporte de accidentes, mi vehículo y mi licencia, normas de tránsito).
   Cada página agrega en su <style> solo lo propio. */
  :root { --grain:url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22260%22 height=%22260%22%3E%3Cfilter id=%22g%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.8%22 numOctaves=%224%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22260%22 height=%22260%22 filter=%22url(%23g)%22/%3E%3C/svg%3E');
          --bg:#071422; --bg2:#0f2236; --txt:#f3f5f4; --muted:rgba(243,245,244,.66); --acc:#3DCFBF; --line:rgba(255,255,255,.10);
          --ok:#3DCFBF; --warn:#f59e0b; --bad:#ef4444; }
  *, *::before, *::after { box-sizing:border-box; }
  html { scroll-behavior:smooth; }
  body { margin:0; background:var(--bg); color:var(--txt); font-family:'Outfit',system-ui,sans-serif; font-weight:300; line-height:1.55; -webkit-font-smoothing:antialiased; overflow-x:clip; }
  a { color:var(--acc); text-decoration:none; }
  button { font:inherit; }
  @keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
  @keyframes rise { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:none; } }
  .bg { position:fixed; inset:0; pointer-events:none; background:radial-gradient(ellipse at 50% 0%,rgba(61,207,191,.12),transparent 55%),linear-gradient(165deg,var(--bg2) 0%,var(--bg) 70%); }
  .grain { position:fixed; inset:0; pointer-events:none; background-image:var(--grain); background-size:260px; opacity:.16; mix-blend-mode:overlay; }

  nav { position:fixed; top:12px; left:50%; transform:translateX(-50%); z-index:99; display:flex; align-items:center; gap:4px; padding:7px 10px; border-radius:16px; border:1px solid var(--line); background:rgba(7,20,34,.6); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 18px 50px rgba(0,0,0,.4); max-width:calc(100% - 24px); }
  .nav-link { display:inline-flex; align-items:center; gap:9px; font-family:'General Sans',sans-serif; font-weight:500; font-size:.88rem; color:rgba(243,245,244,.86); padding:8px 13px; border-radius:9px; white-space:nowrap; }
  .nav-link:hover { color:#fff; background:rgba(255,255,255,.06); }
  .chev-left { width:7px; height:7px; border-left:1.7px solid currentColor; border-bottom:1.7px solid currentColor; transform:rotate(45deg); }

  .wrap { position:relative; z-index:2; max-width:720px; margin:0 auto; padding:92px 16px 140px; }
  .kicker { display:block; font-family:'Space Mono',monospace; letter-spacing:.18em; text-transform:uppercase; font-size:.66rem; color:var(--acc); }
  h1 { margin:8px 0 4px; font-family:'General Sans',sans-serif; font-weight:600; font-size:clamp(1.7rem,6vw,2.3rem); line-height:1.05; letter-spacing:-.03em; }
  .lead { margin:0 0 22px; color:var(--muted); font-size:.98rem; }

  /* Pasos */
  .steps { display:flex; gap:6px; margin:0 0 22px; }
  .step { flex:1; display:flex; flex-direction:column; gap:7px; font-family:'Space Mono',monospace; font-size:.6rem; letter-spacing:.12em; text-transform:uppercase; color:rgba(243,245,244,.45); }
  .step::before { content:""; height:3px; border-radius:3px; background:rgba(255,255,255,.12); }
  .step.done, .step.on { color:var(--acc); }
  .step.done::before, .step.on::before { background:var(--acc); box-shadow:0 0 10px rgba(61,207,191,.5); }

  .card { border:1px solid var(--line); border-radius:20px; background:rgba(255,255,255,.035); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 24px 60px rgba(0,0,0,.35); padding:18px; margin-bottom:14px; animation:rise .5s cubic-bezier(.22,.68,.02,1) both; }
  .card h2 { margin:0 0 4px; font-family:'General Sans',sans-serif; font-weight:600; font-size:1.06rem; letter-spacing:-.01em; }
  .hint { margin:0 0 14px; color:var(--muted); font-size:.88rem; }
  .meta-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
  .meta { min-width:0; }
  .meta small { display:block; font-family:'Space Mono',monospace; font-size:.6rem; letter-spacing:.14em; text-transform:uppercase; color:rgba(243,245,244,.5); margin-bottom:3px; }
  .meta b { font-family:'General Sans',sans-serif; font-weight:500; font-size:.98rem; overflow-wrap:anywhere; }
  .lock { display:inline-flex; align-items:center; gap:6px; margin-top:12px; font-size:.78rem; color:rgba(243,245,244,.5); }

  /* Vehículos */
  .veh-list { display:grid; gap:10px; }
  .veh { display:flex; align-items:center; gap:14px; width:100%; text-align:left; padding:14px; border-radius:14px; border:1px solid rgba(255,255,255,.12); background:rgba(7,20,34,.45); color:var(--txt); cursor:pointer; transition:border-color .2s,background .2s; }
  .veh:hover { border-color:rgba(61,207,191,.4); }
  .veh[aria-checked="true"] { border-color:var(--acc); background:rgba(61,207,191,.10); box-shadow:0 0 0 3px rgba(61,207,191,.12); }
  .veh-ico { flex:none; width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; color:var(--acc); background:rgba(61,207,191,.1); border:1px solid rgba(61,207,191,.25); }
  .veh-txt { flex:1; min-width:0; }
  .plate { display:inline-block; font-family:'Space Mono',monospace; font-weight:700; font-size:.92rem; letter-spacing:.08em; color:#071422; background:#f5c518; border-radius:5px; padding:2px 8px; }
  .veh-sub { display:block; margin-top:4px; font-size:.86rem; color:var(--muted); }
  .radio { flex:none; width:20px; height:20px; border-radius:50%; border:2px solid rgba(255,255,255,.3); }
  .veh[aria-checked="true"] .radio { border-color:var(--acc); background:radial-gradient(circle,var(--acc) 0 45%,transparent 50%); }

  .field { margin-top:16px; }
  .field label { display:block; margin-bottom:7px; font-family:'Space Mono',monospace; font-size:.62rem; letter-spacing:.14em; text-transform:uppercase; color:rgba(243,245,244,.6); }
  .input { width:100%; font:inherit; font-size:16px; font-weight:400; color:var(--txt); background:rgba(7,20,34,.55); border:1px solid rgba(255,255,255,.14); border-radius:12px; padding:13px 14px; outline:none; transition:border-color .2s,box-shadow .2s; }
  .input:focus { border-color:rgba(61,207,191,.7); box-shadow:0 0 0 3px rgba(61,207,191,.15); }
  select.input { appearance:none; background-image:linear-gradient(45deg,transparent 50%,rgba(243,245,244,.6) 50%),linear-gradient(135deg,rgba(243,245,244,.6) 50%,transparent 50%); background-position:calc(100% - 20px) 55%,calc(100% - 15px) 55%; background-size:5px 5px; background-repeat:no-repeat; padding-right:40px; }
  select.input option { background:#0b1a2c; }
  textarea.input { min-height:84px; resize:vertical; }
  .km-row { display:flex; align-items:center; gap:10px; }
  .km-row .input { font-family:'Space Mono',monospace; font-size:18px; letter-spacing:.04em; }
  .unit { font-family:'Space Mono',monospace; color:var(--muted); }
  .note { margin:8px 0 0; font-size:.84rem; color:var(--muted); }
  .alert { margin-top:10px; padding:11px 13px; border-radius:11px; font-size:.88rem; line-height:1.45; display:none; }
  .alert.on { display:block; }
  .alert.err { color:#fecaca; background:rgba(239,68,68,.12); border:1px solid rgba(239,68,68,.35); }
  .alert.warn { color:#fde68a; background:rgba(245,158,11,.10); border:1px solid rgba(245,158,11,.35); }
  .check { display:flex; gap:10px; align-items:flex-start; margin-top:10px; font-size:.9rem; cursor:pointer; }
  .check input { width:20px; height:20px; margin:1px 0 0; accent-color:var(--acc); flex:none; }

  /* Checklist */
  .sec { padding:0; overflow:hidden; }
  .sec-head { display:flex; align-items:center; gap:12px; width:100%; padding:16px 18px; background:none; border:none; color:var(--txt); text-align:left; cursor:pointer; }
  .sec-head h2 { flex:1; margin:0; }
  .count { font-family:'Space Mono',monospace; font-size:.72rem; color:var(--muted); white-space:nowrap; }
  .sec.complete .count { color:var(--acc); }
  .chev { width:8px; height:8px; border-right:1.7px solid var(--muted); border-bottom:1.7px solid var(--muted); transform:rotate(45deg); transition:transform .2s; flex:none; }
  .sec.open .chev { transform:rotate(-135deg); }
  .sec-body { display:none; padding:0 14px 14px; }
  .sec.open .sec-body { display:block; }
  .item { padding:14px 4px; border-top:1px solid rgba(255,255,255,.07); }
  .item:first-of-type { border-top:none; }
  .item p { margin:0 0 10px; font-size:.95rem; color:rgba(243,245,244,.9); }
  .seg { display:grid; grid-template-columns:1fr 1fr .62fr; gap:6px; }
  .opt { display:flex; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:8px 6px; border-radius:10px; border:1px solid rgba(255,255,255,.14); background:rgba(7,20,34,.5); color:rgba(243,245,244,.8); font-family:'General Sans',sans-serif; font-weight:500; font-size:.8rem; line-height:1.15; text-align:center; cursor:pointer; transition:background .15s,border-color .15s,color .15s; }
  .opt[aria-pressed="true"][data-v="ok"] { background:rgba(61,207,191,.18); border-color:var(--ok); color:#c9fbf5; }
  .opt[aria-pressed="true"][data-v="inf"] { background:rgba(245,158,11,.18); border-color:var(--warn); color:#fde68a; }
  .opt[aria-pressed="true"][data-v="na"] { background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.35); color:#fff; }
  .detail { display:none; margin-top:10px; padding:12px; border-radius:12px; background:rgba(245,158,11,.06); border:1px solid rgba(245,158,11,.25); }
  .item.inf .detail { display:block; }
  .detail label { display:block; margin-bottom:6px; font-size:.84rem; color:#fde68a; }
  .photo-row { display:flex; align-items:center; gap:10px; margin-top:10px; flex-wrap:wrap; }
  .photo-btn { display:inline-flex; align-items:center; gap:8px; padding:9px 13px; border-radius:10px; border:1px solid rgba(255,255,255,.18); background:rgba(7,20,34,.5); color:var(--txt); font-size:.86rem; cursor:pointer; }
  .thumb { width:52px; height:52px; border-radius:9px; object-fit:cover; border:1px solid rgba(255,255,255,.2); }
  .crit-tag { display:inline-block; margin-left:6px; padding:1px 7px; border-radius:999px; font-family:'Space Mono',monospace; font-size:.56rem; letter-spacing:.1em; text-transform:uppercase; color:#fecaca; background:rgba(239,68,68,.14); border:1px solid rgba(239,68,68,.3); vertical-align:2px; }

  /* Barra inferior fija */
  .bottom { position:fixed; left:0; right:0; bottom:0; z-index:90; padding:12px 16px calc(12px + env(safe-area-inset-bottom)); background:linear-gradient(to top,rgba(7,20,34,.98) 60%,rgba(7,20,34,0)); }
  .bottom-in { max-width:720px; margin:0 auto; display:flex; align-items:center; gap:12px; }
  .prog { flex:1; min-width:0; }
  .prog small { display:block; font-family:'Space Mono',monospace; font-size:.62rem; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin-bottom:6px; }
  .bar { height:5px; border-radius:5px; background:rgba(255,255,255,.12); overflow:hidden; }
  .bar i { display:block; height:100%; width:0; background:linear-gradient(90deg,#2a9d8f,#3DCFBF); transition:width .3s; }
  .btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:14px 20px; border-radius:12px; border:none; font-family:'General Sans',sans-serif; font-weight:600; font-size:.98rem; color:#071422; background:linear-gradient(135deg,#3DCFBF,#2a9d8f); box-shadow:0 12px 30px rgba(61,207,191,.25); cursor:pointer; white-space:nowrap; }
  .btn[disabled] { opacity:.4; cursor:not-allowed; box-shadow:none; }
  .btn.ghost { color:var(--txt); background:rgba(255,255,255,.06); border:1px solid var(--line); box-shadow:none; }

  /* Resumen */
  .sum-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
  .kpi { padding:12px 10px; border-radius:14px; background:rgba(7,20,34,.5); border:1px solid rgba(255,255,255,.08); text-align:center; }
  .kpi b { display:block; font-family:'General Sans',sans-serif; font-weight:600; font-size:1.6rem; line-height:1; }
  .kpi span { display:block; margin-top:6px; font-size:.74rem; color:var(--muted); line-height:1.25; }
  .kpi.ok b { color:var(--ok); } .kpi.inf b { color:var(--warn); }
  .banner { display:flex; gap:12px; align-items:flex-start; padding:14px; border-radius:14px; margin-bottom:14px; font-size:.92rem; line-height:1.45; }
  .banner.bad { color:#fecaca; background:rgba(239,68,68,.12); border:1px solid rgba(239,68,68,.4); }
  .banner.good { color:#c9fbf5; background:rgba(61,207,191,.10); border:1px solid rgba(61,207,191,.35); }
  .banner.mid { color:#fde68a; background:rgba(245,158,11,.10); border:1px solid rgba(245,158,11,.35); }
  .banner b { display:block; font-family:'General Sans',sans-serif; font-weight:600; margin-bottom:2px; }
  .nov { padding:10px 0; border-top:1px solid rgba(255,255,255,.07); font-size:.9rem; }
  .nov:first-child { border-top:none; }
  .nov em { display:block; font-style:normal; color:#fde68a; margin-top:3px; }
  .commit { font-size:.88rem; color:var(--muted); font-style:italic; margin:0 0 6px; }

  .done-view { text-align:center; padding-top:30px; }
  .done-ico { width:86px; height:86px; margin:0 auto 18px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#071422; background:var(--acc); box-shadow:0 0 50px rgba(61,207,191,.45); animation:rise .6s both; }

  .demo-banner { display:inline-block; margin:0 0 14px; padding:5px 12px; border-radius:999px; font-family:'Space Mono',monospace; font-size:.58rem; letter-spacing:.12em; text-transform:uppercase; color:#071422; background:#fbbf24; white-space:nowrap; }
  .modal { position:fixed; inset:0; z-index:200; display:flex; align-items:flex-end; justify-content:center; background:rgba(3,10,18,.72); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); animation:fadeIn .2s both; }
  .sheet { width:100%; max-width:520px; margin:0 12px calc(12px + env(safe-area-inset-bottom)); padding:22px 20px 18px; border-radius:22px; border:1px solid rgba(255,255,255,.12); background:#0b1a2c; box-shadow:0 30px 80px rgba(0,0,0,.6); animation:rise .3s cubic-bezier(.22,.68,.02,1) both; }
  .sheet h2 { margin:0 0 6px; font-family:'General Sans',sans-serif; font-weight:600; font-size:1.25rem; }
  .sheet .rows { margin:14px 0 18px; display:grid; gap:8px; }
  .sheet .row { display:flex; justify-content:space-between; gap:12px; padding:10px 12px; border-radius:11px; background:rgba(255,255,255,.04); font-size:.92rem; }
  .sheet .row span { color:var(--muted); }
  .sheet .row b { font-family:'General Sans',sans-serif; font-weight:600; text-align:right; }
  .sheet .actions { display:grid; grid-template-columns:1fr 1.4fr; gap:10px; }
  @media (min-width:761px) { .modal { align-items:center; } }
  .ev-row { display:flex; align-items:center; gap:12px; padding:12px 0; border-top:1px solid rgba(255,255,255,.07); }
  .ev-row:first-of-type { border-top:none; padding-top:2px; }
  .ev-ic { flex:none; width:40px; height:40px; border-radius:12px; display:flex; align-items:center; justify-content:center; color:var(--acc); background:rgba(61,207,191,.1); border:1px solid rgba(61,207,191,.25); }
  .ev-ic.okc { color:#071422; background:var(--acc); }
  .ev-ic.no { color:#fde68a; background:rgba(245,158,11,.12); border-color:rgba(245,158,11,.3); }
  .ev-tx { flex:1; min-width:0; }
  .ev-tx b { display:block; font-family:'General Sans',sans-serif; font-weight:500; font-size:.95rem; }
  .ev-tx span { display:block; font-size:.82rem; color:var(--muted); line-height:1.35; }
  #odoPrev img { width:100%; max-height:180px; object-fit:cover; border-radius:12px; margin:4px 0 8px; border:1px solid rgba(255,255,255,.15); }
  .verdict { padding:22px 18px; border-radius:22px; margin:0 0 14px; text-align:center; animation:rise .5s both; }
  .verdict .vi { width:86px; height:86px; margin:0 auto 14px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#071422; }
  .verdict small { display:block; font-family:'Space Mono',monospace; font-size:.62rem; letter-spacing:.16em; text-transform:uppercase; opacity:.85; }
  .verdict h2 { margin:6px 0 8px; font-family:'General Sans',sans-serif; font-weight:700; font-size:clamp(1.6rem,7vw,2.1rem); line-height:1.05; letter-spacing:-.02em; }
  .verdict p { margin:0; font-size:.98rem; line-height:1.45; }
  .verdict.ok { background:rgba(61,207,191,.12); border:1px solid rgba(61,207,191,.5); color:#c9fbf5; } .verdict.ok .vi { background:var(--acc); box-shadow:0 0 50px rgba(61,207,191,.45); }
  .verdict.mid { background:rgba(245,158,11,.12); border:1px solid rgba(245,158,11,.55); color:#fde68a; } .verdict.mid .vi { background:#f59e0b; box-shadow:0 0 50px rgba(245,158,11,.4); }
  .verdict.bad { background:rgba(239,68,68,.14); border:1px solid rgba(239,68,68,.6); color:#fecaca; } .verdict.bad .vi { background:#ef4444; color:#fff; box-shadow:0 0 50px rgba(239,68,68,.45); }
  .hidden { display:none !important; }

  @media (min-width:761px) {
    .wrap { padding-top:110px; }
    .opt { font-size:.86rem; }
  }
  /* ── Control de fatiga ── */
  .intro-points { display:grid; gap:10px; margin:4px 0 0; }
  .ip { display:flex; gap:12px; align-items:flex-start; font-size:.92rem; color:rgba(243,245,244,.86); }
  .ip i { flex:none; width:30px; height:30px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-style:normal; color:var(--acc); background:rgba(61,207,191,.1); border:1px solid rgba(61,207,191,.25); }
  .veh-mini { display:flex; align-items:center; gap:12px; }
  .veh-mini .veh-ico { width:40px; height:40px; }

  .qwrap { animation:rise .35s cubic-bezier(.22,.68,.02,1) both; }
  .qblock { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 12px; }
  .qblock .kicker { color:rgba(243,245,244,.55); }
  .qn { font-family:'Space Mono',monospace; font-size:.7rem; color:var(--acc); white-space:nowrap; }
  .qtext { margin:0 0 6px; font-family:'General Sans',sans-serif; font-weight:600; font-size:clamp(1.3rem,5.4vw,1.65rem); line-height:1.2; letter-spacing:-.015em; }
  .qhelp { margin:0 0 18px; color:var(--muted); font-size:.9rem; }
  .answers { display:grid; gap:10px; }
  .answers.two { grid-template-columns:1fr 1fr; }
  .ans { display:flex; align-items:center; gap:12px; width:100%; min-height:60px; padding:14px 16px; border-radius:14px; border:1px solid rgba(255,255,255,.14); background:rgba(7,20,34,.5); color:var(--txt); font-family:'General Sans',sans-serif; font-weight:500; font-size:1.02rem; text-align:left; cursor:pointer; transition:border-color .15s,background .15s,transform .1s; }
  .answers.two .ans { justify-content:center; font-size:1.1rem; min-height:68px; }
  .ans:active { transform:scale(.985); }
  .ans .rd { flex:none; width:20px; height:20px; border-radius:50%; border:2px solid rgba(255,255,255,.3); }
  .answers.two .ans .rd { display:none; }
  .ans[aria-pressed="true"] { border-color:var(--acc); background:rgba(61,207,191,.14); box-shadow:0 0 0 3px rgba(61,207,191,.12); }
  .ans[aria-pressed="true"] .rd { border-color:var(--acc); background:radial-gradient(circle,var(--acc) 0 45%,transparent 50%); }
  .scale { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; }
  .scale .ans { flex-direction:column; justify-content:center; gap:4px; min-height:84px; padding:10px 4px; text-align:center; }
  .scale .ans b { font-size:1.5rem; line-height:1; }
  .scale .ans span { font-family:'Outfit',sans-serif; font-weight:400; font-size:.7rem; color:var(--muted); line-height:1.15; }
  .scale .ans .rd { display:none; }
  .more { margin-top:14px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.03); }
  .more summary { padding:12px 14px; cursor:pointer; font-size:.9rem; color:var(--acc); list-style:none; }
  .more summary::-webkit-details-marker { display:none; }
  .more summary::before { content:"+ "; font-family:'Space Mono',monospace; }
  .more[open] summary::before { content:"− "; }
  .med { padding:10px 14px; border-top:1px solid rgba(255,255,255,.07); font-size:.86rem; }
  .med b { display:block; font-family:'General Sans',sans-serif; font-weight:500; }
  .med span { color:var(--muted); }
  .privacy { display:flex; gap:8px; align-items:flex-start; margin-top:16px; font-size:.8rem; color:rgba(243,245,244,.55); }

  /* Prueba de reacción */
  .rt-pad { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; width:100%; height:min(46vh,320px); border-radius:22px; border:1px solid rgba(255,255,255,.14); background:rgba(7,20,34,.6); color:var(--txt); font-family:'General Sans',sans-serif; text-align:center; cursor:pointer; user-select:none; -webkit-user-select:none; touch-action:manipulation; -webkit-tap-highlight-color:transparent; transition:background .12s,border-color .12s; }
  .rt-pad b { font-size:1.5rem; font-weight:600; }
  .rt-pad span { font-size:.9rem; color:var(--muted); font-family:'Outfit',sans-serif; }
  .rt-dot { width:86px; height:86px; border-radius:50%; background:rgba(255,255,255,.12); transition:background .12s,box-shadow .12s; }
  .rt-pad.wait .rt-dot { background:#334155; }
  .rt-pad.go { background:rgba(34,197,94,.16); border-color:#22c55e; }
  .rt-pad.go .rt-dot { background:#22c55e; box-shadow:0 0 60px rgba(34,197,94,.7); }
  .rt-pad.early { background:rgba(239,68,68,.12); border-color:rgba(239,68,68,.6); }
  .rt-pad.early .rt-dot { background:#ef4444; }
  .rt-track { display:flex; justify-content:center; gap:8px; margin:14px 0 0; }
  .rt-track i { width:34px; height:6px; border-radius:6px; background:rgba(255,255,255,.14); }
  .rt-track i.on { background:var(--acc); }
  .rt-res { margin-top:14px; text-align:center; font-size:.92rem; color:var(--muted); }
  .rt-res b { color:var(--txt); font-family:'Space Mono',monospace; }

  /* Resumen */
  .sum-row { display:flex; align-items:center; gap:12px; width:100%; padding:12px 4px; border:none; border-top:1px solid rgba(255,255,255,.07); background:none; color:var(--txt); text-align:left; cursor:pointer; }
  .sum-row:first-of-type { border-top:none; }
  .sum-row .st { flex:none; width:10px; height:10px; border-radius:50%; background:var(--acc); }
  .sum-row .st.alert { background:var(--warn); }
  .sum-row .st.crit { background:var(--bad); }
  .sum-row .tx { flex:1; min-width:0; font-size:.9rem; color:rgba(243,245,244,.82); }
  .sum-row .tx b { display:block; font-family:'General Sans',sans-serif; font-weight:500; color:var(--txt); font-size:.95rem; }
  .sum-row .ed { flex:none; font-size:.78rem; color:var(--acc); }
  .reasons { margin:0; padding:0; list-style:none; text-align:left; }
  .reasons li { display:flex; gap:10px; padding:10px 0; border-top:1px solid rgba(255,255,255,.07); font-size:.92rem; }
  .reasons li:first-child { border-top:none; }
  .reasons li i { flex:none; width:10px; height:10px; margin-top:6px; border-radius:50%; background:var(--warn); }
  .reasons li.crit i { background:var(--bad); }
  .tips { margin:0; padding-left:18px; text-align:left; font-size:.92rem; color:rgba(243,245,244,.86); }
  .tips li { margin:4px 0; }
  .end-actions { display:grid; gap:10px; margin-top:6px; }
  .end-actions .btn { width:100%; }
