.shoe-page {
  --shoe-blue: #0d4d8b;
  --shoe-blue-dark: #093965;
  --shoe-border: #d4e3f2;
  --shoe-soft: #f5f9fe;
  --shoe-orange: #f28c28;
  --shoe-text: #16324f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: grid;
  gap: 18px;
  padding-bottom: 24px;
}

.shoe-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid #b7d4f2;
  border-radius: 22px;
  padding: clamp(20px, 4vw, 34px);
  background:
    radial-gradient(105% 130% at 100% 0%, rgba(242,140,40,.18) 0%, rgba(242,140,40,0) 48%),
    linear-gradient(180deg, #f7fbff 0%, #fff 100%);
  box-shadow: 0 12px 30px rgba(18,66,110,.14);
}

.shoe-hero-kicker,
.shoe-section-kicker {
  margin: 0 0 8px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #2e6aa4;
}

.shoe-hero h1 {
  margin: 0;
  color: var(--shoe-blue);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.08;
}

.shoe-hero p {
  max-width: 800px;
  margin: 12px 0 0;
  color: #38597c;
  font-size: 1.02rem;
}

.shoe-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.shoe-flow span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid #c9ddf2;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: #24476a;
  font-size: .84rem;
  font-weight: 700;
}

.shoe-tool-card,
.shoe-info-card,
.shoe-discipline-picker {
  border: 1px solid var(--shoe-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(18,66,110,.08);
}

.shoe-discipline-picker {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(360px, 1.2fr);
  align-items: center;
  gap: 18px;
  padding: clamp(16px, 3vw, 22px);
}

.shoe-discipline-picker h2 {
  margin: 0;
  color: var(--shoe-blue);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
}

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

.shoe-discipline-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 9px;
  align-items: center;
  min-height: 74px;
  padding: 12px 14px;
  border: 2px solid #d0e1f1;
  border-radius: 14px;
  background: #f8fbff;
  color: #244b70;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.shoe-discipline-tab > span { grid-row: 1 / 3; font-size: 1.35rem; }
.shoe-discipline-tab strong { font-size: 1rem; }
.shoe-discipline-tab small { color: #698198; font-size: .76rem; }
.shoe-discipline-tab[aria-selected="true"] {
  border-color: var(--shoe-blue);
  background: #eaf4ff;
  box-shadow: 0 0 0 3px rgba(13,77,139,.08);
}

.shoe-discipline-tab:focus-visible,
.shoe-road-distance:focus-visible {
  outline: 3px solid rgba(242,140,40,.42);
  outline-offset: 2px;
}

.shoe-discipline-panel {
  display: grid;
  gap: 18px;
}

.shoe-discipline-panel[hidden] { display: none !important; }

.shoe-road-distance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.shoe-road-distance {
  min-height: 88px;
  padding: 13px 10px;
  border: 2px solid #d4e3f2;
  border-radius: 13px;
  background: #f8fbff;
  color: #1d4b75;
  cursor: pointer;
  font: inherit;
}

.shoe-road-distance strong,
.shoe-road-distance small { display: block; }
.shoe-road-distance strong { font-size: 1rem; }
.shoe-road-distance small { margin-top: 5px; color: #6c839a; font-size: .76rem; }
.shoe-road-distance[aria-pressed="true"] {
  border-color: var(--shoe-blue);
  background: var(--shoe-blue);
  color: #fff;
}
.shoe-road-distance[aria-pressed="true"] small { color: #dcecff; }

.shoe-road-custom-form {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #dfeaf5;
}

.shoe-road-custom-form > label {
  display: block;
  margin-bottom: 6px;
  color: #345574;
  font-size: .82rem;
  font-weight: 800;
}

.shoe-road-custom-row { display: flex; align-items: stretch; gap: 9px; }
.shoe-road-input-wrap {
  display: flex;
  align-items: center;
  width: min(220px, 100%);
  border: 1px solid #bfd2e5;
  border-radius: 10px;
  background: #fff;
}
.shoe-road-input-wrap input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 4px 10px 11px;
  background: transparent;
  color: #173b5d;
  font: inherit;
}
.shoe-road-input-wrap span { padding: 0 11px 0 5px; color: #6c839a; font-weight: 700; }
.shoe-road-method-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }

.shoe-tool-card {
  padding: clamp(16px, 3vw, 24px);
}

.shoe-tool-head h2,
.shoe-selected h2,
.shoe-method h2 {
  margin: 0;
  color: var(--shoe-blue);
}

.shoe-tool-head p,
.shoe-method > p {
  margin: 6px 0 0;
  color: #58718b;
}

.shoe-search-wrap {
  position: relative;
  margin-top: 18px;
}

.shoe-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 16px;
  border: 2px solid #bcd6f4;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(13,77,139,.08);
}

.shoe-search-field:focus-within {
  border-color: #4c8bc5;
  box-shadow: 0 0 0 4px rgba(76,139,197,.13);
}

.shoe-search-icon {
  flex: 0 0 auto;
  color: #4c7094;
  font-size: 1.15rem;
}

.shoe-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #173b5d;
  font: inherit;
  font-size: 1rem;
}

.shoe-search-field input::placeholder { color: #7890a8; }

.shoe-search-status,
.shoe-gpx-status,
.shoe-analysis-status {
  min-height: 1.25em;
  margin: 7px 2px 0;
  color: #688096;
  font-size: .82rem;
}

.shoe-suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% - 2px);
  left: 0;
  right: 0;
  max-height: min(560px, 68vh);
  overflow: auto;
  border: 1px solid #bfd4e9;
  border-radius: 0 0 16px 16px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(18,66,110,.18);
}

.shoe-suggestion-title {
  padding: 11px 14px 7px;
  color: #55728e;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.shoe-event-suggestion {
  border-top: 1px solid #edf3f9;
  padding: 12px 14px;
}

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

.shoe-event-head strong {
  display: block;
  color: #153b60;
  line-height: 1.25;
}

.shoe-event-head span:not(.shoe-format-count) {
  display: block;
  margin-top: 3px;
  color: #71869b;
  font-size: .81rem;
}

.shoe-event-description {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: #536f89;
  font-size: .82rem;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shoe-event-detail,
.shoe-selected-detail {
  color: var(--shoe-blue);
  font-size: .82rem;
  font-weight: 800;
  text-underline-offset: 2px;
}

.shoe-event-detail {
  display: inline-flex;
  margin-top: 8px;
}

.shoe-selected-detail {
  display: inline-flex;
  margin-top: 7px;
}

.shoe-selected-detail[hidden] { display: none !important; }

.shoe-format-count {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: #edf5fd;
  color: #376c9e;
  font-size: .72rem;
  font-weight: 700;
}

.shoe-format-list {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}

.shoe-format-option,
.shoe-more-formats,
.shoe-suggestion-footer button,
.shoe-inline-action {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.shoe-format-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f8fbff;
  color: #173d61;
  text-align: left;
}

.shoe-format-option:hover,
.shoe-format-option:focus-visible {
  outline: none;
  background: #eaf4ff;
}

.shoe-format-option small {
  flex: 0 0 auto;
  color: #64809c;
  font-size: .75rem;
}

.shoe-format-option:disabled { opacity: .55; cursor: wait; }

.shoe-more-formats {
  justify-self: start;
  padding: 5px 3px;
  background: transparent;
  color: var(--shoe-blue);
  font-size: .8rem;
  font-weight: 700;
}

.shoe-suggestion-footer {
  position: sticky;
  bottom: 0;
  padding: 10px 14px;
  border-top: 1px solid #dce9f6;
  background: #f6faff;
}

.shoe-suggestion-footer button,
.shoe-inline-action {
  background: transparent;
  color: var(--shoe-blue);
  font-weight: 800;
}

.shoe-search-empty {
  display: grid;
  gap: 5px;
  padding: 18px 14px;
  color: #526e89;
}

.shoe-source-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 13px;
  color: #7890a7;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.shoe-source-divider::before,
.shoe-source-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: #dfeaf5;
}

.shoe-alt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.shoe-alt-action {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid #d5e4f2;
  border-radius: 13px;
  background: #f9fcff;
  color: #1b456b;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.shoe-alt-action:hover,
.shoe-alt-action:focus-visible {
  outline: none;
  border-color: #9fc5ea;
  background: #f1f8ff;
}

.shoe-alt-action strong { display: block; }
.shoe-alt-action small { display: block; margin-top: 2px; color: #6d849a; }
.shoe-alt-icon { font-size: 1.35rem; }

.shoe-manual-panel,
.shoe-adjustments {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dbe8f5;
  border-radius: 13px;
  background: #f8fbff;
}

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

.shoe-manual-grid label,
.shoe-adjust-grid label {
  display: grid;
  gap: 5px;
  color: #345574;
  font-size: .82rem;
  font-weight: 700;
}

.shoe-manual-grid input,
.shoe-manual-grid select,
.shoe-adjust-grid input {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid #bfd2e5;
  border-radius: 9px;
  background: #fff;
  padding: 8px 10px;
  color: #173b5d;
  font: inherit;
}

.shoe-submit-row { margin-top: 12px; }

.shoe-primary-button,
.shoe-secondary-button,
.shoe-text-button {
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.shoe-primary-button {
  border: 1px solid var(--shoe-blue);
  background: var(--shoe-blue);
  color: #fff;
  padding: 10px 16px;
}

.shoe-primary-button:hover { background: var(--shoe-blue-dark); }

.shoe-secondary-button {
  border: 1px solid #c8dbed;
  background: #f1f7fd;
  color: var(--shoe-blue);
  padding: 8px 13px;
}

.shoe-text-button {
  border: 0;
  background: transparent;
  color: var(--shoe-blue);
  padding: 5px 2px;
}

.shoe-selected {
  display: grid;
  gap: 13px;
  padding: 18px;
  border: 2px solid #bcd6f4;
  border-radius: 18px;
  background: linear-gradient(180deg,#fff 0%,#f6faff 100%);
}

.shoe-selected[hidden],
.shoe-recommendations-section[hidden],
.shoe-manual-panel[hidden],
.shoe-adjustments[hidden],
.shoe-suggestions[hidden],
.shoe-text-button[hidden] { display: none !important; }

.shoe-selected-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.shoe-selected h2 { font-size: 1.15rem; }
.shoe-selected-name { margin: 4px 0 0; color: #173b5d; font-size: 1.04rem; font-weight: 800; }
.shoe-selected-meta { margin: 4px 0 0; color: #5a7793; }

.shoe-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.shoe-badges span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #275d8e;
  font-size: .78rem;
  font-weight: 800;
}

.shoe-selected-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.shoe-recommendations-section {
  display: grid;
  gap: 12px;
}

.shoe-results-intro {
  padding: 0 3px;
}

.shoe-results-intro h2 { margin: 0; color: var(--shoe-blue); }
.shoe-results-intro p { margin: 5px 0 0; color: #607a93; }

.shoe-method {
  padding: clamp(17px, 3vw, 24px);
}

.shoe-method-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 9px;
  margin-top: 15px;
}

.shoe-method-item {
  padding: 12px;
  border: 1px solid #dbe7f3;
  border-radius: 12px;
  background: #f9fcff;
}

.shoe-method-item strong { display: block; color: #1d4b75; }
.shoe-method-item span { display: block; margin-top: 4px; color: #6c839a; font-size: .82rem; }

.shoe-method-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 4px solid var(--shoe-orange);
  border-radius: 0 10px 10px 0;
  background: #fff8ef;
  color: #71441d;
  font-weight: 700;
}

@media (max-width: 820px) {
  .shoe-discipline-picker { grid-template-columns: 1fr; }
  .shoe-road-distance-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .shoe-alt-actions,
  .shoe-manual-grid,
  .shoe-adjust-grid { grid-template-columns: 1fr; }
  .shoe-method-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .shoe-selected-top { flex-direction: column; }
  .shoe-format-option { align-items: flex-start; flex-direction: column; gap: 3px; }
}

@media (max-width: 520px) {
  .shoe-discipline-tabs,
  .shoe-road-distance-grid,
  .shoe-road-method-grid { grid-template-columns: 1fr; }
  .shoe-road-custom-row { align-items: stretch; flex-direction: column; }
  .shoe-road-input-wrap { width: 100%; min-height: 44px; }
  .shoe-tool-card { padding: 14px; }
  .shoe-search-field { min-height: 52px; padding: 0 12px; }
  .shoe-suggestions { max-height: 64vh; }
  .shoe-method-grid { grid-template-columns: 1fr; }
}
