.tcomp-ranking,.tcomp-pilot-card{--tc-red:var(--tpp-red,#c81927);--tc-dark:var(--tpp-dark,#101827);--tc-muted:var(--tpp-muted,#687083);--tc-border:var(--tpp-border-color,#d9dde6);box-sizing:border-box}
.tcomp-ranking *,.tcomp-pilot-card *{box-sizing:inherit}
.tcomp-ranking{max-width:1100px;margin:32px auto;padding:42px;background:var(--tpp-section-bg,#fff);color:var(--tpp-section-text,#101827);border:1px solid var(--tc-border);border-radius:20px;box-shadow:0 18px 45px color-mix(in srgb,var(--tpp-shadow-color,#101827) 8%,transparent)}
.tcomp-ranking header{padding-bottom:28px;border-bottom:1px solid var(--tc-border)}.tcomp-ranking header>span,.tcomp-pilot-head>div>span{color:var(--tc-red);font-size:11px;font-weight:900;letter-spacing:.18em}.tcomp-ranking h2{margin:7px 0 5px;color:var(--tpp-section-text,#101827);font-size:clamp(30px,5vw,50px);text-transform:uppercase}.tcomp-ranking header p{margin:0;color:var(--tc-muted)}
.tcomp-ranking nav{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0}.tcomp-ranking nav a{padding:9px 13px;border:1px solid var(--tc-border);border-radius:8px;color:var(--tpp-muted-strong,var(--tc-muted));text-decoration:none;text-transform:uppercase;font-size:10px;font-weight:800}.tcomp-ranking nav a:hover{border-color:color-mix(in srgb,var(--tc-red) 55%,var(--tc-border));color:var(--tpp-section-text,#101827)}.tcomp-ranking nav a.is-active{border-color:var(--tc-red);background:color-mix(in srgb,var(--tc-red) 12%,var(--tpp-surface,#fff));color:var(--tpp-section-text,#101827)}
.tcomp-ranking-list{display:grid;gap:9px}.tcomp-ranking-list article{display:grid;grid-template-columns:42px minmax(0,1fr) auto minmax(150px,auto);align-items:center;gap:16px;min-height:66px;padding:10px 16px;border:1px solid color-mix(in srgb,var(--tc-red) 28%,var(--tc-border));border-radius:11px;background:linear-gradient(90deg,color-mix(in srgb,var(--tc-red) 5%,var(--tpp-surface,#fff)),var(--tpp-surface,#fff))}.tcomp-ranking-list article.is-podium{border-color:color-mix(in srgb,var(--tc-red) 58%,var(--tc-border))}.tcomp-position{display:grid;place-items:center;width:34px;height:34px;color:var(--tc-red);font-size:18px;font-weight:900}.tcomp-ranking-list article>div{display:flex;flex-direction:column}.tcomp-ranking-list article>div strong{font-size:15px}.tcomp-ranking-list article>div small{margin-top:3px;color:var(--tc-muted);font-size:10px}.tcomp-level{padding:6px 9px;border:1px solid color-mix(in srgb,var(--tc-red) 48%,var(--tc-border));border-radius:6px;color:var(--tc-red);text-transform:uppercase;font-size:9px;font-weight:900}.tcomp-score{text-align:right;color:var(--tpp-section-text,#101827)}.tcomp-score>small{color:var(--tc-muted);font-size:9px;text-transform:uppercase}.tcomp-ranking footer{margin-top:18px;color:var(--tc-muted);font-size:11px}.tcomp-empty{padding:24px;border:1px dashed var(--tc-border);border-radius:11px;color:var(--tc-muted);text-align:center}
.tcomp-pilot-card{margin:24px 0;padding:24px;border:1px solid var(--tpp-border-color,#d8dee8);border-radius:22px;background:var(--tpp-section-bg,#fff);box-shadow:0 18px 45px color-mix(in srgb,var(--tpp-shadow-color,#101827) 8%,transparent)}
.tcomp-pilot-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.tcomp-pilot-head h3{margin:5px 0;font-size:clamp(23px,3vw,34px)}.tcomp-pilot-head p{margin:0;color:var(--tpp-muted,#667085)}.tcomp-consent-state{padding:7px 11px;border-radius:999px;background:#f2f4f7;color:#667085;font-size:10px;font-weight:900;text-transform:uppercase}.tcomp-consent-state.is-on{background:#dcfae6;color:#087443}
.tcomp-ranking-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:0 14px;border:1px solid var(--tpp-red,#c81927);border-radius:10px;color:var(--tpp-red,#c81927);font-size:11px;font-weight:900;text-decoration:none;white-space:nowrap}.tcomp-ranking-link:hover{background:var(--tpp-red,#c81927);color:#fff}.tcomp-demo-ranking-note{margin:10px 0 0;color:var(--tpp-muted,#667085);font-size:10px}
.tcomp-pilot-ranking{display:grid;gap:6px;margin:16px 0}.tcomp-pilot-ranking>p{margin:0;padding:14px;border:1px dashed var(--tpp-border-color,#d8dee8);border-radius:11px;color:var(--tpp-muted,#667085);text-align:center}.tcomp-pilot-ranking>div{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:43px;padding:7px 11px;border:1px solid var(--tpp-border-color,#d8dee8);border-radius:11px;background:var(--tpp-surface,#fff)}.tcomp-pilot-ranking>div.is-current{border-color:var(--tpp-red,#c81927);background:color-mix(in srgb,var(--tpp-red,#c81927) 5%,var(--tpp-surface,#fff))}.tcomp-pilot-ranking>div>b{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:var(--tpp-soft,#f5f7fa);font-size:12px}.tcomp-pilot-ranking>div:nth-child(-n+3)>b{background:var(--tpp-red,#c81927);color:#fff}.tcomp-pilot-ranking>div>span{display:flex;min-width:0;flex-direction:column}.tcomp-pilot-ranking>div>span strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.tcomp-pilot-ranking>div small{color:var(--tpp-muted,#667085);font-size:9px}.tcomp-pilot-ranking>div>em{font-style:normal;font-size:15px;font-weight:900;white-space:nowrap}.tcomp-pilot-ranking>div>em small{font-weight:700;text-transform:uppercase}
.tcomp-consent-form{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 12px;border:1px solid var(--tpp-border-color,#d8dee8);border-radius:12px;background:var(--tpp-soft,#f5f7fa)}.tcomp-consent-form label{display:flex;align-items:center;gap:10px}.tcomp-consent-form input{flex:0 0 auto;width:17px;height:17px;margin:0}.tcomp-consent-form label span{display:flex;flex-direction:column;gap:1px}.tcomp-consent-form label strong{font-size:13px}.tcomp-consent-form small{color:var(--tpp-muted,#667085);font-size:10px;line-height:1.35}.tcomp-consent-form button{min-height:34px;padding:0 13px;border:0;border-radius:8px;background:var(--tpp-red,#c81927);color:#fff;font-size:11px;font-weight:800;white-space:nowrap;cursor:pointer}
.tcomp-consent-state.is-partial{background:#fff3d6;color:#9a6700}
.tcomp-visibility-form{display:grid;grid-template-columns:minmax(150px,.72fr) minmax(180px,1fr) minmax(220px,1.15fr) auto;align-items:center;gap:8px;margin-top:14px;padding:8px;border:1px solid var(--tpp-border-color,#d8dee8);border-radius:13px;background:var(--tpp-soft,#f5f7fa)}
.tcomp-visibility-summary{display:flex;min-width:0;align-items:center;gap:9px;padding:0 5px}.tcomp-visibility-summary>.dashicons{display:grid;flex:0 0 30px;width:30px;height:30px;place-items:center;border-radius:9px;background:color-mix(in srgb,var(--tpp-red,#c81927) 14%,transparent);color:var(--tpp-red,#c81927);font-size:17px}.tcomp-visibility-summary>span:last-child{display:flex;min-width:0;flex-direction:column;gap:2px}.tcomp-visibility-summary strong{font-size:12px;line-height:1.2}.tcomp-visibility-summary small{overflow:hidden;color:var(--tpp-muted,#667085);font-size:8px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.tcomp-visibility-option{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:7px;min-height:46px;padding:6px 8px;border:1px solid var(--tpp-border-color,#d8dee8);border-radius:10px;background:var(--tpp-surface,#fff)}.tcomp-visibility-option label{display:flex;min-width:0;align-items:center;gap:8px;cursor:pointer}.tcomp-visibility-option input{flex:0 0 auto;width:16px;height:16px;margin:0;accent-color:var(--tpp-red,#c81927)}.tcomp-visibility-option label>span{display:flex;min-width:0;flex-direction:column;gap:2px}.tcomp-visibility-option strong{overflow:hidden;font-size:11px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.tcomp-visibility-option small{overflow:hidden;color:var(--tpp-muted,#667085);font-size:8px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.tcomp-visibility-option>b{padding:4px 6px;border-radius:999px;background:color-mix(in srgb,var(--tpp-muted,#667085) 12%,transparent);color:var(--tpp-muted,#667085);font-size:7px;font-weight:900;line-height:1;text-transform:uppercase}.tcomp-visibility-option>b.is-on{background:#dcfae6;color:#087443}.tcomp-visibility-option>a{color:var(--tpp-red,#c81927);font-size:8px;font-weight:900;text-decoration:none;text-transform:uppercase}.tcomp-visibility-option>a:hover{text-decoration:underline}
.tcomp-pilot-card .tcomp-visibility-form button[type="submit"],.tcomp-pilot-card .tcomp-visibility-form button[type="submit"]:hover,.tcomp-pilot-card .tcomp-visibility-form button[type="submit"]:active,.tcomp-pilot-card .tcomp-visibility-form button[type="submit"]:focus{display:inline-flex!important;min-height:38px!important;align-items:center!important;justify-content:center!important;margin:0!important;padding:0 13px!important;border:0!important;border-radius:9px!important;outline:0!important;background:var(--tpp-red,#c81927)!important;color:#fff!important;box-shadow:none!important;font-size:10px!important;font-weight:900!important;line-height:1!important;white-space:nowrap!important;cursor:pointer!important}.tcomp-pilot-card .tcomp-visibility-form button[type="submit"]:hover{filter:brightness(1.08)}.tcomp-pilot-card .tcomp-visibility-form button[type="submit"]:focus-visible{box-shadow:0 0 0 2px var(--tpp-section-bg,#fff),0 0 0 5px color-mix(in srgb,var(--tpp-red,#c81927) 72%,transparent)!important}
@media(max-width:700px){.tcomp-visibility-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;grid-template-areas:"summary summary save" "ranking standing standing"}.tcomp-visibility-summary{grid-area:summary}.tcomp-visibility-option.is-ranking{grid-area:ranking}.tcomp-visibility-option.is-standing{grid-area:standing}.tcomp-visibility-form>button[type="submit"]{grid-area:save}.tcomp-visibility-summary small{white-space:normal}}
@media(max-width:600px){.tcomp-visibility-form{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"summary save" "ranking ranking" "standing standing"}}
.tcomp-pilot-certificates{margin-top:14px;padding:14px;border:1px solid var(--tpp-border-color,#d8dee8);border-radius:14px;background:color-mix(in srgb,var(--tpp-surface,#fff) 82%,var(--tpp-soft,#f5f7fa))}.tcomp-pilot-certificates-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.tcomp-pilot-certificates-head>strong{font-size:15px}.tcomp-pilot-certificates-head>small{color:var(--tpp-muted,#667085);font-size:10px}.tcomp-pilot-certificate-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tcomp-pilot-certificate-list article{display:flex;min-width:0;align-items:center;gap:10px;padding:10px 11px;border:1px solid var(--tpp-border-color,#d8dee8);border-radius:11px;background:var(--tpp-section-bg,#fff)}.tcomp-pilot-certificate-list article>span{display:grid;flex:0 0 27px;width:27px;height:27px;place-items:center;border-radius:8px;background:color-mix(in srgb,var(--tpp-red,#c81927) 14%,transparent);color:var(--tpp-red,#c81927);font-weight:900}.tcomp-pilot-certificate-list article>div{display:flex;min-width:0;flex-direction:column;gap:2px}.tcomp-pilot-certificate-list article strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.tcomp-pilot-certificate-list article small{overflow:hidden;color:var(--tpp-muted,#667085);font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.tcomp-competition-results{position:relative;overflow:hidden}.tcomp-competition-results::after{position:absolute;right:-70px;bottom:-100px;width:260px;height:260px;border:42px solid color-mix(in srgb,var(--tpp-red,#c81927) 5%,transparent);border-radius:50%;content:"";pointer-events:none}.tcomp-results-head,.tcomp-results-timeline{position:relative;z-index:1}.tcomp-results-count{display:flex;flex:0 0 auto;min-width:66px;min-height:58px;align-items:center;justify-content:center;flex-direction:column;border:1px solid var(--tpp-border-color,#d8dee8);border-radius:14px;background:var(--tpp-soft,#f5f7fa);font-size:22px;line-height:1}.tcomp-results-count small{margin-top:5px;color:var(--tpp-muted,#667085);font-size:8px;text-transform:uppercase}.tcomp-results-timeline{display:grid;gap:9px;margin-top:17px}.tcomp-result-entry{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:14px;min-height:76px;padding:10px 12px;border:1px solid var(--tpp-border-color,#d8dee8);border-left:3px solid var(--tpp-red,#c81927);border-radius:12px;background:var(--tpp-surface,#fff)}.tcomp-result-entry time{display:flex;align-items:center;justify-content:center;align-self:stretch;flex-direction:column;border-right:1px solid var(--tpp-border-color,#d8dee8);text-align:center}.tcomp-result-entry time strong{font-size:20px;line-height:1}.tcomp-result-entry time span{margin-top:5px;color:var(--tpp-muted,#667085);font-size:8px;font-weight:800}.tcomp-result-content{display:flex;min-width:0;flex-direction:column}.tcomp-result-content>strong{font-size:14px}.tcomp-result-content>span{margin-top:3px;color:var(--tpp-muted,#667085);font-size:10px}.tcomp-result-content>p{margin:6px 0 0;color:var(--tpp-muted,#667085);font-size:11px;line-height:1.4}.tcomp-result-performance{display:grid;min-width:82px;justify-items:end}.tcomp-result-performance>strong{color:var(--tpp-red,#c81927);font-size:22px;line-height:1}.tcomp-result-performance>small{margin-top:3px;color:var(--tpp-muted,#667085);font-size:9px}.tcomp-result-performance>em{margin-top:7px;padding:4px 7px;border:1px solid var(--tpp-border-color,#d8dee8);border-radius:999px;color:var(--tpp-text-color,#101827);font-size:9px;font-style:normal;font-weight:800}
@media(max-width:700px){.tcomp-ranking{padding:22px 14px;border-radius:14px}.tcomp-ranking-list article{grid-template-columns:34px minmax(0,1fr) auto}.tcomp-level{grid-column:2}.tcomp-score{grid-column:3;grid-row:1/3}.tcomp-pilot-card{padding:18px 14px}.tcomp-pilot-head{gap:10px}.tcomp-pilot-head h3{font-size:23px}.tcomp-demo-ranking .tcomp-pilot-head{align-items:stretch;flex-direction:column}.tcomp-ranking-link{width:100%}.tcomp-pilot-ranking>div{grid-template-columns:28px minmax(0,1fr) auto}.tcomp-consent-form{align-items:stretch;flex-direction:column}.tcomp-consent-form label{align-items:flex-start}.tcomp-consent-form button{width:100%}.tcomp-pilot-certificates-head,.tcomp-results-head{align-items:flex-start;flex-direction:column}.tcomp-pilot-certificate-list{grid-template-columns:1fr}.tcomp-results-count{min-width:74px;min-height:48px;align-self:flex-start}.tcomp-result-entry{grid-template-columns:56px minmax(0,1fr);gap:10px}.tcomp-result-entry time{grid-row:1/3}.tcomp-result-performance{grid-column:2;min-width:0;justify-items:start;grid-template-columns:auto auto auto;align-items:center;gap:6px}.tcomp-result-performance>small,.tcomp-result-performance>em{margin-top:0}}

/* v0.1.9 - protege le bouton de consentement des styles du theme. */
.tcomp-pilot-card .tcomp-consent-form button[type="submit"],
.tcomp-pilot-card .tcomp-consent-form button[type="submit"]:hover,
.tcomp-pilot-card .tcomp-consent-form button[type="submit"]:active,
.tcomp-pilot-card .tcomp-consent-form button[type="submit"]:focus,
.tcomp-pilot-card .tcomp-consent-form button[type="submit"]:focus-visible,
.tcomp-pilot-card .tcomp-consent-form button[type="submit"]:disabled {
  box-sizing:border-box !important;
  min-height:34px !important;
  margin:0 !important;
  padding:0 13px !important;
  border:0 !important;
  border-radius:8px !important;
  outline:0 !important;
  background:var(--tpp-red,#c81927) !important;
  color:#fff !important;
  box-shadow:none !important;
  appearance:none !important;
}

/* v0.4.6 - rythme et compteur adaptes a la vitrine publique. */
.tpp-public-demo > .tcomp-demo-results {
  margin-block:0;
}
.tcomp-demo-results .tcomp-results-count {
  min-width:0;
  min-height:40px;
  padding:0 13px;
  flex-direction:row;
  gap:5px;
  border-radius:12px;
  font-size:18px;
  white-space:nowrap;
}
.tcomp-demo-results .tcomp-results-count small {
  margin:0;
  font-size:8px;
}
.tcomp-demo-results .tcomp-result-entry time {
  justify-content:center;
  padding-top:0;
  box-sizing:border-box;
}
.tcomp-demo-results .tcomp-result-entry time strong,
.tcomp-demo-results .tcomp-result-entry time span {
  display:block;
  width:100%;
  text-align:center;
  transform:translateX(-5px);
}
@media(max-width:700px) {
  .tcomp-demo-results .tcomp-results-head {
    gap:10px;
  }
  .tcomp-demo-results .tcomp-results-count {
    min-height:34px;
    padding:0 10px;
    font-size:16px;
  }
  .tcomp-demo-results .tcomp-results-count small {
    font-size:8px;
    letter-spacing:.03em;
  }
  .tcomp-demo-results .tcomp-results-timeline {
    margin-top:12px;
  }
  .tcomp-demo-results .tcomp-result-entry {
    grid-template-columns:68px minmax(0,1fr);
    gap:10px;
    min-height:0;
    padding:9px 10px;
  }
  .tcomp-demo-results .tcomp-result-entry time {
    grid-row:1 / 3;
  }
  .tcomp-demo-results .tcomp-result-entry time strong,
  .tcomp-demo-results .tcomp-result-entry time span {
    transform:translateX(-2px);
  }
  .tcomp-demo-results .tcomp-result-content > p {
    margin-top:5px;
    font-size:10px;
  }
  .tcomp-demo-results .tcomp-result-performance {
    display:flex;
    grid-column:2;
    min-width:0;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
  }
  .tcomp-demo-results .tcomp-result-performance > strong {
    font-size:19px;
  }
  .tcomp-demo-results .tcomp-result-performance > small,
  .tcomp-demo-results .tcomp-result-performance > em {
    margin:0;
  }

  /* Le parcours reel reprend exactement la composition mobile de la demo. */
  .tcomp-competition-results .tcomp-results-count {
    min-width:0;
    min-height:34px;
    padding:0 10px;
    flex-direction:row;
    gap:5px;
    border-radius:12px;
    font-size:16px;
    white-space:nowrap;
  }
  .tcomp-competition-results .tcomp-results-count small {
    margin:0;
    font-size:8px;
  }
  .tcomp-competition-results .tcomp-results-timeline {
    margin-top:12px;
  }
  .tcomp-competition-results .tcomp-result-entry {
    grid-template-columns:68px minmax(0,1fr);
    gap:10px;
    min-height:0;
    padding:9px 10px;
  }
  .tcomp-competition-results .tcomp-result-entry time {
    grid-row:1 / 3;
  }
  .tcomp-competition-results .tcomp-result-entry time strong,
  .tcomp-competition-results .tcomp-result-entry time span {
    display:block;
    width:100%;
    text-align:center;
    transform:translateX(-2px);
  }
  .tcomp-competition-results .tcomp-result-content > p {
    margin-top:5px;
    font-size:10px;
  }
  .tcomp-competition-results .tcomp-result-performance {
    display:flex;
    grid-column:2;
    min-width:0;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
  }
  .tcomp-competition-results .tcomp-result-performance > strong {
    font-size:19px;
  }
  .tcomp-competition-results .tcomp-result-performance > small,
  .tcomp-competition-results .tcomp-result-performance > em {
    margin:0;
  }
}

/* v0.12.7 - certification plus lisible dans le parcours sportif du dashboard. */
.tpp-dashboard-v4 .tcomp-result-content > .tcomp-certification-list {
  margin-top: 8px;
}
.tpp-dashboard-v4 .tcomp-result-content .tcomp-certification-badge {
  min-height: 42px;
  gap: 8px;
  padding: 4px 12px 4px 5px;
  border-color: color-mix(in srgb, var(--tcomp-certification-color) 52%, var(--tpp-border-color, #30343b));
  background: color-mix(in srgb, var(--tcomp-certification-color) 15%, var(--tpp-surface, #111214));
  color: color-mix(in srgb, var(--tcomp-certification-color) 48%, var(--tpp-section-text, #101827));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 16%, transparent),
    0 5px 14px color-mix(in srgb, var(--tcomp-certification-color) 12%, transparent);
}
.tpp-dashboard-v4 .tcomp-result-content .tcomp-certification-logo {
  flex-basis: 32px;
  width: 32px;
  height: 32px;
}
.tpp-dashboard-v4 .tcomp-result-content .tcomp-certification-logo > img {
  width: 25px;
  height: 25px;
}
.tpp-dashboard-v4 .tcomp-result-content .tcomp-certification-copy {
  gap: 2px;
}
.tpp-dashboard-v4 .tcomp-result-content .tcomp-certification-copy > small {
  color: color-mix(in srgb, var(--tcomp-certification-color) 42%, var(--tpp-section-text, #101827)) !important;
  font-size: 7.5px !important;
  line-height: 1.15 !important;
  letter-spacing: .065em;
}
.tpp-dashboard-v4 .tcomp-result-content .tcomp-certification-copy > strong {
  color: color-mix(in srgb, var(--tcomp-certification-color) 54%, var(--tpp-section-text, #101827)) !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
}

@media(max-width:700px) {
  .tpp-dashboard-v4 .tcomp-result-content .tcomp-certification-badge {
    width: auto;
    min-height: 39px;
    padding-right: 10px;
  }
  .tpp-dashboard-v4 .tcomp-result-content .tcomp-certification-logo {
    flex-basis: 29px;
    width: 29px;
    height: 29px;
  }
  .tpp-dashboard-v4 .tcomp-result-content .tcomp-certification-copy > strong {
    font-size: 9px !important;
  }
}

/* v0.12.6 - classement autonome aligné sur les cartes du dashboard pilote. */
.tpp-portal.tcomp-ranking {
  /* The dark portal contract deliberately makes the generic .tpp-portal
     wrapper transparent.  A standalone ranking is itself a card, so keep
     its palette background and shape in both themes. */
  background: var(--tpp-section-bg, #fff);
  border-radius: 20px;
  font-family: var(--tpp-font-body-family, Inter, ui-sans-serif, system-ui, sans-serif);
  font-weight: var(--tpp-font-body-weight, 400);
  font-style: var(--tpp-font-body-style, normal);
}
.tpp-portal.tcomp-ranking header > span,
.tpp-portal.tcomp-ranking .tcomp-level,
.tpp-portal.tcomp-ranking .tcomp-score > small,
.tpp-portal.tcomp-ranking footer {
  font-family: var(--tpp-font-label-family, inherit) !important;
  font-weight: var(--tpp-font-label-weight, 800) !important;
  font-style: var(--tpp-font-label-style, normal) !important;
}
.tpp-portal.tcomp-ranking h2 {
  margin: 8px 0 8px;
  font-family: var(--tpp-font-heading-family, inherit) !important;
  font-size: clamp(31px, 4.6vw, 48px) !important;
  font-weight: var(--tpp-font-heading-weight, 800) !important;
  font-style: var(--tpp-font-heading-style, normal) !important;
  line-height: 1 !important;
  letter-spacing: -.035em;
  text-transform: none;
}
.tpp-portal.tcomp-ranking header p {
  font-family: var(--tpp-font-description-family, inherit) !important;
  font-size: clamp(14px, 1.8vw, 18px) !important;
  font-weight: var(--tpp-font-description-weight, 400) !important;
  font-style: var(--tpp-font-description-style, normal) !important;
  line-height: 1.45 !important;
}
.tpp-portal.tcomp-ranking nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 10px;
  font-family: var(--tpp-font-button-family, inherit) !important;
  font-weight: var(--tpp-font-button-weight, 700) !important;
  font-style: var(--tpp-font-button-style, normal) !important;
  line-height: 1;
}
.tpp-portal.tcomp-ranking .tcomp-ranking-list {
  gap: 7px;
}
.tpp-portal.tcomp-ranking .tcomp-ranking-list article {
  grid-template-columns: 36px minmax(0, 1fr) auto minmax(105px, auto);
  gap: 12px;
  min-height: 56px;
  padding: 8px 12px;
  border-color: var(--tpp-border-color, #d9dde6);
  border-left: 3px solid color-mix(in srgb, var(--tpp-red, #c81927) 72%, var(--tpp-border-color, #d9dde6));
  border-radius: 12px;
  background: color-mix(in srgb, var(--tpp-surface, #fff) 94%, var(--tpp-soft, #f4f6fa));
  box-shadow: 0 7px 18px color-mix(in srgb, var(--tpp-shadow-color, #101827) 5%, transparent);
}
.tpp-portal.tcomp-ranking .tcomp-ranking-list article.is-podium {
  border-color: color-mix(in srgb, var(--tpp-red, #c81927) 34%, var(--tpp-border-color, #d9dde6));
  border-left-color: var(--tpp-red, #c81927);
}
.tpp-portal.tcomp-ranking .tcomp-position {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--tpp-red, #c81927) 9%, var(--tpp-soft, #f4f6fa));
  color: var(--tpp-section-text, #101827);
  font-family: var(--tpp-font-label-family, inherit) !important;
  font-size: 12px;
  font-weight: 900 !important;
}
.tpp-portal.tcomp-ranking .tcomp-ranking-list article.is-podium .tcomp-position {
  background: var(--tpp-red, #c81927);
  color: #fff;
}
.tpp-portal.tcomp-ranking .tcomp-ranking-list article > div > a,
.tpp-portal.tcomp-ranking .tcomp-ranking-list article > div > a > strong,
.tpp-portal.tcomp-ranking .tcomp-ranking-list article > div > strong {
  min-width: 0;
  color: var(--tpp-section-text, #101827) !important;
  font-family: var(--tpp-font-body-family, inherit) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.2;
  text-decoration: none !important;
}
.tpp-portal.tcomp-ranking .tcomp-ranking-list article > div > a:hover strong {
  color: var(--tpp-red, #c81927) !important;
}
.tpp-portal.tcomp-ranking .tcomp-level {
  padding: 5px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tpp-red, #c81927) 6%, var(--tpp-surface, #fff));
  font-size: 8px;
  letter-spacing: .04em;
}
.tpp-portal.tcomp-ranking .tcomp-score {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  font-family: var(--tpp-font-heading-family, inherit) !important;
  font-size: 17px;
  font-weight: 800 !important;
  line-height: 1;
}
.tpp-portal.tcomp-ranking .tcomp-score > small {
  font-size: 7px;
  letter-spacing: .04em;
}

@media(max-width:700px) {
  .tpp-portal.tcomp-ranking {
    border-radius: 14px;
  }
  .tpp-portal.tcomp-ranking header {
    padding-bottom: 20px;
  }
  .tpp-portal.tcomp-ranking nav {
    margin: 18px 0;
  }
  .tpp-portal.tcomp-ranking .tcomp-ranking-list article {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 9px;
    min-height: 58px;
    padding: 8px 9px;
  }
  .tpp-portal.tcomp-ranking .tcomp-position {
    width: 28px;
    height: 28px;
  }
  .tpp-portal.tcomp-ranking .tcomp-level {
    grid-column: 2;
    justify-self: start;
  }
  .tpp-portal.tcomp-ranking .tcomp-score {
    grid-column: 3;
    grid-row: 1 / 3;
  }
}

/* v0.4.13 - dates lisibles et stables dans le parcours sportif mobile. */
@media(max-width:700px) {
  .tpp-dashboard-v4 section.tcomp-competition-results .tcomp-result-entry {
    grid-template-columns:72px minmax(0,1fr) !important;
    gap:7px 11px !important;
  }
  .tpp-dashboard-v4 section.tcomp-competition-results .tcomp-result-entry time {
    min-width:0;
    padding:2px 9px 2px 0;
    overflow:hidden;
  }
  .tpp-dashboard-v4 section.tcomp-competition-results .tcomp-result-entry time strong {
    width:auto !important;
    max-width:100%;
    margin:0;
    overflow:hidden;
    font-size:17px !important;
    line-height:1.05 !important;
    letter-spacing:-.035em;
    text-overflow:clip;
    white-space:nowrap;
    transform:none !important;
  }
  .tpp-dashboard-v4 section.tcomp-competition-results .tcomp-result-entry time span {
    width:auto !important;
    max-width:100%;
    margin-top:5px;
    overflow:hidden;
    font-size:7px !important;
    line-height:1.1 !important;
    letter-spacing:.015em;
    text-overflow:clip;
    white-space:nowrap;
    transform:none !important;
  }
  .tpp-dashboard-v4 section.tcomp-competition-results .tcomp-result-content,
  .tpp-dashboard-v4 section.tcomp-competition-results .tcomp-result-performance {
    min-width:0;
  }
}

@media(max-width:380px) {
  .tpp-dashboard-v4 section.tcomp-competition-results .tcomp-result-entry {
    grid-template-columns:64px minmax(0,1fr) !important;
    gap:6px 9px !important;
    padding-inline:9px !important;
  }
  .tpp-dashboard-v4 section.tcomp-competition-results .tcomp-result-entry time {
    padding-right:7px;
  }
  .tpp-dashboard-v4 section.tcomp-competition-results .tcomp-result-entry time strong {
    font-size:15px !important;
  }
}
.tcomp-pilot-card .tcomp-consent-form button[type="submit"]:hover,
.tcomp-pilot-card .tcomp-consent-form button[type="submit"]:active {
  filter:brightness(1.08);
}
.tcomp-pilot-card .tcomp-consent-form button[type="submit"]:focus-visible {
  box-shadow:
    0 0 0 2px var(--tpp-section-bg,#fff),
    0 0 0 5px color-mix(in srgb,var(--tpp-red,#c81927) 72%,transparent) !important;
}

.tcomp-result-performance>em {
  color:var(--tpp-section-text,#101827);
}

/* Stable, font-independent checkmark for private certificates. */
.tcomp-pilot-certificate-list .tcomp-certificate-check {
  display:grid;
  position:relative;
  align-items:center;
  justify-items:center;
  line-height:1;
}
.tcomp-pilot-certificate-list .tcomp-certificate-check::before {
  width:8px;
  height:4px;
  border-bottom:3px solid currentColor;
  border-left:3px solid currentColor;
  content:"";
  transform:translateY(-1px) rotate(-45deg);
  transform-origin:center;
}

/* Give multi-day competition periods enough breathing room. */
.tcomp-result-entry {
  grid-template-columns:86px minmax(0,1fr) auto;
}
.tcomp-result-entry time strong {
  font-size:19px;
  letter-spacing:.015em;
  white-space:nowrap;
}
@media(max-width:700px) {
  .tcomp-result-entry {
    grid-template-columns:76px minmax(0,1fr);
  }
}

/* v0.4.11 - meme composition mobile pour la demo et le parcours connecte. */
@media(max-width:700px) {
  .tpp-dashboard-v4 section.tcomp-competition-results .tcomp-results-head {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start;
    gap:10px;
  }
  .tpp-dashboard-v4 section.tcomp-competition-results .tcomp-results-count {
    display:inline-flex;
    min-width:0;
    min-height:34px;
    align-self:start;
    padding:0 10px;
    flex-direction:row;
    gap:5px;
    border-radius:12px;
    font-size:16px;
    white-space:nowrap;
  }
  .tpp-dashboard-v4 section.tcomp-competition-results .tcomp-results-count small {
    margin:0;
    font-size:8px;
    letter-spacing:.03em;
  }
  .tpp-dashboard-v4 section.tcomp-competition-results .tcomp-results-timeline {
    margin-top:12px;
  }
  .tpp-dashboard-v4 section.tcomp-competition-results .tcomp-result-entry {
    grid-template-columns:68px minmax(0,1fr);
    grid-template-rows:auto auto;
    gap:6px 10px;
    min-height:0;
    padding:9px 10px;
  }
  .tpp-dashboard-v4 section.tcomp-competition-results .tcomp-result-entry time {
    grid-column:1;
    grid-row:1 / 3;
  }
  .tpp-dashboard-v4 section.tcomp-competition-results .tcomp-result-entry time strong,
  .tpp-dashboard-v4 section.tcomp-competition-results .tcomp-result-entry time span {
    display:block;
    width:100%;
    text-align:center;
    transform:translateX(-2px);
  }
  .tpp-dashboard-v4 section.tcomp-competition-results .tcomp-result-content {
    grid-column:2;
    grid-row:1;
  }
  .tpp-dashboard-v4 section.tcomp-competition-results .tcomp-result-content > p {
    margin-top:5px;
    font-size:10px;
  }
  .tpp-dashboard-v4 section.tcomp-competition-results .tcomp-result-performance {
    display:flex;
    grid-column:2;
    grid-row:2;
    min-width:0;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
  }
  .tpp-dashboard-v4 section.tcomp-competition-results .tcomp-result-performance > strong {
    font-size:19px;
  }
  .tpp-dashboard-v4 section.tcomp-competition-results .tcomp-result-performance > small,
  .tpp-dashboard-v4 section.tcomp-competition-results .tcomp-result-performance > em {
    margin:0;
  }
}

/* v0.5.0 - grille "Torque Standing" et son popup de détail. */
.tcomp-standing {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 16px;
  color: var(--tpp-section-text, #101827);
}
.tcomp-standing-header {
  padding-bottom: 20px;
}
.tcomp-standing-header > span {
  color: var(--tpp-red, #c81927);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
}
.tcomp-standing-header h2 {
  margin: 7px 0 5px;
  font-size: clamp(26px, 4vw, 42px);
  text-transform: uppercase;
}
.tcomp-standing-header p {
  margin: 0;
  color: var(--tpp-muted, #667085);
}
.tcomp-standing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.tcomp-standing-card {
  border: 1px solid var(--tpp-border-color, #d8dee8);
  border-radius: 16px;
  background: var(--tpp-surface, #fff);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tcomp-standing-card:hover,
.tcomp-standing-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--tpp-shadow-color, #101827) 16%, transparent);
}
.tcomp-standing-trigger {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.tcomp-standing-trigger:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tpp-muted, #667085) 55%, transparent);
}
.tcomp-standing-photo {
  position: relative;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: var(--tpp-soft, #f5f7fa);
  color: var(--tpp-muted, #667085);
  overflow: visible;
}
.tcomp-standing-photo-frame {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  border-radius: inherit;
}
.tcomp-standing-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.tcomp-standing-flag {
  position: absolute;
  right: -4px;
  bottom: -4px;
  font-size: 16px;
  line-height: 1;
}
.tcomp-standing-name {
  overflow: hidden;
  max-width: 100%;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tcomp-level-pill {
  padding: 4px 9px;
  border: 1px solid var(--tpp-border-color, #d8dee8);
  border-radius: 999px;
  color: var(--tpp-muted, #667085);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.tcomp-standing-stats {
  color: var(--tpp-muted, #667085);
  font-size: 11px;
}
.tcomp-standing-stats b {
  color: var(--tpp-section-text, #101827);
}
.tcomp-standing-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tcomp-title-badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tpp-red, #c81927) 12%, transparent);
  color: var(--tpp-red, #c81927);
  font-size: 9px;
  font-weight: 800;
}
.tcomp-title-more {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--tpp-soft, #f5f7fa);
  color: var(--tpp-muted, #667085);
  font-size: 9px;
  font-weight: 800;
}

.tcomp-standing-modal {
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.tcomp-standing-modal-layer {
  position: fixed !important;
  z-index: 2147483647 !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
  perspective: none !important;
  contain: none !important;
  pointer-events: none;
  isolation: isolate;
}
.tcomp-standing-modal-layer .tcomp-standing-modal.is-open {
  pointer-events: auto;
}
.tcomp-standing-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.tcomp-standing-overlay {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, #000 55%, transparent);
}
.tcomp-standing-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid var(--tpp-border-color, #d8dee8);
  border-radius: 20px;
  background: var(--tpp-section-bg, #fff);
  color: var(--tpp-section-text, #101827);
}
.tcomp-standing-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--tpp-border-color, #d8dee8);
  border-radius: 10px;
  background: var(--tpp-soft, #f5f7fa);
  color: var(--tpp-section-text, #101827);
  font-size: 0;
  cursor: pointer;
}
.tcomp-standing-close::before {
  content: "×";
  font-size: 22px;
  font-weight: 800;
}
.tcomp-standing-modal-photo {
  width: 84px;
  height: 84px;
  margin-bottom: 12px;
  border-radius: 50%;
  background-color: var(--tpp-soft, #f5f7fa);
  background-position: center;
  background-size: cover;
}
.tcomp-standing-dialog h3 {
  margin: 0 0 6px;
  font-size: 24px;
}
.tcomp-standing-modal-stats {
  display: flex;
  gap: 20px;
  margin: 16px 0;
}
.tcomp-standing-modal-stats > div {
  display: flex;
  flex-direction: column;
}
.tcomp-standing-modal-stats strong {
  font-size: 22px;
}
.tcomp-standing-modal-stats small {
  color: var(--tpp-muted, #667085);
  font-size: 10px;
  text-transform: uppercase;
}
.tcomp-standing-modal-titles {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.tcomp-title-certified {
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--tpp-red, #c81927) 30%, var(--tpp-border-color, #d8dee8));
  border-radius: 12px;
  background: color-mix(in srgb, var(--tpp-red, #c81927) 4%, var(--tpp-surface, #fff));
}
.tcomp-title-certified strong {
  display: block;
  font-size: 13px;
}
.tcomp-title-certified small {
  color: var(--tpp-red, #c81927);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.tcomp-title-certified p {
  margin: 6px 0 0;
  color: var(--tpp-muted, #667085);
  font-size: 11px;
}
.tcomp-standing-empty-history {
  padding: 14px;
  border: 1px dashed var(--tpp-border-color, #d8dee8);
  border-radius: 11px;
  color: var(--tpp-muted, #667085);
  font-size: 12px;
  text-align: center;
}
.tcomp-standing-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}
.tcomp-standing-pagination .page-numbers {
  display: grid;
  min-width: 36px;
  min-height: 36px;
  place-items: center;
  padding: 5px 9px;
  border: 1px solid var(--tpp-border-color, #d8dee8);
  border-radius: 10px;
  background: var(--tpp-surface, #fff);
  color: var(--tpp-section-text, #101827);
  text-decoration: none;
}
.tcomp-standing-pagination .page-numbers.current {
  border-color: var(--tpp-red, #c81927);
  background: var(--tpp-red, #c81927);
  color: #fff;
}

@media (max-width: 700px) {
  .tcomp-standing-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .tcomp-standing-dialog {
    padding: 20px;
  }
}

/* v0.5.3 — Standing sombre, aligné sur le design système Torque. */
body:has(.tcomp-standing) :is(.wp-block-post-title, .entry-title) {
  color: inherit;
}
.tpp-portal.tcomp-standing {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  max-width: 1240px;
  margin: 34px auto;
  padding: clamp(24px, 4vw, 52px);
  overflow: hidden;
  border: 1px solid var(--tpp-border-color);
  border-radius: 30px;
  color: var(--tpp-section-text);
  background:
    radial-gradient(circle at 92% -8%, color-mix(in srgb, var(--tpp-red) 18%, transparent), transparent 29%),
    radial-gradient(circle at -5% 108%, color-mix(in srgb, var(--tpp-red) 8%, transparent), transparent 32%),
    linear-gradient(145deg, color-mix(in srgb,var(--tpp-surface) 96%,var(--tpp-red)) 0%, var(--tpp-section-bg) 56%, color-mix(in srgb,var(--tpp-section-bg) 97%,var(--tpp-red)) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 28px 70px rgba(0,0,0,.42);
  font-family: var(--tpp-font-body-family, Inter, ui-sans-serif, system-ui, sans-serif);
}
.tpp-portal.tcomp-standing::before {
  position: absolute;
  z-index: -1;
  top: -120px;
  right: -90px;
  width: 340px;
  height: 340px;
  border: 54px solid color-mix(in srgb, var(--tpp-red) 7%, transparent);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.tpp-portal.tcomp-standing *,
.tpp-portal.tcomp-standing *::before,
.tpp-portal.tcomp-standing *::after {
  box-sizing: border-box;
}
.tpp-portal.tcomp-standing :is(h2, h3, h4, strong, b) {
  color: var(--tpp-section-text);
}

.tpp-portal.tcomp-standing .tcomp-standing-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  margin-bottom: 34px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--tpp-border-color);
}
.tpp-portal.tcomp-standing .tcomp-standing-heading {
  max-width: 790px;
}
.tpp-portal.tcomp-standing .tcomp-standing-heading > span,
.tpp-portal.tcomp-standing .tcomp-standing-modal-eyebrow,
.tpp-portal.tcomp-standing .tcomp-standing-modal-section > header > span {
  display: block;
  color: var(--tpp-red);
  font-family: var(--tpp-font-label-family, inherit);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.tpp-portal.tcomp-standing .tcomp-standing-heading h2 {
  margin: 8px 0 10px;
  color: #fff !important;
  font-family: var(--tpp-font-heading-family, inherit);
  font-size: clamp(32px, 5vw, 58px) !important;
  font-weight: 850;
  line-height: .98 !important;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.tpp-portal.tcomp-standing .tcomp-standing-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--tpp-muted) !important;
  font-size: clamp(13px, 1.5vw, 16px) !important;
  line-height: 1.6 !important;
}
.tpp-portal.tcomp-standing .tcomp-standing-overview {
  display: grid;
  grid-template-columns: 42px auto;
  grid-template-rows: auto auto;
  align-items: center;
  min-width: 176px;
  padding: 15px 17px;
  border: 1px solid color-mix(in srgb, var(--tpp-red) 32%, var(--tpp-border-color));
  border-radius: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--tpp-red) 9%, var(--tpp-surface)), var(--tpp-surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.tpp-portal.tcomp-standing .tcomp-standing-overview > .dashicons {
  grid-row: 1 / 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--tpp-red) 18%, transparent);
  color: var(--tpp-red);
  font-size: 18px;
}
.tpp-portal.tcomp-standing .tcomp-standing-overview strong {
  font-size: 22px;
  line-height: 1;
}
.tpp-portal.tcomp-standing .tcomp-standing-overview small {
  margin-top: 4px;
  color: var(--tpp-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tpp-portal.tcomp-standing .tcomp-standing-toolbar {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--tpp-border-color);
}
.tpp-portal.tcomp-standing .tcomp-standing-toolbar .tcomp-standing-tabs {
  min-width: 0;
  flex: 1 1 auto;
  margin: 0;
  padding: 4px 2px;
}
.tpp-portal.tcomp-standing .tcomp-standing-toolbar .tcomp-standing-overview {
  display: flex;
  min-width: 0;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
}
.tpp-portal.tcomp-standing .tcomp-standing-toolbar .tcomp-standing-overview > .dashicons {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  font-size: 15px;
}
.tpp-portal.tcomp-standing .tcomp-standing-toolbar .tcomp-standing-overview strong {
  font-size: 17px;
}
.tpp-portal.tcomp-standing .tcomp-standing-toolbar .tcomp-standing-overview small {
  margin: 0;
}

.tpp-portal.tcomp-standing .tcomp-standing-tabs {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  margin: -10px 0 20px;
  padding: 4px 2px 9px;
  overflow-x: auto;
  scrollbar-color: var(--tpp-border-color) transparent;
}
.tpp-portal.tcomp-standing .tcomp-standing-tabs a {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border: 1px solid var(--tpp-border-color);
  border-radius: 999px;
  background: color-mix(in srgb, #fff 2%, var(--tpp-surface));
  color: var(--tpp-muted-strong);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.tpp-portal.tcomp-standing .tcomp-standing-tabs a:hover,
.tpp-portal.tcomp-standing .tcomp-standing-tabs a:focus-visible {
  border-color: color-mix(in srgb, var(--tpp-red) 62%, var(--tpp-border-color));
  color: #fff;
  outline: none;
}
.tpp-portal.tcomp-standing .tcomp-standing-tabs a.is-active {
  border-color: var(--tpp-red);
  background: color-mix(in srgb, var(--tpp-red) 16%, var(--tpp-surface));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 18px color-mix(in srgb, var(--tpp-red) 12%, transparent);
}
.tpp-portal.tcomp-standing .tcomp-standing-tab-logo {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tpp-red) 20%, #d9dde6);
  border-radius: 50%;
  background: #fff;
  color: var(--tpp-red);
}
.tpp-portal.tcomp-standing .tcomp-standing-tab-logo img {
  display: block;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  object-fit: contain;
}
.tpp-portal.tcomp-standing .tcomp-standing-tab-logo .dashicons {
  width: 15px;
  height: 15px;
  font-size: 15px;
  line-height: 15px;
}
.tpp-portal.tcomp-standing .tcomp-standing-filter-note {
  margin: -9px 0 22px;
  color: var(--tpp-muted);
  font-size: 11px;
  line-height: 1.5;
}

.tpp-portal.tcomp-standing .tcomp-standing-grid {
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 16px;
}
.tpp-portal.tcomp-standing .tcomp-standing-card {
  position: relative;
  min-width: 0;
  border-color: var(--tpp-border-color);
  border-radius: 19px;
  background:
    linear-gradient(155deg, color-mix(in srgb, #fff 2%, var(--tpp-surface)), var(--tpp-surface));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 14px 32px rgba(0,0,0,.25);
}
.tpp-portal.tcomp-standing .tcomp-standing-card::before {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 20px;
  width: 42px;
  height: 3px;
  border-radius: 0 0 5px 5px;
  background: var(--tpp-red);
  box-shadow: 0 0 14px color-mix(in srgb, var(--tpp-red) 65%, transparent);
  content: "";
  pointer-events: none;
}
.tpp-portal.tcomp-standing .tcomp-standing-card:hover,
.tpp-portal.tcomp-standing .tcomp-standing-card:focus-within {
  border-color: color-mix(in srgb, var(--tpp-red) 52%, var(--tpp-border-color));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 20px 44px rgba(0,0,0,.4),
    0 0 0 1px color-mix(in srgb, var(--tpp-red) 12%, transparent);
}
.tpp-portal.tcomp-standing button.tcomp-standing-trigger,
.tpp-portal.tcomp-standing button.tcomp-standing-trigger:hover,
.tpp-portal.tcomp-standing button.tcomp-standing-trigger:active,
.tpp-portal.tcomp-standing button.tcomp-standing-trigger:focus {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 21px !important;
  border: 0 !important;
  border-radius: 19px !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--tpp-section-text) !important;
  box-shadow: none;
  font: inherit;
  text-align: left;
  white-space: normal;
  appearance: none;
}
.tpp-portal.tcomp-standing button.tcomp-standing-trigger:focus-visible {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tpp-muted) 55%, transparent) !important;
}
.tpp-portal.tcomp-standing .tcomp-standing-photo {
  width: 70px;
  height: 70px;
  border: 1px solid color-mix(in srgb, var(--tpp-red) 24%, var(--tpp-border-color));
  background:
    radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--tpp-red) 16%, var(--tpp-soft)), var(--tpp-soft));
  color: var(--tpp-muted-strong);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 8px 20px rgba(0,0,0,.25);
}
.tpp-portal.tcomp-standing .tcomp-standing-photo-frame > .dashicons {
  width: 22px;
  height: 22px;
  font-size: 22px;
}
.tpp-portal.tcomp-standing .tcomp-standing-flag {
  right: -5px;
  bottom: -3px;
  display: grid;
  min-width: 27px;
  height: 24px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid var(--tpp-surface);
  border-radius: 9px;
  background: #fff;
  font-size: 15px;
  box-shadow: 0 5px 12px rgba(0,0,0,.35);
}
.tpp-portal.tcomp-standing .tcomp-standing-name {
  width: 100%;
  margin-top: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}
.tpp-portal.tcomp-standing .tcomp-level-pill {
  border-color: color-mix(in srgb, var(--tpp-red) 38%, var(--tpp-border-color));
  background: color-mix(in srgb, var(--tpp-red) 10%, var(--tpp-soft));
  color: var(--tpp-kicker);
  font-size: 9px;
  letter-spacing: .06em;
}
.tpp-portal.tcomp-standing .tcomp-standing-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin-top: 7px;
  padding-top: 13px;
  border-top: 1px solid var(--tpp-border-color);
}
.tpp-portal.tcomp-standing .tcomp-standing-stats > span {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 5px;
}
.tpp-portal.tcomp-standing .tcomp-standing-stats > span + span {
  padding-left: 12px;
  border-left: 1px solid var(--tpp-border-color);
}
.tpp-portal.tcomp-standing .tcomp-standing-stats b {
  color: #fff;
  font-size: 16px;
}
.tpp-portal.tcomp-standing .tcomp-standing-stats small {
  overflow: hidden;
  color: var(--tpp-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.tpp-portal.tcomp-standing .tcomp-standing-primary-title {
  position: absolute;
  z-index: 3;
  top: 19px;
  right: 18px;
  display: flex;
  width: auto;
  max-width: calc(100% - 112px);
  min-width: 0;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 9px 6px 6px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tcomp-title-accent) 62%, var(--tpp-border-color));
  border-radius: 14px;
  background: color-mix(in srgb, var(--tcomp-title-accent) 11%, var(--tpp-surface));
  color: #fff;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
  pointer-events: none;
}
.tpp-portal.tcomp-standing .tcomp-standing-primary-title-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  color: var(--tcomp-title-accent);
}
.tpp-portal.tcomp-standing .tcomp-standing-primary-title-icon img {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: contain;
}
.tpp-portal.tcomp-standing .tcomp-standing-primary-title-icon .dashicons {
  width: 15px;
  height: 15px;
  font-size: 15px;
  line-height: 15px;
}
.tpp-portal.tcomp-standing .tcomp-standing-primary-title-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
.tpp-portal.tcomp-standing .tcomp-standing-primary-title small {
  color: var(--tcomp-title-accent);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}
.tpp-portal.tcomp-standing .tcomp-standing-primary-title strong {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.tpp-portal.tcomp-standing .tcomp-standing-badges {
  width: 100%;
  margin-top: 3px;
}
.tpp-portal.tcomp-standing .tcomp-title-badge,
.tpp-portal.tcomp-standing .tcomp-title-more {
  border: 1px solid color-mix(in srgb, var(--tpp-red) 30%, var(--tpp-border-color));
  background: color-mix(in srgb, var(--tpp-red) 9%, var(--tpp-soft));
  color: var(--tpp-kicker);
  font-size: 8px;
}

.tpp-portal.tcomp-standing .tcomp-standing-modal {
  padding: clamp(12px, 3vw, 30px);
}
.tpp-portal.tcomp-standing .tcomp-standing-overlay {
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(8px);
}
.tpp-portal.tcomp-standing .tcomp-standing-dialog {
  width: min(900px, 100%);
  max-height: calc(100dvh - 36px);
  padding: clamp(22px, 4vw, 36px);
  border-color: color-mix(in srgb, var(--tpp-red) 22%, var(--tpp-border-color));
  border-radius: 24px;
  color: var(--tpp-section-text);
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--tpp-red) 13%, transparent), transparent 31%),
    linear-gradient(155deg, #111214, #0c0d0f 66%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 34px 90px rgba(0,0,0,.72);
  scrollbar-color: var(--tpp-border-color) var(--tpp-section-bg);
}
.tpp-portal.tcomp-standing .tcomp-standing-dialog:focus,
.tpp-portal.tcomp-standing .tcomp-standing-dialog:focus-visible {
  outline: none !important;
}
.tpp-portal.tcomp-standing button.tcomp-standing-close,
.tpp-portal.tcomp-standing button.tcomp-standing-close:hover,
.tpp-portal.tcomp-standing button.tcomp-standing-close:active,
.tpp-portal.tcomp-standing button.tcomp-standing-close:focus {
  top: 18px;
  right: 18px;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--tpp-border-color) !important;
  border-radius: 12px !important;
  outline: 0 !important;
  background: var(--tpp-surface) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.tpp-portal.tcomp-standing button.tcomp-standing-close::before {
  color: #fff;
  font-size: 27px;
}
.tpp-portal.tcomp-standing button.tcomp-standing-close:focus-visible {
  box-shadow: 0 0 0 3px var(--tpp-section-bg), 0 0 0 5px var(--tpp-red) !important;
}
.tpp-portal.tcomp-standing .tcomp-standing-modal-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 118px;
  padding: 17px 68px 17px 18px;
  border: 1px solid var(--tpp-border-color);
  border-radius: 18px;
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--tpp-red) 9%, var(--tpp-surface)), var(--tpp-surface));
}
.tpp-portal.tcomp-standing .tcomp-standing-modal-photo {
  width: 104px;
  height: 104px;
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--tpp-red) 35%, var(--tpp-border-color));
  background-color: var(--tpp-soft);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}
.tpp-portal.tcomp-standing .tcomp-standing-modal-photo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover !important;
  object-position: center 18%;
}
.tpp-portal.tcomp-standing .tcomp-standing-modal-head h3 {
  margin: 5px 0 8px;
  color: #fff !important;
  font-size: clamp(23px, 4vw, 32px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.025em;
}
.tpp-portal.tcomp-standing .tcomp-standing-modal-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}
.tpp-portal.tcomp-standing .tcomp-standing-modal-stats > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 11px;
  padding: 13px 14px;
  border: 1px solid var(--tpp-border-color);
  border-radius: 14px;
  background: color-mix(in srgb, var(--tpp-red) 4%, var(--tpp-surface));
}
.tpp-portal.tcomp-standing .tcomp-standing-modal-stats .dashicons {
  grid-row: 1 / 3;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--tpp-red) 14%, var(--tpp-soft));
  color: var(--tpp-red);
  font-size: 18px;
}
.tpp-portal.tcomp-standing .tcomp-standing-modal-stats strong {
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.tpp-portal.tcomp-standing .tcomp-standing-modal-stats small {
  margin-top: 4px;
  color: var(--tpp-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
}
.tpp-portal.tcomp-standing .tcomp-standing-modal-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--tpp-border-color);
}
.tpp-portal.tcomp-standing .tcomp-standing-modal-section[hidden] {
  display: none;
}
.tpp-portal.tcomp-standing .tcomp-standing-modal-section > header {
  margin-bottom: 10px;
}
.tpp-portal.tcomp-standing .tcomp-standing-modal-section > header h4 {
  margin: 4px 0 0;
  color: #fff !important;
  font-size: 16px !important;
}
.tpp-portal.tcomp-standing .tcomp-standing-modal-titles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.tpp-portal.tcomp-standing button.tcomp-standing-titles-more,
.tpp-portal.tcomp-standing button.tcomp-standing-titles-more:hover,
.tpp-portal.tcomp-standing button.tcomp-standing-titles-more:active,
.tpp-portal.tcomp-standing button.tcomp-standing-titles-more:focus {
  display: block;
  width: 100%;
  min-height: 40px;
  margin: 10px 0 0;
  padding: 9px 14px !important;
  border: 1px solid color-mix(in srgb, var(--tpp-red) 42%, var(--tpp-border-color)) !important;
  border-radius: 12px !important;
  outline: 0 !important;
  background: color-mix(in srgb, var(--tpp-red) 8%, var(--tpp-surface)) !important;
  color: var(--tpp-kicker) !important;
  font-size: 11px;
  font-weight: 800;
  box-shadow: none !important;
}
.tpp-portal.tcomp-standing button.tcomp-standing-titles-more[hidden] {
  display: none !important;
}
.tpp-portal.tcomp-standing button.tcomp-standing-titles-more:hover {
  border-color: var(--tpp-red) !important;
  color: #fff !important;
}
.tpp-portal.tcomp-standing button.tcomp-standing-titles-more:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tpp-red) 28%, transparent) !important;
}
.tpp-portal.tcomp-standing button.tcomp-standing-titles-more:disabled {
  cursor: wait;
  opacity: .65;
}
.tpp-portal.tcomp-standing .tcomp-title-certified {
  position: relative;
  min-height: 108px;
  padding: 15px 16px 14px 18px;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--tpp-red) 30%, var(--tpp-border-color));
  background: linear-gradient(135deg, color-mix(in srgb, var(--tpp-red) 8%, var(--tpp-surface)), var(--tpp-surface));
}
.tpp-portal.tcomp-standing .tcomp-title-certified::before {
  position: absolute;
  inset: 13px auto 13px 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--tpp-red);
  content: "";
}
.tpp-portal.tcomp-standing .tcomp-title-certified strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
}
.tpp-portal.tcomp-standing .tcomp-title-certified small {
  color: var(--tpp-kicker);
}
.tpp-portal.tcomp-standing .tcomp-result-entry {
  grid-template-columns: 82px minmax(0, 1fr) auto;
  min-height: 82px;
  border-color: var(--tpp-border-color);
  border-left-color: var(--tpp-red);
  background: var(--tpp-surface);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.tpp-portal.tcomp-standing .tcomp-result-entry time {
  border-color: var(--tpp-border-color);
}
.tpp-portal.tcomp-standing .tcomp-result-content > strong,
.tpp-portal.tcomp-standing .tcomp-result-entry time strong {
  color: #fff;
}
.tpp-portal.tcomp-standing .tcomp-result-content > :is(span, p),
.tpp-portal.tcomp-standing .tcomp-result-entry time span,
.tpp-portal.tcomp-standing .tcomp-result-performance > small {
  color: var(--tpp-muted);
}
.tpp-portal.tcomp-standing .tcomp-result-performance > strong {
  color: var(--tpp-red);
}
.tpp-portal.tcomp-standing .tcomp-result-performance > em {
  border-color: var(--tpp-border-color);
  background: var(--tpp-soft);
  color: #fff;
}
.tpp-portal.tcomp-standing .tcomp-standing-empty-history,
.tpp-portal.tcomp-standing .tcomp-empty {
  border-color: var(--tpp-border-color);
  background: color-mix(in srgb, var(--tpp-red) 3%, var(--tpp-surface));
  color: var(--tpp-muted);
}
.tpp-portal.tcomp-standing .tcomp-standing-pagination .page-numbers {
  border-color: var(--tpp-border-color);
  background: var(--tpp-surface);
  color: var(--tpp-muted-strong);
}
.tpp-portal.tcomp-standing .tcomp-standing-pagination a.page-numbers:hover,
.tpp-portal.tcomp-standing .tcomp-standing-pagination .page-numbers.current {
  border-color: var(--tpp-red);
  background: var(--tpp-red);
  color: #fff;
}

@media (max-width: 782px) {
  .tpp-portal.tcomp-standing {
    width: calc(100% - 20px);
    margin: 20px auto;
    padding: 24px 18px;
    border-radius: 22px;
  }
  .tpp-portal.tcomp-standing .tcomp-standing-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
    margin-bottom: 24px;
    padding-bottom: 22px;
  }
  .tpp-portal.tcomp-standing .tcomp-standing-overview {
    min-width: 0;
    justify-self: start;
  }
  .tpp-portal.tcomp-standing .tcomp-standing-tabs {
    margin-top: -6px;
    padding-bottom: 8px;
  }
  .tpp-portal.tcomp-standing .tcomp-standing-toolbar {
    gap: 9px;
    margin-bottom: 18px;
    padding-bottom: 14px;
  }
  .tpp-portal.tcomp-standing .tcomp-standing-toolbar .tcomp-standing-tabs {
    margin: 0;
    padding: 3px 1px;
  }
  .tpp-portal.tcomp-standing .tcomp-standing-toolbar .tcomp-standing-overview {
    min-height: 36px;
    padding-right: 9px;
  }
  .tpp-portal.tcomp-standing .tcomp-standing-tabs a {
    min-height: 36px;
    padding: 4px 11px;
    font-size: 10px;
  }
  .tpp-portal.tcomp-standing .tcomp-standing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .tpp-portal.tcomp-standing button.tcomp-standing-trigger,
  .tpp-portal.tcomp-standing button.tcomp-standing-trigger:hover,
  .tpp-portal.tcomp-standing button.tcomp-standing-trigger:active,
  .tpp-portal.tcomp-standing button.tcomp-standing-trigger:focus {
    padding: 16px !important;
  }
  .tpp-portal.tcomp-standing .tcomp-standing-photo {
    width: 60px;
    height: 60px;
  }
  .tpp-portal.tcomp-standing .tcomp-standing-stats {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .tpp-portal.tcomp-standing .tcomp-standing-stats > span + span {
    padding: 7px 0 0;
    border-top: 1px solid var(--tpp-border-color);
    border-left: 0;
  }
  .tpp-portal.tcomp-standing .tcomp-standing-dialog {
    padding: 22px 17px;
    border-radius: 20px;
  }
  .tpp-portal.tcomp-standing .tcomp-standing-modal-head {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 13px;
    min-height: 70px;
    padding: 0 42px 18px 0;
  }
  .tpp-portal.tcomp-standing .tcomp-standing-modal-photo {
    width: 66px;
    height: 66px;
  }
  .tpp-portal.tcomp-standing button.tcomp-standing-close,
  .tpp-portal.tcomp-standing button.tcomp-standing-close:hover,
  .tpp-portal.tcomp-standing button.tcomp-standing-close:active,
  .tpp-portal.tcomp-standing button.tcomp-standing-close:focus {
    top: 12px;
    right: 12px;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }
  .tpp-portal.tcomp-standing .tcomp-standing-modal-stats {
    grid-template-columns: 1fr 1fr;
  }
  .tpp-portal.tcomp-standing .tcomp-result-entry {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 9px;
  }
  .tpp-portal.tcomp-standing .tcomp-result-entry time {
    grid-row: 1 / 3;
  }
  .tpp-portal.tcomp-standing .tcomp-result-performance {
    grid-column: 2;
    min-width: 0;
    grid-template-columns: auto auto auto;
    align-items: center;
    justify-content: start;
    justify-items: start;
    gap: 6px;
  }
  .tpp-portal.tcomp-standing .tcomp-result-performance > :is(small, em) {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .tpp-portal.tcomp-standing .tcomp-standing-toolbar .tcomp-standing-overview small {
    display: none;
  }
  .tpp-portal.tcomp-standing .tcomp-standing-grid {
    grid-template-columns: 1fr;
  }
  .tpp-portal.tcomp-standing .tcomp-standing-card {
    min-height: 0;
  }
  .tpp-portal.tcomp-standing .tcomp-standing-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }
  .tpp-portal.tcomp-standing .tcomp-standing-stats > span + span {
    padding: 0 0 0 12px;
    border-top: 0;
    border-left: 1px solid var(--tpp-border-color);
  }
  .tpp-portal.tcomp-standing .tcomp-standing-modal-stats {
    grid-template-columns: 1fr;
  }
}

/* Profils editoriaux de personnalites publiques. */
.tpp-portal.tcomp-standing .tcomp-standing-card.is-public-personality {
  --tcomp-personality-accent: var(--tpp-red, #ed1427);
}
.tpp-portal.tcomp-standing .tcomp-standing-card.is-public-personality .tcomp-standing-photo {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--tcomp-personality-accent) 55%, transparent);
}
.tpp-portal.tcomp-standing .tcomp-standing-card.is-public-personality .tcomp-standing-photo-frame img {
  max-width: none;
  transform: scale(1.14);
}
.tpp-portal.tcomp-standing .tcomp-standing-modal-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(210px, .75fr);
  align-items: stretch;
  gap: 12px;
  margin-top: 16px;
}
.tpp-portal.tcomp-standing .tcomp-standing-modal-overview:not(:has(.tcomp-standing-modal-bio:not([hidden]))) .tcomp-standing-modal-stats {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tpp-portal.tcomp-standing .tcomp-standing-modal-bio {
  min-width: 0;
  margin: 0;
  padding: 17px 18px;
  border: 1px solid var(--tpp-border-color, rgba(255,255,255,.12));
  border-radius: 16px;
  background: color-mix(in srgb, var(--tpp-soft, #18080b) 78%, transparent);
}
.tpp-portal.tcomp-standing .tcomp-standing-modal-bio[hidden] {
  display: none;
}
.tpp-portal.tcomp-standing .tcomp-standing-modal-bio p {
  margin: 0;
  color: var(--tpp-muted-strong, #d7d9de);
  font-size: 14px !important;
  line-height: 1.65 !important;
}
.tpp-portal.tcomp-standing .tcomp-standing-modal-bio a {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--tpp-red, #ed1427) 42%, var(--tpp-border-color));
  border-radius: 9px;
  background: color-mix(in srgb, var(--tpp-red, #ed1427) 8%, transparent);
  color: var(--tpp-kicker, #ff4052);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}
.tpp-portal.tcomp-standing .tcomp-standing-modal-bio a:hover,
.tpp-portal.tcomp-standing .tcomp-standing-modal-bio a:focus-visible {
  border-color: var(--tpp-red, #ed1427);
  color: #fff;
}
.tpp-portal.tcomp-standing .tcomp-standing-modal-photo img {
  max-width: none;
  transform: scale(1.1);
}

@media (max-width: 782px) {
  .tpp-portal.tcomp-standing .tcomp-standing-modal-overview {
    grid-template-columns: 1fr;
  }
  .tpp-portal.tcomp-standing .tcomp-standing-modal-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tpp-portal.tcomp-standing .tcomp-standing-modal-titles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .tpp-portal.tcomp-standing .tcomp-standing-modal-stats,
  .tpp-portal.tcomp-standing .tcomp-standing-modal-overview:not(:has(.tcomp-standing-modal-bio:not([hidden]))) .tcomp-standing-modal-stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tpp-portal.tcomp-standing .tcomp-standing-card,
  .tpp-portal.tcomp-standing .tcomp-standing-modal {
    transition: none;
  }
}

/* v0.6.0 — certifications partenaires réutilisables. */
.tcomp-certification-list {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.tcomp-certification-badge {
  --tcomp-certification-color: #4ade80;
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 4px 10px 4px 5px;
  border: 1px solid color-mix(in srgb, var(--tcomp-certification-color) 42%, var(--tpp-border-color, #30343b));
  border-radius: 999px;
  background: color-mix(in srgb, var(--tcomp-certification-color) 13%, var(--tpp-surface, #111214));
  color: color-mix(in srgb, var(--tcomp-certification-color) 72%, #fff);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 5%, transparent);
  vertical-align: middle;
}
.tcomp-certification-logo {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tcomp-certification-color) 24%, #d9dde6);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px color-mix(in srgb, #000 22%, transparent);
}
.tcomp-certification-logo > img {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: contain;
}
.tcomp-certification-logo > .dashicons {
  width: 18px;
  height: 18px;
  color: color-mix(in srgb, var(--tcomp-certification-color) 72%, #173126);
  font-size: 17px;
  line-height: 18px;
}
.tcomp-certification-copy {
  display: flex;
  overflow: hidden;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.tcomp-certification-copy > small {
  overflow: hidden;
  max-width: 100%;
  color: color-mix(in srgb, var(--tcomp-certification-color) 78%, #111214) !important;
  font-size: 6px !important;
  font-weight: 800;
  line-height: 1.1 !important;
  letter-spacing: .075em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.tcomp-certification-copy > strong {
  overflow: hidden;
  min-width: 0;
  color: inherit !important;
  font-size: 9px !important;
  font-weight: 900;
  line-height: 1.15 !important;
  letter-spacing: .015em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.tcomp-result-content > .tcomp-certification-list {
  margin-top: 7px;
}

/* v0.12.4 - Competition suit la palette claire/sombre du portail pilote. */
.tpp-portal.tcomp-standing {
  color-scheme: normal;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb,var(--tpp-border-color) 38%,transparent),
    0 28px 70px color-mix(in srgb,var(--tpp-shadow-color) 18%,transparent);
}
.tpp-portal.tcomp-standing .tcomp-standing-heading h2,
.tpp-portal.tcomp-standing .tcomp-standing-name,
.tpp-portal.tcomp-standing .tcomp-standing-stats b,
.tpp-portal.tcomp-standing .tcomp-standing-primary-title,
.tpp-portal.tcomp-standing .tcomp-standing-primary-title strong,
.tpp-portal.tcomp-standing .tcomp-standing-modal-head h3,
.tpp-portal.tcomp-standing .tcomp-standing-modal-stats strong,
.tpp-portal.tcomp-standing .tcomp-standing-modal-section > header h4,
.tpp-portal.tcomp-standing .tcomp-title-certified strong,
.tpp-portal.tcomp-standing .tcomp-result-content > strong,
.tpp-portal.tcomp-standing .tcomp-result-entry time strong,
.tpp-portal.tcomp-standing .tcomp-result-performance > em {
  color: var(--tpp-section-text) !important;
}
.tpp-portal.tcomp-standing .tcomp-standing-tabs a:hover,
.tpp-portal.tcomp-standing .tcomp-standing-tabs a:focus-visible,
.tpp-portal.tcomp-standing .tcomp-standing-tabs a.is-active {
  color: var(--tpp-section-text);
}
.tpp-portal.tcomp-standing .tcomp-standing-card,
.tpp-portal.tcomp-standing .tcomp-standing-tabs a {
  background: linear-gradient(155deg,color-mix(in srgb,var(--tpp-red) 2%,var(--tpp-surface)),var(--tpp-surface));
}
.tpp-portal.tcomp-standing .tcomp-standing-card:hover,
.tpp-portal.tcomp-standing .tcomp-standing-card:focus-within {
  box-shadow:
    inset 0 1px 0 color-mix(in srgb,var(--tpp-border-color) 45%,transparent),
    0 20px 44px color-mix(in srgb,var(--tpp-shadow-color) 20%,transparent),
    0 0 0 1px color-mix(in srgb,var(--tpp-red) 12%,transparent);
}
.tpp-portal.tcomp-standing .tcomp-standing-photo {
  box-shadow:
    inset 0 1px 0 color-mix(in srgb,var(--tpp-border-color) 45%,transparent),
    0 8px 20px color-mix(in srgb,var(--tpp-shadow-color) 18%,transparent);
}
.tpp-portal.tcomp-standing .tcomp-standing-primary-title {
  background: color-mix(in srgb,var(--tcomp-title-accent) 9%,var(--tpp-surface));
}
.tpp-portal.tcomp-standing .tcomp-standing-dialog {
  background:
    radial-gradient(circle at 100% 0,color-mix(in srgb,var(--tpp-red) 13%,transparent),transparent 31%),
    linear-gradient(155deg,color-mix(in srgb,var(--tpp-red) 3%,var(--tpp-surface)),var(--tpp-section-bg) 66%);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb,var(--tpp-border-color) 42%,transparent),
    0 34px 90px color-mix(in srgb,var(--tpp-shadow-color) 42%,transparent);
}
.tpp-portal.tcomp-standing button.tcomp-standing-close,
.tpp-portal.tcomp-standing button.tcomp-standing-close:hover,
.tpp-portal.tcomp-standing button.tcomp-standing-close:active,
.tpp-portal.tcomp-standing button.tcomp-standing-close:focus,
.tpp-portal.tcomp-standing button.tcomp-standing-close::before {
  color: var(--tpp-section-text) !important;
}
.tpp-portal.tcomp-standing button.tcomp-standing-titles-more:hover {
  color: var(--tpp-section-text) !important;
}
.tpp-portal.tcomp-standing .tcomp-standing-modal-head,
.tpp-portal.tcomp-standing .tcomp-title-certified {
  background: linear-gradient(115deg,color-mix(in srgb,var(--tpp-red) 8%,var(--tpp-surface)),var(--tpp-surface));
}
.tpp-portal.tcomp-standing .tcomp-standing-modal-photo,
.tpp-portal.tcomp-standing .tcomp-standing-modal-bio,
.tpp-portal.tcomp-standing .tcomp-standing-modal-stats > div,
.tpp-portal.tcomp-standing .tcomp-result-entry,
.tpp-portal.tcomp-standing .tcomp-standing-empty-history,
.tpp-portal.tcomp-standing .tcomp-empty {
  background-color: var(--tpp-surface);
}
.tpp-portal.tcomp-standing .tcomp-certification-badge {
  color: color-mix(in srgb,var(--tcomp-certification-color) 58%,var(--tpp-section-text));
}
.tpp-portal.tcomp-standing .tcomp-certification-copy > small {
  color: color-mix(in srgb,var(--tcomp-certification-color) 66%,var(--tpp-section-text)) !important;
}
.tcomp-standing-badges > .tcomp-certification-list {
  max-width: 100%;
}
.tcomp-title-certified > .tcomp-certification-list {
  margin-top: 7px;
}
.tcomp-title-certified > .tcomp-certification-list + small {
  display: block;
  margin-top: 6px;
}

/* v0.12.5 - Contrastes partages entre les palettes claire et sombre. */
.tpp-portal.tcomp-standing .tcomp-level-pill {
  color: color-mix(in srgb, var(--tpp-red) 62%, var(--tpp-section-text)) !important;
}
.tpp-portal.tcomp-standing .tcomp-standing-primary-title small,
.tpp-portal.tcomp-standing .tcomp-title-certified small,
.tpp-portal.tcomp-standing .tcomp-title-period {
  color: color-mix(in srgb, var(--tpp-red) 58%, var(--tpp-section-text)) !important;
}
.tpp-portal.tcomp-standing .tcomp-standing-modal-bio a {
  color: color-mix(in srgb, var(--tpp-red) 68%, var(--tpp-section-text)) !important;
}
.tpp-portal.tcomp-standing .tcomp-standing-modal-bio a:hover,
.tpp-portal.tcomp-standing .tcomp-standing-modal-bio a:focus-visible {
  background: var(--tpp-red);
  color: #fff !important;
}
.tpp-portal.tcomp-standing .tcomp-certification-badge {
  color: color-mix(in srgb, var(--tcomp-certification-color) 38%, var(--tpp-section-text)) !important;
}
.tpp-portal.tcomp-standing .tcomp-certification-copy > small {
  color: color-mix(in srgb, var(--tcomp-certification-color) 42%, var(--tpp-section-text)) !important;
}
.tpp-portal.tcomp-standing .tcomp-title-certified p,
.tpp-portal.tcomp-standing .tcomp-title-certified > small:last-child {
  color: var(--tpp-muted-strong, var(--tpp-muted)) !important;
}

@media (max-width: 480px) {
  .tcomp-certification-badge {
    width: 100%;
    max-width: 100%;
  }
}
