#antifraud-panel { min-width: 0; }
.af-header { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: start; }
.af-header h2 { margin: 0 0 6px; }
.af-header p { max-width: 760px; margin: 0; }
.af-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.af-tabs button { min-height: 42px; }
.af-tabs button[aria-selected="true"] { color: white; background: var(--brand); border-color: var(--brand); }
.af-workspace { min-width: 0; }
.af-workspace h3 { margin: 18px 0 12px; }
.af-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 12px; margin: 12px 0 18px; }
.af-filters .af-wide, .af-editor .af-wide { grid-column: 1 / -1; }
.af-filters label, .af-editor label { display: grid; gap: 7px; min-width: 0; }
.af-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.af-actions button { min-height: 40px; }
.af-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 10px; margin: 16px 0; }
.af-metric { padding: 14px; border: 1px solid var(--line); background: #f7faf8; border-radius: 12px; min-width: 0; }
.af-metric-label { color: var(--muted); font-size: 13px; }
.af-metric-value { font-size: 22px; font-weight: 700; overflow-wrap: anywhere; margin-top: 5px; }
.af-table { width: 100%; border-collapse: collapse; }
.af-table th { white-space: nowrap; }
.af-table td { vertical-align: top; max-width: 310px; overflow-wrap: anywhere; }
.af-table td .af-actions { min-width: 130px; }
.af-table caption { text-align: left; padding: 4px 0 12px; color: var(--muted); }
.af-card { padding: 16px; margin: 12px 0; border: 1px solid var(--line); border-radius: 13px; background: white; overflow-wrap: anywhere; }
.af-card h3, .af-card h4 { margin: 0 0 9px; }
.af-card p { margin: 8px 0; white-space: pre-wrap; }
.af-card-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: start; }
.af-pills { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.af-pill { display: inline-flex; align-items: center; gap: 7px; background: #eaf3ed; border: 1px solid #d3e5da; border-radius: 8px; padding: 6px 9px; font-size: 13px; }
.af-pill button { border: 0; background: transparent; color: var(--brand-dark); padding: 0 4px; min-height: 26px; }
.af-status { color: var(--muted); font-size: 13px; min-height: 20px; }
.af-status.error { color: var(--danger); }
.af-notice { padding: 12px 14px; background: #fff7e5; border: 1px solid #eddbb4; border-radius: 10px; line-height: 1.5; margin: 12px 0; }
.af-picker { min-width: 0; }
.af-picker-search { display: flex; gap: 8px; align-items: end; }
.af-picker-search label { flex: 1; }
.af-picker-results { display: grid; gap: 6px; margin-top: 8px; max-height: 230px; overflow: auto; }
.af-picker-results button { text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; }
.af-picker-results button:hover { background: #f0f6f2; }
.af-picker-results button:focus-visible, .af-tabs button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.af-pagination { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; margin-top: 14px; }
.af-muted { color: var(--muted); font-size: 13px; }
.af-identifiers { margin-top: 8px; color: var(--muted); font-size: 12px; }
.af-identifiers summary { cursor: pointer; }
.af-identifiers code { overflow-wrap: anywhere; white-space: normal; }
.af-evidence { border-top: 1px solid var(--line); margin: 12px 0; padding-top: 10px; }
.af-evidence summary { cursor: pointer; font-weight: 600; }
.af-evidence dl { display: grid; grid-template-columns: minmax(130px, 1fr) 2fr; gap: 8px 14px; margin: 12px 0; }
.af-evidence dt { color: var(--muted); }
.af-evidence dd { margin: 0; overflow-wrap: anywhere; }
.af-evidence pre { max-height: 300px; overflow: auto; white-space: pre-wrap; font-size: 12px; padding: 12px; background: #f5f7f5; border-radius: 8px; }
.af-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.af-editor textarea { min-height: 96px; resize: vertical; }
.af-check { display: flex !important; flex-direction: row; align-items: center; gap: 9px; }
.af-check input { width: auto; }
.af-timeline { display: grid; gap: 10px; }
.af-timeline-entry { padding: 12px 14px; border-left: 3px solid #9bc1ac; background: #f8faf8; border-radius: 0 9px 9px 0; }
.af-timeline-entry p { white-space: pre-wrap; margin: 7px 0 0; }
.af-section-gap { margin-top: 24px; }
@media (max-width: 720px) {
  .af-filters, .af-editor { grid-template-columns: 1fr; }
  .af-tabs { gap: 6px; }
  .af-tabs button { flex: 1 1 auto; font-size: 13px; padding: 9px 11px; }
  .af-card { padding: 12px; }
  .af-evidence dl { grid-template-columns: 1fr; gap: 4px; }
  .af-evidence dd { margin-bottom: 8px; }
  .af-picker-search { flex-wrap: wrap; }
  .af-picker-search label { min-width: 180px; }
}
