  .wikiehpad *, .wikiehpad *::before, .wikiehpad *::after { box-sizing: border-box; margin: 0; padding: 0; line-height: 1; }

  .wikiehpad button, .wikiehpad input, .wikiehpad .autocomplete-item { touch-action: manipulation; }

  .wikiehpad {
    --cream: #FAF8F4;
    --white: #FFFFFF;
    --navy: #1C2B3A;
    --navy-light: #2D4056;
    --blue: #2D6BE4;
    --blue-mid: #1A52C5;
    --blue-light: #EEF3FF;
    --gold: #C4973A;
    --gold-light: #FDF6E8;
    --text: #2C3E50;
    --text-muted: #7A8899;
    --border: #E4E9ED;
    --border-focus: #2D6BE4;
    --error: #C0392B;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(28,43,58,0.10);
    --shadow-lg: 0 2px 4px rgba(28,43,58,0.04), 0 12px 56px rgba(28,43,58,0.13);
    --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
    font-family: 'DM Sans', sans-serif;
  }

  /* ── Container ── */
  .wikiehpad .form-wrapper {
    width: 100%;
    position: relative;
    padding: 0;
  }

  .wikiehpad .form-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
  }

  /* ── Header ── */
  .wikiehpad .form-header {
    background: transparent;
    padding: 10px 28px 14px;
    border-bottom: 1px solid var(--border);
  }

  .wikiehpad .header-label { display: none; }

  .wikiehpad .header-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.35;
    text-align: center;
  }

  /* ── Progress bar ── */
  .wikiehpad .progress-bar-wrap {
    background: var(--border);
    border-radius: 99px;
    height: 4px;
    margin-top: 12px;
  }

  .wikiehpad .progress-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--blue), #5B9DF5);
    transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
    width: 0%;
  }

  .wikiehpad .progress-label { display: none; }

  /* ── Body ── */
  .wikiehpad .form-body { padding: 20px 28px 20px; }

  /* ── Mobile (≤599px) ── */
  @media (max-width: 599px) {
    .wikiehpad .form-wrapper { padding: 0; }
    .wikiehpad .form-card { border-radius: 0; box-shadow: none; }
    .wikiehpad .form-header { padding: 8px 20px 10px; }
    .wikiehpad .header-title { font-size: 16px; }
    .wikiehpad .progress-bar-wrap { margin-top: 8px; }
    .wikiehpad .form-body { padding: 12px 20px 16px; }
    .wikiehpad .step-hint { font-size: 12px; margin-bottom: 10px; line-height: 1.35; }
    .wikiehpad .choices { gap: 7px; }
    .wikiehpad .choice-card { padding: 10px 12px; }
    .wikiehpad .choice-card:hover { transform: none; }
    .wikiehpad .choice-icon { width: 26px; height: 26px; }
    .wikiehpad .choice-label { font-size: 13px; }
    .wikiehpad .choice-desc { font-size: 11px; }
    .wikiehpad .choices-inline .choice-desc { display: none; }
    .wikiehpad .choices-inline .choice-card {
      flex-direction: column; align-items: center; justify-content: center;
      text-align: center; gap: 6px; padding: 12px 8px;
    }
    .wikiehpad .choices-inline .choice-text { flex: unset; }
    .wikiehpad .choices-inline .choice-check { display: none; }
    .wikiehpad .input-group { margin-bottom: 14px; }
    .wikiehpad .input-label { line-height: 1.2; margin-bottom: 3px; margin-top: 16px; }
    .wikiehpad .input-field { padding: 10px 12px; font-size: 16px; }
    .wikiehpad .autocomplete-item { font-size: 16px; }
    .wikiehpad .civil-btn { padding: 5px 6px; white-space: nowrap; font-size: 12px; }
    .wikiehpad .civil-row { margin-bottom: 8px; }
    /* Prevent segment labels from wrapping and inflating row height */
    .wikiehpad .segment-label { font-size: 11px; white-space: nowrap; }
    /* Prevent choice labels from line-breaking mid-word on narrow screens */
    .wikiehpad .choice-label { overflow-wrap: break-word; hyphens: auto; }
    /* Prevent nav buttons from wrapping */
    .wikiehpad .btn-next, .wikiehpad .btn-submit, .wikiehpad .btn-back { white-space: nowrap; }
    .wikiehpad .budget-display-row { margin-bottom: 6px; }
    .wikiehpad .budget-value-display { padding: 5px 16px; }
    .wikiehpad .budget-amount-input { font-size: 19px; }
    .wikiehpad .budget-slider-section { padding: 2px 0 4px; }
    .wikiehpad .segment-btn { padding: 8px 6px; }
    .wikiehpad .confidentiality-note { margin-bottom: 10px; font-size: 11px; padding: 8px 10px; }
    .wikiehpad .form-nav { margin-top: 12px; padding: 10px 0 8px; }
    /* Thank-you mobile */
    .wikiehpad #step-thankyou { padding: 10px 0 4px; }
    .wikiehpad .ty-icon { width: 42px; height: 42px; margin-bottom: 10px; }
    .wikiehpad .ty-title { font-size: 16px; margin-bottom: 6px; }
    .wikiehpad .ty-text { font-size: 12px; line-height: 1.4; margin-bottom: 10px; }
    .wikiehpad .ty-badge {
      display: flex; flex-direction: row; align-items: center; flex-wrap: wrap;
      justify-content: center; text-align: center; border-radius: 10px; width: 100%;
      padding: 8px 12px; gap: 3px;
    }
    .wikiehpad .ty-badge strong { margin-left: 0; font-size: 13px; }
  }

  /* ── Steps ── */
  .wikiehpad .step { display: none; animation: fadeSlide 0.35s ease forwards; }
  .wikiehpad .step.active { display: block; }

  @keyframes fadeSlide {
    from { opacity: 0; transform: translateX(18px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  .wikiehpad .step-question { display: none; } /* shown in header — no duplication */

  .wikiehpad .step-hint { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }
  .wikiehpad .step-hint strong { color: var(--text); font-weight: 600; }

  /* ── Choice Cards ── */
  .wikiehpad .choices { display: flex; flex-direction: column; gap: 8px; }
  .wikiehpad .choices-inline { flex-direction: row; }
  .wikiehpad .choices-inline .choice-card { flex: 1; }

  .wikiehpad .choice-card {
    display: flex; align-items: center; gap: 14px; padding: 11px 14px;
    border: 1.5px solid var(--border); border-radius: var(--radius);
    cursor: pointer; transition: all var(--transition);
    background: var(--white); text-align: left; width: 100%; font-family: 'DM Sans', sans-serif;
  }

  .wikiehpad .choice-card:hover { border-color: var(--blue); background: var(--blue-light); transform: translateX(3px); }
  .wikiehpad .choice-card.selected { border-color: var(--blue); background: var(--blue-light); box-shadow: 0 0 0 3px rgba(45,107,228,0.12); }

  .wikiehpad .choice-icon {
    flex-shrink: 0; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: color var(--transition);
  }

  .wikiehpad .choice-card:hover .choice-icon,
  .wikiehpad .choice-card.selected .choice-icon { color: var(--blue); }

  .wikiehpad .status-dot {
    display: inline-block; width: 10px; height: 10px;
    border-radius: 50%; flex-shrink: 0; transition: transform var(--transition);
  }

  .wikiehpad .choice-card:hover .status-dot,
  .wikiehpad .choice-card.selected .status-dot { transform: scale(1.2); }

  .wikiehpad .dot-red   { background-color: #C0392B; }
  .wikiehpad .dot-amber { background-color: #C4973A; }
  .wikiehpad .dot-green { background-color: #27AE60; }

  .wikiehpad .choice-text { flex: 1; }
  .wikiehpad .choice-label { font-size: 15px; font-weight: 500; color: var(--text); display: block; line-height: 1.2; }
  .wikiehpad .choice-desc { font-size: 13px; color: var(--text-muted); margin-top: 1px; display: block; line-height: 1.25; }

  .wikiehpad .choice-check {
    width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border);
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    transition: all var(--transition); color: transparent;
  }

  .wikiehpad .choice-card.selected .choice-check { background: var(--blue); border-color: var(--blue); color: white; }

  /* ── Urgency special colors ── */
  .wikiehpad .choice-card[data-value="urgent"].selected { border-color: #C0392B; background: #FDF2F2; box-shadow: 0 0 0 3px rgba(192,57,43,0.10); }
  .wikiehpad .choice-card[data-value="urgent"].selected .choice-check { background: #C0392B; border-color: #C0392B; }
  .wikiehpad .choice-card[data-value="urgent"]:hover { border-color: #C0392B; background: #FDF2F2; transform: translateX(3px); }
  .wikiehpad .choice-card[data-value="moyen"].selected { border-color: var(--gold); background: var(--gold-light); box-shadow: 0 0 0 3px rgba(196,151,58,0.12); }
  .wikiehpad .choice-card[data-value="moyen"].selected .choice-check { background: var(--gold); border-color: var(--gold); }
  .wikiehpad .choice-card[data-value="moyen"]:hover { border-color: var(--gold); background: var(--gold-light); transform: translateX(3px); }

  /* ── Autonomy special colors ── */
  .wikiehpad .choice-card[data-value="autonome"].selected { border-color: #27AE60; background: #F0FBF4; box-shadow: 0 0 0 3px rgba(39,174,96,0.10); }
  .wikiehpad .choice-card[data-value="autonome"].selected .choice-check { background: #27AE60; border-color: #27AE60; }
  .wikiehpad .choice-card[data-value="autonome"]:hover { border-color: #27AE60; background: #F0FBF4; transform: translateX(3px); }
  .wikiehpad .choice-card[data-value="semi_autonome"].selected { border-color: var(--gold); background: var(--gold-light); box-shadow: 0 0 0 3px rgba(196,151,58,0.12); }
  .wikiehpad .choice-card[data-value="semi_autonome"].selected .choice-check { background: var(--gold); border-color: var(--gold); }
  .wikiehpad .choice-card[data-value="semi_autonome"]:hover { border-color: var(--gold); background: var(--gold-light); transform: translateX(3px); }
  .wikiehpad .choice-card[data-value="dependante"].selected { border-color: #C0392B; background: #FDF2F2; box-shadow: 0 0 0 3px rgba(192,57,43,0.10); }
  .wikiehpad .choice-card[data-value="dependante"].selected .choice-check { background: #C0392B; border-color: #C0392B; }
  .wikiehpad .choice-card[data-value="dependante"]:hover { border-color: #C0392B; background: #FDF2F2; transform: translateX(3px); }

  /* ── Text Inputs ── */
  .wikiehpad .input-group { margin-bottom: 9px; }

  .wikiehpad .input-label {
    font-size: 13px; font-weight: 500; color: var(--text-muted);
    letter-spacing: 0.4px; text-transform: uppercase; display: block; margin-bottom: 4px;
  }

  .wikiehpad .input-field {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif;
    font-size: 15px; color: var(--text); background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none; -webkit-appearance: none;
  }

  .wikiehpad .input-field:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(45,107,228,0.14); }
  .wikiehpad .input-field::placeholder { color: #B0BBC6; }
  .wikiehpad .input-field.error { border-color: var(--error); box-shadow: 0 0 0 3px rgba(192,57,43,0.10); }
  .wikiehpad .input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

  @media (max-width: 440px) { .wikiehpad .input-row { grid-template-columns: 1fr; } }

  .wikiehpad .error-msg { font-size: 11px; color: var(--error); margin-top: 4px; display: none; }
  .wikiehpad .error-msg.visible { display: block; }

  /* ── Date input (flatpickr-backed) ── */
  .wikiehpad .input-date { cursor: pointer; }

  /* ── Select input (Brussels districts) ── */
  .wikiehpad .select-wrap { position: relative; }
  .wikiehpad .select-wrap::after {
    content: ''; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    border-left: 5px solid transparent; border-right: 5px solid transparent;
    border-top: 6px solid var(--text-muted); pointer-events: none;
  }
  .wikiehpad .input-select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 36px; }

  /* ── Resident badge ── */
  .wikiehpad .resident-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px; margin-bottom: 16px;
    background: var(--blue-light); color: var(--blue);
    border-radius: 20px; font-size: 12px; font-weight: 600;
    letter-spacing: 0.01em;
  }

  /* ── Civilité inline ── */
  .wikiehpad .civil-row { display: flex; gap: 8px; margin-bottom: 10px; }

  .wikiehpad .civil-btn {
    flex: 1; padding: 6px 8px; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); background: var(--white);
    font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
    color: var(--text-muted); cursor: pointer; transition: all var(--transition); text-align: center;
  }

  .wikiehpad .civil-btn:hover { border-color: var(--blue); color: var(--text); }
  .wikiehpad .civil-btn.selected { border-color: var(--blue); background: var(--blue-light); color: var(--navy); }

  /* ── Budget Slider ── */
  .wikiehpad .budget-slider-section { padding: 4px 0 8px; }

  .wikiehpad .budget-display-row { display: flex; justify-content: center; margin-bottom: 8px; }

  .wikiehpad .budget-value-display {
    background: var(--blue-light); border: 1px solid var(--blue); border-radius: 10px;
    padding: 6px 18px; text-align: center; display: inline-flex;
    align-items: baseline; gap: 7px; transition: all var(--transition);
  }

  .wikiehpad .budget-amount-input {
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 21px;
    font-weight: 700; color: var(--navy); line-height: 1;
    background: transparent; border: none; outline: none;
    width: 90px; text-align: center; padding: 0;
    -webkit-appearance: none; appearance: none;
    font-size: 21px;
  }

  .wikiehpad .budget-amount-input:focus { color: var(--blue); }

  .wikiehpad .budget-period-text { font-size: 13px; color: var(--text-muted); }
  .wikiehpad .slider-container { padding: 0 4px; margin-bottom: 8px; }

  .wikiehpad .budget-range {
    -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
    border-radius: 99px; background: var(--border); outline: none; cursor: pointer; transition: background 0.1s;
  }

  .wikiehpad .budget-range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 24px; height: 24px;
    border-radius: 50%; background: var(--blue); border: 3px solid white;
    box-shadow: 0 2px 8px rgba(45,107,228,0.40); cursor: pointer;
    transition: box-shadow var(--transition), transform var(--transition);
  }

  .wikiehpad .budget-range::-webkit-slider-thumb:hover { box-shadow: 0 2px 14px rgba(45,107,228,0.55); transform: scale(1.1); }

  .wikiehpad .budget-range::-moz-range-thumb {
    width: 24px; height: 24px; border-radius: 50%; background: var(--blue);
    border: 3px solid white; box-shadow: 0 2px 8px rgba(45,107,228,0.40); cursor: pointer;
  }

  .wikiehpad .budget-range::-moz-range-track { height: 6px; border-radius: 99px; background: var(--border); }
  .wikiehpad .budget-range::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--blue); }

  .wikiehpad .budget-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); padding: 0 4px; }

  /* ── Budget preset slider ── */
  .wikiehpad .budget-preset-label {
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px;
    font-weight: 700; color: var(--navy); text-align: center;
  }
  .wikiehpad .budget-tick-marks {
    display: flex; justify-content: space-between;
    padding: 5px 12px 0; /* 12px = half thumb width, aligns ticks to thumb stops */
  }
  .wikiehpad .budget-tick-marks span {
    width: 2px; height: 8px; background: var(--border); border-radius: 1px;
    transition: background var(--transition);
  }
  .wikiehpad .budget-tick-marks span.active { background: var(--blue); }
  .wikiehpad .budget-preset-scale {
    display: flex; justify-content: space-between; padding: 4px 4px 0;
  }
  .wikiehpad .budget-preset-scale span {
    flex: 1; font-size: 10.5px; color: var(--text-muted);
    text-align: center; line-height: 1.35;
  }

  /* ── Navigation ── */
  .wikiehpad .form-nav {
    display: flex; align-items: center; justify-content: center;
    margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); gap: 12px;
  }

  .wikiehpad .btn-back {
    font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--text-muted);
    background: none; border: none; cursor: pointer; padding: 8px 4px;
    display: flex; align-items: center; gap: 6px; transition: color var(--transition); flex-shrink: 0;
  }

  .wikiehpad .btn-back:hover { color: var(--text); }
  .wikiehpad .btn-back svg { transition: transform var(--transition); }
  .wikiehpad .btn-back:hover svg { transform: translateX(-3px); }

  .wikiehpad .btn-next {
    font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
    color: var(--white); background: var(--navy); border: none; border-radius: var(--radius-sm);
    padding: 9px 24px; cursor: pointer; transition: all var(--transition);
    display: flex; align-items: center; gap: 8px;
  }

  .wikiehpad .btn-next:hover { background: var(--navy-light); transform: translateX(2px); }
  .wikiehpad .btn-next:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
  .wikiehpad .btn-next svg { transition: transform var(--transition); }
  .wikiehpad .btn-next:hover:not(:disabled) svg { transform: translateX(3px); }

  .wikiehpad .btn-submit {
    font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
    color: var(--white); background: linear-gradient(135deg, var(--blue), var(--blue-mid));
    border: none; border-radius: var(--radius-sm); padding: 9px 28px; cursor: pointer;
    transition: all var(--transition); display: flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 16px rgba(45,107,228,0.35);
  }

  .wikiehpad .btn-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(45,107,228,0.45); }
  .wikiehpad .btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

  /* ── Confidentialité ── */
  .wikiehpad .confidentiality-note {
    display: flex; align-items: flex-start; gap: 8px; background: var(--blue-light);
    border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 20px;
    font-size: 12px; color: #1E4D9A; line-height: 1.5;
  }

  .wikiehpad .confidentiality-note svg { flex-shrink: 0; margin-top: 1px; }

  /* ── Thank you page ── */
  .wikiehpad #step-thankyou { text-align: center; padding: 20px 0 8px; }

  .wikiehpad .ty-icon {
    width: 68px; height: 68px; background: var(--blue-light); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
  }

  .wikiehpad .ty-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
  .wikiehpad .ty-text { font-size: 14px; color: var(--text-muted); line-height: 1.7; max-width: 380px; margin: 0 auto 20px; }

  .wikiehpad .ty-badge {
    display: none; align-items: center; gap: 8px; background: var(--gold-light);
    border: 1px solid rgba(196,151,58,0.3); border-radius: 99px; padding: 8px 16px;
    font-size: 13px; color: #8B6A1A; font-weight: 500;
  }

  .wikiehpad .ty-badge-body { display: inline-flex; align-items: flex-start; gap: 6px; }
  .wikiehpad .ty-badge-stat { font-size: 13px; font-weight: 700; white-space: nowrap; }

  /* ── Autocomplete dropdown ── */
  .wikiehpad .autocomplete-wrap { position: relative; }

  .wikiehpad .autocomplete-list {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    border: 1.5px solid var(--border); border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow); z-index: 100; max-height: 200px; overflow-y: auto; display: none;
  }

  .wikiehpad .autocomplete-list.open { display: block; }

  .wikiehpad .autocomplete-item { padding: 11px 16px; font-size: 13px; color: var(--text); cursor: pointer; transition: background var(--transition); }
  .wikiehpad .autocomplete-item:hover,
  .wikiehpad .autocomplete-item.highlighted { background: var(--blue-light); }

  /* ── Loading spinner ── */
  .wikiehpad .spinner {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.4); border-top-color: white;
    border-radius: 50%; animation: spin 0.7s linear infinite; display: none;
  }

  @keyframes spin { to { transform: rotate(360deg); } }

  /* ── 2×2 Grid for choice cards (lien de parenté) ── */
  .wikiehpad .choices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .wikiehpad .choices-grid .choice-card {
    flex-direction: column; align-items: center; justify-content: flex-start;
    padding: 14px 10px 12px; gap: 7px; min-height: 80px; position: relative;
  }
  .wikiehpad .choices-grid .choice-card:hover { transform: translateY(-2px); }
  .wikiehpad .choices-grid .choice-card.selected { transform: none; }
  .wikiehpad .choices-grid .choice-icon { width: 26px; height: 26px; }
  .wikiehpad .choices-grid .choice-text { flex: unset; text-align: center; }
  .wikiehpad .choices-grid .choice-label { font-size: 12.5px; text-align: center; line-height: 1.35; }
  .wikiehpad .choices-grid .choice-check { position: absolute; top: 7px; right: 7px; width: 16px; height: 16px; }
  @media (max-width: 360px) { .wikiehpad .choices-grid { grid-template-columns: 1fr; } }

  /* ── Segmented Control (autonomie) ── */
  .wikiehpad .segment-control {
    display: flex; border: 1.5px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: border-color var(--transition);
  }

  .wikiehpad .segment-btn {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; padding: 10px 8px; background: var(--white); border: none;
    border-right: 1.5px solid var(--border); cursor: pointer;
    transition: background var(--transition); font-family: 'DM Sans', sans-serif;
  }

  .wikiehpad .segment-btn:last-child { border-right: none; }
  .wikiehpad .segment-btn[data-value="autonome"]:hover,
  .wikiehpad .segment-btn[data-value="autonome"].selected { background: #F0FBF4; }
  .wikiehpad .segment-btn[data-value="semi_autonome"]:hover,
  .wikiehpad .segment-btn[data-value="semi_autonome"].selected { background: var(--gold-light); }
  .wikiehpad .segment-btn[data-value="dependante"]:hover,
  .wikiehpad .segment-btn[data-value="dependante"].selected { background: #FDF2F2; }
  .wikiehpad .segment-label { font-size: 13px; font-weight: 500; color: var(--text); display: block; line-height: 1.2; transition: color var(--transition); }
  .wikiehpad .segment-btn.selected .segment-label { color: var(--navy); font-weight: 600; }

  /* ── Test button (TEST_MODE only) ── */
  .wikiehpad .btn-test {
    display: none; margin-top: 12px; padding: 5px 12px; font-size: 11px; font-family: monospace;
    background: #f5f5f5; border: 1px dashed #aaa; border-radius: 6px; color: #888; cursor: pointer; width: 100%;
  }
  .wikiehpad .btn-test:hover { background: #ebebeb; color: #555; }

/* ── Flatpickr calendar — Wikiehpad theme ── */
.flatpickr-calendar {
  font-family: 'DM Sans', sans-serif;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(28,43,58,0.15);
  border: 1.5px solid #E4E9ED;
}
.flatpickr-months { background: #1C2B3A; border-radius: 10px 10px 0 0; }
.flatpickr-month { background: transparent; color: white; fill: white; }
.flatpickr-current-month { color: white; }
.flatpickr-current-month .flatpickr-monthDropdown-months { background: #1C2B3A; color: white; }
.flatpickr-current-month input.cur-year { color: white; }
.flatpickr-prev-month, .flatpickr-next-month { color: white; fill: white; }
.flatpickr-prev-month:hover svg, .flatpickr-next-month:hover svg { fill: #5B9DF5; }
.flatpickr-weekdays { background: #1C2B3A; }
span.flatpickr-weekday { background: #1C2B3A; color: rgba(255,255,255,0.55); font-size: 11px; font-weight: 600; }
.flatpickr-day { border-radius: 8px; color: #2C3E50; font-size: 13px; }
.flatpickr-day:hover:not(.disabled):not(.selected):not(.today) { background: #EEF3FF; border-color: #EEF3FF; }
.flatpickr-day.today { border-color: #2D6BE4; color: #2D6BE4; font-weight: 600; }
.flatpickr-day.today:hover { background: #EEF3FF; border-color: #2D6BE4; }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: #2D6BE4; border-color: #2D6BE4; color: white; }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover { color: #C5CDD6; }
