    /* TIMER DE DESCANSO */
    .timer-overlay {
      /* bottom: 22px barra + 14px altura + 16px margen = 52px */
      position: fixed; bottom: 52px; left: 50%; z-index: 1200;
      width: calc(100% - 32px); max-width: 520px;
      background: var(--glass-editor);
      backdrop-filter: blur(var(--glass-thick-blur)) saturate(2.2);
      -webkit-backdrop-filter: blur(var(--glass-thick-blur)) saturate(2.2);
      border-radius: 24px;
      border: 1px solid var(--glass-border);
      box-shadow: 0 16px 48px rgba(0,0,0,0.5);
      padding: 16px 16px 18px;
      display: flex; flex-direction: column; align-items: center; gap: 12px;
      transform: translateX(-50%) translateY(calc(100% + 80px));
      transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
      pointer-events: none;
      overflow: hidden;
    }
    .timer-overlay::before {
      content: ''; position: absolute; inset: 0; border-radius: inherit;
      background: var(--glass-shine); pointer-events: none;
    }
    /* Grilla 3 columnas para centrar el anillo perfectamente */
    .timer-controls-row {
      display: grid; grid-template-columns: 1fr auto 1fr;
      align-items: center; gap: 12px; width: 100%;
    }
    .timer-left-group { display: flex; justify-content: flex-end; }
    .timer-right-group { display: flex; justify-content: flex-start; }
    /* X pequeña absoluta en esquina superior derecha */
    .timer-close-corner {
      position: absolute; top: 10px; right: 10px;
      width: 26px; height: 26px; border-radius: 50%;
      border: 1px solid var(--border); background: var(--card);
      color: var(--text2); cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      -webkit-tap-highlight-color: transparent;
      transition: opacity 0.15s, transform 0.1s;
    }
    .timer-close-corner:active { opacity: 0.65; transform: scale(0.9); }
    .timer-overlay.show { transform: translateX(-50%) translateY(0); pointer-events: auto; }
    .timer-ring-wrap {
      position: relative; width: 104px; height: 104px; flex-shrink: 0;
    }
    .timer-svg { width: 104px; height: 104px; transform: rotate(-90deg); display: block; }
    .timer-track { fill: none; stroke: var(--border); stroke-width: 5; }
    .timer-arc {
      fill: none; stroke: url(#timerGradient); stroke-width: 8; stroke-linecap: round;
      stroke-dasharray: 251.3; stroke-dashoffset: 0;
      transition: stroke-dashoffset 0.95s linear, stroke 0.5s;
    }
    @keyframes timer-pulse-red {
      0%, 100% { opacity: 1; } 50% { opacity: 0.15; }
    }
    .timer-overlay.done .timer-arc {
      stroke: var(--red) !important;
      animation: timer-pulse-red 0.65s ease-in-out infinite;
      transition: stroke 0s;
    }
    .timer-center {
      position: absolute; inset: 0;
      display: flex; align-items: center; justify-content: center;
    }
    .timer-display {
      font-size: 26px; font-weight: 800; line-height: 1;
      font-variant-numeric: tabular-nums; letter-spacing: -0.5px;
    }
    /* Título centrado arriba */
    .timer-ex-name {
      width: 100%; text-align: center;
      font-size: 13px; font-weight: 600; color: var(--text2);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    /* Botones base */
    .timer-btn {
      height: 52px; border-radius: 14px; flex-shrink: 0;
      border: 1px solid var(--border); background: var(--card);
      color: var(--text); font-family: inherit; font-size: 15px; font-weight: 800;
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      -webkit-tap-highlight-color: transparent; transition: opacity 0.15s, transform 0.1s;
    }
    .timer-btn:active { opacity: 0.65; transform: scale(0.95); }
    .timer-btn.timer-add { width: 80px; }
    .timer-btn.timer-snd { width: 52px; padding: 0; }
    .timer-btn.timer-snd.on { background: rgba(107,155,150,0.15); border-color: rgba(107,155,150,0.3); color: #6b9b96; }
    /* Botón de timer en la línea de descanso del workout */
    .rest-timer-btn {
      background: none; border: none; color: var(--text3); cursor: pointer;
      padding: 4px 2px; display: flex; align-items: center;
      -webkit-tap-highlight-color: transparent; margin-left: auto;
      opacity: 0.65; transition: opacity 0.15s;
    }
    .rest-timer-btn:active { opacity: 1; }
    /* HERRAMIENTAS VIEW */
    .herr-page { padding: 16px; padding-bottom: 40px; }

    /* Hero header de la sección */
    .herr-page-header { padding: 8px 0 24px; }
    .herr-page-eyebrow {
      font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
      color: #6b9b96; margin-bottom: 8px;
    }
    .herr-page-title {
      font-size: 28px; font-weight: 900; letter-spacing: -0.8px;
      line-height: 1.05; margin-bottom: 8px; color: var(--text);
    }
    .herr-page-sub { font-size: 14px; color: var(--text3); line-height: 1.5; max-width: 300px; }

    /* Timer hero — card principal expandible */
    .herr-timer-hero {
      background: var(--card); border: 1px solid var(--border);
      border-radius: 20px; overflow: hidden; margin-bottom: 20px;
      position: relative;
    }
    /* Línea de acento superior */
    .herr-timer-hero::before {
      content: ''; position: absolute; top: 0; left: 16px; right: 16px; height: 1.5px;
      background: linear-gradient(90deg, transparent 0%, #6b9b96 30%, #8b7faa 70%, transparent 100%);
      opacity: 0.5; border-radius: 1px;
    }
    .herr-timer-hero-top {
      display: flex; align-items: center; gap: 14px;
      padding: 16px 16px 14px; min-height: 56px;
      cursor: pointer; -webkit-tap-highlight-color: transparent;
    }
    .herr-timer-hero-icon {
      width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
      background: rgba(107,155,150,0.12);
      display: flex; align-items: center; justify-content: center;
    }
    .herr-timer-hero-icon svg { width: 22px; height: 22px; stroke: #6b9b96; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .herr-timer-hero-info { flex: 1; min-width: 0; }
    .herr-timer-hero-title { font-size: 16px; font-weight: 700; color: var(--text); }
    .herr-timer-hero-sub { font-size: 11px; color: var(--text3); margin-top: 2px; }
    .herr-timer-hero-badge {
      font-size: 9px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
      padding: 5px 9px; border-radius: 8px; flex-shrink: 0;
      background: rgba(107,155,150,0.1); border: 1px solid rgba(107,155,150,0.25);
      color: #6b9b96; white-space: nowrap;
    }
    .herr-timer-hero-body {
      max-height: 0; overflow: hidden;
      transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
    }
    .herr-timer-hero-body.open { max-height: 520px; }
    .herr-timer-body-inner { padding: 0 16px 20px; border-top: 1px solid var(--border); }

    /* Presets de tiempo */
    .timer-presets {
      display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; margin-top: 16px;
    }
    .timer-preset-btn {
      min-height: 44px;
      padding: 10px 0; border-radius: 12px; border: 1px solid var(--border);
      background: var(--bg2); color: var(--text2); font-family: inherit;
      font-size: 14px; font-weight: 700; cursor: pointer;
      -webkit-tap-highlight-color: transparent; transition: all 0.15s; text-align: center;
    }
    .timer-preset-btn:active { transform: scale(0.96); }
    .timer-preset-btn.selected {
      background: rgba(107,155,150,0.15); color: var(--green);
      border-color: rgba(107,155,150,0.4);
    }
    .timer-start-btn {
      width: 100%; min-height: 52px; border-radius: 14px;
      background: rgba(107,155,150,0.18); border: 1.5px solid rgba(107,155,150,0.4);
      color: #6b9b96; font-family: inherit; font-size: 15px; font-weight: 700;
      cursor: pointer; -webkit-tap-highlight-color: transparent;
      transition: all 0.15s; letter-spacing: 0.3px;
      display: flex; align-items: center; justify-content: center; gap: 8px;
    }
    .timer-start-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .timer-start-btn:active { opacity: 0.7; transform: scale(0.98); }
    [data-theme="light"] .timer-start-btn { background: rgba(107,155,150,0.12); }
    .timer-snd-row {
      display: flex; align-items: center; justify-content: space-between;
      margin-top: 14px; margin-bottom: 14px; padding: 11px 13px; border-radius: 12px;
      background: var(--bg2); border: 1px solid var(--border);
      font-size: 13px; color: var(--text2);
    }
    .timer-snd-row-label { display: flex; align-items: center; gap: 8px; }
    .timer-snd-row-label svg { width: 15px; height: 15px; stroke: var(--text3); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .timer-snd-toggle {
      width: 44px; height: 26px; border-radius: 13px; border: none;
      background: var(--border); cursor: pointer; position: relative;
      transition: background 0.2s; -webkit-tap-highlight-color: transparent; flex-shrink: 0;
    }
    .timer-snd-toggle::after {
      content: ''; position: absolute; top: 3px; left: 3px;
      width: 20px; height: 20px; border-radius: 50%;
      background: #666; transition: transform 0.2s, background 0.2s;
    }
    .timer-snd-toggle.on { background: rgba(107,155,150,0.5); }
    .timer-snd-toggle.on::after { transform: translateX(18px); background: #6b9b96; }

    /* Separadores de grupos */
    .herr-group-label {
      font-size: 10px; font-weight: 700; letter-spacing: 3px;
      text-transform: uppercase; color: var(--text3); margin: 24px 0 10px;
    }

    /* Grid de herramientas */
    .herr-tools-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
    @media (min-width: 520px) { .herr-tools-grid { grid-template-columns: 1fr 1fr; } }

    /* Card activa — tocable */
    .herr-tool-card {
      background: var(--card); border: 1px solid var(--border);
      border-radius: 16px; padding: 16px;
      cursor: pointer; -webkit-tap-highlight-color: transparent;
      transition: background 0.15s, transform 0.12s;
      display: flex; flex-direction: column; gap: 10px;
      position: relative; overflow: hidden; min-height: 108px;
    }
    .herr-tool-card:active { transform: scale(0.975); background: var(--card-h); }
    .herr-tool-card::after {
      content: ''; position: absolute; inset: 0; border-radius: inherit;
      background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, transparent 55%);
      pointer-events: none;
    }
    .herr-tool-card-top { display: flex; align-items: flex-start; gap: 12px; }
    .herr-tool-icon {
      width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
    }
    .herr-tool-icon svg { width: 20px; height: 20px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .herr-tool-icon.teal   { background: rgba(107,155,150,0.12); }
    .herr-tool-icon.teal svg { stroke: #6b9b96; }
    .herr-tool-icon.blue   { background: rgba(113,137,168,0.12); }
    .herr-tool-icon.blue svg   { stroke: #7189a8; }
    .herr-tool-icon.purple { background: rgba(139,127,170,0.12); }
    .herr-tool-icon.purple svg { stroke: #8b7faa; }
    .herr-tool-icon.amber  { background: rgba(184,146,90,0.12); }
    .herr-tool-icon.amber svg  { stroke: #b8925a; }
    .herr-tool-icon.rose   { background: rgba(168,113,113,0.12); }
    .herr-tool-icon.rose svg   { stroke: #a87171; }
    .herr-tool-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
    .herr-tool-sub { font-size: 11px; color: var(--text3); line-height: 1.4; }
    .herr-tool-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
    .herr-tool-action { font-size: 14px; font-weight: 600; }
    .herr-tool-arrow {
      width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      transition: transform 0.15s;
    }
    .herr-tool-card:active .herr-tool-arrow { transform: translateX(2px); }
    .herr-tool-arrow svg { width: 14px; height: 14px; fill: none; stroke-width: 2.5; stroke-linecap: round; }
    /* Colores de acento por variante */
    .herr-tool-card.accent-teal .herr-tool-action { color: #6b9b96; }
    .herr-tool-card.accent-teal .herr-tool-arrow { background: rgba(107,155,150,0.1); border: 1px solid rgba(107,155,150,0.25); }
    .herr-tool-card.accent-teal .herr-tool-arrow svg { stroke: #6b9b96; }
    .herr-tool-card.accent-blue .herr-tool-action { color: #7189a8; }
    .herr-tool-card.accent-blue .herr-tool-arrow { background: rgba(113,137,168,0.1); border: 1px solid rgba(113,137,168,0.25); }
    .herr-tool-card.accent-blue .herr-tool-arrow svg { stroke: #7189a8; }
    .herr-tool-card.accent-purple .herr-tool-action { color: #8b7faa; }
    .herr-tool-card.accent-purple .herr-tool-arrow { background: rgba(139,127,170,0.1); border: 1px solid rgba(139,127,170,0.25); }
    .herr-tool-card.accent-purple .herr-tool-arrow svg { stroke: #8b7faa; }
    .herr-tool-card.accent-amber .herr-tool-action { color: #b8925a; }
    .herr-tool-card.accent-amber .herr-tool-arrow { background: rgba(184,146,90,0.1); border: 1px solid rgba(184,146,90,0.25); }
    .herr-tool-card.accent-amber .herr-tool-arrow svg { stroke: #b8925a; }

    /* Card bloqueada Proximamente */
    .herr-tool-card-soon {
      background: var(--card); border: 1px solid var(--border);
      border-radius: 16px; padding: 16px;
      display: flex; flex-direction: column; gap: 10px;
      position: relative; overflow: hidden; min-height: 108px;
    }
    .herr-tool-card-soon::before {
      content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
      background-image: repeating-linear-gradient(
        -45deg, transparent, transparent 6px,
        rgba(255,255,255,0.013) 6px, rgba(255,255,255,0.013) 7px
      );
    }
    [data-theme="light"] .herr-tool-card-soon::before {
      background-image: repeating-linear-gradient(
        -45deg, transparent, transparent 6px, rgba(0,0,0,0.025) 6px, rgba(0,0,0,0.025) 7px
      );
    }
    .herr-tool-card-soon .herr-tool-card-top { opacity: 0.5; }
    .herr-tool-card-soon .herr-tool-name { opacity: 0.65; }
    .herr-soon-badge {
      display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
      font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
      padding: 4px 9px; border-radius: 6px;
      background: rgba(255,255,255,0.04); border: 1px solid var(--border);
      color: var(--text3); margin-top: auto;
    }
    [data-theme="light"] .herr-soon-badge { background: rgba(0,0,0,0.04); }
    .herr-soon-badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text3); opacity: 0.5; flex-shrink: 0; }

    /* Clases legacy para herr-feature-card (RPE guide, etc.) */
    .herr-section { margin-bottom: 0; }
    .herr-section-header {
      display: flex; align-items: center; gap: 12px; padding: 0;
      cursor: pointer; -webkit-tap-highlight-color: transparent;
    }
    .herr-section-icon {
      width: 36px; height: 36px; border-radius: 10px; background: rgba(107,155,150,0.12);
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    }
    .herr-section-icon svg { width: 18px; height: 18px; stroke: #6b9b96; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .herr-section-title { flex: 1; font-size: 15px; font-weight: 600; }
    .herr-section-chevron { color: var(--text3); transition: transform 0.25s; flex-shrink: 0; }
    .herr-section-chevron.open { transform: rotate(180deg); }
    .herr-section-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
    .herr-section-body.open { max-height: 460px; }
    .herr-section-body.open-tall { max-height: 1200px; }
    .herr-body-inner { padding: 0 16px 16px; }
    .herr-section-icon.blue   { background: rgba(113,137,168,0.12); }
    .herr-section-icon.blue svg   { stroke: #7189a8; }
    .herr-section-icon.purple { background: rgba(139,127,170,0.12); }
    .herr-section-icon.purple svg { stroke: #8b7faa; }
    .herr-section-icon.amber  { background: rgba(184,146,90,0.12); }
    .herr-section-icon.amber svg  { stroke: #b8925a; }
    /* Calculadora 1RM */
    .orm-inputs { display: flex; gap: 8px; margin-bottom: 14px; }
    .orm-input-wrap { flex: 1; }
    /* Input custom — sin flechas nativas, sin step */
    .orm-input {
      width: 100%; padding: 11px 12px; border-radius: 10px;
      border: 1px solid var(--border); background: var(--bg2);
      color: var(--text); font-family: inherit; font-size: 22px; font-weight: 700;
      outline: none; text-align: center;
      -webkit-appearance: none; -moz-appearance: textfield; appearance: none;
    }
    .orm-input::-webkit-inner-spin-button,
    .orm-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
    .orm-input:focus { border-color: rgba(113,137,168,0.5); }
    .orm-input.error { border-color: rgba(168,113,113,0.5); }
    .orm-input-label { font-size: 10px; color: var(--text3); text-align: center; margin-top: 4px; letter-spacing: 0.5px; text-transform: uppercase; }
    .orm-input-error { font-size: 10px; color: #a87171; text-align: center; margin-top: 3px; min-height: 14px; }
    .orm-result {
      text-align: center; padding: 20px 0 10px;
    }
    .orm-result-num { font-size: 36px; font-weight: 900; color: #7189a8; letter-spacing: -1px; }
    .orm-result-unit { font-size: 14px; font-weight: 600; color: var(--text2); margin-left: 4px; }
    .orm-result-label { font-size: 11px; color: var(--text3); margin-top: 2px; }
    .orm-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
    .orm-table th { font-size: 10px; font-weight: 700; color: var(--text3); letter-spacing: 1px; text-transform: uppercase; padding: 6px 4px; text-align: left; }
    .orm-table td { font-size: 13px; font-weight: 600; padding: 8px 4px; border-top: 1px solid var(--border); color: var(--text); }
    .orm-table td:last-child { text-align: right; color: var(--text2); }
    .orm-table tr.orm-zone td:first-child { color: var(--text3); font-size: 11px; }
    .orm-table tr.orm-highlight td { color: #b8925a; }
    .orm-table td.orm-zone-cell { color: var(--text3); font-size: 11px; font-weight: 500; }
    /* MODO PRO — RPE pill badge (en tarjetas de ejercicio) */
    /* Paleta muted — nunca saturados puros. Ver docs/patron-tooltips-mobile.md */
    .rpe-6  { --rpe-c: #7189a8; }
    .rpe-6-5 { --rpe-c: #6e9099; }
    .rpe-7  { --rpe-c: #6b9b96; }
    .rpe-7-5 { --rpe-c: #929b78; }
    .rpe-8  { --rpe-c: #b8925a; }
    .rpe-8-5 { --rpe-c: #be8a64; }
    .rpe-9  { --rpe-c: #c4816e; }
    .rpe-9-5 { --rpe-c: #b87970; }
    .rpe-10 { --rpe-c: #a87171; }
    .rir-0 { --rpe-c: #a87171; }
    .rir-1 { --rpe-c: #c4816e; }
    .rir-2 { --rpe-c: #b8925a; }
    .rir-3 { --rpe-c: #929b78; }
    .rir-4 { --rpe-c: #6b9b96; }
    .rpe-pill {
      display: inline-flex; align-items: center;
      font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
      padding: 3px 8px; border-radius: 5px; cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      background: color-mix(in srgb, var(--rpe-c) 12%, transparent);
      border: 1px solid color-mix(in srgb, var(--rpe-c) 35%, transparent);
      color: var(--rpe-c); transition: opacity 0.15s;
      position: relative;
    }
    .rpe-pill:active { opacity: 0.65; }
    /* RPE tooltip contextual */
    .rpe-tooltip {
      position: fixed;
      background: var(--card); border: 1px solid var(--border);
      border-radius: 10px; padding: 10px 14px; min-width: 200px; max-width: 260px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.35);
      z-index: 500; pointer-events: auto;
      animation: rpeTooltipIn 0.18s ease-out;
    }
    .rpe-tooltip-arrow {
      position: absolute; left: 50%; transform: translateX(-50%);
      width: 0; height: 0; border: 6px solid transparent;
    }
    .rpe-tooltip-arrow.bottom { top: 100%; border-top-color: var(--border); }
    .rpe-tooltip-arrow.top { bottom: 100%; border-bottom-color: var(--border); }
    .rpe-tooltip-name { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
    .rpe-tooltip-desc { font-size: 11px; color: var(--text2); line-height: 1.4; margin-bottom: 6px; }
    .rpe-tooltip-tank { font-size: 11px; font-weight: 600; opacity: 0.7; margin-bottom: 8px; }
    .rpe-tooltip-link { font-size: 11px; font-weight: 600; color: var(--accent, #6b9b96); cursor: pointer; }
    @keyframes rpeTooltipIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
    /* MODO PRO — Guía RPE bottom sheet */
    .rpe-guide-overlay {
      position: fixed; inset: 0; z-index: 500;
      background: var(--glass-overlay);
      backdrop-filter: blur(12px) saturate(1.6);
      -webkit-backdrop-filter: blur(12px) saturate(1.6);
      opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
    }
    .rpe-guide-overlay.open { opacity: 1; visibility: visible; }
    .rpe-guide-sheet {
      position: fixed; bottom: 0; left: 50%; z-index: 501;
      width: 100%; max-width: 540px;
      background: var(--glass-modal);
      backdrop-filter: blur(var(--glass-thick-blur)) saturate(2.0);
      -webkit-backdrop-filter: blur(var(--glass-thick-blur)) saturate(2.0);
      border: 1px solid var(--glass-border);
      border-radius: 24px 24px 0 0; max-height: 88vh;
      display: flex; flex-direction: column;
      transform: translateX(-50%) translateY(100%);
      transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
      padding-bottom: env(safe-area-inset-bottom);
      box-shadow: 0 -12px 48px rgba(0,0,0,0.3);
    }
    .rpe-guide-overlay.open .rpe-guide-sheet { transform: translateX(-50%) translateY(0); }
    .rpe-guide-handle {
      width: 36px; height: 4px; border-radius: 2px;
      background: var(--border); margin: 12px auto 0; flex-shrink: 0;
    }
    .rpe-guide-header {
      padding: 14px 20px 12px; border-bottom: 1px solid var(--border);
      display: flex; align-items: flex-start; justify-content: space-between; flex-shrink: 0;
    }
    .rpe-guide-title { font-size: 15px; font-weight: 700; }
    .rpe-guide-sub { font-size: 11px; color: var(--text3); margin-top: 2px; }
    .rpe-guide-close {
      width: 32px; height: 32px; flex-shrink: 0; padding: 0; border: none; border-radius: 50%;
      background: var(--border); color: var(--text1); cursor: pointer; line-height: 1;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.2s; -webkit-tap-highlight-color: transparent;
    }
    .rpe-guide-close:active { background: var(--text3); }
    .rpe-intensity-bar { display: flex; gap: 4px; padding: 10px 20px 0; flex-shrink: 0; }
    .rpe-intensity-seg { flex: 1; height: 4px; border-radius: 2px; }
    .rpe-guide-body { overflow-y: auto; padding: 4px 20px 24px; flex: 1; -webkit-overflow-scrolling: touch; }
    /* Feature card — para conceptos con cuerpo propio (RPE, etc.) */
    .herr-feature-card {
      background: var(--card); border: 1px solid var(--border);
      border-radius: var(--r); margin-bottom: 10px;
      cursor: pointer; -webkit-tap-highlight-color: transparent;
      transition: background 0.15s; overflow: hidden;
    }
    .herr-feature-card:active { background: var(--card-h); }
    .herr-feature-top {
      display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px;
    }
    .herr-feature-preview {
      font-size: 13px; color: var(--text2); line-height: 1.5;
      padding: 0 16px 10px; border-bottom: 1px solid var(--border);
    }
    .herr-feature-footer {
      display: flex; align-items: center; justify-content: space-between;
      padding: 10px 16px; font-size: 13px; font-weight: 600; color: #8b7faa;
    }
    /* Secciones dentro del bottom sheet de RPE */
    .rpe-intro-block { padding: 14px 0 10px; border-bottom: 1px solid var(--border); }
    .rpe-intro-block:last-of-type { border-bottom: none; }
    .rpe-intro-title { font-size: 14px; font-weight: 700; letter-spacing: 0.3px; margin-bottom: 5px; color: var(--text); }
    .rpe-intro-text { font-size: 14px; color: var(--text2); line-height: 1.6; }
    .rpe-intro-aclaracion { font-size: 11px; color: var(--text3); margin-top: 6px; font-style: italic; }
    .rpe-advertencia {
      margin: 12px 0 4px; padding: 10px 12px; border-radius: 10px;
      background: color-mix(in srgb, #b8925a 10%, transparent);
      border: 1px solid color-mix(in srgb, #b8925a 30%, transparent);
      font-size: 11px; color: var(--text2); line-height: 1.6;
    }
    .rpe-advertencia-title { font-size: 11px; font-weight: 700; color: #b8925a; margin-bottom: 4px; }
    .rpe-scale-section-title {
      font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
      color: var(--text3); padding: 16px 0 8px;
    }
    .rpe-scale-row .rpe-scale-detail {
      font-size: 13px; color: var(--text3); margin-top: 4px; line-height: 1.4;
    }
    .rpe-scale-row .rpe-scale-tank {
      display: inline-block; font-size: 13px; font-weight: 700;
      color: var(--rpe-c); margin-top: 6px; letter-spacing: 0.3px;
    }
    .rpe-scale-row {
      display: flex; align-items: flex-start; gap: 14px;
      padding: 14px 0; border-bottom: 1px solid var(--border);
    }
    .rpe-scale-row:last-child { border-bottom: none; }
    .rpe-scale-num {
      width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
      background: color-mix(in srgb, var(--rpe-c) 12%, transparent);
      border: 1.5px solid color-mix(in srgb, var(--rpe-c) 30%, transparent);
      display: flex; align-items: center; justify-content: center;
      font-size: 18px; font-weight: 900; color: var(--rpe-c);
    }
    .rpe-scale-content { flex: 1; }
    .rpe-scale-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
    .rpe-scale-desc { font-size: 14px; color: var(--text2); line-height: 1.55; }
    .rpe-scale-cue { font-size: 13px; color: var(--text3); margin-top: 5px; font-style: italic; line-height: 1.4; }
    .rpe-scale-bar { height: 3px; border-radius: 2px; margin-top: 8px; background: var(--rpe-c); opacity: 0.5; }
    .rpe-scale-row.rpe-highlight {
      background: color-mix(in srgb, var(--rpe-c) 8%, transparent);
      border-radius: 10px; padding: 12px 10px; margin: 2px -10px; border-bottom: none;
    }
    /* ORM Modal */
    .orm-modal-overlay {
      position: fixed; inset: 0; z-index: 500;
      background: var(--glass-overlay);
      backdrop-filter: blur(12px) saturate(1.6);
      -webkit-backdrop-filter: blur(12px) saturate(1.6);
      opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
      display: flex; align-items: center; justify-content: center; padding: 20px;
    }
    .orm-modal-overlay.open { opacity: 1; visibility: visible; }
    .orm-modal-card {
      background: var(--glass-modal);
      backdrop-filter: blur(var(--glass-thick-blur)) saturate(2.0);
      -webkit-backdrop-filter: blur(var(--glass-thick-blur)) saturate(2.0);
      border: 1px solid var(--glass-border);
      border-radius: 24px; width: 100%; max-width: 400px;
      max-height: 85vh; display: flex; flex-direction: column;
      transform: scale(0.92) translateY(20px);
      transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
      box-shadow: 0 24px 56px rgba(0,0,0,0.45);
      position: relative; overflow: hidden;
    }
    .orm-modal-card::before {
      content: ''; position: absolute; inset: 0; border-radius: inherit;
      background: var(--glass-shine); pointer-events: none; z-index: 1;
    }
    .orm-modal-overlay.open .orm-modal-card { transform: scale(1) translateY(0); }
    .orm-modal-hdr {
      padding: 20px 20px 16px; border-bottom: 1px solid var(--border);
      display: flex; align-items: flex-start; justify-content: space-between; flex-shrink: 0;
    }
    .orm-modal-hdr-title { font-size: 16px; font-weight: 700; }
    .orm-modal-hdr-sub { font-size: 11px; color: var(--text3); margin-top: 3px; }
    .orm-modal-close {
      width: 32px; height: 32px; flex-shrink: 0; padding: 0; border: none; border-radius: 50%;
      background: var(--border); color: var(--text1); cursor: pointer; line-height: 1;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.2s; -webkit-tap-highlight-color: transparent;
    }
    .orm-modal-close:active { background: var(--text3); }
    .orm-modal-body { overflow-y: auto; padding: 20px; flex: 1; -webkit-overflow-scrolling: touch; }
    .orm-calc-btn {
      width: 100%; padding: 14px; border-radius: 12px;
      background: color-mix(in srgb, #7189a8 15%, transparent);
      border: 1.5px solid color-mix(in srgb, #7189a8 35%, transparent);
      color: #7189a8; font-size: 15px; font-weight: 700; letter-spacing: 0.3px;
      cursor: pointer; -webkit-tap-highlight-color: transparent; transition: opacity 0.15s;
    }
    .orm-calc-btn:active { opacity: 0.7; }
    /* ORM Loading — figura + press */
    @keyframes olgFadeIn {
      from { opacity: 0; transform: translateY(8px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes olgPress {
      0%   { transform: translateY(0); }
      10%  { transform: translateY(7px); }
      42%  { transform: translateY(-54px); }
      50%  { transform: translateY(-50px); }
      55%  { transform: translateY(-52px); }
      100% { transform: translateY(-52px); }
    }
    @keyframes olgShadow {
      0%   { transform: scaleX(1);    opacity: 1; }
      10%  { transform: scaleX(1.12); opacity: 1; }
      42%  { transform: scaleX(0.45); opacity: 0.35; }
      100% { transform: scaleX(0.3);  opacity: 0.15; }
    }
    @keyframes olgLines {
      0%   { opacity: 0; transform: translateY(0); }
      16%  { opacity: 0; transform: translateY(0); }
      33%  { opacity: 1; transform: translateY(-22px); }
      50%  { opacity: 0; transform: translateY(-46px); }
      100% { opacity: 0; }
    }
    @keyframes olgSpark {
      0%, 50% { opacity: 0; }
      62%     { opacity: 1; }
      82%     { opacity: 0.7; }
      100%    { opacity: 0; }
    }
    @keyframes olgDot {
      0%, 70%, 100% { opacity: 0.3; transform: translateY(0); }
      35%           { opacity: 1;   transform: translateY(-4px); }
    }
    @keyframes olgProgress {
      0%   { width: 0%; }
      15%  { width: 18%; }
      42%  { width: 62%; }
      72%  { width: 88%; }
      100% { width: 100%; }
    }
    @keyframes ormFadeUp {
      from { opacity: 0; transform: scale(0.95) translateY(10px); }
      to   { opacity: 1; transform: scale(1) translateY(0); }
    }
    .olg-wrap {
      display: flex; flex-direction: column; align-items: center;
      padding: 24px 0 10px; gap: 10px; user-select: none;
      animation: olgFadeIn 0.3s ease both;
    }
    .olg-svg { color: var(--text); overflow: visible; }
    .olg-barbell { animation: olgPress 2.7s cubic-bezier(0.4,0,0.2,1) forwards; }
    .olg-shadow  { animation: olgShadow 2.7s ease forwards; transform-origin: 100px 178px; }
    .olg-lines-l, .olg-lines-r { animation: olgLines 2.7s ease forwards; }
    .olg-spark-a { animation: olgSpark 2.7s ease forwards; }
    .olg-spark-b { animation: olgSpark 2.7s ease forwards; animation-delay: 0.06s; }
    .olg-spark-c { animation: olgSpark 2.7s ease forwards; animation-delay: 0.04s; }
    .olg-spark-d { animation: olgSpark 2.7s ease forwards; animation-delay: 0.1s; }
    .olg-text { font-size: 13px; font-weight: 600; color: var(--text3); letter-spacing: 0.3px; }
    .olg-dot { display: inline-block; animation: olgDot 1s ease-in-out infinite; }
    .olg-dot:nth-child(2) { animation-delay: 0.2s; }
    .olg-dot:nth-child(3) { animation-delay: 0.4s; }
    .olg-progress-track {
      width: 150px; height: 3px; border-radius: 99px;
      background: color-mix(in srgb, #7189a8 20%, transparent);
    }
    .olg-progress-fill {
      height: 100%; border-radius: 99px;
      background: linear-gradient(90deg, #7189a8, color-mix(in srgb, #7189a8 60%, white));
      animation: olgProgress 2.7s cubic-bezier(0.25,0.1,0.4,1) forwards;
    }
    #ormResult.orm-reveal { animation: ormFadeUp 0.45s cubic-bezier(0.34,1.56,0.64,1) both; }
    /* RPE tabs */
    .rpe-tabs-bar {
      display: flex; border-bottom: 1px solid var(--border); flex-shrink: 0;
    }
    .rpe-tab-btn {
      flex: 1; padding: 12px 8px; font-size: 13px; font-weight: 600;
      color: var(--text3); background: none; border: none;
      border-bottom: 2.5px solid transparent; cursor: pointer;
      transition: color 0.2s, border-color 0.2s; -webkit-tap-highlight-color: transparent;
      margin-bottom: -1px;
    }
    .rpe-tab-btn.active { color: #8b7faa; border-bottom-color: #8b7faa; }
    /* Day tabs (rutina por dias) — basado en rpe-tab-btn con scroll horizontal */
    .day-tabs-bar {
      display: flex; overflow-x: auto; overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      margin: 4px 0 16px;
      box-shadow: inset 0 -1px 0 var(--border);
    }
    .day-tabs-bar::-webkit-scrollbar { display: none; }
    .day-tab-btn {
      flex-shrink: 0; padding: 12px 16px; font-size: 13px; font-weight: 600;
      color: var(--text3); background: none; border: none;
      border-bottom: 3.5px solid transparent; cursor: pointer;
      transition: color 0.2s, border-color 0.2s; -webkit-tap-highlight-color: transparent;
      white-space: nowrap; font-family: inherit;
      max-width: 180px; overflow: hidden; text-overflow: ellipsis;
    }
    .day-tab-btn.active { color: #8b7faa; border-bottom-color: #8b7faa; }
    .day-tab-btn.add { color: var(--text3); font-size: 18px; padding: 12px 16px; font-weight: 700; }
    .day-tab-btn.add:active { color: var(--text); }
    .day-tab-panel { display: none; }
    .day-tab-panel.active { display: block; }
    /* Acciones del tab activo (editor): copiar / editar / eliminar */
    .day-tab-actions {
      display: flex; align-items: center; gap: 6px;
      padding: 4px 0 12px; border-bottom: 1px dashed var(--border);
      margin-bottom: 12px;
    }
    .day-tab-actions .day-num-badge {
      width: 28px; height: 28px; border-radius: 8px; display: flex;
      align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #fff;
      text-shadow: 0 1px 2px rgba(0,0,0,0.2); flex-shrink: 0;
    }
    .day-tab-actions .day-tab-name {
      flex: 1; font-size: 14px; font-weight: 600; min-width: 0;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    /* RPE Step cards */
    .rpe-step-card { padding: 24px 0 8px; }
    .rpe-step-num { font-size: 11px; font-weight: 700; color: #8b7faa; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; }
    .rpe-step-title { font-size: 20px; font-weight: 800; margin-bottom: 14px; line-height: 1.2; }
    .rpe-step-text { font-size: 15px; color: var(--text2); line-height: 1.65; }
    .rpe-step-note {
      font-size: 13px; color: #8b7faa; font-weight: 600; margin-top: 14px;
      padding: 10px 12px; border-radius: 8px;
      background: color-mix(in srgb, #8b7faa 10%, transparent);
      border: 1px solid color-mix(in srgb, #8b7faa 25%, transparent);
    }
    .rpe-step-warn {
      margin-top: 16px; padding: 14px; border-radius: 10px;
      background: color-mix(in srgb, #b8925a 10%, transparent);
      border: 1px solid color-mix(in srgb, #b8925a 30%, transparent);
      font-size: 14px; color: var(--text2); line-height: 1.6;
    }
    .rpe-step-warn strong { color: #b8925a; display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
    .rpe-step-dots { display: flex; justify-content: center; gap: 7px; padding: 18px 0 4px; }
    .rpe-step-dot { width: 6px; height: 6px; border-radius: 3px; background: var(--border); transition: all 0.25s; }
    .rpe-step-dot.active { width: 18px; background: #8b7faa; }
    .rpe-step-nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 8px; gap: 10px; }
    .rpe-step-nav-btn {
      flex: 1; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600;
      border: 1px solid var(--border); background: none; color: var(--text);
      cursor: pointer; -webkit-tap-highlight-color: transparent;
    }
    .rpe-step-nav-btn:disabled { opacity: 0.25; pointer-events: none; }
    .rpe-step-nav-btn.primary { background: #8b7faa; border-color: #8b7faa; color: white; }

    @keyframes guideFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
    .rpe-step-card { animation: guideFadeUp 0.32s ease-out; }
    .guide-meta { text-align: center; padding: 8px 0 4px; animation: guideFadeUp 0.32s ease-out; }
    .guide-gauge-wrap { display: flex; justify-content: center; }
    .guide-gauge { width: 100%; max-width: 220px; height: auto; }
    .guide-needle { transform-origin: 110px 112px; transition: transform 1.1s cubic-bezier(0.34,1.56,0.5,1); }
    .guide-stair { position: relative; width: 260px; height: 164px; margin: 2px auto 0; }
    .guide-stair-step {
      position: absolute; width: 120px; height: 30px; border-radius: 6px;
      display: flex; align-items: center; padding: 0 8px; font-size: 11px; font-weight: 600;
      background: transparent; transition: background 0.35s, border-color 0.35s, box-shadow 0.3s;
    }
    .guide-stair-step[data-i="0"] { top: 0; right: 0; }
    .guide-stair-step[data-i="1"] { top: 34px; right: 30px; }
    .guide-stair-step[data-i="2"] { top: 68px; right: 60px; }
    .guide-stair-step[data-i="3"] { top: 102px; right: 90px; }
    .guide-stair-step[data-i="4"] { top: 136px; right: 120px; }
    .guide-stair-step.is-fallo { background: rgba(168,113,113,0.15); border: 0.5px dashed #a87171; }
    .guide-stair-step.is-reserve { background: rgba(184,146,90,0.13); border: 0.5px dashed #b8925a; }
    .guide-stair-step.is-done { background: rgba(107,155,150,0.12); border: 0.5px solid rgba(107,155,150,0.35); }
    .guide-stair-in { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; width: 100%; }
    .guide-stair-icon { flex-shrink: 0; }
    .guide-stair-bolt { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); opacity: 0.18; z-index: 0; }
    .guide-stair-flag {
      position: absolute; right: 100%; top: 50%; transform: translateY(-50%); margin-right: 6px; z-index: 2;
      font-size: 9px; font-weight: 700; letter-spacing: 0.5px; color: #fff; background: #a87171;
      padding: 2px 7px; border-radius: 999px; white-space: nowrap;
    }
    .guide-stair-mark {
      margin-left: auto; display: inline-flex; align-items: center; gap: 4px;
      font-size: 9px; font-weight: 600; color: var(--bg); background: var(--text);
      padding: 2px 7px; border-radius: 999px; white-space: nowrap;
    }
    .guide-tempo { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 4px 0 2px; }
    .guide-tempo-top { display: flex; align-items: center; justify-content: center; gap: 18px; }
    .guide-tempo-clock { font-size: 26px; font-weight: 800; color: var(--text); min-width: 56px; text-align: left; font-variant-numeric: tabular-nums; }
    .guide-tempo-track {
      position: relative; width: 58px; height: 124px; border-radius: 12px;
      background: var(--bg2); border: 1px solid var(--border); padding-top: 8px;
      display: flex; justify-content: center; align-items: flex-start;
    }
    .guide-tempo-mark { display: flex; align-items: center; justify-content: center; line-height: 0; }
    .guide-tempo-phases { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
    .guide-tempo-ph {
      display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0;
      padding: 7px 11px; border-radius: 8px; background: var(--bg2); border: 0.5px solid var(--border);
    }
    .guide-tempo-ph.is-zero { opacity: 0.45; }
    .guide-tempo-ph.is-active { background: var(--green); border-color: var(--green); }
    .guide-tempo-ph.is-active .guide-tempo-ph-n, .guide-tempo-ph.is-active .guide-tempo-ph-l { color: #fff; }
    .guide-tempo-ph-n { font-size: 16px; font-weight: 800; color: var(--text); }
    .guide-tempo-ph-l { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
    .guide-ref { font-size: 10px; line-height: 1.45; color: var(--text3); text-align: center; margin-top: 16px; padding: 0 4px; }
    .guide-ref a { color: var(--text2); text-decoration: underline; text-underline-offset: 2px; -webkit-tap-highlight-color: transparent; }
    .guide-meta-val { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-top: 6px; }
    .guide-meta-tag { font-size: 11px; color: var(--text3); letter-spacing: 0.5px; }
    #guideMetaNum { font-size: 28px; font-weight: 800; line-height: 1; }
    .guide-chips { display: flex; justify-content: center; gap: 5px; margin: 6px 0 2px; flex-wrap: wrap; }
    .guide-chip {
      min-width: 30px; padding: 4px 8px; border-radius: 7px; font-size: 12px; font-weight: 700;
      border: 1px solid var(--border); background: none; color: var(--text2);
      cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background 0.18s, color 0.18s, border-color 0.18s;
    }
    .guide-meta-name { font-size: 15px; font-weight: 800; margin-top: 8px; }
    .guide-meta-desc { font-size: 12px; color: var(--text2); line-height: 1.45; margin-top: 3px; }
    .guide-meta-cue { font-size: 11px; color: var(--text3); line-height: 1.4; margin-top: 3px; font-style: italic; }

    /* Exercise picker (simple dropdown-like list) */
    .ex-picker {
      position: fixed; top: 0; bottom: 0; left: 50%; z-index: 950;
      width: 100%; max-width: 640px; transform: translateX(-50%);
      background: var(--bg); display: flex; flex-direction: column;
      opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
      box-shadow: 0 0 40px rgba(0,0,0,0.15);
    }
    .ex-picker.active { opacity: 1; visibility: visible; }
    .ex-picker-header {
      padding: 16px 20px; border-bottom: 1px solid var(--border);
      display: flex; align-items: center; gap: 12px;
    }
    .ex-picker-close {
      width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--border);
      background: var(--card); cursor: pointer; display: flex; align-items: center;
      justify-content: center; color: var(--text); font-size: 18px;
    }
    .ex-picker-list { flex: 1; overflow-y: auto; padding: 8px 20px; padding-bottom: 8px; }
    .ex-picker.multi-mode .ex-picker-list { padding-bottom: 0; }
    .ex-picker-item {
      display: flex; align-items: center; gap: 12px; padding: 12px;
      background: var(--card); border-radius: var(--rs); margin-bottom: 6px;
      cursor: pointer; -webkit-tap-highlight-color: transparent; transition: all 0.2s;
    }
    .ex-picker-item:active { background: var(--card-h); }
    .ex-picker-thumb {
      width: 44px; height: 44px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
      background: var(--bg2); display: flex; align-items: center; justify-content: center;
    }
    .ex-picker-thumb img { width: 100%; height: 100%; object-fit: contain; background: var(--bg2); }
    .ex-picker-name { font-size: 13px; font-weight: 500; }
    .ex-picker-cat { font-size: 10px; color: var(--text3); }
    .ex-picker-info {
      width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
      background: none; border: none; color: var(--text3); cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      padding: 0; transition: all 0.2s; -webkit-tap-highlight-color: transparent;
    }
    .ex-picker-info svg { width: 16px; height: 16px; }
    .ex-picker-info:active { color: var(--text); }
    .ex-picker-item--static { cursor: default; }
    .ex-picker-item--static:active { background: var(--card); }
    .ex-picker-more {
      width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; padding: 0;
      background: var(--card-h); border: 1px solid var(--border); color: var(--text);
      display: flex; align-items: center; justify-content: center; cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }
    .ex-picker-more svg { width: 20px; height: 20px; }
    .ex-picker-more:active { background: var(--border); }

    /* Multi-mode picker tray */
    .ex-picker-tray {
      display: none; flex-direction: column; gap: 8px;
      padding: 10px 16px; border-top: 1px solid var(--border);
      background: var(--bg2); flex-shrink: 0;
    }
    .ex-picker.multi-mode .ex-picker-tray { display: flex; }
    .ex-picker-tray-scroll {
      display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
      scrollbar-width: none; -ms-overflow-style: none;
    }
    .ex-picker-tray-scroll::-webkit-scrollbar { display: none; }
    .ex-picker-chip {
      display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px;
      background: var(--card); border: 1px solid var(--border); border-radius: 8px;
      flex-shrink: 0; max-width: 160px;
    }
    .ex-picker-chip-thumb {
      width: 36px; height: 36px; border-radius: 6px; overflow: hidden; flex-shrink: 0;
      background: var(--bg); display: flex; align-items: center; justify-content: center;
      position: relative;
    }
    .ex-picker-chip-thumb img { width: 100%; height: 100%; object-fit: contain; background: var(--bg2); }
    .ex-picker-chip-num {
      position: absolute; top: -2px; left: -2px;
      width: 16px; height: 16px; border-radius: 50%;
      background: #7189a8; color: #fff; font-size: 9px; font-weight: 700;
      display: flex; align-items: center; justify-content: center;
    }
    .ex-picker-chip-name {
      font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden;
      text-overflow: ellipsis; max-width: 80px;
    }
    .ex-picker-chip-x {
      width: 20px; height: 20px; border-radius: 6px;
      background: none; border: 1px solid transparent; color: var(--text3);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; flex-shrink: 0; padding: 0; transition: all 0.2s;
    }
    .ex-picker-chip-x svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
    .ex-picker-chip-x:active { background: rgba(255,68,68,0.15); border-color: rgba(255,68,68,0.3); color: var(--red); }
    .ex-picker-confirm {
      width: 100%; padding: 12px; border: none; border-radius: var(--rs);
      background: linear-gradient(135deg, #34d399, #8b5cf6, #3b82f6, #34d399); background-size: 400% 400%; animation: aurora 8s ease infinite; color: #fff; font-family: inherit;
      font-size: 14px; font-weight: 700; cursor: pointer;
      letter-spacing: 0.5px; transition: opacity 0.2s;
    }
    .ex-picker-confirm:disabled { opacity: 0.3; cursor: default; }
    .ex-picker-confirm:not(:disabled):active { opacity: 0.8; }

    /* Multi-mode selected item */
    .ex-picker-item.selected {
      border: 2px solid #7189a8; position: relative;
    }
    .ex-picker-item-order {
      width: 22px; height: 22px; border-radius: 50%;
      background: #7189a8; color: #fff; font-size: 10px; font-weight: 700;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0; margin-left: auto;
    }

    /* Circuito badge */
    .serie-type-badge.circuito { background: rgba(107,155,150,0.15); color: var(--st-circuito); }
    .workout-group.circuito {
      border: 1px solid var(--border); border-radius: var(--rs); overflow: hidden;
      background: var(--card);
    }
    .workout-group.circuito .ex-wrap { margin-bottom: 0; }
    .workout-group.circuito .ex-row { border-radius: 0; }

    /* Student cards */
    .student-card {
      background: var(--glass-card);
      backdrop-filter: blur(14px) saturate(1.4);
      -webkit-backdrop-filter: blur(14px) saturate(1.4);
      border-radius: var(--r); padding: 12px;
      margin-bottom: 8px; display: flex; align-items: flex-start; gap: 10px;
      cursor: pointer; transition: all 0.2s; -webkit-tap-highlight-color: transparent;
    }
    .student-card:active { background: var(--card-h); }
    .student-avatar {
      width: 36px; height: 36px; border-radius: 50%; background: var(--accent, #6b9b96);
      display: flex; align-items: center; justify-content: center;
      font-weight: 800; font-size: 15px; color: #fff; flex-shrink: 0; margin-top: 2px;
    }
    .student-avatar--md { width: 42px; height: 42px; font-size: 17px; }
    .student-avatar--lg { width: 48px; height: 48px; font-size: 20px; }
    .student-avatar--xl { width: 54px; height: 54px; font-size: 22px; }
    .student-avatar--52 { width: 52px; height: 52px; font-size: 22px; }
    .student-avatar--alt { background: var(--accent2, #7b6fa0); }
    .student-info { flex: 1; min-width: 0; }
    .student-name { font-size: 14px; font-weight: 600; }
    .student-meta { font-size: 11px; color: var(--text2); margin-top: 2px; }
    .student-badge {
      font-size: 9px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
      padding: 3px 7px; border-radius: 6px; display: inline-block; margin-top: 4px;
    }
    .student-badge.active { background: transparent; color: var(--text2); border: 1px solid var(--border); }
    .student-badge.inactive { background: rgba(180,120,120,0.12); color: #b47878; }
    .student-badge.pending-request { background: rgba(245,158,11,0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
    .student-badge--archived { background: var(--bg2); color: var(--text3); border: 1px solid var(--border); }
    .student-badge--profe {
      display: inline-flex; align-items: center; gap: 4px;
      background: rgba(139,92,246,0.12); color: #8b5cf6; border: 1px solid rgba(139,92,246,0.28);
      text-transform: none; letter-spacing: 0; font-size: 10px; cursor: pointer; margin-right: 4px;
    }
    @media (hover: hover) { .student-badge--profe:hover { background: rgba(139,92,246,0.2); } }

    /* Health profile badge */
    .health-incomplete-badge {
      font-size: 9px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase;
      padding: 2px 6px; border-radius: 6px; display: inline-block; margin-top: 3px;
      background: var(--glass); color: var(--text3); border: 1px solid var(--border);
      opacity: 0.75;
    }

    /* Health profile chips */
    .hp-chips-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 16px; }
    .hp-chip {
      font-size: 14px; font-weight: 500; padding: 6px 13px; border-radius: 20px;
      border: 1px solid var(--border); background: var(--card); color: var(--text2);
      cursor: pointer; transition: all 0.18s; -webkit-tap-highlight-color: transparent;
      font-family: inherit; line-height: 1; display: inline-block;
    }
    .hp-chip.sel { background: rgba(107,155,150,0.15); border-color: var(--green); color: var(--green); font-weight: 600; }
    .hp-chip:active { opacity: 0.7; }
    .hp-chip--otro { border-style: dashed; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .assign-otro-field { display: flex; flex-direction: column; gap: 14px; }
    .assign-otro-actions { display: flex; gap: 8px; justify-content: flex-end; }
    .hp-num-row { display: flex; gap: 10px; }
    .hp-num-field { flex: 1; }
    .hp-collapsible-header {
      display: flex; align-items: center; justify-content: space-between;
      cursor: pointer; padding: 8px 0; user-select: none;
    }
    .hp-collapsible-header .hp-ch-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text2); }
    .hp-collapsible-header .hp-ch-arrow { color: var(--text3); font-size: 14px; transition: transform 0.2s; }
    .hp-collapsible-header.open .hp-ch-arrow { transform: rotate(90deg); }
    .hp-collapsible-body { overflow: hidden; }
    .hp-save-bar { margin-top: 8px; }

    /* Brief arrow (assign sheet) */
    .assign-brief-arrow { transition: transform 0.2s; }
    .assign-brief-arrow.open { transform: rotate(180deg); }
    .assign-brief-body { padding: 12px 0; }

    /* Medical files */
    .med-file-item {
      display: flex; align-items: center; gap: 10px; padding: 9px 12px;
      border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px;
      background: var(--card);
    }
    .med-file-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .med-file-icon.pdf { background: rgba(220,80,80,0.12); color: #dc5050; }
    .med-file-icon.img { background: rgba(107,155,150,0.12); color: var(--green); }
    .med-file-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
    .med-file-info { flex: 1; min-width: 0; }
    .med-file-name { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .med-file-meta { font-size: 10px; color: var(--text3); margin-top: 2px; }
    .med-file-actions { display: flex; gap: 4px; }
    .med-file-btn { padding: 5px; border: none; background: none; cursor: pointer; color: var(--text3); transition: color 0.18s; line-height: 1; border-radius: 6px; }@media (hover: hover) {
      .med-file-btn:hover { color: var(--text); }
    }@media (hover: hover) {
      .med-file-btn.del:hover { color: #dc5050; }
    }
    .med-file-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
    .med-upload-btn {
      width: 100%; padding: 9px; border: 1px dashed var(--border); background: none;
      color: var(--text3); font-family: inherit; font-size: 14px; font-weight: 600;
      border-radius: 10px; cursor: pointer; transition: all 0.18s; margin-top: 4px;
    }@media (hover: hover) {
      .med-upload-btn:hover { border-color: var(--green); color: var(--green); }
    }
    .med-upload-btn:disabled { opacity: 0.45; cursor: not-allowed; border-color: var(--border); color: var(--text3); }
    .med-upload-hint { font-size: 11px; color: var(--text3); text-align: center; margin-top: 6px; }

    /* Health profile banner in student home */
    .hp-banner {
      background: var(--bg2); border: 1px solid var(--border);
      border-radius: 12px; padding: 11px 14px; margin-bottom: 14px;
    }
    .hp-banner-title { font-size: 14px; font-weight: 700; color: var(--text2); margin-bottom: 2px; }
    .hp-banner-text { font-size: 11px; color: var(--text3); line-height: 1.4; }
    .hp-banner-btn { font-size: 11px; font-weight: 600; color: var(--green); background: none; border: none; cursor: pointer; font-family: inherit; padding: 5px 0 0; display: block; }

    /* Volumen semanal (Herramientas) */
    .vol-hdr-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
    .vol-hdr-icon {
      width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px;
      background: rgba(139,127,170,0.12);
      display: flex; align-items: center; justify-content: center;
    }
    .vol-hdr-icon svg { width: 20px; height: 20px; fill: none; stroke: #8b7faa; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

    .vol-loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 20px; color: var(--text3); font-size: 13px; }
    .vol-spinner { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--border); border-top-color: #8b7faa; animation: volSpin 0.8s linear infinite; }
    @keyframes volSpin { to { transform: rotate(360deg); } }

    .vol-empty { padding: 40px 14px; text-align: center; }
    .vol-empty-t { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.5; }
    .vol-empty-s { font-size: 12px; color: var(--text3); line-height: 1.55; margin-top: 8px; }

    .vol-sec + .vol-sec { margin-top: 28px; }
    .vol-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
    .vol-sec-t { font-size: 15px; font-weight: 700; color: var(--text); }
    .vol-sec-tag {
      font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
      color: #8b7faa; background: rgba(139,127,170,0.12);
      padding: 3px 8px; border-radius: 6px; white-space: nowrap;
    }
    .vol-sec-sub { font-size: 12px; color: var(--text2); line-height: 1.5; margin-bottom: 16px; }
    .vol-sec-sub b { color: var(--text); }

    .vol-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }

    .vol-seg { display: inline-flex; background: var(--bg2); border-radius: 9px; padding: 3px; gap: 2px; margin-bottom: 12px; }
    .vol-seg-btn {
      background: none; border: none; color: var(--text3); font-family: inherit;
      font-size: 12px; font-weight: 600; padding: 6px 13px; border-radius: 6px; cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }
    .vol-seg-btn.on { background: #8b7faa; color: #fff; }

    .vol-mrow { display: flex; align-items: center; gap: 11px; margin: 11px 0; }
    .vol-mrow:first-child { margin-top: 2px; }
    .vol-mname { flex: 0 0 84px; font-size: 12px; font-weight: 600; color: var(--text2); line-height: 1.2; }
    .vol-mtrack { flex: 1; height: 24px; background: var(--bg2); border-radius: 6px; position: relative; overflow: hidden; }
    .vol-mzone { position: absolute; top: 0; bottom: 0; background: rgba(107,155,150,0.16); }
    .vol-mfill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 6px; }
    .vol-mfill-ok { background: var(--green); }
    .vol-mfill-under { background: #a87171; opacity: 0.8; }
    .vol-mfill-over { background: #b8925a; }
    .vol-mval { flex: 0 0 30px; text-align: right; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
    .vol-mscale { display: flex; justify-content: space-between; font-size: 10px; color: var(--text3); margin-top: 6px; padding-left: 95px; }
    .vol-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; font-size: 11px; color: var(--text3); }
    .vol-legend span { display: inline-flex; align-items: center; gap: 5px; }
    .vol-dot { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 9px; }
    .vol-dot-under { background: #a87171; }
    .vol-dot-ok { background: var(--green); }
    .vol-dot-over { background: #b8925a; }

    .vol-insight { font-size: 12.5px; color: var(--text2); line-height: 1.55; margin-top: 14px; padding: 11px 13px; background: var(--bg2); border-radius: 10px; }
    .vol-insight b { color: var(--text); }
    .vol-hl-under { color: #a87171; font-weight: 650; }
    .vol-hl-over { color: #b8925a; font-weight: 650; }

    .vol-bars { display: flex; align-items: flex-end; gap: 7px; height: 150px; margin-top: 4px; }
    .vol-bcol { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
    .vol-bval { font-size: 10px; font-weight: 700; color: var(--text2); font-variant-numeric: tabular-nums; }
    .vol-bar { width: 100%; max-width: 26px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #8b7faa, #5f5680); min-height: 4px; }
    .vol-bar-cur { background: linear-gradient(180deg, #a99cd0, #8b7faa); }
    .vol-blbl { font-size: 9.5px; color: var(--text3); text-align: center; line-height: 1.2; }
    .vol-trend { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 14px; padding: 11px 13px; background: var(--bg2); border-radius: 10px; font-size: 12.5px; color: var(--text2); }
    .vol-trend b { color: var(--text); }
    .vol-delta { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; padding: 3px 8px; border-radius: 7px; font-size: 12px; }
    .vol-delta-up { color: var(--green); background: rgba(107,155,150,0.14); }
    .vol-delta-down { color: #a87171; background: rgba(168,113,113,0.14); }
    .vol-delta svg { width: 12px; height: 12px; }

