/* Composants (2/2) : modales, toasts, console, onglets, listes de problèmes, chronologie, captures, divers */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--surface); border-radius: 14px; width: 100%; max-width: 560px; max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.wide { max-width: 860px; }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 18px 20px; overflow: auto; } .modal-foot { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }
.toast-wrap { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); max-width: 360px; font-size: 13.5px; animation: fadein .15s; }
.toast.ok { background: var(--ok); color: #fff; } .toast.error { background: var(--crit); color: #fff; } @keyframes fadein { from { opacity: 0; transform: translateY(6px); } }
.console { background: #0b0f14; color: #d5dde6; font-family: var(--mono); font-size: 12.5px; padding: 12px 14px; border-radius: 8px; max-height: 480px; overflow: auto; white-space: pre-wrap; word-break: break-word; line-height: 1.45; }
.console .warn { color: #fbbf24; } .console .error { color: #f87171; } .console .ok { color: #4ade80; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tab { padding: 8px 14px; border: 0; background: none; font: inherit; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; } .tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.issues { list-style: none; margin: 0; padding: 0; } .issues li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); align-items: flex-start; } .issues li:last-child { border-bottom: 0; }
.issues .where { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.timeline { display: flex; gap: 2px; height: 28px; align-items: flex-end; } .timeline i { flex: 1; min-width: 2px; border-radius: 2px; background: var(--ok); opacity: .85; height: 100%; }
.timeline i.down { background: var(--crit); } .timeline i.warn { background: var(--warn); height: 60%; } .timeline i.empty { background: var(--gray-bg); height: 30%; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13.5px; margin: 0; } .kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } .shots figure { margin: 0; }
.shots img { width: 100%; border: 1px solid var(--border); border-radius: 6px; max-height: 420px; object-fit: cover; object-position: top; background: var(--gray-bg); display: block; }
.shots figcaption { font-size: 12.5px; color: var(--muted); margin-top: 4px; display: flex; justify-content: space-between; align-items: center; }
@media (max-width: 900px) { .shots { grid-template-columns: 1fr; } }
.empty { color: var(--muted); text-align: center; padding: 28px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .mt { margin-top: 16px; } .mb { margin-bottom: 16px; } .right { margin-left: auto; }
.qr { display: block; margin: 12px auto; border-radius: 8px; background: #fff; padding: 8px; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: middle; } @keyframes spin { to { transform: rotate(360deg); } }
.running-banner { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--info); }
.shots .empty { border: 1px dashed var(--border); border-radius: 6px; min-height: 140px; display: grid; place-items: center; padding: 12px; }

/* Journal daté de la fiche site */
.journal{list-style:none;margin:0;padding:0}.journal li{display:flex;gap:10px;align-items:flex-start;padding:7px 0;border-top:1px solid var(--border,#e3e5e8)}.journal .mono{font-family:var(--mono,monospace);min-width:44px;padding-top:2px}.journal .badge{min-width:88px;justify-content:center}
.tag{display:inline-block;font-size:11px;padding:1px 6px;border-radius:4px;background:var(--info-bg,#e0ecff);color:var(--info,#175cd3);margin-left:4px}
.decisions ul.issues li{align-items:flex-start}
