.remote-banner {
    --remote-tone: #b9770f;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    padding: 11px 13px;
    border: 1px solid color-mix(in srgb, var(--remote-tone) 45%, transparent);
    border-radius: 14px;
    background: color-mix(in srgb, var(--remote-tone) 9%, var(--theme-glass, rgba(255, 255, 255, .92)));
    box-shadow: 0 0 12px color-mix(in srgb, var(--remote-tone) 14%, transparent);
}
.remote-banner.is-on {
    --remote-tone: #16855d;
}
.remote-banner.has-review {
    --remote-tone: #c8434f;
}
.remote-banner-copy {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.remote-banner-copy > i {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--remote-tone);
    color: #fff;
    font-size: 20px;
}
.remote-banner-copy b {
    display: block;
    color: var(--text1);
    font-size: 13.5px;
}
.remote-banner-copy small {
    color: var(--text2);
    font-size: 12px;
}
.remote-banner-btn,
.remote-act {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 7px 13px;
    border: 0;
    border-radius: 12px;
    background: #566ee2;
    color: #fff;
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}
.remote-act.is-strong {
    background: #16855d;
}
.remote-act.is-quiet {
    background: #5d6b8f;
}
.remote-act:disabled {
    opacity: .6;
    cursor: wait;
}
.remote-code-modal,
.remote-list-modal {
    width: min(620px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    overflow: auto;
}
.remote-code-modal > header,
.remote-list-modal > header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.remote-code-modal > header > span,
.remote-list-modal > header > span {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #237ca7;
    color: #fff;
    font-size: 22px;
}
.remote-code-modal h3,
.remote-list-modal h3 {
    margin: 0;
    color: var(--text1);
    font-size: 16px;
}
.remote-code-modal header p,
.remote-list-modal header p {
    margin: 3px 0 0;
    color: var(--text2);
    font-size: 12px;
}
.remote-code-input {
    width: 100%;
    margin-bottom: 14px;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel-2);
    color: var(--text1);
    font: inherit;
    letter-spacing: 3px;
}
.overlay .modal .modal-actions.remote-code-actions {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
}
.remote-list {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}
.remote-empty {
    margin: 0;
    padding: 18px;
    color: var(--text2);
    text-align: center;
}
.remote-entry {
    --remote-tone: #b9770f;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--panel-2);
}
.remote-entry.is-done {
    --remote-tone: #16855d;
}
.remote-entry.is-bad {
    --remote-tone: #c8434f;
    border-color: color-mix(in srgb, #c8434f 40%, transparent);
}
.remote-entry > i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: color-mix(in srgb, var(--remote-tone) 15%, transparent);
    color: var(--remote-tone);
    font-size: 19px;
}
.remote-entry b {
    display: block;
    overflow-wrap: anywhere;
    color: var(--text1);
    font-size: 13px;
}
.remote-entry small {
    color: var(--text2);
    font-size: 11.5px;
}
.remote-badge {
    padding: 1px 9px;
    border-radius: 99px;
    background: color-mix(in srgb, var(--remote-tone) 15%, transparent);
    color: var(--remote-tone);
    font-size: 11.5px;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}
.remote-reason {
    grid-column: 1 / -1;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
    color: #c8434f;
    font-size: 12.5px;
}
.remote-acts {
    display: flex;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    gap: 8px;
}
.remote-act {
    flex: 1 1 130px;
}
@media (max-width: 620px) {
    .remote-banner-btn {
        width: 100%;
    }
    .remote-entry {
        grid-template-columns: 38px minmax(0, 1fr);
    }
    .remote-badge {
        grid-column: 2;
        justify-self: start;
    }
    .remote-act {
        flex-basis: 100%;
    }
}
