/**
 * FitUI Component Library
 * 321Fit Design System — CSS Components
 *
 * Source: design-tokens/ repo (Figma → Style Dictionary → generated)
 * Tokens: fit-ui-tokens.css (generated, do not edit manually)
 * Components: this file (hand-maintained)
 *
 * Usage: <link rel="stylesheet" href="fit-ui.css">
 * Requires: Google Fonts Rubik, fit-ui-tokens.css in same folder
 */

@import url('./fit-ui-tokens.css');

/* ============================================================
   COMPAT LAYER — legacy short names mapped to generated tokens.
   These aliases keep existing CSS/HTML using short names (--fit-gray-800,
   --fit-sp-4, --fit-radius-md) working without rewriting every
   consumer. Full migration to generated names happens in Phase 3.
   ============================================================ */
:root {
  /* Font */
  --fit-font: 'Rubik', -apple-system, sans-serif;

  /* Palette aliases */
  --fit-white:      var(--fit-color-gray-white);
  --fit-black:      var(--fit-color-gray-black);
  --fit-gray-50:    var(--fit-color-gray-50);
  --fit-gray-100:   var(--fit-color-gray-100);
  --fit-gray-200:   var(--fit-color-gray-200);
  --fit-gray-300:   var(--fit-color-gray-300);
  --fit-gray-400:   var(--fit-color-gray-400);
  --fit-gray-500:   var(--fit-color-gray-500);
  --fit-gray-600:   var(--fit-color-gray-600);
  --fit-gray-700:   var(--fit-color-gray-700);
  --fit-gray-800:   var(--fit-color-gray-800);
  --fit-gray-900:   var(--fit-color-gray-900);

  --fit-blue-300:   var(--fit-color-blue-300);
  --fit-blue-400:   var(--fit-color-blue-400);
  --fit-blue-500:   var(--fit-color-blue-500);
  --fit-blue-600:   var(--fit-color-blue-600);
  --fit-blue-700:   var(--fit-color-blue-700);

  --fit-teal-200:   var(--fit-color-teal-200);
  --fit-teal-400:   var(--fit-color-teal-400);
  --fit-teal-500:   var(--fit-color-teal-500);
  --fit-teal-600:   var(--fit-color-teal-600);

  --fit-red-50:     var(--fit-color-red-50);
  --fit-red-400:    var(--fit-color-red-400);
  --fit-red-700:    var(--fit-color-red-700);
  --fit-red-900:    var(--fit-color-red-900);

  --fit-yellow-50:  var(--fit-color-yellow-50);
  --fit-yellow-400: var(--fit-color-yellow-400);
  --fit-yellow-600: var(--fit-color-yellow-600);
  --fit-yellow-900: var(--fit-color-yellow-900);

  --fit-green-50:   var(--fit-color-green-50);
  --fit-green-400:  var(--fit-color-green-400);
  --fit-green-500:  var(--fit-color-green-500);
  --fit-green-900:  var(--fit-color-green-900);

  /* Brand */
  --fit-brand-primary:     var(--fit-color-brand-primary);
  --fit-brand-secondary:   var(--fit-color-brand-secondary);
  --fit-brand-gradient:    var(--fit-gradient-brand-135);
  --fit-brand-gradient-h:  var(--fit-gradient-brand-horizontal);
  --fit-selection-gradient:var(--fit-gradient-selection-overlay);
  --fit-selection-border:  var(--fit-color-border-selection);

  /* Spacing — sp-X aliases */
  --fit-sp-0:   var(--fit-spacing-0);
  --fit-sp-0_5: var(--fit-spacing-0-5);
  --fit-sp-1:   var(--fit-spacing-1);
  --fit-sp-1_5: var(--fit-spacing-1-5);
  --fit-sp-2:   var(--fit-spacing-2);
  --fit-sp-2_5: var(--fit-spacing-2-5);
  --fit-sp-3:   var(--fit-spacing-3);
  --fit-sp-3_5: var(--fit-spacing-3-5);
  --fit-sp-4:   var(--fit-spacing-4);
  --fit-sp-4_5: var(--fit-spacing-4-5);
  --fit-sp-5:   var(--fit-spacing-5);
  --fit-sp-6:   var(--fit-spacing-6);
  --fit-sp-7:   var(--fit-spacing-7);
  --fit-sp-8:   var(--fit-spacing-8);
  --fit-sp-9:   var(--fit-spacing-9);

  /* Radius — semantic aliases */
  --fit-radius-xs:   var(--fit-radius-alias-xs);
  --fit-radius-sm:   var(--fit-radius-alias-sm);
  --fit-radius-md:   var(--fit-radius-alias-md);
  --fit-radius-lg:   var(--fit-radius-alias-lg);
  /* --fit-radius-full already defined in tokens */

  /* Effects */
  --fit-blur-glass: var(--fit-effect-blur-glass);
}

/* ============================================================
   THEME: DARK (Coach) — apply class .fit-dark
   ============================================================ */
.fit-dark {
  --fit-screen-bg:        var(--fit-color-screen-dark);
  --fit-surface-low:      var(--fit-color-surface-low-dark);
  --fit-surface:          var(--fit-color-surface-default-dark);
  --fit-surface-high:     var(--fit-color-surface-high-dark);
  --fit-surface-higher:   var(--fit-color-surface-higher-dark);
  --fit-text-primary:     var(--fit-color-text-primary-dark);
  --fit-text-secondary:   var(--fit-color-text-secondary-dark);
  --fit-text-tertiary:    var(--fit-color-text-tertiary-dark);
  --fit-text-placeholder: var(--fit-color-text-placeholder-dark);
  --fit-text-disabled:    var(--fit-color-text-disabled-dark);
  --fit-text-on-brand:    var(--fit-color-text-on-brand-dark);
  --fit-text-error:       var(--fit-color-text-error-dark);
  --fit-divider:          var(--fit-color-divider-dark);
  --fit-border-focus:     var(--fit-color-border-focus-dark);
  --fit-border-error:     var(--fit-color-border-error-dark);
  --fit-bg-disabled:      var(--fit-color-bg-disabled-dark);
  --fit-bg-error-subtle:    var(--fit-color-bg-error-subtle-dark);
  --fit-bg-error-tinted:    var(--fit-color-bg-error-tinted-dark);
  --fit-bg-success-subtle:  var(--fit-color-bg-success-subtle-dark);
  --fit-bg-success-tinted:  var(--fit-color-bg-success-tinted-dark);
  --fit-bg-warning-subtle:  var(--fit-color-bg-warning-subtle-dark);
  --fit-bg-warning-tinted:  var(--fit-color-bg-warning-tinted-dark);
  --fit-bg-info-subtle:     var(--fit-color-bg-info-subtle-dark);
  --fit-bg-info-tinted:     var(--fit-color-bg-info-tinted-dark);
  --fit-bg-brand-subtle:    var(--fit-color-bg-brand-subtle-dark);
  --fit-bg-brand-tinted:    var(--fit-color-bg-brand-tinted-dark);
  --fit-destructive-bg-subtle: var(--fit-color-destructive-bg-subtle-dark);
  --fit-destructive-bg-tinted: var(--fit-color-destructive-bg-tinted-dark);

  background: var(--fit-screen-bg);
  color:      var(--fit-text-primary);
}

/* ============================================================
   THEME: LIGHT (Athlete) — apply class .fit-light
   ============================================================ */
.fit-light {
  --fit-screen-bg:        var(--fit-color-screen-light);
  --fit-surface-low:      var(--fit-color-surface-low-light);
  --fit-surface:          var(--fit-color-surface-default-light);
  --fit-surface-high:     var(--fit-color-surface-high-light);
  --fit-surface-higher:   var(--fit-color-surface-higher-light);
  --fit-text-primary:     var(--fit-color-text-primary-light);
  --fit-text-secondary:   var(--fit-color-text-secondary-light);
  --fit-text-tertiary:    var(--fit-color-text-tertiary-light);
  --fit-text-placeholder: var(--fit-color-text-placeholder-light);
  --fit-text-disabled:    var(--fit-color-text-disabled-light);
  --fit-text-on-brand:    var(--fit-color-text-on-brand-light);
  --fit-text-error:       var(--fit-color-text-error-light);
  --fit-divider:          var(--fit-color-divider-light);
  --fit-border-focus:     var(--fit-color-border-focus-light);
  --fit-border-error:     var(--fit-color-border-error-light);
  --fit-bg-disabled:      var(--fit-color-bg-disabled-light);
  --fit-bg-error-subtle:    var(--fit-color-bg-error-subtle-light);
  --fit-bg-error-tinted:    var(--fit-color-bg-error-tinted-light);
  --fit-bg-success-subtle:  var(--fit-color-bg-success-subtle-light);
  --fit-bg-success-tinted:  var(--fit-color-bg-success-tinted-light);
  --fit-bg-warning-subtle:  var(--fit-color-bg-warning-subtle-light);
  --fit-bg-warning-tinted:  var(--fit-color-bg-warning-tinted-light);
  --fit-bg-info-subtle:     var(--fit-color-bg-info-subtle-light);
  --fit-bg-info-tinted:     var(--fit-color-bg-info-tinted-light);
  --fit-bg-brand-subtle:    var(--fit-color-bg-brand-subtle-light);
  --fit-bg-brand-tinted:    var(--fit-color-bg-brand-tinted-light);
  --fit-destructive-bg-subtle: var(--fit-color-destructive-bg-subtle-light);
  --fit-destructive-bg-tinted: var(--fit-color-destructive-bg-tinted-light);

  background: var(--fit-screen-bg);
  color:      var(--fit-text-primary);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.fit-h1 { font-size: 22px; font-weight: 400; line-height: 1.2; }
.fit-h2 { font-size: 20px; font-weight: 500; line-height: 1.25; }
.fit-btn1 { font-size: 18px; font-weight: 500; line-height: 1.3; }
.fit-btn2 { font-size: 16px; font-weight: 500; line-height: 1.35; }
.fit-body1 { font-size: 16px; font-weight: 400; line-height: 1.35; }
.fit-body2 { font-size: 14px; font-weight: 400; line-height: 1.35; }
.fit-caption { font-size: 12px; font-weight: 400; line-height: 1.4; }
.fit-section-title {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--fit-text-secondary);
  padding: 0 var(--fit-sp-4); margin-bottom: var(--fit-sp-3);
}

/* ============================================================
   PHONE FRAME (prototype wrapper)
   ============================================================ */
.fit-phone {
  width: 390px; height: 844px;
  border-radius: 40px; overflow: hidden;
  border: 2px solid var(--fit-gray-700);
  display: flex; flex-direction: column;
  font-family: var(--fit-font);
  position: relative;
}
.fit-phone-header { flex-shrink: 0; z-index: 10; }
.fit-phone-content {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.fit-phone-content::-webkit-scrollbar { display: none; }
.fit-phone-footer { flex-shrink: 0; z-index: 10; }

/* ============================================================
   STATUS BAR
   ============================================================ */
.fit-status-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px 8px; font-size: 14px; font-weight: 600;
}

/* ============================================================
   HEADER (navigation)
   ============================================================ */
.fit-header {
  display: flex; align-items: center;
  padding: var(--fit-sp-2) var(--fit-sp-4) var(--fit-sp-4);
  gap: var(--fit-sp-3);
  position: relative;
  min-height: 48px;
}
.fit-header-title {
  position: absolute;
  left: 50%;
  top: calc(50% - (var(--fit-sp-4) - var(--fit-sp-2)) / 2);
  transform: translate(-50%, -50%);
  font-size: 17px; font-weight: 600; text-align: center;
  max-width: calc(100% - 144px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
}
.fit-header-title + * { margin-left: auto; }
.fit-header-back {
  width: 32px; height: 32px; border-radius: var(--fit-radius-full);
  display: flex; align-items: center; justify-content: center;
  background: rgba(117,126,135,0.3); backdrop-filter: blur(4px);
  cursor: pointer; border: none; color: var(--fit-text-primary);
}
.fit-header-back svg { width: 16px; height: 16px; }

/* ============================================================
   BUTTONS
   ============================================================ */

/* Primary — gradient */
.fit-btn {
  height: 50px; border: none; border-radius: 99px;
  font-family: var(--fit-font); font-size: 18px; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 0 32px; transition: opacity 0.15s;
}
.fit-btn:active { opacity: 0.85; }
.fit-btn-primary {
  background: var(--fit-brand-gradient-h); color: var(--fit-white);
}
.fit-btn-secondary {
  background: var(--fit-surface-high); color: var(--fit-text-primary);
  border: 1px solid var(--fit-divider);
}
/* ============================================================
   DESTRUCTIVE BUTTON TIERS (4-tier severity system)

   Default .fit-btn-destructive = Medium (tinted red). Modifiers
   override visual weight to match real-world stakes.

   Pick tier by impact — user should sense risk before reading label:

   - --high   → FILLED red. Irreversible data loss.
                Delete template, delete account, remove recurring series forever.
   - (none)   → TINTED (Medium default). Cancel with impact on another user.
                Decline request, cancel confirmed session, remove participant.
   - --low    → OUTLINED red. Roll back your OWN pending action,
                other side has not committed. Retract pending invite, mark missed.
   - --minimal→ TEXT red. Secondary "Cancel" in confirm dialogs where
                the primary IS destructive ("Cancel" in "Are you sure?").

   Size-neutral — compose with .fit-btn (h=50), .fit-btn-sm, or inline height.
   ============================================================ */
.fit-btn-destructive {
  background: rgba(240, 92, 91, 0.15);
  color: var(--fit-red-400);
  border: none;
}
.fit-btn-destructive:hover { background: rgba(240, 92, 91, 0.22); }

.fit-btn-destructive--high {
  background: var(--fit-red-400);
  color: var(--fit-white);
  border: none;
}
.fit-btn-destructive--high:hover { background: #D94A4A; }

.fit-btn-destructive--low {
  background: transparent;
  color: var(--fit-red-400);
  border: 1px solid var(--fit-red-400);
}
.fit-btn-destructive--low:hover { background: rgba(240, 92, 91, 0.08); }

.fit-btn-destructive--minimal {
  background: transparent;
  color: var(--fit-red-400);
  border: none;
}
.fit-btn-destructive--minimal:hover { background: rgba(240, 92, 91, 0.08); }
.fit-btn-disabled {
  background: var(--fit-surface-low); color: var(--fit-text-tertiary);
  cursor: not-allowed; opacity: 0.7;
}
/* Small button */
.fit-btn-sm {
  height: 40px; font-size: 14px; border-radius: var(--fit-radius-sm);
  padding: 0 var(--fit-sp-4);
}
/* Icon button */
.fit-icon-btn {
  width: 32px; height: 32px; border-radius: var(--fit-radius-full);
  background: var(--fit-surface-high); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--fit-text-secondary);
}
.fit-icon-btn svg { width: 16px; height: 16px; }

/* Sticky footer button wrapper */
.fit-footer-btn { padding: var(--fit-sp-3) var(--fit-sp-4) 32px; }

/* ============================================================
   INPUTS
   ============================================================ */
.fit-input-group { padding: 0 var(--fit-sp-4); margin-bottom: var(--fit-sp-5); }
.fit-input-label {
  font-size: 12px; font-weight: 600; color: var(--fit-text-secondary);
  margin-bottom: var(--fit-sp-2); display: block;
}
.fit-input {
  width: 100%; height: 56px; border-radius: var(--fit-radius-md);
  padding: 0 var(--fit-sp-3); font-family: var(--fit-font); font-size: 16px;
  display: flex; align-items: center; gap: var(--fit-sp-2); border: none;
  background: var(--fit-surface-low); color: var(--fit-text-primary);
}
.fit-input[contenteditable] { line-height: 56px; cursor: text; outline: none; }
.fit-dark .fit-input { background: var(--fit-black); }
.fit-input::placeholder { color: var(--fit-text-placeholder); }
.fit-input-icon { flex-shrink: 0; display: flex; align-items: center; color: var(--fit-text-tertiary); }
.fit-input-icon svg { width: 24px; height: 24px; }
.fit-input-chevron {
  margin-left: auto; flex-shrink: 0;
  display: flex; align-items: center; color: var(--fit-text-tertiary);
}
.fit-input:focus {
  outline: none; border: 1px solid var(--fit-divider);
}
.fit-input-error { border: 1px solid var(--fit-red-400); }
.fit-input-error-text {
  font-size: 12px; color: var(--fit-red-400); margin-top: var(--fit-sp-1);
}

/* ============================================================
   SELECTION CHIPS (payment type, training type, etc.)
   ============================================================ */
.fit-selection-group {
  display: flex; gap: var(--fit-sp-2);
  padding: 0 var(--fit-sp-4); margin-bottom: var(--fit-sp-5);
}
.fit-selection-chip {
  flex: 1; height: 48px; display: flex; align-items: center; justify-content: center;
  gap: var(--fit-sp-2); padding: 0 var(--fit-sp-3);
  font-size: 16px; font-weight: 400; border-radius: var(--fit-radius-md);
  cursor: pointer; transition: all 0.15s; border: 1px solid transparent;
  background: var(--fit-surface-high); color: var(--fit-text-primary);
}
.fit-light .fit-selection-chip { background: var(--fit-gray-100); }
.fit-selection-chip.selected {
  background: var(--fit-selection-gradient);
  border: 1px solid var(--fit-selection-border);
}

/* ============================================================
   SPORT CHIPS (profile badges)
   ============================================================ */
/* Sport chip — pill style (on profiles, inline) */
.fit-sport-chip {
  display: inline-flex; align-items: center; gap: var(--fit-sp-2);
  background: var(--fit-selection-gradient);
  padding: 6px 14px 6px 8px; border-radius: var(--fit-radius-full);
  font-size: 16px; font-weight: 400;
  color: var(--fit-text-on-brand);
}
.fit-sport-chip svg { width: 24px; height: 24px; }

/* Sport chip — grid style (onboarding, large selectable tiles) */
.fit-sport-tile {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: var(--fit-sp-2);
  padding: var(--fit-sp-4); border-radius: var(--fit-radius-lg);
  font-size: 16px; font-weight: 400; cursor: pointer;
  transition: all 0.15s;
}
.fit-dark .fit-sport-tile { background: rgba(117,126,135,0.3); color: var(--fit-white); }
.fit-light .fit-sport-tile { background: rgba(223,225,227,0.7); color: var(--fit-text-primary); }
.fit-sport-tile.selected { background: var(--fit-selection-gradient); }
.fit-sport-tile svg { width: 24px; height: 24px; }

/* ============================================================
   BADGES (status, type)
   ============================================================ */
.fit-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 500;
  padding: 3px 10px; border-radius: 6px;
}
.fit-badge svg { width: 14px; height: 14px; }
.fit-badge-group { background: rgba(3,178,226,0.15); color: var(--fit-blue-500); }
.fit-badge-personal { background: var(--fit-surface-high); color: var(--fit-text-secondary); }
.fit-badge-full { background: rgba(240,92,91,0.12); color: var(--fit-red-400); }
.fit-badge-joined { background: rgba(0,226,157,0.12); color: var(--fit-green-500); }
.fit-badge-pending { background: rgba(247,201,72,0.12); color: var(--fit-yellow-400); }
.fit-badge-cash { color: var(--fit-yellow-400); font-weight: 500; }

/* ============================================================
   CARDS
   ============================================================ */
.fit-card {
  margin: 0 var(--fit-sp-4) var(--fit-sp-3);
  border-radius: var(--fit-radius-lg); padding: var(--fit-sp-4);
}
.fit-dark .fit-card { background: var(--fit-surface-high); border: 1px solid var(--fit-gray-600); }
.fit-light .fit-card { background: var(--fit-white); box-shadow: 0 0 12px rgba(0,0,0,0.07); }
.fit-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: var(--fit-sp-3);
}
.fit-card-title { font-size: 18px; font-weight: 500; }
.fit-card-edit { color: var(--fit-text-tertiary); cursor: pointer; }
.fit-card-edit svg { width: 18px; height: 18px; }
.fit-card-row {
  display: flex; align-items: center; gap: var(--fit-sp-2);
  margin-bottom: 6px; font-size: 14px; color: var(--fit-text-secondary);
}
.fit-card-row svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ============================================================
   TICKET CARD (compact event summary) — CUSTOM
   ============================================================ */
.fit-ticket {
  margin: 0 var(--fit-sp-4) var(--fit-sp-4);
  border-radius: var(--fit-radius-lg); padding: var(--fit-sp-4);
}
.fit-dark .fit-ticket { background: var(--fit-surface-high); }
.fit-light .fit-ticket { background: var(--fit-white); box-shadow: 0 0 12px rgba(0,0,0,0.07); }
.fit-ticket-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--fit-sp-3);
}
.fit-ticket-meta {
  display: flex; gap: var(--fit-sp-4); font-size: 14px;
  color: var(--fit-text-secondary); margin-bottom: var(--fit-sp-3);
}
.fit-ticket-meta svg { width: 14px; height: 14px; vertical-align: middle; margin-right: 4px; }
.fit-ticket-sub {
  font-size: 14px; color: var(--fit-text-secondary); margin-bottom: var(--fit-sp-3);
}
.fit-ticket-coach {
  display: flex; align-items: center; gap: var(--fit-sp-2); margin-bottom: var(--fit-sp-2);
}
.fit-ticket-coach-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--fit-brand-gradient); display: flex;
  align-items: center; justify-content: center;
  font-size: 14px; color: var(--fit-white); font-weight: 500;
}
.fit-ticket-coach-name { font-size: 14px; font-weight: 500; }
.fit-ticket-coach-detail { font-size: 12px; color: var(--fit-text-secondary); }
.fit-ticket-price { font-size: 14px; font-weight: 500; color: var(--fit-brand-primary); }

/* ============================================================
   SPOTS BAR — CUSTOM
   ============================================================ */
.fit-spots {
  display: flex; align-items: center; gap: var(--fit-sp-3);
  padding: var(--fit-sp-3) var(--fit-sp-4);
  border-radius: var(--fit-radius-md);
}
.fit-dark .fit-spots { background: var(--fit-surface-higher); }
.fit-light .fit-spots { background: var(--fit-surface-low); }
.fit-spots-fill {
  flex: 1; height: 6px; border-radius: 3px; overflow: hidden;
  background: var(--fit-surface-higher);
}
.fit-light .fit-spots-fill { background: var(--fit-gray-200); }
.fit-spots-bar {
  height: 100%; border-radius: 3px;
  background: var(--fit-brand-gradient-h); transition: width 0.3s;
}
.fit-spots-bar.full { background: linear-gradient(to right, var(--fit-red-400), #ff7b6b); }
.fit-spots-text { font-size: 14px; font-weight: 500; white-space: nowrap; }
.fit-spots-text.full { color: var(--fit-red-400); }

/* ============================================================
   AVATAR
   ============================================================ */
.fit-avatar {
  width: 48px; height: 48px; border-radius: 60px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 500; flex-shrink: 0;
}
.fit-dark .fit-avatar { background: var(--fit-surface-higher); color: var(--fit-text-secondary); }
.fit-light .fit-avatar { background: var(--fit-surface-higher); color: var(--fit-text-secondary); }
.fit-avatar-brand {
  background: var(--fit-brand-gradient) !important; color: var(--fit-white) !important;
}
.fit-avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.fit-avatar-lg { width: 80px; height: 80px; font-size: 28px; }

/* ============================================================
   PARTICIPANT ROW
   ============================================================ */
.fit-participant {
  display: flex; align-items: center; gap: var(--fit-sp-3);
  padding: var(--fit-sp-3) 0;
  border-bottom: 1px solid var(--fit-divider);
  position: relative; overflow: hidden;
}
.fit-participant:last-child { border-bottom: none; }
.fit-participant-info { flex: 1; min-width: 0; }
.fit-participant-name { font-size: 14px; font-weight: 500; }
.fit-participant-sub { font-size: 12px; color: var(--fit-text-secondary); }
.fit-participant-chevron { flex-shrink: 0; color: var(--fit-text-tertiary); }
.fit-participant-chevron svg { width: 16px; height: 16px; }

/* Participant with "You" highlight */
.fit-participant-you {
  background: var(--fit-selection-gradient);
  margin: 0 calc(-1 * var(--fit-sp-4));
  padding-left: var(--fit-sp-4);
  padding-right: var(--fit-sp-4);
}
.fit-light .fit-participant-you {
  background: rgba(5,224,166,0.12);
}
.fit-participant-you .fit-participant-sub { color: var(--fit-brand-primary); font-weight: 500; }

/* Remove button (X) */
.fit-remove-btn {
  width: 28px; height: 28px; border-radius: var(--fit-radius-sm);
  background: rgba(240,92,91,0.1); border: none; color: var(--fit-red-400);
  font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Cash checkbox */
.fit-checkbox {
  width: 28px; height: 28px; border-radius: var(--fit-radius-sm);
  border: 2px solid var(--fit-text-tertiary); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s; margin-left: auto;
}
.fit-checkbox.checked {
  background: var(--fit-teal-600); border-color: var(--fit-teal-600);
}
.fit-checkbox svg { width: 14px; height: 14px; opacity: 0; transition: opacity 0.15s; }
.fit-checkbox.checked svg { opacity: 1; }

/* Swipe reveal layers */
.fit-swipe-right, .fit-swipe-left {
  position: absolute; top: 0; bottom: 0; width: 100%;
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: var(--fit-white);
  z-index: 1; opacity: 0; transition: opacity 0.15s;
}
.fit-swipe-right {
  left: -100%; background: var(--fit-teal-500);
  border-radius: var(--fit-radius-sm);
  justify-content: flex-end; padding-right: var(--fit-sp-4);
}
.fit-swipe-left {
  right: -100%; background: var(--fit-red-400);
  border-radius: var(--fit-radius-sm);
  justify-content: flex-start; padding-left: var(--fit-sp-4);
}
.fit-swipe-right svg, .fit-swipe-left svg { width: 18px; height: 18px; }

/* ============================================================
   PARTICIPANTS CARD (light theme wrapper)
   ============================================================ */
.fit-participants-card {
  border-radius: var(--fit-radius-lg);
  padding: var(--fit-sp-1) 0;
  margin: 0 var(--fit-sp-4) var(--fit-sp-4);
}
.fit-light .fit-participants-card { background: var(--fit-surface-higher); }
.fit-participants-card .fit-participant { padding: var(--fit-sp-3) var(--fit-sp-4); }

/* ============================================================
   BOTTOM SHEET
   ============================================================ */
/* ============================================================
   BOTTOM SHEET SPACING RULES
   Handle → title: 16px
   Title → subtitle: 4px
   Subtitle → content: 20px
   Options: horizontal chips (fit-selection-group), max 3 per row
   Content → warning: 20px
   Warning → button: 24px
   Side padding: 20px, bottom: 40px (safe area)
   Sheet grows vertically to fit content
   Min touch target: 44px per option
   ============================================================ */

.fit-sheet-overlay {
  display: none; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 50; background: rgba(0,0,0,0.5);
  border-radius: inherit; overflow: hidden;
}
.fit-sheet-overlay.visible { display: flex; align-items: flex-end; }
.fit-sheet {
  width: 100%;
  border-radius: var(--fit-radius-lg) var(--fit-radius-lg) 0 0;
  padding: 8px 16px 40px;                    /* 16px side aligns with card content; 40px bottom for safe area */
  animation: fitSheetUp 0.25s ease;
}
.fit-sheet.compact {
  padding-bottom: 28px;                      /* shorter bottom for quick-action sheets without safe-area need */
}
@keyframes fitSheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.fit-dark .fit-sheet { background: var(--fit-gray-900); }
.fit-light .fit-sheet { background: #F2F2F7; }
.fit-sheet-handle {
  width: 36px; height: 4px; border-radius: 2px;
  margin: 0 auto var(--fit-sp-4);
}
.fit-dark .fit-sheet-handle { background: var(--fit-gray-700); }
.fit-light .fit-sheet-handle { background: var(--fit-gray-200); }
.fit-sheet-title { font-size: 18px; font-weight: 500; margin-bottom: 4px; }
.fit-sheet-subtitle { font-size: 14px; color: var(--fit-text-secondary); margin-bottom: 20px; }
/* Status header for event sheets — descriptor + optional pill at top */
.fit-sheet-status-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
}
.fit-sheet-descriptor {
  flex: 1; min-width: 0;
  font-size: 18px; font-weight: 500;
  color: var(--fit-text-primary);
  line-height: 1.35;
}
/* State-aware footer variants — only the one matching data-event-state is visible */
.fit-sheet-footer-variant { display: none; gap: 8px; }
.fit-sheet[data-event-state="planned"] .fit-sheet-footer-variant.ev-planned,
.fit-sheet[data-event-state="request"] .fit-sheet-footer-variant.ev-request,
.fit-sheet[data-event-state="awaiting"] .fit-sheet-footer-variant.ev-awaiting,
.fit-sheet[data-event-state="review"] .fit-sheet-footer-variant.ev-review,
.fit-sheet[data-event-state="missed"] .fit-sheet-footer-variant.ev-missed,
.fit-sheet[data-event-state="finished"] .fit-sheet-footer-variant.ev-finished {
  display: flex;
}
.fit-sheet-options { margin-bottom: 20px; }
.fit-sheet-warning {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px; border-radius: 8px; margin-bottom: 24px;
  font-size: 12px; color: var(--fit-text-secondary); line-height: 1.4;
}
.fit-sheet-warning svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.fit-sheet-warning.caution { background: rgba(247,201,72,0.08); }
.fit-sheet-warning.caution svg { color: var(--fit-yellow-400); }
.fit-sheet-warning.danger { background: rgba(240,92,91,0.08); }
.fit-sheet-warning.danger svg { color: var(--fit-red-400); }
.fit-sheet-item {
  display: flex; align-items: center; gap: var(--fit-sp-3);
  padding: 14px 0; border-bottom: 1px solid var(--fit-divider);
  font-size: 16px; cursor: pointer;
}
.fit-sheet-item:last-child { border-bottom: none; }
.fit-sheet-item svg { width: 20px; height: 20px; }
.fit-sheet-item.destructive { color: var(--fit-red-400); }

/* ============================================================
   CONTEXT MENU (iOS UIMenu — floating popover for ⋯ buttons, 2-5 options)
   ============================================================ */
.fit-context-menu {
  position: absolute; z-index: 60; min-width: 220px;
  background: var(--fit-surface-high);
  border: 1px solid var(--fit-gray-700);
  border-radius: 14px; padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  display: none;
  animation: fitMenuIn 0.12s ease;
}
.fit-light .fit-context-menu { background: var(--fit-white); border-color: var(--fit-gray-200); box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.fit-context-menu.visible { display: block; }
.fit-context-menu-backdrop { position: absolute; inset: 0; z-index: 55; display: none; }
.fit-context-menu-backdrop.visible { display: block; }
.fit-context-menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px;
  font-size: 15px; color: var(--fit-text-primary);
  cursor: pointer; user-select: none;
}
.fit-context-menu-item:hover { background: rgba(255,255,255,0.06); }
.fit-light .fit-context-menu-item:hover { background: rgba(0,0,0,0.04); }
.fit-context-menu-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--fit-text-secondary); }
.fit-context-menu-item.destructive { color: var(--fit-red-400); }
.fit-context-menu-item.destructive svg { color: var(--fit-red-400); }
.fit-context-menu-divider { height: 1px; background: var(--fit-gray-700); margin: 4px 8px; }
.fit-light .fit-context-menu-divider { background: var(--fit-gray-200); }
@keyframes fitMenuIn { from { opacity: 0; transform: translateY(-4px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ============================================================
   BOTTOM NAV (floating pill)
   ============================================================ */
.fit-navbar {
  margin: 0 var(--fit-sp-4) var(--fit-sp-4); height: 56px;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(var(--fit-blur-glass));
  -webkit-backdrop-filter: blur(var(--fit-blur-glass));
  border-radius: var(--fit-radius-full);
  display: flex; align-items: center; justify-content: center;
  gap: var(--fit-sp-3); padding: var(--fit-sp-1);
  box-shadow: 0 0 24px rgba(0,0,0,0.4);
}
.fit-light .fit-navbar {
  background: rgba(255,255,255,0.75);
  box-shadow: 0 0 24px rgba(0,0,0,0.15);
}
.fit-navbar-item {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--fit-radius-full); cursor: pointer; transition: all 0.15s;
  color: var(--fit-gray-300);
}
.fit-light .fit-navbar-item { color: var(--fit-gray-400); }
.fit-navbar-item svg { width: 24px; height: 24px; }
.fit-navbar-item.active {
  background: linear-gradient(to right, rgba(3,178,226,0.2), rgba(34,247,183,0.2));
  color: var(--fit-white);
}
.fit-light .fit-navbar-item.active { color: var(--fit-text-primary); }

/* ============================================================
   STEPPER (number input with ± buttons) — CUSTOM
   ============================================================ */
.fit-stepper {
  display: flex; align-items: center; border-radius: var(--fit-radius-md);
  height: 48px; overflow: hidden;
}
.fit-dark .fit-stepper { background: var(--fit-surface-high); }
.fit-light .day-btn:not(.sel) { background: var(--fit-gray-100) !important; }
.fit-light .day-btn.sel { color: var(--fit-text-primary) !important; }
.fit-light .fit-stepper { background: var(--fit-gray-100); }
.fit-stepper-btn {
  width: 48px; height: 48px; border: none; font-size: 20px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-family: var(--fit-font); color: var(--fit-text-primary);
}
.fit-dark .fit-stepper-btn { background: var(--fit-gray-700); }
.fit-light .fit-stepper-btn { background: var(--fit-gray-200); }
.fit-stepper-value {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 6px; font-size: 18px; font-weight: 500;
}
.fit-stepper-unit { font-size: 14px; color: var(--fit-text-secondary); }

/* ============================================================
   CALENDAR COMPONENTS
   ============================================================ */

/* Day strip (horizontal wheel) */
.fit-day-strip {
  overflow-x: auto; padding: 0 0 var(--fit-sp-3);
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.fit-day-strip::-webkit-scrollbar { display: none; }
.fit-day-strip-inner {
  display: flex; gap: 0; width: max-content; padding: 0 var(--fit-sp-4);
}
.fit-day-chip {
  width: 50px; height: 62px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  border-radius: var(--fit-radius-lg); cursor: pointer;
  flex-shrink: 0; transition: all 0.15s;
}
.fit-day-chip-name {
  font-size: 10px; color: var(--fit-text-tertiary); text-transform: uppercase;
}
.fit-day-chip-num { font-size: 16px; font-weight: 500; color: var(--fit-text-secondary); }
.fit-day-chip.today .fit-day-chip-num { color: var(--fit-brand-primary); }
.fit-day-chip.selected {
  background: var(--fit-selection-gradient);
  border: 1px solid var(--fit-teal-600);
}
.fit-day-chip.selected .fit-day-chip-name { color: var(--fit-text-primary); }
.fit-day-chip.selected .fit-day-chip-num { color: var(--fit-text-primary); font-weight: 600; }
/* Event dots under day number */
.fit-day-chip-dots {
  display: flex; gap: 3px; height: 4px; align-items: center;
}
.fit-day-chip-dot {
  width: 4px; height: 4px; border-radius: 50%;
}
.fit-day-chip-dot.personal { background: var(--fit-green-500); }
.fit-day-chip-dot.group { background: var(--fit-brand-primary); }
.fit-day-chip-dot.external { background: var(--fit-text-tertiary); }

/* Unavailable hours block on timeline */
.fit-unavailable {
  position: absolute; left: 48px; right: 8px;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 3px,
    var(--fit-gray-700) 3px, var(--fit-gray-700) 4px
  );
  opacity: 0.3; border-radius: 6px; pointer-events: none;
}
.fit-light .fit-unavailable {
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 3px,
    var(--fit-gray-300) 3px, var(--fit-gray-300) 4px
  );
}

/* External calendar event (side-by-side) */
.fit-cal-event-external {
  position: absolute; left: 48px; right: 8px;
  background: var(--fit-gray-700); border-left: 3px solid var(--fit-text-tertiary);
  border-radius: var(--fit-radius-sm); padding: 6px 8px;
  font-size: 12px; color: var(--fit-text-tertiary); overflow: hidden;
  opacity: 0.7;
}
/* Tiny event (15min = 15px) — only colored bar with truncated title */
.fit-cal-event.fit-cal-event-tiny {
  padding: 1px 8px; font-size: 10px; overflow: hidden; white-space: nowrap;
}
.fit-cal-event-tiny .fit-cal-event-title { font-size: 10px; }
.fit-cal-event-tiny .fit-cal-event-meta { display: none; }
.fit-cal-event-tiny .fit-cal-event-badge { display: none; }
.fit-light .fit-cal-event-external { background: var(--fit-gray-200); }

/* Timeline */
.fit-timeline { position: relative; }
.fit-hour {
  height: 96px; display: flex; align-items: flex-start;
  border-top: 1px solid var(--fit-divider);
}
.fit-hour-label {
  font-size: 10px; color: var(--fit-text-tertiary);
  width: 40px; flex-shrink: 0; padding-top: 4px;
}

/* Calendar events */
.fit-cal-event {
  position: absolute; left: 48px; right: 8px;
  border-radius: var(--fit-radius-md); padding: var(--fit-sp-2) var(--fit-sp-3);
  font-size: 12px; overflow: hidden; cursor: grab;
}
.fit-cal-event:active { cursor: grabbing; }
.fit-cal-event-personal {
  background: var(--fit-surface-high);
  border-left: 3px solid var(--fit-teal-500);
}
.fit-light .fit-cal-event-personal {
  background: rgba(5,224,166,0.08);
}
.fit-cal-event-group {
  background: rgba(3,178,226,0.12);
  border-left: 3px solid var(--fit-blue-500);
}
.fit-light .fit-cal-event-group {
  background: rgba(3,178,226,0.08);
}
.fit-cal-event-title-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 2px;
}
.fit-cal-event-title-row .fit-cal-event-title {
  flex: 1; min-width: 0; margin-bottom: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fit-cal-event-title { font-weight: 500; margin-bottom: 2px; }
.fit-cal-event-meta { color: var(--fit-text-secondary); font-size: 12px; }
/* Calendar event status system (6 states for personal, 4 for group) */
/* Shared: colored 1px perimeter + 3px left stripe. Planned = surface-only, no perimeter. */
/* Request (incoming) — athlete asked, coach needs action */
.fit-cal-event.request {
  background: rgba(222,145,29,0.10);
  border: 1px solid var(--fit-yellow-600);
  border-left: 3px solid var(--fit-yellow-600);
}
.fit-light .fit-cal-event.request { background: rgba(222,145,29,0.14); }
/* Awaiting (outgoing) — coach sent, waiting for athlete */
.fit-cal-event.awaiting {
  border: 1px solid var(--fit-gray-400);
  border-left: 3px solid var(--fit-gray-400);
}
.fit-light .fit-cal-event.awaiting {
  background: rgba(117,126,135,0.06);
  border: 1px solid var(--fit-gray-500);
  border-left: 3px solid var(--fit-gray-500);
}
/* Review (post-event, awaiting coach completion) — same visual lane as Request */
.fit-cal-event.review {
  background: rgba(222,145,29,0.10);
  border: 1px solid var(--fit-yellow-600);
  border-left: 3px solid var(--fit-yellow-600);
}
.fit-light .fit-cal-event.review { background: rgba(222,145,29,0.14); }
/* Missed (no-show or auto after N days) */
.fit-cal-event.missed {
  background: rgba(240,92,91,0.10);
  border: 1px solid var(--fit-red-400);
  border-left: 3px solid var(--fit-red-400);
}
.fit-light .fit-cal-event.missed { background: rgba(240,92,91,0.12); }
/* Finished (coach completed Review) — faded base, no perimeter, stripe persists */
.fit-cal-event.finished { opacity: 0.5; }
/* Calendar event pill — inline status badge next to title */
.fit-cal-event-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 6px;
  border-radius: 99px;
  font-size: 11px; font-weight: 500; line-height: 1.4;
  color: var(--fit-white); white-space: nowrap;
  flex-shrink: 0;
}
.fit-cal-event-pill--request,
.fit-cal-event-pill--review { background: var(--fit-yellow-600); }
.fit-cal-event-pill--awaiting { background: var(--fit-gray-500); }
.fit-cal-event-pill--missed { background: var(--fit-red-400); }
/* Rescheduled indicator */
.fit-cal-event-rescheduled::after {
  content: "↻"; position: absolute; top: 4px; right: 4px;
  font-size: 10px; color: var(--fit-text-tertiary);
  width: 16px; height: 16px; display: flex;
  align-items: center; justify-content: center;
}
/* Special badge (one-off) */
.fit-badge-special {
  background: rgba(3,178,226,0.12); color: var(--fit-blue-500);
  font-size: 12px; font-weight: 500; padding: 2px 8px;
  border-radius: 4px;
}

.fit-cal-event-badge {
  position: absolute; top: 8px; right: 10px;
  font-size: 10px; font-weight: 600;
  background: rgba(3,178,226,0.2); color: var(--fit-blue-500);
  padding: 2px 8px; border-radius: 6px;
}

/* Now line */
.fit-now-line {
  position: absolute; left: 40px; right: 0; height: 2px;
  background: var(--fit-brand-primary); z-index: 5;
}
.fit-now-dot {
  position: absolute; left: -4px; top: -3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--fit-brand-primary);
}

/* Unavailable zone (drag overlay) */
.fit-unavailable {
  position: absolute; left: 40px; right: 0;
  background: rgba(240,92,91,0.08);
  border: 1px dashed rgba(240,92,91,0.3);
  border-radius: var(--fit-radius-sm);
  z-index: 3; pointer-events: none; display: none;
}
.fit-unavailable-label {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px; color: rgba(240,92,91,0.6); font-weight: 500;
}

/* ============================================================
   COACH PROFILE HEADER
   ============================================================ */
.fit-profile-header {
  padding: var(--fit-sp-5); text-align: center;
  margin-bottom: var(--fit-sp-2);
}
.fit-profile-name { font-size: 22px; font-weight: 500; margin-bottom: 4px; }
.fit-profile-location {
  font-size: 14px; color: var(--fit-text-secondary);
  display: flex; align-items: center; justify-content: center;
  gap: 4px; margin-bottom: var(--fit-sp-2);
}
.fit-profile-location svg { width: 14px; height: 14px; }
.fit-profile-sports { margin-top: var(--fit-sp-3); }
.fit-profile-bio {
  font-size: 14px; line-height: 1.55; color: var(--fit-text-secondary);
  padding: 0 var(--fit-sp-4) var(--fit-sp-5);
}
.fit-see-more {
  color: var(--fit-brand-primary); font-weight: 500; cursor: pointer;
}

/* ============================================================
   TOGGLE / SWITCH
   ============================================================ */
.fit-toggle {
  width: 48px; height: 28px; border-radius: 14px;
  position: relative; cursor: pointer; transition: background 0.2s;
  background: var(--fit-surface-higher);
}
.fit-toggle.on { background: var(--fit-teal-500); }
.fit-toggle::after {
  content: ''; position: absolute;
  width: 22px; height: 22px; background: var(--fit-white);
  border-radius: 11px; top: 3px; left: 3px; transition: transform 0.2s;
}
.fit-toggle.on::after { transform: translateX(20px); }

/* ============================================================
   SKELETON (list loading placeholder)

   Shimmer-animated placeholders. Use for initial list fetch.
   Single-element loading should use centered spinner instead.

   Structure:
     <div class="sk-card">
       <div class="sk-row">
         <div class="sk-circle sk-shimmer"></div>
         <div class="sk-lines">
           <div class="sk-line sk-shimmer" style="width:55%"></div>
           <div class="sk-line short sk-shimmer"></div>
         </div>
       </div>
       <div class="sk-block sk-shimmer"></div>
       <div class="sk-btn-row"><div class="sk-btn sk-shimmer"></div></div>
     </div>

   Modifiers:
     .sk-card.compact   — smaller padding/radius (row-style)
     .sk-card.lg        — explicit larger radius (same default, kept for compat)
     .sk-circle.sm      — 40px instead of 44px
     .sk-circle.sq      — rounded-rect 10px (for icon-shaped placeholders)
   ============================================================ */
.sk-card {
  margin: 0 var(--fit-sp-4) var(--fit-sp-3);
  padding: var(--fit-sp-4);
  border-radius: var(--fit-radius-md);
  background: var(--fit-surface-high);
}
.fit-light .sk-card {
  background: var(--fit-white);
  border: 1px solid var(--fit-gray-100);
}
.sk-card:first-child { margin-top: 0; }
.sk-card.compact {
  padding: 12px var(--fit-sp-4);
  border-radius: var(--fit-radius-sm);
  margin-bottom: var(--fit-sp-2);
}
.sk-card.lg {
  padding: var(--fit-sp-4);
  border-radius: var(--fit-radius-md);
  margin-bottom: var(--fit-sp-3);
  overflow: hidden;
}
.sk-card.slot { margin-bottom: var(--fit-sp-2); }

.sk-row {
  display: flex; align-items: center; gap: var(--fit-sp-3);
}
.sk-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sk-circle.sm { width: 40px; height: 40px; }
.sk-circle.lg { width: 44px; height: 44px; } /* alias — default is already 44px */
.sk-circle.sq { border-radius: 10px; }

.sk-lines {
  flex: 1; display: flex; flex-direction: column; gap: var(--fit-sp-2);
  min-width: 0;
}
.sk-line { height: 12px; border-radius: 6px; }
.sk-line.short { width: 50%; height: 10px; }
.sk-block { height: 14px; border-radius: 7px; margin-top: var(--fit-sp-3); }

.sk-btn-row { display: flex; gap: var(--fit-sp-2); margin-top: 14px; }
.sk-btn { flex: 1; height: 40px; border-radius: 99px; }

.sk-strip {
  height: 36px;
  border-top: 1px solid var(--fit-divider);
  margin-top: 10px;
}

.sk-shimmer {
  background: linear-gradient(90deg,
    var(--fit-gray-800) 0%,
    var(--fit-gray-700) 50%,
    var(--fit-gray-800) 100%);
  background-size: 200% 100%;
  animation: sk-shimmer 1400ms ease-in-out infinite;
}
.fit-light .sk-shimmer {
  background: linear-gradient(90deg,
    var(--fit-gray-200) 0%,
    var(--fit-gray-100) 50%,
    var(--fit-gray-200) 100%);
  background-size: 200% 100%;
}
@keyframes sk-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   NOTIFICATION TOAST
   ============================================================ */
.fit-toast {
  margin: 0 var(--fit-sp-4) var(--fit-sp-4);
  padding: 14px var(--fit-sp-4);
  background: var(--fit-surface-high); border-radius: var(--fit-radius-md);
  border-left: 3px solid var(--fit-brand-primary);
  display: flex; align-items: flex-start; gap: var(--fit-sp-3);
}
.fit-toast-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.fit-toast-content { flex: 1; }
.fit-toast-title { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.fit-toast-body { font-size: 12px; color: var(--fit-text-secondary); }
.fit-toast-time { font-size: 12px; color: var(--fit-text-tertiary); flex-shrink: 0; }

/* ============================================================
   SVG ICONS (inline, stroke-based)
   All icons: viewBox="0 0 24 24" fill="none"
   stroke="currentColor" stroke-width="1.8"
   stroke-linecap="round" stroke-linejoin="round"
   ============================================================ */
/* ============================================================
   WHEEL PICKER (iOS-style) — CUSTOM
   ============================================================ */
.fit-wheel-picker {
  display: flex; gap: var(--fit-sp-4);
  margin: 0 var(--fit-sp-4) var(--fit-sp-5);
  padding: var(--fit-sp-4);
  border-radius: var(--fit-radius-md);
}
.fit-dark .fit-wheel-picker { background: var(--fit-black); }
.fit-light .fit-wheel-picker { background: var(--fit-gray-100); }
.fit-wheel-col {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: var(--fit-sp-2); position: relative;
}
.fit-wheel-label {
  font-size: 12px; color: var(--fit-text-tertiary); margin-bottom: 4px;
}
.fit-wheel-scroll {
  display: flex; flex-direction: column; align-items: center;
  position: relative; width: 100%;
}
.fit-wheel-item {
  font-size: 18px; font-weight: 500; padding: 4px 0;
  text-align: center; width: 100%;
  color: var(--fit-text-primary); transition: all 0.15s;
}
.fit-wheel-item.dim {
  color: var(--fit-text-tertiary); font-size: 16px;
}
.fit-wheel-item.active {
  border-radius: var(--fit-radius-md);
}
.fit-dark .fit-wheel-item.active { background: var(--fit-gray-900); }
.fit-light .fit-wheel-item.active { background: var(--fit-white); }
.fit-wheel-fade-top, .fit-wheel-fade-bottom {
  position: absolute; left: 0; right: 0; height: 18px;
  pointer-events: none; z-index: 1;
}
.fit-wheel-fade-top { top: 28px; }
.fit-wheel-fade-bottom { bottom: 0; }
.fit-dark .fit-wheel-fade-top { background: linear-gradient(to bottom, var(--fit-black), transparent); }
.fit-dark .fit-wheel-fade-bottom { background: linear-gradient(to top, var(--fit-black), transparent); }
.fit-light .fit-wheel-fade-top { background: linear-gradient(to bottom, var(--fit-gray-100), transparent); }
.fit-light .fit-wheel-fade-bottom { background: linear-gradient(to top, var(--fit-gray-100), transparent); }

/* ============================================================
   ICON UTILITY
   ============================================================ */
/* ============================================================
   TOAST (top, informational)
   ============================================================ */
.fit-toast {
  position: absolute; top: 60px; left: 20px; right: 20px; z-index: 30;
  background: var(--fit-surface-high); border-radius: var(--fit-radius-md);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--fit-text-primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  opacity: 0; transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.fit-toast.show { opacity: 1; transform: translateY(0); }
.fit-toast svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--fit-teal-500); }

/* ============================================================
   SNACKBAR (bottom, side-effect notification)
   ============================================================ */
.fit-snackbar {
  position: absolute; bottom: 100px; left: 20px; right: 20px; z-index: 30;
  background: var(--fit-black); border-radius: var(--fit-radius-full);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 16px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 14px; font-weight: 400; color: var(--fit-white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.fit-light .fit-snackbar {
  background: var(--fit-black);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--fit-white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22), 0 2px 6px rgba(0,0,0,0.1);
}
.fit-snackbar.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fit-snackbar .snack-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--fit-yellow-400); flex-shrink: 0;
}
.fit-snackbar .snack-action {
  margin-left: auto; color: var(--fit-teal-400);
  font-weight: 500; cursor: pointer; padding-left: 12px;
}
.fit-light .fit-snackbar .snack-action { color: var(--fit-teal-400); }

/* ============================================================
   SETTINGS CARD
   ============================================================ */
.set-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 16px;
  background: var(--fit-gray-800);
}
.set-icon { width: 24px; height: 24px; flex-shrink: 0; color: var(--fit-text-primary); }
.set-info { flex: 1; min-width: 0; }
.set-title {
  font-size: 16px; font-weight: 400; color: var(--fit-white);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.set-sub {
  font-size: 14px; color: var(--fit-gray-200); margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis;
}
.set-chev { width: 16px; height: 16px; flex-shrink: 0; color: var(--fit-text-tertiary); }

/* ============================================================
   CALENDAR SELECT ROW (calendar sync detail)
   ============================================================ */
.cal-select-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--fit-radius-sm); cursor: pointer;
  background: var(--fit-surface-higher); transition: all 0.15s;
  border: 1px solid transparent;
}
.cal-select-row:active { transform: scale(0.98); }
.cal-select-row.selected {
  background: var(--fit-selection-gradient);
  border-color: var(--fit-teal-600);
}
.cal-check {
  width: 22px; height: 22px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.15s;
  background: var(--fit-teal-600);
}
.cal-check svg { width: 12px; height: 12px; }
.cal-select-row.selected .cal-check { opacity: 1; }

/* Loading spinner */
.cal-spinner {
  width: 18px; height: 18px; border: 2px solid var(--fit-gray-700);
  border-top-color: var(--fit-blue-500); border-radius: 50%;
  animation: fitSpin 0.8s linear infinite;
}
@keyframes fitSpin { to { transform: rotate(360deg); } }

/* ============================================================
   CALENDAR CELL (date picker grid)
   ============================================================ */
.cal-cell {
  font-size: 14px; font-weight: 500; padding: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto; cursor: pointer; transition: all 0.15s;
  color: var(--fit-text-primary);
}
.cal-cell:active:not(.past) { transform: scale(0.9); }
.cal-cell.past {
  color: var(--fit-text-tertiary); opacity: 0.4;
  pointer-events: none; cursor: default;
}
.cal-cell.today {
  border: 2px solid var(--fit-blue-500);
  color: var(--fit-blue-500);
}
.cal-cell.selected {
  background: var(--fit-brand-gradient-h); color: var(--fit-white);
}
.cal-cell.today.selected { border-color: transparent; }

/* Calendar view wrapper */
.cal-view { padding: 0 var(--fit-sp-4); padding-bottom: 40px; }

/* ============================================================
   TIME PICKER SLOTS (bottom sheet accordion)
   ============================================================ */
.tp-slot {
  border-radius: var(--fit-radius-md); margin-bottom: 6px;
  overflow: hidden; cursor: pointer;
  background: var(--fit-gray-700);
}
.fit-light .tp-slot { background: var(--fit-white); box-shadow: 0 0 8px rgba(0,0,0,0.05); }
.tp-slot-row {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 12px; border-radius: var(--fit-radius-md);
  transition: all 0.15s;
}
.tp-slot-row:active { transform: scale(0.98); }
.tp-slot-row.selected {
  background: var(--fit-selection-gradient);
  border: 1px solid var(--fit-teal-600);
}
.tp-slot-label { font-size: 16px; font-weight: 500; flex: 1; }
.tp-slot-status { display: none; }
.tp-slot-chevron {
  color: var(--fit-text-tertiary);
  transition: transform 0.2s;
}
.tp-slot.expanded .tp-slot-chevron { transform: rotate(180deg); }
.tp-slot-minutes {
  display: flex; gap: 6px; padding: 0 12px;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
}
.tp-slot.expanded .tp-slot-minutes {
  max-height: 50px; opacity: 1; padding: 6px 12px 14px;
}
.tp-slot-busy {
  opacity: 0.35; pointer-events: none; cursor: default;
}
.tp-slot-busy-label {
  margin-left: auto; font-size: 12px; color: var(--fit-red-400);
}
.tp-slot-partial {
  margin-left: auto; font-size: 12px; font-weight: 500;
  color: var(--fit-text-tertiary);
  background: var(--fit-gray-700); padding: 2px 6px;
  border-radius: 4px;
}
.fit-light .tp-slot-partial { background: var(--fit-gray-200); }

/* Time picker sheet */
.tp-sheet { background: var(--fit-gray-900); }
.fit-light .tp-sheet { background: #F2F2F7; }
.tp-slot-list { background: transparent; }
.fit-light .tp-slot-list { background: transparent; }

/* Light theme overrides for time picker */
.fit-light .tp-slot-row.selected { color: var(--fit-text-primary); }

/* ============================================================
   MINUTE / DAY CHIPS
   ============================================================ */
.min-chip {
  flex: 1; height: 44px; border-radius: var(--fit-radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 500; cursor: pointer;
  background: var(--fit-surface-high); color: var(--fit-text-primary);
  border: 1px solid transparent; transition: all 0.15s ease;
}
.min-chip:active { transform: scale(0.95); }
.min-chip.selected {
  background: var(--fit-selection-gradient);
  border-color: var(--fit-teal-600);
}
.min-chip.disabled {
  opacity: 0.3; pointer-events: none;
  color: var(--fit-text-tertiary);
}
.fit-light .min-chip:not(.selected):not(.disabled) { background: var(--fit-white); }
.fit-light .min-chip.selected { color: var(--fit-text-primary); }
.day-btn { transition: all 0.15s ease !important; }
.day-btn:active { transform: scale(0.9); }

/* ============================================================
   DROPDOWN (inline select list)
   ============================================================ */
.fit-dropdown {
  margin: -12px var(--fit-sp-4) var(--fit-sp-4);
  border-radius: var(--fit-radius-md);
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}
.fit-dropdown.open {
  max-height: 300px; opacity: 1; overflow-y: auto;
  border: 1px solid var(--fit-gray-700);
}
.fit-dropdown.open::-webkit-scrollbar { display: none; }
.fit-dark .fit-dropdown { background: var(--fit-black); }
.fit-light .fit-dropdown { background: var(--fit-gray-100); }
.fit-dropdown-item {
  display: flex; align-items: center; gap: var(--fit-sp-3);
  padding: 12px; cursor: pointer;
  font-size: 16px; color: var(--fit-text-primary);
  border-radius: var(--fit-radius-sm);
  margin: 4px; transition: all 0.15s;
}
.fit-dark .fit-dropdown-item { background: var(--fit-gray-800); }
.fit-light .fit-dropdown-item { background: var(--fit-white); }
.fit-dropdown-item.selected {
  background: var(--fit-selection-gradient) !important;
  border: 1px solid var(--fit-teal-600);
}
.fit-dropdown-item .check {
  margin-left: auto; width: 24px; height: 24px;
  border-radius: 6px; display: flex;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.15s;
}
.fit-dropdown-item.selected .check {
  opacity: 1; background: var(--fit-teal-600);
}
.fit-dropdown-item.selected .check svg { width: 14px; height: 14px; }
.fit-dropdown-item svg.item-icon { width: 20px; height: 20px; color: var(--fit-text-tertiary); }
.fit-dropdown-item.selected svg.item-icon { color: var(--fit-white); }

/* ============================================================
   PRICE ROW
   ============================================================ */
.price-row { display: flex; gap: 8px; padding: 0 var(--fit-sp-4); margin-bottom: var(--fit-sp-5); }
.price-currency {
  width: 56px; height: 56px; border-radius: var(--fit-radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--fit-text-secondary);
}
.fit-dark .price-currency { background: var(--fit-black); }
.fit-light .price-currency { background: var(--fit-gray-100); }

/* ============================================================
   CASH COUNTER
   ============================================================ */
.cash-counter {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--fit-text-secondary); margin-bottom: var(--fit-sp-4);
}
.cash-counter .count { color: var(--fit-teal-500); font-weight: 500; }
.cash-counter .hint { margin-left: auto; font-size: 12px; color: var(--fit-text-tertiary); }

/* ============================================================
   ICON UTILITY
   ============================================================ */
.fit-icon { width: 16px; height: 16px; display: inline-block; vertical-align: middle; }
.fit-icon svg { width: 100%; height: 100%; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.fit-empty-state {
  text-align: center; padding: 32px var(--fit-sp-4);
  color: var(--fit-text-tertiary); font-size: 14px; line-height: 1.5;
}
.fit-empty-state svg {
  width: 40px; height: 40px; margin-bottom: 12px; color: var(--fit-gray-600);
}
.fit-empty-state-title {
  font-size: 16px; font-weight: 500; color: var(--fit-text-secondary);
  margin-bottom: 6px;
}

/* ============================================================
   STAR RATING
   ============================================================ */
.fit-rating {
  display: flex; justify-content: center; gap: 10px;
}
.fit-rating svg {
  width: 36px; height: 36px; cursor: pointer;
  transition: all 0.15s; stroke: var(--fit-yellow-400);
  fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.fit-rating svg.filled { fill: var(--fit-yellow-400); }
.fit-rating svg:active { transform: scale(1.2); }

/* ============================================================
   PAID STATE (participant dimming)
   ============================================================ */
.fit-participant.paid .fit-participant-name { color: var(--fit-text-secondary) !important; }
.fit-participant.paid .fit-avatar { opacity: 0.5; }

/* ============================================================
   BADGE PILLS (status, payment, info)
   ============================================================ */
.fit-badge {
  font-size: 12px; font-weight: 500; padding: 2px 6px; border-radius: 4px;
  display: inline-block; white-space: nowrap;
}
.fit-badge-success { background: rgba(76,175,80,0.15); color: var(--fit-green-500); }
.fit-badge-danger { background: rgba(240,92,91,0.15); color: var(--fit-red-400); }
.fit-badge-info { background: rgba(3,178,226,0.15); color: var(--fit-blue-500); }
.fit-badge-accent { background: rgba(5,224,166,0.15); color: var(--fit-teal-500); }
.fit-badge-neutral { background: var(--fit-surface-high); color: var(--fit-text-tertiary); }

/* ============================================================
   PROGRESS BAR (light theme override)
   ============================================================ */
.fit-light .v6d-card .progress-track { background: var(--fit-gray-200); }

/* ============================================================
   VALIDATION ERROR STATE
   ============================================================ */
.fit-input-group.error .fit-input { border: 1px solid var(--fit-red-400); }
.fit-input-group.error .fit-input-label { color: var(--fit-red-400); }

/* ============================================================
   PASSWORD INPUT (with eye toggle inside)
   ============================================================ */
.fit-input-password {
  display: flex; align-items: center; padding-right: 0;
}
.fit-input-password [contenteditable] {
  flex: 1; outline: none; cursor: text;
  font-size: 16px; font-family: var(--fit-font);
  color: var(--fit-text-primary);
  -webkit-text-security: disc;
}
.fit-input-password .fit-eye-toggle {
  background: none; border: none; cursor: pointer;
  padding: 8px 12px; color: var(--fit-text-tertiary);
  flex-shrink: 0; display: flex; align-items: center;
}
.fit-input-password .fit-eye-toggle svg { width: 18px; height: 18px; }

/* Light theme settings cards */
.fit-light .set-card { background: var(--fit-white); }
.fit-light .set-title { color: var(--fit-text-primary); }
.fit-light .set-sub { color: var(--fit-text-secondary); }
.fit-light .set-icon { color: var(--fit-text-primary); }
.fit-light .set-chev { color: var(--fit-text-tertiary); }

/* ============================================================
   INPUT STATES (from Figma audit)
   ============================================================ */
/* Default — already in .fit-input base styles */

/* Focus */
.fit-dark .fit-input:focus,
.fit-dark .fit-input.focus { border: 1px solid #5B6269; }
.fit-light .fit-input:focus,
.fit-light .fit-input.focus { border: 1px solid #ACB1B6; }

/* Error */
.fit-input.error,
.fit-input-group.error .fit-input { border: 1px solid #F05C5B !important; }
.fit-input-group.error .fit-input-label { color: #F05C5B !important; }
.fit-input-error-text { font-size: 12px; color: #F05C5B; margin-top: 4px; }

/* Disabled */
.fit-input.disabled,
.fit-input[disabled] { opacity: 0.6; pointer-events: none; }
.fit-dark .fit-input-group.disabled .fit-input-label { color: #979EA5; }
.fit-light .fit-input-group.disabled .fit-input-label { color: #ACB1B6; }

/* Filled text colors */
.fit-dark .fit-input .filled-text { color: #F7F7F8; }
.fit-light .fit-input .filled-text { color: #1F2123; }

/* Placeholder colors */
.fit-dark .fit-input::placeholder { color: #757E87; }
.fit-light .fit-input::placeholder { color: #979EA5; }

/* Light theme cards, tickets, spots (on #F2F2F7 screen bg) */
.fit-light .fit-card { background: var(--fit-white); box-shadow: 0 0 12px rgba(0,0,0,0.07); }
.fit-light .fit-ticket { background: var(--fit-white); box-shadow: 0 0 12px rgba(0,0,0,0.07); }
.fit-light .fit-participants-card { background: var(--fit-white); box-shadow: 0 0 12px rgba(0,0,0,0.07); }
.fit-light .set-card { box-shadow: 0 0 12px rgba(0,0,0,0.07); }
.fit-light .fit-spots { background: var(--fit-gray-100); }
.fit-light .fit-spots-fill { background: var(--fit-gray-200); }

/* Detail participants wrapper */
.detail-participants { padding: 0 var(--fit-sp-4); }

/* SVG icon sizes */
svg.i { width: 16px; height: 16px; vertical-align: middle; }
svg.i-sm { width: 14px; height: 14px; vertical-align: middle; margin-right: 4px; }
