/* Dépense Claude du mois (public/claude.js) : la rubrique « Claude » de l'appli (admin) et la page /claude. Tout est
   sous .cl pour ne rien changer au reste de l'appli. */
.cl { display: flex; flex-direction: column; gap: 14px; font-size: 14px; line-height: 1.5; }
.cl-head { display: flex; align-items: center; gap: 12px; }
.cl-logo { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, #8c8c8b, #9d9d9c); color: #fff; font-weight: 800; font-size: 18px; flex: none; }
.cl-head h1 { margin: 0; font-size: 18px; } .cl-head small { color: var(--muted); }
.cl-upd { margin-left: auto; color: var(--muted); font-size: 12px; text-align: right; }
.cl-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.cl-card h2 { margin: 0 0 10px; font-size: 14px; }
.cl-hero { display: flex; flex-direction: column; gap: 10px; }
.cl-big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cl-big b { font-size: 40px; line-height: 1; letter-spacing: -.02em; } .cl-big span { color: var(--muted); font-size: 16px; }
.cl-bar { height: 14px; border-radius: 999px; background: var(--surface-2, rgba(127,127,127,.12)); overflow: hidden; }
.cl-bar i { display: block; height: 100%; border-radius: 999px; background: #22c55e; transition: width .4s; }
.cl-bar i.warn { background: #f59e0b; } .cl-bar i.full { background: #ef4444; }
.cl-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cl-kpi { padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.cl-kpi small { display: block; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.cl-kpi b { font-size: 18px; }
.cl-status { margin: 0; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 13.5px; }
.cl-status.ok { background: rgba(34,197,94,.12); color: #16a34a; } .cl-status.stop { background: rgba(239,68,68,.12); color: #ef4444; } .cl-status.mid { background: rgba(245,158,11,.12); color: #d97706; }
.cl-chart { width: 100%; height: 120px; display: block; }
.cl-chart rect { fill: #9d9d9c; } .cl-chart rect.today { fill: #8c8c8b; } .cl-chart text { fill: var(--muted); font-size: 10px; }
.cl table { width: 100%; border-collapse: collapse; font-size: 13px; } .cl td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.cl td:last-child { text-align: right; font-variant-numeric: tabular-nums; } .cl tr:last-child td { border: 0; } .cl td small { color: var(--muted); }
.cl form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cl input { width: 110px; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; }
.cl button { font: inherit; cursor: pointer; border-radius: 9px; border: 0; background: var(--accent, #8c8c8b); color: #fff; padding: 8px 14px; font-weight: 650; }
.cl-muted { color: var(--muted); } .cl-small { font-size: 12.5px; }
.cl a { color: var(--accent, #8c8c8b); }
.cl-err { text-align: center; padding: 40px 18px; }
@media (max-width: 560px) { .cl-row3 { grid-template-columns: 1fr; } .cl-big b { font-size: 32px; } }
/* IA technique (07/11/2026, public/aiadmin.js) : tableaux compacts, une ligne par réglage */
.at { margin-bottom: 18px; gap: 12px; }
.at-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.at-head h2 { margin: 0; font-size: 16px; }
.at-msg { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.at .cl-card { padding: 14px 16px; border-radius: 12px; }
.at h3 { margin: 0 0 8px; font-size: 13.5px; font-weight: 650; }
.at .at-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.at .at-t th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 0 10px 6px 0; border-bottom: 1px solid var(--line); }
.at .at-t td { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); vertical-align: middle; text-align: left !important; }
.at .at-t tr:last-child td { border-bottom: 0; }
.at .at-sub { display: block; color: var(--muted); font-size: 11.5px; }
.at code { font-size: 12px; color: var(--fg-2, var(--fg)); }
.at select, .at input { width: auto; min-width: 0; max-width: 100%; font: inherit; font-size: 13px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; height: 32px; }
.at select { min-width: 200px; width: 100%; padding-right: 30px !important; text-overflow: ellipsis; }
.at .at-t td:first-child { width: 34%; }
.at .at-key input { width: 170px; }
.at form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.at .at-b { padding: 0 12px; height: 32px; border-radius: 8px; font-size: 13px; font-weight: 600; background: var(--surface-3, #1a1a1a); color: var(--fg); border: 1px solid var(--line); }
.at .at-b:hover:not(:disabled) { border-color: var(--line-2, var(--line)); }
.at .at-b:disabled { opacity: .5; cursor: default; }
.at .at-l { background: none; border: 0; padding: 0; color: var(--muted); font-size: 12.5px; text-decoration: underline; font-weight: 500; }
.at .at-ok { color: #16a34a; font-weight: 600; } .at .at-ko { color: #ef4444; font-weight: 600; }
.at .at-k { display: inline-block; font-size: 11.5px; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--line); }
.at tr.k-error .at-k, .at tr.k-pause .at-k { color: #ef4444; border-color: rgba(239,68,68,.35); }
.at .at-sw { position: relative; display: inline-block; width: 32px; height: 18px; }
.at .at-sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; height: 18px; width: 32px; }
.at .at-sw i { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2, #333); transition: background .15s; pointer-events: none; }
.at .at-sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.at .at-sw input:checked + i { background: var(--accent, #80807f); } .at .at-sw input:checked + i::after { transform: translateX(14px); }
.at .at-sw input:focus-visible + i { outline: 2px solid var(--accent, #80807f); outline-offset: 2px; }
@media (max-width: 760px) { .at .at-t { display: block; overflow-x: auto; white-space: nowrap; } .at select { min-width: 160px; } }
.at .at-lim label { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; margin: 0; }
.at .at-lim input { width: 90px !important; flex: none; }
.at .at-t td code { word-break: break-all; }
.at code.at-eff { display: block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: normal; }
.at .at-t td:first-child { width: 30%; }

/* (20/11/2026) Annonces (public/annonces.js) : rédaction, aperçu Discord / Telegram, résultat par cible */
.an .an-f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted, #9a9a9a); margin: 0 0 10px; flex: 1; }
.an .an-f input, .an .an-f textarea { font: inherit; font-size: 14px; color: var(--fg); background: var(--surface-2, #141414); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; resize: vertical; }
.an .an-row { display: flex; gap: 12px; flex-wrap: wrap; }
.an .an-t { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.an .an-t legend { padding: 0 4px; color: var(--muted, #9a9a9a); }
.an .an-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.an .an-when { font-size: 13px; color: var(--muted, #9a9a9a); display: inline-flex; gap: 6px; align-items: center; }
.an .an-when input { font: inherit; color: var(--fg); background: var(--surface-2, #141414); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }
.an .an-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.an .an-head h3 { margin: 0; }
.an .an-st { font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.an .an-published { color: #4ade80; border-color: rgba(74, 222, 128, .35); }
.an .an-scheduled { color: #9d9d9c; border-color: rgba(157, 157, 156, .4); }
.an .an-failed, .an .an-uncertain, .an .an-partial { color: #fbbf24; border-color: rgba(251, 191, 36, .4); }
.an .an-prev { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 10px 0; }
.an .an-dc, .an .an-tg { border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2, #141414); }
.an .an-dc { border-left: 3px solid #797978; }
.an .an-dc p, .an .an-tg p { margin: 6px 0 0; }
.an .an-btn { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 6px; background: var(--surface-3, #1f1f1f); font-size: 12px; }
.an .an-res { margin: 4px 0; padding-left: 18px; font-size: 13px; }
.an .an-res li { margin: 3px 0; }
