/* ESDE 15.10.303 — Evaluación personal: modal adaptable, modo claro principal y certificados en vista separada. */
.esde-cert244,
body .esde-cert246-modal-shell .esde-cert244,
body .ed3-floating-dialog-content-151099[data-esde303-eval-modal] .esde-cert244 {
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;
  margin:0!important;padding:clamp(12px,1.5vw,22px)!important;overflow-x:clip!important;
  font-family:Poppins,Arial,sans-serif!important;font-size:14px!important;line-height:1.5!important;
}
.esde-cert244 *, .esde-cert244 *::before, .esde-cert244 *::after {box-sizing:border-box!important;min-width:0;}
.esde-cert244 img,.esde-cert244 svg,.esde-cert244 video {max-width:100%!important;height:auto;}
.esde-cert244 :is(input,select,textarea,button){max-width:100%!important;font-family:Montserrat,Poppins,Arial,sans-serif!important;}
.esde-cert244 :is(h1,h2,h3,h4,h5,h6){font-family:Marvin,"Marvin Round",Poppins,sans-serif!important;overflow-wrap:anywhere!important;line-height:1.2!important;}
.esde-cert244 :is(p,li,td,th,small,label){overflow-wrap:anywhere;}
.esde-cert244 .esde-cert251-topbar {width:100%!important;max-width:100%!important;margin:0 0 12px!important;gap:10px!important;}
.esde-cert244 .esde-cert251-heading {flex:1 1 210px!important;min-width:0!important;}
.esde-cert244 .esde-cert251-nav,.esde-cert244 .esde-cert251-actions {min-width:0!important;max-width:100%!important;flex-wrap:wrap!important;}
.esde-cert244 .esde-cert251-nav a,.esde-cert244 .esde-cert251-actions button {white-space:normal!important;overflow-wrap:anywhere!important;}
.esde-cert244 .esde-cert238-section-title {min-width:0!important;flex-wrap:wrap!important;}
.esde-cert244 .esde-cert238-form-grid,
.esde-cert244 .esde-cert243-branding-form,
.esde-cert244 .esde-cert243-activity-fields,
.esde-cert244 .esde-cert238-columns,
.esde-cert244 .esde-cert241-skill-grid,
.esde-cert244 .esde-cert241-topic-eval-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.esde-cert244 .esde-cert238-wide {grid-column:1/-1!important;}
.esde-cert244 .esde-cert237-list,.esde-cert244 .esde-cert237-program,.esde-cert244 .esde-cert238-history,.esde-cert244 .esde-cert239-roadmap {min-width:0!important;max-width:100%!important;}
.esde-cert244 .esde-cert237-program {overflow:hidden!important;}
.esde-cert244 .esde-cert237-evals,.esde-cert244 .esde-cert300-profile-table-wrap {max-width:100%!important;overflow-x:auto!important;overscroll-behavior-inline:contain;}
.esde-cert244 .esde-cert237-evals table {width:100%!important;min-width:620px!important;}
.esde-cert244 .esde-cert251-list-tools {grid-template-columns:minmax(0,1fr) minmax(0,.6fr) auto!important;}
.esde-cert244 .esde-cert251-list-tools label {min-width:0!important;}

/* Modal launched from the platform's lazy module viewer. Keep all scrolling inside the content area. */
body .ed3-floating-dialog-card-151099[data-esde303-eval-modal] {
  display:flex!important;flex-direction:column!important;width:min(1180px,calc(100vw - 28px))!important;
  max-width:calc(100vw - 28px)!important;max-height:calc(100dvh - 28px)!important;height:min(92dvh,960px)!important;
  min-width:0!important;overflow:hidden!important;margin:auto!important;
}
body .ed3-floating-dialog-card-151099[data-esde303-eval-modal] .ed3-floating-dialog-head-151099 {flex:0 0 auto!important;min-width:0!important;}
body .ed3-floating-dialog-content-151099[data-esde303-eval-modal] {
  display:block!important;flex:1 1 auto!important;min-height:0!important;width:100%!important;max-width:100%!important;
  min-width:0!important;padding:0!important;overflow-x:hidden!important;overflow-y:auto!important;
}
body .ed3-floating-dialog-content-151099[data-esde303-eval-modal] .ed3-floating-shortcode-151099 {width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important;}
body .ed3-floating-dialog-content-151099[data-esde303-eval-modal] .esde-cert244 {width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;}
body .esde-cert246-modal-shell {overflow:hidden!important;}
body .esde-cert246-modal-shell .esde-cert246-modal-window {display:flex!important;flex-direction:column!important;width:min(1240px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;height:min(92dvh,960px)!important;max-height:calc(100dvh - 24px)!important;min-width:0!important;overflow:hidden!important;}
body .esde-cert246-modal-shell .esde-cert246-modal-body {flex:1 1 auto!important;min-height:0!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important;overflow-y:auto!important;padding:0!important;}
body .esde-cert246-modal-shell .esde-cert244 {width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;}


body .esde-cert246-modal-shell[data-esde-theme="dark"] .esde-cert246-modal-window {background:#2D3742!important;color:#EDF2F7!important;border-color:#4A5968!important;}
body .esde-cert246-modal-shell[data-esde-theme="dark"] .esde-cert246-modal-body {background:#222A33!important;color:#EDF2F7!important;}
body .esde-cert246-modal-shell[data-esde-theme="dark"] .esde-cert246-modal-head {background:#222A33!important;border-color:#45B8E8!important;}
body .esde-cert246-modal-shell[data-esde-theme="dark"] .esde-cert246-modal-head .esde-cert251-heading>strong {color:#E8EEF3!important;}

/* Navigation between the working evaluation view and the dedicated certificate view. */
.esde-cert244 .esde-cert303-view-switch {display:flex!important;align-items:center!important;gap:7px!important;flex-wrap:wrap!important;width:100%!important;margin:0 0 14px!important;padding:5px!important;border:1px solid #D7E3ED!important;border-radius:12px!important;background:#EAF1F7!important;}
.esde-cert244 .esde-cert303-view-button {display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:40px!important;padding:9px 15px!important;border:1px solid transparent!important;border-radius:9px!important;background:transparent!important;color:#314B62!important;font:700 12px/1.3 Montserrat,Poppins,sans-serif!important;cursor:pointer!important;}
.esde-cert244 .esde-cert303-view-button[aria-pressed="true"] {background:#237EAD!important;color:#FFFFFF!important;border-color:#237EAD!important;box-shadow:0 2px 5px rgba(23,59,89,.12)!important;}
.esde-cert244 .esde-cert303-cert-intro {display:none!important;align-items:flex-start!important;gap:12px!important;margin:0 0 14px!important;padding:16px 18px!important;border:1px solid #D1E0EB!important;border-left:4px solid #45B8E8!important;border-radius:12px!important;background:#FFFFFF!important;color:#173B59!important;}
.esde-cert244 .esde-cert303-cert-intro h3 {margin:0 0 4px!important;font:400 22px/1.2 Marvin,Poppins,sans-serif!important;color:#173B59!important;}
.esde-cert244 .esde-cert303-cert-intro p {margin:0!important;font:400 13px/1.5 Poppins,Arial,sans-serif!important;color:#52677C!important;}
.esde-cert244 .esde-cert303-certificate-tools {display:none!important;margin:0 0 12px!important;padding:16px!important;border:1px solid #D2DEE9!important;border-radius:12px!important;background:#FFFFFF!important;color:#173146!important;}
.esde-cert244 .esde-cert303-certificate-tools[hidden] {display:none!important;}
.esde-cert244 .esde-cert303-certificate-tools-head {display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important;margin:0 0 10px!important;padding:0 0 10px!important;border-bottom:1px solid #DDE6EE!important;}
.esde-cert244 .esde-cert303-certificate-tools-head span:first-child {font:700 10px/1.4 Montserrat,Poppins,sans-serif!important;letter-spacing:.12em!important;color:#237EAD!important;}
.esde-cert244 .esde-cert303-certificate-tools-head h4 {margin:3px 0 0!important;font:400 19px/1.2 Marvin,Poppins,sans-serif!important;color:#173B59!important;}
.esde-cert244 .esde-cert303-certificate-state {display:inline-flex!important;align-items:center!important;padding:6px 10px!important;border:1px solid #C9D9E6!important;border-radius:999px!important;background:#EDF4F8!important;color:#314B62!important;font:700 11px/1.3 Montserrat,Poppins,sans-serif!important;}
.esde-cert244 .esde-cert303-certificate-body {display:grid!important;gap:10px!important;min-width:0!important;}
.esde-cert244 .esde-cert303-certificate-body>p {margin:0!important;color:#52677C!important;font-size:13px!important;}
.esde-cert244 .esde-cert303-certificate-body form {margin:0!important;max-width:100%!important;}
.esde-cert244 .esde-cert303-certificate-body .esde-cert238-issued {margin:0!important;}
.esde-cert244 .esde-cert303-certificate-pending {padding:12px 14px!important;border:1px dashed #C4D4E2!important;border-radius:9px!important;background:#F5F8FB!important;}
.esde-cert244 .esde-cert303-certificate-tools .esde-cert288-revoke-form {display:grid!important;gap:9px!important;margin-top:12px!important;padding:12px!important;border:1px solid #D7E2EC!important;border-radius:10px!important;background:#F7FAFC!important;}
.esde-cert244[data-esde303-view="certificates"] .esde-cert303-cert-intro {display:flex!important;}
.esde-cert244[data-esde303-view="certificates"] .esde-cert303-certificate-tools:not([hidden]) {display:block!important;}
.esde-cert244:not([data-esde303-view="certificates"]) .esde-cert243-branding {display:none!important;}
.esde-cert244[data-esde303-view="certificates"] .esde-cert238-create,
.esde-cert244[data-esde303-view="certificates"]>.esde-cert238-section-title,
.esde-cert244[data-esde303-view="certificates"] .esde-cert237-list>.esde-cert238-section-title {display:none!important;}
.esde-cert244[data-esde303-view="certificates"] .esde-cert237-program> :not(.esde-cert237-program-head):not(.esde-cert303-certificate-tools) {display:none!important;}
.esde-cert244[data-esde303-view="certificates"] .esde-cert237-program-head {display:block!important;padding:13px 15px!important;}
.esde-cert244[data-esde303-view="certificates"] .esde-cert237-program-head .esde-cert238-metrics,
.esde-cert244[data-esde303-view="certificates"] .esde-cert243-open-program,
.esde-cert244[data-esde303-view="certificates"] .esde-cert284-participant-actions,
.esde-cert244[data-esde303-view="certificates"] .esde-cert300-program-color-details {display:none!important;}
.esde-cert244[data-esde303-view="certificates"] .esde-cert237-program-head h3 {margin:8px 0 0!important;font-size:19px!important;color:#173B59!important;}
.esde-cert244[data-esde303-view="certificates"] .esde-cert303-certificate-tools {margin:0!important;border:0!important;border-top:1px solid #DDE6EE!important;border-radius:0 0 12px 12px!important;}

/* Light mode is the default. The institutional navy/cyan accent remains in the header. */
body .esde-cert244[data-esde-theme="light"] {--esde251-ink:#173146;--esde251-muted:#52677C;--esde251-bg:#F3F7FB;--esde251-panel:#FFFFFF;--esde251-panel-2:#EAF1F7;--esde251-line:#D4E0EA;background:#F3F7FB!important;color:#173146!important;}
body .esde-cert244[data-esde-theme="light"] :is(.esde-cert237-program,.esde-cert238-progress,.esde-cert239-roadmap,.esde-cert248-edit-panel,.esde-cert248-plan-panel,.esde-cert248-skills-panel,.esde-cert248-evaluation-summary,.esde-cert241-topic-eval-form,.esde-cert238-history,.esde-cert248-management-grid,.esde-cert238-detail,.esde-cert243-branding,.esde-cert243-batch-form,.esde-cert243-activity-card,.esde-cert242-activity-card,.esde-cert251-list-tools,.esde-cert238-create) {background:#FFFFFF!important;border-color:#D4E0EA!important;color:#173146!important;box-shadow:none!important;}
body .esde-cert244[data-esde-theme="light"] :is(.esde-cert238-section-title h3,.esde-cert238-form-heading h4,.esde-cert239-roadmap-head h4,.esde-cert248-result-grid article strong,.esde-cert243-activity-head h5,.esde-cert242-activity-card h5,.esde-cert251-profile-content h4,.esde-cert251-profile-content h5,.esde-cert238-detail>summary) {color:#173B59!important;}
body .esde-cert244[data-esde-theme="light"] :is(.esde-cert238-section-title p,.esde-cert238-form-heading p,.esde-cert239-roadmap-head p,.esde-cert238-progress-copy span,.esde-cert242-help,.esde-cert243-activity-head p,.esde-cert242-activity-card-head p,.esde-cert248-skill-instructions) {color:#52677C!important;}
body .esde-cert244[data-esde-theme="light"] :is(.esde-cert238-detail>summary,.esde-cert242-card-actions>summary,.esde-cert242-mini-block>summary,.esde-cert238-create>summary) {background:#EDF4F8!important;color:#173B59!important;border-color:#D4E0EA!important;}
body .esde-cert244[data-esde-theme="light"] .esde-cert251-summary-metrics>div {background:#F3F7FB!important;border-color:#D4E0EA!important;}
body .esde-cert244[data-esde-theme="light"] .esde-cert251-summary-metrics :is(strong,span) {color:#173B59!important;}
body .esde-cert244[data-esde-theme="light"] .esde-cert251-profile-summary {background:linear-gradient(110deg,#FFFFFF,#EAF5FB)!important;color:#173146!important;border-color:#45B8E8!important;}
body .esde-cert244[data-esde-theme="light"] .esde-cert251-program-title {color:#173B59!important;}
body .esde-cert244[data-esde-theme="light"] .esde-cert251-profile-content {background:#F3F7FB!important;color:#173146!important;}
body .esde-cert244[data-esde-theme="light"] .esde-cert251-list-tools label {color:#263F58!important;}
body .esde-cert244[data-esde-theme="light"] :is(input:not([type=checkbox]):not([type=color]),select,textarea) {background:#FFFFFF!important;color:#173146!important;border-color:#C9D8E5!important;}
body .esde-cert244[data-esde-theme="light"] .esde-cert237-evals tbody td {background:#F8FAFC!important;color:#263F58!important;border-color:#DCE6EE!important;}
body .esde-cert244[data-esde-theme="light"] .esde-cert303-view-button {color:#314B62!important;}

/* Dark mode: neutral graphite/slate, not pure black. */
body .esde-cert244[data-esde-theme="dark"] {--esde251-ink:#EDF2F7;--esde251-muted:#B8C4D0;--esde251-bg:#222A33;--esde251-panel:#2D3742;--esde251-panel-2:#35414D;--esde251-line:#4A5968;background:#222A33!important;color:#EDF2F7!important;}
body .esde-cert244[data-esde-theme="dark"] :is(.esde-cert237-program,.esde-cert238-progress,.esde-cert239-roadmap,.esde-cert248-edit-panel,.esde-cert248-plan-panel,.esde-cert248-skills-panel,.esde-cert248-evaluation-summary,.esde-cert241-topic-eval-form,.esde-cert238-history,.esde-cert248-management-grid,.esde-cert238-detail,.esde-cert243-branding,.esde-cert243-batch-form,.esde-cert251-list-tools,.esde-cert238-create) {background:#2D3742!important;border-color:#4A5968!important;color:#EDF2F7!important;box-shadow:none!important;}
body .esde-cert244[data-esde-theme="dark"] :is(.esde-cert238-section-title h3,.esde-cert238-form-heading h4,.esde-cert239-roadmap-head h4,.esde-cert243-activity-head h5,.esde-cert242-activity-card h5,.esde-cert251-profile-content h4,.esde-cert251-profile-content h5,.esde-cert238-detail>summary) {color:#F3F7FB!important;}
body .esde-cert244[data-esde-theme="dark"] :is(p,small,label,.esde-cert238-section-title p,.esde-cert238-form-heading p,.esde-cert239-roadmap-head p,.esde-cert238-progress-copy span) {color:#C5D0DA!important;}
body .esde-cert244[data-esde-theme="dark"] :is(.esde-cert238-detail>summary,.esde-cert242-card-actions>summary,.esde-cert242-mini-block>summary,.esde-cert238-create>summary) {background:#35414D!important;color:#F3F7FB!important;border-color:#4A5968!important;}
body .esde-cert244[data-esde-theme="dark"] .esde-cert303-cert-intro,
body .esde-cert244[data-esde-theme="dark"] .esde-cert303-certificate-tools {background:#2D3742!important;color:#EDF2F7!important;border-color:#4A5968!important;}
body .esde-cert244[data-esde-theme="dark"] .esde-cert303-cert-intro :is(h3,p),
body .esde-cert244[data-esde-theme="dark"] .esde-cert303-certificate-tools :is(h4,p,small) {color:#E3EBF2!important;}
body .esde-cert244[data-esde-theme="dark"] .esde-cert303-certificate-tools-head {border-color:#4A5968!important;}
body .esde-cert244[data-esde-theme="dark"] .esde-cert303-certificate-state {background:#35414D!important;color:#E3EBF2!important;border-color:#596A7B!important;}
body .esde-cert244[data-esde-theme="dark"] :is(input:not([type=checkbox]):not([type=color]),select,textarea) {background:#1F2730!important;color:#F3F7FB!important;border-color:#596A7B!important;}
body .esde-cert244[data-esde-theme="dark"] .esde-cert237-evals tbody td {background:#35414D!important;color:#E3EBF2!important;border-color:#4A5968!important;}
body .esde-cert244[data-esde-theme="dark"] .esde-cert303-view-switch {background:#2A333D!important;border-color:#4A5968!important;}
body .esde-cert244[data-esde-theme="dark"] .esde-cert303-view-button {color:#E3EBF2!important;}
body .esde-cert244[data-esde-theme="dark"] .esde-cert303-view-button[aria-pressed="true"] {background:#237EAD!important;color:#FFFFFF!important;}

@media (max-width:900px) {
 .esde-cert244 .esde-cert251-list-tools {grid-template-columns:minmax(0,1fr)!important;}
 .esde-cert244 .esde-cert238-form-grid,.esde-cert244 .esde-cert243-branding-form,.esde-cert244 .esde-cert243-activity-fields,.esde-cert244 .esde-cert238-columns,.esde-cert244 .esde-cert241-skill-grid,.esde-cert244 .esde-cert241-topic-eval-grid {grid-template-columns:minmax(0,1fr)!important;}
 .esde-cert244 .esde-cert238-wide {grid-column:auto!important;}
 .esde-cert244 .esde-cert251-topbar {align-items:flex-start!important;}
 .esde-cert244 .esde-cert251-brand {flex:0 0 92px!important;max-width:92px!important;min-width:70px!important;}
 .esde-cert244 .esde-cert251-brand img {height:34px!important;}
 .esde-cert244 .esde-cert251-nav {justify-content:flex-start!important;width:100%!important;}
 .esde-cert244 .esde-cert251-actions {justify-content:flex-start!important;width:100%!important;}
}
@media (max-width:600px) {
 body .ed3-floating-dialog-card-151099[data-esde303-eval-modal] {width:calc(100vw - 12px)!important;max-width:calc(100vw - 12px)!important;height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important;}
 body .esde-cert246-modal-shell .esde-cert246-modal-window {width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;}
 .esde-cert244 {padding:10px!important;}
 .esde-cert244 .esde-cert303-view-button {flex:1 1 140px!important;}
}


/* ESDE 15.10.304 — participant cards: rounded, expandable and legible while preserving saved per-trajectory colors. */
body .esde-cert244 .esde-cert237-program {
  border-radius:18px!important;
  border:1px solid #D4E0EA!important;
  box-shadow:0 5px 18px rgba(23,59,89,.08)!important;
  margin:0 0 14px!important;
  overflow:hidden!important;
}
body .esde-cert244 .esde-cert237-program-head { border-radius:17px 17px 0 0!important; }
body .esde-cert244 .esde-cert248-expand-student {
  display:inline-flex!important;align-items:center!important;max-width:100%!important;
  padding:4px 11px!important;border:1px solid currentColor!important;border-radius:999px!important;
  background:rgba(255,255,255,.12)!important;text-decoration:none!important;
  white-space:normal!important;overflow-wrap:anywhere!important;
}
body .esde-cert244 .esde-cert248-expand-student:hover { filter:brightness(1.08)!important;text-decoration:none!important; }
body .esde-cert244 .esde-cert237-state { display:inline-flex!important;align-items:center!important;border-radius:999px!important;padding:5px 10px!important; }
body .esde-cert244[data-esde-theme="light"] .esde-cert237-program { box-shadow:0 5px 18px rgba(23,59,89,.08)!important; }
body .esde-cert244[data-esde-theme="dark"] .esde-cert237-program { border-color:#4A5968!important;box-shadow:0 5px 18px rgba(0,0,0,.16)!important; }
body .esde-cert244 .esde-cert289-batch-status,
body .esde-cert244 [data-esde289-batch-status] { display:block;margin:12px 0;padding:11px 13px;border:1px solid #C9D8E5;border-radius:10px;background:#F3F7FB;color:#173146;font:600 13px/1.5 Poppins,Arial,sans-serif; }
body .esde-cert244 [data-esde289-batch-status][data-state="success"] { border-color:#77B99B;background:#EDF8F1;color:#175B3B; }
body .esde-cert244 [data-esde289-batch-status][data-state="error"] { border-color:#C95D6C;background:#FFF1F2;color:#812B38; }
body .esde-cert244 .esde-cert289-verify-save { display:inline-flex;align-items:center;justify-content:center;min-height:40px;margin:0 0 12px;padding:9px 13px;border:1px solid #237EAD;border-radius:9px;background:#237EAD;color:#FFFFFF;font:700 12px/1.35 Montserrat,Poppins,sans-serif;cursor:pointer; }
body .esde-cert244[data-esde-theme="dark"] [data-esde289-batch-status] { background:#263440;color:#EDF2F7;border-color:#596A7B; }
body .esde-cert244[data-esde-theme="dark"] [data-esde289-batch-status][data-state="success"] { background:#18392F;color:#B6F0D1;border-color:#387A60; }
body .esde-cert244[data-esde-theme="dark"] [data-esde289-batch-status][data-state="error"] { background:#422A31;color:#FFD7DD;border-color:#A95665; }
