/* Trust Layer — evidence registry UI. Matches ThatzEasy palette. */
.cred-toolbar{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:12px 0 20px}
.cred-filter{display:inline-flex;align-items:center;gap:8px;color:#605c70;font-size:.88rem}
.cred-filter select{padding:7px 10px;border:1px solid #d9d4e5;border-radius:9px;background:#fff}
.cred-group{margin:0 0 24px}
.cred-group h3{display:flex;align-items:center;gap:10px;margin:0 0 10px;font-size:1.05rem;letter-spacing:-.02em;color:#2a2440}
.cred-count{display:inline-flex;align-items:center;justify-content:center;min-width:26px;padding:1px 8px;border-radius:999px;background:#efeaf8;color:#5536ca;font-size:.78rem;font-weight:700}
.cred-list{display:flex;flex-direction:column;gap:9px}
.cred-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 16px;border:1px solid #e6e2ef;border-radius:14px;background:#fff;box-shadow:0 6px 18px rgba(48,32,94,.04)}
.cred-row-main{flex:1;min-width:0}
.cred-row-head{display:flex;align-items:center;gap:10px;margin-bottom:4px}
.cred-row-head strong{font-size:.98rem;letter-spacing:-.01em;color:#1f1932}
.cred-row-meta{display:flex;flex-wrap:wrap;gap:12px;color:#6a6578;font-size:.82rem}
.cred-row-meta small{color:#6a6578}
.cred-row-actions{display:flex;gap:6px;flex-shrink:0}
.cred-badge{display:inline-block;padding:3px 10px;border-radius:999px;font-size:.72rem;font-weight:700;letter-spacing:.03em;text-transform:uppercase}
.cred-badge.cred-ok{background:#e6f5ee;color:#146043}
.cred-badge.cred-warn{background:#fff3d8;color:#7b5207}
.cred-badge.cred-bad{background:#fde6e9;color:#92313f}
.cred-badge.cred-neutral{background:#ecebf2;color:#4b4659}

.cred-dialog{max-width:620px;width:92vw;padding:0;border:0;border-radius:18px;box-shadow:0 24px 60px rgba(48,32,94,.26);background:#fff}
.cred-dialog::backdrop{background:rgba(30,22,70,.42)}
.cred-form{padding:26px 26px 22px}
.cred-kicker{color:#6545d8;font-size:.72rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;margin-bottom:5px}
.cred-form h2{margin:0 0 15px;font-size:1.35rem;letter-spacing:-.03em;color:#1b1631}
.cred-fields{display:flex;flex-direction:column;gap:12px}
.cred-fields label{display:block;color:#4a4559;font-size:.84rem;font-weight:600;margin-bottom:5px}
.cred-fields input[type=text],
.cred-fields input[type=date],
.cred-fields input[type=file],
.cred-fields select,
.cred-fields textarea{width:100%;padding:9px 11px;border:1px solid #d9d4e5;border-radius:9px;background:#fff;font:inherit}
.cred-fields textarea{min-height:72px;resize:vertical}
.cred-fields .field-note{color:#716d80;font-size:.78rem;margin-top:4px}
.cred-error{min-height:1.1em;margin:12px 0 0;color:#a7384a;font-size:.86rem}
.cred-detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px 16px;margin:4px 0 16px;padding:12px 14px;border:1px solid #ece8f5;border-radius:12px;background:#faf9fd}
.cred-detail-grid label{margin:0;font-size:.72rem;color:#716d80;text-transform:uppercase;letter-spacing:.08em}
.cred-detail-grid div>div{font-size:.92rem;color:#2a2440}
.cred-actions-row{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 10px}
.cred-history-wrap{margin-top:10px}
.cred-history-wrap summary{cursor:pointer;color:#5536ca;font-weight:600;padding:6px 0}
.cred-history{list-style:none;padding:0;margin:10px 0 0;display:flex;flex-direction:column;gap:12px}
.cred-history li{padding:10px 12px;border-left:3px solid #c9bdf4;background:#faf9fd;border-radius:0 10px 10px 0}
.cred-history li strong{display:block;font-size:.92rem;color:#2a2440}
.cred-history li small{color:#6a6578;font-size:.76rem}
.cred-history li p{margin:4px 0 0;color:#4a4559;font-size:.86rem}
.cred-history li .cred-detail{color:#716d80;font-size:.82rem;margin-top:4px}
.cred-contests{margin:12px 0;padding:12px 14px;border:1px solid #f0d8dc;background:#fff6f6;border-radius:12px}
.cred-contests h4{margin:0 0 10px;color:#92313f;font-size:.94rem}
.cred-contests article{margin-bottom:8px;padding-bottom:8px;border-bottom:1px dashed #e3cdd2}
.cred-contests article:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.cred-muted{color:#716d80;font-size:.88rem}

@media(max-width:720px){
  .cred-row{flex-direction:column;align-items:stretch}
  .cred-row-actions{justify-content:flex-start}
  .cred-detail-grid{grid-template-columns:1fr}
  .cred-dialog{width:95vw}
}
