.tray-copy {
    display: grid;
    flex: 0 0 auto;
    gap: 2px;
}

.tray-copy strong {
    font-size: 13px;
}

.tray-copy span {
    color: var(--muted);
    font-size: 11px;
}

.compare-tray > .solid-button {
    flex: 0 0 auto;
}

.solid-button:disabled {
    border-color: var(--line-strong);
    background: var(--panel-soft);
    color: var(--faint);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.chip-button:disabled,
.chip-button:disabled:hover {
    border-color: var(--line);
    background: var(--panel-soft);
    color: var(--faint);
    cursor: not-allowed;
}

#compareContent {
    display: grid;
    min-width: 0;
    gap: 10px;
    overflow: hidden;
}

.comparison-modal {
    display: grid;
    width: min(1120px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 40px);
    gap: 14px;
    overflow: hidden;
}

.comparison-modal .eyebrow,
.comparison-modal h2,
.comparison-note {
    margin: 0;
}

.comparison-modal .eyebrow {
    margin-bottom: 4px;
}

.comparison-note {
    color: var(--muted);
    font-size: 13px;
}

.comparison-scroll {
    max-height: calc(100dvh - 150px);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.comparison-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: var(--panel);
    font-size: 13px;
    line-height: 1.55;
}

.comparison-table th,
.comparison-table td {
    min-width: 210px;
    padding: 12px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.comparison-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 112px;
    width: 112px;
    background: var(--panel-soft);
    color: var(--muted);
    font-family: "Geist Mono", "JetBrains Mono", Consolas, monospace;
    font-size: 11px;
}

.comparison-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--panel);
    color: var(--text);
    font-size: 14px;
}

.comparison-table thead th:first-child {
    z-index: 3;
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
    border-bottom: 0;
}

.comparison-table th:last-child,
.comparison-table td:last-child {
    border-right: 0;
}

.comparison-table a {
    font-weight: 600;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

@media (max-width: 520px) {
    .compare-tray .tray-items {
        max-height: 86px;
        overflow-y: auto;
    }

    .compare-tray > .solid-button {
        width: 100%;
    }

    .comparison-modal {
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
        padding: 14px;
    }

    .comparison-scroll {
        max-height: calc(100dvh - 130px);
    }
}
