/* Minimal UI */
.ap-form { max-width: 720px; padding: 12px; background:#f8f9fa; border:1px solid #e5e7eb; border-radius:12px; }
.ap-form .ap-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap:12px; }
.ap-form label { font-size:14px; color:#374151; display:block; }
.ap-form input { width:100%; padding:10px 12px; border:1px solid #d1d5db; border-radius:10px; }
.ap-form button { margin-top:12px; padding:10px 16px; border-radius:10px; border:1px solid #111827; background:#111827; color:#fff; cursor:pointer; }
.ap-success { color:#047857; } .ap-error { color:#b91c1c; }
.ap-photo-thumb{max-width:160px;height:auto;border-radius:10px;border:1px solid #e5e7eb;margin:6px 0;}
.ap-dir { display:grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap:12px; margin-top:8px;}
.ap-card { display:flex; gap:12px; padding:10px; border:1px solid #e5e7eb; border-radius:12px; align-items:center; background:#fff; }
.ap-thumb { width:64px; height:64px; object-fit:cover; border-radius:8px; }
.ap-aid { color:#6b7280; font-size:12px; }
.ap-table { width:100%; border-collapse: collapse; margin-top:8px;}
.ap-table th, .ap-table td { border:1px solid #e5e7eb; padding:8px; font-size:14px; }
.ap-table th { background:#f3f4f6; text-align:left; }

/* Athlete results rows layout */
.ap-res-rows { border:1px solid #e5e7eb; border-radius:12px; background:#fff; margin-top:8px; }
.ap-res-item { padding:12px; border-top:1px solid #e5e7eb; }
.ap-res-item:first-child { border-top:none; }
.ap-res-line { margin:3px 0; }
.ap-res-line .ap-res-label { color:#6b7280; font-size:13px; display:inline-block; width:140px; }
.ap-res-line .ap-res-val { font-size:14px; }
.ap-res-event strong { font-weight:700; }
.ap-pill { display:inline-block; padding:2px 8px; border:1px solid #e5e7eb; border-radius:999px; font-size:12px; margin-right:6px; margin-top:6px; color:#374151; background:#f9fafb; }
.ap-participants { margin-top:6px; }
