/* Картотека на състезател – форма с подпис (публично и в админ панела) */
.cnsa-athlete-wrap { max-width: 760px; }
.cnsa-athlete-form { position: relative; }
.cnsa-athlete-form .cnsa-field { margin: 0 0 12px; }
.cnsa-athlete-form label { display: block; font-weight: 600; font-size: .92em; margin-bottom: 4px; }
.cnsa-athlete-form input[type="text"],
.cnsa-athlete-form input[type="tel"],
.cnsa-athlete-form input[type="email"],
.cnsa-athlete-form input[type="date"],
.cnsa-athlete-form select {
	width: 100%; max-width: none; box-sizing: border-box; padding: 9px 11px; border: 1px solid #cfd4da;
	border-radius: 6px; font-size: 1em; background: #fff; color: inherit; min-height: 42px;
}
.cnsa-athlete-form input[readonly] { background: #f4f6f8; color: #4a5568; }
.cnsa-athlete-form input:focus, .cnsa-athlete-form select:focus { outline: none; border-color: #1f6feb; box-shadow: 0 0 0 3px rgba(31,111,235,.15); }
.cnsa-ath-box { border: 1px solid #dfe5ec; border-radius: 10px; padding: 14px 16px 6px; margin: 0 0 16px; background: #fff; min-width: 0; }
.cnsa-ath-box legend { font-weight: 700; padding: 0 6px; font-size: 1.02em; color: #12324f; }
.cnsa-ath-box[hidden], .cnsa-athlete-form [hidden] { display: none !important; }
.cnsa-grid-2, .cnsa-grid-3 { display: grid; gap: 0 14px; }
.cnsa-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cnsa-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 620px) { .cnsa-grid-2, .cnsa-grid-3 { grid-template-columns: 1fr; } }
.cnsa-hint-line { display: block; font-size: .84em; color: #6b7280; margin-top: 4px; }
.cnsa-hint-line.is-error { color: #b42318; }
.cnsa-hint-line.is-ok { color: #166534; }
.cnsa-label-like { font-weight: 600; font-size: .92em; margin: 0 0 6px; }
.cnsa-ath-disc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 0 0 14px; }
.cnsa-ath-disc label { font-weight: 400; display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid #e3e8ee; border-radius: 6px; cursor: pointer; margin: 0; }
.cnsa-ath-disc input { margin: 0; width: 18px; height: 18px; }
@media (max-width: 420px) { .cnsa-ath-disc { grid-template-columns: 1fr; } }
.cnsa-ath-type { margin: 2px 0 12px; padding: 10px 12px; border-radius: 8px; background: #eef4ff; border-left: 4px solid #1f6feb; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .95em; }
.cnsa-ath-type.cnsa-ath-child { background: #f5efff; border-color: #7c3aed; }
.cnsa-ath-type.cnsa-ath-teen { background: #fff6e8; border-color: #d97706; }
.cnsa-ath-type.cnsa-ath-adult { background: #ecfdf3; border-color: #16a34a; }
.cnsa-ath-decl { background: #f8fafc; border: 1px solid #e6ebf1; border-radius: 8px; padding: 10px 14px; font-size: .92em; line-height: 1.55; max-height: 260px; overflow: auto; margin-bottom: 12px; }
.cnsa-ath-decl p { margin: 0 0 8px; text-align: justify; hyphens: auto; }
@media (max-width: 620px) { .cnsa-ath-decl p { text-align: left; } }
.cnsa-athlete-form .cnsa-consent label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.cnsa-athlete-form .cnsa-consent input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; }
.cnsa-sig-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 6px 0 4px; }
.cnsa-sig { max-width: 560px; border: 1px dashed #9aa8b8; border-radius: 8px; padding: 8px; background: #fbfcfe; min-width: 0; }
.cnsa-sig.is-signed { border-style: solid; border-color: #16a34a; }
.cnsa-sig.is-missing { border-color: #b42318; background: #fff7f6; }
.cnsa-sig-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; font-size: .9em; margin-bottom: 6px; }
.cnsa-sig-clear { background: none; border: 1px solid #cfd4da; border-radius: 5px; padding: 3px 10px; font-size: .85em; cursor: pointer; color: #374151; }
.cnsa-sig canvas { display: block; width: 100%; height: 160px; background: #fff; border-radius: 6px; touch-action: none; cursor: crosshair; }
.cnsa-athlete-form .cnsa-alert div + div { margin-top: 4px; }
.cnsa-small { font-size: .85em; }
.cnsa-btn-light { background: #e8eef6 !important; color: #12324f !important; }
.cnsa-ath-actions .cnsa-btn { text-decoration: none; margin: 0 6px 6px 0; }
.cnsa-athlete-form .cnsa-btn[disabled] { opacity: .65; cursor: wait; }

/* Админ панел */
.cnsa-athletes .cnsa-ath-admin-form { max-width: 820px; margin-top: 14px; }
.cnsa-athletes .cnsa-ath-admin-form .cnsa-btn { background: #2271b1; color: #fff; border: 0; border-radius: 4px; padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer; }
.cnsa-athletes .cnsa-alert { padding: 10px 12px; border-radius: 6px; margin: 0 0 12px; }
.cnsa-athletes .cnsa-alert-err { background: #fdecec; border: 1px solid #f0b4b4; color: #7a1f1f; }
.cnsa-athletes .cnsa-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.cnsa-ath-summary { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 14px 0 8px; }
.cnsa-ath-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; background: #eef2f7; color: #334155; white-space: nowrap; }
.cnsa-ath-badge.cnsa-ath-child { background: #f1e8ff; color: #5b21b6; }
.cnsa-ath-badge.cnsa-ath-teen { background: #fff1d6; color: #92400e; }
.cnsa-ath-badge.cnsa-ath-adult { background: #dcfce7; color: #166534; }
.cnsa-athletes .cnsa-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; align-items: center; }
.cnsa-athletes .cnsa-muted { color: #6b7280; }
.cnsa-status { font-size: 12px; font-weight: 600; }
.cnsa-status-approved, .cnsa-status-sent { color: #166534; }
.cnsa-status-rejected { color: #b42318; }
.cnsa-status-submitted { color: #92400e; }
.cnsa-ath-detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 960px) { .cnsa-ath-detail { grid-template-columns: 1fr; } }
.cnsa-ath-card { background: #fff; border: 1px solid #dcdcde; border-radius: 6px; padding: 12px 16px; margin-bottom: 14px; }
.cnsa-ath-card h2 { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cnsa-ath-card h3 { margin: 4px 0 10px; }
.cnsa-ath-dl th { width: 160px; padding: 8px 10px 8px 0; }
.cnsa-ath-dl td { padding: 8px 10px; }
.cnsa-ath-sigs { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.cnsa-ath-sigs figure { margin: 0; border: 1px solid #e2e8f0; border-radius: 6px; padding: 6px; background: #fff; }
.cnsa-ath-sigs img { display: block; width: 270px; height: auto; }
.cnsa-ath-sigs figcaption { font-size: 12px; color: #6b7280; text-align: center; margin-top: 4px; }
.cnsa-danger { color: #b32d2e; }
