/* Styles des pages publiques resultats / series / fiches nageurs. */
.public-results-page {
  min-height: 100vh;
  background: #f4f8fb;
}

.public-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.public-results-header h1 {
  font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.public-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.public-page-switch {
  min-height: 34px;
  background: #eef5f8;
  white-space: nowrap;
}

.public-topbar {
  position: relative;
  flex-wrap: wrap;
  align-items: flex-end;
  min-height: 132px;
  padding: 26px clamp(142px, 14vw, 172px) 22px clamp(18px, 4vw, 42px);
  border: 0;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(10, 41, 38, 0.94), rgba(13, 104, 107, 0.85)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='220' viewBox='0 0 900 220'%3E%3Cpath d='M0 118 C105 74 199 164 300 118 S494 77 600 118 794 164 900 118 V220 H0 Z' fill='%23ffffff' fill-opacity='.18'/%3E%3Cpath d='M0 151 C125 108 208 195 326 151 S520 108 640 151 803 194 900 151 V220 H0 Z' fill='%23f0b642' fill-opacity='.26'/%3E%3C/svg%3E");
  background-position: center;
  background-size: cover;
}

.public-live-topbar {
  background:
    linear-gradient(90deg, rgba(4, 62, 75, 0.94), rgba(7, 151, 168, 0.84)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='220' viewBox='0 0 900 220'%3E%3Cpath d='M0 118 C105 74 199 164 300 118 S494 77 600 118 794 164 900 118 V220 H0 Z' fill='%23ffffff' fill-opacity='.18'/%3E%3Cpath d='M0 151 C125 108 208 195 326 151 S520 108 640 151 803 194 900 151 V220 H0 Z' fill='%232ec4ca' fill-opacity='.22'/%3E%3C/svg%3E");
  background-position: center;
  background-size: cover;
}

.public-archive-topbar {
  background:
    linear-gradient(90deg, rgba(22, 61, 99, 0.94), rgba(45, 125, 200, 0.84)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='220' viewBox='0 0 900 220'%3E%3Cpath d='M0 118 C105 74 199 164 300 118 S494 77 600 118 794 164 900 118 V220 H0 Z' fill='%23ffffff' fill-opacity='.16'/%3E%3Cpath d='M0 151 C125 108 208 195 326 151 S520 108 640 151 803 194 900 151 V220 H0 Z' fill='%23bdd7f0' fill-opacity='.25'/%3E%3C/svg%3E");
  background-position: center;
  background-size: cover;
}

.public-topbar-title {
  flex: 1 1 320px;
  min-width: 0;
}

.public-topbar-home-link {
  display: inline-flex;
  width: max-content;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.public-topbar-home-link::before {
  content: "<";
  margin-right: 6px;
}

.public-topbar-home-link:hover,
.public-topbar-home-link:focus-visible {
  color: #ffffff;
  text-decoration: none;
}

.public-topbar .eyebrow {
  margin: 0 0 8px;
  color: #dcefed;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.public-topbar h1 {
  color: #ffffff;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1;
}

.public-topbar .public-meet-meta {
  color: rgba(255, 255, 255, 0.78);
}

.public-medals-page .public-topbar .eyebrow {
  display: none;
}

.public-topbar .public-medals-title {
  display: grid;
  gap: 4px;
  line-height: 1.02;
}

.public-medals-title span {
  min-width: 0;
}

.public-medals-title-event {
  display: block;
  font-size: 1.28rem;
  font-weight: 850;
  white-space: nowrap;
}

.public-medals-page .public-meet-meta {
  margin-top: 8px;
}

.public-topbar-logo {
  position: absolute;
  top: 22px;
  right: clamp(12px, 2vw, 24px);
  width: clamp(78px, 7vw, 108px);
  height: auto;
  max-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  mix-blend-mode: multiply;
  object-fit: contain;
}

.public-topbar .public-header-actions {
  order: 2;
  align-items: center;
  flex-wrap: wrap;
  margin-left: auto;
}

.public-topbar .public-page-switch {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.public-topbar .public-page-switch:hover,
.public-topbar .public-page-switch:focus-visible {
  color: var(--ink);
  background: #ffffff;
}

.public-topbar .firebase-header-status {
  min-height: 30px;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
}

.public-home-partner {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.public-home-partner img {
  display: block;
  width: min(210px, 26vw);
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

.public-meet-meta {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.public-update-meta {
  margin-top: 3px;
  color: #70808a;
  font-size: 0.72rem;
  font-weight: 800;
}

.public-home-page {
  background:
    radial-gradient(circle at 14% 0%, rgba(46, 196, 202, 0.16), transparent 34%),
    linear-gradient(180deg, #eaf8fa 0%, #f7fbfb 42%, #f3f7fb 100%);
}

.public-home-shell {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto 28px;
  display: grid;
  gap: 16px;
}

.public-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 190px);
  align-items: center;
  gap: 24px;
  min-height: 176px;
  padding: 22px 8px 10px;
}

.public-home-hero-copy {
  display: grid;
  gap: 12px;
  align-content: center;
}

.public-home-hero-copy h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 700px;
  color: #052f3a;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.public-home-title-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(38px, 7vw, 62px);
  transform: translateY(0.12em);
}

.public-home-title-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.public-home-hero-copy p:not(.eyebrow) {
  max-width: 640px;
  color: #3a5965;
  font-size: clamp(1rem, 2vw, 1.22rem);
  font-weight: 850;
}

.public-home-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
}

.public-home-logo-card img {
  width: min(156px, 30vw);
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
  mix-blend-mode: multiply;
}

.public-footer {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto 26px;
  color: #657883;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.public-footer span {
  color: #7b8b94;
  font-weight: 750;
}

.public-footer a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.public-footer .public-admin-link {
  display: inline-block;
  margin-top: 8px;
  color: #6b7f7b;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.public-footer .public-admin-link:hover {
  color: #0b7285;
  text-decoration: underline;
}

body:not(.public-home-page) .public-footer {
  margin-bottom: 84px;
}

.public-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) repeat(2, minmax(0, 0.91fr));
  gap: 12px;
}

.public-home-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 186px;
  padding: 18px;
  border: 1px solid #d6e7ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(14, 56, 70, 0.07);
}

.public-home-status-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.public-home-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.public-home-status.available {
  background: #e8f7f6;
  color: #08746f;
}

.public-home-status.live {
  background: #d7f7fb;
  color: #045f6c;
}

.public-home-status.development {
  background: #f1f5f9;
  color: #475569;
}

.public-home-card.live-card {
  border-color: #8ed5df;
  border-left: 5px solid #0797a8;
  background: linear-gradient(180deg, #ffffff 0%, #effbfc 100%);
}

.public-home-card.performance-card {
  border-color: #9fd4d5;
  border-left: 5px solid #0f8b8d;
  background: linear-gradient(180deg, #ffffff 0%, #f1fbfb 100%);
}

.public-home-card.archive-card {
  border-color: #bdd7f0;
  border-left: 5px solid #2d7dc8;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
}

.public-home-card h3 {
  color: #102331;
  font-size: 1.16rem;
}

.public-home-card p {
  margin: 0;
  color: #526876;
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.35;
}

.public-home-current-meet {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid #b9e3ea;
  border-radius: 8px;
  background: #f0fbfd;
  color: #055d6a !important;
  font-size: 0.88rem;
}

.public-home-current-meet span {
  color: #4f7681;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.public-home-current-meet strong {
  color: #045765;
  font-size: 0.98rem;
  line-height: 1.25;
}

.public-home-current-meet em {
  color: #526876;
  font-style: normal;
  font-weight: 850;
}

.public-home-card-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #dff7fb;
  color: #047080;
}

.public-home-card-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.public-home-card-icon.performance-icon {
  background: #e4f7f7;
  color: #0b6668;
}

.public-home-card-icon.archive-icon {
  background: #e8f2ff;
  color: #246fba;
}

.public-home-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.public-home-card-actions .ghost-button {
  min-height: 34px;
  padding: 0 11px;
  border-color: transparent;
  border-radius: 7px;
  background: rgba(7, 151, 168, 0.1);
  color: #045f6c;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 rgba(4, 95, 108, 0.08);
}

.performance-card .public-home-card-actions .ghost-button {
  background: rgba(15, 139, 141, 0.12);
  color: #0b6668;
  box-shadow: inset 0 -1px 0 rgba(11, 102, 104, 0.08);
}

.archive-card .public-home-card-actions .ghost-button {
  background: rgba(45, 125, 200, 0.11);
  color: #225f9d;
  box-shadow: inset 0 -1px 0 rgba(34, 95, 157, 0.08);
}

.public-home-card-actions .ghost-button:hover,
.public-home-card-actions .ghost-button:focus-visible {
  transform: translateY(-1px);
  text-decoration: none;
  filter: saturate(1.1);
}

.public-archive-empty {
  display: grid;
  gap: 10px;
  max-width: 680px;
  margin: 0 auto;
}

.public-archive-empty h2 {
  color: var(--accent-dark);
  font-size: 1.4rem;
}

.public-archive-empty p {
  margin: 0;
  color: #526876;
  font-weight: 800;
}

.public-archive-list {
  display: grid;
  gap: 10px;
}

.public-archive-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.public-archive-card h2 {
  margin: 3px 0;
  color: var(--accent-dark);
  font-size: 1.25rem;
}

.public-archive-card p,
.public-archive-card span {
  display: block;
  margin: 0;
  color: #60717c;
  font-weight: 850;
}

.public-results-shell {
  width: min(1060px, calc(100% - 24px));
  margin: 18px auto 40px;
  display: grid;
  gap: 10px;
}

.public-results-list {
  display: grid;
  gap: 10px;
}

.public-lock-panel {
  display: grid;
  gap: 12px;
  max-width: 420px;
}

.public-lock-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.public-lock-form input {
  flex: 1 1 150px;
  min-height: 38px;
  border: 1px solid #cfdce1;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-align: center;
}

.public-lock-error {
  margin: 0;
  color: #b42318;
  font-size: 0.78rem;
  font-weight: 900;
}

.public-session-controls {
  margin: 4px 0 12px;
}

.public-results-toolbar {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.public-results-toolbar .public-series-toolbar-text {
  display: none;
}

.public-archive-results-page .public-results-toolbar {
  grid-template-columns: minmax(320px, 620px) auto;
}

.public-archive-results-page .public-session-select {
  width: min(620px, 100%);
  flex: 1 1 420px;
}

.public-archive-results-page .public-session-select select {
  width: 100%;
}

.public-results-actions {
  align-self: start;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}

.public-results-actions .ghost-button {
  min-height: 48px;
}

.public-results-actions [hidden],
.public-results-toolbar .public-results-actions #refreshPublicResultsBtn[hidden],
.public-floating-refresh[hidden] {
  display: none !important;
}

.public-medals-link {
  line-height: 1.05;
  text-align: center;
  text-decoration: none;
}

#tdhRankingBtn {
  line-height: 1.05;
  text-align: center;
}

.public-medals-link:hover,
.public-medals-link:focus-visible {
  text-decoration: none;
}

.public-results-actions .active-public-page {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.tdh-public-modal[hidden] {
  display: none;
}

.tdh-public-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 20, 31, 0.58);
}

.public-tdh-open {
  overflow: hidden;
}

.tdh-public-dialog {
  display: grid;
  gap: 12px;
  width: min(860px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 16px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.28);
}

.tdh-public-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.tdh-public-head span {
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tdh-public-head h2 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 1.35rem;
}

.tdh-public-head p,
.tdh-public-note {
  margin: 0;
  color: #4d606a;
  font-size: 0.86rem;
  font-weight: 820;
}

.tdh-public-note {
  padding: 9px 11px;
  border: 1px solid #cfe0e7;
  border-radius: 8px;
  background: #f7fbfc;
}

.tdh-public-jump {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 8px;
}

.tdh-public-jump .ghost-button {
  min-height: 32px;
}

.tdh-public-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.tdh-public-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.tdh-public-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.tdh-public-group-head h3,
.trophy-ranking-group h4 {
  margin: 0;
  color: var(--accent-dark);
}

.tdh-public-group-head h3 {
  font-size: 1rem;
}

.tdh-public-group-head span {
  display: block;
  margin-top: 2px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: left;
}

.trophy-ranking-group {
  min-width: 0;
}

.trophy-ranking-group h4 {
  margin-bottom: 6px;
  font-size: 0.82rem;
}

.trophy-ranking-table {
  table-layout: auto;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.trophy-ranking-table thead {
  display: none;
}

.trophy-ranking-table th,
.trophy-ranking-table td {
  padding: 9px 8px;
  border-bottom: 1px solid #e3edf1;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  text-align: left;
}

.trophy-ranking-table th {
  color: #52646e;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.trophy-ranking-table th:nth-child(1),
.trophy-ranking-table td:nth-child(1) {
  width: 38px;
  color: var(--accent-dark);
  font-weight: 950;
  vertical-align: top;
}

.trophy-points-cell,
.trophy-ranking-table th:nth-child(4),
.trophy-ranking-table td:nth-child(4) {
  width: 78px;
  text-align: right;
  white-space: nowrap;
  vertical-align: top;
}

.trophy-club-cell,
.trophy-events-cell,
.trophy-ranking-table th:nth-child(3),
.trophy-ranking-table th:nth-child(5) {
  display: none;
}

.trophy-ranking-table small {
  color: var(--muted);
  font-size: 0.74rem;
}

.trophy-ranking-table tr.trophy-podium-gold {
  background: #fff7d6;
}

.trophy-ranking-table tr.trophy-podium-silver {
  background: #f2f5f7;
}

.trophy-ranking-table tr.trophy-podium-bronze {
  background: #fff0df;
}

.trophy-ranking-table tr.trophy-podium-gold td {
  border-bottom-color: #f2df99;
}

.trophy-ranking-table tr.trophy-podium-silver td {
  border-bottom-color: #d8e0e6;
}

.trophy-ranking-table tr.trophy-podium-bronze td {
  border-bottom-color: #edc8a4;
}

.trophy-name-cell {
  min-width: 0;
}

.trophy-row-name {
  display: inline;
  color: var(--ink);
  font-weight: 950;
  line-height: 1.18;
}

.trophy-mobile-club,
.trophy-row-birth {
  display: inline;
  margin-left: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
}

.trophy-mobile-events {
  display: block;
  margin-top: 4px;
  color: #52646e;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.18;
}

.trophy-row-name {
  min-width: 0;
}

.public-refresh-button {
  width: 54px;
  min-width: 54px;
  padding-inline: 0;
  font-size: 1.08rem;
  font-weight: 950;
}

.public-medals-shell {
  width: min(1120px, calc(100% - 24px));
}

.public-medals-overview {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.public-medals-overview h2 {
  margin: 0 0 4px;
  color: var(--accent-dark);
  font-size: 1.18rem;
}

.public-medals-page .public-topbar .public-header-actions {
  flex-wrap: nowrap;
}

.public-medals-page .public-topbar .public-page-switch {
  min-width: 0;
  text-align: center;
}

.public-medals-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.public-medals-stat {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #d8e7ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.public-medals-stat span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #52646e;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.public-medals-stat strong {
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1;
}

.public-medals-ranking-panel {
  overflow: visible;
}

.public-medals-ranking {
  min-width: 0;
}

.public-medals-help {
  margin: 0 0 8px;
  color: #70808a;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.25;
}

.public-medals-help span {
  display: block;
}

.public-medals-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.public-medals-table th,
.public-medals-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e3edf1;
  text-align: left;
  vertical-align: middle;
}

.public-medals-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f8fbfc;
  box-shadow: 0 1px 0 #e3edf1, 0 6px 12px rgba(15, 23, 42, 0.06);
  color: #52646e;
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.public-medals-table th span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.public-medals-table th .public-medal-label-short {
  display: none;
}

.public-medals-table tbody tr:nth-child(odd) {
  background: #f8fbfc;
}

.public-medals-table tbody tr:first-child {
  background: #fff9e8;
}

.public-medals-table tbody tr[data-club-row-key] {
  cursor: pointer;
}

.public-medals-rank {
  width: 54px;
  color: var(--accent-dark);
  font-weight: 950;
}

.public-medals-table tbody tr.is-tied .public-medals-rank::after {
  content: "=";
  display: inline-block;
  margin-left: 4px;
  color: #70808a;
  font-size: 0.74em;
  font-weight: 850;
  transform: translateY(-1px);
}

.public-medals-club-cell {
  min-width: 220px;
}

.public-medals-club-actions {
  display: grid;
  gap: 1px;
  justify-items: start;
  width: 100%;
  min-width: 0;
}

.public-medals-club-code {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font: inherit;
  font-size: 1.02rem;
  font-weight: 950;
  line-height: 1.05;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.public-medals-club-code:hover,
.public-medals-club-code:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.public-medals-club-name-inline {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #52646e;
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-medals-count,
.public-medals-total {
  width: 84px;
  text-align: center;
  font-weight: 950;
  white-space: nowrap;
}

.public-medals-total {
  color: var(--accent-dark);
  font-size: 1.04rem;
}

.public-medals-count.gold {
  color: #93660b;
}

.public-medals-count.silver {
  color: #667085;
}

.public-medals-count.bronze {
  color: #9a5b22;
}

.club-medal-icon {
  position: relative;
  display: inline-grid;
  width: 18px;
  height: 22px;
  flex: 0 0 auto;
  place-items: end center;
  vertical-align: -6px;
}

.club-medal-ribbon {
  position: absolute;
  top: 0;
  left: 4px;
  width: 10px;
  height: 11px;
  border-radius: 2px 2px 1px 1px;
  background:
    linear-gradient(90deg, #0b7285 0 34%, #ffffff 34% 66%, #0b7285 66% 100%);
  clip-path: polygon(0 0, 100% 0, 86% 100%, 50% 72%, 14% 100%);
}

.club-medal-disc {
  position: relative;
  z-index: 1;
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.75), inset 0 -2px 3px rgba(55, 65, 81, 0.18), 0 1px 3px rgba(15, 23, 42, 0.22);
}

.club-medal-disc::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: inherit;
}

.club-medal-icon.gold .club-medal-disc {
  background: linear-gradient(135deg, #ffe39b, #d99a18 60%, #fff0b8);
}

.club-medal-icon.silver .club-medal-disc {
  background: linear-gradient(135deg, #f4f6f8, #aab2bd 60%, #ffffff);
}

.club-medal-icon.bronze .club-medal-disc {
  background: linear-gradient(135deg, #f0b27a, #a75f2b 60%, #ffd0a4);
}

.public-club-medal-metal,
.public-club-medal-race,
.public-club-medal-name,
.public-club-medal-time {
  min-width: 0;
  line-height: 1.25;
}

.public-club-medal-metal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 950;
}

.public-club-medal-race {
  color: var(--ink);
  font-weight: 900;
}

.public-club-medal-name {
  color: #52646e;
  font-size: 0.82rem;
  font-weight: 850;
}

.public-club-medal-time {
  color: var(--accent-dark);
  font-weight: 950;
  white-space: nowrap;
}

.public-club-medals-modal[hidden] {
  display: none;
}

.public-club-medals-modal {
  position: fixed;
  inset: 0;
  z-index: 155;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 20, 31, 0.58);
}

.public-club-medals-open {
  overflow: hidden;
}

.public-club-medals-dialog {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(460px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 16px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.28);
}

.public-club-medals-close {
  position: sticky;
  top: 0;
  z-index: 2;
  justify-self: end;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: -4px 0 -42px;
  border: 1px solid #dce8ed;
  border-radius: 999px;
  background: rgba(239, 246, 248, 0.96);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1;
}

.public-club-medals-close:hover,
.public-club-medals-close:focus-visible {
  border-color: rgba(11, 114, 133, 0.38);
  background: #ffffff;
  color: var(--accent-dark);
  outline: none;
}

.public-club-medals-head {
  min-width: 0;
  padding-right: 42px;
}

.public-club-medals-head span {
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.public-club-medals-head h2 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.2;
}

.public-club-medals-groups {
  display: grid;
  gap: 14px;
}

.public-club-medals-group {
  display: grid;
  gap: 8px;
}

.public-club-medals-group h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.95rem;
}

.public-club-medals-lines {
  display: grid;
  gap: 5px;
}

.public-club-medalist-group {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid #e3edf1;
  border-radius: 8px;
  background: #f8fbfc;
}

.public-club-medal-line {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 38px 54px 60px;
  gap: 6px;
  align-items: center;
  min-height: 30px;
  padding: 4px 7px;
  color: #52646e;
  font-size: 0.82rem;
  font-weight: 850;
}

.public-club-medal-line.is-relay {
  grid-template-columns: minmax(130px, 1fr) 58px 48px 68px;
}

.public-club-medal-line + .public-club-medal-line {
  min-height: 24px;
  padding-top: 1px;
}

.public-club-medal-line strong {
  min-width: 0;
  color: var(--ink);
  line-height: 1.18;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-club-medal-line strong.repeat-name {
  visibility: hidden;
}

.public-club-medal-line .public-club-medal-race {
  color: var(--ink);
  font-weight: 950;
  white-space: nowrap;
}

.public-club-medal-sex {
  color: #52646e;
  font-weight: 900;
  white-space: nowrap;
}

.public-club-medal-category {
  display: inline;
  padding: 0;
  font-size: inherit;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.public-club-medal-time {
  text-align: right;
}

.public-club-medal-line.sex-female .public-club-medal-category {
  color: #a61e4d;
}

.public-club-medal-line.sex-male .public-club-medal-category {
  color: #075985;
}

.public-club-medal-line.sex-mixed .public-club-medal-category {
  color: #52646e;
}

.public-floating-refresh {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 80;
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(11, 114, 133, 0.24);
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 950;
  line-height: 1;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.public-floating-refresh:active {
  transform: translateY(1px);
}

#publicSessionInfoHost:empty,
#publicSeriesInfoHost:empty {
  display: none;
}

.public-session-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 4px;
}

.public-session-title h2 {
  color: var(--accent-dark);
  font-size: 1.05rem;
}

.public-session-title > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.public-session-update {
  margin: 0;
  color: #3f5661;
  font-size: 0.8rem;
  font-weight: 900;
}

.public-session-title span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.public-empty-results-note {
  padding: 10px 12px;
  border: 1px dashed #c8d6dd;
  border-radius: 8px;
  background: #fbfdfe;
  color: #4c5f69;
  font-size: 0.84rem;
  font-weight: 850;
}

.public-session-info {
  display: grid;
  gap: 2px;
  margin: -2px 2px 8px;
  padding: 0;
}

.public-session-info strong {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.public-session-info p {
  margin: 0;
  color: #445661;
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.25;
}

.public-session-info .public-session-warning {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #b42318;
  font-weight: 950;
}

.public-session-info .public-session-notice {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #8a5a00;
  font-weight: 900;
}

.public-session-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #b42318;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
}

.public-session-notice .public-session-info-icon {
  background: #f59f00;
  color: #1f2933;
}

.public-session-video-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #b8d8e4;
  border-radius: 999px;
  background: #e7f5ff;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 950;
  text-decoration: none;
}

.public-session-video-link:hover {
  border-color: var(--accent);
  background: #d0ebff;
}

.public-documents-section {
  display: grid;
  gap: 8px;
}

.public-documents-section:empty {
  display: none;
}

.public-results-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding: 10px 2px 2px;
  border-top: 1px solid #d8e3e8;
}

.public-results-section-title h3 {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.96rem;
}

.public-results-section-title span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.public-documents-title {
  margin-top: 10px;
}

.public-pending-results-block {
  border: 1px dashed #c8d6dd;
  border-radius: 8px;
  background: #f8fafb;
}

.public-pending-results-block summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  color: #4c5f69;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 950;
}

.public-pending-results-block summary::marker {
  color: #6d7d86;
}

.public-pending-results-block summary strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #e7eef2;
  color: #52646e;
  font-size: 0.72rem;
}

.public-pending-results-list {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.public-pending-results-list .public-result-card {
  background: #ffffff;
  opacity: 0.92;
}

.public-series-records {
  margin: 0;
  max-width: none;
}

.public-series-record-detail {
  max-width: none;
  margin-top: 6px;
}

.public-series-shell {
  display: grid;
  gap: 10px;
  width: min(760px, calc(100% - 24px));
  margin: 18px auto 40px;
}

.public-series-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.public-series-toolbar-text {
  min-width: 0;
}

.public-session-select {
  display: grid;
  gap: 5px;
  flex: 0 0 140px;
}

.public-session-select span {
  color: #42566b;
  font-size: 0.72rem;
  font-weight: 950;
}

.public-session-select select {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #cfdce1;
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
}

.public-session-pdf-link {
  color: var(--accent-dark);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1.15;
  text-decoration: none;
}

.public-session-pdf-link:hover {
  text-decoration: underline;
}

.public-session-pdf-link[hidden] {
  display: none;
}

.public-session-select-meta {
  margin: -1px 0 0;
  color: #52646e;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.2;
}

.public-series-toolbar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.public-series-app {
  display: grid;
  gap: 10px;
}

.public-series-console-controls {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.7fr);
  align-items: end;
  gap: 10px;
  padding: 10px;
}

.public-series-race-card {
  display: grid;
  gap: 10px;
}

.public-series-race-select {
  display: grid;
  gap: 6px;
}

.public-series-race-select span {
  color: #42566b;
  font-size: 0.7rem;
  font-weight: 950;
}

.public-series-race-select select {
  width: 100%;
  min-height: 32px;
  border: 1px solid #cfdce1;
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 750;
  padding: 0 10px;
}

.public-series-chip-field {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding-bottom: 1px;
}

.public-series-chip-field > span {
  flex: 0 0 auto;
  color: #42566b;
  font-size: 0.72rem;
  font-weight: 950;
}

.public-series-chip-row {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 0;
}

.public-series-chip-row .series-chip {
  flex: 0 0 auto;
}

.public-series-chip-row .series-chip em {
  background: #eef3f6;
  color: #5b6f7b;
}

.public-series-chip-row .series-chip.active em {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.public-series-chip-row .public-current-chip {
  border-color: #0b7285;
  box-shadow: 0 0 0 2px rgba(11, 114, 133, 0.12);
}

.public-series-chip-row .public-current-chip strong {
  padding: 0 5px;
  border-radius: 999px;
  background: #e7f6f8;
  color: #0b7285;
  font-size: 0.58rem;
  font-weight: 950;
  text-transform: uppercase;
}

.public-progress-card {
  appearance: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-color: #8ecbd6;
  border-left: 4px solid var(--accent);
  background: #f1fbfc;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.public-progress-card span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #dff3f6;
  color: #0b7285;
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.public-progress-card strong {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 950;
  min-width: 0;
}

.public-progress-card::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--accent-dark);
  border-right: 2px solid var(--accent-dark);
  transform: rotate(45deg);
}

.public-progress-card:hover,
.public-progress-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(11, 114, 133, 0.12);
  outline: none;
}

.public-program-inline-button {
  flex: 0 0 auto;
  min-height: 32px;
  font-weight: 950;
}

.public-series-race-top,
.public-series-heat-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.public-series-race-top span,
.public-series-heat-nav strong {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-align: center;
  white-space: nowrap;
}

.public-series-kicker {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 950;
}

.public-series-race-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
}

.public-series-race-card h2 span {
  color: var(--muted);
  font-size: 0.86rem;
}

.public-series-board {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-color: #9bd6e5;
}

.public-series-board-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.public-series-board-head h2 {
  margin: 0;
  color: var(--accent-dark);
  font-size: 1.14rem;
}

.public-series-board-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.public-series-board-head .public-series-records {
  margin-top: 7px;
}

.public-series-nav-actions {
  display: grid;
  gap: 8px;
  min-width: 160px;
}

.public-series-table-wrap {
  overflow-x: auto;
  border: 1px solid #d0e1e8;
  border-radius: 8px;
}

.public-series-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.public-series-table th {
  padding: 8px;
  background: #f5f9fb;
  color: #5e6d76;
  font-size: 0.7rem;
  font-weight: 950;
  text-align: left;
  text-transform: uppercase;
}

.public-series-table th:nth-child(1),
.public-series-table td:nth-child(1) {
  width: 58px;
  text-align: center;
}

.public-series-table th:nth-child(3),
.public-series-table td:nth-child(3) {
  width: 88px;
}

.public-series-table th:nth-child(4),
.public-series-table td:nth-child(4) {
  width: 86px;
}

.public-series-table td {
  padding: 8px;
  border-top: 1px solid #d8e3e8;
  color: var(--ink);
  font-size: 0.86rem;
  vertical-align: middle;
}

.public-series-table-row {
  cursor: pointer;
}

.public-series-table-row.is-forfait {
  background: #f1f3f5;
  color: #7b8790;
}

.public-series-table-row.is-forfait .public-series-name-button,
.public-series-table-row.is-forfait .public-series-time {
  opacity: 0.72;
}

.public-series-name-button {
  appearance: none;
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.public-series-name-button strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 950;
}

.public-series-name-button span {
  color: #536879;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.public-series-category {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--cat-bg);
  color: var(--cat-color);
  font-size: 0.72rem;
  font-weight: 950;
}

.public-series-forfait {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #212529;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 950;
}

.public-series-empty-line {
  padding: 14px;
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.public-swimmer-search-panel {
  display: grid;
  gap: 10px;
}

.public-swimmer-search {
  display: grid;
  gap: 6px;
}

.public-swimmer-search span {
  color: #42566b;
  font-size: 0.72rem;
  font-weight: 950;
}

.public-swimmer-search input {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #cfdce1;
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 850;
}

.public-swimmer-search input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-color: var(--accent);
}

.public-swimmer-search-output {
  display: grid;
  gap: 10px;
}

.public-search-empty {
  margin: 0;
}

.public-search-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.public-search-result {
  appearance: none;
  display: grid;
  gap: 2px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid #d0e1e8;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.public-search-result.active {
  border-color: var(--accent);
  background: #eef9fb;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 14%, transparent);
}

.public-search-result strong {
  font-size: 0.88rem;
  font-weight: 950;
}

.public-search-result span,
.public-search-program-head span {
  color: #536879;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.public-search-program {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.public-search-program-head {
  display: grid;
  gap: 2px;
}

.public-search-program-head strong {
  color: var(--accent-dark);
  font-size: 1rem;
  font-weight: 950;
}

.public-search-program-head em,
.public-swimmer-head em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
}

.public-swimmer-category {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--cat-bg);
  color: var(--cat-color);
  font-size: 0.72rem;
  font-weight: 950;
}

.public-swimmer-birth {
  color: #71818c;
  font-size: 0.74rem;
  font-weight: 850;
}

.public-series-lines-card {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.public-series-lines-head,
.public-series-lane {
  display: grid;
  grid-template-columns: 42px minmax(0, 1.5fr) minmax(70px, 0.8fr) minmax(64px, 0.7fr);
  align-items: center;
  gap: 7px;
}

.public-series-lines-head {
  padding: 0 8px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.public-series-lines {
  display: grid;
  gap: 6px;
}

.public-series-lane {
  appearance: none;
  width: 100%;
  min-height: 48px;
  padding: 7px 8px;
  border: 1px solid #d8e3e8;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.public-series-lane.is-forfait {
  background: #fff5f5;
  color: #9f1d16;
}

.public-series-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #e7f5ff;
  color: #155fa0;
  font-weight: 950;
}

.public-series-name {
  min-width: 0;
  font-weight: 950;
}

.public-series-club,
.public-series-time {
  min-width: 0;
  color: #4d5f68;
  font-size: 0.78rem;
  font-weight: 850;
}

.public-series-time {
  text-align: right;
}

.public-swimmer-sheet[hidden] {
  display: none;
}

.public-swimmer-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  align-items: end;
}

.public-swimmer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.public-swimmer-panel {
  position: relative;
  display: grid;
  gap: 10px;
  width: min(620px, 100%);
  max-height: 82vh;
  margin: 0 auto;
  padding: 14px;
  overflow: auto;
  border-radius: 14px 14px 0 0;
  background: #ffffff;
  box-shadow: 0 -16px 45px rgba(15, 23, 42, 0.22);
}

.public-sheet-open {
  overflow: hidden;
}

.public-swimmer-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #d8e3e8;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 950;
  cursor: pointer;
}

.public-swimmer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.public-swimmer-head span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.public-swimmer-head h2 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 1.1rem;
}

.public-swimmer-program {
  display: grid;
  gap: 8px;
}

.public-swimmer-program-row {
  display: grid;
  gap: 3px;
  padding: 9px;
  border: 1px solid #d8e3e8;
  border-radius: 8px;
  background: #fbfdfe;
}

.public-swimmer-program-row.is-forfait {
  border-color: #ffc9c9;
  background: #fff5f5;
}

.public-swimmer-program-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.public-swimmer-program-row strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.public-swimmer-program-row span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.public-swimmer-program-row .public-entry-line {
  color: #71818c;
  font-size: 0.72rem;
  font-weight: 780;
}

.public-swimmer-program-row .public-performance-line {
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 950;
}

.public-swimmer-program-row .public-performance-line strong {
  color: var(--ink);
  font-size: 1rem;
}

.public-performance-delta {
  margin-left: 5px;
  color: #6b7b86;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.public-performance-delta.faster {
  color: #2b8a3e;
}

.public-swimmer-pdf-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  justify-content: flex-end;
}

.public-swimmer-pdf-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid #c8d8df;
  border-radius: 6px;
  background: #eef5f8;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.public-swimmer-pdf-link:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.public-program-panel {
  max-height: 86vh;
}

.public-program-list {
  display: grid;
  gap: 7px;
}

.public-program-row {
  appearance: none;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 8px;
  border: 1px solid #d8e3e8;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.public-program-row.active {
  border-color: var(--accent);
  background: #eefafd;
}

.public-program-row span {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 950;
}

.public-program-row strong {
  min-width: 0;
  font-size: 0.86rem;
}

.public-program-row em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.public-series-pdf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #cce6ee;
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #f4fbfd;
}

.public-series-program-pdf {
  border-color: #d5dee4;
  border-left-color: #6f7f89;
  background: #f8fafb;
}

.public-series-pdf div {
  display: grid;
  gap: 2px;
}

.public-document-kind {
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef2f5;
  color: #5d6b75;
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.public-series-pdf strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.public-series-pdf span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.public-session-results-pdf {
  border-color: #b7dfc0;
  border-left-color: #17642b;
  background: #f4fbf5;
}

.public-session-results-pdf .public-document-kind {
  background: #e8f7ec;
  color: #17642b;
}

.public-series-public-pdf {
  padding: 7px 9px;
  border-left-width: 0;
  background: #fbfdfe;
}

.public-series-public-pdf strong {
  font-size: 0.84rem;
}

.public-series-public-pdf span {
  font-size: 0.68rem;
}

.public-series-public-pdf .ghost-button {
  min-height: 30px;
  padding-inline: 10px;
}

.public-pdf-link-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.public-result-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 8px;
  background: #ffffff;
}

.public-result-card.sex-female {
  border-left-color: #d71920;
}

.public-result-card.sex-male {
  border-left-color: #1971c2;
}

.public-result-card.sex-mixed {
  border-left-color: #6741d9;
}

.public-result-card.not-published {
  background: #fbfdfe;
}

.public-result-card.published {
  border-color: #b7dfc0;
}

.public-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.public-result-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.public-sex-label {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 5px;
  padding: 0 7px;
  border-radius: 999px;
  background: #edf2f4;
  color: #52616b;
  font-size: 0.72rem;
  font-weight: 950;
  vertical-align: 1px;
}

.public-phase-label {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f3f6f8;
  color: #5f6f7b;
  font-size: 0.68rem;
  font-weight: 900;
  vertical-align: 1px;
}

.sex-female .public-sex-label {
  background: #fff0f2;
  color: #a31927;
}

.sex-male .public-sex-label {
  background: #e7f2ff;
  color: #155fa0;
}

.sex-mixed .public-sex-label {
  background: #f0ecff;
  color: #5530b0;
}

.public-result-head p,
.public-finalists-summary span {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.public-result-head .public-update-meta {
  margin-top: 2px;
  color: #7d8c95;
  font-size: 0.72rem;
  font-weight: 750;
}

.public-finalists-summary .withdrawal-limit {
  color: #075866;
  font-size: 0.86rem;
  font-weight: 950;
}

.public-result-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #edf2f4;
  color: #52616b;
  font-size: 0.72rem;
  font-weight: 950;
  white-space: nowrap;
}

.public-result-status.done {
  background: #eefaf1;
  color: #2b7a3b;
}

.public-result-status.pending {
  background: #fff0f2;
  color: #a31927;
}

.public-result-status.waiting {
  background: #fff8db;
  color: #7a5a12;
}

.public-result-status.missing {
  background: #eef2f5;
  color: #6b7c86;
}

.public-result-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.public-result-pdf {
  min-height: 24px;
  padding: 0 8px;
  font-size: 0.72rem;
}

.public-result-actions {
  display: flex;
  justify-content: flex-end;
}

.public-finalists-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f0fbfd;
  color: #075866;
}

.public-finalists-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.public-finalists-group {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.public-finalists-block {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.public-unqualified-block {
  padding: 9px;
  border: 1px dashed #d0d8de;
  border-radius: 8px;
  background: #f7f9fa;
  opacity: 0.88;
}

.public-finalists-group summary,
.public-finalists-title,
.public-unqualified-block summary,
.public-unqualified-more summary {
  margin: 0 0 6px;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 950;
}

.public-finalists-title {
  display: block;
}

.public-finalists-group summary,
.public-unqualified-block summary,
.public-unqualified-more summary {
  cursor: pointer;
}

.public-unqualified-block summary,
.public-unqualified-more summary {
  color: #6b7c86;
}

.public-finalists-group:not([open]) {
  padding-bottom: 7px;
}

.public-finalists-group:not([open]) summary {
  margin-bottom: 0;
}

.public-unqualified-block:not([open]) {
  padding-bottom: 7px;
}

.public-unqualified-block:not([open]) summary {
  margin-bottom: 0;
}

.public-finalists-block ol,
.public-unqualified-block ul,
.public-unqualified-block ol,
.public-unqualified-more ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 22px;
}

.public-unqualified-block ul {
  list-style: none;
  padding-left: 0;
}

.public-ranking-category-section {
  display: grid;
  gap: 5px;
}

.public-ranking-category-section + .public-ranking-category-section {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed #c7d8df;
}

.public-ranking-category {
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 950;
}

.public-result-status-row {
  list-style: none;
}

.public-final-ranking-section {
  display: grid;
  gap: 5px;
}

.public-final-ranking-section + .public-final-ranking-section {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed #c7d8df;
}

.public-final-ranking-section > strong {
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 950;
}

.public-finalists-block li,
.public-unqualified-block li,
.public-unqualified-more li {
  color: var(--ink);
  font-size: 0.82rem;
}

.public-ranking-block li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px;
  align-items: start;
}

.public-result-ranking-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 6px;
  align-items: start;
  min-width: 0;
}

.public-result-rank {
  min-width: 1.35em;
  color: var(--accent-dark);
  font-weight: 950;
  text-align: right;
}

.public-result-ranking-entry {
  min-width: 0;
}

.public-result-swimmer-button {
  display: inline;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 950;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.public-result-swimmer-button:hover {
  color: var(--accent-dark);
}

.public-relay-legs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin-top: 2px;
  color: #7b8b94;
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1.35;
}

.public-relay-legs span {
  margin-left: 0;
  color: inherit;
  font-weight: inherit;
}

.public-finalists-block li span,
.public-unqualified-block li span,
.public-unqualified-more li span {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 850;
}

.public-unqualified-block .public-relay-legs span {
  margin-left: 0;
  color: inherit;
  font-weight: inherit;
}

.public-finalists-block li span small {
  margin-left: 5px;
  color: #7b8b94;
  font-size: 0.68rem;
  font-weight: 760;
}

.public-finalist-withdrawn {
  opacity: 0.62;
}

.public-finalist-withdrawn strong {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #9f1d16;
}

.public-finalist-withdrawn span {
  text-decoration: none;
}

.public-finalist-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 950;
}

.public-finalist-badge.withdrawn {
  background: #ffe3e3;
  color: #9f1d16;
}

.public-finalist-badge.repechaged {
  background: #d8f5f0;
  color: #087f5b;
}

.public-unqualified-block li,
.public-unqualified-block li span,
.public-unqualified-more li,
.public-unqualified-more li span {
  color: #7b8790;
}

.public-unqualified-more {
  margin-top: 6px;
}

.public-unqualified-more summary {
  margin: 0;
  font-size: 0.78rem;
}

.public-unqualified-more[open] summary {
  margin-bottom: 6px;
}

.public-unqualified-more ol {
  margin-top: 4px;
}

.public-unqualified-block p {
  margin: 4px 0 0 22px;
  color: #7b8790;
  font-weight: 900;
}


@media (max-width: 920px) {
  .tdh-public-modal {
    align-items: stretch;
    padding: 10px;
  }

  .tdh-public-dialog {
    max-height: calc(100vh - 20px);
    padding: 12px;
  }

  .tdh-public-head h2 {
    font-size: 1.12rem;
  }

  .tdh-public-group-head {
    align-items: start;
    flex-direction: row;
    gap: 3px;
  }

  .tdh-public-group-head span {
    text-align: left;
  }

  .tdh-public-jump {
    gap: 5px;
  }

  .tdh-public-jump .ghost-button {
    min-height: 30px;
    padding: 0 8px;
    font-size: 0.74rem;
  }

  .trophy-ranking-table {
    table-layout: auto;
    font-size: 0.78rem;
  }

  .trophy-ranking-table th,
  .trophy-ranking-table td {
    padding: 8px 6px;
  }

  .trophy-ranking-table th:nth-child(1),
  .trophy-ranking-table td:nth-child(1) {
    width: 34px;
  }

  .trophy-points-cell,
  .trophy-ranking-table th:nth-child(4),
  .trophy-ranking-table td:nth-child(4) {
    width: 70px;
    text-align: right;
    white-space: nowrap;
  }

  .public-finalists-grid {
    grid-template-columns: 1fr;
  }

  .public-finalists-block {
    padding: 8px;
  }

  .public-finalists-block li,
  .public-unqualified-block li,
  .public-unqualified-more li {
    font-size: 0.86rem;
  }

  .public-results-header {
    align-items: flex-start;
    padding: 12px;
  }

  .public-topbar {
    align-items: flex-start;
    min-height: 0;
    padding: 14px 84px 14px 12px;
  }

  .public-topbar-title {
    flex-basis: 100%;
  }

  .public-topbar h1 {
    font-size: 1.55rem;
  }

  .public-topbar .public-medals-title {
    gap: 3px;
  }

  .public-medals-title-event {
    font-size: 0.88rem;
  }

  .public-topbar-logo {
    top: 12px;
    right: 10px;
    width: 64px;
    max-height: 38px;
    padding: 0;
  }

  .public-topbar .public-header-actions {
    position: absolute;
    right: 10px;
    top: 58px;
    z-index: 1;
    width: auto;
    justify-content: flex-end;
    margin: 0;
  }

  .public-topbar .public-page-switch {
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 7px;
    font-size: 0.72rem;
    line-height: 1.1;
  }

  .public-topbar .firebase-header-status {
    display: none;
  }

  .public-medals-page .public-meet-meta {
    margin-top: 6px;
    font-size: 0.72rem;
  }

  .public-home-header {
    gap: 10px;
  }

  .public-home-partner img {
    width: min(150px, 34vw);
    max-height: 42px;
  }

  .public-home-shell {
    margin-top: 14px;
    gap: 12px;
  }

  .public-home-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 0;
    gap: 10px;
    padding: 4px 2px 8px;
  }

  .public-home-hero-copy h1 {
    flex-wrap: nowrap;
    gap: 7px;
    font-size: clamp(1.7rem, 8vw, 2.35rem);
  }

  .public-home-title-logo {
    flex: 0 0 auto;
    width: clamp(26px, 7vw, 34px);
  }

  .public-home-logo-card {
    justify-content: flex-end;
    justify-self: end;
    min-height: 0;
  }

  .public-home-logo-card img {
    width: clamp(78px, 24vw, 108px);
  }

  .public-home-grid {
    grid-template-columns: 1fr;
  }

  .public-home-card {
    min-height: 0;
    padding: 14px;
  }

  .public-archive-card {
    align-items: stretch;
    flex-direction: column;
  }

  .public-header-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
  }

  .public-page-switch {
    min-height: 32px;
    padding: 0 9px;
    font-size: 0.74rem;
  }

  .public-results-shell {
    width: calc(100% - 16px);
    margin-top: 10px;
  }

  .public-results-toolbar {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 8px;
  }

  .public-results-toolbar .public-results-actions {
    order: 1;
  }

  .public-results-toolbar .public-session-select {
    order: 2;
  }

  .public-results-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 42px;
    width: 100%;
    justify-content: stretch;
    align-self: start;
    gap: 6px;
    margin-top: 0;
  }

  .public-results-actions .ghost-button {
    min-width: 0;
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.74rem;
  }

  .public-results-actions .public-medals-link {
    font-size: 0.68rem;
  }

  .public-results-actions .public-refresh-button {
    width: 100%;
    min-width: 0;
    font-size: 1rem;
  }

  #tdhRankingBtn {
    font-size: 0.68rem;
  }

  .public-series-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    gap: 6px;
    padding: 8px;
  }

  .public-series-toolbar > * {
    min-width: 0;
  }

  .public-series-toolbar-text {
    display: none;
  }

  .public-session-select {
    flex: none;
    width: auto;
    min-width: 0;
  }

  .public-series-toolbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: end;
    justify-content: stretch;
    gap: 5px;
    width: 100%;
    min-width: 0;
  }

  .public-series-toolbar-actions .ghost-button {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 6px;
    font-size: 0.74rem;
  }

  .public-results-actions.public-series-toolbar-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 42px;
  }

  .public-results-actions.public-series-toolbar-actions .ghost-button {
    min-height: 34px;
    padding: 0 8px;
  }

  .public-series-toolbar-actions .public-refresh-button {
    width: 44px;
    min-width: 44px;
  }

  .public-results-actions.public-series-toolbar-actions .public-refresh-button {
    width: 42px;
    min-width: 42px;
  }

  .public-results-toolbar .public-results-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 42px !important;
  }

  .public-results-toolbar .public-results-actions #refreshPublicResultsBtn {
    display: inline-flex !important;
    width: 42px !important;
    min-width: 42px !important;
  }

  #publicSeriesProgramBtn {
    width: auto;
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #publicSeriesProgramBtn {
    font-size: 0.74rem;
  }

  .public-session-select {
    gap: 3px;
  }

  .public-session-select span {
    font-size: 0.66rem;
  }

  .public-session-select select {
    width: 100%;
    min-width: 0;
    min-height: 32px;
    font-size: 0.8rem;
    padding: 0 8px;
  }

  .public-series-console-controls {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .public-series-race-select {
    width: 100%;
  }

  .public-series-chip-field {
    display: grid;
    gap: 6px;
    width: 100%;
  }

  .public-series-chip-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
    gap: 6px;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .public-series-chip-row .series-chip {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0 7px;
    justify-content: center;
  }

  .public-series-chip-row .series-chip em {
    padding: 0 4px;
  }

  .public-series-chip-row .public-current-chip {
    grid-column: span 2;
  }

  .public-series-board {
    padding: 10px;
  }

  .public-series-board-head {
    grid-template-columns: 1fr;
  }

  .public-series-nav-actions {
    grid-template-columns: 1fr 1fr;
    min-width: 0;
  }

  .public-series-table {
    min-width: 0;
    table-layout: fixed;
  }

  .public-series-table th,
  .public-series-table td {
    padding: 6px 4px;
    font-size: 0.74rem;
  }

  .public-series-table th:nth-child(1),
  .public-series-table td:nth-child(1) {
    width: 38px;
  }

  .public-series-table th:nth-child(2),
  .public-series-table td:nth-child(2) {
    width: auto;
  }

  .public-series-table th:nth-child(3),
  .public-series-table td:nth-child(3) {
    width: 58px;
  }

  .public-series-table th:nth-child(4),
  .public-series-table td:nth-child(4) {
    width: 58px;
  }

  .public-series-name-button strong {
    font-size: 0.76rem;
    line-height: 1.1;
  }

  .public-series-name-button span {
    font-size: 0.66rem;
  }

  .public-series-category,
  .public-series-forfait {
    min-height: 20px;
    padding: 0 5px;
    font-size: 0.62rem;
  }

  .public-series-line {
    width: 25px;
    min-width: 25px;
    height: 25px;
    font-size: 0.74rem;
  }

  .public-series-table-wrap {
    overflow-x: hidden;
  }

  .public-medals-overview {
    align-items: stretch;
  }

  .public-medals-overview .public-refresh-button {
    margin-top: 0;
  }

  .public-medals-page .public-topbar .public-header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, auto));
    justify-content: end;
    gap: 8px;
  }

  .public-medals-page .public-topbar .public-page-switch {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.76rem;
  }

  .public-medals-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-medals-stat {
    padding: 10px 12px;
  }

  .public-medals-stat strong {
    font-size: 1.35rem;
  }

  .public-medals-ranking-panel {
    overflow-x: visible;
  }

  .public-medals-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 0.78rem;
  }

  .public-medals-table th,
  .public-medals-table td {
    padding: 8px 2px;
  }

  .public-medals-table th {
    font-size: 0.58rem;
    white-space: normal;
  }

  .public-medals-table th span {
    justify-content: center;
    gap: 0;
  }

  .public-medals-table th .public-medal-label-full,
  .public-medals-table th .public-medal-label-short {
    display: none;
  }

  .public-medals-table th:nth-child(1),
  .public-medals-table td:nth-child(1) {
    width: 22px;
  }

  .public-medals-table th:nth-child(2),
  .public-medals-table td:nth-child(2) {
    width: auto;
  }

  .public-medals-table th:nth-child(n+3),
  .public-medals-table td:nth-child(n+3) {
    width: 26px;
    text-align: center;
  }

  .public-medals-club-cell {
    min-width: 0;
  }

  .public-medals-club-actions {
    gap: 1px;
  }

  .public-medals-club-code {
    font-size: 0.82rem;
    overflow-wrap: anywhere;
  }

  .public-medals-club-name-inline {
    font-size: 0.5rem;
  }

  .public-medals-count,
  .public-medals-total {
    width: auto;
    font-size: 0.82rem;
  }

  .club-medal-icon {
    width: 14px;
    height: 18px;
  }

  .club-medal-ribbon {
    left: 3px;
    width: 8px;
    height: 9px;
  }

  .club-medal-disc {
    width: 13px;
    height: 13px;
  }

  .public-club-medal-time {
    white-space: normal;
  }

  .public-club-medals-modal {
    padding: 10px;
  }

  .public-club-medals-dialog {
    max-height: calc(100vh - 20px);
    padding: 12px;
  }

  .public-club-medals-head {
    display: grid;
  }

  .public-club-medals-head h2 {
    font-size: 1rem;
  }

  .public-club-medal-line {
    grid-template-columns: minmax(92px, 1fr) 38px 50px 47px;
    gap: 5px;
    min-height: 28px;
    padding: 4px 6px;
    font-size: 0.66rem;
  }

  .public-club-medal-line.is-relay {
    grid-template-columns: minmax(92px, 1fr) 43px 38px 47px;
  }

  .public-club-medal-line strong {
    white-space: nowrap;
  }

  .public-club-medal-line .public-club-medal-time {
    font-size: 0.7rem;
    text-align: right;
    white-space: nowrap;
  }

  #refreshPublicResultsBtn,
  #refreshPublicSeriesBtn,
  #refreshPublicMedalsBtn {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
  }

  .public-floating-refresh {
    display: flex;
  }

  .public-session-title span {
    width: fit-content;
  }

  .pdf-viewer-page .public-results-header {
    height: 34px;
    padding: 4px 6px;
  }

  .pdf-viewer-page .public-results-header > div {
    gap: 6px;
  }

  .pdf-viewer-page .app-name {
    font-size: 0;
    gap: 0;
  }

  .pdf-meet-meta {
    font-size: 0.66rem;
  }

  .pdf-viewer-page .livepalmes-logo {
    width: 20px;
    height: 20px;
  }

  .pdf-viewer-page .public-results-header h1 {
    font-size: 0.82rem;
  }

  .pdf-viewer-page .public-results-header .ghost-button {
    min-height: 26px;
    padding: 0 6px;
    font-size: 0.68rem;
  }

  .pdf-header-actions {
    gap: 4px;
  }

  .pdf-viewer-shell {
    height: calc(100vh - 34px);
    padding: 4px;
  }

}

@media (max-width: 380px) {
  .public-medals-title-event {
    font-size: 0.78rem;
  }
}
