/* flotry-normalize.css - Canonical Visual Normalization */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --fl-canvas: #FCFBF9;
  --fl-surface: #FFFFFF;
  --fl-ink: #1F1A14;
  --fl-ink-soft: #4A443D;
  --fl-ink-muted: #827B73;
  --fl-anchor-teal: #0C766C;
  --fl-teal-deep: #08534C;
  --fl-teal-soft: #E3F2F0;
  --fl-teal-ink: #042E2A;
  --fl-coral-accent: #E55C3C;
  --fl-line: #ECE8E1;
  --fl-line-strong: #D4CDC2;

  /* Compatibility aliases for --flotry-* variables used in templates and upload-field.js */
  --flotry-cream: var(--fl-canvas);
  --flotry-cream-warm: #F3EEE5;
  --flotry-paper: var(--fl-surface);
  --flotry-ink: var(--fl-ink);
  --flotry-ink-soft: var(--fl-ink-soft);
  --flotry-ink-muted: var(--fl-ink-muted);
  --flotry-line: var(--fl-line);
  --flotry-line-strong: var(--fl-line-strong);
  --flotry-coral: var(--fl-coral-accent);
  --flotry-coral-soft: #FAEBE6;
  --flotry-coral-ink: #6D2010;
  --flotry-anchor-teal: var(--fl-anchor-teal);
  --flotry-teal: var(--fl-anchor-teal);
  --flotry-teal-deep: var(--fl-teal-deep);
  --flotry-teal-soft: var(--fl-teal-soft);
  --flotry-teal-ink: var(--fl-teal-ink);
  --flotry-success: #2E855A;
  --flotry-warning: #C7871F;
  --flotry-danger: #B3423B;
  --flotry-info: #2B6486;
  --flotry-s-1: 4px;
  --flotry-s-2: 8px;
  --flotry-s-3: 12px;
  --flotry-s-4: 16px;
  --flotry-s-5: 20px;
  --flotry-s-6: 24px;
  --flotry-s-7: 32px;
  --flotry-s-8: 40px;
  --flotry-s-9: 48px;
  --flotry-s-10: 64px;
  --flotry-r-sm: 8px;
  --flotry-r-md: 12px;
  --flotry-r-lg: 16px;
  --flotry-r-pill: 999px;
  --flotry-font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --flotry-font-body: 'Inter', system-ui, sans-serif;

  /* Compatibility aliases for route-extras.css variables */
  --mist-teal: var(--fl-teal-soft);
  --anchor-teal: var(--fl-anchor-teal);
  --teal-deep: var(--fl-teal-deep);
  --teal-soft: var(--fl-teal-soft);
  --teal-ink: var(--fl-teal-ink);
  --coral-accent: var(--fl-coral-accent);
  --line: var(--fl-line);
  --line-strong: var(--fl-line-strong);
  --canvas: var(--fl-canvas);
  --surface: var(--fl-surface);
  --ink: var(--fl-ink);
  --ink-soft: var(--fl-ink-soft);
  --ink-muted: var(--fl-ink-muted);
  --r-sm: var(--flotry-r-sm);
  --r-md: var(--flotry-r-md);
  --r-lg: var(--flotry-r-lg);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--fl-canvas);
  color: var(--fl-ink);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

button, input, textarea, select {
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6, .fl-heading {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--fl-ink);
  margin: 0;
  letter-spacing: -0.02em;
}

/* AppShell */
.fl-appshell {
  max-width: 720px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--fl-canvas);
  transition: max-width 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.fl-appshell:has(.web) {
  max-width: 1360px;
}

/* Header */
.fl-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background-color: var(--fl-surface);
  border-bottom: 1px solid var(--fl-line);
  box-shadow: 0 2px 8px rgba(43, 31, 20, 0.02);
}
.fl-header-brand, .lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}
.fl-header-logo svg, .lockup svg.mark {
  width: 30px;
  height: 30px;
  color: var(--fl-anchor-teal);
}
.fl-header-wordmark, .lockup .wm {
  font-family: var(--flotry-font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--fl-ink);
}
.fl-header-pilot-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--fl-teal-ink);
  background-color: var(--fl-teal-soft);
  padding: 4px 8px;
  border-radius: 999px;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

/* Main Content */
.fl-main {
  flex: 1;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Hero */
.fl-hero {
  text-align: left;
}
.fl-hero-title, .h1 {
  font-family: var(--flotry-font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.fl-hero-body, .lede {
  font-size: 16px;
  color: var(--fl-ink-soft);
  margin-bottom: 24px;
  line-height: 1.6;
}
.eyebrow {
  font-family: var(--flotry-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fl-anchor-teal);
  margin-bottom: 8px;
}

/* Action Buttons */
.fl-actions, .actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.fl-btn, .btn, .flotry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 12px;
  font-family: var(--flotry-font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  border: 1px solid transparent;
}
.fl-btn-primary, .btn--primary, .flotry-btn--primary {
  background-color: var(--fl-anchor-teal);
  color: #FFFFFF;
  border-color: var(--fl-anchor-teal);
  box-shadow: 0 4px 14px rgba(12, 118, 108, 0.15);
}
.fl-btn-primary:hover, .btn--primary:hover, .flotry-btn--primary:hover {
  background-color: var(--fl-teal-deep);
  border-color: var(--fl-teal-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(12, 118, 108, 0.25);
}
.fl-btn-secondary, .btn--ghost, .flotry-btn--secondary {
  background-color: transparent;
  color: var(--fl-anchor-teal);
  border: 1px solid var(--fl-anchor-teal);
}
.fl-btn-secondary:hover, .btn--ghost:hover, .flotry-btn--secondary:hover {
  background-color: var(--fl-teal-soft);
  transform: translateY(-1px);
}
.flotry-btn--full {
  width: 100%;
}

/* Form inputs */
.flotry-input, .input, .textarea, .select {
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  font-family: var(--flotry-font-body);
  font-size: 15px;
  background-color: var(--fl-surface);
  border: 1.5px solid var(--fl-line-strong);
  border-radius: 12px;
  color: var(--fl-ink);
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.flotry-input:focus, .input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--fl-anchor-teal);
  box-shadow: 0 0 0 3px var(--fl-teal-soft);
}

/* Navigation */
.fl-header .nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.fl-header .nav a {
  font-family: var(--flotry-font-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fl-ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
}
.fl-header .nav a:hover {
  color: var(--fl-anchor-teal);
}
.fl-header .nav a.login {
  color: var(--fl-anchor-teal);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  background-color: var(--fl-teal-soft);
}
.fl-header .nav a.login:hover {
  background-color: var(--fl-anchor-teal);
  color: #ffffff;
}

/* Desktop layout exceptions */
@media (min-width: 640px) {
  .fl-actions, .actions {
    flex-direction: row;
  }
  .fl-btn, .btn, .flotry-btn {
    width: auto;
    min-width: 160px;
  }
  .fl-main {
    padding: 48px 32px;
  }
  .fl-hero-title, .h1 {
    font-size: 40px;
  }
}

/* How It Works */
details.fl-how-it-works {
  background-color: var(--fl-surface);
  border: 1px solid var(--fl-line);
  border-radius: 16px;
  padding: 16px 20px;
  margin-top: 24px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(43, 31, 20, 0.02);
}
details.fl-how-it-works[open] {
  padding-bottom: 24px;
  box-shadow: 0 8px 24px rgba(43, 31, 20, 0.04);
}
details.fl-how-it-works summary {
  font-family: var(--flotry-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fl-ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
details.fl-how-it-works summary::-webkit-details-marker {
  display: none;
}
details.fl-how-it-works summary::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--fl-ink-soft);
  border-bottom: 2px solid var(--fl-ink-soft);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 4px;
}
details.fl-how-it-works[open] summary::after {
  transform: rotate(-135deg);
}
details.fl-how-it-works .steps, .steps {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--fl-line);
  display: grid;
  gap: 16px;
}
.flapp .step, .step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-family: var(--flotry-font-body);
  font-size: 14px;
  color: var(--fl-ink-soft);
  line-height: 1.5;
}
.flapp .step b, .step b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--fl-teal-soft);
  color: var(--fl-teal-ink);
  font-family: var(--flotry-font-display);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.fl-payment-note {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--fl-line);
  font-size: 14px;
  color: var(--fl-ink-soft);
  display: flex;
  gap: 8px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

/* Pilot Note */
.fl-pilot-note {
  background-color: var(--fl-coral-soft);
  border: 1px solid rgba(229, 92, 60, 0.15);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--fl-coral-ink);
  text-align: center;
  line-height: 1.4;
}

/* Orient - Info Alert */
.orient {
  background-color: var(--fl-teal-soft);
  border: 1px solid rgba(12, 118, 108, 0.18);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
  box-shadow: 0 4px 12px rgba(12, 118, 108, 0.04);
}
.orient .ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: var(--fl-anchor-teal);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(12, 118, 108, 0.2);
}
.orient .ic svg {
  width: 20px;
  height: 20px;
}
.orient h4 {
  font-family: var(--flotry-font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--fl-teal-ink);
  margin: 0 0 4px;
}
.orient p {
  font-family: var(--flotry-font-body);
  font-size: 13.5px;
  color: var(--fl-teal-ink);
  margin: 0;
  line-height: 1.5;
}

/* Responsive Hero Grid */
.fl-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}
.fl-hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 320px;
  margin: 0 auto;
}
.fl-hero-illustration svg {
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .fl-hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
  }
  .fl-hero-illustration {
    max-width: 100%;
  }
  details.fl-how-it-works .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* Premium Visual Elevations (v2.0) */

/* Modern visual card */
.fl-card {
  background-color: var(--fl-surface);
  border: 1px solid var(--fl-line-strong);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 30px -10px rgba(12, 118, 108, 0.06), 0 1px 3px rgba(0, 0, 0, 0.01);
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Interactive card hover */
.fl-card--interactive {
  cursor: pointer;
  user-select: none;
}
.fl-card--interactive:hover {
  transform: translateY(-2px);
  border-color: var(--fl-anchor-teal);
  box-shadow: 0 16px 36px -12px rgba(12, 118, 108, 0.12), 0 2px 5px rgba(0, 0, 0, 0.02);
}

/* Sidebar split grid layout */
.fl-split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 820px) {
  .fl-split-grid {
    grid-template-columns: 1.4fr 0.8fr;
    gap: 32px;
  }
}

/* Sidebar reassurance panel */
.fl-sidebar-panel {
  background-color: var(--fl-teal-soft);
  border: 1px solid rgba(12, 118, 108, 0.15);
  border-radius: 16px;
  padding: 24px;
  box-sizing: border-box;
}
.fl-sidebar-panel h3 {
  font-family: var(--flotry-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fl-teal-ink);
  margin-bottom: 12px;
}
.fl-sidebar-panel p {
  font-size: 13.5px;
  color: var(--fl-teal-ink);
  line-height: 1.5;
  margin: 0 0 12px;
}
.fl-sidebar-panel p:last-child {
  margin-bottom: 0;
}
.fl-sidebar-list {
  padding-left: 18px;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fl-sidebar-list li {
  font-size: 13px;
  color: var(--fl-teal-ink);
  line-height: 1.4;
}

/* Custom Scrollbar for listbox autocomplete combo-pop */
.combo-pop {
  background: var(--fl-surface);
  border: 1px solid var(--fl-line-strong);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(12, 118, 108, 0.1);
  max-height: 240px;
  overflow-y: auto;
  position: absolute;
  width: 100%;
  left: 0;
  top: calc(100% + 4px);
  z-index: 100;
  box-sizing: border-box;
  padding: 6px 0;
}
.combo-pop::-webkit-scrollbar {
  width: 6px;
}
.combo-pop::-webkit-scrollbar-track {
  background: transparent;
}
.combo-pop::-webkit-scrollbar-thumb {
  background: var(--fl-line-strong);
  border-radius: 99px;
}
.combo-item {
  padding: 10px 16px;
  font-size: 14.5px;
  color: var(--fl-ink);
  cursor: pointer;
  transition: background 0.15s ease;
}
.combo-item:hover, .combo-item.active {
  background-color: var(--fl-teal-soft);
  color: var(--fl-teal-ink);
}

/* Avatar Badge */
.fl-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--fl-teal-soft);
  color: var(--fl-anchor-teal);
  display: grid;
  place-items: center;
  font-family: var(--flotry-font-display);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid var(--fl-surface);
  box-shadow: 0 2px 6px rgba(12, 118, 108, 0.15);
}

/* Visual illustrations & decorations */
.fl-brand-gradient-bg {
  background: radial-gradient(circle at 10% 20%, rgba(12, 118, 108, 0.03) 0%, rgba(229, 92, 60, 0.02) 90%);
}

/* Reassuring badge */
.fl-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: var(--fl-teal-soft);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fl-anchor-teal);
}
.fl-trust-badge svg {
  width: 14px;
  height: 14px;
}

/* Custom visual system */
.fl-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background-color: var(--fl-teal-soft);
  color: var(--fl-anchor-teal);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.fl-icon-box svg {
  width: 24px;
  height: 24px;
}
.fl-icon-box--coral {
  background-color: var(--flotry-coral-soft);
  color: var(--fl-coral-accent);
}

/* Activity Hydrated Cards */
.flapp .stack, .stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}
.flapp .req-card, .req-card {
  background: var(--fl-surface);
  border: 1px solid var(--fl-line-strong);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 0;
  cursor: pointer;
  display: block;
  text-decoration: none;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(43, 31, 20, 0.015);
  box-sizing: border-box;
}
.flapp .req-card:hover, .req-card:hover {
  border-color: var(--fl-anchor-teal);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(12, 118, 108, 0.08);
}
.flapp .req-card .head, .req-card .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.flapp .req-card .tag, .req-card .tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fl-anchor-teal);
  background: var(--fl-teal-soft);
  padding: 4px 10px;
  border-radius: 99px;
  align-self: flex-start;
  font-family: var(--flotry-font-display);
}
.flapp .req-card h4, .req-card h4 {
  font-family: var(--flotry-font-display);
  font-weight: 700;
  font-size: 17.5px;
  margin: 6px 0 8px;
  color: var(--fl-ink);
  line-height: 1.3;
}
.flapp .req-card p, .req-card p {
  font-size: 14px;
  color: var(--fl-ink-soft);
  margin: 0 0 12px;
  line-height: 1.5;
}
.flapp .req-card .meta, .req-card .meta {
  font-size: 12.5px;
  color: var(--fl-ink-muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid var(--fl-line);
  padding-top: 12px;
  margin-top: 4px;
}
.flapp .req-card .meta span, .req-card .meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.flapp .req-card .meta span:not(:last-child)::after, .req-card .meta span:not(:last-child)::after {
  content: "•";
  color: var(--fl-line-strong);
  margin-left: 10px;
}

/* Empty States */
.flapp .empty, .empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--fl-surface);
  border: 2px dashed var(--fl-line-strong);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  box-sizing: border-box;
}
.flapp .empty h4, .empty h4 {
  font-family: var(--flotry-font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--fl-ink);
}
.flapp .empty p, .empty p {
  font-size: 14px;
  color: var(--fl-ink-muted);
  margin: 0 0 16px;
  max-width: 380px;
  line-height: 1.5;
}
.flapp .empty .btn, .empty .btn {
  width: auto;
  min-width: 180px;
}

/* Onboarding Guides */
details.onboarding-card {
  background: var(--fl-surface);
  border: 1px solid var(--fl-line-strong);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(43, 31, 20, 0.02);
  transition: all 0.25s ease;
  box-sizing: border-box;
}
details.onboarding-card[open] {
  box-shadow: 0 8px 28px rgba(43, 31, 20, 0.04);
}
details.onboarding-card summary {
  font-family: var(--flotry-font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--fl-ink);
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
}
details.onboarding-card summary::-webkit-details-marker {
  display: none;
}
details.onboarding-card summary::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2.5px solid var(--fl-ink-soft);
  border-bottom: 2.5px solid var(--fl-ink-soft);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 4px;
}
details.onboarding-card[open] summary::after {
  transform: rotate(-135deg);
}
details.onboarding-card p {
  font-size: 14.5px;
  color: var(--fl-ink-soft);
  margin: 12px 0 18px;
  line-height: 1.5;
}
details.onboarding-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-top: 1px solid var(--fl-line);
  padding-top: 18px;
}
details.onboarding-card li {
  position: relative;
  padding-left: 36px;
}
details.onboarding-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background-color: var(--fl-teal-soft);
  color: var(--fl-anchor-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}
details.onboarding-card li a {
  font-family: var(--flotry-font-display);
  font-weight: 700;
  color: var(--fl-anchor-teal);
  text-decoration: none;
  transition: color 0.15s ease;
  display: inline-block;
  margin-bottom: 4px;
}
details.onboarding-card li a:hover {
  color: var(--fl-teal-deep);
  text-decoration: underline;
}
details.onboarding-card li strong {
  font-family: var(--flotry-font-display);
  font-weight: 700;
  color: var(--fl-ink);
  display: inline-block;
  margin-bottom: 4px;
}
details.onboarding-card li p {
  font-size: 13.5px;
  color: var(--fl-ink-muted);
  margin: 0;
  line-height: 1.45;
}

/* Coordination Screen Styles */
.status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background-color: var(--fl-teal-soft);
  border: 1px solid rgba(12, 118, 108, 0.18);
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(12, 118, 108, 0.03);
}
.status-row .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--fl-anchor-teal);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(12, 118, 108, 0.15);
}
.status-row b {
  font-family: var(--flotry-font-display);
  font-weight: 700;
  color: var(--fl-teal-ink);
  font-size: 14.5px;
}
.status-row span {
  color: var(--fl-teal-ink);
  font-size: 13.5px;
}

.coord-card {
  background: var(--fl-surface);
  border: 1px solid var(--fl-line-strong);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(43, 31, 20, 0.015);
  box-sizing: border-box;
}
.coord-card h4 {
  font-family: var(--flotry-font-display);
  font-size: 16.5px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--fl-ink);
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--fl-line);
  padding-bottom: 12px;
}
.coord-card .who {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.coord-card .who .av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--fl-teal-soft);
  color: var(--fl-teal-ink);
  display: grid;
  place-items: center;
  font-family: var(--flotry-font-display);
  font-weight: 700;
  font-size: 15px;
  box-shadow: inset 0 2px 4px rgba(12, 118, 108, 0.05);
}
.coord-card .who .name {
  font-family: var(--flotry-font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--fl-ink);
  margin: 0 0 2px;
}
.coord-card .who .meta {
  font-size: 13px;
  color: var(--fl-ink-muted);
  margin: 0;
}
.coord-card .row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 20px;
  font-size: 14px;
  margin-top: 8px;
}
.coord-card .row .k {
  color: var(--fl-ink-muted);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
  padding-top: 2px;
}
.coord-card .row .v {
  color: var(--fl-ink-soft);
  line-height: 1.5;
}
.coord-card .row .v b {
  color: var(--fl-ink);
  font-weight: 600;
}

.timeline {
  position: relative;
  padding-left: 26px;
  margin: 12px 0 8px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--fl-line);
}
.timeline .tl {
  position: relative;
  padding: 4px 0 20px;
}
.timeline .tl::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fl-surface);
  border: 2px solid var(--fl-line-strong);
  transition: all 0.2s ease;
}
.timeline .tl.done::before {
  background: var(--fl-anchor-teal);
  border-color: var(--fl-anchor-teal);
  box-shadow: 0 0 0 3px var(--fl-teal-soft);
}
.timeline .tl.now::before {
  background: var(--fl-surface);
  border-color: var(--fl-anchor-teal);
  box-shadow: 0 0 0 5px var(--fl-teal-soft);
}
.timeline .tl h5 {
  font-family: var(--flotry-font-display);
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--fl-ink);
}
.timeline .tl p {
  font-size: 13px;
  color: var(--fl-ink-muted);
  margin: 0;
  line-height: 1.45;
}
.timeline .tl.now h5 {
  color: var(--fl-teal-ink);
}

.msg-stream {
  background: var(--fl-surface);
  border: 1px solid var(--fl-line-strong);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(43, 31, 20, 0.015);
  box-sizing: border-box;
}
.msg-stream h4 {
  font-family: var(--flotry-font-display);
  font-size: 16.5px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--fl-ink);
  border-bottom: 1px solid var(--fl-line);
  padding-bottom: 12px;
}
.msg {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.msg:last-child {
  margin-bottom: 0;
}
.msg .av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--fl-teal-soft);
  color: var(--fl-teal-ink);
  display: grid;
  place-items: center;
  font-family: var(--flotry-font-display);
  font-weight: 700;
  font-size: 13px;
}
.msg.self .av {
  background-color: var(--fl-line-strong);
  color: var(--fl-ink-soft);
}
.msg .bub {
  background-color: var(--fl-canvas);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--fl-ink-soft);
  line-height: 1.5;
  border: 1px solid var(--fl-line);
  max-width: 85%;
  justify-self: start;
}
.msg.self .bub {
  background-color: var(--fl-teal-soft);
  color: var(--fl-teal-ink);
  border-color: rgba(12, 118, 108, 0.1);
  justify-self: end;
}
.msg .when {
  font-size: 11.5px;
  color: var(--fl-ink-muted);
  margin-top: 4px;
  display: block;
}
.msg-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 16px;
  border-top: 1px solid var(--fl-line);
  padding-top: 16px;
}
.msg-input input {
  min-height: 44px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14.5px;
  background: var(--fl-surface);
  border: 1.5px solid var(--fl-line-strong);
  border-radius: 12px;
  transition: all 0.2s ease;
}
.msg-input input:focus {
  outline: none;
  border-color: var(--fl-anchor-teal);
  box-shadow: 0 0 0 3px var(--fl-teal-soft);
}
.msg-input button {
  min-height: 44px;
  padding: 0 20px;
}

/* Forms and sections inside msg-stream */
.msg-stream form label {
  font-family: var(--flotry-font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--fl-ink-soft);
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.msg-stream select, .msg-stream textarea, .msg-stream input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--fl-line-strong);
  background-color: var(--fl-surface);
  font-family: var(--flotry-font-body);
  font-size: 14px;
  color: var(--fl-ink);
  transition: border-color 0.2s;
}
.msg-stream select:focus, .msg-stream textarea:focus {
  outline: none;
  border-color: var(--fl-anchor-teal);
}
.msg-stream textarea {
  resize: vertical;
}
.msg-stream p.meta {
  font-size: 13.5px;
  color: var(--fl-ink-soft);
  line-height: 1.5;
  margin: 0 0 12px;
}

/* Premium Primary Coral Button */
.fl-btn-primary-coral {
  background-color: var(--fl-coral-accent);
  color: #FFFFFF;
  border-color: var(--fl-coral-accent);
  box-shadow: 0 4px 14px rgba(229, 92, 60, 0.15);
}
.fl-btn-primary-coral:hover {
  background-color: #d14d2e;
  border-color: #d14d2e;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(229, 92, 60, 0.25);
}

/* Responsive Mobile Header & Navigation */
@media (max-width: 768px) {
  .fl-header {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: space-between;
  }
  .fl-header .nav {
    gap: 12px;
  }
  .fl-header .nav a {
    font-size: 13.5px;
  }
  .fl-header .nav a.login {
    padding: 6px 12px;
  }
}
@media (max-width: 480px) {
  .fl-header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .fl-header .nav {
    justify-content: center;
    width: 100%;
    gap: 16px;
  }
}

/* --- Flotry Brand Elevation Rework --- */

/* Wider Desktop layout grids */
@media (min-width: 1024px) {
  .fl-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
  }
  .fl-split-grid {
    display: grid !important;
    grid-template-columns: 1.4fr 1fr !important;
    gap: 40px !important;
  }
  .fl-split-grid--equal {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Service Category Cards visual enhancements */
.hs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px !important;
  background: var(--fl-surface);
  border: 1.5px solid var(--fl-line-strong);
  border-radius: 16px;
  gap: 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 10px rgba(43, 31, 20, 0.01);
  min-height: 180px;
}
.hs-card:hover:not([data-restricted="true"]) {
  border-color: var(--fl-anchor-teal) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 24px rgba(12, 118, 108, 0.08) !important;
}
.hs-card[data-selected="true"] {
  border-color: var(--fl-anchor-teal) !important;
  background: var(--fl-teal-soft) !important;
  box-shadow: 0 6px 18px rgba(12, 118, 108, 0.1) !important;
}

/* Service category icons - dynamic injection */
.hs-card[data-card]::before {
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.hs-card[data-card="plomeria"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C766C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 22a7 7 0 0 0 7-7c0-4.3-7-11-7-11S5 10.7 5 15a7 7 0 0 0 7 7z'/></svg>");
}
.hs-card[data-card="electricidad"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E55C3C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/></svg>");
}
.hs-card[data-card="limpieza"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C766C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 2v4M12 18v4M4 12H2M22 12h-2M5.76 5.76l2.83 2.83M15.41 15.41l2.83 2.83M5.76 18.24l2.83-2.83M15.41 8.59l2.83-2.83M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8z'/></svg>");
}
.hs-card[data-card="mascotas"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E55C3C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='14' r='4'/><circle cx='6' cy='9' r='2.5'/><circle cx='10' cy='5' r='2.5'/><circle cx='14' cy='5' r='2.5'/><circle cx='18' cy='9' r='2.5'/></svg>");
}
.hs-card[data-card="cuidado_adulto_mayor"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C766C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/></svg>");
}
.hs-card[data-card="mudanza"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E55C3C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='7' width='20' height='14' rx='2' ry='2'/><path d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/></svg>");
}

/* Service category description details */
.hs-card[data-card]::after {
  font-size: 13px;
  line-height: 1.45;
  color: var(--fl-ink-soft);
  margin-top: 2px;
  display: block;
}
.hs-card[data-card="plomeria"]::after {
  content: "Reparación de filtraciones, grifería, destapes menores y sanitarios.";
}
.hs-card[data-card="electricidad"]::after {
  content: "Instalación de luminarias, enchufes y reparaciones eléctricas menores.";
}
.hs-card[data-card="limpieza"]::after {
  content: "Aseo profundo o de mantención para casas, departamentos y oficinas.";
}
.hs-card[data-card="mascotas"]::after {
  content: "Paseos recreativos, alimentación y cuidado cariñoso en casa.";
}
.hs-card[data-card="cuidado_adulto_mayor"]::after {
  content: "Acompañamiento, asistencia en compras y paseos (no clínico).";
}
.hs-card[data-card="mudanza"]::after {
  content: "Traslado de cajas, muebles y embalaje para mudanzas locales.";
}

/* Adjust category cards dynamic layout spacing */
.hs-card .hs-card__row {
  margin-bottom: 2px;
}

/* Form visuals and autocomplete input polish */
.combo-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23827B73'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 14px) center;
  background-size: 18px 18px;
  padding-right: 40px !important;
}

/* Custom styles for Range Slider and presets */
.slider-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.radius-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--fl-line-strong);
  outline: none;
  margin: 12px 0;
  transition: background 0.15s ease;
}
.radius-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--fl-anchor-teal);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(12, 118, 108, 0.25);
  border: 2px solid #FFFFFF;
  transition: transform 0.1s ease;
}
.radius-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}
.slider-presets {
  display: flex;
  gap: 10px;
}
.slider-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--fl-line-strong);
  font-size: 13px;
  color: var(--fl-ink-soft);
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--fl-surface);
}
.slider-chip:hover {
  border-color: var(--fl-anchor-teal);
  color: var(--fl-anchor-teal);
}
.slider-chip.active {
  background: var(--fl-anchor-teal);
  color: #FFFFFF;
  border-color: var(--fl-anchor-teal);
}

/* Login Sidebrand Panel */
.fl-login-container {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - 120px);
}
@media (min-width: 1024px) {
  .fl-login-container {
    grid-template-columns: 1.1fr 1fr;
  }
}
.fl-login-brand-panel {
  background: radial-gradient(circle at 10% 20%, rgba(12, 118, 108, 0.05) 0%, rgba(229, 92, 60, 0.03) 90%), #FCFBF9;
  border-right: 1px solid var(--fl-line);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
@media (max-width: 1023px) {
  .fl-login-brand-panel {
    display: none;
  }
}
.fl-login-brand-panel h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--fl-ink);
  line-height: 1.2;
  margin-bottom: 16px;
}
.fl-login-brand-panel p {
  font-size: 16px;
  color: var(--fl-ink-soft);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Trust features list */
.fl-trust-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}
.fl-trust-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.fl-trust-point svg {
  width: 20px;
  height: 20px;
  color: var(--fl-anchor-teal);
  flex-shrink: 0;
  margin-top: 2px;
}
.fl-trust-point div h4 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 2px;
}
.fl-trust-point div p {
  font-size: 13px;
  color: var(--fl-ink-muted);
  margin: 0;
  line-height: 1.4;
}

/* Side Trust/Onboarding panel standard */
.fl-trust-sidebar {
  background: var(--fl-surface);
  border: 1px solid var(--fl-line-strong);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 12px rgba(43, 31, 20, 0.015);
  box-sizing: border-box;
}
.fl-trust-sidebar h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.fl-trust-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fl-trust-sidebar li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fl-ink-soft);
}
.fl-trust-sidebar li b {
  color: var(--fl-ink);
}
.fl-trust-sidebar li svg {
  width: 18px;
  height: 18px;
  color: var(--fl-anchor-teal);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Google Auth styles inside Settings */
.fl-google-status-box {
  background: var(--fl-teal-soft);
  border: 1px solid rgba(12, 118, 108, 0.18);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.fl-google-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fl-google-user-info img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--fl-surface);
}
.fl-google-user-name h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--fl-teal-ink);
}
.fl-google-user-name p {
  font-size: 12px;
  color: var(--fl-ink-soft);
  margin: 0;
}

/* Custom Select dropdown overrides */
select.flotry-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C766C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 16px 16px !important;
  padding-right: 40px !important;
  cursor: pointer;
}

/* 3-Column Roles Selection Grid on Desktop (Tablet/Legacy only - deconflicted from desktop 2-panel) */
@media (min-width: 768px) and (max-width: 1023px) {
  .role-page.fl-appshell {
    max-width: 1100px !important;
  }
  .role-page__main {
    max-width: 1000px !important;
    padding: 56px 48px !important;
  }
  [role="radiogroup"] {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
    margin-bottom: 32px !important;
  }
  .role-card {
    margin-bottom: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 32px 24px !important;
    min-height: 250px !important;
    justify-content: space-between !important;
  }
  .role-card__copy {
    text-align: center !important;
  }
  .role-card__radio {
    margin-bottom: 12px !important;
  }
  .role-page__continue {
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* 3-Column Service Grid and Layout Width on Desktop */
@media (min-width: 768px) {
  .hs-page__main {
    max-width: 1100px !important;
  }
  .hs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }
}

/* Mobile responsive constraints & overflow prevention */
@media (max-width: 1023px) {
  .fl-login-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 400px) {
  .hs-grid {
    grid-template-columns: 1fr !important;
  }
  .hs-card {
    max-width: 100% !important;
  }
  .hs-card__note {
    max-width: 100% !important;
  }
}

