/* ==========================================================================
   BENTO IDE — Remote Program to Device (the BENTO RPi reTerminal)
   --------------------------------------------------------------------------
   The popup is a Program to Device card (.upload-overlay / .upload-card in
   css/style.css, built by js/remote-program-ui.js); this file adds only what
   the pairing needs: the PIN, its countdown, the board's name, the button row.
   Design tokens from css/style.css only, no new colours. Thai reads at the
   IDE's own sizes or larger (body text 14 px, the PIN 32 px).
   ========================================================================== */

/* Remote Flash's entry points while the reTerminal is the IDE's board (it is updated by apt/OTA, never flashed) */
.rp-hidden {
    display: none !important;
}

.rp-card {
    width: min(440px, 92vw);
}

.rp-lead {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.rp-pin {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 4px 0 10px;
}
.rp-pin span {
    display: inline-block;
    min-width: 1.25em;
    padding: 6px 2px;
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-primary);
    background: var(--bg-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-variant-numeric: tabular-nums;
}
.rp-pin .rp-gap {
    display: inline-block;
    width: 10px;
}

.rp-count {
    font-family: var(--font-sans);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    color: var(--text-secondary);
}
.rp-count.rp-low {
    color: var(--color-danger-hover);
    font-weight: 600;
}

/* the board's name: the person's yes rests on it, so it is the largest line on the card */
.rp-board {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    overflow-wrap: anywhere;
    margin: 4px 0 6px;
}
.rp-meta {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.rp-line {
    font-size: 14px;
}
.rp-line.rp-sub {
    font-size: 13px;
}

.rp-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.rp-actions .upload-ok-btn {
    font-family: var(--font-sans);
    font-size: 14px;
}
