/* ============================================================
   JobSeeker — direction « Lilas & pêche » (1c)
   Vanilla CSS, aucune ressource externe. Tokens dans :root.
   Dark mode automatique via prefers-color-scheme.
   ============================================================ */

:root {
  /* Typo (système uniquement) */
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-badge: system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Surfaces & encres */
  --bg: #F8F5F2;
  --surface: #FFFFFF;
  --surface-dim: rgba(255, 255, 255, 0.55);
  --ink: #2A2530;
  --ink-2: #565060;
  --muted: #877F8C;
  --faint: #A59DAA;
  --line: rgba(42, 37, 48, 0.12);
  --line-soft: rgba(42, 37, 48, 0.08);
  --chip-bg: rgba(42, 37, 48, 0.06);

  /* Accents */
  --accent: #7B68B5;
  --accent-strong: #6A57A4;
  --accent-ink: #FBF9FF;
  --accent-bg: rgba(123, 104, 181, 0.10);
  --peach: #C97B3F;
  --notes-bg: #FFF9F0;
  --notes-line: rgba(201, 123, 63, 0.22);

  /* Les 7 statuts (code couleur porteur de sens) */
  --st-todo: #6E675E;  --st-todo-dot: #9C948A; --st-todo-bg: rgba(110, 103, 94, 0.10);
  --st-post: #3B6FA8;  --st-post-dot: #3B6FA8; --st-post-bg: rgba(59, 111, 168, 0.09);
  --st-rel:  #6E56A8;  --st-rel-dot:  #6E56A8; --st-rel-bg:  rgba(110, 86, 168, 0.09);
  --st-ent:  #A9740E;  --st-ent-dot:  #D99A2B; --st-ent-bg:  rgba(233, 166, 60, 0.14);
  --st-off:  #3E7D4E;  --st-off-dot:  #3E7D4E; --st-off-bg:  rgba(62, 125, 78, 0.12);
  --st-ref:  #B0453A;  --st-ref-dot:  #B0453A; --st-ref-bg:  rgba(176, 69, 58, 0.09);
  --st-aba:  #56524B;  --st-aba-dot:  #56524B; --st-aba-bg:  rgba(86, 82, 75, 0.12);

  /* Badge d'âge (candidatures actives uniquement) */
  --age-bg: rgba(42, 37, 48, 0.06);
  --age-warn: #B06A1C;      --age-warn-bg: rgba(226, 148, 52, 0.15);   /* ≥ 7 j  */
  --age-late: #B0453A;      --age-late-bg: rgba(176, 69, 58, 0.11);    /* ≥ 14 j */

  /* Espacements & formes */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px;
  --r-card: 18px; --r-ctl: 12px; --r-pill: 999px;
  --tap: 44px;                 /* cible tactile minimale */
  --shadow-card: 0 1px 2px rgba(42, 37, 48, 0.04);
  --shadow-pop: 0 10px 30px rgba(42, 37, 48, 0.18);
  --backdrop: rgba(42, 37, 48, 0.42);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1922;
    --surface: #262230;
    --surface-dim: rgba(38, 34, 48, 0.55);
    --ink: #F2EFF5;
    --ink-2: #C9C4D1;
    --muted: #9A93A5;
    --faint: #746D80;
    --line: rgba(242, 239, 245, 0.14);
    --line-soft: rgba(242, 239, 245, 0.08);
    --chip-bg: rgba(242, 239, 245, 0.08);

    --accent: #9D8BD6;
    --accent-strong: #AC9BE0;
    --accent-ink: #1C1922;
    --accent-bg: rgba(157, 139, 214, 0.14);
    --peach: #E0A06A;
    --notes-bg: #2C2620;
    --notes-line: rgba(224, 160, 106, 0.25);

    --st-todo: #B5ACA0; --st-todo-dot: #B5ACA0; --st-todo-bg: rgba(181, 172, 160, 0.12);
    --st-post: #7BA3D6; --st-post-dot: #7BA3D6; --st-post-bg: rgba(123, 163, 214, 0.12);
    --st-rel:  #A38BD9; --st-rel-dot:  #A38BD9; --st-rel-bg:  rgba(163, 139, 217, 0.12);
    --st-ent:  #E0B25C; --st-ent-dot:  #E0B25C; --st-ent-bg:  rgba(224, 178, 92, 0.13);
    --st-off:  #7BB88C; --st-off-dot:  #7BB88C; --st-off-bg:  rgba(123, 184, 140, 0.13);
    --st-ref:  #D98A7F; --st-ref-dot:  #D98A7F; --st-ref-bg:  rgba(217, 138, 127, 0.12);
    --st-aba:  #8A857D; --st-aba-dot:  #8A857D; --st-aba-bg:  rgba(138, 133, 125, 0.13);

    --age-bg: rgba(242, 239, 245, 0.08);
    --age-warn: #E0A25C; --age-warn-bg: rgba(224, 162, 92, 0.14);
    --age-late: #D98A7F; --age-late-bg: rgba(217, 138, 127, 0.13);

    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-pop: 0 10px 30px rgba(0, 0, 0, 0.45);
    --backdrop: rgba(10, 8, 14, 0.6);
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--tap); padding: 0 var(--sp-5);
  border: none; border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px; cursor: pointer;
  transition: filter 0.15s, transform 0.05s;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 3px rgba(123, 104, 181, 0.3); }
.btn--primary:hover { filter: brightness(1.06); }
.btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }
.btn--danger { background: transparent; border: 1px solid rgba(176, 69, 58, 0.3); color: var(--st-ref); font-size: 13px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.75; cursor: wait; }

/* Spinner (état « Récupération… ») */
.spin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Champs ---------- */
.field { display: flex; flex-direction: column; gap: 5px; }
.field > label {
  font: 600 10.5px/1 var(--font-badge);
  letter-spacing: 0.6px; text-transform: uppercase; color: var(--faint);
}
.input, .textarea, .select {
  width: 100%; min-height: var(--tap); padding: 10px 13px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ctl);
  font-size: 14px; color: var(--ink);
}
.textarea { resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .textarea:focus, .select:focus, .statut:focus {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
.select {
  appearance: none; -webkit-appearance: none;
  padding-right: 32px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.search { border-radius: var(--r-pill); }

/* ---------- Chips de filtre ---------- */
.chips {
  display: flex; gap: 7px; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 13px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  font: 500 13px var(--font); color: var(--ink-2);
  cursor: pointer; white-space: nowrap;
}
.chip .n { color: var(--faint); }
.chip--active { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 600; }
.chip--active .n { color: inherit; opacity: 0.65; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot--todo { background: var(--st-todo-dot); } .dot--post { background: var(--st-post-dot); }
.dot--rel { background: var(--st-rel-dot); }   .dot--ent { background: var(--st-ent-dot); }
.dot--off { background: var(--st-off-dot); }   .dot--ref { background: var(--st-ref-dot); }
.dot--aba { background: var(--st-aba-dot); }

/* ---------- Carte candidature ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-card); padding: 14px;
  display: flex; flex-direction: column; gap: 9px;
  box-shadow: var(--shadow-card);
}
.card--late { border-color: rgba(176, 69, 58, 0.28); }
.card--dim { background: var(--surface-dim); box-shadow: none; }
.card--dim .card-title, .card--dim .card-co { color: var(--muted); }
.card--dim .card-meta { color: var(--faint); }
.card-top { display: flex; align-items: flex-start; gap: 10px; }
.card-title { font: 700 16px/1.3 var(--font); color: var(--ink); }
.card-title a { color: inherit; }
.card-co { display: flex; align-items: center; gap: 7px; margin-top: 4px; flex-wrap: wrap; font: 500 13px/1.2 var(--font); color: var(--ink-2); }
.card-meta { font: 400 13px/1.4 var(--font); color: var(--muted); }

/* Badge site source */
.src {
  font: 600 9.5px/1 var(--font-badge); letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--muted); background: var(--chip-bg);
  border-radius: var(--r-pill); padding: 4px 7px;
}

/* Badge d'âge */
.age {
  flex: none; font: 500 11.5px/1 var(--font);
  color: var(--muted); background: var(--age-bg);
  border-radius: var(--r-pill); padding: 6px 9px; white-space: nowrap;
}
.age--warn { color: var(--age-warn); background: var(--age-warn-bg); }
.age--late { color: var(--age-late); background: var(--age-late-bg); font-weight: 600; }

/* Sélecteur de statut sur la carte (vrai <select>) */
.statut {
  appearance: none; -webkit-appearance: none;
  width: 100%; min-height: var(--tap); padding: 0 14px;
  border: none; border-radius: var(--r-ctl);
  font: 600 13.5px var(--font); cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.statut--todo { background-color: var(--st-todo-bg); color: var(--st-todo); }
.statut--post { background-color: var(--st-post-bg); color: var(--st-post); }
.statut--rel  { background-color: var(--st-rel-bg);  color: var(--st-rel); }
.statut--ent  { background-color: var(--st-ent-bg);  color: var(--st-ent); }
.statut--off  { background-color: var(--st-off-bg);  color: var(--st-off); }
.statut--ref  { background-color: var(--st-ref-bg);  color: var(--st-ref); }
.statut--aba  { background-color: var(--st-aba-bg);  color: var(--st-aba); }

/* ---------- Stepper de statut (fiche) ---------- */
.stepper-wrap { background: var(--bg); border-radius: 14px; padding: 16px 18px 14px; }
.stepper { display: flex; align-items: flex-start; }
.step { flex: none; width: 62px; display: flex; flex-direction: column; align-items: center; gap: 7px; background: none; border: none; padding: 0; cursor: pointer; }
.step b { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.step span { font: 500 10.5px/1.2 var(--font); color: var(--faint); text-align: center; }
.step--done span { color: var(--muted); }
.step--done.step--todo b { background: var(--st-todo-dot); box-shadow: 0 0 0 1px var(--line); }
.step--done.step--post b { background: var(--st-post-dot); box-shadow: 0 0 0 1px var(--line); }
.step--done.step--rel b  { background: var(--st-rel-dot);  box-shadow: 0 0 0 1px var(--line); }
.step--current b { box-shadow: 0 0 0 4px var(--st-ent-bg) !important; }
.step--current.step--rel b { background: var(--st-rel-dot); box-shadow: 0 0 0 4px var(--st-rel-bg) !important; }
.step--current.step--ent b { background: var(--st-ent-dot); box-shadow: 0 0 0 4px var(--st-ent-bg) !important; }
.step--current span { font-weight: 700; }
.step--current.step--rel span { color: var(--st-rel); }
.step--current.step--ent span { color: var(--st-ent); }
.step-line { flex: 1; height: 2px; background: var(--line-soft); margin-top: 6px; }
.step-line--done { background: var(--line); }
.stepper-issues { margin-top: 12px; display: flex; align-items: center; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.stepper-issues > span { font: 400 11.5px var(--font); color: var(--faint); }
.issue {
  display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 10px;
  background: none; border: 1px solid var(--line); border-radius: var(--r-pill);
  font: 500 11.5px var(--font); cursor: pointer;
}
.issue--ref { border-color: rgba(176, 69, 58, 0.25); color: var(--st-ref); }
.issue--aba { border-color: rgba(86, 82, 75, 0.3); color: var(--st-aba); }

/* ---------- Timeline des échanges ---------- */
.tl { display: flex; flex-direction: column; gap: 12px; }
.tl-item { display: flex; gap: 11px; }
.tl-ico {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-bg); display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.tl-body { flex: 1; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.tl-item:last-of-type .tl-body { border-bottom: none; padding-bottom: 0; }
.tl-head { display: flex; align-items: baseline; gap: 8px; }
.tl-head b { font: 600 12.5px var(--font); color: var(--ink); }
.tl-head time { font: 400 11.5px var(--font); color: var(--faint); }
.tl-txt { margin-top: 2px; font: 400 12.5px/1.45 var(--font); color: var(--ink-2); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  max-width: min(420px, calc(100vw - 32px));
  background: var(--ink); color: var(--bg);
  border-radius: var(--r-pill); padding: 12px 18px;
  font: 600 13.5px var(--font); box-shadow: var(--shadow-pop);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.toast--fete { background: var(--st-off); color: #FFFFFF; }

/* ---------- Modale ---------- */
.backdrop {
  position: fixed; inset: 0; background: var(--backdrop);
  display: flex; align-items: flex-end; justify-content: center; padding: var(--sp-4);
}
.modal {
  width: 100%; max-width: 420px;
  background: var(--surface); border-radius: 22px; padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-4);
  box-shadow: var(--shadow-pop);
}
.modal h2 { font: 700 18px/1.2 var(--font); }
.clipboard {
  display: flex; align-items: center; gap: 9px;
  background: var(--st-off-bg); border: 1px solid rgba(62, 125, 78, 0.25);
  border-radius: var(--r-ctl); padding: 11px 13px;
  font: 500 13px/1.4 var(--font); color: var(--st-off);
}
.clipboard button {
  margin-left: auto; flex: none; min-height: 34px; padding: 0 12px;
  border: none; border-radius: var(--r-pill);
  background: var(--st-off); color: #FFFFFF; font: 600 12.5px var(--font); cursor: pointer;
}
.divider { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
@media (min-width: 700px) { .backdrop { align-items: center; } }

/* ---------- Layout Liste ---------- */
.topbar {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-4) 0;
}
.brand { display: flex; align-items: center; gap: 8px; font: 700 15px/1 var(--font); color: var(--ink); }
.brand .logo { font-size: 17px; }
.topbar .btn { display: none; }
.layout { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); }
.summary h1 { font: 700 26px/1.1 var(--font); }
.summary p { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.summary .offre { color: var(--peach); font-weight: 600; }
.controls { display: flex; gap: var(--sp-2); }
.controls .search { flex: 1; min-width: 0; }
.controls .select { width: auto; flex: none; border-radius: var(--r-pill); }
.cards { display: flex; flex-direction: column; gap: 10px; }
.col-fiche { display: none; }

@media (min-width: 1024px) {
  .topbar { padding: var(--sp-4) var(--sp-6); border-bottom: 1px solid var(--line-soft); padding-bottom: var(--sp-4); }
  .topbar .btn { display: inline-flex; margin-left: auto; }
  .layout {
    display: grid; grid-template-columns: 440px 1fr; align-items: start;
    gap: var(--sp-5); padding: var(--sp-5) var(--sp-6) var(--sp-6);
  }
  .col-list { display: flex; flex-direction: column; gap: var(--sp-3); }
  .add-mobile { display: none; }
  .chips { flex-wrap: wrap; overflow: visible; }
  .chip { min-height: 36px; font-size: 12.5px; }
  .summary h1 { font-size: 20px; display: inline; }
  .summary p { display: inline; margin-left: 8px; }
  .col-fiche { display: block; position: sticky; top: var(--sp-4); }
  .card--selected { border: 2px solid var(--accent); box-shadow: 0 4px 14px rgba(123, 104, 181, 0.16); }
}

/* ---------- Fiche ---------- */
.fiche {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-card);
  padding: var(--sp-5); display: flex; flex-direction: column; gap: 18px;
}
.fiche-head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.fiche-head h2 { font: 700 21px/1.2 var(--font); }
.fiche-sub { display: flex; align-items: center; gap: 8px; margin-top: 5px; flex-wrap: wrap; font: 500 13.5px var(--font); color: var(--ink-2); }
.fiche-dates { margin-top: 7px; font: 400 12.5px var(--font); color: var(--muted); }
.fiche-actions { display: flex; gap: 8px; margin-left: auto; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 10px 12px; }
.grid2 .span2 { grid-column: 1 / -1; }
@media (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.desc-row {
  display: flex; align-items: center; gap: 7px; min-height: 40px;
  font: 500 13px var(--font); color: var(--muted); cursor: pointer;
}
.desc-row .peek { font-weight: 400; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.notes {
  min-height: 64px; padding: 11px 13px;
  background: var(--notes-bg); border: 1px solid var(--notes-line); border-radius: var(--r-ctl);
  font: 400 13px/1.5 var(--font); color: var(--ink-2); width: 100%;
}
.sec-label { font: 600 10.5px/1 var(--font-badge); letter-spacing: 0.6px; text-transform: uppercase; color: var(--faint); }
.tl-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tl-form .select { width: auto; flex: none; }
.tl-form .input { flex: 1; min-width: 140px; }
.page-fiche { max-width: 760px; margin: 0 auto; padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); font: 600 14px var(--font); }

/* ---------- Login ---------- */
.page-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: var(--sp-5);
}
.login-card {
  width: 100%; max-width: 360px; text-align: center;
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.login-card .logo { font-size: 44px; }
.login-card h1 { font: 700 28px/1.1 var(--font); }
.login-card .sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.login-form { display: flex; flex-direction: column; gap: var(--sp-3); text-align: left; margin-top: var(--sp-2); }

/* ============================================================
   Couche d'intégration app (ajouts hors livrable design)
   ============================================================ */
.hidden { display: none !important; }

/* Le toast est monté en permanence, caché par défaut, au-dessus des modales */
.toast { z-index: 100; }
.toast--err { background: var(--st-ref); color: #FFFFFF; }

/* Backdrops de modales (au-dessus du layout) */
.backdrop { z-index: 50; overflow-y: auto; }
.backdrop .modal { max-height: calc(100dvh - 32px); overflow-y: auto; }
.modal--fiche { max-width: 760px; padding: 0; background: transparent; box-shadow: none; }
.modal--fiche .fiche { box-shadow: var(--shadow-pop); }

/* La fiche en modale n'existe qu'en mobile ; en desktop c'est le panneau */
@media (min-width: 1024px) {
  #detail-modal { display: none !important; }
}

/* Placeholder du panneau desktop quand rien n'est sélectionné */
.fiche-empty {
  border: 1px dashed var(--line); border-radius: var(--r-card);
  padding: 48px 24px; text-align: center; color: var(--faint); font-size: 14px;
}

/* Login : message d'erreur */
.login-error { color: var(--st-ref); font-size: 13.5px; font-weight: 600; }

/* Encart presse-papier : variante « collé automatiquement » */
.clipboard--done button { display: none; }

/* Description dépliable */
.desc-row .caret { transition: transform 0.15s; display: inline-block; }
.desc-row.open .caret { transform: rotate(90deg); }
.desc-full {
  grid-column: 1 / -1; font: 400 13px/1.55 var(--font); color: var(--ink-2);
  background: var(--bg); border-radius: var(--r-ctl); padding: 12px 14px;
  max-height: 260px; overflow-y: auto; white-space: pre-wrap;
}

/* Issue (Refusée / Abandonnée) active dans le stepper */
.issue--on.issue--ref { background: var(--st-ref-bg); font-weight: 700; }
.issue--on.issue--aba { background: var(--st-aba-bg); font-weight: 700; }

/* Timeline : suppression d'un échange + zone de contenu du formulaire */
.tl-del {
  margin-left: auto; flex: none; border: none; background: none;
  color: var(--faint); cursor: pointer; font-size: 12px; padding: 2px 6px;
}
.tl-del:hover { color: var(--st-ref); }
.tl-form .textarea { width: 100%; min-height: 56px; }

/* Bouton fermer des modales */
.modal-x {
  margin-left: auto; min-height: 36px; padding: 0 12px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--ink-2); font-size: 13px; cursor: pointer;
}

/* ============================================================
   Veille (recherches favorites + fil de nouvelles offres)
   ============================================================ */
.tabs { display: flex; gap: 5px; margin-left: var(--sp-2); flex: 1; min-width: 0; }
.tab {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 13px;
  background: transparent; border: 1px solid transparent; border-radius: var(--r-pill);
  font: 600 13.5px var(--font); color: var(--muted); cursor: pointer; white-space: nowrap;
}
.tab--active { background: var(--surface); border-color: var(--line); color: var(--ink); }
.tab .n {
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--r-pill); padding: 2px 7px; font-size: 11px; font-weight: 700;
}

.page-veille {
  max-width: 760px; margin: 0 auto; padding: var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.veille-add { display: flex; gap: 8px; flex-wrap: wrap; }
.veille-add input[type="url"] { flex: 2 1 260px; }
.veille-add input:not([type="url"]) { flex: 1 1 140px; }
.veille-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.search-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-card); padding: 11px 14px; box-shadow: var(--shadow-card);
}
.search-row + .search-row { margin-top: 8px; }
.search-row b { font: 600 14px var(--font); }
.search-row .meta { font: 400 12px var(--font); color: var(--faint); flex-basis: 100%; }
.search-row .meta.err { color: var(--st-ref); }
.search-row .spacer { flex: 1; }
.search-row .new-badge {
  background: var(--accent-bg); color: var(--accent);
  border-radius: var(--r-pill); padding: 4px 10px; font: 700 12px var(--font);
}
.icon-btn {
  min-width: var(--tap); min-height: 38px; padding: 0 10px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--ink-2); cursor: pointer; font-size: 13px;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.offer-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.offer-actions .btn { min-height: 38px; font-size: 13px; }

.suggestion-box {
  background: var(--accent-bg); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.suggestion-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.suggestion-row b { font: 600 13.5px var(--font); flex: 1; min-width: 140px; }
