    /* =========== WEIGHT LOG =========== */
    .weight-section { margin-bottom: 24px; }
    .weight-current { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1.1; }
    .weight-date { font-size: 11px; color: var(--text3); margin-top: 3px; }
    .weight-register-row { display: flex; gap: 8px; align-items: center; margin: 14px 0; }
    .weight-register-row input { flex: 1; margin: 0; }
    .weight-register-row button { white-space: nowrap; }
    .weight-sparkline { display: block; margin: 12px 0 8px; }
    .weight-sparkline polyline { fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .weight-sparkline .spark-area { fill: url(#sparkGrad); opacity: 0.15; }
    .weight-sparkline circle { fill: var(--green); }
    .weight-log-list { margin: 8px 0; }
    .weight-form-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin: 8px 0; }
    .weight-form-card .weight-input { margin: 0; height: 42px; }
    .weight-register-btn { height: 42px; padding: 0 14px; }
    .weight-form-note { font-size: 11px; color: var(--text3); margin-top: 8px; }
    .field-hint { font-size: 11px; color: var(--text3); margin-top: 4px; min-height: 14px; }
    .field-hint--error { color: var(--red); }
    .field-note { font-size: 11px; color: var(--text3); margin-top: -6px; }
    .weight-lock-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin: 8px 0; font-size: 12px; color: var(--text2); line-height: 1.4; text-align: center; }
    .weight-undo-btn { background: none; border: none; color: var(--text3); font-family: inherit; font-size: 11px; cursor: pointer; padding: 0 0 0 8px; text-decoration: underline; }
    .weight-log-item { display: flex; align-items: baseline; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
    .weight-log-item:last-child { border-bottom: none; }
    .weight-log-date { color: var(--text3); font-size: 11px; }
    .weight-log-kg { font-weight: 600; color: var(--text); }
    .weight-diff { font-weight: 600; font-size: 11px; padding: 1px 6px; border-radius: 6px; }
    .weight-diff.down { color: var(--green); background: rgba(107,155,150,0.1); }
    .weight-diff.up { color: #dc5050; background: rgba(220,80,80,0.08); }
    .weight-diff.stable { color: var(--text3); }
    .weight-recomp-banner { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-top: 16px; font-size: 11px; color: var(--text3); line-height: 1.5; }
    .weight-empty { color: var(--text3); font-size: 13px; padding: 12px 0; }

    /* =========== PROFESSOR PROFILE =========== */
    .prof-avatar-wrap { position: relative; width: 72px; height: 72px; flex-shrink: 0; }
    .prof-avatar-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); background: var(--bg2); }
    .prof-avatar-initial { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: var(--text2); background: var(--bg2); border: 2px solid var(--border); }
    .prof-avatar-edit { position: absolute; bottom: -2px; right: -2px; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #34d399, #8b5cf6); color: #fff; border: 2px solid var(--card); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.15s; }
    .prof-avatar-edit:active { transform: scale(0.9); }
    .prof-avatar-edit svg { width: 12px; height: 12px; }
    .prof-social-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
    .prof-social-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--text3); transition: color 0.2s; }@media (hover: hover) {
      .prof-social-icon:hover { color: var(--text); }
    }
    .prof-social-input { flex: 1; margin: 0; }
    .prof-field-clear { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: none; background: var(--bg2); color: var(--text3); display: flex; align-items: center; justify-content: center; cursor: pointer; font-family: inherit; transition: color 0.15s, background 0.15s, opacity 0.15s; -webkit-tap-highlight-color: transparent; }@media (hover: hover) {
      .prof-field-clear:hover { color: var(--text); background: var(--border); }
    }
    .prof-field-clear:active { transform: scale(0.9); }
    .prof-field-clear svg { width: 14px; height: 14px; }
    .prof-field-clear.hidden { display: none; }
    .prof-avatar-remove { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: var(--text3); font-family: inherit; font-size: 12px; cursor: pointer; padding: 4px 6px; margin-top: 8px; -webkit-tap-highlight-color: transparent; }@media (hover: hover) {
      .prof-avatar-remove:hover { color: var(--text2); }
    }
    .prof-avatar-remove svg { width: 13px; height: 13px; }
    .prof-avatar-remove.hidden { display: none; }

    /* =========== BRIEF CARD =========== */
    .brief-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
    .brief-row { font-size: 14px; color: var(--text2); padding: 3px 0; line-height: 1.5; }
    .brief-label { color: var(--text3); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; }
    .brief-chips-inline { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 4px; }
    .brief-chip-ro { font-size: 10px; background: rgba(107,155,150,0.1); color: var(--green); border: 1px solid rgba(107,155,150,0.2); padding: 2px 8px; border-radius: 8px; font-weight: 600; display: inline-block; }

    /* =========== REQUEST STEPS =========== */
    .req-steps { display: flex; align-items: center; gap: 0; margin-bottom: 20px; padding: 0 4px; }
    .req-step-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: background 0.3s, box-shadow 0.3s; flex-shrink: 0; }
    .req-step-dot.active { background: var(--green); box-shadow: 0 0 0 3px rgba(107,155,150,0.2); }
    .req-step-dot.done { background: var(--green); }
    .req-step-line { flex: 1; height: 1px; background: var(--border); }
    .req-step-line.done { background: var(--green); }

    /* =========== WEIGHT SUMMARY (admin) =========== */
    .weight-summary-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
    .weight-summary-trend { font-size: 13px; font-weight: 600; color: var(--text); }
    .weight-summary-detail { font-size: 11px; color: var(--text3); margin-top: 3px; }
    .weight-summary-stale { color: #f59e0b; }
    .weight-sum-exp { cursor: pointer; }
    .weight-sum-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .weight-sum-head-text { min-width: 0; }
    .weight-sum-toggle { display: flex; align-items: center; gap: 6px; flex-shrink: 0; color: var(--text3); }
    .weight-sum-toggle-label { font-size: 11px; font-weight: 600; }
    .weight-sum-chev { transition: transform 0.3s ease; }
    .weight-sum-exp.open .weight-sum-chev { transform: rotate(180deg); }
    .weight-sum-detail { max-height: 0; overflow: hidden; opacity: 0; margin-top: 0; transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.35s ease; }
    .weight-sum-exp.open .weight-sum-detail { max-height: 60vh; overflow-y: auto; opacity: 1; margin-top: 12px; }
    .weight-sum-detail .weight-sparkline { margin-top: 0; }
    .weight-sum-detail .weight-log-list { margin-bottom: 0; }

    /* =========== PROGRESS ENTRY CARD (student) =========== */
    .prog-entry-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; cursor: pointer; margin-bottom: 20px; transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s; }@media (hover: hover) {
      .prog-entry-card:hover { border-color: var(--green); box-shadow: 0 6px 20px rgba(107,155,150,0.12); }
    }
    .prog-entry-card:active { transform: scale(0.99); }
    .prog-entry-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
    .prog-entry-titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
    .prog-entry-title { font-size: 14px; font-weight: 700; color: var(--text); }
    .prog-entry-sub { font-size: 11px; color: var(--text3); }
    .prog-entry-chev { color: var(--text3); flex-shrink: 0; }
    .prog-entry-thumbs { display: flex; gap: 8px; }
    .prog-entry-thumb { position: relative; width: 58px; height: 74px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--border); }
    .prog-entry-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .prog-entry-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.55); color: #fff; font-size: 15px; font-weight: 700; }
    .prog-entry-empty { display: flex; gap: 8px; }
    .prog-entry-ph { width: 58px; height: 74px; border-radius: 10px; border: 1.5px dashed var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .prog-entry-ph.lead { border-color: var(--green); color: var(--green); background: rgba(107,155,150,0.06); animation: progPhPulse 2.2s ease-in-out infinite; }
    @keyframes progPhPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

    /* =========== MY PROF (student view) =========== */
    .my-prof-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 20px; }
    .my-prof-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
    .my-prof-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
    .my-prof-avatar-initial { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: var(--text2); background: var(--bg2); border: 1px solid var(--border); }
    .my-prof-name { font-size: 15px; font-weight: 700; }
    .my-prof-desc { font-size: 14px; color: var(--text2); line-height: 1.5; margin-bottom: 10px; }
    .my-prof-contact { display: flex; flex-wrap: wrap; gap: 8px; }
    .my-prof-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text2); background: var(--bg2); border: 1px solid var(--border); border-radius: 20px; padding: 5px 12px; text-decoration: none; transition: border-color 0.2s, color 0.2s; }@media (hover: hover) {
      .my-prof-link:hover { border-color: var(--green); color: var(--green); }
    }
    .my-prof-link:active { border-color: var(--green); color: var(--green); }
    .my-prof-link svg { width: 14px; height: 14px; flex-shrink: 0; }

    /* =========== MI PERFIL (profe) =========== */
    .my-prof-card--preview { margin-bottom: 24px; position: relative; }
    .prof-avatar-initial--lg { width: 80px; height: 80px; font-size: 32px; }
    .prof-preview-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 4px; }
    .prof-preview-name { font-size: 20px; font-weight: 700; margin-top: 10px; }
    .prof-preview-desc { font-size: 13px; color: var(--text3); margin-top: 4px; line-height: 1.4; max-width: 300px; white-space: pre-line; }
    .prof-preview-caption { text-align: center; margin-top: 8px; font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.8px; opacity: 0.5; }
    .mp-status-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.2); border-radius: 12px; }
    .mp-status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
    .mp-status-title { font-size: 13px; font-weight: 600; color: var(--text); }
    .mp-status-note { font-size: 14px; color: var(--text3); margin-top: 10px; line-height: 1.5; }
    .mp-disconnect-btn { margin-top: 10px; background: none; border: 1px solid var(--border); color: var(--text3); font-size: 14px; padding: 8px 16px; border-radius: 10px; cursor: pointer; font-family: inherit; width: 100%; transition: all 0.2s; -webkit-tap-highlight-color: transparent; }
    .mp-connect-text { font-size: 13px; color: var(--text2); line-height: 1.5; margin-bottom: 12px; }
    .mp-connect-btn { width: 100%; border: none; border-radius: 10px; background: #009ee3; color: #fff; padding: 13px 16px; font-size: 14px; font-weight: 600; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background 0.2s, transform 0.1s; }
    .mp-connect-btn:active { background: #008fcc; transform: scale(0.98); }
    .mp-connect-iso { flex-shrink: 0; }

    /* =========== MI PROFE (vista alumno) =========== */
    .my-prof-card--flush { margin-bottom: 0; }
    .myprofe-head { text-align: center; padding: 12px 0 4px; }
    .myprofe-head-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text3); }
    .myprofe-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 24px; }
    .myprofe-hero-name { font-size: 20px; font-weight: 700; margin-top: 12px; }
    .myprofe-hero-desc { font-size: 13px; color: var(--text3); margin-top: 6px; max-width: 320px; line-height: 1.4; }
    .prog-share-canvas-img { width: 100%; display: block; border-radius: 16px; }

    /* =========== PROGRESS PHOTOS =========== */
    .progress-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 12px 0; }
    .progress-thumb { aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; cursor: pointer; position: relative; }
    .progress-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
    .progress-thumb:active img { transform: scale(1.05); }
    .progress-thumb-date { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; font-size: 9px; font-weight: 600; padding: 12px 6px 4px; text-align: center; }
    .progress-upload-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 12px; border: 1px dashed var(--border); border-radius: 12px; background: none; color: var(--text3); font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit; transition: border-color 0.2s, color 0.2s; margin: 8px 0; }@media (hover: hover) {
      .progress-upload-btn:hover { border-color: var(--green); color: var(--green); }
    }
    .progress-lightbox { position: fixed; inset: 0; z-index: 950; background: rgba(0,0,0,0.92); display: flex; align-items: center; justify-content: center; padding: 20px; }
    .progress-lightbox img { max-width: 100%; max-height: 85vh; border-radius: 12px; object-fit: contain; }
    .progress-lightbox-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.35); box-shadow: 0 2px 12px rgba(0,0,0,0.45); color: #fff; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; -webkit-tap-highlight-color: transparent; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
    .progress-lightbox-info { position: absolute; bottom: 20px; left: 20px; right: 20px; text-align: center; color: rgba(255,255,255,0.7); font-size: 14px; }
    .progress-empty { color: var(--text3); font-size: 14px; text-align: center; padding: 16px 0; }
    .progress-hint { font-size: 11px; color: var(--text3); text-align: center; margin-top: 4px; opacity: 0.7; }
    .progress-upload-preview { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin: 8px 0; display: flex; gap: 12px; align-items: flex-start; opacity: 0; transform: translateY(8px); transition: opacity 0.2s, transform 0.2s; }
    .progress-upload-preview.visible { opacity: 1; transform: translateY(0); }
    .progress-preview-img-wrap { width: 80px; min-width: 80px; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; background: var(--bg2); }
    .progress-preview-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
    .progress-preview-form { flex: 1; display: flex; flex-direction: column; gap: 4px; }
    .progress-preview-label { font-size: 11px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
    .progress-preview-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
    .progress-preview-cancel { padding: 8px 14px; border-radius: 10px; background: none; border: 1px solid var(--border); color: var(--text3); font-size: 11px; font-weight: 600; font-family: inherit; cursor: pointer; }
    .progress-header-row { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }
    .progress-compare-btn { background: none; border: 1px solid var(--border); color: var(--text3); font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 16px; cursor: pointer; font-family: inherit; }
    .progress-compare-btn.active { border-color: var(--green); color: var(--green); }
    /* Modo seleccion */
    .progress-thumb-check { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.6); background: rgba(0,0,0,0.3); display: none; align-items: center; justify-content: center; z-index: 2; }
    .progress-grid.select-mode .progress-thumb-check { display: flex; }
    .progress-thumb-check.checked { background: var(--green); border-color: var(--green); }
    .progress-thumb-check.checked::after { content: ''; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); margin-top: -2px; }
    .progress-thumb.selected { outline: 2px solid var(--green); outline-offset: -2px; }
    /* Barra flotante de seleccion */
    .progress-select-bar { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%) translateY(calc(100% + 20px)); max-width: 460px; width: calc(100% - 24px); background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); border: 1px solid var(--border); border-radius: 16px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; z-index: 200; transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
    .progress-select-bar.visible { transform: translateX(-50%) translateY(0); }
    .progress-select-bar .psel-count { flex: 1; font-size: 13px; font-weight: 600; color: var(--text); }
    .progress-select-bar .psel-share { padding: 10px 18px; border-radius: 10px; background: linear-gradient(135deg, #34d399, #8b5cf6, #3b82f6, #34d399); background-size: 400% 400%; animation: aurora 8s ease infinite; color: #fff; border: none; font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; box-shadow: 0 2px 10px rgba(139,92,246,0.25); letter-spacing: 0.5px; }
    .progress-select-bar .psel-share:disabled { opacity: 0.4; }
    .progress-select-bar .psel-cancel { padding: 10px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--text3); color: var(--text2); font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; margin-right: 8px; }
    /* Lightbox mejorado */
    .progress-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.35); box-shadow: 0 2px 12px rgba(0,0,0,0.45); color: #fff; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
    .progress-lb-nav:active { background: rgba(0,0,0,0.78); }
    .progress-lb-nav.prev { left: 12px; }
    .progress-lb-nav.next { right: 12px; }
    .progress-lb-delete { position: absolute; bottom: 56px; right: 20px; background: rgba(255,255,255,0.1); border: none; color: rgba(255,255,255,0.4); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
    .progress-lb-delete:active { color: rgba(255,255,255,0.7); background: rgba(255,68,68,0.2); }
    .progress-lb-edit { position: absolute; bottom: 56px; right: 64px; background: rgba(255,255,255,0.1); border: none; color: rgba(255,255,255,0.4); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
    .progress-lb-edit:active { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.22); }
    .progress-lb-counter { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.5); font-size: 14px; font-weight: 600; }
    .modal-overlay.prog-edit-modal { z-index: 970; }

    /* =========== PRIVATE NOTES (admin) =========== */
    .private-notes-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 16px; }
    .private-notes-header { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
    .private-notes-header svg { width: 13px; height: 13px; color: var(--text3); }
    .private-notes-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text3); }
    .private-notes-badge { font-size: 8px; background: rgba(245,158,11,0.15); color: #f59e0b; padding: 1px 6px; border-radius: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

    /* Utils */
    body.no-scroll { overflow: hidden; position: fixed; width: 100%; }
    .toast {
      position: fixed; bottom: 70px; left: 50%; transform: translateX(-50%);
      background: var(--glass-bg);
      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);
      color: var(--text);
      box-shadow: 0 8px 32px rgba(0,0,0,0.35);
      display: flex; align-items: center; justify-content: center; gap: 14px;
      font-size: 15px; font-weight: 500; padding: 15px 24px; border-radius: 22px; z-index: 2000;
      max-width: calc(100vw - 32px); width: max-content; box-sizing: border-box;
      white-space: pre-line; text-align: center; line-height: 1.4; overflow-wrap: anywhere;
      opacity: 0; transition: opacity 0.3s; pointer-events: none;
      overflow: hidden;
    }
    .toast.show { opacity: 1; }
    .toast-x {
      display: none; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
      align-items: center; justify-content: center; padding: 0; cursor: pointer;
      background: rgba(255,255,255,0.10); border: 1px solid var(--glass-border);
      color: inherit; -webkit-tap-highlight-color: transparent;
    }
    .toast--error {
      background: rgba(150,54,54,0.32); border-color: rgba(214,96,96,0.42); color: #f0acac;
      pointer-events: auto;
    }
    .toast--error .toast-x { display: inline-flex; }
    [data-theme="light"] .toast--error {
      background: #fbe9e9; border-color: #ecc0c0; color: #a33232;
    }
    [data-theme="light"] .toast--error .toast-x { background: rgba(163,50,50,0.10); border-color: rgba(163,50,50,0.22); }

    /* =========== DOPAMINE SYSTEM =========== */
    /* Check bounce */
    @keyframes checkBounce {
      0% { transform: scale(0.3); opacity: 0; }
      50% { transform: scale(1.3); }
      75% { transform: scale(0.9); }
      100% { transform: scale(1); opacity: 1; }
    }
    @keyframes glowPulse {
      0% { box-shadow: 0 0 0 0 rgba(139,92,246,0.5); }
      70% { box-shadow: 0 0 0 10px rgba(139,92,246,0); }
      100% { box-shadow: 0 0 0 0 rgba(139,92,246,0); }
    }
    @keyframes rowFlash {
      0% { background: rgba(107,155,150,0.25); }
      100% { background: rgba(17,17,17,0.35); }
    }
    .ex-check.just-checked {
      animation: checkBounce 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards, glowPulse 0.6s ease-out;
    }
    .ex-row.just-completed {
      animation: rowFlash 0.8s ease-out forwards;
    }

    /* Progress bar */
    .workout-progress {
      margin: 8px 0 12px; display: flex; align-items: center; gap: 10px;
    }
    .workout-progress-bar {
      flex: 1; height: 6px; background: var(--card); border-radius: 3px; overflow: hidden;
      position: relative;
    }
    .workout-progress-fill {
      height: 100%; background: var(--green); border-radius: 3px;
      transition: width 0.5s cubic-bezier(0.34,1.56,0.64,1);
    }
    .workout-progress-fill.almost {
      background: linear-gradient(90deg, var(--green), #fbbf24);
      animation: progressPulse 1.5s infinite;
    }
    .workout-progress-fill.done {
      background: linear-gradient(90deg, var(--green), #7189a8);
    }
    @keyframes progressPulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.7; }
    }
    .workout-progress-text {
      font-size: 11px; color: var(--text2); font-weight: 600; white-space: nowrap;
      min-width: 60px; text-align: right;
    }
    /* Fixed progress bar bottom */
    .workout-progress-fixed {
      position: fixed; bottom: 22px; left: 20px; right: 20px; z-index: 90;
      height: 14px; background: var(--bg2); border-radius: 8px;
      max-width: 440px; margin: 0 auto;
      box-shadow: 0 2px 12px rgba(0,0,0,0.12);
      overflow: hidden;
    }
    .workout-progress-fixed .workout-progress-fill {
      height: 100%; border-radius: 8px;
      background: linear-gradient(135deg, #34d399, #8b5cf6, #3b82f6, #34d399);
      background-size: 400% 400%;
      animation: aurora 8s ease infinite;
      box-shadow: 0 0 12px rgba(139,92,246,0.4);
      transition: width 0.5s cubic-bezier(0.34,1.56,0.64,1);
    }
    .workout-progress-fixed .workout-progress-fill.almost {
      box-shadow: 0 0 16px rgba(251,191,36,0.5);
    }
    .workout-progress-fixed .workout-progress-fill.done {
      box-shadow: 0 0 16px rgba(52,211,153,0.5);
    }

    /* Completion toast motivacional — Liquid Glass */
    .dopa-toast {
      position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0.5);
      background: rgba(20,20,20,0.88); border: 1px solid #8b7faa;
      color: #8b7faa; font-size: 18px; font-weight: 800; padding: 16px 28px;
      border-radius: 20px; z-index: 600; opacity: 0; pointer-events: none;
      text-transform: uppercase; letter-spacing: 2px; text-align: center;
      backdrop-filter: blur(var(--glass-thick-blur)) saturate(2.0);
      -webkit-backdrop-filter: blur(var(--glass-thick-blur)) saturate(2.0);
      box-shadow: 0 16px 48px rgba(0,0,0,0.4);
      transition: none;
    }
    .dopa-toast.show {
      animation: dopaIn 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
    }
    .dopa-toast.hide {
      animation: dopaOut 0.4s ease-in forwards;
    }
    @keyframes dopaIn {
      0% { opacity: 0; transform: translate(-50%,-50%) scale(0.5); }
      100% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
    }
    @keyframes dopaOut {
      0% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
      100% { opacity: 0; transform: translate(-50%,-50%) scale(0.5) translateY(-20px); }
    }

    /* Full workout celebration overlay — Liquid Glass */
    .celebration-overlay {
      position: fixed; inset: 0; z-index: 550;
      background: var(--glass-modal);
      backdrop-filter: blur(40px) saturate(1.8); -webkit-backdrop-filter: blur(40px) saturate(1.8);
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      opacity: 0; pointer-events: none; transition: opacity 0.5s;
    }
    .celebration-overlay.show { opacity: 1; pointer-events: auto; }
    .celebration-glass-card {
      background: rgba(255,255,255,0.10);
      backdrop-filter: blur(var(--glass-thick-blur)) saturate(2.2);
      -webkit-backdrop-filter: blur(var(--glass-thick-blur)) saturate(2.2);
      border: 1px solid var(--glass-border);
      border-radius: 28px; padding: 40px 32px 32px;
      display: flex; flex-direction: column; align-items: center;
      max-width: 320px; width: 90%;
      box-shadow: 0 24px 64px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.12);
      position: relative; overflow: hidden;
      animation: celebCardIn 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
    }
    /* ::before specular se hereda del bloque LIQUID GLASS arriba */
    @keyframes celebCardIn {
      0% { transform: scale(0.8) translateY(30px); opacity: 0; }
      100% { transform: scale(1) translateY(0); opacity: 1; }
    }
    .celebration-icon {
      font-size: 64px; margin-bottom: 16px;
      animation: celebIcon 0.8s 0.2s cubic-bezier(0.34,1.56,0.64,1) both;
    }
    @keyframes celebIcon {
      0% { transform: scale(0) rotate(-20deg); opacity: 0; }
      60% { transform: scale(1.2) rotate(5deg); }
      100% { transform: scale(1) rotate(0); opacity: 1; }
    }
    .celebration-card--neutra .celebration-icon { animation: none; }
    .celebration-phrase:empty { display: none; }
    .celeb-check { width: 76px; height: 76px; display: block; }
    .celeb-check circle {
      fill: none; stroke: var(--green); stroke-width: 2.5;
      stroke-dasharray: 151; stroke-dashoffset: 151;
      animation: celebCheckDraw 0.6s 0.15s ease forwards;
    }
    .celeb-check path {
      fill: none; stroke: var(--green); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;
      stroke-dasharray: 34; stroke-dashoffset: 34;
      animation: celebCheckDraw 0.35s 0.6s ease forwards;
    }
    @keyframes celebCheckDraw { to { stroke-dashoffset: 0; } }
    .celebration-x {
      position: absolute; top: 12px; right: 12px; z-index: 2;
      width: 28px; height: 28px; border: none; border-radius: 50%;
      background: rgba(255,255,255,0.1); color: var(--text3);
      font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
      transition: background 0.2s;
    }@media (hover: hover) {
      .celebration-x:hover { background: rgba(255,255,255,0.2); }
    }
    .celebration-title {
      font-size: 24px; font-weight: 900; color: #8b7faa;
      text-transform: uppercase; letter-spacing: 3px; margin-bottom: 8px;
      text-shadow: 0 0 20px rgba(139,127,170,0.4);
      text-align: center; white-space: pre-line;
      animation: celebSlide 0.6s 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
    }
    .celebration-phrase {
      font-size: 15px; color: var(--text2); font-weight: 500;
      max-width: 300px; text-align: center; line-height: 1.6;
      font-style: italic; white-space: pre-line;
      animation: celebSlide 0.6s 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
    }
    .celebration-stats {
      margin-top: 24px; display: flex; gap: 20px;
      animation: celebSlide 0.6s 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
    }
    .celebration-stat {
      text-align: center;
      background: rgba(255,255,255,0.06); border-radius: 14px; padding: 12px 16px;
    }
    .celebration-stat-num {
      font-size: 28px; font-weight: 900; color: var(--text);
    }
    .celebration-stat-label {
      font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 1px;
    }
    .celebration-close {
      margin-top: 24px; padding: 14px 44px; border: none; border-radius: 28px;
      background: linear-gradient(135deg, #34d399, #8b5cf6, #3b82f6, #34d399);
      background-size: 400% 400%; color: #fff;
      font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
      text-transform: uppercase; letter-spacing: 0.5px;
      box-shadow: 0 4px 20px rgba(139,92,246,0.3);
      animation: celebSlide 0.6s 0.7s cubic-bezier(0.34,1.56,0.64,1) both;
      transition: transform 0.15s, box-shadow 0.15s;
    }
    .celebration-close:active { transform: scale(0.96); box-shadow: 0 2px 10px rgba(139,92,246,0.2); }
    @keyframes celebSlide {
      0% { transform: translateY(20px); opacity: 0; }
      100% { transform: translateY(0); opacity: 1; }
    }

