:root {
  color-scheme: dark;
  --page: #081117;
  --page-alt: #0d1820;
  --panel: rgba(12, 20, 27, 0.9);
  --panel-soft: rgba(14, 24, 33, 0.94);
  --panel-strong: rgba(7, 13, 18, 0.98);
  --line: rgba(163, 205, 212, 0.1);
  --line-strong: rgba(163, 205, 212, 0.16);
  --text: #f3fbff;
  --muted: #8ea4ad;
  --accent: #44d7b4;
  --accent-strong: #27b7cc;
  --accent-soft: rgba(68, 215, 180, 0.12);
  --chip: rgba(68, 215, 180, 0.12);
  --chip-text: #d5fff3;
  --warning: #d7a15c;
  --danger: #e07d8d;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  --glow: 0 10px 28px rgba(39, 183, 204, 0.08);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --font-display: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --font-body: "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(68, 215, 180, 0.08), transparent 20%),
    radial-gradient(circle at 80% 0%, rgba(39, 183, 204, 0.08), transparent 22%),
    linear-gradient(180deg, #081117 0%, #0b141b 56%, #071016 100%);
}

body.mobile-nav-locked {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.45;
}

body::before {
  width: 280px;
  height: 280px;
  top: 90px;
  right: 8%;
  background: rgba(68, 215, 180, 0.1);
}

body::after {
  width: 360px;
  height: 360px;
  left: -90px;
  bottom: 10%;
  background: rgba(39, 183, 204, 0.08);
}

.auth-screen {
  width: min(560px, calc(100vw - 32px));
  margin: clamp(24px, 7vh, 64px) auto;
  padding: 28px 24px;
  display: grid;
  gap: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%),
    rgba(11, 19, 26, 0.9);
}

.auth-screen-copy h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 5vw, 2.85rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  max-width: 11ch;
  font-family: var(--font-body);
  font-weight: 700;
}

.auth-intro {
  margin: 12px 0 0;
  color: #d2dfe4;
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 52ch;
}

.auth-message {
  margin: 0;
  color: #ffe8b8;
  font-size: 0.94rem;
  line-height: 1.45;
}

.auth-message-banner {
  margin-top: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(215, 161, 92, 0.3);
  border-radius: var(--radius-md);
  background: rgba(215, 161, 92, 0.14);
}

.auth-message-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 232, 184, 0.1);
  color: #ffe8b8;
  cursor: pointer;
  flex: 0 0 auto;
}

.auth-message-close:hover {
  background: rgba(255, 232, 184, 0.18);
}

.auth-actions {
  display: grid;
  gap: 18px;
}

.auth-chooser,
.auth-email-panel {
  display: grid;
  gap: 14px;
}

.auth-email-cta,
.auth-google-button,
.auth-email-submit {
  width: 100%;
  min-height: 54px;
  justify-content: center;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
}

.auth-email-cta {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.auth-google-button {
  box-shadow: none;
}

.auth-divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.auth-divider span {
  height: 1px;
  background: rgba(163, 205, 212, 0.12);
}

.auth-divider strong {
  font-size: 0.78rem;
  font-weight: 700;
}

.auth-email-back {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d3e5ea;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.auth-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.auth-form-row-stacked {
  grid-template-columns: 1fr;
}

.auth-form-row-submit {
  grid-template-columns: 1fr;
}

.auth-form-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  min-height: 54px;
  padding: 14px 16px;
  font: inherit;
}

.otp-input-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.otp-digit-input {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 0;
}

.otp-digit-input:focus-visible {
  border-color: rgba(68, 215, 180, 0.42);
  box-shadow: inset 0 0 0 1px rgba(68, 215, 180, 0.14);
}

.auth-switch-row {
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #bfd1d8;
  font-size: 0.95rem;
}

.auth-switch-link {
  border: 0;
  background: transparent;
  color: #f4fbff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.auth-switch-link:hover {
  color: #d9fff3;
}

button {
  font: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(77, 226, 177, 0.72);
  outline-offset: 2px;
}

.page-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
  position: relative;
  z-index: 1;
  transition: grid-template-columns 180ms ease;
}

.page-shell.sidebar-collapsed {
  grid-template-columns: 68px minmax(0, 1fr);
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  border: 0;
  background: rgba(3, 10, 15, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.page-shell.mobile-nav-open .mobile-nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  padding: 10px 8px 12px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%),
    rgba(9, 13, 18, 0.94);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.mobile-nav-close,
.mobile-nav-toggle {
  display: none;
}

.athlete-card,
.countdown-card,
.sidebar-section,
.panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.athlete-card {
  padding: 18px 16px;
}

.admin-mode-button {
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 184, 109, 0.92), rgba(223, 142, 54, 0.92));
  border-color: rgba(255, 184, 109, 0.35);
  color: #231307;
  box-shadow: 0 16px 30px rgba(223, 142, 54, 0.2);
}

.admin-mode-button:hover {
  background: linear-gradient(180deg, rgba(255, 196, 131, 0.98), rgba(234, 155, 66, 0.98));
}

.mode-switch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(163, 205, 212, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.mode-switch::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(77, 226, 177, 0.92), rgba(30, 182, 216, 0.88));
  box-shadow: 0 6px 16px rgba(30, 182, 216, 0.16);
  transition: transform 180ms ease;
}

.mode-switch[data-active-mode="coach"]::before {
  transform: translateX(100%);
}

.identity-summary {
  margin: 0 0 10px;
  color: #e6fff8;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.mode-button {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 140ms ease, transform 140ms ease;
}

.mode-button.active {
  color: #041912;
}

.mode-button:not(.active) {
  color: #bfd2d9;
}

.mode-button:hover {
  box-shadow: none;
}

.sidebar-brand {
  padding: 2px 4px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: default;
}

.brand-copy {
  min-width: 0;
  overflow: hidden;
}

.brand-mark {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #072019;
  background: linear-gradient(180deg, #50f0be 0%, #1eb6d8 100%);
  box-shadow: 0 10px 18px rgba(30, 182, 216, 0.22);
  flex: 0 0 34px;
}

.brand-title {
  display: block;
  margin-top: 0;
  font-size: 0.82rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f2f6f8;
}

.sidebar-pin-button {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(163, 205, 212, 0.08);
  color: #c9d5db;
}

.athlete-select-wrap,
.topbar-subtitle,
.section-label,
.muted-copy,
.detail-intro,
.detail-list li,
.stack-list p,
.roadmap-row,
.metric-row,
.session-subtitle {
  margin: 0;
}

.athlete-name,
.topbar h1,
.week-header h2,
.detail-title,
.summary-value {
  font-family: var(--font-display);
}

.athlete-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.athlete-select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  flex: 1 1 auto;
}

.nav-link,
.icon-button,
.primary-button,
.status-button {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.nav-link {
  text-align: left;
  padding: 8px 10px;
}

.nav-link:disabled {
  cursor: default;
  opacity: 1;
}

.nav-link:hover,
.icon-button:hover,
.primary-button:hover,
.status-button:hover,
.info-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(163, 205, 212, 0.12);
  color: #e6fff8;
  box-shadow: inset 2px 0 0 rgba(77, 226, 177, 0.92);
}

.nav-link-module {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 10px;
  min-height: 42px;
  border-radius: 12px;
}

.nav-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: transparent;
  color: #b5c3c9;
  flex: 0 0 auto;
  font-size: 0.9rem;
}

.nav-link-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0;
}

.nav-link-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.nav-link-copy strong {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.nav-link-copy span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(176, 190, 196, 0.05);
  color: #8fa0a7;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-link.active .nav-pill {
  background: rgba(68, 215, 180, 0.1);
  color: #d9fff3;
}

.is-coming-soon {
  background: transparent;
  border-style: solid;
  border-color: transparent;
}

.is-coming-soon .nav-pill {
  background: rgba(164, 176, 183, 0.04);
  border-color: transparent;
  color: #7d8c92;
}

.secondary-nav {
  margin-top: 2px;
}

.admin-sidebar-nav {
  gap: 12px;
}

#admin-back-button,
.summary-back-button {
  justify-content: flex-start;
  padding-left: 14px;
  background: rgba(100, 166, 255, 0.12);
  border-color: rgba(100, 166, 255, 0.26);
  box-shadow: inset 0 0 0 1px rgba(100, 166, 255, 0.08);
}

#admin-back-button .nav-link-icon,
.summary-back-button .nav-link-icon {
  background: rgba(100, 166, 255, 0.18);
  color: #eef6ff;
}

#admin-back-button:hover,
.summary-back-button:hover {
  background: rgba(100, 166, 255, 0.18);
  border-color: rgba(100, 166, 255, 0.36);
}

.summary-back-button .nav-link-label {
  font-size: 0.95rem;
}

.sidebar-profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(77, 226, 177, 0.92), rgba(30, 182, 216, 0.92));
  color: #062119;
  font-weight: 800;
  flex: 0 0 auto;
}

.sidebar-profile-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 700;
}

.panel-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.countdown-card,
.sidebar-section {
  padding: 16px 14px;
}

.sidebar-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.section-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
}

#countdown-days {
  display: block;
  margin-top: 12px;
  font-size: clamp(2.2rem, 4vw, 2.7rem);
  color: #f6fffb;
  font-family: var(--font-display);
}

#countdown-label {
  margin: 4px 0 0;
  color: var(--text);
}

.countdown-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.stack-list {
  display: grid;
  gap: 12px;
}

.utility-label {
  margin: 0 0 10px;
  color: #c4d4da;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
}

.dashboard-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
}

#training-view {
  display: grid;
  gap: 20px;
}

.dashboard-countdown {
  padding: 18px 18px;
  background:
    radial-gradient(circle at top right, rgba(68, 215, 180, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    var(--panel-soft);
}

.dashboard-countdown #countdown-days {
  margin-top: 10px;
  font-size: clamp(2.1rem, 3.6vw, 2.55rem);
  letter-spacing: -0.04em;
}

.dashboard-countdown #countdown-label {
  font-size: 0.98rem;
  margin-top: 6px;
}

.dashboard-actions {
  padding: 16px 18px;
  align-self: stretch;
}

.dashboard-actions .panel-header {
  margin-bottom: 10px;
}

.dashboard-actions .type-tags {
  margin-top: 0;
}

.type-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.info-button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.dialog-close-button {
  background: rgba(255, 127, 143, 0.18);
  border-color: rgba(255, 127, 143, 0.32);
  color: #fff6f7;
}

.dialog-close-button:hover {
  background: rgba(255, 127, 143, 0.26);
  border-color: rgba(255, 127, 143, 0.42);
}

.zone-card,
.summary-card,
.session-tile,
.race-card,
.detail-stat,
.metric-row,
.roadmap-row {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 26%),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.zone-card {
  padding: 14px;
}

.zone-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: var(--shadow);
}

.manage-dialog {
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: var(--shadow);
}

.zone-dialog::backdrop {
  background: rgba(2, 8, 12, 0.62);
}

.manage-dialog::backdrop {
  background: rgba(2, 8, 12, 0.62);
}

.zone-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.zone-dialog-header h3 {
  margin: 0;
}

.zone-card strong,
.summary-value,
.session-km,
.detail-title,
.week-indicator,
.target-chip {
  display: block;
}

.main-content {
  padding: 0 18px 18px;
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
}

.top-controls-row {
  display: block;
}

.utility-bar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  min-height: 60px;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  background: rgba(16, 18, 21, 0.96);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.utility-bar-left,
.utility-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.utility-bar-left {
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-start;
  gap: 14px;
}

.utility-context {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.utility-context-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(180deg, #50f0be 0%, #1eb6d8 100%);
  color: #072019;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  flex: 0 0 auto;
}

.utility-context-copy {
  min-width: 0;
}

.utility-context-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.utility-context-app {
  color: #d5dee3;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

.utility-divider {
  color: #5f6d74;
  font-size: 0.82rem;
}

.utility-context-copy h1 {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1;
  letter-spacing: -0.01em;
  font-family: var(--font-body);
  font-weight: 600;
  white-space: nowrap;
}

.topbar-subtitle {
  margin-top: 4px;
  color: #8a989e;
  max-width: 420px;
  font-size: 0.8rem;
}

.utility-bar-right {
  min-width: 0;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
}

.utility-athlete-select {
  min-width: 170px;
}

.utility-athlete-select .section-label {
  display: none;
}

.utility-athlete-select .athlete-select {
  min-width: 170px;
}

.topbar-profile {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding-left: 2px;
}

.topbar-profile::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 12px;
}

.topbar-profile-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 4px 8px;
  border: 1px solid rgba(163, 205, 212, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
}

.topbar-profile-avatar {
  width: 28px;
  height: 28px;
}

.topbar-profile-name {
  max-width: 140px;
  font-size: 0.84rem;
}

.topbar-profile-chevron {
  color: var(--muted);
  font-size: 0.68rem;
}

.topbar-profile-menu {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  z-index: 15;
  min-width: 220px;
  padding: 8px;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(163, 205, 212, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(14, 17, 21, 0.98);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.topbar-profile:hover .topbar-profile-menu,
.topbar-profile:focus-within .topbar-profile-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.topbar-menu-item {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.84rem;
}

.topbar-menu-item:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(163, 205, 212, 0.08);
}

.topbar-menu-item-danger {
  color: #ffdfe4;
}

.topbar-menu-item-danger:hover {
  background: rgba(255, 127, 143, 0.12);
  border-color: rgba(255, 127, 143, 0.24);
}

.topbar-menu-item-disabled {
  cursor: default;
  opacity: 0.72;
}

.topbar-menu-item-disabled:hover {
  background: transparent;
  border-color: transparent;
  transform: none;
}

.mobile-nav-toggle {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 18px 16px;
  background:
    radial-gradient(circle at top right, rgba(77, 226, 177, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 60%),
    var(--panel-soft);
}

.topbar h1 {
  margin: 0;
  font-size: clamp(1.75rem, 2.4vw, 2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.topbar-subtitle {
  margin-top: 6px;
  color: var(--muted);
  max-width: 560px;
  font-size: 0.92rem;
}

.topbar-actions,
.summary-grid,
.planner-grid,
.detail-badges,
.session-tags,
.detail-grid,
.status-row,
.notes-grid {
  display: flex;
  gap: 12px;
}

.topbar-actions {
  align-items: flex-end;
  gap: 8px;
}

.calendar-picker {
  display: inline-flex;
  align-items: center;
  min-width: 148px;
}

.calendar-picker input {
  border: 1px solid rgba(163, 205, 212, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  min-height: 38px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.84rem;
}

.icon-button,
.primary-button,
.status-button {
  padding: 8px 11px;
  font-size: 0.84rem;
}

.icon-button:disabled,
.primary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.icon-button {
  width: 38px;
  height: 38px;
  font-size: 0.92rem;
}

.primary-button {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  border-radius: 10px;
}

.topbar-actions .primary-button {
  margin-bottom: 1px;
}

.success-button {
  background: linear-gradient(180deg, #3fd0b1 0%, #1caeb0 100%);
  border-color: rgba(68, 215, 180, 0.18);
  color: #062119;
  box-shadow: 0 8px 18px rgba(32, 189, 191, 0.12);
}

.success-button:hover {
  background: linear-gradient(180deg, #58f4c8 0%, #1cddc4 100%);
  border-color: rgba(77, 226, 177, 0.42);
}

.danger-button {
  background: rgba(255, 127, 143, 0.14);
  border-color: rgba(255, 127, 143, 0.24);
  color: #ffdce1;
}

.danger-button:hover {
  background: rgba(255, 127, 143, 0.22);
  border-color: rgba(255, 127, 143, 0.34);
  color: #fff1f3;
}

.primary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.week-indicator {
  min-width: 98px;
  text-align: center;
  color: var(--muted);
}

.summary-grid {
  flex-wrap: wrap;
  gap: 14px;
}

.summary-card {
  flex: 1;
  min-width: 190px;
  padding: 14px 15px 13px;
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: "";
  position: absolute;
  inset: -40% auto auto 55%;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(68, 215, 180, 0.06);
  filter: blur(18px);
  pointer-events: none;
}

.summary-label {
  color: #a9c0c7;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.summary-value {
  margin-top: 6px;
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.summary-foot {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.planner-grid {
  display: block;
}

.admin-view {
  display: grid;
  gap: 16px;
}

.admin-summary-grid {
  margin-top: 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 16px;
}

.admin-panel {
  padding: 16px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-user-card,
.admin-coach-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 35%),
    rgba(255, 255, 255, 0.03);
  padding: 14px;
}

.admin-user-head,
.admin-coach-head,
.assignment-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-user-head strong,
.admin-coach-head strong {
  display: block;
  font-size: 0.95rem;
}

.admin-user-meta,
.admin-coach-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.role-pill-row,
.assignment-pill-row,
.admin-role-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-pill-row,
.assignment-pill-row {
  margin-top: 12px;
}

.role-pill,
.assignment-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(163, 205, 212, 0.12);
  color: var(--text);
  font-size: 0.82rem;
}

.role-pill.role-pill-admin {
  background: rgba(255, 184, 109, 0.14);
  border-color: rgba(255, 184, 109, 0.26);
  color: #ffe3c4;
}

.role-pill.role-pill-coach {
  background: rgba(30, 182, 216, 0.14);
  border-color: rgba(30, 182, 216, 0.28);
  color: #d6f7ff;
}

.role-pill.role-pill-athlete {
  background: rgba(77, 226, 177, 0.14);
  border-color: rgba(77, 226, 177, 0.28);
  color: #dcfff4;
}

.assignment-pill {
  justify-content: space-between;
}

.admin-role-actions {
  margin-top: 14px;
}

.admin-mini-button {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.admin-feedback {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 184, 109, 0.2);
  background: rgba(255, 184, 109, 0.08);
  color: #ffe0be;
}

.admin-feedback.error {
  border-color: rgba(255, 127, 143, 0.28);
  background: rgba(255, 127, 143, 0.1);
  color: #ffdce1;
}

.assignment-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.assignment-item {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.assignment-item-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-form .tool-actions {
  justify-content: flex-end;
  align-items: center;
}

.admin-form .primary-button {
  min-width: 160px;
}

.admin-user-dialog {
  width: min(640px, calc(100vw - 32px));
}

.admin-user-dialog-content {
  display: grid;
  gap: 18px;
}

.admin-user-detail-grid {
  display: grid;
  gap: 14px;
}

.admin-user-detail-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
}

.admin-user-detail-label {
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.admin-user-detail-value {
  color: #d9e8ee;
  overflow-wrap: anywhere;
}

.provider-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.planner-panel,
.detail-panel,
.note-panel {
  padding: 16px;
}

.planner-panel {
  width: 100%;
  padding: 20px 18px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 18%),
    var(--panel-soft);
}

.detail-panel {
  min-width: 0;
}

.week-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.panel-header h3,
.week-header h2,
.note-panel h3 {
  font-size: 1.08rem;
}

.week-header h2,
.note-panel h3 {
  margin: 0;
  letter-spacing: -0.02em;
}

.muted-copy {
  margin-top: 6px;
  color: var(--muted);
}

.target-chip,
.sport-chip,
.badge,
.rpe-chip {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.76rem;
}

.session-tags {
  margin-top: 10px;
  gap: 8px;
}

.sport-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.sport-chip:hover {
  transform: translateY(-1px);
}

.sport-chip.is-active {
  box-shadow: inset 0 0 0 1px rgba(77, 226, 177, 0.18), 0 0 0 2px rgba(77, 226, 177, 0.12);
}

.sport-run {
  background: rgba(77, 226, 177, 0.16);
  color: #d8fff0;
}

.sport-cycling {
  background: rgba(100, 166, 255, 0.18);
  color: #dde9ff;
}

.sport-swim {
  background: rgba(88, 208, 255, 0.18);
  color: #daf6ff;
}

.sport-gym {
  background: rgba(255, 184, 109, 0.16);
  color: #ffefcf;
}

.target-chip {
  background: var(--chip);
  color: var(--chip-text);
  white-space: nowrap;
  align-self: flex-start;
  border: 1px solid rgba(77, 226, 177, 0.14);
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(148px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  align-items: stretch;
}

.session-tile {
  min-width: 0;
  min-height: 204px;
  padding: 14px 13px 13px;
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.session-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(77, 226, 177, 0.35);
  box-shadow: 0 10px 24px rgba(39, 183, 204, 0.08);
}

.session-tile.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(68, 215, 180, 0.16);
  background:
    linear-gradient(180deg, rgba(68, 215, 180, 0.05), transparent 55%),
    rgba(255, 255, 255, 0.04);
}

.session-tile.filter-match {
  border-color: rgba(77, 226, 177, 0.55);
  box-shadow: inset 0 0 0 1px rgba(68, 215, 180, 0.14), 0 10px 22px rgba(39, 183, 204, 0.08);
}

.session-tile.filter-dim {
  opacity: 0.42;
}

.session-day {
  display: grid;
  gap: 4px;
  color: #bdd0d8;
}

.session-weekday {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.session-date {
  font-size: 0.84rem;
  color: #7e97a1;
}

.session-type {
  margin-top: 12px;
  color: #f4fbff;
  min-height: 44px;
  font-size: 0.96rem;
  line-height: 1.25;
}

.session-km {
  margin-top: 10px;
  font-size: 1.8rem;
  font-family: var(--font-display);
  line-height: 0.98;
}

.session-unit {
  color: var(--muted);
  font-size: 0.82rem;
}

.session-empty-copy {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.session-tile.placeholder {
  background: rgba(255, 255, 255, 0.02);
  border-style: dashed;
}

.session-tile.placeholder .session-type {
  color: #cfe0e6;
  min-height: 0;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.detail-header .primary-button {
  align-self: flex-start;
  white-space: nowrap;
  margin-top: 2px;
}

.detail-title {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1;
}

.detail-intro {
  margin-top: 8px;
  color: #dcebf0;
  font-size: 0.96rem;
}

.detail-badges {
  align-items: center;
  margin: 10px 0 22px;
  flex-wrap: wrap;
}

.detail-comments {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.detail-comment-list {
  display: grid;
  gap: 12px;
}

.detail-comment-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.detail-comment-card p {
  margin: 8px 0 0;
  color: #d7e7ec;
  line-height: 1.5;
}

.detail-comment-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
}

.detail-comment-empty {
  margin: 0 0 12px;
  color: var(--muted);
}

.detail-comment-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.detail-comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.badge {
  background: rgba(255, 255, 255, 0.08);
}

.badge.easy {
  background: rgba(77, 226, 177, 0.14);
  color: #d8fff0;
}

.badge.rest {
  background: rgba(255, 255, 255, 0.08);
  color: #d4e2e6;
}

.badge.long-run,
.badge.easy-hills {
  background: rgba(77, 226, 177, 0.14);
  color: #d8fff0;
}

.badge.tempo,
.badge.hills {
  background: rgba(255, 184, 109, 0.14);
  color: #ffefcf;
}

.rpe-chip {
  border: 1px solid rgba(255, 184, 109, 0.24);
  color: #ffefcf;
}

.detail-grid {
  flex-direction: column;
}

.detail-empty-state {
  margin-top: 22px;
  width: 100%;
}

.detail-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
}

.detail-row-centered {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.detail-label {
  color: var(--text);
  font-weight: 700;
}

.detail-value {
  color: #d7e7ec;
  line-height: 1.45;
}

.detail-value-highlight {
  color: #d9fff1;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(77, 226, 177, 0.2);
  border-radius: 12px;
  background: rgba(77, 226, 177, 0.08);
  text-align: center;
}

.detail-list {
  margin: 0;
  padding-left: 18px;
  color: #d7e7ec;
}

.detail-list li + li {
  margin-top: 8px;
}

.status-row {
  margin-top: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.status-label {
  color: var(--muted);
}

.status-button.active {
  background: rgba(77, 226, 177, 0.16);
  border-color: rgba(77, 226, 177, 0.35);
  color: #e3fff6;
  box-shadow: inset 0 0 0 1px rgba(77, 226, 177, 0.14);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.note-panel {
  min-width: 0;
}

.data-panel {
  flex: 1 1 100%;
}

.tool-section + .tool-section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.page-shell.sidebar-collapsed .sidebar-brand {
  justify-content: center;
  padding-inline: 0;
}

.page-shell.sidebar-collapsed .brand-block {
  justify-content: center;
}

.page-shell.sidebar-collapsed .brand-mark {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  flex-basis: 34px;
}

.page-shell.sidebar-collapsed .sidebar {
  padding: 10px 6px 12px;
}

.page-shell.sidebar-collapsed .brand-copy,
.page-shell.sidebar-collapsed .nav-link-label,
.page-shell.sidebar-collapsed .nav-pill {
  display: none;
}

.page-shell.sidebar-collapsed .nav-link-module {
  justify-content: center;
  padding: 8px 6px;
  width: 100%;
  min-width: 0;
}

.page-shell.sidebar-collapsed .sidebar-pin-button {
  display: none;
}

.page-shell.sidebar-collapsed .nav-link-icon {
  width: 18px;
  height: 18px;
  font-size: 0.86rem;
}

.tool-header h4 {
  margin: 0;
  font-size: 1rem;
}

.tool-copy {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.stack-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.stack-form label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  color: #b9cdd4;
}

.stack-form input,
.stack-form select,
.stack-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.stack-form input::placeholder,
.stack-form textarea::placeholder {
  color: #6f8993;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

[hidden] {
  display: none !important;
}

.code-box {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 12px;
  font: 0.88rem/1.45 "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
  background: rgba(163, 205, 212, 0.18);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(163, 205, 212, 0.28);
}

.race-card {
  padding: 14px;
}

.race-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.race-card p {
  margin: 8px 0 0;
  color: #d7e7ec;
  line-height: 1.45;
}

.priority-chip {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.priority-a {
  background: rgba(77, 226, 177, 0.14);
  color: #d8fff0;
}

.priority-b {
  background: rgba(255, 184, 109, 0.14);
  color: #ffefcf;
}

.priority-c {
  background: rgba(100, 166, 255, 0.18);
  color: #dde9ff;
}

.race-countdown {
  color: var(--muted);
}

.zone-prescription {
  margin-top: 8px;
  color: #d7e7ec;
  line-height: 1.45;
}

.zone-sports {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.zone-sport-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.zone-sport-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.zone-sport-row p {
  margin: 0;
  color: #d7e7ec;
  line-height: 1.45;
}

.metrics-table,
.roadmap-table {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.metric-row,
.roadmap-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
}

.metric-row strong,
.roadmap-row strong {
  color: var(--text);
}

.prose {
  margin-top: 14px;
  color: #d7e7ec;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .page-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 30;
    width: min(84vw, 320px);
    max-width: 320px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    transform: translateX(calc(-100% - 18px));
    transition: transform 180ms ease, box-shadow 180ms ease;
    box-shadow: none;
  }

  .page-shell.mobile-nav-open .sidebar {
    transform: translateX(0);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  }

  .mobile-nav-close,
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav-close {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
  }

  .top-controls-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .top-controls-row .utility-bar {
    flex: 1 1 auto;
    min-width: 0;
  }

  .mobile-nav-toggle {
    margin-top: 2px;
  }

  .topbar,
  .topbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .utility-bar,
  .utility-bar-left,
  .utility-bar-right {
    flex-direction: column;
    align-items: stretch;
  }

  .utility-context-row {
    flex-wrap: wrap;
  }

  .utility-context-copy h1,
  .utility-context-app {
    white-space: normal;
  }

  .utility-athlete-select,
  .utility-athlete-select .athlete-select {
    min-width: 0;
    width: 100%;
  }

  .utility-bar {
    gap: 10px;
    border-radius: 14px;
    border: 1px solid var(--line);
    top: 14px;
  }

  .utility-bar-left,
  .utility-bar-right {
    gap: 8px;
  }

  .utility-bar-left {
    justify-content: flex-start;
  }

  .mode-switch {
    width: min(100%, 280px);
    align-self: flex-start;
  }

  .topbar-profile {
    justify-content: space-between;
    padding-left: 0;
  }

  .topbar-profile-menu {
    left: 0;
    right: auto;
    min-width: min(280px, calc(100vw - 56px));
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  .auth-screen {
    width: min(100vw - 24px, 560px);
    padding: 22px 18px;
    gap: 18px;
  }

  .auth-screen-copy h1 {
    max-width: none;
    font-size: clamp(1.8rem, 9vw, 2.45rem);
  }

  .main-content {
    padding: 16px;
  }

  .sidebar {
    padding: 16px 14px;
  }

  .detail-row,
  .metric-row,
  .roadmap-row,
  .form-grid.two-col {
    grid-template-columns: 1fr;
  }

  .week-strip {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .session-tile {
    min-height: 150px;
    padding: 12px 11px 11px;
  }

  .week-header {
    flex-direction: column;
    align-items: stretch;
  }

  .target-chip {
    white-space: normal;
    width: fit-content;
    max-width: 100%;
  }

  .calendar-picker {
    min-width: 0;
    width: 100%;
  }

  .session-type {
    min-height: 0;
    font-size: 0.9rem;
  }

  .session-km {
    font-size: 1.65rem;
  }

  .sport-chip {
    padding: 5px 8px;
    font-size: 0.75rem;
  }

  .admin-user-head,
  .admin-coach-head,
  .assignment-item {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .otp-input-row {
    gap: 6px;
  }

  .otp-digit-input {
    height: 44px;
    font-size: 1rem;
  }

  .week-strip {
    grid-template-columns: minmax(240px, 1fr);
  }

  .session-tile {
    min-height: 0;
  }

  .topbar-actions {
    width: 100%;
  }
}
