body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #0e1117;
    color: #e6edf3;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #161b22;
    border-bottom: 1px solid #30363d;
}

.header a {
    color: #58a6ff;
    text-decoration: none;
}

.container {
    padding: 24px;
}

.controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 24px;
}

.controls label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

input[type="number"] {
    background: #0e1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 8px;
    color: #e6edf3;
}

input[type="checkbox"] {
    transform: scale(1.2);
}

#methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 1200px) {
    #methods {
        grid-template-columns: 1fr;
    }
}

.method-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 12px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 320px;
    gap: 12px;
}

.tile {
    background: #0e1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tile h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #a5b1bd;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.chart-switch button {
    background: #161b22;
    border: 1px solid #30363d;
    color: #e6edf3;
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
}

.chart-switch button:hover {
    background: #1f232a;
}

.p-badge {
    background: #1f6feb22;
    color: #58a6ff;
    border: 1px solid #1f6feb66;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
}

.tile canvas {
    flex: 1;
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.span-2 {
    grid-column: span 2;
}

.stats ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 12px;
    font-size: 14px;
}

.badge {
    margin-top: 6px;
    background: #1f6feb22;
    color: #58a6ff;
    border: 1px solid #1f6feb66;
    border-radius: 999px;
    padding: 4px 8px;
    display: inline-block;
    font-size: 12px;
}

.table-tile .table-container {
    overflow: auto;
    height: 200px;
    border: 1px solid #30363d;
    border-radius: 6px;
}

.tile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tile-header .download-table {
    background: #238636;
    border: 1px solid #2ea043;
    color: #e6edf3;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
}

.tile-header .download-table:hover {
    background: #2ea043;
}

.table-tile table {
    width: 100%;
    border-collapse: collapse;
}

.table-tile thead {
    position: sticky;
    top: 0;
    background: #0e1117;
}

.table-tile th, .table-tile td {
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid #30363d;
    font-size: 14px;
}

.th-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sort-controls button {
    background: #161b22;
    border: 1px solid #30363d;
    color: #e6edf3;
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
}

.sort-controls button:hover {
    background: #1f232a;
}

.table-footer {
    margin-top: 8px;
    padding: 4px 8px;
    font-size: 14px;
    color: #a5b1bd;
}


