/* ============ DESIGN TOKENS ============ */
  :root{
    --pitch:      #0E0E0E; /* negro IVOO, fondo principal */
    --pitch-deep: #000000; /* negro puro, máxima profundidad */
    --chalk:      #F5F5F5; /* blanco IVOO */
    --amber:      #1FBF5C; /* verde esmeralda IVOO — el acento de marca */
    --navy:       #1B1B1B; /* grafito/carbón, paneles secundarios */
    --navy-deep:  #0A0A0A; /* carbón profundo, fondo del panel admin */
    --whistle:    #E24C4B; /* rojo de alerta, se mantiene por convención de UX */
    --turf-light: #E7F8EC; /* verde menta muy pálido para fondos claros */
    --line:       rgba(245,245,245,0.14);

    --font-display: 'Bebas Neue', sans-serif;
    --font-body:    'Inter', -apple-system, sans-serif;
    --font-mono:    'Space Mono', monospace;

    --ease-flip: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-pop:  cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  @media (prefers-reduced-motion: reduce){
    *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  }

  *{ box-sizing: border-box; }
  html{ scroll-behavior: smooth; }
  body{
    margin:0; background:var(--pitch); color:var(--chalk);
    font-family: var(--font-body); line-height:1.5; overflow-x:hidden;
  }
  h1,h2,h3{ font-family: var(--font-display); letter-spacing:0.01em; margin:0; text-transform:uppercase; }
  p{ margin:0; }
  button{ font-family:inherit; cursor:pointer; color:inherit; }
  input,select{ font-family:inherit; }
  ::selection{ background:var(--amber); color:var(--navy); }
  :focus-visible{ outline:3px solid var(--amber); outline-offset:3px; border-radius:4px; }
  [hidden]{ display:none !important; }

  .wrap{ max-width:900px; margin:0 auto; padding:0 24px; }
  .eyebrow{
    font-family:var(--font-mono); font-size:12px; letter-spacing:0.18em;
    color:var(--amber); text-transform:uppercase; display:flex; align-items:center; gap:10px;
  }
  .eyebrow::before{ content:''; width:22px; height:2px; background:var(--amber); display:inline-block; }

  /* ============ HEADER ============ */
  header{
    position:sticky; top:0; z-index:50; background:rgba(11,61,46,0.88);
    backdrop-filter:blur(8px); border-bottom:1px solid var(--line);
  }
  .nav{ display:flex; align-items:center; justify-content:space-between; padding:16px 24px; max-width:900px; margin:0 auto; }
  .wordmark{ font-family:var(--font-display); font-size:22px; letter-spacing:0.04em; }
  .wordmark span{ color:var(--amber); }
  .nav-links{ display:flex; gap:24px; list-style:none; margin:0; padding:0; align-items:center; }
  .nav-links a{
    color:var(--chalk); text-decoration:none; font-size:14px; font-weight:600;
    position:relative; padding-bottom:4px; opacity:0.85;
  }
  .nav-links a::after{
    content:''; position:absolute; left:0; bottom:0; height:2px; width:0; background:var(--amber);
    transition:width 0.35s var(--ease-flip);
  }
  .nav-links a:hover::after, .nav-links a:focus-visible::after{ width:100%; }
  .nav-links a:hover, .nav-links a:focus-visible{ opacity:1; }
  .nav-links .admin-link{
    font-family:var(--font-mono); font-size:12px; border:1px solid var(--line); border-radius:999px;
    padding:7px 14px; opacity:1;
  }
  .nav-links .admin-link::after{ display:none; }
  .nav-links .admin-link:hover{ border-color:var(--amber); color:var(--amber); }

  /* ============ HERO ============ */
  .hero{ padding:88px 0 56px; text-align:center; position:relative; }
  .hero::after{
    content:''; position:absolute; inset:auto 0 0 0; height:1px;
    background:repeating-linear-gradient(90deg, var(--line) 0 14px, transparent 14px 26px);
  }
  .hero h1{
    font-size:clamp(38px, 7vw, 68px); line-height:0.98; margin:18px 0 20px;
    opacity:0; transform:translateY(18px); animation:rise 0.8s var(--ease-flip) 0.15s forwards;
  }
  .hero h1 em{ font-style:normal; color:var(--amber); }
  .hero p.sub{
    max-width:520px; margin:0 auto; font-size:17px; color:rgba(244,244,236,0.78);
    opacity:0; transform:translateY(14px); animation:rise 0.8s var(--ease-flip) 0.32s forwards;
  }
  @keyframes rise{ to{ opacity:1; transform:translateY(0); } }

  .scoreboard{
    margin:40px auto 0; display:flex; justify-content:center; gap:14px; flex-wrap:wrap;
    opacity:0; animation:rise 0.8s var(--ease-flip) 0.48s forwards;
  }
  .score-card{
    background:var(--navy); border:1px solid var(--line); border-radius:10px;
    padding:16px 26px; min-width:150px;
  }
  .score-card .label{ font-family:var(--font-mono); font-size:11px; letter-spacing:0.1em; color:rgba(244,244,236,0.6); text-transform:uppercase; }
  .odometer{ display:flex; gap:2px; margin-top:8px; justify-content:center; }
  .odo-digit{
    font-family:var(--font-mono); font-weight:700; font-size:28px; color:var(--amber);
    width:20px; height:34px; overflow:hidden; position:relative;
  }
  .odo-digit .track{ position:absolute; inset:0; display:flex; flex-direction:column; transition:transform 0.9s var(--ease-flip); }
  .odo-digit .track span{ height:34px; display:flex; align-items:center; justify-content:center; }

  .cta-primary{
    margin-top:36px; background:var(--amber); color:var(--pitch-deep); border:none;
    font-family:var(--font-display); font-size:18px; letter-spacing:0.03em;
    padding:15px 34px; border-radius:999px; display:inline-flex; align-items:center; gap:10px;
    box-shadow:0 6px 0 #128C45; transition:transform 0.12s var(--ease-pop), box-shadow 0.12s var(--ease-pop);
  }
  .cta-primary:hover{ transform:translateY(-2px); box-shadow:0 8px 0 #128C45; }
  .cta-primary:active{ transform:translateY(4px); box-shadow:0 2px 0 #128C45; }

  /* ============ FORM SECTION ============ */
  section{ padding:64px 0 88px; }
  .section-head{ text-align:center; max-width:560px; margin:0 auto 40px; }
  .section-head h2{ font-size:clamp(28px,5vw,40px); margin-top:14px; }
  .section-head p{ color:rgba(244,244,236,0.72); margin-top:12px; font-size:15px; }
  .reveal{ opacity:0; transform:translateY(24px); transition:opacity 0.7s var(--ease-flip), transform 0.7s var(--ease-flip); }
  .reveal.in{ opacity:1; transform:translateY(0); }

  .form-card{
    background:var(--navy); border:1px solid var(--line); border-radius:20px; padding:40px;
    max-width:640px; margin:0 auto;
  }
  .field{ margin-bottom:26px; }
  .field label{ display:block; font-size:13px; font-weight:600; margin-bottom:8px; color:rgba(244,244,236,0.85); }
  .field input, .field select{
    width:100%; background:var(--pitch-deep); border:2px solid var(--line); color:var(--chalk);
    border-radius:10px; padding:13px 14px; font-size:15px; transition:border-color 0.2s ease;
  }
  .field input:focus, .field select:focus{ border-color:var(--amber); outline:none; }

  .sport-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(130px,1fr)); gap:12px; perspective:1000px; }
  .sport-chip{ background:none; border:none; padding:0; height:118px; }
  .chip-inner{
    position:relative; width:100%; height:100%; text-align:left;
    transform-style:preserve-3d; transition:transform 0.6s var(--ease-flip); border-radius:12px;
  }
  .sport-chip.active .chip-inner{ transform:rotateY(180deg); }
  .chip-face{
    position:absolute; inset:0; backface-visibility:hidden; border-radius:12px;
    padding:14px; display:flex; flex-direction:column; justify-content:space-between; border:2px solid var(--line);
  }
  .chip-front{ background:var(--pitch-deep); }
  .sport-chip:hover .chip-front, .sport-chip:focus-visible .chip-front{ border-color:var(--amber); }
  .chip-front svg{ width:28px; height:28px; stroke:var(--chalk); }
  .chip-name{ font-family:var(--font-display); font-size:17px; letter-spacing:0.02em; color:var(--chalk); }
  .chip-back{
    background:var(--amber); color:var(--pitch-deep); transform:rotateY(180deg);
    align-items:center; justify-content:center; text-align:center; gap:6px; border-color:var(--amber);
  }
  .chip-back svg{ width:26px; height:26px; stroke:var(--pitch-deep); }
  .chip-back .chip-name{ font-size:16px; color:var(--pitch-deep); }
  .chip-back-label{ font-family:var(--font-mono); font-size:11px; letter-spacing:0.08em; text-transform:uppercase; opacity:0.75; }
  .field-hint{ font-family:var(--font-mono); font-size:12px; color:rgba(244,244,236,0.55); margin-top:10px; }

  .submit-btn{
    width:100%; background:var(--amber); color:var(--pitch-deep); border:none; font-family:var(--font-display);
    font-size:20px; letter-spacing:0.03em; padding:16px; border-radius:12px; margin-top:8px;
    box-shadow:0 6px 0 #128C45; transition:transform 0.12s var(--ease-pop), box-shadow 0.12s var(--ease-pop);
  }
  .submit-btn:hover{ transform:translateY(-2px); box-shadow:0 8px 0 #128C45; }
  .submit-btn:active{ transform:translateY(4px); box-shadow:0 2px 0 #128C45; }
  .error-text{ color:var(--whistle); font-size:13px; margin-top:10px; font-weight:600; display:none; }
  .error-text.show{ display:block; }

  footer{ text-align:center; padding:32px 24px; font-size:12px; color:rgba(244,244,236,0.5); font-family:var(--font-mono); }

  /* ============ CONFIRMATION OVERLAY ============ */
  #overlay{
    position:fixed; inset:0; background:rgba(8,43,33,0.92); display:flex; align-items:center; justify-content:center;
    z-index:100; opacity:0; pointer-events:none; transition:opacity 0.3s ease; padding:20px;
  }
  #overlay.show{ opacity:1; pointer-events:auto; }
  .ticket{
    background:var(--chalk); color:var(--pitch-deep); border-radius:18px; padding:40px; max-width:400px; width:100%;
    text-align:center; position:relative; transform:translateY(40px) scale(0.92); opacity:0;
    transition:transform 0.45s var(--ease-pop), opacity 0.3s ease;
  }
  #overlay.show .ticket{ transform:translateY(0) scale(1); opacity:1; }
  .stamp{
    width:88px; height:88px; margin:0 auto 18px; border-radius:50%; border:4px solid var(--whistle);
    color:var(--whistle); display:flex; align-items:center; justify-content:center; font-family:var(--font-display);
    font-size:13px; letter-spacing:0.03em; transform:scale(0) rotate(-18deg); line-height:1.1;
  }
  #overlay.show .stamp{ animation:stamp-in 0.5s var(--ease-pop) 0.35s forwards; }
  @keyframes stamp-in{ to{ transform:scale(1) rotate(-12deg); } }
  .ticket h3{ font-size:26px; margin-bottom:10px; }
  .ticket p{ font-size:15px; color:#444; margin-bottom:4px; }
  .ticket-sports{ display:flex; flex-wrap:wrap; gap:6px; justify-content:center; margin:14px 0 4px; }
  .ticket-sports span{
    background:var(--turf-light); color:var(--pitch); font-family:var(--font-mono);
    font-size:12px; padding:5px 10px; border-radius:999px; font-weight:700;
  }
  .ticket-close{
    margin-top:22px; background:var(--pitch); color:#fff; border:none; border-radius:10px;
    padding:13px 22px; font-weight:700; font-size:14px; width:100%;
  }
  .confetti-piece{
    position:fixed; top:-10px; width:8px; height:14px; z-index:99; pointer-events:none;
    animation:confetti-fall linear forwards;
  }
  @keyframes confetti-fall{ to{ transform:translateY(105vh) rotate(540deg); opacity:0.9; } }

  /* ============ ADMIN DASHBOARD ============ */
  .admin-view{ background:var(--navy-deep); min-height:100vh; padding-bottom:60px; }
  .admin-wrap{ max-width:1080px; padding-top:44px; }
  .admin-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:36px; }
  .admin-head h2{ font-size:clamp(28px,5vw,40px); margin-top:10px; }
  .back-link{
    font-family:var(--font-mono); font-size:13px; color:var(--chalk); text-decoration:none;
    border:1px solid var(--line); border-radius:999px; padding:9px 16px; white-space:nowrap;
    transition:border-color 0.2s ease, color 0.2s ease;
  }
  .back-link:hover{ border-color:var(--amber); color:var(--amber); }

  .stat-row{
    display:grid; grid-template-columns:repeat(auto-fit, minmax(180px,1fr)); gap:14px; margin-bottom:32px;
  }
  .stat-card{
    background:var(--navy); border:1px solid var(--line); border-radius:14px; padding:20px;
    opacity:0; transform:translateY(14px); animation:rise 0.5s var(--ease-flip) forwards;
  }
  .stat-card .stat-label{ font-family:var(--font-mono); font-size:11px; letter-spacing:0.08em; color:rgba(244,244,236,0.6); text-transform:uppercase; }
  .stat-card .stat-value{ font-family:var(--font-display); font-size:36px; color:var(--amber); margin-top:6px; line-height:1; }
  .stat-card .stat-sub{ font-size:12px; color:rgba(244,244,236,0.55); margin-top:6px; }

  .chart-card{
    background:var(--navy); border:1px solid var(--line); border-radius:16px; padding:28px; margin-bottom:32px;
  }
  .chart-title{ font-family:var(--font-mono); font-size:12px; letter-spacing:0.1em; text-transform:uppercase; color:rgba(244,244,236,0.7); margin-bottom:20px; }
  .chart-row{ display:flex; align-items:center; gap:14px; margin-bottom:14px; }
  .chart-row:last-child{ margin-bottom:0; }
  .chart-icon{ width:22px; height:22px; stroke:var(--chalk); flex-shrink:0; }
  .chart-label{ width:110px; font-size:13px; font-weight:600; flex-shrink:0; }
  .chart-track{ flex:1; height:14px; background:var(--pitch-deep); border-radius:999px; overflow:hidden; }
  .chart-fill{
    height:100%; background:var(--amber); border-radius:999px; width:0%;
    transition:width 0.8s var(--ease-flip);
  }
  .chart-count{ font-family:var(--font-mono); font-size:13px; width:28px; text-align:right; flex-shrink:0; color:var(--amber); }

  .table-card{ background:var(--navy); border:1px solid var(--line); border-radius:16px; padding:28px; }
  .table-controls{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:20px; }
  .table-controls input, .table-controls select{
    background:var(--navy-deep); border:2px solid var(--line); color:var(--chalk);
    border-radius:10px; padding:11px 14px; font-size:14px; transition:border-color 0.2s ease;
  }
  .table-controls input:focus, .table-controls select:focus{ border-color:var(--amber); outline:none; }
  .table-controls input{ flex:1; min-width:180px; }
  .table-scroll{ overflow-x:auto; }
  table{ width:100%; border-collapse:collapse; font-size:14px; }
  thead th{
    text-align:left; font-family:var(--font-mono); font-size:11px; letter-spacing:0.08em; text-transform:uppercase;
    color:rgba(244,244,236,0.55); padding:0 12px 12px; border-bottom:1px solid var(--line); white-space:nowrap;
  }
  tbody td{ padding:14px 12px; border-bottom:1px solid var(--line); vertical-align:middle; }
  tbody tr{ transition:background 0.15s ease; }
  tbody tr:hover{ background:rgba(255,182,39,0.05); }
  .cell-name{ font-weight:600; }
  .cell-depto{ font-family:var(--font-mono); font-size:12px; color:rgba(244,244,236,0.75); }
  .cell-date{ font-family:var(--font-mono); font-size:12px; color:rgba(244,244,236,0.5); white-space:nowrap; }
  .sport-tags{ display:flex; flex-wrap:wrap; gap:6px; }
  .sport-tags span{
    background:var(--pitch-deep); border:1px solid var(--line); color:var(--chalk);
    font-family:var(--font-mono); font-size:11px; padding:4px 9px; border-radius:999px;
  }
  .table-empty{ text-align:center; padding:36px 0; color:rgba(244,244,236,0.5); font-size:14px; }

  .login-card{
    background:var(--navy); border:1px solid var(--line); border-radius:20px; padding:40px;
  }
  #login-error{ text-align:center; }
  @keyframes shake{
    10%,90%{ transform:translateX(-1px); }
    20%,80%{ transform:translateX(2px); }
    30%,50%,70%{ transform:translateX(-4px); }
    40%,60%{ transform:translateX(4px); }
  }
  .login-card.shake{ animation:shake 0.5s; }

  /* ============ AÑADIDOS DE LA VERSIÓN CON BACKEND ============ */
  .admin-status{
    font-family:var(--font-mono); font-size:12px; letter-spacing:0.04em;
    color:rgba(245,245,245,0.45); margin:0 0 18px; min-height:16px;
  }
  .admin-status.error{ color:var(--whistle); }

  th.cell-actions, td.cell-actions{ text-align:right; white-space:nowrap; }
  .row-action{
    background:none; border:1px solid var(--line); border-radius:8px;
    color:rgba(245,245,245,0.55); font-family:var(--font-mono);
    font-size:11px; letter-spacing:0.06em; text-transform:uppercase;
    padding:6px 10px; transition:border-color .18s var(--ease-flip), color .18s var(--ease-flip), background .18s var(--ease-flip);
  }
  .row-action:hover{ border-color:var(--whistle); color:var(--whistle); }
  .row-action.confirm{ border-color:var(--whistle); color:var(--whistle); background:rgba(226,76,75,0.14); }
  .row-action[disabled]{ opacity:.5; cursor:wait; }

  .submit-btn[disabled]{ opacity:.6; cursor:progress; }

  /* ============ PANEL: PESTAÑAS ============ */
  .admin-actions{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
  .admin-user{
    font-family:var(--font-mono); font-size:11px; letter-spacing:0.08em;
    text-transform:uppercase; color:var(--amber);
    border:1px solid rgba(31,191,92,0.35); border-radius:999px;
    padding:6px 12px; background:rgba(31,191,92,0.08);
  }

  .admin-tabs{
    display:flex; gap:6px; flex-wrap:wrap;
    border-bottom:1px solid var(--line); margin:8px 0 24px; padding-bottom:0;
  }
  .admin-tab{
    background:none; border:none; border-bottom:2px solid transparent;
    color:rgba(245,245,245,0.5); font-family:var(--font-mono);
    font-size:12px; letter-spacing:0.08em; text-transform:uppercase;
    padding:12px 16px; transition:color .18s var(--ease-flip), border-color .18s var(--ease-flip);
  }
  .admin-tab:hover{ color:var(--chalk); }
  .admin-tab.active{ color:var(--amber); border-bottom-color:var(--amber); }

  .tab-panel{ display:block; }
  .tab-panel[hidden]{ display:none; }
  .tab-panel > .table-card + .table-card,
  .tab-panel > .chart-card + .chart-card,
  .tab-panel > .chart-card + .table-card,
  .tab-panel > .table-card + .chart-card{ margin-top:22px; }

  .card-head{ display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; }
  .card-hint{ font-size:13px; color:rgba(245,245,245,0.5); margin:6px 0 18px; }

  /* ============ PANEL: DISCIPLINAS ============ */
  .deporte-form-grid{ display:grid; grid-template-columns:2fr 1fr; gap:14px; }
  @media (max-width:620px){ .deporte-form-grid{ grid-template-columns:1fr; } }

  .icon-picker{
    display:flex; flex-wrap:wrap; gap:10px; margin-top:4px;
  }
  .icon-option{
    width:56px; height:56px; display:grid; place-items:center;
    background:var(--pitch); border:1px solid var(--line); border-radius:12px;
    transition:border-color .18s var(--ease-flip), transform .18s var(--ease-pop), background .18s var(--ease-flip);
  }
  .icon-option svg{ width:30px; height:30px; stroke:rgba(245,245,245,0.7); fill:none; }
  .icon-option:hover{ transform:translateY(-2px); border-color:rgba(245,245,245,0.35); }
  .icon-option.active{ border-color:var(--amber); background:rgba(31,191,92,0.12); }
  .icon-option.active svg{ stroke:var(--amber); }

  .deporte-grid{
    display:grid; grid-template-columns:repeat(auto-fill, minmax(215px, 1fr)); gap:14px;
  }
  .deporte-card{
    background:var(--pitch); border:1px solid var(--line); border-radius:14px;
    padding:18px; text-align:left; display:flex; flex-direction:column; gap:12px;
    transition:border-color .18s var(--ease-flip), transform .18s var(--ease-pop);
  }
  .deporte-card:hover{ border-color:rgba(31,191,92,0.5); transform:translateY(-2px); }
  .deporte-card.inactivo{ opacity:0.55; }
  .deporte-card.selected{ border-color:var(--amber); }

  .deporte-card-top{ display:flex; align-items:center; gap:12px; }
  .deporte-card-icon{ width:38px; height:38px; display:grid; place-items:center; font-size:26px; line-height:1; flex:none; }
  .deporte-card-icon svg{ width:32px; height:32px; stroke:var(--amber); fill:none; }
  .deporte-card-name{ font-family:var(--font-display); font-size:22px; line-height:1.05; }
  .deporte-card-code{ font-family:var(--font-mono); font-size:10px; letter-spacing:0.08em; color:rgba(245,245,245,0.4); }
  .deporte-card-count{ font-family:var(--font-mono); font-size:12px; color:var(--amber); }
  .deporte-card-count.cero{ color:rgba(245,245,245,0.4); }
  .deporte-card-btns{ display:flex; gap:6px; flex-wrap:wrap; margin-top:auto; }
  .deporte-card-btns .row-action{ flex:1; text-align:center; }
  .row-action.neutral:hover{ border-color:var(--amber); color:var(--amber); }
  .badge-off{
    font-family:var(--font-mono); font-size:9px; letter-spacing:0.1em; text-transform:uppercase;
    border:1px solid var(--line); border-radius:999px; padding:3px 8px; color:rgba(245,245,245,0.45);
  }

  .roster-breakdown{ display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 18px; }
  .roster-breakdown span{
    font-family:var(--font-mono); font-size:11px; letter-spacing:0.05em;
    border:1px solid var(--line); border-radius:999px; padding:5px 11px;
    color:rgba(245,245,245,0.65);
  }
  .roster-breakdown b{ color:var(--amber); font-weight:700; }

  /* ============ PANEL: HISTORIAL ============ */
  .feed, .mini-feed{ list-style:none; margin:0; padding:0; }
  .feed li, .mini-feed li{
    display:flex; gap:14px; align-items:flex-start;
    padding:14px 0; border-bottom:1px solid var(--line);
  }
  .feed li:last-child, .mini-feed li:last-child{ border-bottom:none; }
  .mini-feed{ margin-top:8px; }

  .feed-dot{
    width:8px; height:8px; border-radius:50%; background:var(--amber);
    margin-top:7px; flex:none;
  }
  .feed-dot.warn{ background:var(--whistle); }
  .feed-dot.muted{ background:rgba(245,245,245,0.3); }

  .feed-body{ flex:1; min-width:0; }
  .feed-title{ font-size:14px; color:var(--chalk); }
  .feed-meta{
    font-family:var(--font-mono); font-size:11px; letter-spacing:0.05em;
    color:rgba(245,245,245,0.45); margin-top:4px;
    display:flex; gap:10px; flex-wrap:wrap;
  }
  .feed-tag{
    font-family:var(--font-mono); font-size:10px; letter-spacing:0.08em; text-transform:uppercase;
    border:1px solid var(--line); border-radius:999px; padding:3px 9px;
    color:rgba(245,245,245,0.55); flex:none; margin-top:2px;
  }
  .feed-more{ display:flex; align-items:center; gap:14px; margin-top:18px; }
  .feed-count{ font-family:var(--font-mono); font-size:11px; color:rgba(245,245,245,0.4); }

  /* Los íconos pueden ser un SVG de la galería o un emoji escrito por el admin:
     estos tamaños hacen que ambos casos se vean parejos. */
  .chip-icon{ font-size:26px; line-height:1; }
  .chart-icon{ display:grid; place-items:center; font-size:17px; line-height:1; }
  .icon-option{ font-size:24px; }

  /* ============ CONFIRMACIÓN EN LÍNEA Y AVISOS ============ */
  /* Pedir confirmación con dos botones distintos, en vez de dos clics sobre
     el mismo, evita que se quede a medias sin que nadie se entere. */
  .confirm-box{
    display:inline-flex; gap:8px; align-items:center; justify-content:flex-end; flex-wrap:wrap;
  }
  .confirm-q{
    font-family:var(--font-mono); font-size:11px; letter-spacing:0.04em;
    color:var(--whistle); white-space:nowrap;
  }
  .row-action.danger{
    border-color:var(--whistle); color:var(--whistle); background:rgba(226,76,75,0.16);
  }
  .row-action.danger:hover{ background:rgba(226,76,75,0.28); }

  .toast{
    position:fixed; right:24px; bottom:24px; z-index:200; max-width:min(380px, calc(100vw - 48px));
    background:var(--navy); color:var(--chalk); border:1px solid var(--line);
    border-left:3px solid var(--amber); border-radius:12px;
    padding:14px 18px; font-size:14px; line-height:1.45;
    box-shadow:0 18px 40px rgba(0,0,0,0.45);
    opacity:0; transform:translateY(12px); pointer-events:none;
    transition:opacity .22s var(--ease-flip), transform .22s var(--ease-pop);
  }
  .toast.show{ opacity:1; transform:translateY(0); }
  .toast.error{ border-left-color:var(--whistle); }
  @media (max-width:520px){
    .toast{ right:16px; left:16px; bottom:16px; max-width:none; }
  }
