/*
 * FRÍ Hlauparar 1.20.15 — finish layer
 * Single scoped design layer; intentionally leaves the source/score/UI contracts
 * and every non-Hlauparar page untouched. This is not a Liquid Glass imitation.
 * Future migration: consolidate the old versioned rules into component files.
 */
.fri-tp-app.fri-tp-product-shell,
.fri-tp-public-hub.fri-tp-product-shell,
.fri-tp-race-directory.fri-tp-product-shell,
.fri-tp-race-page.fri-tp-product-shell,
.fri-tp-records-directory.fri-tp-product-shell{
  --fri-finish-ink:#18243a;
  --fri-finish-secondary:#526176;
  --fri-finish-line:#e5eaf1;
  --fri-finish-focus:#003bcb;
  --fri-finish-soft:#f7f9fc;
  --fri-finish-shadow:0 7px 28px rgba(24,42,76,.045);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* Crisp hierarchy and readable numbers. A system-like feel, not a new font. */
.fri-tp-product-shell :is(.fri-tp-summary-grid,.fri-tp-pb-grid,.fri-tp-trail-profile-grid,.fri-tp-insight-grid,.fri-tp-community-grid,.fri-tp-hub-record-grid,.fri-tp-hub-race-grid,.fri-tp-table,.fri-tp-score-card){
  font-variant-numeric:tabular-nums;
}
.fri-tp-product-shell :is(h1,h2,h3){
  text-wrap:balance;
  text-rendering:optimizeLegibility;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card [data-fri-tp-athlete-name]{
  text-wrap:pretty;
}
.fri-tp-product-shell :is(.fri-tp-section-head h2,.fri-tp-section-head h3){
  letter-spacing:-.028em;
}
.fri-tp-product-shell .fri-tp-section-head :is(.fri-tp-text-link,.fri-tp-hub-all-link){
  flex-shrink:0;
  text-underline-offset:3px;
}

/* Quiet, consistent interaction feedback. Respect the existing FRÍ blue. */
.fri-tp-product-shell :is(a,button,select,input,textarea),
.fri-tp-pwa-guide :is(button,a){
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
.fri-tp-product-shell :is(a,button,select,input,textarea):focus-visible,
.fri-tp-pwa-guide :is(button,a):focus-visible{
  outline:2px solid var(--fri-finish-focus,#003bcb)!important;
  outline-offset:3px!important;
}
.fri-tp-product-shell :is(.fri-tp-text-link,.fri-tp-hub-all-link,.fri-tp-context-back):hover{
  text-decoration:underline!important;
  text-underline-offset:3px;
}
.fri-tp-product-shell :is(.fri-tp-search-card,.fri-tp-hub-race-card,.fri-tp-directory-card,.fri-tp-featured-race,.fri-tp-hub-record-card){
  -webkit-font-smoothing:antialiased;
}
.fri-tp-product-shell :is(.fri-tp-search-card,.fri-tp-hub-race-card,.fri-tp-directory-card,.fri-tp-featured-race):active{
  transform:scale(.996)!important;
}

/* The athlete is the hero; the indices remain secondary annotations. */
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card{
  isolation:isolate;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-identity{
  min-width:0;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card :is(.fri-tp-meta,.fri-tp-club-row){
  color:var(--fri-finish-secondary);
}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-value{
  font-variant-numeric:tabular-nums!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-score-credit{
  max-width:100%;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-foot{
  overflow-wrap:break-word;
}

/* Navigation: no faux-glass on results/cards, just tactile and predictable tabs. */
.fri-tp-app.fri-tp-product-shell .fri-tp-tabs{
  scroll-padding-inline:12px;
  overscroll-behavior-inline:contain;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-tabs button{
  min-height:44px!important;
  letter-spacing:-.005em;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-tabs button:not(.is-active):active{
  background:#ebf1fa!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel:focus{
  outline:none;
}
.fri-tp-product-shell :is(.fri-tp-event-picker select,.fri-tp-search-form input,.fri-tp-runner-search input){
  min-width:0;
  background-clip:padding-box;
}

/* A single family of gentle cards, no new colors, gradients or fake glass. */
.fri-tp-public-hub.fri-tp-product-shell :is(.fri-tp-featured-race,.fri-tp-hub-race-card,.fri-tp-hub-record-card,.fri-tp-community-card){
  border-color:var(--fri-finish-line);
}
.fri-tp-public-hub.fri-tp-product-shell .fri-tp-featured-race{
  box-shadow:var(--fri-finish-shadow);
}
.fri-tp-public-hub.fri-tp-product-shell :is(.fri-tp-hub-race-card,.fri-tp-hub-record-card):hover{
  border-color:#b8c8df;
}

/* A material is useful for a transient navigation overlay, not for data. */
.fri-tp-pwa-guide .fri-tp-pwa-guide-backdrop{
  background:rgba(13,27,49,.48);
  -webkit-backdrop-filter:blur(5px);
  backdrop-filter:blur(5px);
}
.fri-tp-pwa-guide .fri-tp-pwa-guide-sheet{
  background:#fff;
  color:var(--fri-finish-ink,#18243a);
  box-shadow:0 -20px 60px rgba(10,32,62,.18);
}
.fri-tp-pwa-guide .fri-tp-pwa-guide-sheet .fri-tp-modal-close{
  width:44px!important;height:44px!important;
  min-width:44px!important;min-height:44px!important;
  max-width:44px!important;max-height:44px!important;
  top:.65rem!important;right:.65rem!important;
  font-size:1.2rem!important;
}

/* Small screens: no side-scroll from form controls; readable native inputs. */
@media(max-width:760px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-tabs{
    scroll-snap-type:x proximity;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-tabs button{
    scroll-snap-align:center;
  }
  .fri-tp-product-shell :is(.fri-tp-search-form input,.fri-tp-runner-search input,.fri-tp-compare-search input,.fri-tp-event-picker select){
    font-size:16px!important;
  }
  .fri-tp-product-shell .fri-tp-section-head{
    min-width:0;
  }
  .fri-tp-product-shell .fri-tp-section-head > :first-child{
    min-width:0;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-foot{
    font-size:.7rem!important;
    line-height:1.42!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-score-row > .fri-tp-profile-score-credit{
    font-size:.7rem!important;
    line-height:1.5!important;
  }
}
@media(max-width:390px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-score-row{
    column-gap:.36rem!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-score-row .fri-tp-score-card-badge{
    max-width:65px!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-score-card-foot > span{
    overflow-wrap:anywhere;
  }
}

/* Accessibility preferences are behavior, not decoration. */
@media(prefers-reduced-motion:reduce){
  .fri-tp-product-shell :is(a,button,.fri-tp-featured-race,.fri-tp-hub-race-card,.fri-tp-directory-card,.fri-tp-search-card){
    animation-duration:.01ms!important;
    transition-duration:.01ms!important;
    scroll-behavior:auto!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-tabs{
    scroll-snap-type:none;
    scroll-behavior:auto!important;
  }
}
@media(prefers-reduced-transparency:reduce){
  .fri-tp-pwa-guide .fri-tp-pwa-guide-backdrop{
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
    background:rgba(13,27,49,.70);
  }
}
@media(forced-colors:active){
  .fri-tp-product-shell :is(a,button):focus-visible,
  .fri-tp-pwa-guide :is(button,a):focus-visible{
    outline:2px solid Highlight!important;
  }
}
/* The discreet install action still needs a full-size finger target. */
.fri-tp-public-hub.fri-tp-product-shell .fri-tp-pwa-install-button{
  min-height:44px!important;
  height:44px!important;
  padding:.5rem .8rem!important;
  font-size:.72rem!important;
}

/* ============================================================
   v1.20.18 — real-world Safari screenshot polish
   Visual-only overrides. No source/score/API changes.
   ============================================================ */

/* Source text is outside the horizontal results region, never a fifth card. */
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-source{
  display:block;
  max-width:100%;
  margin:.65rem 0 0!important;
  padding:0;
  color:var(--fri-finish-secondary,#526176);
  font-size:.72rem;
  line-height:1.5;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-source[hidden]{display:none!important}

/* A narrow laptop/tablet should not show a three-plus-one orphan utility tile. */
@media(max-width:980px){
  .fri-tp-public-hub.fri-tp-product-shell .fri-tp-service-pills{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;
    gap:.55rem!important;
  }
  .fri-tp-public-hub.fri-tp-product-shell .fri-tp-service-pills a{
    display:flex!important;
    justify-content:center!important;
    min-width:0!important;
    min-height:44px!important;
    padding:.72rem .62rem!important;
    border-radius:12px!important;
    text-align:center!important;
    white-space:normal!important;
    line-height:1.2!important;
  }
}

/* Compact profile navigation: a back action plus breadcrumbs is repetitive
   on phones/tablets. The back action remains visible and keyboard-accessible. */
@media(max-width:900px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-navline{
    margin-bottom:1rem!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-navline .fri-tp-breadcrumbs{
    display:none!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-navline .fri-tp-context-back{
    min-height:40px!important;
    display:inline-flex!important;
    align-items:center!important;
  }

  /* Deliberate peek of the next result, without clipping card content.
     Cards grow to fit long names, dates and age/category detail. */
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section [data-fri-tp-best-panel] > :is(.fri-tp-pb-grid,.fri-tp-trail-profile-grid){
    display:flex!important;
    flex-flow:row nowrap!important;
    align-items:stretch!important;
    gap:.7rem!important;
    padding:.1rem 1px .65rem!important;
    margin:0!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory!important;
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section [data-fri-tp-best-panel] > :is(.fri-tp-pb-grid,.fri-tp-trail-profile-grid)::-webkit-scrollbar{
    display:none!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section [data-fri-tp-best-panel] > .fri-tp-pb-grid > .fri-tp-pb,
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section [data-fri-tp-best-panel] > .fri-tp-trail-profile-grid > .fri-tp-trail-result-card{
    flex:0 0 calc(100% - 36px)!important;
    width:calc(100% - 36px)!important;
    min-width:calc(100% - 36px)!important;
    max-width:calc(100% - 36px)!important;
    height:auto!important;
    min-height:158px!important;
    max-height:none!important;
    align-self:stretch!important;
    overflow:hidden!important;
    padding:.95rem 1rem .9rem 1.1rem!important;
    scroll-snap-align:start!important;
    box-sizing:border-box!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-pb-meta{
    margin:.28rem 0 0!important;
    display:block!important;
    -webkit-line-clamp:unset!important;
    overflow:visible!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    line-height:1.45!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-trail-result-race{
    display:block!important;
    -webkit-line-clamp:unset!important;
    overflow:visible!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    line-height:1.35!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-trail-result-card small{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere!important;
    line-height:1.4!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-trail-result-card .fri-tp-trail-result-time,
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-pb-time{
    font-variant-numeric:tabular-nums!important;
    line-height:1.12!important;
  }
}

/* Identity in normal flow on phones, with less empty header space. */
@media(max-width:760px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card{
    margin-top:2.15rem!important;
    padding-top:3.4rem!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-avatar{
    width:92px!important;
    height:92px!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card [data-fri-tp-athlete-name]{
    font-size:clamp(1.8rem,7.5vw,2.35rem)!important;
    line-height:1.1!important;
    text-wrap:balance;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-best-performance-head{
    gap:.85rem!important;
  }
}
@media(prefers-reduced-motion:reduce){
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section [data-fri-tp-best-panel] > :is(.fri-tp-pb-grid,.fri-tp-trail-profile-grid){
    scroll-behavior:auto!important;
    scroll-snap-type:none!important;
  }
}

/* At tablet widths the 100%-width segmented control must stack under the
   heading; otherwise the heading and control together overflow the viewport. */
@media(max-width:900px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-best-performance-head{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    width:100%!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-best-performance-head > div{
    min-width:0!important;
    max-width:100%!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-best-performance-tabs{
    align-self:stretch!important;
    flex:0 1 auto!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
}

/* ============================================================
   v1.20.19 — final walkthrough / release candidate UX
   Local, product-scoped presentation fixes; no score/API logic.
   ============================================================ */

/* Homepage branding and quiet, legible source attribution. */
.fri-tp-public-hub.fri-tp-product-shell .fri-tp-hub-brand-mark{
  height:26px!important;
  max-width:96px!important;
  width:auto!important;
  object-fit:contain!important;
}
.fri-tp-public-hub.fri-tp-product-shell .fri-tp-hub-itra-attribution{
  max-width:100%;margin:.4rem 0 1.25rem!important;
  font-size:.69rem!important;line-height:1.45!important;
  font-weight:450!important;color:var(--fri-finish-secondary,#5e6c80)!important;
}
.fri-tp-public-hub.fri-tp-product-shell .fri-tp-hub-itra-attribution a{
  font-size:inherit!important;line-height:inherit!important;
  font-weight:600!important;color:inherit!important;
  text-underline-offset:2px;
}

/* Race detail: key facts and the chosen distance remain above the fold. */
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-page-head{
  padding-top:1.25rem!important;padding-bottom:1.1rem!important;
  margin-bottom:.55rem!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-facts{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:0!important;
  margin:.55rem 0!important;
  overflow:hidden!important;
  border:1px solid var(--fri-border)!important;
  border-radius:12px!important;
  background:#fff!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-facts>div,
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-facts>.fri-tp-race-club-fact{
  min-width:0!important;min-height:62px!important;
  padding:.65rem 1rem!important;
  border:0!important;border-right:1px solid var(--fri-border)!important;
  background:#fff!important;
  text-align:left!important;box-sizing:border-box!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-facts>:last-child{border-right:0!important}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-facts strong{
  display:block!important;margin:0!important;font-size:1.18rem!important;
  line-height:1.18!important;font-variant-numeric:tabular-nums!important;
  font-weight:750!important;color:var(--fri-text)!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-facts span{
  display:block!important;margin:.13rem 0 0!important;font-size:.69rem!important;
  line-height:1.2!important;color:var(--fri-muted)!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-club-fact{
  appearance:none!important;cursor:pointer!important;
  font:inherit!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-club-fact:hover,
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-club-fact:focus-visible{
  background:#f4f8ff!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-club-fact span{
  color:var(--fri-primary)!important;font-weight:650!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-club-fact i{
  display:inline-block;margin-left:.2rem;font-style:normal;
  transition:transform .15s ease;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-club-fact[aria-expanded="true"] i{transform:rotate(180deg)}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-clubs[hidden]{display:none!important}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-clubs{margin-top:.8rem!important}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-distance-toolbar{
  justify-content:flex-start!important;
  margin:.75rem 0 .3rem!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-distance-toolbar label{
  display:grid!important;grid-template-columns:1fr!important;
  gap:.35rem!important;min-width:min(100%,300px)!important;
  width:min(100%,380px)!important;
  color:var(--fri-text)!important;
  font-size:.81rem!important;font-weight:750!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-distance-toolbar select{
  min-height:48px!important;max-width:100%!important;
  padding:.62rem .85rem!important;
  color:var(--fri-text)!important;
  border:1px solid #bfcee4!important;border-radius:12px!important;
  font-size:1rem!important;font-weight:670!important;
  background-color:#fff!important;
  box-shadow:0 1px 2px rgba(11,31,67,.03)!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-highlights{
  margin:1.05rem 0 1rem!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-highlights .fri-tp-section-head{
  margin-bottom:.65rem!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-highlight-card{
  min-height:118px!important;padding:.85rem 1rem!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-participation-strip{
  margin:.6rem 0 0!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-participation-strip>div{
  min-height:66px!important;padding:.65rem .75rem!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-race-participation-strip small{
  line-height:1.3!important;
}

/* Athlete identity: club is the first supporting line, not repeated in metadata.
   Scores reserve space while remote ITRA data catches up. */
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-subline{
  display:flex!important;flex-wrap:wrap!important;
  justify-content:center!important;align-items:center!important;
  gap:.18rem .45rem!important;min-width:0!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-subline .fri-tp-club-row{
  flex:0 0 100%!important;justify-content:center!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-subline .fri-tp-meta{
  max-width:100%!important;min-width:0!important;
  white-space:normal!important;overflow-wrap:anywhere!important;
  line-height:1.5!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-score-card--pending .fri-tp-score-card-value{
  opacity:.45!important;font-variant-numeric:tabular-nums!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-itra-meter--pending{
  overflow:hidden!important;background:#edf2f6!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-itra-meter--pending span{
  display:block!important;width:35%!important;height:100%!important;
  border-radius:999px!important;background:#cdd9dd!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-score-card--pending .fri-tp-score-card-foot{
  font-size:.65rem!important;line-height:1.35!important;
}

/* All three performance surfaces share the trail card's information hierarchy.
   Keep the content in natural height, never truncate names/dates. */
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section [data-fri-tp-best-panel]{
  min-height:0!important;max-height:none!important;height:auto!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section [data-fri-tp-best-panel][hidden]{display:none!important}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-pb,
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-trail-result-card{
  min-height:176px!important;height:auto!important;max-height:none!important;
  justify-content:flex-start!important;
  overflow:hidden!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-performance-race-title{
  order:2!important;display:block!important;
  margin:.08rem 0 .15rem!important;
  color:var(--fri-text)!important;
  font-size:.77rem!important;line-height:1.35!important;font-weight:700!important;
  overflow-wrap:anywhere!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-pb-meta{
  order:2!important;white-space:normal!important;
  overflow:visible!important;-webkit-line-clamp:unset!important;
  line-height:1.4!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-performance-badges{
  order:3!important;display:flex!important;flex-wrap:wrap!important;
  align-items:center!important;gap:.32rem!important;
  margin-top:auto!important;padding-top:.52rem!important;
  line-height:1.35!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-performance-badges>*{
  order:initial!important;margin:0!important;max-width:100%!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-trail-result-race{
  white-space:normal!important;-webkit-line-clamp:unset!important;
  overflow:visible!important;overflow-wrap:anywhere!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-performance-placement{
  font-weight:600!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-best-performance-panel-trail{
  margin-bottom:0!important;padding-bottom:0!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-best-performance-source{
  clear:both!important;margin:.52rem 0 0!important;
  font-size:.67rem!important;line-height:1.5!important;
}

/* History: the time column contains only an official time + (if different)
   chip time. Pace under event; WA points and verified badges under race. */
.fri-tp-app.fri-tp-product-shell .fri-tp-history-event{
  display:block;font-weight:650;line-height:1.3;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-history-row td:nth-child(2) .fri-tp-result-pace,
.fri-tp-app.fri-tp-product-shell .fri-tp-history-row td:nth-child(2) .fri-tp-history-extra{
  display:block;margin:.15rem 0 0!important;
  color:var(--fri-muted)!important;font-size:.68rem!important;font-weight:450!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-history-times strong{
  display:block!important;white-space:nowrap!important;
  font-variant-numeric:tabular-nums!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-history-chip{
  display:block!important;margin:.16rem 0 0!important;
  color:var(--fri-muted)!important;font-size:.67rem!important;
  line-height:1.3!important;white-space:nowrap!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-history-context-badges{
  display:flex!important;flex-wrap:wrap!important;align-items:center!important;
  gap:.3rem!important;margin-top:.3rem!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-history-context-badges .fri-tp-wa-inline{
  display:inline-flex!important;font-size:.66rem!important;margin:0!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-history-context-badges .fri-tp-result-achievements{
  display:inline-flex!important;flex-wrap:wrap!important;margin:0!important;gap:.3rem!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-history-place--overall strong,
.fri-tp-app.fri-tp-product-shell .fri-tp-history-place--class span{
  white-space:normal!important;font-variant-numeric:tabular-nums!important;
}

@media(max-width:760px){
  .fri-tp-public-hub.fri-tp-product-shell .fri-tp-hub-brand-mark{height:28px!important;max-width:102px!important}
  .fri-tp-public-hub.fri-tp-product-shell .fri-tp-service-pills{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .fri-tp-race-page.fri-tp-product-shell .fri-tp-race-page-head{padding:1.1rem 1rem!important}
  .fri-tp-race-page.fri-tp-product-shell .fri-tp-race-facts>div,
  .fri-tp-race-page.fri-tp-product-shell .fri-tp-race-facts>.fri-tp-race-club-fact{
    min-height:57px!important;padding:.55rem .6rem!important;
    border-right:1px solid var(--fri-border)!important;
    border-bottom:0!important;
  }
  .fri-tp-race-page.fri-tp-product-shell .fri-tp-race-facts>:last-child{border-right:0!important}
  .fri-tp-race-page.fri-tp-product-shell .fri-tp-race-facts strong{font-size:1.05rem!important}
  .fri-tp-race-page.fri-tp-product-shell .fri-tp-race-facts span{font-size:.63rem!important}
  .fri-tp-race-page.fri-tp-product-shell .fri-tp-race-distance-toolbar label{width:100%!important}
  .fri-tp-race-page.fri-tp-product-shell .fri-tp-race-highlight-card{min-height:112px!important}
  .fri-tp-race-page.fri-tp-product-shell .fri-tp-race-participation-strip>div{min-height:56px!important}
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section [data-fri-tp-best-panel] > :is(.fri-tp-pb-grid,.fri-tp-trail-profile-grid){
    min-height:0!important;max-height:none!important;height:auto!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section [data-fri-tp-best-panel] > .fri-tp-pb-grid > .fri-tp-pb,
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section [data-fri-tp-best-panel] > .fri-tp-trail-profile-grid > .fri-tp-trail-result-card{
    flex:0 0 calc(100% - 40px)!important;
    width:calc(100% - 40px)!important;
    min-width:calc(100% - 40px)!important;
    max-width:calc(100% - 40px)!important;
    min-height:166px!important;height:auto!important;
    overflow:hidden!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-subline{gap:.1rem .4rem!important}
  .fri-tp-app.fri-tp-product-shell .fri-tp-history-row td:nth-child(5) .fri-tp-history-context-badges{
    justify-content:flex-start!important;
  }
}
@media(prefers-reduced-motion:reduce){
  .fri-tp-race-page.fri-tp-product-shell .fri-tp-race-club-fact i{transition:none!important}
}
/* Compact mandatory source identification on ITRA race-detail pages, too. */
.fri-tp-race-page.fri-tp-product-shell .fri-tp-itra-attribution{
  padding:.6rem .75rem!important;gap:.6rem!important;
  margin:.55rem 0!important;border-radius:12px!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-itra-attribution .fri-tp-itra-badge-link img{
  width:104px!important;min-width:104px!important;max-width:104px!important;
}
.fri-tp-race-page.fri-tp-product-shell .fri-tp-itra-attribution strong,
.fri-tp-race-page.fri-tp-product-shell .fri-tp-itra-attribution span{
  font-size:.68rem!important;line-height:1.35!important;
}
/* Remove inherited borderless/grid-strip look from road/track PB cards. */
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-pb-grid{
  gap:.72rem!important;
  border:0!important;
  background:transparent!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-pb-grid > .fri-tp-pb{
  border:1px solid #dce5f0!important;
  border-radius:15px!important;
  padding:1rem 1rem .9rem 1.08rem!important;
  background:#fff!important;
  box-shadow:none!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-pb-grid > .fri-tp-pb + .fri-tp-pb{
  border:1px solid #dce5f0!important;
}
@media(max-width:900px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-pb-grid{
    border:0!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section [data-fri-tp-best-panel] > .fri-tp-pb-grid > .fri-tp-pb{
    padding:.95rem 1rem .9rem 1.08rem!important;
  }
}


/* ================================================================
   v1.20.20 — mobile athlete walkthrough corrections
   Shared PB structure, quiet ITRA provenance, usable Safari filters.
   Only presentation; performance values and providers are unchanged.
   ================================================================ */
/* Earlier responsive grid declarations must not force PB time to the right.
   Road and track now use the same content hierarchy as the trail cards. */
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-pb-grid > .fri-tp-pb.fri-tp-unified-best-card{
  display:flex!important;
  flex-direction:column!important;
  grid-template-columns:none!important;
  grid-template-areas:none!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:0!important;
  min-width:0;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-unified-best-card > .fri-tp-unified-best-top{
  order:0!important;
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  width:100%!important;
  min-height:1.25rem!important;
  margin:0!important;
  color:var(--fri-primary)!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-pb-track.fri-tp-unified-best-card > .fri-tp-unified-best-top{color:var(--fri-red,#ee4128)!important}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-unified-best-card .fri-tp-pb-event{
  display:inline!important;grid-area:auto!important;
  align-self:auto!important;
  color:inherit!important;font-size:.72rem!important;
  letter-spacing:.045em!important;
  line-height:1.2!important;
  text-align:left!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-unified-best-card > .fri-tp-pb-time{
  order:1!important;
  position:static!important;
  display:block!important;
  float:none!important;
  grid-area:auto!important;
  align-self:stretch!important;
  justify-self:stretch!important;
  width:auto!important;
  margin:.48rem 0 .36rem!important;
  color:var(--fri-text)!important;
  font-size:clamp(1.55rem,4.5vw,1.9rem)!important;
  font-weight:700!important;
  line-height:1.12!important;
  letter-spacing:-.035em!important;
  text-align:left!important;
  white-space:nowrap!important;
  font-variant-numeric:tabular-nums!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-unified-best-card > .fri-tp-performance-race-title{
  order:2!important;
  display:block!important;
  grid-area:auto!important;
  margin:0 0 .2rem!important;
  color:var(--fri-text)!important;
  font-size:.82rem!important;line-height:1.35!important;
  font-weight:700!important;
  text-align:left!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-unified-best-card > .fri-tp-unified-best-date{
  order:3!important;
  display:block!important;
  grid-area:auto!important;
  align-self:stretch!important;
  margin:.08rem 0 0!important;
  padding:0!important;
  font-size:.7rem!important;line-height:1.4!important;
  font-weight:450!important;color:var(--fri-muted)!important;
  text-align:left!important;
  overflow-wrap:break-word!important;
  white-space:normal!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-unified-best-card > .fri-tp-performance-badges{
  order:4!important;
  display:flex!important;flex-wrap:wrap!important;
  align-items:center!important;justify-content:flex-start!important;
  gap:.3rem!important;
  width:100%!important;
  margin:auto 0 0!important;
  padding:.6rem 0 0!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-unified-best-card > .fri-tp-performance-badges > *{
  flex:0 1 auto!important;
  position:static!important;
  float:none!important;
  max-width:100%!important;
  margin:0!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  text-align:left!important;
  font-size:.65rem!important;
  line-height:1.35!important;
}
/* Short, legible ITRA source on phones; full wording remains on desktop
   and in the profile credit's accessible label. */
.fri-tp-app.fri-tp-product-shell .fri-tp-itra-credit-mobile{display:none!important}
.fri-tp-app.fri-tp-product-shell .fri-tp-itra-credit-long{display:inline!important}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-source{
  display:block!important;
  max-width:100%!important;
  margin:.52rem 0 0!important;
  padding:0!important;
  color:#748195!important;
  font-size:.67rem!important;
  line-height:1.45!important;
  font-weight:450!important;
  overflow-wrap:normal!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-source a{
  display:inline!important;
  color:inherit!important;
  font:inherit!important;
  font-weight:600!important;
  text-decoration:underline!important;
  text-decoration-color:#b7c2d1!important;
  text-underline-offset:2px!important;
  white-space:nowrap!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-source .fri-tp-source-note{
  display:block!important;
  margin-top:.2rem!important;
  color:#748195!important;
  font-size:inherit!important;
  line-height:1.45!important;
}
@media(max-width:760px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-itra-credit-long{display:none!important}
  .fri-tp-app.fri-tp-product-shell .fri-tp-itra-credit-mobile{
    display:inline!important;
    font-size:inherit!important;
    line-height:inherit!important;
    white-space:nowrap!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-source,
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-score-row > .fri-tp-profile-score-credit{
    font-size:.65rem!important;
    line-height:1.45!important;
  }
  /* The result count gets its own line, so two selects no longer compete
     with it for the same 320-430px viewport width. */
  .fri-tp-app.fri-tp-product-shell .fri-tp-history-panel .fri-tp-history-tools{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:.4rem .6rem!important;
    width:100%!important;
    max-width:100%!important;
    align-items:end!important;
    justify-content:stretch!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-sizing:border-box!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-history-panel .fri-tp-history-tools > .fri-tp-history-count{
    grid-column:1/-1!important;
    grid-row:1!important;
    justify-self:start!important;
    align-self:start!important;
    width:auto!important;
    margin:0!important;
    padding:0!important;
    font-size:.7rem!important;
    line-height:1.35!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-history-panel .fri-tp-history-tools > .fri-tp-event-picker{
    display:block!important;
    flex:none!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    box-sizing:border-box!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-history-panel .fri-tp-history-tools .fri-tp-event-picker > span{
    display:block!important;
    margin:0 0 .2rem!important;
    font-size:.7rem!important;
    line-height:1.25!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-history-panel .fri-tp-history-tools .fri-tp-event-picker > select{
    display:block!important;
    appearance:auto!important;
    -webkit-appearance:menulist!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:44px!important;
    min-height:44px!important;
    padding:.45rem .35rem!important;
    box-sizing:border-box!important;
    border:1px solid #dce4ee!important;
    border-radius:11px!important;
    font-size:16px!important; /* iOS native select: no automatic zoom */
    line-height:normal!important;
    font-weight:550!important;
    color:var(--fri-text)!important;
    background-color:#fff!important;
    text-overflow:ellipsis!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-pb-grid > .fri-tp-pb.fri-tp-unified-best-card,
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-trail-profile-grid > .fri-tp-trail-result-card{
    min-height:174px!important;
  }
}

/* 1.20.21 release candidate: trust first, discovery without new data feeds. */
.fri-tp-app.fri-tp-product-shell .fri-tp-summary-grid { grid-template-columns:repeat(3,minmax(0,1fr))!important; }
.fri-tp-app.fri-tp-product-shell .fri-tp-journey {
  margin:14px 0 8px;padding:16px 18px;border:1px solid #e2e9f2;
  border-radius:17px;background:#f8faff;display:flex;align-items:center;
  justify-content:space-between;gap:18px;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-journey[hidden] {display:none!important;}
.fri-tp-journey-story {min-width:0;display:flex;flex-direction:column;gap:4px;}
.fri-tp-journey-eyebrow {font-size:11px;font-weight:750;letter-spacing:.04em;text-transform:uppercase;color:#063ab5;}
.fri-tp-journey-story strong {font-size:16px;line-height:1.3;color:#18243a;}
.fri-tp-journey-story small {font-size:13px;color:#566579;}
.fri-tp-journey-disclaimer {font-size:11px;color:#6b778c;}
.fri-tp-journey-actions {display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.fri-tp-journey-actions button {border:1px solid #cbd8ec;border-radius:100px;padding:11px 14px;min-height:44px;background:#fff;color:#063bc5;font-weight:700;cursor:pointer;white-space:nowrap;}
.fri-tp-journey-actions button:hover {background:#eef3ff;}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-progression {display:inline-flex;align-items:center;align-self:flex-start;margin-top:12px;padding:8px 10px;border:0;border-radius:9px;color:#0642bd;background:#f1f5ff;font-weight:700;font-size:12px;min-height:38px;cursor:pointer;order:5!important;}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-progression:hover {background:#e6efff;}
.fri-tp-app.fri-tp-product-shell .fri-tp-unified-best-card .fri-tp-performance-race-title a {color:inherit;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere;}
.fri-tp-app.fri-tp-product-shell .fri-tp-fri-index-info {font-size:11px;line-height:1.5;color:#5b6879;margin-top:6px;max-width:30rem;}
.fri-tp-app.fri-tp-product-shell .fri-tp-fri-index-info summary {cursor:pointer;color:#1251a8;font-weight:650;padding:4px 0;}
.fri-tp-app.fri-tp-product-shell .fri-tp-fri-index-info p {margin:4px 0 8px;}
.fri-tp-public-hub.fri-tp-product-shell .fri-tp-hub-data-context {font-size:12px;line-height:1.5;color:#657186;margin:8px 0 20px;max-width:760px;}
@media(max-width:760px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .fri-tp-app.fri-tp-product-shell .fri-tp-summary-grid .fri-tp-summary-card:last-child{grid-column:1 / -1;}
  .fri-tp-app.fri-tp-product-shell .fri-tp-journey{flex-direction:column;align-items:stretch;padding:14px;gap:12px;}
  .fri-tp-app.fri-tp-product-shell .fri-tp-journey-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
  .fri-tp-app.fri-tp-product-shell .fri-tp-journey-actions button{white-space:normal;font-size:12px;padding:10px 7px;}
}
@media(max-width:360px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-summary-grid{grid-template-columns:1fr!important;}
  .fri-tp-app.fri-tp-product-shell .fri-tp-summary-grid .fri-tp-summary-card:last-child{grid-column:auto;}
}

/* Legacy CSS fixes 178px mobile PB card heights. New drill-down actions need natural height. */
@media(max-width:900px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section [data-fri-tp-best-panel="road"] > .fri-tp-pb-grid > .fri-tp-pb.fri-tp-unified-best-card,
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section [data-fri-tp-best-panel="track"] > .fri-tp-pb-grid > .fri-tp-pb.fri-tp-unified-best-card{
    height:auto!important;min-height:218px!important;max-height:none!important;
    overflow:visible!important;
  }
}

/* Homepage discovery: editorial links instead of inert descriptive tiles. */
.fri-tp-public-hub.fri-tp-product-shell .fri-tp-hub-explore-grid > a{
  display:block;padding:.95rem 1rem .95rem 0;border-top:1px solid #e2e9f2;
  color:#18243a;text-decoration:none;min-width:0;
}
.fri-tp-public-hub.fri-tp-product-shell .fri-tp-hub-explore-grid > a > strong{color:#0a3dc4;font-size:1rem;}
.fri-tp-public-hub.fri-tp-product-shell .fri-tp-hub-explore-grid > a > span{display:block;margin-top:.32rem;color:#526176;font-size:.78rem;line-height:1.4;}
.fri-tp-public-hub.fri-tp-product-shell .fri-tp-hub-explore-grid > a:hover > strong{text-decoration:underline;text-underline-offset:3px;}

/* ==============================================================
   v1.20.23 — profile information hierarchy / result card standard
   Scoped presentation. Keep data definitions and score calculations as-is.
   ============================================================= */

/* Small, discoverable home logo at a predictable top-right location on
   standalone athlete and competition pages. Hub retains its own logo. */
body.fri-tp-standalone .fri-tp-shell-header-inner{
  justify-content:flex-end!important;
}
body.fri-tp-standalone .fri-tp-shell-home{
  justify-content:flex-end!important;
  min-height:36px;
}
body.fri-tp-standalone .fri-tp-shell-home:focus-visible{
  outline:2px solid #0b46c9!important;
  outline-offset:5px;
  border-radius:5px;
}

/* Four useful, low-noise summary statistics instead of the large passport
   teaser. The complete passport remains available under its existing tab. */
.fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-summary-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-summary-grid .fri-tp-summary-card:last-child{
  grid-column:auto!important;
}

/* Transparency is always accessible without expanding the hero's height. */
.fri-tp-app.fri-tp-product-shell .fri-tp-fri-index-info{
  position:relative!important;
  margin-top:3px!important;
  max-width:100%!important;
  font-size:.66rem!important;
  line-height:1.35!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-fri-index-info > summary{
  width:max-content;
  max-width:100%;
  padding:4px 0!important;
  font-size:.66rem!important;
  font-weight:650!important;
  color:#1251a8!important;
  cursor:pointer;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-fri-index-info > p{
  position:absolute!important;
  z-index:200!important;
  top:calc(100% + 6px)!important;
  left:0!important;
  width:min(295px,calc(100vw - 52px))!important;
  max-width:none!important;
  margin:0!important;
  padding:11px 13px!important;
  border:1px solid #dce5f1!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 10px 30px rgba(22,40,72,.15)!important;
  font-size:.73rem!important;
  line-height:1.48!important;
  font-weight:450!important;
  color:#526176!important;
  text-align:left!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-fri-index-info > p strong{
  font-weight:700!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card{
  overflow:visible!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-score-row{
  overflow:visible!important;
}

/* The newest-result and best-effort families share one surface, height,
   border, motion and clickable affordance, including ITRA trail efforts. */
.fri-tp-app.fri-tp-product-shell :is(
  .fri-tp-recent-result,
  .fri-tp-best-performance-section .fri-tp-pb-grid > .fri-tp-pb.fri-tp-unified-best-card,
  .fri-tp-best-performance-section .fri-tp-trail-profile-grid > .fri-tp-trail-result-card
){
  min-height:190px!important;
  height:100%!important;
  max-height:none!important;
  border:1px solid #dce5f0!important;
  border-radius:15px!important;
  background:#fff!important;
  padding:1rem 1rem .92rem 1.08rem!important;
  box-shadow:none!important;
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease!important;
  box-sizing:border-box!important;
}
.fri-tp-app.fri-tp-product-shell :is(
  .fri-tp-recent-result,
  .fri-tp-best-performance-section .fri-tp-pb-grid > .fri-tp-pb.fri-tp-unified-best-card,
  .fri-tp-best-performance-section .fri-tp-trail-profile-grid > .fri-tp-trail-result-card
):hover{
  border-color:#c8d5e6!important;
  box-shadow:0 8px 22px rgba(17,37,67,.055)!important;
  transform:translateY(-1px)!important;
}
.fri-tp-app.fri-tp-product-shell :is(
  .fri-tp-recent-result,
  .fri-tp-best-performance-section .fri-tp-pb-grid > .fri-tp-pb.fri-tp-unified-best-card,
  .fri-tp-best-performance-section .fri-tp-trail-profile-grid > .fri-tp-trail-result-card
):focus-within{
  border-color:#2156c6!important;
  outline:2px solid rgba(22,75,206,.35)!important;
  outline-offset:2px!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-best-interactive{
  position:relative!important;
  isolation:isolate;
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
  min-width:0!important;
  cursor:pointer!important;
  text-decoration:none!important;
  color:var(--fri-text,#18243a)!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-best-top-right{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-end!important;
  gap:3px!important;
  flex:0 0 auto;
  margin-left:auto!important;
  white-space:nowrap!important;
  text-align:right!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-best-card-action{
  color:#1350bd!important;
  font-size:.65rem!important;
  font-weight:700!important;
  letter-spacing:0!important;
  line-height:1.3!important;
  text-transform:none!important;
  text-decoration:none!important;
  opacity:.82;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-best-interactive:hover .fri-tp-best-card-action{
  color:#0739ad!important;
  opacity:1;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-best-card-hit{
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:inherit!important;
  background:transparent!important;
  cursor:pointer!important;
  color:transparent!important;
  font-size:0!important;
}
/* A competition-name link, when known, remains an independent destination. */
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-performance-race-title a{
  position:relative!important;
  z-index:2!important;
  color:inherit!important;
  text-decoration:none!important;
  font:inherit!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-performance-race-title a:hover{
  color:#0644c5!important;
  text-decoration:none!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-best-interactive > .fri-tp-trail-result-top{
  order:0!important;
  min-height:2.15rem!important;
  align-items:flex-start!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-best-interactive > .fri-tp-trail-result-time{
  order:1!important;
  align-self:stretch!important;
  margin:.3rem 0 .32rem!important;
  font-size:clamp(1.32rem,1.7vw,1.75rem)!important;
  line-height:1.08!important;
  letter-spacing:-.035em!important;
  font-variant-numeric:tabular-nums!important;
  white-space:nowrap!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-best-interactive > .fri-tp-trail-result-race{
  order:2!important;
  font-size:.79rem!important;
  line-height:1.32!important;
  font-weight:700!important;
  overflow-wrap:anywhere!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-best-interactive > small{
  font-size:.69rem!important;
  line-height:1.35!important;
  color:#687990!important;
  margin-top:2px!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-best-interactive .fri-tp-performance-badges{
  margin-top:auto!important;
  padding-top:.55rem!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-best-interactive > .fri-tp-trail-score{
  margin-top:auto!important;
  padding-top:.4rem!important;
}
/* On desktop the overview shows five recent efforts; use the same card width
   and up to five verified best efforts. */
@media(min-width:1100px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section [data-fri-tp-best-panel] > .fri-tp-pb-grid,
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section [data-fri-tp-best-panel] > .fri-tp-trail-profile-grid{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:.78rem!important;
  }
}
@media(max-width:760px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-summary-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-summary-grid .fri-tp-summary-card:last-child{
    grid-column:auto!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section :is(.fri-tp-pb-grid > .fri-tp-pb.fri-tp-unified-best-card,.fri-tp-trail-profile-grid > .fri-tp-trail-result-card){
    min-height:190px!important;
    height:auto!important;
    max-height:none!important;
    overflow:hidden!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-fri-index-info > p{
    width:min(255px,calc(100vw - 45px))!important;
  }
}
@media(prefers-reduced-motion:reduce){
  .fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-best-interactive{
    transition:none!important;
  }
}

/* Preserve reading order for trail cards after they adopt the same top bar. */
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-best-interactive > small{
  order:3!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-best-interactive > .fri-tp-trail-score{
  order:4!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-best-interactive > .fri-tp-best-card-hit{
  order:5!important;
}
@media(max-width:760px){
  /* Both overview rows swipe horizontally, rather than forcing a long stack of
     recent results before the runner can reach their personal bests. */
  .fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-recent-list{
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:.68rem!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory!important;
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-recent-list::-webkit-scrollbar{display:none!important}
  .fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-recent-list > .fri-tp-recent-result{
    flex:0 0 calc(100% - 36px)!important;
    width:calc(100% - 36px)!important;
    min-width:calc(100% - 36px)!important;
    max-width:calc(100% - 36px)!important;
    min-height:218px!important;
    height:auto!important;
    padding:.95rem 1rem .9rem 1.1rem!important;
    scroll-snap-align:start!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-summary-grid .fri-tp-summary-card strong{
    font-size:clamp(.9rem,3.7vw,1.15rem)!important;
    line-height:1.2!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    white-space:normal!important;
  }
}
/* Keep competition-name deep links above the full-card drill-down button. */
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-best-interactive > .fri-tp-performance-race-title{
  position:relative!important;
  z-index:3!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-section .fri-tp-best-interactive > .fri-tp-performance-race-title a{
  display:block!important;
  position:relative!important;
  z-index:4!important;
  pointer-events:auto!important;
}


/* ==============================================================
   v1.20.24 — understated FRÍ Soft Surface refresh
   Design-only: no markup, content, source, or interaction changes.
   Keep this small, late, and scoped to the standalone Hlauparar UI.
   ============================================================= */
.fri-tp-product-shell{
  --fri-refresh-border:#e2e8f1;
  --fri-refresh-ink:#18243a;
  --fri-refresh-muted:#65758b;
  --fri-refresh-shadow:0 3px 9px rgba(18,39,75,.025),0 13px 34px rgba(18,39,75,.052);
  --fri-refresh-shadow-hover:0 8px 18px rgba(18,39,75,.045),0 18px 36px rgba(18,39,75,.075);
}
/* Identity stays dominant; soften the surrounding panel, not the FRÍ marks. */
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card{
  border-color:var(--fri-refresh-border)!important;
  border-radius:23px!important;
  background:#fff!important;
  box-shadow:var(--fri-refresh-shadow)!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card [data-fri-tp-athlete-name]{
  color:var(--fri-refresh-ink)!important;
  font-weight:760!important;
  letter-spacing:-.044em!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-avatar{
  box-shadow:0 0 0 4px #fff,0 5px 18px rgba(18,39,75,.10)!important;
}
/* Dense, readable summary: four values in one soft surface, not four big tiles. */
.fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-summary-grid{
  border:1px solid var(--fri-refresh-border)!important;
  border-radius:19px!important;
  background:#fafbfe!important;
  padding:3px 6px!important;
  overflow:hidden!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-summary-grid .fri-tp-summary-card strong{
  color:var(--fri-refresh-ink)!important;
  letter-spacing:-.035em!important;
  font-weight:750!important;
}
.fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-summary-grid .fri-tp-summary-card span{
  color:var(--fri-refresh-muted)!important;
}
/* Same physical surface for latest and best: preserves the road/track/trail accent bars. */
.fri-tp-app.fri-tp-product-shell :is(
  .fri-tp-recent-result,
  .fri-tp-best-performance-section .fri-tp-pb-grid > .fri-tp-pb.fri-tp-unified-best-card,
  .fri-tp-best-performance-section .fri-tp-trail-profile-grid > .fri-tp-trail-result-card
){
  border:1px solid var(--fri-refresh-border)!important;
  border-radius:19px!important;
  background:#fff!important;
  box-shadow:var(--fri-refresh-shadow)!important;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease!important;
}
@media(hover:hover) and (pointer:fine){
  .fri-tp-app.fri-tp-product-shell :is(
    .fri-tp-recent-result,
    .fri-tp-best-performance-section .fri-tp-pb-grid > .fri-tp-pb.fri-tp-unified-best-card,
    .fri-tp-best-performance-section .fri-tp-trail-profile-grid > .fri-tp-trail-result-card
  ):hover{
    border-color:#b9cce5!important;
    box-shadow:var(--fri-refresh-shadow-hover)!important;
    transform:translateY(-2px)!important;
  }
}
.fri-tp-app.fri-tp-product-shell :is(.fri-tp-recent-result-time,.fri-tp-best-performance-section .fri-tp-pb-time,.fri-tp-best-performance-section .fri-tp-trail-result-time){
  color:var(--fri-refresh-ink)!important;
  font-weight:780!important;
  letter-spacing:-.038em!important;
  font-variant-numeric:tabular-nums!important;
}
.fri-tp-app.fri-tp-product-shell :is(.fri-tp-recent-result-race,.fri-tp-best-performance-section .fri-tp-performance-race-title){
  color:var(--fri-refresh-ink)!important;
}
/* Navigation and entry controls: generous finger targets, minimal decoration. */
.fri-tp-app.fri-tp-product-shell .fri-tp-tabs button,
.fri-tp-app.fri-tp-product-shell .fri-tp-best-performance-tabs button{
  border-radius:999px!important;
  font-weight:700!important;
  transition:background-color .16s ease,color .16s ease,box-shadow .16s ease!important;
}
.fri-tp-product-shell :is(.fri-tp-search-form input,.fri-tp-runner-search input,.fri-tp-compare-search input,.fri-tp-event-picker select,.fri-tp-race-distance-toolbar select){
  border-radius:14px!important;
  border-color:var(--fri-refresh-border)!important;
  background:#fff!important;
  transition:border-color .18s ease,box-shadow .18s ease!important;
}
.fri-tp-product-shell :is(.fri-tp-search-form input,.fri-tp-runner-search input,.fri-tp-compare-search input,.fri-tp-event-picker select,.fri-tp-race-distance-toolbar select):focus{
  border-color:#4778de!important;
  box-shadow:0 0 0 3px rgba(0,59,203,.10)!important;
}
.fri-tp-product-shell :is(.fri-tp-search-form button,.fri-tp-secondary){
  border-radius:14px!important;
  font-weight:700!important;
}
/* Event and discovery surfaces feel like the same app as the athlete profile. */
.fri-tp-public-hub.fri-tp-product-shell :is(.fri-tp-featured-race,.fri-tp-hub-race-card,.fri-tp-hub-record-card,.fri-tp-community-card),
.fri-tp-product-shell :is(.fri-tp-search-card,.fri-tp-directory-card),
.fri-tp-race-page.fri-tp-product-shell :is(.fri-tp-race-page-head,.fri-tp-race-facts){
  border-color:var(--fri-refresh-border)!important;
  border-radius:19px!important;
  box-shadow:var(--fri-refresh-shadow)!important;
}
@media(hover:hover) and (pointer:fine){
  .fri-tp-public-hub.fri-tp-product-shell :is(.fri-tp-featured-race,.fri-tp-hub-race-card,.fri-tp-hub-record-card):hover,
  .fri-tp-product-shell :is(.fri-tp-search-card,.fri-tp-directory-card):hover{
    border-color:#b9cce5!important;
    box-shadow:var(--fri-refresh-shadow-hover)!important;
  }
}
.fri-tp-product-shell :is(.fri-tp-section-head h2,.fri-tp-section-head h3){
  color:var(--fri-refresh-ink)!important;
  font-weight:760!important;
  letter-spacing:-.037em!important;
}
/* Phone: soft depth without wasting a whole line or hiding the next card. */
@media(max-width:760px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card{border-radius:21px!important;}
  .fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel[data-fri-tp-panel="overview"] > .fri-tp-summary-grid{border-radius:17px!important;padding:1px 4px!important;}
  .fri-tp-app.fri-tp-product-shell :is(
    .fri-tp-recent-result,
    .fri-tp-best-performance-section .fri-tp-pb-grid > .fri-tp-pb.fri-tp-unified-best-card,
    .fri-tp-best-performance-section .fri-tp-trail-profile-grid > .fri-tp-trail-result-card
  ){
    border-radius:18px!important;
    box-shadow:0 3px 14px rgba(18,39,75,.045)!important;
  }
}
@media(prefers-reduced-motion:reduce){
  .fri-tp-product-shell :is(a,button,input,select,.fri-tp-recent-result,.fri-tp-pb,.fri-tp-trail-result-card){
    transition:none!important;
  }
}


/* ==============================================================
   v1.20.25 — mobile identity / avatar-notch refinement
   The old full-width ::after line visually crossed the concave avatar arc.
   Keep the curved ::before notch, but do not draw a horizontal bridge.
   The club and compact athlete metadata share a line when they fit;
   natural wrapping is retained for long club names and small devices.
   Scoped to the profile hero on phones; no markup or JS changes.
   ============================================================= */
@media (max-width:760px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card{
    border-top:0!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-head.fri-tp-profile-hero-card::after{
    content:none!important;
    display:none!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-subline{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    max-width:100%!important;
    margin:.38rem auto 0!important;
    gap:.12rem .32rem!important;
    text-align:center!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-subline .fri-tp-club-row:not([hidden]){
    display:inline-flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-subline .fri-tp-club-link{
    display:inline-flex!important;
    align-items:center!important;
    width:auto!important;
    max-width:100%!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-subline .fri-tp-meta{
    display:inline!important;
    flex:0 1 auto!important;
    width:auto!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    font-size:clamp(.69rem,2.65vw,.78rem)!important;
    line-height:1.4!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-subline .fri-tp-club-row:not([hidden]) + .fri-tp-meta::before{
    content:"·"!important;
    margin-right:.32rem!important;
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-subline .fri-tp-club-name,
  .fri-tp-app.fri-tp-product-shell .fri-tp-profile-hero-card .fri-tp-profile-subline .fri-tp-club-link{
    font-size:clamp(.69rem,2.65vw,.78rem)!important;
    line-height:1.4!important;
    white-space:nowrap!important;
  }
}


/* =====================================================================
   v1.20.28 — curved inset surface accents + optional running groups CTA

   Earlier CSS drew a narrow vertical ::before strip with a separately
   rounded cap. That cap cannot follow the parent's rounded top/bottom
   corners. A full-size inset box-shadow on a matching rounded pseudo-layer
   follows the card radius precisely, without obscuring content or hover.
   ===================================================================== */

/* Every card that has a left-side coloured category stripe uses one rule. */
.fri-tp-product-shell :is(
  .fri-tp-recent-result,
  .fri-tp-pb,
  .fri-tp-trail-result-card,
  .fri-tp-featured-athlete-card,
  .fri-tp-featured-race,
  .fri-tp-hub-race-card,
  .fri-tp-directory-card,
  .fri-tp-race-page-head,
  .fri-tp-latest-race-card,
  .fri-tp-hub-record-card,
  .fri-tp-record-compare-row
){
  --fri-card-accent:var(--fri-primary);
  position:relative;
}
.fri-tp-product-shell :is(
  .fri-tp-recent-result.is-track,
  .fri-tp-pb-track,
  .fri-tp-featured-athlete-card.is-track,
  .fri-tp-featured-race.is-track,
  .fri-tp-hub-race-card.is-track,
  .fri-tp-directory-card.is-track,
  .fri-tp-race-page-head.is-track,
  .fri-tp-hub-record-card.is-track,
  .fri-tp-record-compare-row.is-track
){--fri-card-accent:var(--fri-red,#F14024)}
.fri-tp-product-shell :is(
  .fri-tp-recent-result.is-trail,
  .fri-tp-trail-result-card,
  .fri-tp-featured-athlete-card.is-trail,
  .fri-tp-featured-race.is-trail,
  .fri-tp-hub-race-card.is-trail,
  .fri-tp-directory-card.is-trail,
  .fri-tp-race-page-head.is-trail
){--fri-card-accent:var(--fri-green,#25834A)}
.fri-tp-product-shell .fri-tp-featured-athlete-card.is-improvement{--fri-card-accent:var(--fri-orange,#ff5a36)}

.fri-tp-product-shell :is(
  .fri-tp-recent-result,
  .fri-tp-pb,
  .fri-tp-trail-result-card,
  .fri-tp-featured-athlete-card,
  .fri-tp-featured-race,
  .fri-tp-hub-race-card,
  .fri-tp-directory-card,
  .fri-tp-race-page-head,
  .fri-tp-latest-race-card,
  .fri-tp-hub-record-card,
  .fri-tp-record-compare-row
)::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  width:auto!important;
  height:auto!important;
  border:0!important;
  border-radius:inherit!important;
  background:transparent!important;
  box-shadow:inset 5px 0 0 var(--fri-card-accent)!important;
  pointer-events:none!important;
}

/* Mobile competition-history cards use the same rounded stripe, not a
   rectangular border-left nor a 4px capsule placed above the corner. */
@media(max-width:720px){
  .fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table tbody tr.fri-tp-history-row{
    position:relative!important;
    border-left:1px solid var(--fri-border)!important;
    --fri-card-accent:var(--fri-primary);
  }
  .fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table tbody tr.fri-tp-history-row.is-track{--fri-card-accent:var(--fri-red,#F14024)}
  .fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table tbody tr.fri-tp-history-row.is-trail{--fri-card-accent:var(--fri-green,#25834A)}
  .fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel[data-fri-tp-panel="history"] .fri-tp-table tbody tr.fri-tp-history-row::before{
    content:""!important;
    position:absolute!important;
    inset:0!important;
    width:auto!important;
    height:auto!important;
    border:0!important;
    border-radius:inherit!important;
    background:transparent!important;
    box-shadow:inset 5px 0 0 var(--fri-card-accent)!important;
    pointer-events:none!important;
  }
}

/* Profile records are contiguous table rows: preserve their list separators
   rather than rounding every row as if it were an independent card. */

/* The invitation is deliberately lightweight so it does not dominate
   results, alter search, or resemble an access restriction. */
.fri-tp-product-shell .fri-tp-running-groups-invite[hidden]{display:none!important}
.fri-tp-product-shell .fri-tp-running-groups-invite{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem 1.15rem;
  margin:.4rem 0 1.2rem;
  padding:.65rem .85rem;
  border:1px solid #E5EBF4;
  border-radius:14px;
  background:#F8FAFE;
  color:#56657B;
  font-size:.79rem;
  line-height:1.45;
}
.fri-tp-product-shell .fri-tp-running-groups-invite strong{color:var(--fri-text);font-weight:730}
.fri-tp-product-shell .fri-tp-running-groups-invite a{
  color:var(--fri-primary);
  font-size:.79rem;
  font-weight:740;
  text-decoration:none;
  white-space:nowrap;
}
.fri-tp-product-shell .fri-tp-running-groups-invite a:hover,
.fri-tp-product-shell .fri-tp-running-groups-invite a:focus-visible{text-decoration:underline}
.fri-tp-product-shell .fri-tp-running-groups-invite--race{margin:1.25rem 0 .5rem}
.fri-tp-app.fri-tp-product-shell .is-seed-loading .fri-tp-running-groups-invite{display:none!important}
@media(max-width:620px){
  .fri-tp-product-shell .fri-tp-running-groups-invite{align-items:flex-start;flex-direction:column;gap:.32rem;padding:.65rem .75rem}
}

/* The legacy overview selector has a higher specificity and forces a 4px
   pseudo width/background. A card-sized paint layer is essential for the
   coloured inset to curve with both corners, so override it explicitly. */
.fri-tp-app.fri-tp-product-shell .fri-tp-tab-panel[data-fri-tp-panel="overview"] .fri-tp-best-performance-section .fri-tp-pb::before{
  inset:0!important;
  width:100%!important;
  height:100%!important;
  background:transparent!important;
  border:0!important;
  border-radius:inherit!important;
  box-shadow:inset 5px 0 0 var(--fri-card-accent)!important;
  pointer-events:none!important;
}
