.nf-text-preview-label {
    display: block;
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid var(--rule);
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nf-text-preview pre {
    margin: 0;
    padding: 0.75rem;
    max-height: 18rem;
    overflow: auto;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: var(--ink-2);
}

.nf-text-fields {
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    padding: 0.85rem 0.85rem 0.4rem;
    position: sticky;
    top: 1rem;
}

.nf-text-fields h4 {
    margin: 0 0 0.25rem;
}

.nf-text-fields > p {
    margin: 0 0 0.6rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.nf-text-fields .table-wrapper {
    max-height: 34rem;
    overflow: auto;
}

.nf-fields-table td {
    font-size: 0.8rem;
}

.nf-field-example {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    overflow-wrap: anywhere;
}

.nf-token {
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-sm);
    background: var(--omie-soft);
    color: var(--omie-ink);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
    cursor: pointer;
    white-space: nowrap;
}

.nf-token:hover {
    background: var(--sheet);
    border-color: var(--omie-action);
}

.nf-token:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

@media (max-width: 1100px) {
    .nf-text-editor {
        grid-template-columns: minmax(0, 1fr);
    }

    .nf-text-fields {
        position: static;
    }
}

