:root {
  --my-bg: #eef4fb;
  --my-surface: #f8fbff;
  --my-surface-strong: #ffffff;
  --my-surface-tint: #edf4fd;
  --my-ink: #16324f;
  --my-ink-soft: #5d7692;
  --my-line: rgba(22, 50, 79, 0.1);
  --my-line-strong: rgba(22, 50, 79, 0.18);
  --my-primary: #2e6fb3;
  --my-primary-strong: #1f548d;
  --my-primary-soft: #deebfa;
  --my-accent: #2e6fb3;
  --my-success: #2d7d68;
  --my-warning: #b9852e;
  --my-shadow-1: 0 10px 28px rgba(20, 47, 78, 0.08);
  --my-shadow-2: 0 18px 42px rgba(20, 47, 78, 0.11);
  --my-radius-xl: 10px;
  --my-radius-lg: 8px;
  --my-radius-md: 6px;
  --my-radius-sm: 5px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--my-bg);
}

body.my-shell {
  margin: 0;
  min-height: 100vh;
  color: var(--my-ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(46, 111, 179, 0.1), transparent 28%),
    radial-gradient(circle at top right, rgba(46, 111, 179, 0.08), transparent 30%),
    linear-gradient(180deg, #f2f7fd 0%, #eef4fb 100%);
}

.my-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.32) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.2;
  pointer-events: none;
}

.my-app {
  position: relative;
  width: min(1200px, calc(100% - 1rem));
  margin: 0 auto;
  padding: 0.5rem 0 3rem;
}

.my-topbar,
.my-page {
  position: relative;
  z-index: 1;
}

.my-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.my-topbar__surface {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--my-line);
  border-radius: 9px;
  background: rgba(248, 250, 248, 0.78);
  box-shadow: var(--my-shadow-1);
  backdrop-filter: blur(18px);
}

.my-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--my-ink);
  text-decoration: none;
}

.my-brand__logo {
  display: block;
  width: auto;
  height: 2.9rem;
}

.my-brand__text {
  display: grid;
  gap: 0.06rem;
}

.my-brand__eyebrow {
  font-size: 0.73rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--my-ink-soft);
}

.my-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.my-nav__link,
.my-nav__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--my-primary-strong);
  font-weight: 600;
}

.my-nav__link {
  background: transparent;
}

.my-nav__button {
  border: 1px solid var(--my-line);
  background: var(--my-surface-strong);
}

.my-page {
  padding: 1rem 0 4rem;
}

.my-install-banner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.25rem 0 0.9rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(46, 111, 179, 0.18);
  border-radius: var(--my-radius-lg);
  background: rgba(248, 250, 248, 0.92);
  box-shadow: var(--my-shadow-1);
}

.my-install-banner__content {
  min-width: 0;
}

.my-install-banner__title,
.my-install-banner__body {
  margin: 0;
}

.my-install-banner__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--my-ink);
}

.my-install-banner__body {
  margin-top: 0.2rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--my-ink-soft);
}

.my-install-banner__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.my-install-banner__button {
  min-height: 2.35rem;
}

.my-install-banner__dismiss {
  border: 0;
  background: transparent;
  color: var(--my-ink-soft);
  font-weight: 600;
  padding: 0.4rem 0.25rem;
}

.my-page__sheet {
  padding: 0;
}

.my-auth,
.my-hero,
.my-dashboard,
.my-athlete-detail,
.my-record-detail {
  animation: my-rise 0.45s ease-out;
}

.my-surface {
  background: rgba(248, 250, 248, 0.86);
  border: 1px solid var(--my-line);
  border-radius: var(--my-radius-xl);
  box-shadow: var(--my-shadow-2);
  backdrop-filter: blur(10px);
}

.my-surface--strong {
  background: var(--my-surface-strong);
}

.my-hero {
  display: grid;
  gap: 1rem;
}

.my-hero__content,
.my-hero__panel,
.my-auth__card,
.my-dashboard__header,
.my-athlete-card,
.my-empty-state,
.my-athlete-detail__header,
.my-detail-panel {
  background: rgba(248, 250, 248, 0.9);
  border: 1px solid var(--my-line);
  border-radius: var(--my-radius-xl);
  box-shadow: var(--my-shadow-2);
}

.my-hero__content,
.my-hero__panel,
.my-auth__card,
.my-dashboard__header,
.my-empty-state,
.my-athlete-detail__header,
.my-detail-panel {
  padding: 1.4rem;
}

.my-hero__content {
  position: relative;
  overflow: hidden;
  background: #215b99;
  color: white;
}

.my-hero__content::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -18%;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.my-hero__content h1,
.my-auth__card h1,
.my-dashboard__header h1,
.my-athlete-detail__header h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.15rem, 8vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.my-record-detail .my-athlete-detail__header h1 {
  font-size: clamp(1.85rem, 5vw, 3.3rem);
}

.my-eyebrow,
.my-athlete-card__label {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--my-accent);
}

.my-hero__content .my-eyebrow {
  color: rgba(255, 245, 240, 0.88);
}

.my-lead,
.my-auth__intro {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--my-ink-soft);
}

.my-hero__content .my-lead {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.85);
}

.my-hero__panel {
  background: rgba(248, 251, 255, 0.92);
}

.my-panel-title {
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.my-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.my-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.85rem 0.95rem;
  border-radius: var(--my-radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.my-list li::before {
  content: "";
  flex: 0 0 0.62rem;
  width: 0.62rem;
  height: 0.62rem;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: var(--my-primary);
}

.my-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.45rem;
}

.my-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.my-button:hover,
.my-button:focus-visible,
.my-nav__link:hover,
.my-nav__link:focus-visible {
  transform: translateY(-1px);
}

.my-button--primary {
  background: var(--my-primary);
  color: white;
  box-shadow: 0 12px 24px rgba(46, 111, 179, 0.22);
}

.my-button--ghost {
  background: var(--my-primary-soft);
  color: var(--my-primary-strong);
  border: 1px solid rgba(46, 111, 179, 0.12);
}

.my-button--full {
  width: 100%;
}

.my-auth {
  display: flex;
  justify-content: center;
}

.my-auth__card {
  width: min(100%, 32rem);
  padding: 1.4rem;
  background: rgba(248, 251, 255, 0.96);
}

.my-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.my-field {
  display: grid;
  gap: 0.45rem;
}

.my-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--my-ink-soft);
  letter-spacing: 0.02em;
}

.my-field input {
  width: 100%;
  min-height: 3.4rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--my-line-strong);
  border-radius: var(--my-radius-md);
  background: rgba(255, 255, 255, 0.94);
  color: var(--my-ink);
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.my-field input:focus {
  outline: 2px solid rgba(36, 95, 87, 0.24);
  outline-offset: 1px;
  border-color: rgba(36, 95, 87, 0.35);
}

.my-checkbox {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  color: var(--my-ink-soft);
}

.my-dashboard {
  display: grid;
  gap: 1rem;
}

.my-dashboard__header {
  background: rgba(248, 251, 255, 0.96);
}

.my-dashboard__header h1 {
  font-size: clamp(2rem, 7vw, 3.6rem);
}

.my-athlete-grid {
  display: grid;
  gap: 0.95rem;
}

.my-athlete-card {
  display: block;
  padding: 1.15rem;
  background: rgba(248, 251, 255, 0.96);
  border-width: 2px;
}

.my-athlete-card--link {
  color: inherit;
  text-decoration: none;
}

.my-athlete-card--link:hover,
.my-athlete-card--link:focus-visible {
  color: inherit;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(20, 47, 78, 0.1);
}

.my-athlete-card--status-success {
  border-color: #198754;
}

.my-athlete-card--status-danger {
  border-color: #dc3545;
}

.my-athlete-card--status-warning {
  border-color: #ffc107;
}

.my-athlete-card--status-info {
  border-color: #0dcaf0;
}

.my-athlete-card--status-secondary {
  border-color: #6c757d;
}

.my-athlete-card__identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.my-athlete-card__avatar {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.my-athlete-card__avatar img {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  border-radius: var(--my-radius-lg);
  border: 1px solid var(--my-line);
  background: #fff;
}

.my-athlete-card h2 {
  margin: 0.2rem 0 0;
  font-size: 1.4rem;
}

.my-athlete-card__meta {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.my-athlete-card p {
  margin: 0;
}

.my-athlete-card__meta p {
  padding: 0.8rem 0.95rem;
  border-radius: var(--my-radius-md);
  background: rgba(255, 255, 255, 0.7);
  color: var(--my-ink-soft);
}

.my-athlete-card strong {
  color: var(--my-ink);
}

.my-empty-state {
  background: rgba(248, 251, 255, 0.94);
}

.my-athlete-detail,
.my-record-detail {
  display: grid;
  gap: 1rem;
}

.my-athlete-detail__header {
  display: grid;
  gap: 1rem;
  background: rgba(248, 251, 255, 0.96);
  border-width: 2px;
}

.my-athlete-detail__identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.my-athlete-detail__identity h1 {
  margin: 0.2rem 0 0;
}

.my-athlete-detail__header--status-success {
  border-color: #198754;
}

.my-athlete-detail__header--status-danger {
  border-color: #dc3545;
}

.my-athlete-detail__header--status-warning {
  border-color: #ffc107;
}

.my-athlete-detail__header--status-info {
  border-color: #0dcaf0;
}

.my-athlete-detail__header--status-secondary {
  border-color: #6c757d;
}

.my-athlete-detail__meta {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.my-athlete-detail__avatar {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.my-athlete-detail__avatar img {
  display: block;
  width: 9rem;
  height: 9rem;
  object-fit: cover;
  border-radius: var(--my-radius-lg);
  border: 1px solid var(--my-line);
  background: #fff;
}

.my-athlete-detail__meta p {
  margin: 0;
  padding: 0.8rem 0.95rem;
  border-radius: var(--my-radius-md);
  background: rgba(255, 255, 255, 0.7);
  color: var(--my-ink-soft);
}

.my-athlete-detail__meta strong {
  color: var(--my-ink);
}

.my-athlete-detail__more {
  border: 1px solid var(--my-line);
  border-radius: var(--my-radius-md);
  background: rgba(255, 255, 255, 0.7);
}

.my-athlete-detail__more-summary {
  cursor: pointer;
  padding: 0.8rem 0.95rem;
  color: var(--my-primary-strong);
  font-weight: 700;
  list-style: none;
}

.my-athlete-detail__more-summary::-webkit-details-marker {
  display: none;
}

.my-athlete-detail__more[open] .my-athlete-detail__more-summary {
  border-bottom: 1px solid var(--my-line);
}

.my-athlete-detail__more-content {
  display: grid;
  gap: 0.7rem;
  padding: 0.8rem 0.95rem 0.95rem;
}

.my-athlete-detail__more-content p {
  padding: 0;
  background: transparent;
}

.my-detail-grid {
  display: grid;
  gap: 1rem;
}

.my-detail-panel {
  background: rgba(248, 251, 255, 0.96);
}

.my-detail-panel__heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.my-detail-panel__heading h2 {
  margin: 0;
  font-size: 1.2rem;
}

.my-detail-panel__heading p {
  margin: 0;
  color: var(--my-ink-soft);
}

.my-detail-panel__empty,
.my-athlete-detail__back {
  margin-top: 0.8rem;
  color: var(--my-ink-soft);
}

.my-avatar-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.9rem;
}

.my-avatar-form__input {
  flex: 1 1 16rem;
  min-height: 2.8rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--my-line-strong);
  border-radius: var(--my-radius-md);
  background: #fff;
  color: var(--my-ink);
}


.my-record-list {
  display: grid;
  gap: 0.75rem;
}

.my-record-card {
  display: block;
  padding: 1rem;
  border: 1px solid var(--my-line);
  border-radius: var(--my-radius-md);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(20, 42, 40, 0.05);
}

.my-record-card--baseline {
  background: var(--bs-success-bg-subtle, #d1e7dd);
  border-color: #b9fba1;
}

.my-record-card--link {
  color: inherit;
  text-decoration: none;
}

.my-record-card--link:hover,
.my-record-card--link:focus-visible,
.my-record-card__body-link:hover,
.my-record-card__body-link:focus-visible {
  color: inherit;
  text-decoration: none;
}

.my-record-card--interactive:hover,
.my-record-card--interactive:focus-within,
.my-record-card--link:hover,
.my-record-card--link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(20, 42, 40, 0.08);
}

.my-record-card__body-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.my-record-card h3 {
  margin: 0;
  font-size: 1rem;
}

.my-record-card p {
  margin: 0;
  color: var(--my-ink-soft);
}

.my-record-card strong {
  color: var(--my-ink);
}

.my-record-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.my-record-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.my-record-card__row p {
  flex: 0 0 auto;
  font-size: 0.95rem;
  white-space: nowrap;
}

.my-record-pagination {
  margin-top: 0.9rem;
}

.my-record-pagination .pagination {
  margin-bottom: 0;
}

.my-inline-separator {
  color: var(--my-ink-soft);
}

.my-record-detail .my-detail-panel {
  padding-top: 1.2rem;
}

.my-nav__link,
.my-record-card__actions a,
.my-athlete-detail__back a {
  color: var(--my-primary);
}

.my-nav__link:hover,
.my-record-card__actions a:hover,
.my-athlete-detail__back a:hover {
  color: var(--my-primary-strong);
}

code {
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  background: rgba(46, 111, 179, 0.08);
  color: var(--my-primary-strong);
}

@keyframes my-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 700px) {
  .my-app {
    width: min(1240px, calc(100% - 2rem));
    padding-top: 1rem;
  }

  .my-page {
    padding-top: 1.5rem;
  }

  .my-hero {
    grid-template-columns: 1.6fr 1fr;
  }

  .my-athlete-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .my-athlete-detail__header {
    grid-template-columns: 1.55fr 1fr;
  }

  .my-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .my-athlete-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .my-page__sheet {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
}

@media (max-width: 699px) {
  .my-install-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .my-install-banner__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .my-topbar__surface {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-radius: 9px;
    padding: 0.8rem 0.85rem;
  }

  .my-nav {
    width: auto;
    justify-content: flex-end;
    gap: 0.35rem;
  }

  .my-nav__link,
  .my-nav__button {
    min-height: 2.35rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .my-brand {
    gap: 0.7rem;
    min-width: 0;
  }

  .my-brand__eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }

  .my-brand__logo {
    height: 2.45rem;
  }

  .my-auth__card,
  .my-hero__content,
  .my-hero__panel,
  .my-dashboard__header,
  .my-athlete-card,
  .my-empty-state,
  .my-athlete-detail__header,
    .my-detail-panel {
    border-radius: 9px;
  }
}

@media (max-width: 480px) {
  .my-topbar__surface {
    padding: 0.75rem;
    gap: 0.65rem;
  }

  .my-brand__eyebrow {
    display: none;
  }

  .my-brand__logo {
    height: 2.2rem;
  }

  .my-nav__link,
  .my-nav__button {
    min-height: 2.2rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.9rem;
  }
}
