.event-page {
    display: grid;
    gap: 20px;
}

.event-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.event-page-head p {
    margin: 0 0 4px;
    color: #0f4386;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .12em;
}

.event-page-head h1 {
    margin: 0;
    color: #0f172a;
    font-size: 26px;
    font-weight: 850;
}

.event-actions,
.event-scan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.event-actions a,
.event-actions button,
.event-scan-actions button,
.event-wide-btn,
.event-table-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    border: 0;
    border-radius: 7px;
    background: #0f4386;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 0 14px;
    text-decoration: none;
}

.event-actions button,
.event-scan-actions button:nth-child(2),
.event-table-actions button {
    border: 1px solid #dbe3ef;
    background: #fff;
    color: #0f172a;
}

.event-actions button:disabled,
.event-scan-actions button:disabled,
.event-wide-btn:disabled,
.event-table-actions button:disabled {
    opacity: .62;
}

.event-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.event-stat-grid article,
.event-panel,
.event-toolbar,
.event-table-wrap,
.event-loading,
.event-error {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
}

.event-stat-grid article {
    padding: 18px;
}

.event-stat-grid span,
.event-detail-grid span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.event-stat-grid strong {
    display: block;
    color: #0f172a;
    font-size: 30px;
    font-weight: 900;
    margin-top: 8px;
}

.event-panel-row,
.event-scanner-grid,
.event-checkin-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.event-panel {
    padding: 18px;
}

.event-panel-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.event-panel-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 850;
}

.event-panel-head span,
.event-muted,
.event-table small,
.event-table td > span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.event-progress {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.event-progress div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f4386, #16a34a);
}

.event-inline-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
    color: #475569;
    font-size: 13px;
}

.event-copy-input,
.event-toolbar input,
.event-manual input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #dbe3ef;
    border-radius: 7px;
    outline: none;
    background: #fbfdff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    padding: 0 12px;
}

.event-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
}

.event-toolbar label {
    position: relative;
    flex: 1;
    margin: 0;
}

.event-toolbar label i {
    position: absolute;
    left: 12px;
    top: 50%;
    color: #64748b;
    transform: translateY(-50%);
}

.event-toolbar input {
    padding-left: 36px;
}

.event-table-wrap {
    overflow: auto;
}

.event-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.event-table th {
    color: #475569;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    text-align: left;
    text-transform: uppercase;
    padding: 13px 14px;
}

.event-table td {
    vertical-align: top;
    border-top: 1px solid #edf2f7;
    color: #0f172a;
    font-size: 13px;
    padding: 14px;
}

.event-table td > strong,
.event-table td > span,
.event-table td > small {
    display: block;
}

.event-member-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.event-member-pill,
.event-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 9px;
}

.event-member-pill small {
    color: inherit;
    font-size: 10px;
    opacity: .72;
}

.event-member-pill.checked,
.event-status.ok {
    background: #dcfce7;
    color: #166534;
}

.event-status.warn {
    background: #fef3c7;
    color: #92400e;
}

.event-status.danger {
    background: #fee2e2;
    color: #991b1b;
}

.event-status.idle {
    background: #e0f2fe;
    color: #075985;
}

.event-loading,
.event-error {
    padding: 18px;
}

.event-error {
    display: flex;
    align-items: center;
    gap: 10px;
    border-color: #fecaca;
    background: #fff1f2;
    color: #b91c1c;
    font-weight: 800;
}

.event-video-box {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 360px;
    overflow: hidden;
    border-radius: 8px;
    background: #0f172a;
}

.event-video-box video {
    width: 100%;
    min-height: 360px;
    object-fit: cover;
}

.event-video-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    color: #cbd5e1;
    background: #0f172a;
}

.event-video-placeholder i {
    color: #f7941e;
    font-size: 46px;
}

.event-hint {
    border: 1px solid #bae6fd;
    border-radius: 8px;
    background: #f0f9ff;
    color: #075985;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.5;
    margin: 14px 0;
    padding: 11px 12px;
}

.event-hint.blocked {
    border-color: #fecaca;
    background: #fff1f2;
    color: #991b1b;
}

.event-manual {
    display: grid;
    gap: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.event-wide-btn {
    width: 100%;
    margin-top: 14px;
}

.event-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.event-detail-grid div {
    border: 1px solid #edf2f7;
    border-radius: 8px;
    background: #f8fafc;
    padding: 12px;
}

.event-detail-grid strong {
    display: block;
    overflow-wrap: anywhere;
    color: #0f172a;
    font-size: 13px;
    margin-top: 5px;
}

.event-check-list {
    display: grid;
    gap: 10px;
}

.event-check-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    padding: 12px;
}

.event-check-row.done {
    background: #f8fafc;
}

.event-check-row input {
    width: 18px;
    height: 18px;
}

.event-check-row strong,
.event-check-row small {
    display: block;
}

.event-check-row small,
.event-check-row em {
    color: #64748b;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

@media (max-width: 960px) {
    .event-page-head,
    .event-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .event-stat-grid,
    .event-panel-row,
    .event-scanner-grid,
    .event-checkin-layout,
    .event-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .event-check-row {
        grid-template-columns: 22px minmax(0, 1fr);
    }

    .event-check-row em {
        grid-column: 2;
    }
}
