/* ---------- arte final no card ---------- */
.art { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin-bottom: 12px; }
.art.warn { border-color: color-mix(in srgb, var(--warn) 60%, var(--line)); }
.art-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 8px; flex-wrap: wrap; }
.art-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.art-item { position: relative; width: 92px; height: 115px; border-radius: 8px; overflow: hidden; background: #000; display: grid; place-items: center; }
.art-item img { width: 100%; height: 100%; object-fit: cover; }
.art-item .vid { color: #fff; font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.art-item > i { position: absolute; top: 4px; left: 4px; background: rgba(0,0,0,.7); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 7px; }
.art-tools { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 4px; padding: 4px; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.art-tools button { width: 24px; height: 24px; border-radius: 6px; border: 0; background: rgba(255,255,255,.18); color: #fff; cursor: pointer; font-size: 13px; }
.art-add { width: 92px; height: 115px; border: 1px dashed #4a4a4a; border-radius: 8px; display: grid; place-items: center; text-align: center; font-size: 12.5px; color: var(--muted); cursor: pointer; padding: 6px; }
.art-add:hover { border-color: var(--accent); color: var(--fg); }
.art-foot { display: flex; align-items: center; gap: 8px; } .art-foot span { flex: 1; }
.req { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); margin-left: 4px; }
.aplink { margin-top: 14px; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.aplink p { margin: 4px 0 8px; }
.aplink-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-items: center; }
.aplink-row input { grid-column: 1 / -1; }
.aplink-row input { margin: 0; }
.perf { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin-bottom: 12px; }
.perf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-bottom: 8px; }
.perf-grid div { background: var(--panel); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.perf-grid b { font-size: 18px; font-variant-numeric: tabular-nums; }
.perf-grid span { font-size: 11px; color: var(--muted); }
.perf-vs { margin: 0 0 8px; } .perf-vs.up { color: var(--ok); } .perf-vs.down { color: #FCA5A5; }
.kreach { font-size: 12px; color: var(--muted); }
.bkstate, .chk { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 10px; }
.bkstate > span:not(.dot) { flex: 1; }
.bkstate .dot, .chk .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--err); flex: none; }
.bkstate.ok .dot, .chk.ok .dot { background: var(--ok); }
.chk.aviso .dot { background: var(--warn); } .chk.off .dot { background: #555; }
.chk { margin: 4px 0; }
.chklist { margin: 4px 0 8px; } .chklist .chk { display: grid; grid-template-columns: 10px 220px 1fr; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line, #2a2a2a); } .chklist .chk .dot { transform: translateY(1px); }
@media (max-width: 640px) { .chklist .chk { grid-template-columns: 10px 1fr; } .chklist .chk > span.small { grid-column: 2; } }
.bklist .tr { grid-template-columns: 150px 150px 1fr 1fr; align-items: center; }
.bklist .tr .danger { grid-column: 1 / -1; }
.btn.disabled { opacity: .5; pointer-events: none; }
@media (max-width: 900px) { .bklist .tr { grid-template-columns: 1fr 1fr; } }


/* ---------- Conexões: outras IAs e uso ---------- */
.aiprov { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.aiprov > b { display: block; margin-bottom: 6px; }
.aimodel { display: flex; gap: 8px; } .aimodel select { flex: 1; margin: 0; }
.aiu-total { display: flex; flex-direction: column; justify-content: center; } .aiu-total b { font-size: 24px; }
.aiu-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 8px 0 12px; }
.aiu-cols h4 { margin: 0 0 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.aiu-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: baseline; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.aiu-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aiprices { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.aiprice { display: grid; grid-template-columns: 1fr 90px 90px auto; gap: 6px; } .aiprice input { margin: 0; }
.aiu-warn { color: var(--warn); }

/* ---------- aprovação: links, versões e reprovação ---------- */
.plquick { margin-top: 10px; }
.aplink label { display: block; margin-top: 8px; }
.aplink-warn { color: var(--warn); margin: 8px 0; }
.aplinks { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.apl { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.apl.fresh { border-color: var(--accent); }
.apl-head { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.apl-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.apl-foot label { display: flex; gap: 6px; align-items: center; margin: 0; color: var(--muted); }
.apl-foot select { margin: 0; padding: 4px 8px; font-size: 12.5px; width: auto; }
.tag.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: #86efac; }
.tag.v2 { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.seg3 button.on.rp { background: #3f3f46; border-color: #52525b; color: #fff; }
.pi-approve .tag.v2 { display: inline-block; margin-top: 6px; }
.planitem.ap-reprovado { border-left: 3px solid #52525b; }
/* histórico de aprovação no card */
.aphist { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin-bottom: 12px; }
.aphist h4 { margin: 0 0 8px; font-size: 14px; }
.aph-round { border-top: 1px solid var(--line); padding: 8px 0 4px; } .aph-round:first-of-type { border-top: 0; padding-top: 0; }
.aph-round > b { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.aph-row { display: flex; gap: 8px; align-items: baseline; font-size: 13px; padding: 3px 0; flex-wrap: wrap; }
.aph-row .dec { font-weight: 700; } .aph-row .dec.aprovado { color: #86efac; } .aph-row .dec.ajustar { color: #FCA5A5; } .aph-row .dec.reprovado { color: #d4d4d8; }
.apl { text-align: left; }
.apl .aplink-row { width: 100%; }
.aph-round > small { margin-left: 6px; }
.pi-approve .tag.v2 { width: max-content; align-self: flex-start; }
