:root {
  --ink: #151515;
  --muted: #5f6368;
  --paper: #f5f5f5;
  --surface: #ffffff;
  --line: #d8d8d8;
  --green: #d71920;
  --green-dark: #111111;
  --gold: #d71920;
  --gold-light: #ffffff;
  --blue: #2b2b2b;
  --blue-soft: #eeeeee;
  --coral: #d71920;
  --coral-soft: #fde7e8;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
  --radius: 8px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.08), rgba(245, 245, 245, 0.96) 360px),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 40;
  transform: translateY(-150%);
  padding: 10px 14px;
  color: var(--ink);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
  padding: 12px clamp(16px, 4vw, 42px);
  color: #ffffff;
  background: rgba(17, 17, 17, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
  letter-spacing: 0;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
  background: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 3px solid var(--gold-light);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 46%, rgba(255, 255, 255, 0.62) 46%, rgba(255, 255, 255, 0.62) 54%, transparent 54%),
    radial-gradient(circle at center, transparent 0 24%, rgba(255, 255, 255, 0.62) 25% 28%, transparent 29%);
}

.top-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 24px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 800;
}

.top-links a {
  text-underline-offset: 4px;
}

.top-links a:hover,
.top-links a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.app-layout {
  width: min(var(--content), calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px) 0 64px;
}

.program-hero {
  position: relative;
  min-height: clamp(248px, 36vw, 370px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.program-hero-image,
.program-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.program-hero-image {
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.program-hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.42) 54%, rgba(0, 0, 0, 0.08)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.05));
}

.program-hero-copy {
  width: min(770px, calc(100% - 34px));
  padding: clamp(28px, 6vw, 48px);
}

.kicker {
  margin: 0 0 10px;
  color: var(--gold-light);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.program-hero h1,
.view-panel h2 {
  margin: 0;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}

.program-hero h1 {
  max-width: 720px;
  font-size: clamp(2.45rem, 7vw, 5.8rem);
}

.program-hero p:last-child {
  max-width: 650px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  color: #ffffff;
  background: var(--coral);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  font-weight: 950;
}

.secondary-hero-button {
  color: var(--ink);
  background: #ffffff;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr)) auto;
  gap: 10px;
  margin: 14px 0;
}

.status-item,
.reset-button,
.privacy-strip,
.control-panel,
.view-panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.status-item {
  min-width: 0;
  padding: 14px;
}

.status-item span {
  display: block;
  color: var(--green-dark);
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  font-weight: 950;
  line-height: 1;
}

.status-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.reset-button {
  min-width: 82px;
  padding: 0 16px;
  color: var(--green-dark);
  cursor: pointer;
  font-weight: 900;
}

.reset-button:hover,
.reset-button:focus-visible {
  background: var(--gold-light);
}

.privacy-strip {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-color: #c9d8ce;
  background: #f4fbf5;
}

.privacy-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
}

.privacy-strip strong {
  color: var(--green-dark);
  font-weight: 950;
}

.privacy-strip span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.checkout-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.35fr);
  gap: 14px;
  align-items: center;
  margin: 0 0 14px;
  padding: clamp(18px, 4vw, 28px);
  color: #ffffff;
  background: var(--green-dark);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(12, 35, 25, 0.08);
}

.checkout-panel h2 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.45rem, 4vw, 2.45rem);
  line-height: 1;
}

.checkout-panel p {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.checkout-panel code {
  color: #ffffff;
}

.checkout-card {
  min-width: 0;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.checkout-card strong {
  display: block;
  margin: 4px 0 12px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  color: #ffffff;
  background: var(--coral);
  border-radius: var(--radius);
  font-weight: 950;
  text-align: center;
}

.checkout-status {
  margin: 10px 0 0 !important;
  color: var(--muted) !important;
  font-size: 0.86rem;
}

.cloud-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.45fr);
  gap: 14px;
  align-items: center;
  margin: 0 0 14px;
  padding: clamp(18px, 4vw, 28px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(12, 35, 25, 0.08);
}

.cloud-panel h2 {
  max-width: 760px;
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1;
}

.cloud-panel p {
  max-width: 740px;
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.cloud-console {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #f9faf7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cloud-user-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.cloud-user-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--green-dark);
  font-size: 1rem;
  font-weight: 950;
}

.cloud-user-row span,
.cloud-status {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

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

.cloud-auth-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.cloud-auth-form label span {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.cloud-auth-form input {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.cloud-auth-buttons,
.cloud-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cloud-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cloud-actions[hidden] {
  display: none;
}

.cloud-status {
  margin: 0 !important;
}

.cloud-status[data-tone="success"] {
  color: #167a3d;
}

.cloud-status[data-tone="warning"] {
  color: #9a5a00;
}

.cloud-status[data-tone="error"] {
  color: #b00020;
}

.control-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  margin-bottom: 14px;
  position: sticky;
  top: 78px;
  z-index: 20;
  box-shadow: 0 12px 30px rgba(12, 35, 25, 0.08);
}

.view-tabs,
.month-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.month-toggle[hidden] {
  display: none;
}

.view-tabs {
  overflow-x: auto;
  scrollbar-width: thin;
}

.view-tab,
.month-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.view-tab {
  flex: 1 0 max(96px, calc((100% - 54px) / 10));
  min-width: 96px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
}

.month-button {
  padding: 0 14px;
  color: var(--blue);
  background: var(--blue-soft);
}

.view-tab.is-active,
.month-button.is-active {
  color: #ffffff;
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.view-tab:focus-visible,
.month-button:focus-visible,
.calendar-day:focus-visible,
.done-button:focus-visible,
.form-button:focus-visible,
.utility-button:focus-visible,
.icon-button:focus-visible,
.filter-button:focus-visible,
.strategy-item:focus-visible,
.source-links a:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
}

.view-panel {
  padding: clamp(18px, 4vw, 28px);
  margin-bottom: 14px;
}

.view-panel.is-hidden {
  display: none;
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.view-panel h2 {
  color: var(--ink);
  font-size: clamp(1.65rem, 4.5vw, 3rem);
}

.equipment-note {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  background: #f9faf7;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.home-dot {
  background: var(--blue);
}

.team-dot {
  background: var(--coral);
}

.game-dot {
  background: var(--green-dark);
}

.recovery-dot {
  background: #98a39b;
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.weekday-row {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-align: center;
}

.calendar-day {
  position: relative;
  min-width: 0;
  min-height: clamp(84px, 12vw, 118px);
  padding: 8px;
  color: var(--ink);
  background: #f9faf7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.calendar-day:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(12, 35, 25, 0.08);
}

.calendar-day.is-outside {
  visibility: hidden;
  pointer-events: none;
}

.calendar-day.is-selected {
  border-color: var(--green-dark);
  box-shadow: inset 0 0 0 2px var(--green-dark);
}

.calendar-day.is-done::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.calendar-number {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 950;
}

.day-kind {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 950;
}

.kind-home .day-kind {
  background: var(--blue);
}

.kind-team .day-kind {
  background: var(--coral);
}

.kind-game {
  border-color: rgba(17, 17, 17, 0.38);
  background: #fff7f7;
}

.kind-game .day-kind {
  background: var(--green-dark);
}

.kind-recovery .day-kind {
  color: var(--ink);
  background: #e5e9e2;
}

.calendar-focus {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: clamp(0.68rem, 1.5vw, 0.78rem);
  font-weight: 800;
  line-height: 1.25;
}

.session-empty {
  display: none;
}

.session-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.58fr);
  gap: clamp(18px, 4vw, 34px);
}

.session-main {
  min-width: 0;
}

.session-date-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.session-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 950;
}

.session-badge.home {
  background: var(--blue);
}

.session-badge.team {
  background: var(--coral);
}

.session-badge.recovery {
  color: var(--ink);
  background: #e5e9e2;
}

.session-date {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.session-detail h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.9rem, 5vw, 3.55rem);
  line-height: 1;
}

.session-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.session-meta li {
  min-height: 32px;
  padding: 6px 10px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.block-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.day-events {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.day-event-list {
  display: grid;
  gap: 10px;
}

.day-event-card {
  padding: 16px;
  background: #fff7f7;
  border: 1px solid var(--line);
  border-left: 6px solid var(--coral);
  border-radius: var(--radius);
}

.day-event-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.day-event-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.training-block {
  padding: 16px;
  background: #f9faf7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.training-block h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.training-block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.session-side {
  display: grid;
  gap: 10px;
  align-self: start;
}

.cue-card,
.done-card {
  padding: 18px;
  border-radius: var(--radius);
}

.cue-card {
  background: var(--green-dark);
  color: #ffffff;
}

.cue-card h3,
.done-card h3,
.week-card h3,
.fuel-card h3,
.safety-grid h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.2;
}

.cue-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.94rem;
}

.cue-card strong {
  color: var(--gold-light);
}

.done-card {
  background: var(--coral-soft);
  border: 1px solid #edc8bd;
}

.done-card p {
  margin: 0 0 14px;
  color: #613125;
  font-size: 0.94rem;
  font-weight: 700;
}

.done-button {
  width: 100%;
  min-height: 46px;
  color: #ffffff;
  background: var(--coral);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 950;
}

.done-button.is-done {
  color: var(--green-dark);
  background: var(--gold-light);
}

.week-list,
.fuel-grid,
.safety-grid {
  display: grid;
  gap: 12px;
}

.week-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.week-card,
.fuel-card,
.safety-grid article {
  min-width: 0;
  padding: 18px;
  background: #f9faf7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.week-card .week-range {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.week-card p,
.fuel-card p,
.safety-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.week-days {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.week-days button {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  color: var(--green-dark);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: left;
}

.profile-layout,
.plan-dashboard,
.form-review-layout,
.habit-dashboard {
  display: grid;
  gap: 14px;
}

.profile-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  align-items: start;
}

.profile-form {
  margin-bottom: 0;
}

.avatar-panel,
.priority-list,
.microcycle-list,
.habit-list,
.form-review-list {
  display: grid;
  gap: 10px;
}

.avatar-card,
.activation-card,
.plan-summary,
.priority-card,
.goal-card,
.habit-summary,
.habit-card,
.form-review-card,
.nutrition-card,
.media-preview {
  min-width: 0;
  padding: 18px;
  background: #f9faf7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.avatar-card {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.player-avatar {
  position: relative;
  width: 96px;
  height: 116px;
  display: grid;
  justify-items: center;
  align-items: start;
  isolation: isolate;
}

.avatar-head,
.avatar-body,
.avatar-ball {
  display: block;
  position: absolute;
}

.avatar-head {
  top: 0;
  width: 38px;
  height: 38px;
  background: #f0c59a;
  border: 3px solid var(--green-dark);
  border-radius: 50%;
}

.avatar-head::before,
.avatar-head::after {
  content: "";
  position: absolute;
  top: 16px;
  width: 5px;
  height: 5px;
  background: var(--green-dark);
  border-radius: 50%;
}

.avatar-head::before {
  left: 10px;
}

.avatar-head::after {
  right: 10px;
}

.avatar-body {
  top: 34px;
  width: 70px;
  height: 78px;
  background: var(--coral);
  clip-path: polygon(18% 0, 82% 0, 100% 34%, 78% 46%, 74% 100%, 26% 100%, 22% 46%, 0 34%);
  border-radius: 8px 8px 14px 14px;
  box-shadow: inset 0 -16px 0 rgba(0, 0, 0, 0.16);
}

.avatar-body::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  width: 18px;
  height: 18px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 50%;
}

.avatar-ball {
  right: 5px;
  bottom: 0;
  width: 26px;
  height: 26px;
  background:
    linear-gradient(90deg, transparent 46%, var(--green-dark) 46% 54%, transparent 54%),
    linear-gradient(0deg, transparent 46%, var(--green-dark) 46% 54%, transparent 54%),
    #ffffff;
  border: 2px solid var(--green-dark);
  border-radius: 50%;
}

.kit-black .avatar-body {
  background: #151515;
}

.kit-blue .avatar-body {
  background: #2452a3;
}

.kit-green .avatar-body {
  background: #2f7f54;
}

.kit-gold .avatar-body {
  background: #d29a28;
}

.avatar-sprinter .avatar-body {
  transform: skewX(-7deg);
}

.avatar-captain .avatar-body::before {
  content: "C";
  position: absolute;
  right: 10px;
  top: 34px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 950;
}

.avatar-wall .avatar-body {
  width: 76px;
}

.avatar-finisher .avatar-ball {
  right: 0;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}

.profile-tags span {
  min-height: 26px;
  padding: 4px 8px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.compact-heading {
  margin-top: 22px;
}

.goal-card,
.habit-card,
.form-review-card {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.goal-card.is-complete {
  opacity: 0.72;
}

.goal-card.is-complete h3 {
  text-decoration: line-through;
}

.card-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.secondary-action {
  color: var(--green-dark);
  background: var(--gold-light);
  border-color: var(--line);
}

.plan-dashboard {
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
}

.plan-summary {
  align-self: start;
  background: var(--green-dark);
  color: #ffffff;
}

.plan-summary h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1.2rem;
}

.plan-summary p {
  color: rgba(255, 255, 255, 0.82);
}

.plan-summary .profile-tags span {
  color: var(--green-dark);
  background: #ffffff;
}

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

.priority-card ul {
  display: grid;
  gap: 7px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.microcycle-list {
  grid-column: 1 / -1;
}

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

.microcycle-days div {
  min-width: 0;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.microcycle-days span {
  display: block;
  margin-bottom: 6px;
  color: var(--coral);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.benchmark-target-strip {
  margin-bottom: 14px;
  padding: 14px 16px;
  color: var(--green-dark);
  background: #f4fbf5;
  border: 1px solid #c9d8ce;
  border-radius: var(--radius);
}

.benchmark-target-strip span {
  color: var(--muted);
  font-weight: 750;
}

.form-review-layout {
  grid-template-columns: minmax(260px, 0.44fr) minmax(0, 1fr);
}

.media-preview {
  min-height: 240px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.media-preview video,
.media-preview img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: var(--radius);
}

.habit-dashboard {
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
}

.habit-summary {
  align-self: start;
}

.nutrition-plan {
  margin-bottom: 14px;
}

.fuel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.safety-panel {
  background: var(--green-dark);
  border-color: rgba(255, 255, 255, 0.14);
}

.safety-panel .kicker {
  color: var(--gold-light);
}

.safety-panel h2 {
  color: #ffffff;
}

.safety-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.safety-grid article {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.safety-grid h3 {
  color: #ffffff;
}

.safety-grid p {
  color: rgba(255, 255, 255, 0.78);
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.source-links a {
  min-height: 34px;
  padding: 7px 10px;
  color: var(--green-dark);
  background: var(--gold-light);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.app-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  background: #f9faf7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.app-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.app-form label span {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.app-form input,
.app-form select,
.app-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.app-form textarea {
  min-height: 96px;
  resize: vertical;
}

.app-form .check-field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.app-form .check-field input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--green-dark);
}

.app-form .check-field span {
  color: var(--ink);
  font-size: 0.88rem;
  text-transform: none;
}

.wide-field {
  grid-column: span 2;
}

.form-button,
.utility-button,
.icon-button,
.filter-button,
.strategy-item {
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 950;
}

.form-button {
  align-self: end;
  min-height: 42px;
  padding: 0 16px;
  color: #ffffff;
  background: var(--green-dark);
}

.secondary-form-button {
  color: var(--green-dark);
  background: #ffffff;
  border-color: var(--line);
}

.utility-button,
.icon-button,
.filter-button {
  min-height: 36px;
  padding: 0 12px;
}

.event-tools,
.strategy-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.utility-button,
.filter-button {
  color: var(--blue);
  background: var(--blue-soft);
}

.filter-button.is-active {
  color: #ffffff;
  background: var(--green-dark);
}

.event-list,
.result-list,
.journal-list,
.benchmark-grid,
.strategy-list {
  display: grid;
  gap: 10px;
}

.event-card,
.result-card,
.journal-card,
.benchmark-card,
.empty-state,
.strategy-detail {
  min-width: 0;
  padding: 18px;
  background: #f9faf7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.event-card,
.result-card,
.journal-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.event-card {
  border-left: 6px solid var(--blue);
}

.event-game {
  border-left-color: var(--coral);
}

.event-training {
  border-left-color: var(--green-dark);
}

.event-scrimmage {
  border-left-color: var(--gold);
}

.event-meeting {
  border-left-color: var(--green);
}

.event-date-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 8px;
}

.event-type,
.card-kicker {
  margin: 0;
  color: var(--coral);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.event-date {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.event-home-away {
  min-height: 22px;
  padding: 3px 8px;
  color: #ffffff;
  background: var(--green-dark);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.event-card h3,
.result-card h3,
.journal-card h3,
.benchmark-card h3,
.empty-state h3,
.strategy-detail h3,
.avatar-card h3,
.activation-card h3,
.priority-card h3,
.goal-card h3,
.habit-summary h3,
.habit-card h3,
.form-review-card h3,
.nutrition-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.2;
}

.event-card p,
.result-card p,
.journal-card p,
.benchmark-card dd,
.empty-state p,
.strategy-detail p,
.strategy-detail li,
.avatar-card p,
.activation-card p,
.priority-card p,
.goal-card p,
.habit-summary p,
.habit-card p,
.form-review-card p,
.nutrition-card p,
.nutrition-card li {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.event-location {
  margin-bottom: 6px;
  color: var(--green-dark) !important;
  font-weight: 900;
}

.icon-button {
  flex: 0 0 auto;
  color: #ffffff;
  background: var(--coral);
  font-size: 0.78rem;
}

.benchmark-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.benchmark-card dl {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
}

.benchmark-card dt {
  color: var(--green-dark);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.result-list,
.journal-list {
  margin-top: 14px;
}

.journal-card {
  display: grid;
  gap: 10px;
}

.strategy-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
}

.strategy-item {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  color: var(--ink);
  background: #f9faf7;
  border-color: var(--line);
  text-align: left;
}

.strategy-item span {
  color: var(--coral);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.strategy-item.is-active {
  color: #ffffff;
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.strategy-item.is-active span {
  color: var(--gold-light);
}

.strategy-board {
  position: relative;
  min-height: 260px;
  margin-bottom: 16px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 49.6%, rgba(255, 255, 255, 0.55) 49.6% 50.4%, rgba(255, 255, 255, 0.1) 50.4%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 49.5%, rgba(255, 255, 255, 0.3) 49.5% 50.5%, rgba(255, 255, 255, 0.08) 50.5%),
    #2f7f54;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
}

.field-line {
  position: absolute;
  pointer-events: none;
}

.midfield {
  inset: 0 auto 0 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.56);
}

.box {
  top: 28%;
  width: 18%;
  height: 44%;
  border: 2px solid rgba(255, 255, 255, 0.56);
}

.left-box {
  left: 0;
  border-left: 0;
}

.right-box {
  right: 0;
  border-right: 0;
}

.field-dot {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.field-dot.team {
  background: var(--blue);
}

.field-dot.opponent {
  background: var(--coral);
}

.field-dot.ball {
  width: 18px;
  height: 18px;
  color: transparent;
  background: #ffffff;
  border-color: var(--ink);
}

.strategy-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.strategy-columns h4 {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 0.84rem;
  text-transform: uppercase;
}

.strategy-columns ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 900px) {
  .status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reset-button {
    grid-column: 1 / -1;
    min-height: 42px;
  }

  .control-panel,
  .session-detail,
  .panel-heading,
  .checkout-panel,
  .cloud-panel {
    grid-template-columns: 1fr;
  }

  .control-panel {
    top: 66px;
  }

  .month-toggle {
    width: 100%;
  }

  .month-button {
    flex: 1 1 0;
  }

  .session-detail {
    display: grid;
  }

  .week-list,
  .fuel-grid,
  .safety-grid,
  .benchmark-grid,
  .profile-layout,
  .plan-dashboard,
  .priority-list,
  .microcycle-days,
  .form-review-layout,
  .habit-dashboard,
  .strategy-layout,
  .strategy-columns {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .app-topbar {
    min-height: 58px;
  }

  .top-links {
    display: none;
  }

  .app-layout {
    width: min(100% - 20px, 560px);
    padding-top: 10px;
  }

  .program-hero {
    min-height: 272px;
  }

  .program-hero-copy {
    width: 100%;
    padding: 24px 18px;
  }

  .program-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.65rem);
  }

  .status-item {
    padding: 12px 10px;
  }

  .status-item small {
    font-size: 0.7rem;
  }

  .view-panel {
    padding: 16px;
  }

  .control-panel {
    top: 58px;
    padding: 8px;
  }

  .view-tabs {
    gap: 4px;
  }

  .view-tab {
    min-height: 40px;
    padding: 0 6px;
    font-size: 0.82rem;
  }

  .app-form {
    grid-template-columns: 1fr;
  }

  .cloud-auth-buttons,
  .cloud-actions {
    grid-template-columns: 1fr;
  }

  .wide-field {
    grid-column: auto;
  }

  .event-card,
  .result-card,
  .journal-card-head,
  .goal-card,
  .habit-card,
  .form-review-card {
    display: grid;
  }

  .icon-button,
  .card-actions {
    width: 100%;
  }

  .card-actions {
    display: grid;
  }

  .strategy-board {
    min-height: 220px;
  }

  .weekday-row,
  .calendar-grid {
    gap: 4px;
  }

  .calendar-day {
    min-height: 72px;
    padding: 6px;
  }

  .calendar-number {
    margin-bottom: 6px;
    font-size: 0.92rem;
  }

  .day-kind {
    min-height: 20px;
    padding: 0 5px;
    font-size: 0.6rem;
  }

  .calendar-focus {
    display: none;
  }

  .session-detail h2,
  .view-panel h2 {
    line-height: 1.03;
  }
}
