/* Participación · Libro de calificaciones */
#cl246l-partpanel {
  display:grid;
  gap:11px;
  min-width:0;
  container-type:inline-size;
}

.cl-part-banner {
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:center;
  gap:13px;
  min-height:83px;
  overflow:hidden;
  padding:11px clamp(12px,2vw,22px);
  border:1px solid #d8e1ff;
  border-radius:16px;
  background:linear-gradient(105deg,#f3efff 0%,#ddecff 48%,#a4d9ff 73%,#9083ff 100%);
  box-shadow:var(--class-shadow);
}
.cl-part-banner::before {
  position:absolute;
  z-index:-1;
  inset:0;
  background:linear-gradient(110deg,#2eb8f2,#0551ed 55%,#913cf3);
  clip-path:ellipse(43% 180% at 101% 172%);
  content:"";
}
.cl-part-emblem {
  display:grid;
  flex:none;
  place-items:center;
  width:52px;
  aspect-ratio:1;
  border:1px solid #ffffffa6;
  border-radius:14px;
  background:linear-gradient(145deg,#b36dff,#5142f5 52%,#047de8);
  box-shadow:0 4px 10px #3847bf40,inset 0 0 13px #fff3;
}
.cl-part-emblem > span {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border:2px solid #fff;
  border-radius:50%;
  color:#fff;
  font-size:19px;
  line-height:1;
}
.cl-part-banner-copy {min-width:0;flex:1}
.cl-part-banner h3 {
  margin:0 0 4px;
  color:#112855;
  font-size:clamp(19px,2.6vw,30px);
  line-height:1.06;
  letter-spacing:-.035em;
}
.cl-part-banner p {margin:0;color:#274670;font-size:12px;line-height:1.35}
.cl-part-art {
  position:relative;
  flex:0 0 clamp(100px,14vw,170px);
  align-self:stretch;
}
.cl-part-art .gb-ui-icon {
  position:absolute;
  inset:50% auto auto 10%;
  width:76px;
  height:76px;
  transform:translateY(-50%) rotate(-12deg);
  filter:drop-shadow(0 5px 5px #20357b59);
}
.cl-part-art .gb-ui-icon + .gb-ui-icon {
  inset:48% 1% auto auto;
  width:58px;
  height:58px;
  transform:translateY(-17%) rotate(8deg);
}

.cl-part-metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:0;
}
.cl-part-metric {
  position:relative;
  display:grid;
  gap:2px;
  align-content:center;
  min-height:61px;
  min-width:0;
  padding:8px 8px 8px 53px;
  border:1px solid var(--class-line);
  border-radius:13px;
  background:linear-gradient(124deg,#fff 0%,var(--part-tint) 100%);
  box-shadow:var(--class-shadow);
}
.cl-part-blue {--part-tint:#d7eaff;--part-chip:#cce7ff;--part-color:#1558ad}
.cl-part-violet {--part-tint:#e8dffc;--part-chip:#e5d6ff;--part-color:#5b37ad}
.cl-part-amber {--part-tint:#fff1d6;--part-chip:#ffe9bd;--part-color:#835000}
.cl-part-green {--part-tint:#d7f3e8;--part-chip:#c5eddd;--part-color:#106c56}
.cl-part-metric dt {color:var(--class-ink);font-size:12px;font-weight:750;line-height:1.15}
.cl-part-metric dd {
  margin:0;
  color:var(--part-color);
  font-size:clamp(20px,2vw,26px);
  font-weight:850;
  line-height:1.05;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere;
}
.cl-part-metric-icon {
  position:absolute;
  inset:50% auto auto 9px;
  display:grid;
  place-items:center;
  width:35px;
  height:35px;
  transform:translateY(-50%);
  border-radius:11px;
  background:var(--part-chip);
}
.cl-part-metric-icon .gb-ui-icon {width:22px;height:22px}

.cl-part-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(190px,26%);
  align-items:start;
  gap:11px;
}
.cl-part-summary {display:grid;min-width:0;gap:10px}
.cl-part-card {
  min-width:0;
  padding:11px 12px;
  border:1px solid var(--class-line);
  border-radius:15px;
  background:linear-gradient(155deg,#fff,#f7faff);
  box-shadow:var(--class-shadow);
}
.cl-part-cardhead {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px;margin-bottom:8px}
.cl-part-cardhead p {margin:3px 0 0 36px}
.cl-part-card .cl246l-title {
  flex-wrap:nowrap;
  gap:8px;
  font-size:17px;
}
.cl-part-card .cl246l-title .gb-ui-icon {width:28px;height:28px;padding:4px;border-radius:8px}
.cl-part-summary .cl246l-title {font-size:14px}
.cl-part-card .cl-part-reset {min-height:32px}
.cl-part-reset span {margin-right:3px;font-size:15px;line-height:1}

.cl-part-tablewrap {
  overflow-x:auto;
  border:1px solid #e1e9fa;
  border-radius:11px;
}
.cl-part-table {width:100%;border-collapse:collapse;font-size:12px;line-height:1.2}
.cl-part-table thead {background:linear-gradient(100deg,#eaf1ff,#e0e7fb)}
.cl-part-table :is(td,th) {height:auto;padding:6px 9px;text-align:center}
.cl-part-table th {background:transparent;letter-spacing:normal;text-transform:none}
.cl-part-table thead th {padding-block:9px;color:#294673;font-size:11px;white-space:normal}
.cl-part-table thead th:nth-child(2),.cl-part-table tbody th {text-align:left}
.cl-part-table tbody th {font-size:12px;white-space:normal}
.cl-part-table tbody tr {border-top:1px solid #e1eafa;background:#fff}
.cl-part-table tbody tr:nth-child(even) {background:#f6f9ff}
.cl-part-table tbody tr:first-child:has([data-scored="true"]) {background:#eaf9f0}
.cl-part-table tbody tr:focus-within {background:#eaf3ff}
.cl-part-student {display:flex;align-items:center;gap:7px;min-width:0}
.cl-part-student img {
  flex:none;
  width:32px;
  height:32px;
  border:1px solid #d3e3fb;
  border-radius:50%;
  background:#eaf2ff;
  object-fit:cover;
}
.cl-part-student strong {display:block;margin-bottom:3px;color:var(--class-ink);overflow-wrap:anywhere}
.cl-part-rank {color:#4d6384;font-variant-numeric:tabular-nums}
.cl-part-pill,.cl-part-score {
  display:inline-block;
  padding:3px 8px;
  border-radius:999px;
  background:#eaf0fb;
  color:#415b7e;
  font-size:10px;
  font-weight:750;
  line-height:1.2;
}
.cl-part-pill[data-scored="true"] {background:#d8f5e7;color:#146447}
.cl-part-score {
  min-width:28px;
  color:#244f9a;
  text-align:center;
  font-size:12px;
  font-variant-numeric:tabular-nums;
}
.cl-part-steps {display:flex;justify-content:center;gap:5px}
.cl-part-card .cl-part-steps .btn {
  min-width:35px;
  min-height:30px;
  padding:3px 6px;
  border-radius:999px;
  font-size:12px;
  white-space:nowrap;
}
#cl246l-partpanel .cl-part-add {
  border:1px solid #6335dd;
  background:linear-gradient(135deg,#8755ed,#5624cb);
  color:#fff;
}
#cl246l-partpanel .cl-part-add:hover {background:#5425c4}
.cl-part-card button:focus-visible {outline:2px solid #124db9;outline-offset:2px}
.cl-part-empty {margin:0;padding:24px 12px;text-align:center;color:var(--class-muted);font-size:13px}

.cl-part-breakdown,.cl-part-leaders {margin:6px 0 0;padding:0}
.cl-part-breakdown > div,.cl-part-leaders > li {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  min-height:29px;
  border-top:1px solid #e2eafa;
  font-size:12px;
  overflow-wrap:anywhere;
}
.cl-part-breakdown dd {margin:0}
.cl-part-coverage {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:5px;
  margin-top:8px;
  color:var(--class-muted);
  font-size:11px;
}
.cl-part-summary progress {display:block;width:100%;height:8px;margin-top:5px;accent-color:#1473de}
.cl-part-summary .cl246l-note {margin:7px 0 0}
.cl-part-announcement {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}

@container (max-width: 690px) {
  .cl-part-layout {grid-template-columns:minmax(0,1fr)}
  .cl-part-summary {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container (max-width: 505px) {
  .cl-part-art {display:none}
  .cl-part-metrics {grid-template-columns:repeat(2,minmax(0,1fr))}
  .cl-part-table :is(td,th) {padding-inline:4px}
  .cl-part-student img {width:26px;height:26px}
}
@container (max-width: 365px) {
  .cl-part-summary {grid-template-columns:minmax(0,1fr)}
  .cl-part-student {gap:4px}
  .cl-part-table tbody th {min-width:88px}
}
