/* ============================================================
   Chalet Butler — Marketing Website CSS
   Design tokens and component styles for all marketing pages.
   Pure CSS, no framework. To build: serve from priv/static
   directly; add tailwind/esbuild entry for production minify.
   ============================================================ */

/* ========================
   1. Design Tokens
   ======================== */
:root {
  --color-bg:         #F7F3EE;
  --color-surface:    #EDE8E0;
  --color-dark:       #1C3028;
  --color-text:       #1A1814;
  --color-muted:      #7A746C;
  --color-accent:     #C8872A;
  --color-accent-h:   #A3691A;
  --color-alt:        #3A5A6E;
  --color-white:      #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* Fluid type scale */
  --t-xs:   clamp(0.70rem, 1.4vw, 0.80rem);
  --t-sm:   clamp(0.875rem, 1.8vw, 1rem);
  --t-base: clamp(1rem, 2vw, 1.125rem);
  --t-lg:   clamp(1.125rem, 2.5vw, 1.375rem);
  --t-xl:   clamp(1.25rem, 3vw, 1.625rem);
  --t-2xl:  clamp(1.5rem, 3.5vw, 2rem);
  --t-3xl:  clamp(2rem, 5vw, 3rem);
  --t-4xl:  clamp(2.5rem, 7vw, 4rem);
  --t-hero: clamp(2.75rem, 8vw, 5.5rem);

  /* Spacing (8px grid) */
  --sp-1:  0.5rem;
  --sp-2:  1rem;
  --sp-3:  1.5rem;
  --sp-4:  2rem;
  --sp-6:  3rem;
  --sp-8:  4rem;
  --sp-10: 5rem;
  --sp-12: 6rem;
  --sp-16: 8rem;

  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(26,24,20,0.08);
  --shadow-md: 0 4px 16px rgba(26,24,20,0.12);
  --shadow-lg: 0 8px 40px rgba(26,24,20,0.18);

  --ease: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================
   2. Reset & Base
   ======================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ========================
   3. Skip Link (a11y)
   ======================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  padding: var(--sp-1) var(--sp-3);
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  border-radius: var(--r-md);
  z-index: 9999;
  transition: top 0.1s;
}
.skip-link:focus { top: var(--sp-2); }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ========================
   4. Layout
   ======================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

.section { padding-block: clamp(4rem, 10vw, 8rem); }

/* ========================
   5. Navigation
   ======================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--sp-3) 0;
  background-color: var(--color-dark);
  transition: background-color var(--ease), box-shadow var(--ease), padding var(--ease);
}

.site-nav.scrolled {
  box-shadow: var(--shadow-md);
  padding: var(--sp-2) 0;
}

.nav-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo-icon { font-size: 1.4em; line-height: 1; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.locale-toggle {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  color: rgba(255,255,255,0.7);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.locale-link {
  color: rgba(255,255,255,0.65);
  transition: color var(--ease);
}
.locale-link:hover { color: var(--color-white); }
.locale-current { color: var(--color-white); font-weight: 700; }
.locale-sep { opacity: 0.35; }

/* ========================
   6. CTA Buttons
   ======================== */
.btn-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.4rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--t-sm);
  font-weight: 600;
  border-radius: var(--r-full);
  transition: background-color var(--ease), transform var(--ease), box-shadow var(--ease);
  white-space: nowrap;
}
.btn-cta:hover {
  background: var(--color-accent-h);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(200,135,42,0.4);
}
.btn-cta:active { transform: translateY(0); }

.btn-cta-lg {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 2.25rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--t-base);
  font-weight: 600;
  border-radius: var(--r-full);
  transition: background-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn-cta-lg:hover {
  background: var(--color-accent-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(200,135,42,0.45);
}
.btn-cta-lg:active { transform: translateY(0); }

/* ========================
   7. Hero
   ======================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--color-dark);
  background-image: linear-gradient(to bottom, rgba(28,48,40,0.7) 0%, rgba(28,48,40,0.95) 100%);
  overflow: hidden;
}

@media (max-width: 768px) { .hero { min-height: 85vh; } }

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--sp-4);
  padding-top: 8rem;
  padding-bottom: var(--sp-12);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--t-hero);
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-bottom: var(--sp-4);
}

.hero-subhead {
  font-size: var(--t-lg);
  color: rgba(255,255,255,0.82);
  max-width: 52ch;
  line-height: 1.65;
  margin-bottom: var(--sp-6);
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
}

.hero-note {
  font-size: var(--t-xs);
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.01em;
}

.hero-scroll-cue {
  position: absolute;
  bottom: var(--sp-6);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.45);
  animation: scroll-bounce 2.2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ========================
   8. Section Header
   ======================== */
.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: var(--t-3xl);
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: -0.02em;
  max-width: 26ch;
  margin-inline: auto;
  line-height: 1.2;
}

.section-testimonials .section-header h2 { color: rgba(255,255,255,0.9); }

/* ========================
   9. Problem
   ======================== */
.section-problem {
  background-color: var(--color-surface);
  padding-block: clamp(4rem, 10vw, 7rem);
}

.section-problem .container { max-width: 720px; }

.problem-paragraph {
  font-size: var(--t-lg);
  line-height: 1.8;
  color: var(--color-text);
}

.problem-paragraph + .problem-paragraph { margin-top: var(--sp-4); }

.problem-paragraph.emphasis {
  font-style: italic;
  color: var(--color-dark);
  font-weight: 500;
}

/* ========================
   10. Timeline
   ======================== */
.section-timeline { background-color: var(--color-bg); }

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

@media (max-width: 900px) { .timeline-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .timeline-grid { grid-template-columns: 1fr; } }

.timeline-card {
  background: var(--color-surface);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: transform var(--ease), box-shadow var(--ease);
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.timeline-step-num {
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--t-xs);
  font-weight: 700;
  flex-shrink: 0;
}

.timeline-icon { font-size: 1.5rem; line-height: 1; }

.timeline-card h3 {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.2;
}

.timeline-card p {
  font-size: var(--t-sm);
  color: var(--color-muted);
  line-height: 1.7;
}

/* ========================
   11. Testimonials
   ======================== */
.section-testimonials {
  background-color: var(--color-dark);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; gap: var(--sp-3); }
}

.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-style: italic;
  color: rgba(255,255,255,0.88);
  line-height: 1.55;
  flex: 1;
}

.testimonial-meta {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--sp-2);
}

.testimonial-name {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--color-accent);
}

.testimonial-property {
  font-size: var(--t-xs);
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

/* ========================
   12. Features
   ======================== */
.section-features { background: var(--color-bg); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; gap: var(--sp-3); }
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.feature-icon {
  width: 3.25rem;
  height: 3.25rem;
  background: var(--color-accent);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.625rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.2;
}

.feature-card p {
  font-size: var(--t-sm);
  color: var(--color-muted);
  line-height: 1.75;
}

.feature-compat {
  margin-top: auto;
  font-size: var(--t-xs);
  color: var(--color-alt);
  font-weight: 500;
  padding-top: var(--sp-2);
  border-top: 1px solid var(--color-surface);
}

/* ========================
   13. Offer
   ======================== */
.section-offer {
  background: linear-gradient(135deg, var(--color-dark) 0%, #274033 100%);
  padding-block: clamp(5rem, 12vw, 10rem);
  text-align: center;
}

.offer-eyebrow {
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}

.offer-headline {
  font-family: var(--font-display);
  font-size: var(--t-4xl);
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-4);
}

.offer-copy {
  font-size: var(--t-lg);
  color: rgba(255,255,255,0.72);
  max-width: 52ch;
  margin-inline: auto;
  line-height: 1.75;
  margin-bottom: var(--sp-6);
}

.offer-copy strong { color: var(--color-white); font-weight: 600; }

.offer-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.offer-checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4);
  list-style: none;
  font-size: var(--t-xs);
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

.offer-checks li::before {
  content: "✓ ";
  color: var(--color-accent);
  font-weight: 700;
}

/* ========================
   14. Compatibility
   ======================== */
.section-compat { background: var(--color-surface); }

.compat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  margin-block: var(--sp-8);
}

@media (max-width: 768px) {
  .compat-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
}

.compat-label {
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--color-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.compat-brands {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.compat-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--color-text);
}

.compat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-alt);
  flex-shrink: 0;
}

.compat-note {
  text-align: center;
  font-size: var(--t-sm);
  color: var(--color-muted);
}

.compat-note a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ========================
   15. Footer
   ======================== */
.site-footer {
  background: var(--color-dark);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.footer-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--sp-4);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-8);
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: var(--sp-6); }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.footer-tagline {
  font-size: var(--t-sm);
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--sp-3);
}

.footer-locale {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--t-sm);
  color: rgba(255,255,255,0.45);
}

.footer-locale a {
  color: rgba(255,255,255,0.6);
  transition: color var(--ease);
}
.footer-locale a:hover { color: var(--color-white); }

.footer-col-heading {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--sp-2);
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.footer-nav a {
  font-size: var(--t-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--ease);
}
.footer-nav a:hover { color: var(--color-white); }

.footer-email {
  font-size: var(--t-sm);
  color: var(--color-accent);
}

.footer-made {
  font-size: var(--t-xs);
  color: rgba(255,255,255,0.3);
  font-style: italic;
  margin-top: var(--sp-2);
}

.footer-bottom {
  max-width: 1200px;
  margin-inline: auto;
  margin-top: var(--sp-6);
  padding-inline: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: var(--t-xs);
  color: rgba(255,255,255,0.3);
}

.footer-bottom a {
  color: rgba(255,255,255,0.38);
  transition: color var(--ease);
}
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ========================
   16. Scroll Reveal
   ======================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================
   17. Interior Pages
   ======================== */
.page-interior {
  padding-top: 8rem;
  padding-bottom: clamp(4rem, 8vw, 8rem);
  min-height: 100vh;
}

.page-interior .container { max-width: 720px; }

.page-eyebrow {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-2);
}

.page-interior h1 {
  font-family: var(--font-display);
  font-size: var(--t-4xl);
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--sp-3);
}

.page-subtitle {
  font-size: var(--t-lg);
  color: var(--color-muted);
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--color-surface);
  line-height: 1.65;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 600;
  color: var(--color-dark);
  margin-top: var(--sp-4);
}

.prose h3 {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 600;
  color: var(--color-dark);
}

.prose p { color: var(--color-text); line-height: 1.8; }

.prose ul {
  padding-left: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  color: var(--color-text);
}

.prose li { line-height: 1.7; }

.prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* How It Works */
.how-steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  margin-top: var(--sp-8);
}

.how-step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--sp-4);
  align-items: start;
}

.how-step-num {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 700;
  flex-shrink: 0;
}

.how-step h3 {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: var(--sp-2);
}

.how-step p {
  font-size: var(--t-base);
  color: var(--color-muted);
  line-height: 1.75;
}

/* Pricing */
.pricing-wrap {
  max-width: 500px;
  margin-inline: auto;
  margin-top: var(--sp-8);
}

.pricing-card {
  background: var(--color-surface);
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
}

.pricing-plan {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-3);
}

.pricing-trial-badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--t-sm);
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-4);
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: var(--t-hero);
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1;
}

.pricing-currency {
  font-size: var(--t-2xl);
  vertical-align: super;
  font-weight: 500;
}

.pricing-period {
  font-size: var(--t-sm);
  color: var(--color-muted);
  margin-bottom: var(--sp-6);
}

.pricing-includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  text-align: left;
  max-width: 32ch;
  margin-inline: auto;
  margin-bottom: var(--sp-6);
}

.pricing-includes li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--t-sm);
  color: var(--color-text);
  line-height: 1.6;
}

.check-icon {
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-note {
  font-size: var(--t-xs);
  color: var(--color-muted);
  margin-top: var(--sp-3);
}

.pricing-note-early {
  color: #2c6e49;
  font-weight: 600;
}

/* ========================
   Auth pages
   ======================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6) var(--sp-2);
  background: var(--color-bg);
}

.auth-logo {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 600;
  color: var(--color-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-6);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--color-white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: var(--sp-6);
}

.auth-title {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: var(--sp-1);
  line-height: 1.2;
}

.auth-subtitle {
  font-size: var(--t-sm);
  color: var(--color-muted);
  margin-bottom: var(--sp-4);
}

.auth-subtitle a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}
.auth-subtitle a:hover { text-decoration: underline; }

.auth-field {
  margin-bottom: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.auth-label {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--color-text);
}

.auth-label-hint {
  font-size: var(--t-xs);
  font-weight: 400;
  color: var(--color-muted);
}

.auth-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--color-surface);
  border-radius: var(--r-md);
  font-size: var(--t-sm);
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--ease), box-shadow var(--ease);
  box-sizing: border-box;
}
.auth-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(200,135,42,0.15);
}

.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: var(--r-md);
  padding: 0.625rem var(--sp-2);
  font-size: var(--t-sm);
  margin-bottom: var(--sp-3);
}

.auth-info {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  border-radius: var(--r-md);
  padding: 0.625rem var(--sp-2);
  font-size: var(--t-sm);
  margin-bottom: var(--sp-3);
}
.auth-info a { color: #0369a1; }

.auth-btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  text-align: center;
  transition: background-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.auth-btn:hover {
  background: var(--color-accent-h);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(200,135,42,0.4);
}
.auth-btn:active { transform: translateY(0); }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-btn-ghost {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: transparent;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 500;
  border: 1.5px solid var(--color-surface);
  border-radius: var(--r-full);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--ease), color var(--ease);
  margin-top: var(--sp-2);
}
.auth-btn-ghost:hover {
  border-color: var(--color-muted);
  color: var(--color-text);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: var(--sp-3) 0;
  color: var(--color-muted);
  font-size: var(--t-xs);
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-surface);
}

.auth-section-label {
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: var(--sp-2);
}

.auth-tip {
  font-size: var(--t-xs);
  color: var(--color-muted);
  text-align: center;
  margin-top: var(--sp-3);
  line-height: 1.6;
}

.auth-email-sent {
  text-align: center;
  padding: var(--sp-2) 0;
}
.auth-email-sent-icon {
  font-size: 2.5rem;
  margin-bottom: var(--sp-2);
}
.auth-email-sent-title {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: var(--sp-1);
}
.auth-email-sent-body {
  font-size: var(--t-sm);
  color: var(--color-muted);
  margin-bottom: var(--sp-4);
  line-height: 1.6;
}

/* ========================
   Host Admin
   ======================== */

.ha-topnav {
  background: var(--color-dark);
  padding: 0.75rem var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  position: sticky;
  top: 0;
  z-index: 50;
}

.ha-topnav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 600;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.ha-topnav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  list-style: none;
}

.ha-topnav-link {
  font-size: var(--t-sm);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--ease);
}
.ha-topnav-link:hover { color: var(--color-white); }

.ha-topnav-logout {
  font-size: var(--t-sm);
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-full);
  padding: 0.3rem 0.875rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  transition: background var(--ease), color var(--ease);
}
.ha-topnav-logout:hover { background: rgba(255,255,255,0.16); color: var(--color-white); }

.ha-main {
  max-width: 840px;
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-4);
}

.ha-main-wide {
  max-width: 840px;
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-4);
}

.ha-main-narrow {
  max-width: 520px;
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-4);
}

.ha-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}

.ha-page-title {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.2;
}

.ha-breadcrumb {
  font-size: var(--t-sm);
  color: var(--color-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: var(--sp-4);
}
.ha-breadcrumb:hover { color: var(--color-text); }

.ha-card {
  background: var(--color-white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-surface);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.ha-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.ha-card-title {
  font-size: var(--t-base);
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: var(--sp-3);
}
.ha-card-header .ha-card-title { margin-bottom: 0; }

.ha-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.ha-stat {
  background: var(--color-white);
  border-radius: var(--r-lg);
  border: 1px solid var(--color-surface);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--shadow-sm);
}

.ha-stat-label {
  font-size: var(--t-xs);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: var(--sp-1);
}

.ha-stat-value {
  font-family: var(--font-display);
  font-size: var(--t-3xl);
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1;
}

.ha-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
@media (max-width: 640px) { .ha-grid-2 { grid-template-columns: 1fr; } }

.ha-list { display: flex; flex-direction: column; gap: var(--sp-2); }

.ha-list-item {
  background: var(--color-white);
  border-radius: var(--r-lg);
  border: 1px solid var(--color-surface);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  box-shadow: var(--shadow-sm);
}

.ha-list-item-info { flex: 1; min-width: 0; }

.ha-list-item-name {
  font-size: var(--t-base);
  font-weight: 600;
  color: var(--color-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ha-list-item-sub {
  font-size: var(--t-xs);
  color: var(--color-muted);
  margin-top: 2px;
}

.ha-list-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

.ha-row { display: flex; justify-content: space-between; align-items: flex-start;
  padding: 0.5rem 0; border-bottom: 1px solid var(--color-surface); gap: var(--sp-3); }
.ha-row:last-child { border-bottom: none; }
.ha-row--link { cursor: pointer; text-decoration: none; color: inherit; border-radius: var(--r-sm); }
.ha-row--link:hover { background: var(--color-surface); margin: 0 calc(-1 * var(--sp-2)); padding-left: var(--sp-2); padding-right: var(--sp-2); }
.ha-row-label { font-size: var(--t-sm); color: var(--color-muted); flex-shrink: 0; }
.ha-row-value { font-size: var(--t-sm); font-weight: 500; color: var(--color-text);
  text-align: right; word-break: break-all; font-family: inherit; }

.ha-activity-entry { display: flex; gap: var(--sp-2); padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--color-surface); }
.ha-activity-entry:last-child { border-bottom: none; }
.ha-activity-icon { font-size: 1.2rem; flex-shrink: 0; }
.ha-activity-text { font-size: var(--t-sm); color: var(--color-text); }
.ha-activity-time { font-size: var(--t-xs); color: var(--color-muted); }

.ha-empty {
  font-size: var(--t-sm);
  color: var(--color-muted);
  padding: var(--sp-3) 0;
  text-align: center;
}

.ha-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-full);
  font-size: var(--t-xs);
  font-weight: 600;
}
.ha-badge-green  { background: #dcfce7; color: #15803d; }
.ha-badge-blue   { background: #dbeafe; color: #1d4ed8; }
.ha-badge-yellow { background: #fef9c3; color: #a16207; }
.ha-badge-gray   { background: var(--color-surface); color: var(--color-muted); }

.ha-presence-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.ha-presence-chip {
  font-size: 11px;
  font-weight: 500;
  border-radius: 10px;
  padding: 1px 8px;
  white-space: nowrap;
}

.ha-presence-chip--yellow { background: #fef9c3; color: #a16207; }
.ha-presence-chip--blue   { background: #dbeafe; color: #1d4ed8; }
.ha-presence-chip--green  { background: #dcfce7; color: #15803d; }
.ha-badge-purple { background: #f3e8ff; color: #7e22ce; }
.ha-badge-red    { background: #fef2f2; color: #dc2626; }

.ha-connected { color: #15803d; font-size: var(--t-xs); font-weight: 600; }
.ha-connected::before { content: '● '; }
.ha-disconnected { color: var(--color-muted); font-size: var(--t-xs); font-weight: 600; }
.ha-disconnected::before { content: '○ '; }

.ha-toggle {
  border: none;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: var(--t-xs);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.ha-toggle--on  { background: #dcfce7; color: #15803d; }
.ha-toggle--off { background: var(--color-surface); color: var(--color-muted); }
.ha-toggle:hover { opacity: 0.8; }

/* OTP verification section — reuses auth-* classes, minimal additions */
.otp-section {
  border: 1.5px solid var(--color-surface);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  margin: var(--sp-5) 0;
  background: var(--color-bg);
}
.otp-section-title {
  font-family: var(--font-head);
  font-size: var(--t-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--sp-2);
}
.otp-section-hint {
  font-size: var(--t-sm);
  color: var(--color-muted);
  margin-bottom: var(--sp-4);
  line-height: 1.5;
}
.otp-code-input {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  text-align: center;
  font-family: var(--font-mono, monospace);
}

.ha-link {
  font-size: var(--t-sm);
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}
.ha-link:hover { text-decoration: underline; }

.ha-link-muted {
  font-size: var(--t-sm);
  color: var(--color-muted);
  text-decoration: none;
}
.ha-link-muted:hover { color: var(--color-text); }

.ha-link-danger {
  font-size: var(--t-sm);
  color: #dc2626;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-decoration: none;
}
.ha-link-danger:hover { text-decoration: underline; }

.ha-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.25rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--ease), transform var(--ease), box-shadow var(--ease);
  white-space: nowrap;
}
.ha-btn:hover { background: var(--color-accent-h); transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200,135,42,0.35); }
.ha-btn:active { transform: translateY(0); }

.ha-btn-dark {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.25rem;
  background: var(--color-dark);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--ease);
  white-space: nowrap;
}
.ha-btn-dark:hover { opacity: 0.85; }

.ha-btn-sm {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 600;
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.ha-btn-sm:hover { background: var(--color-accent-h); }

.ha-btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 500;
  border: 1.5px solid var(--color-surface);
  border-radius: var(--r-full);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--ease), color var(--ease);
}
.ha-btn-outline:hover { border-color: var(--color-muted); color: var(--color-text); }

.ha-order-btns { display: flex; flex-direction: column; gap: 1px; }
.ha-order-btn {
  background: none; border: none; cursor: pointer;
  font-size: 0.65rem; color: var(--color-muted); line-height: 1;
  padding: 2px 4px; border-radius: var(--r-sm);
  transition: color var(--ease), background var(--ease);
}
.ha-order-btn:hover { color: var(--color-text); background: var(--color-surface); }
.ha-order-btn.ha-hidden { visibility: hidden; }

.ha-form-section { margin-bottom: var(--sp-4); }
.ha-form-section-title {
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: var(--sp-2);
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--color-surface);
}

.ha-check-field {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}
.ha-check { width: 1rem; height: 1rem; accent-color: var(--color-accent); cursor: pointer; }
.ha-check-label { font-size: var(--t-sm); color: var(--color-text); cursor: pointer; }

.ha-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--color-surface);
  border-radius: var(--r-md);
  font-size: var(--t-sm);
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  box-sizing: border-box;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A746C' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.25rem;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.ha-select:focus { outline: none; border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(200,135,42,0.15); }

.ha-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--color-surface);
  border-radius: var(--r-md);
  font-size: var(--t-sm);
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  box-sizing: border-box;
  resize: vertical;
  min-height: 100px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.ha-textarea:focus { outline: none; border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(200,135,42,0.15); }

/* ── Markdown editor toolbar ──────────────────────────────────────────────── */
.md-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-surface);
  border-bottom: none;
  border-radius: var(--r-md) var(--r-md) 0 0;
  flex-wrap: wrap;
}
/* When toolbar is present, remove the top radius from the textarea below it */
.md-toolbar + .ha-textarea {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.md-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  font-size: var(--t-xs);
  font-family: var(--font-body);
  color: var(--color-text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1.4;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s;
}
.md-btn:hover { background: var(--color-bg); border-color: var(--color-border); }
.md-sep {
  width: 1px;
  height: 16px;
  background: var(--color-border);
  margin: 0 4px;
  flex-shrink: 0;
}
.md-preview-btn { margin-left: auto; }
.md-preview-btn--active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.md-preview-btn--active:hover { background: var(--color-primary); border-color: var(--color-primary); }

/* Preview panel mimics the guest-facing markdown rendering */
.md-preview {
  width: 100%;
  min-height: 100px;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--color-surface);
  border-top: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-size: var(--t-sm);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  box-sizing: border-box;
  overflow-y: auto;
}
.md-preview h1, .md-preview h2, .md-preview h3 {
  font-weight: 600; margin: 0.75em 0 0.25em;
}
.md-preview h1 { font-size: 1.25em; }
.md-preview h2 { font-size: 1.1em; }
.md-preview h3 { font-size: 1em; }
.md-preview p { margin: 0 0 0.6em; }
.md-preview ul { margin: 0 0 0.6em 1.25em; padding: 0; }
.md-preview li { margin-bottom: 0.2em; }
.md-preview a { color: var(--color-accent); text-decoration: underline; }
.md-preview-empty { color: var(--color-muted); font-style: italic; }

.ha-field-error { font-size: var(--t-xs); color: #dc2626; margin-top: 4px; display: block; }

.ha-flash-info {
  background: #f0f9ff; border: 1px solid #bae6fd; color: #0369a1;
  border-radius: var(--r-md); padding: 0.75rem var(--sp-3);
  font-size: var(--t-sm); margin-bottom: var(--sp-3);
}
.ha-flash-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
  border-radius: var(--r-md); padding: 0.75rem var(--sp-3);
  font-size: var(--t-sm); margin-bottom: var(--sp-3);
}

.ha-divider { height: 1px; background: var(--color-surface); margin: var(--sp-4) 0; }

.ha-section-label {
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: var(--sp-2);
}

/* ── Dashboard message inbox ──────────────────────────────────────────────── */
.ha-badge-accent { background: var(--color-accent); color: #fff; }

.ha-msg-item {
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  margin-bottom: var(--sp-2);
  background: var(--color-bg);
}

.ha-msg-item--unread {
  border-left: 3px solid var(--color-accent);
  background: #f0f7ff;
}

.ha-msg-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-1);
  flex-wrap: wrap;
}

.ha-msg-property {
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--color-primary, #2c6e49);
}

.ha-msg-asset {
  font-size: var(--t-xs);
  font-weight: 600;
  background: var(--color-surface);
  border-radius: var(--r-sm);
  padding: 2px var(--sp-2);
  color: var(--color-dark);
}

.ha-msg-guest {
  font-size: var(--t-xs);
  color: var(--color-muted);
}

.ha-msg-time {
  font-size: var(--t-xs);
  color: var(--color-muted);
  margin-left: auto;
}

.ha-msg-body {
  font-size: var(--t-sm);
  color: var(--color-text);
  margin-bottom: var(--sp-2);
  line-height: 1.5;
}

.ha-msg-reply-btn {
  font-size: var(--t-xs);
  color: var(--color-accent);
  background: none;
  border: 1px solid var(--color-accent);
  border-radius: var(--r-sm);
  padding: 2px var(--sp-2);
  cursor: pointer;
  font-weight: 600;
}
.ha-msg-reply-btn:hover { background: var(--color-accent); color: #fff; }

.ha-msg-reply-form { margin-top: var(--sp-2); }

/* Signalements anonymes card */
.ha-report-item {
  border: 1px solid var(--color-border);
  border-left: 3px solid #e67e22;
  border-radius: var(--r-md);
  padding: var(--sp-3);
  margin-bottom: var(--sp-2);
  background: #fffdf9;
}
.ha-report-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
  flex-wrap: wrap;
}
.ha-report-name {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--color-dark);
}
.ha-report-thread {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}
.ha-report-msg {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 85%;
}
.ha-report-msg--reporter { align-self: flex-end; align-items: flex-end; }
.ha-report-msg--host     { align-self: flex-start; align-items: flex-start; }
.ha-report-msg-body {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  font-size: var(--t-sm);
  line-height: 1.45;
}
.ha-report-msg--reporter .ha-report-msg-body {
  background: var(--color-surface);
  color: var(--color-text);
  border-bottom-right-radius: 4px;
}
.ha-report-msg--host .ha-report-msg-body {
  background: var(--color-accent);
  color: #fff;
  border-bottom-left-radius: 4px;
}

/* Advanced section accordion */
.ha-advanced-section {
  border: 1px solid var(--color-surface);
  border-radius: var(--r-sm);
  margin-top: var(--sp-4);
}
.ha-advanced-summary {
  cursor: pointer;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--color-muted);
  list-style: none;
  user-select: none;
}
.ha-advanced-summary::-webkit-details-marker { display: none; }
.ha-advanced-summary::before {
  content: "▶ ";
  font-size: 0.65em;
  vertical-align: middle;
}
details.ha-advanced-section[open] .ha-advanced-summary::before { content: "▼ "; }
.ha-advanced-section > .ha-form-section:first-of-type,
.ha-advanced-section > [style] { padding: 0 var(--sp-3); }
.ha-advanced-section .ha-form-section { padding: var(--sp-2) var(--sp-3) 0; }
.ha-advanced-section .ha-form-section:last-child { padding-bottom: var(--sp-3); }

.ha-field-hint {
  font-size: var(--t-xs);
  color: var(--color-muted);
  font-weight: 400;
}

/* ============================================================
   Stay show — back link, subtitle, definition list, tokens, activity
   ============================================================ */

.ha-back-link {
  font-size: var(--t-sm);
  color: var(--color-muted);
  text-decoration: none;
}
.ha-back-link:hover { color: var(--color-dark); text-decoration: underline; }

/* Message thread view */
.ha-thread { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.ha-thread-msg { max-width: 80%; }
.ha-thread-msg--host { align-self: flex-end; }
.ha-thread-msg--guest { align-self: flex-start; }
.ha-thread-meta { display: flex; align-items: baseline; gap: var(--sp-2); margin-bottom: 2px; }
.ha-thread-from { font-size: var(--t-xs); font-weight: 600; color: var(--color-dark); }
.ha-thread-asset-ctx { font-weight: 400; color: var(--color-muted); font-size: var(--t-xs); }
.ha-thread-time { font-size: 10px; color: var(--color-muted); }
.ha-thread-body { font-size: var(--t-sm); line-height: 1.5; padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md); }
.ha-thread-msg--guest .ha-thread-body { background: var(--color-surface); color: var(--color-dark); }
.ha-thread-msg--host .ha-thread-body { background: var(--color-accent); color: #fff; }
.ha-thread-reply { border-top: 1px solid var(--color-border); padding-top: var(--sp-3); margin-top: var(--sp-2); }

.ha-page-sub {
  font-size: var(--t-sm);
  color: var(--color-muted);
  margin: var(--sp-1) 0 0;
}

.ha-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--sp-1) var(--sp-4);
  font-size: var(--t-sm);
  margin: 0;
}
.ha-dl dt { color: var(--color-muted); font-weight: 500; }
.ha-dl dd { margin: 0; color: var(--color-dark); }

.ha-mono { font-family: var(--font-mono, monospace); font-size: var(--t-sm); letter-spacing: 0.04em; }

/* Invite form */
.ha-invite-form { display: flex; flex-direction: column; }
.ha-invite-result { background: var(--color-bg-alt, #f8f8f6); border: 1px solid var(--color-border); border-radius: var(--r-md); padding: var(--sp-3); }
.ha-invite-url-row { display: flex; gap: var(--sp-2); align-items: center; }
.ha-invite-url-input {
  flex: 1;
  font-size: var(--t-xs);
  font-family: var(--font-mono, monospace);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: var(--sp-2);
  background: var(--color-bg);
  color: var(--color-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ha-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: var(--t-sm);
  color: var(--color-accent);
  cursor: pointer;
  text-decoration: underline;
}
.ha-link-btn:hover { color: var(--color-accent-h); }

/* Guest token list */
.ha-token-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-1); }
.ha-token-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--t-sm);
}
.ha-token-item:last-child { border-bottom: none; }
.ha-token-name { flex: 1; font-weight: 500; color: var(--color-dark); }
.ha-token-tier { color: var(--color-muted); font-size: var(--t-xs); }

.ha-token-badge {
  font-size: var(--t-xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
}
.ha-token-badge--active { background: #d1fae5; color: #065f46; }
.ha-token-badge--revoked { background: #fee2e2; color: #991b1b; }
.ha-token-badge--expired { background: #f3f4f6; color: #6b7280; }

/* Activity feed */
.ha-activity-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ha-activity-item {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--color-border);
}
.ha-activity-item:last-child { border-bottom: none; }
.ha-activity-icon { font-size: var(--t-sm); flex-shrink: 0; }
.ha-activity-text { flex: 1; font-size: var(--t-sm); color: var(--color-dark); }
.ha-activity-time { font-size: var(--t-xs); color: var(--color-muted); white-space: nowrap; }

/* Device picker — Seam Connect Webview */
.ha-device-pick-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.ha-device-pick-btn:hover {
  border-color: var(--color-primary);
  background: #f0fdf4;
}

/* ==========================================================================
   WAITLIST / COMING SOON PAGE
   ========================================================================== */

:root {
  --wl-green: #2c6e49;
  --wl-green-dark: #1f4f34;
  --wl-accent: #e8f5ee;
  --wl-sp-1: 4px;
  --wl-sp-2: 8px;
  --wl-sp-3: 12px;
  --wl-sp-4: 16px;
  --wl-sp-6: 24px;
  --wl-sp-8: 32px;
  --wl-sp-12: 48px;
  --wl-sp-16: 64px;
}

.wl-root {
  min-height: 100vh;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Flash */
.wl-flash {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--wl-sp-3) var(--wl-sp-6);
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}
.wl-flash--success { background: #dcfce7; color: #15803d; }
.wl-flash--error   { background: #fee2e2; color: #b91c1c; }

/* Hero */
.wl-hero {
  background: linear-gradient(160deg, #0f2d1e 0%, #1a4530 60%, #2c6e49 100%);
  color: #fff;
  padding: var(--wl-sp-16) var(--wl-sp-4);
  position: relative;
  overflow: hidden;
}
.wl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.wl-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}
.wl-hero--confirmed .wl-hero-inner { padding: var(--wl-sp-12) 0; }

.wl-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: var(--wl-sp-6);
}

.wl-hero-h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--wl-sp-4);
  letter-spacing: -0.02em;
}
.wl-hero-accent { color: #86efac; }

.wl-hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.80);
  line-height: 1.6;
  margin-bottom: var(--wl-sp-6);
}

/* Urgency bar */
.wl-urgency {
  display: inline-flex;
  align-items: center;
  gap: var(--wl-sp-2);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  margin-bottom: var(--wl-sp-6);
}
.wl-urgency-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Form */
.wl-form { width: 100%; }
.wl-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wl-sp-2);
  justify-content: center;
  margin-bottom: var(--wl-sp-3);
}
.wl-input {
  flex: 1 1 200px;
  padding: 14px 16px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
}
.wl-input::placeholder { color: rgba(255,255,255,0.55); }
.wl-input:focus { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.15); }

.wl-cta-btn {
  flex-shrink: 0;
  background: #fff;
  color: var(--wl-green-dark);
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s, box-shadow 0.1s;
}
.wl-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.wl-cta-btn--dark { background: var(--wl-green); color: #fff; }
.wl-cta-btn--dark:hover { background: var(--wl-green-dark); }

.wl-form-note {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin: 0;
}
.wl-form-note--light { color: var(--color-muted, #666); }

/* Scroll cue */
.wl-hero-scroll {
  text-align: center;
  margin-top: var(--wl-sp-8);
  opacity: 0.5;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Sections */
.wl-section-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--wl-sp-16) var(--wl-sp-4);
  text-align: center;
}
.wl-section-h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: #111;
  margin-bottom: var(--wl-sp-4);
  letter-spacing: -0.02em;
}
.wl-section-sub {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: var(--wl-sp-8);
}

/* Proof section */
.wl-proof { background: var(--wl-accent); }
.wl-proof-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wl-green);
  margin-bottom: var(--wl-sp-3);
}
.wl-proof-body {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: var(--wl-sp-6);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.wl-demo-btn {
  display: inline-block;
  background: var(--wl-green);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.wl-demo-btn:hover { background: var(--wl-green-dark); transform: translateY(-1px); }
.wl-proof-note {
  margin-top: var(--wl-sp-3);
  font-size: 12px;
  color: #888;
}

/* Feature trifecta */
.wl-features { background: #fff; }
.wl-trifecta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--wl-sp-4);
  text-align: left;
}
.wl-feat-card {
  border: 2px solid #e8f5ee;
  border-radius: 16px;
  padding: var(--wl-sp-6);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.wl-feat-card:hover { border-color: var(--wl-green); box-shadow: 0 4px 20px rgba(44,110,73,0.1); }
.wl-feat-card--accent { border-color: var(--wl-green); background: var(--wl-accent); }
.wl-feat-icon { font-size: 2.5rem; margin-bottom: var(--wl-sp-3); }
.wl-feat-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: var(--wl-sp-2);
}
.wl-feat-body { font-size: 0.95rem; color: #555; line-height: 1.6; }

/* Quebec section */
.wl-quebec { background: #f8f9fa; }
.wl-quebec-flag { font-size: 3rem; margin-bottom: var(--wl-sp-4); }
.wl-quebec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--wl-sp-4);
  text-align: left;
  margin-top: var(--wl-sp-8);
}
.wl-qc-item {
  display: flex;
  gap: var(--wl-sp-3);
  align-items: flex-start;
}
.wl-qc-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.wl-qc-item strong { display: block; font-size: 0.95rem; font-weight: 700; color: #111; margin-bottom: 4px; }
.wl-qc-item p { font-size: 0.9rem; color: #555; line-height: 1.5; margin: 0; }

/* Bottom CTA */
.wl-cta-section { background: linear-gradient(160deg, #0f2d1e 0%, #2c6e49 100%); color: #fff; }
.wl-cta-inner { text-align: center; }
.wl-incentive-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--wl-sp-6);
}
.wl-cta-h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: var(--wl-sp-4);
  letter-spacing: -0.02em;
}
.wl-cta-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.80);
  line-height: 1.6;
  margin-bottom: var(--wl-sp-8);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.wl-form--bottom .wl-input {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
}

/* ── Step-2 page: standalone dark layout, auth-style form ────────
   Replaces wl-hero for the /waitlist/propriete page so we don't
   inherit text-align:center from wl-hero-inner.                  */
.wl-step2-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 3rem 1.25rem 4rem;
  background: linear-gradient(160deg, #0f2d1e 0%, #1a4530 60%, #2c6e49 100%);
  color: #fff;
}
.wl-step2-card {
  width: 100%;
  max-width: 420px;
  text-align: left;
}
.wl-step2-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 1rem 0 0.5rem;
  text-align: left;
}
.wl-step2-sub {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

/* Field rows: identical structure to auth-field */
.wl-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1rem;
}
.wl-field-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.wl-field-hint {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

/* Inputs inside the step-2 form: block, not flex hero-row items */
.wl-step2-card .wl-input {
  flex: none;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
}

/* Divider between required and optional sections */
.wl-form-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 1.5rem 0 1rem;
}
.wl-form-section-label {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Confirmed page */
.wl-confirmed-inner { padding: var(--wl-sp-16) var(--wl-sp-4); }
.wl-confirmed-icon { font-size: 4rem; margin-bottom: var(--wl-sp-4); }
.wl-confirmed-perks {
  display: flex;
  flex-direction: column;
  gap: var(--wl-sp-3);
  margin: var(--wl-sp-8) auto;
  max-width: 400px;
}
.wl-perk {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 15px;
}

/* Footer */
.wl-footer {
  text-align: center;
  padding: var(--wl-sp-6) var(--wl-sp-4);
  font-size: 13px;
  color: #999;
  border-top: 1px solid #eee;
}
.wl-footer a { color: var(--wl-green); }

/* ── Property management tabs ───────────────────────────────────── */
.ha-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--sp-4);
}
.ha-tab {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.ha-tab:hover { color: var(--color-text); }
.ha-tab--active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  font-weight: 600;
}

/* ── CITQ upload zone ───────────────────────────────────────────── */
.ha-upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--r-md);
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.ha-upload-zone:hover {
  border-color: var(--color-accent);
  background: #f0faf4;
}

/* ── Host gallery grid ───────────────────────────────────── */
.ha-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--sp-2);
}

.ha-gallery-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--color-surface);
}
.ha-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ha-gallery-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.ha-gallery-thumb:hover .ha-gallery-delete { opacity: 1; }

/* ── Feedback moderation rows (Avis tab) ──────────────────── */
.ha-feedback-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--color-border);
}
.ha-feedback-meta {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  flex: 1;
  min-width: 0;
}
.ha-feedback-sentiment {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.ha-feedback-body {
  font-size: var(--t-xs);
  font-style: italic;
  color: var(--color-text);
  margin: var(--sp-1) 0 0;
  line-height: 1.5;
}
.ha-feedback-photo-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--r-sm);
  margin-top: var(--sp-2);
  display: block;
}
.ha-feedback-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-2);
  flex-shrink: 0;
}

/* ── Availability calendar ─────────────────────────────────────────────────── */
.ha-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-2);
}
.ha-cal-nav-btn {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  cursor: pointer;
  font-size: var(--t-sm);
  color: var(--color-text);
  line-height: 1.4;
}
.ha-cal-nav-btn:hover { background: var(--color-surface); }
.ha-cal-month-label {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--color-text);
}
.ha-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: var(--sp-2);
}
.ha-cal-dow {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--color-muted);
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ha-cal-day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  font-size: var(--t-xs);
  border: 1px solid transparent;
  transition: opacity 0.1s;
}
.ha-cal-day-num { line-height: 1; }

/* States */
.ha-cal-day--other-month { opacity: 0.25; }
.ha-cal-day--past        { opacity: 0.4; }

.ha-cal-day--ical         { background: #dbeafe; color: #1d4ed8; }
.ha-cal-day--ical-blocked { background: var(--color-surface); color: var(--color-muted); }
.ha-cal-day--manual       { background: #fef9c3; color: #a16207; cursor: pointer; }
.ha-cal-day--free.ha-cal-day--in-month { background: #dcfce7; color: #15803d; }

.ha-cal-day--clickable { cursor: pointer; }
.ha-cal-day--clickable:hover { border-color: var(--color-primary, #2c6e49); }
.ha-cal-day--manual:hover { border-color: #a16207; }

/* Legend */
.ha-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-3);
  margin-top: var(--sp-1);
}
.ha-cal-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-xs);
  color: var(--color-muted);
}
.ha-cal-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}
.ha-cal-dot--ical         { background: #dbeafe; border: 1px solid #93c5fd; }
.ha-cal-dot--ical-blocked { background: var(--color-surface); border: 1px solid var(--color-border); }
.ha-cal-dot--manual       { background: #fef9c3; border: 1px solid #fde047; }

/* ========================
   CastorOS — Mascot images
   ======================== */

/* Top nav logo image (green background) */
.ha-topnav-logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .ha-topnav-logo-img { display: none; }
  .ha-topnav-logo-text { display: inline; }
}

/* Guest layout logo */
.guest-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

/* Marketing nav / footer logo */
.logo-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.footer-logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

/* Notification icon (castor_wrench) */
.ha-notif-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Empty state — castor_empty */
.ha-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-2);
  text-align: center;
}
.ha-empty-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  opacity: 0.85;
}

/* Loading state — castor_beaver_tail */
.ha-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-2);
  text-align: center;
}
.ha-loading-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  animation: castor-wag 1.4s ease-in-out infinite;
}
@keyframes castor-wag {
  0%, 100% { transform: rotate(-8deg); }
  50%       { transform: rotate(8deg); }
}
.ha-cal-dot--free         { background: #dcfce7; border: 1px solid #86efac; }

/* Voyageurs table */
.ha-voy-wrap  { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ha-voy-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.ha-voy-th    { padding: var(--sp-2) var(--sp-3); border-bottom: 2px solid var(--color-border); text-align: left; white-space: nowrap; font-weight: 600; }
.ha-voy-sort-btn { background: none; border: none; padding: 0; font-size: var(--t-xs); font-weight: 600; color: var(--color-muted); cursor: pointer; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.ha-voy-sort-btn:hover { color: var(--color-dark); }
.ha-voy-arrow { font-size: 10px; opacity: 0.7; }
.ha-voy-row   { border-bottom: 1px solid var(--color-border); }
.ha-voy-row:last-child { border-bottom: none; }
.ha-voy-row:hover { background: var(--color-surface); }
.ha-voy-td    { padding: var(--sp-2) var(--sp-3); vertical-align: middle; white-space: nowrap; }
.ha-voy-td--name  { font-weight: 600; color: var(--color-dark); }
.ha-voy-td--email { color: var(--color-muted); font-size: var(--t-xs); }
.ha-voy-td--date  { color: var(--color-muted); font-size: var(--t-xs); }
@media (max-width: 640px) {
  .ha-voy-th:nth-child(n+3), .ha-voy-td:nth-child(n+3) { display: none; }
}
