#mtr .mtr-options {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

#mtr .mtr-options > div {
    display: grid;
    gap: 8px;
    min-width: 0;
}

#mtr .mtr-note {
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

#mtr .mtr-overview {
    margin: 0 0 12px;
    font-family: monospace;
    overflow-wrap: anywhere;
}

#mtr .record-row {
    grid-template-columns: 110px minmax(0, 1fr);
}

#mtr .record-type {
    overflow-wrap: anywhere;
}

#mtr .mtr-value {
    max-width: 100%;
    padding: 2px 5px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    text-align: left;
    overflow-wrap: anywhere;
    cursor: copy;
}

#mtr .mtr-value:focus-visible {
    outline: 2px solid var(--accent);
}

#mtr details > summary {
    cursor: pointer;
}

#mtr .mtr-error {
    color: #ff8b8b;
}

#mtr button:disabled {
    opacity: 0.5;
    cursor: wait;
}

@media (max-width: 400px) {
    #mtr .mtr-options {
        grid-template-columns: minmax(0, 1fr);
    }
}

#mtr .mtr-table {
    width: 100%;
    table-layout: fixed;
    font: inherit;
    border-collapse: collapse;
}

#mtr .mtr-table th, #mtr .mtr-table td {
    padding: 6px 2px;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
    border-bottom: 1px solid var(--border);
}

#mtr .mtr-table th:nth-child(1) { width: calc(3ch + 4px); }
#mtr .mtr-table th:nth-child(3) { width: calc(5ch + 4px); }
#mtr .mtr-table th:nth-child(4), #mtr .mtr-table th:nth-child(5) { width: calc(5ch + 4px); }
#mtr .mtr-table .mtr-details td { padding-top: 0; }
#mtr .mtr-table details .record-row { grid-template-columns: 90px minmax(0, 1fr); }
