/* High-End Reusable PDF-Lab Font Library Selector Widget */
.fs-widget {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 12px;
    background: #090d13;
    padding: 12px;
}

.fs-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.fs-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
}

.fs-submit-link {
    font-size: 0.76rem;
    font-weight: 600;
    color: #60a5fa;
    text-decoration: none;
}

.fs-submit-link:hover {
    text-decoration: underline;
    color: #93c5fd;
}

.fs-search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
    margin-bottom: 8px;
}

.fs-widget input[type="search"],
.fs-widget select {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: #111827;
    color: #f8fafc;
    font: inherit;
    font-size: 0.84rem;
    color-scheme: dark;
}

.fs-widget input[type="search"]:focus,
.fs-widget select:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.fs-widget select option {
    background: #111827;
    color: #f8fafc;
}

.fs-cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.fs-cat-pill {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #111827;
    color: #94a3b8;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.fs-cat-pill:hover {
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.4);
}

.fs-cat-pill.is-active {
    background: #d32f2f;
    border-color: #d32f2f;
    color: #ffffff;
}

.fs-status {
    font-size: 0.76rem;
    color: #94a3b8;
    margin: 4px 0 8px;
    min-height: 1.2em;
}

.fs-status.is-error {
    color: #fca5a5;
}

.fs-list {
    max-height: 225px;
    overflow-y: auto;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 9px;
    background: #0d131f;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}

.fs-option {
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 9px 11px;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    background: transparent;
    color: #e6edf3;
    cursor: pointer;
    font: inherit;
    transition: background 0.12s ease;
}

.fs-option:last-child {
    border-bottom: 0;
}

.fs-option:hover {
    background: rgba(255, 255, 255, 0.045);
}

.fs-option.is-selected {
    background: rgba(225, 29, 72, 0.16);
    box-shadow: inset 3px 0 0 #ef4444;
}

.fs-opt-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #94a3b8;
}

.fs-opt-name {
    color: #f8fafc;
    font-weight: 700;
}

.fs-opt-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #cbd5e1;
}

.fs-opt-badge-curated {
    border-color: rgba(59, 130, 246, 0.55);
    background: rgba(37, 99, 235, 0.16);
    color: #93c5fd;
}

.fs-opt-badge-community {
    border-color: rgba(34, 197, 94, 0.55);
    background: rgba(22, 163, 74, 0.16);
    color: #86efac;
}

.fs-opt-preview {
    font-size: 1.06rem;
    line-height: 1.3;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fs-weight-row {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fs-weight-row label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #cbd5e1;
}

.fs-attribution {
    margin-top: 8px;
    font-size: 0.74rem;
    color: #94a3b8;
    line-height: 1.4;
}
