﻿.rs-sentence-library-palette {
    width: var(--rs-palette-width, min(670px, calc(100vw - 24px)));
    height: var(--rs-palette-height, min(420px, calc(100vh - 24px)));
    font-family: inherit;
}

.rs-sentence-library-palette *,
.rs-sentence-library-palette *::before,
.rs-sentence-library-palette *::after {
    box-sizing: border-box;
}

.rs-sentence-library-palette__preview {
    min-height: 0;
    flex: 0 1 auto;
    max-height: min(122px, 25%);
    padding: 13px 14px;
    overflow: auto;
    color: var(--rs-text-muted);
    white-space: pre-wrap;
    background: var(--rs-surface-subtle);
    border-bottom: 1px solid var(--rs-border-subtle);
    font-size: 13px;
    line-height: 1.5;
}

.rs-sentence-library-palette__preview.is-empty {
    color: var(--rs-text-muted);
    font-style: italic;
}

.rs-sentence-library-palette__clear {
    border-radius: 50%;
}

.rs-sentence-library-palette__clear:disabled {
    visibility: hidden;
}

.rs-sentence-library-palette__item {
    gap: 8px;
    align-items: flex-start;
    padding: 7px 9px;
}

.rs-sentence-library-palette__plus {
    display: grid;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    color: var(--rs-accent-ink);
    background: var(--rs-accent-chip);
    border-radius: 5px;
    font-weight: 800;
    place-items: center;
}

.rs-sentence-library-palette__content {
    min-width: 0;
    line-height: 1.35;
    white-space: pre-wrap;
}

.rs-sentence-library-palette__content mark {
    padding: 0 1px;
    color: inherit;
    background: var(--rs-search-hit);
    border-radius: 2px;
}

.rs-sentence-library-palette__footer {
    justify-content: flex-end;
}
