:root {
  color-scheme: light;
  --ink: #0c1b31;
  --muted: #596777;
  --panel: #ffffff;
  --panel-soft: #edf4f9;
  --line: #c9d6e2;
  --blue: #f47b2a;
  --blue-strong: #202124;
  --cyan: #f7a15f;
  --orange: #f47b2a;
  --green: #60ad56;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.92) 45%, rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at 0% 0%, rgba(244, 123, 42, 0.22), transparent 26rem),
    linear-gradient(180deg, #e8f0f6 0%, #ffffff 38%, #edf4f9 100%);
  color: var(--ink);
}

body.is-locked {
  overflow: hidden;
}

body.has-modal {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.app-shell {
  width: min(100%, 540px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 12px calc(86px + env(safe-area-inset-bottom));
}

body.is-locked .app-shell {
  pointer-events: none;
  user-select: none;
  filter: blur(2px);
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(0, 81, 141, 0.22), rgba(237, 244, 249, 0.96)),
    url("./hero-kitesurf.png") center / cover no-repeat;
}

body.is-authenticated .login-screen {
  display: none;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  background: url("./icon.svg") center 14% / min(70vw, 320px) no-repeat;
  opacity: 0.13;
}

.login-card {
  position: relative;
  width: min(100%, 390px);
  padding: 22px 18px 18px;
  border: 1px solid rgba(201, 214, 226, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 60px rgba(32, 33, 36, 0.22);
  backdrop-filter: blur(16px);
}

.login-logo {
  width: 62px;
  height: 62px;
  display: block;
  margin-bottom: 14px;
  border-radius: 12px;
}

.login-card h1 {
  max-width: 11ch;
  margin-bottom: 10px;
  font-size: clamp(2rem, 10vw, 3.25rem);
}

.login-copy {
  margin-bottom: 18px;
  font-weight: 650;
}

.login-card label {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--blue-strong);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.login-card input {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.login-card input:focus {
  outline: 3px solid rgba(244, 123, 42, 0.22);
  border-color: var(--orange);
}

.login-error {
  min-height: 20px;
  margin-bottom: 10px;
  color: #b42318;
  font-size: 0.86rem;
  font-weight: 800;
}

.login-submit {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--orange);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--orange) 0%, #202124 100%);
  color: #ffffff;
  font-weight: 950;
  text-transform: uppercase;
}

.test-access {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(237, 244, 249, 0.88);
  color: var(--muted);
  font-size: 0.82rem;
}

.test-access strong {
  color: var(--blue-strong);
}

body:not(.is-page) .app-shell {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding-top: max(8px, env(safe-area-inset-top));
  padding-bottom: calc(68px + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 8px 0 12px;
  background: rgba(239, 246, 251, 0.84);
  backdrop-filter: blur(16px);
}

body:not(.is-page) .topbar {
  padding: 4px 0 6px;
}

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

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(32, 33, 36, 0.16);
}

.brand-profile-photo {
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 0 0 0 2px var(--orange), 0 12px 24px rgba(32, 33, 36, 0.16);
  object-fit: cover;
}

.brand-user-name {
  max-width: 92px;
  margin-left: -4px;
  overflow: hidden;
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body:not(.is-page) .brand-icon {
  width: 38px;
  height: 38px;
}

body:not(.is-page) .brand-profile-photo {
  width: 38px;
  height: 38px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
  text-transform: uppercase;
}

.brand strong {
  font-size: 1rem;
  font-weight: 900;
}

.brand small {
  margin-top: 4px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--blue);
  font-size: 1.35rem;
  font-weight: 900;
}

.home-circle-button,
.settings-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(244, 123, 42, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--orange);
}

.home-circle-button {
  margin-left: auto;
}

.home-circle-button img {
  width: 30px;
  height: 30px;
}

.settings-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--orange);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--orange) 0%, #202124 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

body:not(.is-page) main {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 52px - 68px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  min-height: 0;
}

.hero {
  min-height: 31vh;
  display: flex;
  align-items: flex-end;
  padding: 48px 0 18px;
}

body:not(.is-page) .hero {
  flex: 0 0 auto;
  min-height: 0;
  padding: 14px 0 8px;
}

.hero-copy {
  position: relative;
}

.hero-copy::before {
  content: "";
  position: absolute;
  right: -18px;
  bottom: 0;
  width: 156px;
  height: 156px;
  background: url("./icon.svg") center / contain no-repeat;
  opacity: 0.16;
  transform: rotate(-8deg);
  pointer-events: none;
}

body:not(.is-page) .hero-copy::before {
  width: 92px;
  height: 92px;
  right: -8px;
  bottom: 4px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 12px;
  color: var(--blue-strong);
  font-size: clamp(2.35rem, 13vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wordmark span {
  color: #202124;
}

.wordmark em {
  color: var(--orange);
  font-style: normal;
}

.tagline {
  margin-bottom: 0;
  color: #202124;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.3;
}

body:not(.is-page) h1 {
  max-width: 13ch;
  margin-bottom: 7px;
  font-size: clamp(1.9rem, 9.5vw, 3rem);
  line-height: 0.94;
}

h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 0;
  font-size: 1.08rem;
}

p {
  color: var(--muted);
  line-height: 1.5;
}

.hero p:last-child {
  max-width: 29rem;
  margin-bottom: 0;
  font-weight: 650;
}

body:not(.is-page) .hero p:last-child {
  max-width: 25rem;
  font-size: 0.92rem;
  line-height: 1.32;
}

.mode-grid {
  display: grid;
  gap: 10px;
  margin: 4px 0 20px;
}

body:not(.is-page) .mode-grid {
  flex: 0 0 auto;
  gap: 8px;
  margin: 0 0 8px;
}

.mode-tile {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 12px 26px rgba(32, 33, 36, 0.08);
}

body:not(.is-page) .mode-tile {
  grid-template-columns: 38px 1fr;
  gap: 9px;
  min-height: 56px;
  padding: 8px;
}

.mode-tile.active,
.nav-item.active,
.day-tab.active {
  border-color: var(--blue);
  background: linear-gradient(180deg, var(--orange) 0%, #202124 100%);
  color: #ffffff;
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--blue);
  font-weight: 950;
}

body:not(.is-page) .tile-icon {
  width: 38px;
  height: 38px;
}

.tile-icon.icon-image {
  background: #ffffff;
  overflow: hidden;
}

.tile-icon.icon-image img {
  width: 38px;
  height: 38px;
  display: block;
}

body:not(.is-page) .tile-icon.icon-image img {
  width: 34px;
  height: 34px;
}

.mode-tile.active .tile-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.mode-tile.active .tile-icon.icon-image {
  background: #ffffff;
}

.mode-tile strong,
.mode-tile small {
  display: block;
}

body:not(.is-page) .mode-tile small {
  margin-top: 2px;
  font-size: 0.76rem;
}

.mode-tile small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.mode-tile.active small,
.day-tab.active span {
  color: rgba(255, 255, 255, 0.82);
}

.home-showcase {
  overflow: hidden;
  min-height: 260px;
  height: clamp(260px, 44vh, 430px);
  margin: 4px 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  box-shadow: 0 16px 30px rgba(32, 33, 36, 0.09);
}

body:not(.is-page) .home-showcase {
  flex: 1 1 auto;
  min-height: 120px;
  height: auto;
  margin: 0;
}

.home-showcase img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 78% 18%;
}

body:not(.is-page) .home-showcase img {
  object-position: 86% 12%;
}

.page-header {
  display: none;
  align-items: center;
  justify-content: flex-end;
  margin: 2px 0 14px;
}

.page-header > span {
  min-width: 0;
  color: var(--blue-strong);
  font-size: 0.85rem;
  font-weight: 950;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body.is-page .hero,
body.is-page .mode-grid,
body.is-page .home-showcase {
  display: none;
}

body.is-page .page-header {
  display: flex;
}

.panel {
  display: none;
  padding: 10px 0 6px;
}

body.is-page .panel.active {
  display: block;
}

body:not(.is-admin) .admin-only {
  display: none !important;
}

.section-heading {
  margin-bottom: 14px;
}

.calendar-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.calendar-title-row h2 {
  margin: 0;
}

.calendar-add-button,
.event-edit-button {
  display: grid;
  place-items: center;
  border: 2px solid var(--orange);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
}

.calendar-add-button {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  box-shadow: 0 10px 20px rgba(32, 33, 36, 0.1);
}

.calendar-add-button svg,
.event-edit-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.info-list,
.calculator-shell,
.spot-grid,
.tip-list,
.workout-list,
.day-tabs {
  display: grid;
  gap: 10px;
}

.info-list article,
.calculator-shell article,
.spot-card,
.tip-list article,
.exercise-card,
.step-list li,
.day-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 30px rgba(32, 33, 36, 0.09);
}

.info-list article,
.calculator-shell article,
.tip-list article {
  padding: 14px;
}

.calendar-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.calendar-mode {
  min-height: 54px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(32, 33, 36, 0.08);
}

.calendar-mode.active {
  border-color: var(--ink);
  background: linear-gradient(180deg, var(--orange) 0%, #202124 100%);
  color: #ffffff;
}

.calendar-view {
  display: none;
}

.calendar-view.active {
  display: block;
}

.performance-view {
  display: none;
}

.performance-view.active {
  display: block;
}

.calendar-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 30px rgba(32, 33, 36, 0.09);
}

.calendar-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 12px;
}

.calendar-card-head strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 950;
  text-transform: uppercase;
}

.calendar-card-head span {
  color: var(--orange);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.event-item {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(244, 123, 42, 0.36);
  border-radius: 8px;
  background: #ffffff;
}

.event-edit-button {
  width: 34px;
  height: 34px;
}

.event-edit-button.delete {
  border-color: var(--ink);
}

.event-edit-button svg {
  width: 18px;
  height: 18px;
}

.event-item time {
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 950;
}

.event-item strong,
.event-item span,
.event-item small,
.event-item p {
  display: block;
}

.event-item strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 950;
}

.event-item span {
  margin-top: 2px;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-author,
.calendar-author {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.event-item p,
.empty-state {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.calendar-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.calendar-controls label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.calendar-controls select {
  width: 100%;
  min-height: 48px;
  padding: 10px 11px;
  border: 1px solid var(--orange);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 850;
}

.real-calendar {
  display: grid;
  gap: 8px;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.calendar-weekdays span {
  color: var(--orange);
  font-size: 0.66rem;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  width: 100%;
  min-height: 42px;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  text-decoration: none;
}

button.calendar-day {
  cursor: pointer;
}

button.calendar-day:focus-visible {
  outline: 3px solid rgba(244, 123, 42, 0.28);
}

.calendar-day.muted {
  border-color: transparent;
  background: transparent;
}

.calendar-day strong {
  font-size: 0.84rem;
  font-weight: 900;
}

.calendar-day.has-event {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(32, 33, 36, 0.2);
}

.calendar-day.is-today {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(244, 123, 42, 0.34);
}

.calendar-day.is-training {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.calendar-day.is-activity {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--ink);
}

.calendar-day.is-training.is-today,
.calendar-day.is-activity.is-today {
  box-shadow: 0 0 0 3px rgba(244, 123, 42, 0.42);
}

.calendar-day em {
  position: absolute;
  right: 4px;
  bottom: 3px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #ffffff;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 950;
}

.calendar-day.is-training em {
  background: #ffffff;
  color: var(--ink);
}

.calendar-day.is-activity em {
  background: var(--ink);
  color: #ffffff;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(244, 123, 42, 0.28);
}

.calendar-legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.legend-dot {
  width: 16px;
  height: 16px;
  display: inline-block;
  border-radius: 5px;
}

.legend-dot.training {
  background: var(--ink);
}

.legend-dot.activity {
  background: var(--orange);
  border: 1px solid var(--orange);
}

.legend-dot.group {
  position: relative;
  border: 2px solid var(--ink);
  background: #ffffff;
}

.legend-dot.group::after {
  content: "1";
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #ffffff;
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 950;
}

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

.calendar-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
}

.calendar-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 27, 49, 0.58);
  backdrop-filter: blur(10px);
}

.calendar-modal-backdrop.soft {
  background: rgba(12, 27, 49, 0.38);
}

.calendar-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  max-height: min(78vh, 560px);
  overflow: auto;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--orange), 0 22px 50px rgba(12, 27, 49, 0.28);
}

.calendar-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}

.calendar-modal-card h2 {
  margin: 2px 44px 14px 0;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 950;
  text-transform: uppercase;
}

.confirm-card {
  max-width: 390px;
}

.success-card {
  max-width: 360px;
  text-align: left;
}

.success-card h2 {
  color: var(--orange);
}

.exercise-modal-card {
  width: min(100%, 480px);
  max-height: min(86vh, 700px);
}

.exercise-modal-content {
  display: grid;
  gap: 13px;
}

.exercise-modal-image {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 0 0 2px var(--orange);
}

.exercise-modal-meta {
  margin: 0;
}

.exercise-modal-cues {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.42;
}

.exercise-finish-button {
  min-height: 50px;
  border: 1px solid var(--orange);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--orange) 0%, #202124 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 14px 26px rgba(32, 33, 36, 0.12);
}

.confirm-copy {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.delete-confirm-button {
  min-height: 50px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--orange) 0%, #202124 100%);
  color: #ffffff;
  font-weight: 950;
  text-transform: uppercase;
}

.calendar-modal-list {
  display: grid;
  gap: 10px;
}

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

.calendar-entry-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-entry-form input,
.calendar-entry-form select,
.calendar-entry-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.calendar-entry-form textarea {
  min-height: 86px;
  resize: vertical;
}

.calendar-entry-form input:focus,
.calendar-entry-form select:focus,
.calendar-entry-form textarea:focus {
  outline: 3px solid rgba(244, 123, 42, 0.22);
  border-color: var(--orange);
}

.admin-actions-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.calendar-modal-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.calendar-modal-item.training {
  border-color: var(--ink);
  box-shadow: inset 5px 0 0 var(--ink);
}

.calendar-modal-item.activity {
  border-color: var(--orange);
  box-shadow: inset 5px 0 0 var(--orange);
}

.calendar-modal-item.group {
  border-color: var(--ink);
  box-shadow: inset 5px 0 0 var(--orange);
}

.calendar-modal-item span {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.calendar-modal-item strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
}

.calendar-modal-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.calendar-route-image {
  width: 100%;
  margin-top: 10px;
  border: 2px solid var(--orange);
  border-radius: 8px;
  background: #fffaf6;
  box-shadow: 0 12px 24px rgba(32, 33, 36, 0.12);
}

.modal-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.spot-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 10px;
}

.spot-form {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 30px rgba(32, 33, 36, 0.09);
}

.profile-form,
.activity-form,
.tracking-shell,
.pinboard-form,
.admin-form,
.settings-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 30px rgba(32, 33, 36, 0.09);
}

.profile-form label,
.activity-form label,
.tracking-shell label,
.pinboard-form label,
.admin-form label,
.settings-form label {
  display: grid;
  gap: 7px;
  color: var(--blue-strong);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-form input,
.profile-form select,
.activity-form input,
.activity-form select,
.tracking-shell select,
.pinboard-form input,
.pinboard-form textarea,
.admin-form input,
.settings-form input {
  width: 100%;
  min-height: 48px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.profile-form input:focus,
.profile-form select:focus,
.activity-form input:focus,
.activity-form select:focus,
.tracking-shell select:focus,
.pinboard-form input:focus,
.pinboard-form textarea:focus,
.admin-form input:focus,
.settings-form input:focus {
  outline: 3px solid rgba(244, 123, 42, 0.22);
  border-color: var(--orange);
}

.profile-form small,
.admin-form small,
.settings-form small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: none;
}

.tracking-status-card {
  padding: 13px;
  border: 1px solid rgba(244, 123, 42, 0.42);
  border-radius: 8px;
  background: #ffffff;
}

.tracking-status-card strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tracking-status-card p {
  margin: 5px 0 0;
  color: var(--orange);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.tracking-map {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 0 0 2px var(--orange);
}

.tracking-map svg {
  width: 100%;
  height: auto;
  display: block;
}

.tracking-waterline {
  fill: none;
  stroke: rgba(244, 123, 42, 0.28);
  stroke-width: 5;
  stroke-linecap: round;
}

#trackingLine {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#trackingDot {
  fill: var(--orange);
  stroke: var(--ink);
  stroke-width: 2;
}

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

.tracking-grid article {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.tracking-grid span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tracking-grid strong {
  color: var(--orange);
  font-size: 1.25rem;
  font-weight: 950;
}

.tracking-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tracking-action {
  min-height: 50px;
  padding: 8px;
  border: 1px solid var(--orange);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tracking-action.primary {
  background: linear-gradient(180deg, var(--orange) 0%, #202124 100%);
  color: #ffffff;
}

.tracking-action.danger {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.tracking-action:disabled {
  opacity: 0.42;
}

.pinboard-shell {
  display: grid;
  gap: 12px;
}

.pinboard-hero,
.pinboard-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(32, 33, 36, 0.09);
}

.pinboard-hero {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-color: rgba(244, 123, 42, 0.42);
}

.pinboard-hero img {
  width: 86px;
  height: 86px;
  border: 2px solid var(--orange);
  border-radius: 8px;
  object-fit: cover;
}

.pinboard-hero strong,
.pinboard-list strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
}

.pinboard-hero p,
.pinboard-list p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.4;
}

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

.pinboard-form {
  gap: 12px;
}

.pinboard-form[hidden] {
  display: none;
}

.pinboard-form textarea {
  min-height: 104px;
  resize: vertical;
}

.pinboard-feed-tools {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) 1.4fr;
  gap: 10px;
  align-items: end;
}

.pinboard-feed-tools label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.pinboard-feed-tools input {
  width: 100%;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.pinboard-feed-tools input:focus {
  outline: 3px solid rgba(244, 123, 42, 0.22);
  border-color: var(--orange);
}

.pinboard-feed-tools .profile-submit.active {
  background: linear-gradient(180deg, #202124 0%, var(--orange) 100%);
}

.pinboard-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.pinboard-pin-option {
  min-height: 50px;
  display: flex !important;
  align-items: center;
  gap: 9px !important;
  padding: 10px 12px;
  border: 1px solid rgba(244, 123, 42, 0.42);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  white-space: nowrap;
}

.pinboard-pin-option input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--orange);
}

.pinboard-photo-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(244, 123, 42, 0.36);
  border-radius: 8px;
  background: #ffffff;
}

.pinboard-photo-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.pinboard-photo-preview {
  display: grid;
  gap: 9px;
}

.pinboard-photo-preview img {
  width: 100%;
  max-height: 260px;
  border: 3px solid var(--orange);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 14px 26px rgba(32, 33, 36, 0.14);
}

.pinboard-photo-remove {
  justify-self: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.pinboard-list article,
.pinboard-post {
  padding: 13px;
  box-shadow: inset 5px 0 0 var(--orange), 0 16px 30px rgba(32, 33, 36, 0.08);
}

.pinboard-post.pinned {
  border-color: var(--ink);
  box-shadow: inset 5px 0 0 var(--ink), 0 0 0 2px var(--orange), 0 18px 34px rgba(32, 33, 36, 0.12);
}

.pinboard-post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.pinboard-list span {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.pinboard-post-head time {
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 950;
}

.pinboard-list small {
  display: block;
  margin-top: 4px;
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 850;
}

.pinboard-photo-thumb {
  width: min(100%, 210px);
  display: block;
  margin-top: 10px;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--orange);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 0 0 2px var(--ink), 0 12px 22px rgba(32, 33, 36, 0.12);
}

.pinboard-post-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.pinboard-photo-modal-card {
  max-width: min(92vw, 620px);
}

.pinboard-photo-modal-card img {
  width: 100%;
  max-height: 72vh;
  display: block;
  border: 3px solid var(--orange);
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
}

.pinboard-engagement-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.pinboard-like-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid rgba(244, 123, 42, 0.58);
  border-radius: 999px;
  background: #ffffff;
  color: var(--orange);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 950;
}

.pinboard-like-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.pinboard-like-button.liked {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(244, 123, 42, 0.16);
}

.pinboard-like-button.liked svg {
  fill: var(--orange);
}

.pinboard-like-count {
  min-width: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--orange);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 950;
  text-align: left;
}

.pinboard-comment-icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  overflow: hidden;
}

.pinboard-comment-icon-button img {
  width: 38px;
  height: 38px;
  display: block;
  object-fit: contain;
}

.pinboard-comment-count {
  min-width: 34px;
  min-height: 34px;
  margin-right: auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--orange);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 950;
  text-align: left;
}

.pinboard-comments {
  display: none;
  gap: 9px;
  margin-top: 8px;
  padding-top: 9px;
  border-top: 1px solid rgba(244, 123, 42, 0.2);
}

.pinboard-comments.open {
  display: grid;
}

.pinboard-comment-list {
  display: grid;
  gap: 8px;
}

.pinboard-comment {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(244, 123, 42, 0.24);
  border-radius: 8px;
  background: #ffffff;
}

.pinboard-comment strong {
  display: block;
  color: var(--ink);
  font-size: 0.82rem;
}

.pinboard-comment p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.pinboard-comment-like {
  min-width: 46px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(244, 123, 42, 0.52);
  border-radius: 999px;
  background: transparent;
  color: var(--orange);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 950;
}

.pinboard-comment-like svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.pinboard-comment-like.liked svg {
  fill: var(--orange);
}

.pinboard-comment-like span {
  margin: 0;
  color: var(--orange);
  font-size: 0.72rem;
  line-height: 1;
  text-transform: none;
}

.pinboard-comment-form {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
}

.pinboard-comment-form input {
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.pinboard-comment-form button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--orange);
  border-radius: 50%;
  background: transparent;
}

.pinboard-comment-form svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.event-edit-button.pin {
  border-color: var(--orange);
}

@media (max-width: 430px) {
  .pinboard-feed-tools {
    grid-template-columns: 1fr;
  }

  .pinboard-tools {
    grid-template-columns: 1fr;
  }
}

.profile-photo {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
}

.photo-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.profile-photo-preview {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 20px;
  background: var(--panel-soft);
  box-shadow: 0 0 0 3px var(--orange), 0 14px 28px rgba(32, 33, 36, 0.16);
  color: var(--blue-strong);
  font-size: 1.6rem;
  font-weight: 950;
}

.profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-upload {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 78px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  text-transform: uppercase;
}

.photo-upload-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 3px solid var(--orange);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 10px 20px rgba(32, 33, 36, 0.1);
}

.photo-upload svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.photo-upload-text {
  max-width: 78px;
}

.photo-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.profile-submit {
  min-height: 50px;
  border: 1px solid var(--orange);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--orange) 0%, #202124 100%);
  color: #ffffff;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-shell {
  display: grid;
  gap: 10px;
}

.admin-summary,
.admin-user-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 30px rgba(32, 33, 36, 0.09);
}

.admin-summary strong,
.admin-user-card strong {
  display: block;
  color: var(--blue-strong);
  font-size: 0.86rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-summary p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.admin-users {
  display: grid;
  gap: 10px;
}

.admin-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-user-card span {
  display: block;
  margin-top: 5px;
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 850;
}

.admin-user-card .admin-login {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-user-card small {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid rgba(244, 123, 42, 0.4);
  border-radius: 8px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-user-actions,
.admin-form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.whatsapp-link {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid var(--orange);
  border-radius: 8px;
  background: rgba(244, 123, 42, 0.08);
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.round-action-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 123, 42, 0.55);
  border-radius: 50%;
  background: #ffffff;
  color: var(--orange);
}

.round-action-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.round-action-button.danger {
  border-color: rgba(32, 33, 36, 0.35);
  color: var(--blue-strong);
}

.admin-cancel-button {
  min-height: 50px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--blue-strong);
  font-weight: 950;
  text-transform: uppercase;
}

.settings-logout-button {
  width: 100%;
  min-height: 50px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--blue-strong);
  font-weight: 950;
  text-transform: uppercase;
}

.spot-form label {
  display: grid;
  gap: 7px;
  color: var(--blue-strong);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.spot-form select {
  width: 100%;
  min-height: 48px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.spot-card {
  min-height: 92px;
  padding: 14px;
}

.spot-card strong {
  display: block;
  color: var(--blue-strong);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.spot-card p {
  margin: 8px 0 0;
  color: var(--orange);
  font-size: 1.3rem;
  font-weight: 950;
  line-height: 1.1;
}

.spot-card:nth-child(7),
.spot-card:nth-child(8),
.spot-source-card {
  grid-column: 1 / -1;
}

.spot-source-card p {
  color: var(--orange);
  font-size: 1.12rem;
  line-height: 1.25;
}

.spot-card:nth-child(7),
.spot-card:nth-child(8),
 .spot-source-card {
  min-height: 126px;
}

.spot-card:nth-child(7) p,
.spot-card:nth-child(8) p,
 .spot-source-card p {
  display: grid;
  gap: 7px;
  color: var(--orange);
  font-size: 1.12rem;
  line-height: 1.25;
}

.spot-card:nth-child(7) p span,
.spot-card:nth-child(8) p span,
 .spot-source-card p span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--orange);
}

.spot-status {
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(244, 123, 42, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
}

.kite-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 30px rgba(32, 33, 36, 0.09);
}

.kite-form label {
  display: grid;
  gap: 7px;
  color: var(--blue-strong);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.kite-form .field-grid label {
  min-height: 104px;
  grid-template-rows: 18px 34px 28px;
  align-items: center;
}

.kite-form input,
.kite-form select {
  width: 100%;
  min-height: 48px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.kite-form input[type="range"] {
  min-height: 34px;
  padding: 0;
  accent-color: var(--orange);
}

.kite-form input:focus,
.kite-form select:focus {
  outline: 3px solid rgba(244, 123, 42, 0.22);
  border-color: var(--orange);
}

.kite-form small {
  min-height: 28px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: none;
}

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

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

.range-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.range-values span {
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px 10px;
  border: 1px solid rgba(244, 123, 42, 0.42);
  border-radius: 8px;
  background: #ffffff;
  color: var(--orange);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.15;
  box-shadow: 0 10px 22px rgba(32, 33, 36, 0.08);
}

.range-values strong {
  display: block;
  margin-top: 2px;
  color: var(--blue-strong);
  font-size: 1.28rem;
  line-height: 1;
}

.range-values em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.calc-submit {
  min-height: 50px;
  border: 1px solid var(--orange);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--orange) 0%, #202124 100%);
  color: #ffffff;
  font-weight: 950;
  text-transform: uppercase;
}

.kite-options {
  display: grid;
  gap: 8px;
}

.kite-factor-info {
  display: grid;
  gap: 8px;
}

.kite-factor-info article {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.kite-factor-info strong {
  color: var(--blue-strong);
}

.kite-factor-info p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.42;
}

.kite-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f2f4f7;
}

.kite-option strong {
  color: var(--blue-strong);
  font-size: 1.25rem;
}

.kite-option span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.kite-option.good {
  background: #daf8df;
}

.kite-option.soft-good {
  background: #edf9d8;
}

.kite-option.soft-warning {
  background: #fff4bf;
}

.kite-option.warning {
  background: #ffe09b;
}

.kite-option.danger {
  background: #ffd6d6;
}

.kite-option.neutral {
  background: #e3e7ec;
}

.kite-option.muted {
  background: #f3f4f6;
  opacity: 0.82;
}

.kite-result {
  border-color: rgba(244, 123, 42, 0.52);
}

.kite-result span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.kite-result strong {
  display: block;
  margin: 5px 0 8px;
  color: var(--orange);
  font-size: 2.2rem;
  line-height: 1;
}

.kite-result b {
  color: var(--blue-strong);
}

.formula-note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}

.info-list strong,
.calculator-shell strong,
.tip-list strong,
.step-list strong {
  color: var(--blue-strong);
}

.info-list p,
.calculator-shell p,
.tip-list p,
.step-list p {
  margin-bottom: 0;
}

.step-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 14px;
}

.step-list span,
.number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 950;
}

.day-tabs {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 10px;
}

.day-tab {
  min-height: 58px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  text-align: center;
}

.day-tab strong,
.day-tab span {
  display: block;
}

.day-tab strong {
  font-size: 0.88rem;
  text-transform: uppercase;
}

.day-tab span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.25;
  text-transform: uppercase;
}

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

.day-summary .eyebrow {
  margin-bottom: 4px;
}

.day-summary span {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.workout-save-button {
  min-height: 52px;
  margin-top: 2px;
  border: 1px solid var(--orange);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--orange) 0%, #202124 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 14px 26px rgba(32, 33, 36, 0.12);
}

.exercise-card {
  overflow: hidden;
}

.exercise-toggle {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.exercise-toggle small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
}

.chevron {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--orange);
  background: #ffffff;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 900;
}

.exercise-detail {
  display: none;
  padding: 0 12px 14px;
}

.exercise-card.open .exercise-detail {
  display: block;
}

.meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 2px 0 12px;
}

.meta-row span {
  min-height: 52px;
  padding: 9px;
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.76rem;
}

.meta-row strong {
  display: block;
  margin-top: 3px;
  color: var(--blue-strong);
  font-size: 0.9rem;
}

.exercise-detail ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.42;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: min(100%, 540px);
  margin: 0 auto;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(239, 246, 251, 0.9);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}

body:not(.is-page) .bottom-nav {
  padding-top: 7px;
  padding-bottom: calc(7px + env(safe-area-inset-bottom));
}

@media (max-height: 680px) {
  body:not(.is-page) .hero {
    padding-top: 8px;
  }

  body:not(.is-page) .eyebrow {
    margin-bottom: 5px;
    font-size: 0.66rem;
  }

  body:not(.is-page) .hero p:not(.tagline) {
    display: none;
  }

  body:not(.is-page) .mode-tile {
    min-height: 52px;
  }
}

@media (max-height: 590px) {
  body:not(.is-page) .brand small,
  body:not(.is-page) .mode-tile small {
    display: none;
  }

  body:not(.is-page) .mode-tile {
    min-height: 48px;
  }
}

.nav-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--blue-strong);
  font-weight: 900;
}

.nav-item img {
  width: 30px;
  height: 30px;
}

.nav-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 760px) {
  .app-shell {
    padding-top: 22px;
  }

  .hero {
    min-height: 26vh;
  }

}
