.quad-layout {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
    padding: 0.5rem;
}

.history-table-container {
    flex: 1;
    min-width: 260px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    color: #99aacc;
}

.history-table th {
    text-align: left;
    padding: 0.5rem;
    border-bottom: 1px solid #333;
    color: #e4e4e7;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.65rem;
}

.history-table td {
    padding: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.history-table tr:first-child td {
    color: #fff;
    font-weight: bold;
}

.quad-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.7rem;
}

.qp-1 {
    color: #3fb950;
    background: rgba(63, 185, 80, 0.1);
}

.qp-2 {
    color: #d29922;
    background: rgba(210, 153, 34, 0.1);
}

.qp-3 {
    color: #f85149;
    background: rgba(248, 81, 73, 0.1);
}

.qp-4 {
    color: #388bfd;
    background: rgba(56, 139, 253, 0.1);
}

.val-cell {
    text-align: right;
}

.val-up {
    color: #3fb950;
}

.val-dn {
    color: #f85149;
}

@media (max-width: 850px) {
    .quad-layout {
        flex-direction: column;
        align-items: center;
    }

    .history-table-container {
        width: 100%;
        margin-top: 1rem;
    }
}
