* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f5f8;
    color: #1d2939;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: #ffffff;
    border-bottom: 1px solid #dfe4ea;
}

header h1 {
    margin: 0 0 6px;
}

header p {
    margin: 0;
    color: #667085;
}

.status {
    padding: 8px 14px;
    border-radius: 20px;
    background: #eaecf0;
}

.status.connected {
    background: #dcfae6;
    color: #067647;
}

.status.disconnected {
    background: #fee4e2;
    color: #b42318;
}

main {
    padding: 24px 32px;
}

.summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.summary article {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
}

.summary span {
    display: block;
    margin-bottom: 8px;
    color: #667085;
}

.summary strong {
    font-size: 24px;
}

.content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 20px;
}

.event-list-panel,
.event-details-panel {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eaecf0;
}

th {
    color: #475467;
    font-size: 13px;
}

tbody tr {
    cursor: pointer;
}

tbody tr:hover {
    background: #f9fafb;
}

dl {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 8px;
}

dt {
    font-weight: bold;
}

dd {
    margin: 0;
    word-break: break-word;
}

pre {
    max-height: 460px;
    overflow: auto;
    padding: 14px;
    background: #101828;
    color: #f2f4f7;
    border-radius: 6px;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 900px) {
    .summary,
    .content {
        grid-template-columns: 1fr;
    }
}