.txp-device-panel {
    --txp-ink: #18283e;
    --txp-muted: #43566f;
    --txp-line: #dce4ef;
    --txp-accent: #2854bd;
    box-sizing: border-box;
    width: 100%;
    max-width: 44rem;
    margin: 1.75rem 0;
    padding: clamp(1rem, 3.5vw, 1.75rem);
    border: 1px solid var(--txp-line);
    border-radius: 1rem;
    background: #fff;
    color: var(--txp-ink);
}

.txp-device-panel .txp-device-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 1rem;
}

.txp-device-panel .txp-device-header h3,
.txp-device-history h3 {
    margin: 0;
    font-size: 1.375rem;
    line-height: 1.35;
}

.txp-device-panel .txp-device-version {
    padding: .25rem .65rem;
    border-radius: .5rem;
    background: #eef3ff;
    color: #234b9d;
    font-size: .8rem;
    font-weight: 650;
}

.txp-device-panel .txp-device-list {
    display: grid;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.txp-device-panel .txp-device-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    padding: .8rem 1rem;
    border-radius: .65rem;
    background: #f3f6fb;
}

.txp-device-panel .txp-device-wait,
.txp-device-panel .txp-device-ready {
    font-size: .875rem;
    color: var(--txp-muted);
}

.txp-device-panel time {
    white-space: nowrap;
    font-weight: 650;
}

.txp-device-panel .txp-device-ready {
    color: #116045;
}

.txp-device-panel .txp-device-form {
    display: grid;
    gap: .8rem;
    margin: 1rem 0 0;
}

.txp-device-panel .txp-device-form label {
    display: grid;
    gap: .35rem;
    font-weight: 600;
}

.txp-device-panel .txp-device-form :is(select, input:not([type="hidden"])) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 2.75rem;
    padding: .55rem .75rem;
    border: 1px solid #9aacc4;
    border-radius: .55rem;
    background: #fff;
    color: var(--txp-ink);
    font: inherit;
}

.txp-device-panel .txp-device-form button {
    justify-self: start;
    min-height: 2.75rem;
    padding: .55rem 1rem;
    border: 0;
    border-radius: .55rem;
    background: var(--txp-accent);
    color: #fff;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.txp-device-panel .txp-device-form button:hover { background: #204398; }
.txp-device-panel .txp-device-form :focus-visible { outline: 2px solid var(--txp-accent); outline-offset: 2px; }

.txp-device-panel .txp-device-hint {
    margin: .75rem 0 0;
    color: var(--txp-muted);
    font-size: .875rem;
    line-height: 1.55;
}

.txp-device-panel .txp-device-form .txp-device-hint { margin: 0; }

.txp-device-panel .txp-device-notice {
    margin: 0 0 .8rem;
    padding: .8rem 1rem;
    border-radius: .65rem;
    background: #fdf3e2;
    color: #663c08;
}

.txp-device-panel .txp-device-success { background: #e9f7ef; color: #155a3e; }
.txp-device-history { margin: 1.75rem 0; }
.txp-device-history .txp-device-history-table { margin-top: .75rem; overflow-x: auto; }
.txp-device-history table { width: 100%; border-collapse: collapse; }
.txp-device-history th, .txp-device-history td {
    padding: .65rem .75rem;
    border-bottom: 1px solid #dce4ef;
    text-align: left;
    white-space: nowrap;
}
.txp-device-history th { background: #f3f6fb; color: #43566f; }

@media (max-width: 520px) {
    .txp-device-history th, .txp-device-history td {
        padding: .5rem .4rem;
        font-size: .825rem;
    }
}
