* { box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #f4f6f9; margin: 0; padding: 20px; color: #333; }
.container { max-width: 1400px; margin: 0 auto; background: #fff; padding: 25px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; text-decoration: none; color: #1e293b; }
.brand img { display: block; height: 48px; width: auto; max-width: min(240px, 46vw); }
.brand span { font-size: 13px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.3; }
.header-bar { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #e2e8f0; padding-bottom: 15px; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
h1 { margin: 0; color: #1e293b; font-size: 24px; }
.admin-status { display: flex; align-items: center; gap: 12px; }
.badge-lock { padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.badge-locked { background-color: #fee2e2; color: #991b1b; }
.badge-unlocked { background-color: #dcfce7; color: #166534; }
.btn-lock { background-color: #475569; color: white; border: none; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 13px; }
.btn-lock:hover { background-color: #334155; }
.panel-section { background: #f8fafc; border: 1px solid #e2e8f0; padding: 15px; border-radius: 8px; margin-bottom: 20px; display: flex; gap: 15px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
body.is-locked #adminPanel { display: none !important; }
body.is-unlocked #adminPanel { display: flex !important; }
.controls-group { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.controls-group label { font-size: 13px; font-weight: 600; color: #475569; }
input[type="text"], select { padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; outline: none; background: white; }
input[type="text"] { width: 220px; }
button.btn-add { padding: 10px 18px; background-color: #2563eb; color: white; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 14px; }
button.btn-add:hover { background-color: #1d4ed8; }
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 1000px; }
th, td { border: 1px solid #cbd5e1; text-align: center; padding: 8px 4px; }
th { background-color: #f1f5f9; color: #475569; font-size: 13px; }
th.puan-header { background-color: #e2e8f0; color: #1e293b; font-weight: 700; font-size: 14px; }
td.athlete-name { text-align: left; padding-left: 12px; font-weight: 700; font-size: 15px; width: 260px; }
.name-male { color: #2563eb !important; }
.name-female { color: #db2777 !important; }
.round-badge { display: inline-block; font-size: 11px; background-color: #e2e8f0; color: #475569; padding: 2px 6px; border-radius: 4px; margin-left: 6px; font-weight: 600; }
.shot-cell { width: 55px; height: 48px; font-size: 20px; font-weight: bold; user-select: none; transition: all 0.2s ease; position: relative; }
.shot-cell.cell-disabled { background-color: #f8fafc; color: #cbd5e1; cursor: not-allowed !important; opacity: 0.6; }
body.is-unlocked .shot-cell.cell-active { border: 2px solid #2563eb !important; background-color: #eff6ff !important; cursor: pointer !important; box-shadow: inset 0 0 6px rgba(37,99,235,0.3); }
body.is-unlocked .shot-cell.cell-filled { cursor: pointer; }
.status-check { background-color: #dcfce7 !important; color: #15803d !important; opacity: 1 !important; border: 1px solid #cbd5e1 !important; }
.status-cross { background-color: #fee2e2 !important; color: #b91c1c !important; opacity: 1 !important; border: 1px solid #cbd5e1 !important; }
.total-cell { font-size: 18px; font-weight: 700; color: #1e3a8a; background-color: #eff6ff; width: 80px; }
.action-cell { width: 60px; }
.btn-delete { background-color: #ef4444; color: white; border: none; border-radius: 4px; padding: 6px 10px; font-size: 12px; font-weight: 600; }
body.is-locked .action-col, body.is-locked .action-cell { display: none; }
body.is-unlocked .action-col, body.is-unlocked .action-cell { display: table-cell; }
body.is-unlocked .btn-delete { cursor: pointer; }
body.is-unlocked .btn-delete:hover { background-color: #dc2626; }
.legend { margin-top: 20px; font-size: 13px; color: #64748b; display: flex; gap: 20px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.active-indicator { display: inline-block; width: 10px; height: 10px; background-color: #2563eb; border-radius: 50%; border: 2px solid #eff6ff; }
.error-banner { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; border-radius: 8px; padding: 10px 12px; margin-bottom: 16px; }
.empty-row td { padding: 28px; color: #64748b; }
