.page-ios-profile {
  background: #0c1016;
  color: #e6ecff;
  min-height: 100vh;
}

body.page-ios-profile {
  margin: 0;
  background: #0c1016;
}

.ios-profile-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0.9rem 0.8rem calc(1.35rem + var(--knotnow-ios-tab-clearance, 3.75rem));
  display: grid;
  gap: 1rem;
}

.ios-profile-page-header {
  margin-bottom: 0.25rem;
}

.ios-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 0;
}

.ios-profile-stat {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0.25rem 0.35rem;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 0;
}

.ios-profile-stat:last-child {
  border-right: none;
}

.ios-profile-stat:hover .ios-profile-stat-value {
  color: #fff;
}

.ios-profile-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.ios-profile-stat-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.ios-profile-stat-value--action {
  font-size: 1.25rem;
  line-height: 1;
}

.ios-profile-back-link {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.ios-profile-back-link:hover {
  color: #fff;
  text-decoration: underline;
}

.ios-mates-invite-copy {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.62);
}

.ios-mates-invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.ios-mates-section {
  margin: 0 0 1.15rem;
}

.ios-mates-section-heading {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.ios-mates-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font: inherit;
  margin-bottom: 0.55rem;
}

.ios-mates-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ios-mates-row-body {
  flex: 1 1 auto;
  min-width: 0;
}

.ios-mates-name {
  font-weight: 700;
  color: #9ec1ff;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.ios-mates-name:hover {
  text-decoration: underline;
}

.ios-mates-meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.ios-mates-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.ios-mates-actions .ios-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
}

.ios-mates-empty {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
}

.ios-mates-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  display: inline-block;
}

.ios-clubs-card {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 0 0.55rem;
  color: inherit;
}

.ios-clubs-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  color: #fff;
}

.ios-clubs-card p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.ios-clubs-form input,
.ios-clubs-form textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font: inherit;
}

.ios-clubs-detail {
  margin-top: 1rem;
}

.ios-clubs-detail-card {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ios-clubs-detail-title {
  margin: 0 0 0.35rem;
  color: #fff;
}

.ios-clubs-detail-copy {
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

.ios-clubs-detail-sub {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.ios-clubs-member {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
}

.ios-clubs-role {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ios-clubs-status {
  min-height: 1.2rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.ios-clubs-status.err {
  color: #ff8a9a;
}

.ios-clubs-invite-block {
  margin-top: 1rem;
}

.ios-clubs-invite-block input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font: inherit;
  margin-bottom: 0.5rem;
}

.page-ios-profile .ios-profile-hub-tabs .forecast-hub-tab {
  font-size: 0.68rem;
  padding: 0.48rem 0.22rem;
}

.ios-profile-crew-field {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ios-profile-crew-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.35rem 0 0.25rem;
}

.ios-profile-crew-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.ios-profile-crew-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}

.ios-profile-crew-chip--accent {
  border-color: rgba(220, 74, 109, 0.45);
  background: rgba(220, 74, 109, 0.14);
  color: #ffb3c4;
}

.ios-profile-crew-chip--accent:hover {
  background: rgba(220, 74, 109, 0.22);
  color: #fff;
}

.ios-profile-page-title {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}

.ios-profile-page-title-meta {
  font-size: 0.92rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.42);
}

.ios-profile-logout-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ios-profile-logout-link:active {
  color: rgba(255, 255, 255, 0.82);
}

.ios-profile-logout-link:disabled {
  opacity: 0.55;
  cursor: wait;
}

.ios-profile-page-sub {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #9aa6bf;
  max-width: 40rem;
}

.ios-profile-card,
.ios-profile-app-missing {
  background: #161b24;
  border: 1px solid rgba(122, 141, 177, 0.28);
  border-radius: 14px;
  padding: 0.85rem;
}

.ios-profile-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ios-profile-hero-copy {
  flex: 1;
  min-width: 0;
}

.ios-profile-hero .ios-profile-stats {
  flex: 1 1 100%;
}

.ios-profile-forecast-defaults {
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.ios-profile-forecast-defaults-copy {
  flex: 1;
  min-width: 0;
}

.ios-profile-forecast-defaults-intro {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #9aa6bf;
}

.ios-profile-forecast-defaults-link {
  flex-shrink: 0;
  align-self: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: #7dd3fc;
  text-decoration: none;
  padding: 0.35rem 0.5rem;
}

.ios-profile-app-missing p {
  margin: 0;
  color: #b8c0d4;
}

.ios-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ios-profile-avatar.ios-profile-avatar--icon {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
}

.ios-profile-avatar-icon {
  display: block;
}

.ios-profile-avatar.ios-profile-avatar--photo,
img.ios-profile-avatar {
  object-fit: cover;
  display: block;
}

.ios-profile-owner {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.ios-profile-meta {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #adb4c4;
}

.ios-profile-meta a {
  color: #7dd3fc;
  text-decoration: none;
}

.ios-profile-meta a:hover {
  text-decoration: underline;
}

.page-ios-profile .ios-profile-form {
  display: contents;
}

.page-ios-profile .ios-profile-identity {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}

.page-ios-profile .ios-profile-identity .profile-photo-row {
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
}

.page-ios-profile .ios-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.25rem 1.5rem;
  align-items: start;
}

@media (max-width: 720px) {
  .page-ios-profile .ios-profile-layout {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
}

.page-ios-profile .ios-profile-col {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}

.page-ios-profile .ios-profile-save-row--profile {
  margin-top: 0.15rem;
  padding-top: 0.15rem;
  padding-bottom: 0.35rem;
}

@media (min-width: 721px) {
  .page-ios-profile .ios-profile-col--photo .profile-photo-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.page-ios-profile .profile-field label.profile-label,
.page-ios-profile .profile-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.4rem;
}

.page-ios-profile .profile-field input[type='text'],
.page-ios-profile .profile-field input[type='number'],
.page-ios-profile .profile-field input[type='email'],
.page-ios-profile .profile-field textarea.profile-textarea {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
}

.page-ios-profile .profile-field input[type='number'] {
  font-variant-numeric: tabular-nums;
}

.page-ios-profile .profile-field input[type='email'][readonly] {
  opacity: 0.78;
  cursor: default;
}

.page-ios-profile .profile-field textarea.profile-textarea {
  font-variant-numeric: normal;
  line-height: 1.45;
  resize: vertical;
}

.page-ios-profile .profile-field input::placeholder,
.page-ios-profile .profile-field textarea.profile-textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.page-ios-profile .profile-field input:focus,
.page-ios-profile .profile-field textarea.profile-textarea:focus {
  outline: none;
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: 0 0 0 2px rgba(37, 146, 194, 0.25);
}

.page-ios-profile .profile-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.page-ios-profile .profile-checkbox-input {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.page-ios-profile .profile-field-hint {
  display: block;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.48);
  margin-top: 0.4rem;
  max-width: 36rem;
}

.page-ios-profile .profile-field-hint a {
  color: #7dd3fc;
  text-decoration: none;
}

.page-ios-profile .profile-field-hint a:hover {
  text-decoration: underline;
}

.page-ios-profile .profile-field-hint.err {
  color: #fca5a5;
}

.page-ios-profile .profile-disciplines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1rem;
}

@media (max-width: 520px) {
  .page-ios-profile .profile-disciplines {
    grid-template-columns: 1fr;
  }
}

.page-ios-profile .profile-discipline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
}

.page-ios-profile .profile-disciplines input {
  accent-color: #2592c2;
}

.page-ios-profile .profile-photo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
}

.page-ios-profile .profile-photo-preview {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-ios-profile .profile-photo-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
}

.page-ios-profile .profile-file-upload {
  width: 100%;
}

.page-ios-profile .profile-file-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.page-ios-profile .profile-file-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.page-ios-profile .profile-file-filename {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  word-break: break-all;
}

.page-ios-profile .profile-strava-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.35rem;
}

.page-ios-profile .profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  box-sizing: border-box;
}

.page-ios-profile .profile-btn-primary {
  background: linear-gradient(135deg, #0fb9e8, #1e6bb8);
  color: #fff;
  border-color: rgba(125, 211, 252, 0.35);
}

.page-ios-profile .profile-btn-primary:hover {
  filter: brightness(1.06);
}

.page-ios-profile .profile-btn-muted {
  background: rgba(255, 255, 255, 0.08);
  color: #e6ecff;
  border-color: rgba(255, 255, 255, 0.18);
}

.page-ios-profile .profile-btn-muted:hover {
  background: rgba(255, 255, 255, 0.12);
}

.page-ios-profile .ios-profile-danger {
  margin: 1.75rem 0 0.5rem;
  padding: 1rem 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.22);
}

/* Data tab: keep delete far below Strava and tucked under a summary. */
.page-ios-profile .ios-profile-danger--data-tab {
  margin: 5.5rem 0 2rem;
  padding: 0.85rem 0.95rem 1rem;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.page-ios-profile .ios-profile-danger-details {
  margin: 0;
}

.page-ios-profile .ios-profile-danger-summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.45);
  user-select: none;
}

.page-ios-profile .ios-profile-danger-summary::-webkit-details-marker {
  display: none;
}

.page-ios-profile .ios-profile-danger-details[open] .ios-profile-danger-summary {
  margin-bottom: 0.85rem;
  color: rgba(254, 226, 226, 0.72);
}

.page-ios-profile .ios-profile-danger--data-tab .ios-profile-danger-title {
  color: rgba(254, 202, 202, 0.88);
  font-size: 0.88rem;
}

.page-ios-profile .ios-profile-danger--data-tab .ios-profile-danger-copy,
.page-ios-profile .ios-profile-danger--data-tab .ios-profile-danger-hint {
  color: rgba(255, 255, 255, 0.55);
}

.page-ios-profile .ios-profile-danger-title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fecaca;
}

.page-ios-profile .ios-profile-danger-copy {
  margin: 0 0 0.45rem;
  font-size: 0.84rem;
  line-height: 1.4;
  color: rgba(254, 226, 226, 0.88);
  max-width: 36rem;
}

.page-ios-profile .ios-profile-danger-hint {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(254, 226, 226, 0.7);
  max-width: 36rem;
}

.page-ios-profile .ios-profile-danger-confirm {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(248, 113, 113, 0.28);
}

.page-ios-profile .ios-profile-danger-confirm-copy {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fecaca;
  max-width: 36rem;
}

.page-ios-profile .ios-profile-danger-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.page-ios-profile .profile-btn-danger {
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  border-color: rgba(254, 202, 202, 0.45);
}

.page-ios-profile .profile-btn-danger:hover {
  filter: brightness(1.06);
}

.page-ios-profile .profile-btn-danger:disabled {
  opacity: 0.55;
  cursor: wait;
}

.page-ios-profile #ios-profile-delete-status {
  margin-top: 0.65rem;
}

.page-ios-profile #ios-profile-delete-status.err {
  color: #fecaca;
}

.page-ios-profile .profile-file-trigger {
  cursor: pointer;
}

.page-ios-profile .profile-status {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(125, 211, 252, 0.95);
}

.page-ios-profile .profile-status.err {
  color: #fca5a5;
}

/* Default units (device prefs; shared with Forecast legend). */
.page-ios-profile .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Profile hub tabs — self-contained (app shell may not load /forecast-hub.css) */
.page-ios-profile .ios-profile-hub-tabs,
.page-ios-profile .ios-profile-units-subtabs,
.page-ios-profile .ios-profile-sessions-subtabs,
.page-ios-profile .ios-profile-crew-subtabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-ios-profile .ios-profile-hub-tabs {
  margin-bottom: 0.75rem;
}

.page-ios-profile .ios-profile-units-subtabs {
  margin-bottom: 0.65rem;
}

.page-ios-profile .ios-profile-hub-tabs .forecast-hub-tab,
.page-ios-profile .ios-profile-units-subtabs .forecast-hub-tab,
.page-ios-profile .ios-profile-sessions-subtabs .forecast-hub-tab,
.page-ios-profile .ios-profile-crew-subtabs .forecast-hub-tab {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  cursor: pointer;
  border-radius: 9px;
  transition: background 0.15s ease, color 0.15s ease;
  box-sizing: border-box;
}

.page-ios-profile .ios-profile-hub-tabs .forecast-hub-tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.5rem 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
}

.page-ios-profile .ios-profile-units-subtabs .forecast-hub-tab,
.page-ios-profile .ios-profile-sessions-subtabs .forecast-hub-tab,
.page-ios-profile .ios-profile-crew-subtabs .forecast-hub-tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.5rem 0.45rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
}

.page-ios-profile .ios-profile-hub-tabs .forecast-hub-tab:hover,
.page-ios-profile .ios-profile-units-subtabs .forecast-hub-tab:hover,
.page-ios-profile .ios-profile-sessions-subtabs .forecast-hub-tab:hover,
.page-ios-profile .ios-profile-crew-subtabs .forecast-hub-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.page-ios-profile .ios-profile-hub-tabs .forecast-hub-tab[aria-selected='true'],
.page-ios-profile .ios-profile-units-subtabs .forecast-hub-tab[aria-selected='true'],
.page-ios-profile .ios-profile-sessions-subtabs .forecast-hub-tab[aria-selected='true'],
.page-ios-profile .ios-profile-crew-subtabs .forecast-hub-tab[aria-selected='true'] {
  background: #fff;
  color: #0f172a;
}

.ios-profile-units-subpanel--hidden {
  display: none;
}

.ios-profile-units-section {
  background: #161b24;
  border: 1px solid rgba(122, 141, 177, 0.28);
  border-radius: 14px;
  padding: 0.9rem 0.85rem 0.85rem;
  margin-bottom: 0.25rem;
}

.ios-profile-app-home-section {
  margin-bottom: 0.85rem;
}
.ios-profile-units-section--forecast {
  margin-top: 0;
  margin-bottom: 0;
}

.ios-profile-units-section--forecast .ios-profile-save-row--profile {
  padding-bottom: 0.35rem;
  margin-bottom: 0;
}

.ios-profile-daily-email-section {
  margin-top: 0.9rem;
  margin-bottom: 0;
}

.ios-profile-daily-email-field {
  margin-top: 0.15rem;
}

.ios-profile-daily-email-field .profile-field-hint {
  margin-top: 0.65rem;
  margin-bottom: 0.35rem;
}

.ios-profile-daily-email-field .ios-profile-units-status {
  margin: 0.35rem 0 0;
  min-height: 1.1em;
}

.ios-profile-contact-section {
  margin-top: 0.65rem;
}

.ios-profile-units-heading {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #e6ecff;
}

.ios-profile-units-intro {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #9aa6bf;
  max-width: 42rem;
}

.ios-profile-units-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 520px) {
  .ios-profile-units-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ios-profile-unit-field .profile-label {
  margin-bottom: 0.28rem;
}

.ios-profile-unit-hint {
  margin: 0 0 0.35rem !important;
  font-size: 0.78rem !important;
}

.ios-profile-unit-select {
  width: 100%;
  max-width: 22rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.35);
  color: #e6ecff;
  font-size: 0.88rem;
  box-sizing: border-box;
}

.ios-profile-units-status {
  margin: 0;
  min-height: 1.1em;
  font-size: 0.8rem;
  color: rgba(125, 211, 252, 0.92);
}

.ios-profile-forecast-prefs-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1.35rem 0 0.5rem;
  padding: 0.72rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(234, 179, 8, 0.42);
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.14), rgba(245, 158, 11, 0.08));
  color: #f5d565;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 0 rgba(234, 179, 8, 0.12);
}

.ios-profile-forecast-prefs-link:active {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.22), rgba(245, 158, 11, 0.14));
  color: #fde68a;
  border-color: rgba(234, 179, 8, 0.55);
}

.ios-profile-forecast-prefs-link-ico {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 1;
  filter: sepia(0.35) saturate(1.8) hue-rotate(5deg) brightness(1.08);
}

.ios-profile-forecast-prefs-link-label {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.25;
}

.ios-profile-forecast-prefs-link-chevron {
  flex: 0 0 auto;
  font-size: 1.15rem;
  line-height: 1;
  color: #eab308;
  opacity: 0.92;
}

/* Strava card — visible below hero, above tabs */
.ios-profile-strava-card {
  background: #161b24;
  border: 1px solid rgba(122, 141, 177, 0.28);
  border-radius: 14px;
  padding: 0.85rem;
}

.ios-profile-strava-card-inner {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ios-profile-strava-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ios-profile-strava-tips-trigger {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.ios-profile-strava-tips-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

.ios-profile-strava-info-btn {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.ios-profile-strava-info-btn:hover,
.ios-profile-strava-info-btn[aria-expanded="true"] {
  color: #fff;
  border-color: rgba(125, 211, 252, 0.45);
  background: rgba(37, 146, 194, 0.18);
}

.ios-profile-strava-info-btn[aria-expanded="true"] + .ios-profile-strava-tips-label,
.ios-profile-strava-tips-trigger:hover .ios-profile-strava-tips-label {
  color: rgba(255, 255, 255, 0.9);
}

.ios-profile-strava-more-tips {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #7dd3fc;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ios-profile-strava-how {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(37, 146, 194, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.22);
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.ios-profile-strava-how[hidden] {
  display: none !important;
}

.ios-profile-strava-how-title {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.ios-profile-strava-how p {
  margin: 0 0 0.45rem;
}

.ios-profile-strava-how p:last-child {
  margin-bottom: 0;
}

.ios-profile-strava-how strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.ios-profile-strava-capacity {
  margin: 0 0 0.85rem;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  background: rgba(220, 74, 109, 0.12);
  border: 1px solid rgba(220, 74, 109, 0.28);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.84rem;
  line-height: 1.5;
}

.ios-profile-strava-capacity[hidden] {
  display: none !important;
}

.ios-profile-strava-capacity-title {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.ios-profile-strava-capacity p {
  margin: 0 0 0.5rem;
}

.ios-profile-strava-capacity p:last-child {
  margin-bottom: 0;
}

.ios-profile-strava-capacity a {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ios-profile-strava-heading {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

.ios-profile-strava-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
}

.ios-profile-strava-included {
  margin: 0.55rem 0 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.ios-profile-strava-included-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.35rem;
}

.ios-profile-strava-included-list {
  margin: 0;
  padding: 0 0 0 1.05rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.ios-profile-strava-included-list li + li {
  margin-top: 0.2rem;
}

.ios-profile-strava-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.ios-profile-strava-stats .profile-strava-stat {
  min-width: 5.5rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ios-profile-strava-stats .profile-strava-stat-val {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.ios-profile-strava-stats .profile-strava-stat-lbl {
  display: block;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.1rem;
}

.ios-profile-strava-connect-wrap,
.profile-strava-connect-wrap {
  margin: 0.15rem 0 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.ios-profile-strava-text-link,
.profile-strava-text-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  text-align: left;
}

.ios-profile-strava-text-link:hover,
.profile-strava-text-link:hover {
  color: #fff;
}

.ios-profile-strava-text-link:disabled,
.profile-strava-text-link:disabled {
  opacity: 0.45;
  cursor: default;
}

.ios-profile-strava-connect-wrap:has(> .strava-connect-btn[style*="display: none"]),
.ios-profile-strava-connect-wrap:has(> .strava-connect-btn[style*="display:none"]),
.profile-strava-connect-wrap:has(> .strava-connect-btn[style*="display: none"]),
.profile-strava-connect-wrap:has(> .strava-connect-btn[style*="display:none"]) {
  display: none !important;
  margin: 0 !important;
}

.ios-profile-strava-intro {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #9aa6bf;
}

.ios-profile-strava-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.ios-profile-strava-compatible,
.profile-strava-compatible {
  flex: 1 0 100%;
  margin: 0.55rem 0 0;
  line-height: 0;
}

.ios-profile-strava-compatible img,
.profile-strava-compatible img {
  display: block;
  width: min(220px, 72vw);
  height: auto;
  opacity: 0.92;
}

.ios-profile-strava-status {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
}

.ios-profile-strava-status.err {
  color: #fca5a5;
}

.ios-profile-strava-status.sessions-strava-hint--busy {
  color: rgba(255, 255, 255, 0.72);
}

.ios-strava-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.62rem 1.15rem;
  border: none;
  border-radius: 4px;
  background: #fc4c02;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-sizing: border-box;
}

.ios-strava-btn:hover {
  filter: brightness(1.05);
}

.ios-strava-btn:active {
  filter: brightness(0.96);
}

.ios-strava-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ios-strava-btn__prefix {
  font-weight: 600;
}

.ios-strava-btn__logo {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.04em;
  font-size: 1.06em;
}

.ios-strava-btn--import {
  background: rgba(252, 76, 2, 0.14);
  border: 1px solid rgba(252, 76, 2, 0.5);
  color: #ff8a5c;
}

.ios-strava-btn--import-all {
  background: transparent;
  border: 1px solid rgba(252, 76, 2, 0.45);
  color: #ff8a5c;
}

.ios-strava-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #adb4c4;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.55rem 0.85rem;
}

.ios-profile-hero--in-panel {
  margin-bottom: 0.85rem;
}

.ios-profile-panel .ios-profile-hero--in-panel + .ios-profile-form {
  margin-top: 0;
}

.ios-profile-panel {
  padding-top: 1rem;
}

.ios-profile-panel--hidden {
  display: none;
}

.ios-profile-panel-stack {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.ios-profile-save-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.35rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.25rem;
}

.page-ios-profile .ios-profile-save-row .profile-btn {
  min-height: 44px;
}

.page-ios-profile .ios-profile-save-row .profile-btn-primary {
  flex: 1 1 auto;
  min-width: 8.5rem;
}

.ios-profile-disciplines-field legend.profile-label {
  margin-bottom: 0.5rem;
}

.ios-profile-unit-field--full {
  grid-column: 1 / -1;
}

.ios-profile-forecast-defaults--panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.ios-profile-forecast-spot-hint {
  display: none;
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #9aa6bf;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-profile-forecast-spot-hint {
  display: block;
  margin: 0.65rem 0 0;
  padding: 0 0.05rem;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast #customization-settings-overview .ios-profile-forecast-spot-hint {
  margin-top: 0.35rem;
}

.ios-profile-forecast-loading {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: #9aa6bf;
}

.ios-profile-forecast-error {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: #fca5a5;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .customise-intro {
  display: none;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .customise-page-content {
  padding: 0;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-compact-setting-card {
  margin-bottom: 0.65rem;
}

/* Customise form inside profile Forecast tab — global.css targets #customise-page */
body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast #customise-page .customization-global-intro {
  color: rgba(255, 255, 255, 0.68) !important;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast #customise-page .customization-global-section {
  background: rgba(0, 102, 153, 0.08) !important;
  border-color: rgba(0, 102, 153, 0.22) !important;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast #customise-page .customization-cancel-btn,
body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast #customise-page .customization-save-btn {
  min-height: 44px;
}

/* Forecast tab — compact global cards (wind speed + schedule) */
body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-profile-forecast-mount {
  width: 100%;
  max-width: 100%;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast #customise-page,
body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .customise-page {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast #customise-page .customise-page-content,
body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .customise-page-content {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast #customization-settings-overview {
  margin: 0 !important;
  padding: 0.9rem 0.85rem;
  background: #161b24;
  border: 1px solid rgba(122, 141, 177, 0.28);
  border-radius: 14px;
  gap: 0.65rem;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-wind-tier-overview-intro {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #9aa6bf;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast #customization-content {
  margin-top: 0.75rem !important;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast #customise-page .customization-global-settings-heading {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #e6ecff;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast #customise-page .customization-global-intro {
  margin: 0 0 0.85rem !important;
  font-size: 0.84rem !important;
  line-height: 1.45 !important;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-wind-tier-overview-block {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.15rem;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-wind-tier-overview-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0.1rem 0.05rem 0.35rem;
}

/* Reset-to-defaults sport presets — self-contained (do not rely on ios-spot-customise.css / global.css) */
#ios-profile-panel-forecast .ios-wind-tier-preset-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

#ios-profile-panel-forecast .ios-wind-tier-preset-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(214, 222, 235, 0.72);
}

#ios-profile-panel-forecast .ios-wind-tier-preset-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

#ios-profile-panel-forecast .ios-wind-preset-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 141, 177, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: #e8edf5;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
}

#ios-profile-panel-forecast .ios-wind-preset-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#ios-profile-panel-forecast .ios-wind-preset-btn--active {
  border-color: rgba(125, 211, 252, 0.7);
  background: rgba(125, 211, 252, 0.14);
  color: #f4fbff;
}

#ios-profile-panel-forecast .ios-wind-preset-btn-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: contain;
}

#ios-profile-panel-forecast .ios-wind-preset-btn-label {
  white-space: nowrap;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-wind-tier-overview-viable {
  display: none;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast #customization-content {
  width: 100%;
  box-sizing: border-box;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast #customization-content .customization-global-section {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .kn-wind-location-only {
  display: none;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-wind-tier-overview-row {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.62rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(122, 141, 177, 0.22);
  background: #12161e;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-wind-tier-overview-stripe {
  align-self: stretch;
  border-radius: 4px;
  min-height: 2.4rem;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-wind-tier-overview-row--poor .ios-wind-tier-overview-stripe {
  background: rgba(244, 67, 54, 0.85);
}
body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-wind-tier-overview-row--fair .ios-wind-tier-overview-stripe {
  background: rgba(255, 205, 30, 0.9);
}
body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-wind-tier-overview-row--good .ios-wind-tier-overview-stripe {
  background: rgba(11, 214, 116, 0.9);
}
body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-wind-tier-overview-row--very-good .ios-wind-tier-overview-stripe {
  background: rgba(33, 150, 243, 0.9);
}
body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-wind-tier-overview-row--epic .ios-wind-tier-overview-stripe {
  background: rgba(146, 0, 208, 0.9);
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-wind-tier-overview-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-wind-tier-overview-range {
  margin-top: 0.15rem;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-wind-tier-overview-block.is-editing .ios-wind-tier-overview-row {
  grid-template-columns: 4px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: start;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-wind-tier-overview-block.is-editing .ios-wind-tier-overview-stripe {
  grid-row: 1 / 3;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-wind-tier-overview-slider {
  grid-column: 2 / -1;
  padding: 0.35rem 0 0.1rem;
  min-width: 0;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-wind-tier-overview-slider .kn-wind-tier-slider {
  width: 100%;
  height: 2rem;
  margin: 0;
  accent-color: #ff4500;
  touch-action: pan-x;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-wind-tier-overview-actions.ios-profile-save-row {
  margin-top: 0.45rem;
  padding-top: 0.15rem;
  padding-bottom: 0.25rem;
  margin-bottom: 0;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-wind-tier-overview-actions .profile-btn-primary {
  flex: 1 1 auto;
  min-width: 0;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-wind-tier-overview-block.is-editing .customization-setting-reset-btn:disabled {
  opacity: 0.45;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast #customise-page .customise-page-step-nav {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  gap: 0.55rem;
  margin-top: 1rem;
  padding: 0.75rem 0 0.35rem;
  background: linear-gradient(180deg, rgba(11, 14, 20, 0), rgba(11, 14, 20, 0.92) 28%, rgba(11, 14, 20, 1) 55%);
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast #customise-page .customization-save-btn {
  flex: 1 1 auto;
  font-weight: 800;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .customization-settings-overview {
  gap: 0.65rem;
}

@media (min-width: 640px) {
  body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast #customization-settings-overview {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-compact-setting-card {
    width: 100%;
  }
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-compact-setting-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.65rem;
  padding: 0.8rem 0.85rem;
  background: #161b24;
  border: 1px solid rgba(122, 141, 177, 0.32);
  border-radius: 12px;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-compact-setting-card .customization-setting-info {
  flex: 1 1 10rem;
  min-width: 0;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-compact-setting-card .ios-compact-setting-value,
body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-compact-setting-card .customization-setting-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e6ecff;
  margin-top: 0.15rem;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .ios-compact-setting-card .customization-setting-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.4rem;
  flex: 0 0 auto;
}

body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .customization-setting-reset-btn,
body.page-ios-profile.page-ios-profile-forecast-prefs #ios-profile-panel-forecast .customization-setting-edit-btn {
  min-height: 36px;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  border-radius: 8px;
  white-space: nowrap;
}

.ios-profile-visibility-radios {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.ios-profile-radio {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.ios-profile-radio:has(input:checked) {
  border-color: rgba(220, 74, 109, 0.55);
  background: rgba(220, 74, 109, 0.18);
}

.ios-profile-radio input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #dc4a6d;
  flex-shrink: 0;
  margin: 0;
}

.ios-profile-radio input:disabled {
  cursor: wait;
}

.ios-profile-visibility-toggle {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.ios-profile-visibility-btn {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.78);
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.ios-profile-visibility-btn.is-active {
  color: #fff;
  background: rgba(220, 74, 109, 0.42);
  border-color: rgba(220, 74, 109, 0.62);
  box-shadow: 0 4px 14px rgba(220, 74, 109, 0.22);
}

.ios-profile-visibility-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.ios-profile-visibility-status {
  margin-top: 0.35rem;
  min-height: 1.1rem;
  font-size: 0.82rem;
}

.ios-profile-visibility-status.err {
  color: #ff8fab;
}
