/* ============================================================
 * styles-append-v0.16.13.css
 *
 * Slip Analyzer JSON export row (Copy / Save buttons).
 * Inserted by renderJsonExportButtons() above the slip-summary block
 * in slip-analyzer.js v0.16.13. Layout: label + two buttons + status
 * message in a horizontal flex row.
 *
 * Aesthetic: matches Editorial Terminal dark palette + Inter Tight /
 * JetBrains Mono families already in use across the staging chassis.
 * Borrows the existing sa-chip / sa-bottom-line treatments for
 * visual continuity without introducing new accent colors.
 * ============================================================ */

.sa-json-export-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px 0;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
    flex-wrap: wrap;
}

.sa-json-export-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #88857e;
    margin-right: 4px;
}

.sa-json-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    color: #f0eee6;
    font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    padding: 7px 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, transform 0.05s ease;
}

.sa-json-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.sa-json-btn:active {
    transform: translateY(1px);
}

.sa-json-btn-primary {
    background: rgba(93, 224, 172, 0.10);  /* HIT_TOP mint, very low alpha */
    border-color: rgba(93, 224, 172, 0.28);
    color: #5DE0AC;
}

.sa-json-btn-primary:hover {
    background: rgba(93, 224, 172, 0.16);
    border-color: rgba(93, 224, 172, 0.40);
}

.sa-json-btn-secondary {
    /* Default treatment — neutral chrome */
}

.sa-json-export-status {
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
    font-size: 11px;
    color: #a8a6a0;
    margin-left: auto;
    min-height: 14px;
    transition: color 0.12s ease;
}

.sa-json-export-status[data-kind="ok"] {
    color: #5DE0AC;
}

.sa-json-export-status[data-kind="error"] {
    color: #FF6B8E;
}

/* Narrow viewport — stack the row, push status to its own line */
@media (max-width: 600px) {
    .sa-json-export-row {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .sa-json-export-status {
        flex-basis: 100%;
        margin-left: 0;
        text-align: left;
        margin-top: 2px;
    }
}
