/* À pic · « Mes veilles » (Affût) : compte, réglages du tableau de bord, bouton du moteur. Variables de la charte (app.css). */
.vl { display: grid; gap: 18px; }
.vl__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.vl__t { margin: 0 0 4px; font: 800 1.35rem/1.15 var(--font-display); letter-spacing: -0.03em; color: var(--ink); }
.vl__sub { margin: 0; color: var(--ink-2); font-size: var(--text-sm); max-width: 60ch; }
.vl__compte { flex: none; padding: 4px 12px; border-radius: var(--pill); background: var(--accent-2-wash); color: var(--accent-2-ink); font-weight: 700; font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
.vl__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vl-item { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); border-left: 4px solid var(--accent); transition: border-color var(--dur-2) var(--ease-standard), opacity var(--dur-2) var(--ease-standard); }
.vl-item.is-pause { border-left-color: var(--line-strong); }
.vl-item.is-pause .vl-item__txt { opacity: 0.72; }
.vl-item__txt { min-width: 0; flex: 1 1 260px; }
.vl-item__t { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink); }
.vl-item__t b { font-weight: 750; }
.vl-item__m { margin: 2px 0 0; color: var(--ink-3); font-size: var(--text-xs); }
.vl-item__acts { display: flex; gap: 6px; flex-wrap: wrap; }
.vl-pill { padding: 2px 9px; border-radius: var(--pill); background: var(--signal-creation-wash); color: var(--signal-creation-ink); font-size: 0.75rem; font-weight: 700; }
.vl-pill--pause { background: var(--paper-3, var(--bg)); color: var(--ink-3); }
.vl-suppr { color: var(--stop); }
.vl__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.vl-vide { padding: 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); color: var(--ink-2); }
.vl-vide p { margin: 0 0 4px; }
.vl-offre { padding: 18px; border-radius: var(--r-md); background: var(--accent-2-wash); color: var(--ink); }
.vl-offre p { margin: 0 0 12px; color: var(--ink-2); }
.vl-offre .vl-offre__t { color: var(--ink); margin-bottom: 6px; }
.vl-offre .vl-note { margin: 8px 0 0; }
.vl-note { margin: 0; color: var(--ink-3); font-size: var(--text-xs); }
.vl a:not(.btn), .vl-dlg a:not(.btn) { color: var(--link); font-weight: 600; text-decoration: none; }
.vl a:not(.btn):hover, .vl-dlg a:not(.btn):hover { color: var(--accent-ink); }
.vl-prefs { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }
.vl-switch { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; flex: 1 1 260px; }
.vl-switch input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.vl-switch span { display: grid; }
.vl-switch small { color: var(--ink-3); font-size: var(--text-2xs); }
.vl-f { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.vl-f label, .vl-f legend { font-weight: 650; font-size: var(--text-xs); color: var(--ink); padding: 0; }
.vl-f input, .vl-f select { min-height: var(--target); padding: 0 12px; border: 1px solid var(--line-input); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: 400 var(--text-base) var(--font-ui); width: 100%; }
.vl-f input:focus-visible, .vl-f select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.vl-f--inline { grid-auto-flow: column; align-items: center; gap: 10px; }
.vl-f--inline select { width: auto; }
.vl-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt { font-weight: 400; color: var(--ink-3); }
.vl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vl-chip { position: relative; cursor: pointer; }
.vl-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.vl-chip span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--pill); font-size: var(--text-xs); transition: background var(--dur-2) var(--ease-standard), border-color var(--dur-2) var(--ease-standard); }
.vl-chip input:checked + span { background: var(--accent-wash); border-color: var(--accent); color: var(--accent-ink); font-weight: 650; }
.vl-chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.vl-check { display: flex; gap: 8px; align-items: center; font-size: var(--text-sm); }
.vl-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.vl-err:not([hidden]) { display: block; margin: 0; padding: 10px 12px; border-radius: var(--radius); background: var(--stop-wash); color: var(--stop); font-size: var(--text-xs); }

/* Fenêtre (création, modification, suppression) */
.vl-dlg { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-modal); }
.vl-dlg::backdrop { background: var(--scrim); }
.vl-dlg[open] { animation: vl-in var(--dur-4) var(--ease-out); }
@keyframes vl-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.vl-dlg__in { display: grid; gap: 14px; padding: clamp(20px, 4vw, 28px); }
.vl-dlg h2 { margin: 0; font: 800 1.3rem/1.2 var(--font-display); letter-spacing: -0.03em; }
.vl-dlg__txt, .vl-dlg p { margin: 0; color: var(--ink-2); font-size: var(--text-sm); }
.vl-dlg__acts { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 520px) { .vl-f2 { grid-template-columns: 1fr; } .vl-dlg__acts .btn { flex: 1 1 auto; } .vl-item__acts { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .vl-dlg[open] { animation: none; } }

/* Bouton du moteur, sous le résumé de la recherche */
.veille-cta { display: flex; align-items: center; gap: 8px; width: 100%; justify-content: center; margin: 8px 0 4px; border-style: dashed; border-color: var(--accent-line); color: var(--accent-ink); font-weight: 700; }
.veille-cta .ic { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .veille-cta:hover { background: var(--accent-wash); border-color: var(--accent); } }
