html, body {
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
}

.mud-typography-nexa {
    font-family: "Nexa", "Avenir Next", "Avenir", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
}

.nx-loader-horizontal,
.nx-about-horizontal {
    width: min(100%, 22rem);
    height: auto;
    display: block;
}

.nx-loader-card {
    width: min(100%, 28rem);
}

.nx-about-page {
    display: flex;
    justify-content: center;
}

.nx-about-card {
    width: min(100%, 36rem);
}

.nx-about-divider {
    width: 100%;
}

.nx-about-powered {
    width: 100%;
    text-align: center;
}

/* ───────────────────────── Key Value tab shell ───────────────────────── */

.nx-kv-page {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

/* Responsive split mirrors the Explorer page (see spec/07 §"Page layout"):
   * < md (≤ 960 px): list stacks above the detail panel.
   * ≥ md           : list on the left, detail panel sticky on the right. */
.nx-kv-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.nx-kv-list-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
}

.nx-kv-detail {
    flex: 0 0 auto;
    min-width: 0;
}

/* Vertically centre the "Select a key…" / "No chain loaded" content so the empty
   detail panel doesn't anchor its placeholder to the top of a tall flex line. */
.nx-kv-detail-empty {
    border: 1px dashed var(--mud-palette-lines-default);
    border-radius: 6px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 8rem;
}

@media (min-width: 960px) {
    .nx-kv-content {
        flex-direction: row;
        align-items: flex-start;
    }

    .nx-kv-detail {
        flex: 0 0 clamp(360px, 38vw, 560px);
        position: sticky;
        top: 12px;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
    }
}

/* Search bar pinned above the list/detail split. CSS grid keeps the input, sort
   selector, help icon, and total caption on a single predictable row — flex with
   `Wrap` was letting MudBlazor's Outlined textfield stretch its bordered box
   vertically when the icon adornment and Clearable affordance fought for space. */
.nx-kv-searchbar {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nx-kv-searchbar-grid {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(180px, 240px) auto auto;
    column-gap: 12px;
    align-items: center;
}

.nx-kv-search-input,
.nx-kv-sort-select {
    margin: 0;
}

.nx-kv-total {
    white-space: nowrap;
    text-align: right;
}

.nx-kv-help-icon {
    cursor: help;
}

.nx-kv-filter-caption {
    padding-left: 4px;
}

@media (max-width: 720px) {
    .nx-kv-searchbar-grid {
        grid-template-columns: 1fr auto;
        row-gap: 8px;
    }

    /* Stack: input spans full width, sort + help + total share the second row. */
    .nx-kv-search-input {
        grid-column: 1 / -1;
    }

    .nx-kv-sort-select {
        grid-column: 1 / span 1;
    }

    .nx-kv-help-icon {
        grid-column: 2 / span 1;
        justify-self: end;
    }

    .nx-kv-total {
        grid-column: 1 / -1;
        text-align: right;
    }
}

/* List: same table-driven density as the block list — tight rows so a 1,000-key
   effective state stays scannable without zooming out. */
.nx-kv-list {
    display: flex;
    flex-direction: column;
    min-height: 12rem;
    height: 100%;
}

.nx-kv-table-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-top: 1px solid var(--mud-palette-lines-default);
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.nx-kv-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.nx-kv-table th,
.nx-kv-table td {
    padding: 2px 10px;
    text-align: left;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
    line-height: 28px;
}

.nx-kv-table-header {
    background: var(--mud-palette-surface);
}

.nx-kv-table-header th {
    position: sticky;
    top: 0;
    z-index: 1;
    font-weight: 600;
    text-transform: none;
}

.nx-kv-scroller {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.nx-kv-col-key {
    width: auto;
}

.nx-kv-col-kind {
    width: 80px;
}

.nx-kv-col-bytes {
    width: 88px;
}

.nx-kv-col-h {
    width: 80px;
}

.nx-kv-row {
    height: 32px;
    cursor: pointer;
    user-select: none;
}

    .nx-kv-row:hover {
        background: var(--mud-palette-action-default-hover);
    }

    .nx-kv-row:focus-visible {
        outline: 2px solid var(--mud-palette-primary);
        outline-offset: -2px;
    }

.nx-kv-row-selected {
    background: var(--mud-palette-action-disabled-background);
    box-shadow: inset 3px 0 0 0 var(--mud-palette-primary);
}

    .nx-kv-row-selected:hover {
        background: var(--mud-palette-action-disabled-background);
    }

.nx-kv-row-placeholder {
    pointer-events: none;
}

    .nx-kv-row-placeholder td {
        padding: 4px 10px;
    }

.nx-kv-detail-card {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    padding: 10px 12px;
}

@media (prefers-color-scheme: dark) {
    .nx-kv-detail-card {
        background: rgba(255, 255, 255, 0.04);
    }
}

/* ─────────────────── Key Value · revisions list (virtualized) ────────────────────
   Mirrors `.nx-block-table*` so a key with thousands of revisions stays
   responsive. Bounded scroller is the Virtualize parent, not the outer detail
   panel — predictable spacer math regardless of the responsive split.            */

.nx-kv-revisions-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-top: 1px solid var(--mud-palette-lines-default);
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.nx-kv-revisions-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.nx-kv-revisions-table th,
.nx-kv-revisions-table td {
    padding: 2px 10px;
    text-align: left;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
    line-height: 28px;
}

.nx-kv-revisions-header {
    background: var(--mud-palette-surface);
}

.nx-kv-revisions-header th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--mud-palette-text-secondary);
    border-bottom: 1px solid var(--mud-palette-lines-default);
    padding-top: 6px;
    padding-bottom: 6px;
    line-height: 1.2;
}

.nx-kv-rev-col-h { width: 64px; }
.nx-kv-rev-col-ix { width: 56px; }
.nx-kv-rev-col-kind { width: 110px; }
.nx-kv-rev-col-bytes { width: 90px; }
.nx-kv-rev-col-digest { width: auto; }

.nx-kv-revisions-scroller {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 28rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.nx-kv-rev-row {
    height: 32px;
    cursor: pointer;
    transition: background 80ms ease;
}

    .nx-kv-rev-row:hover {
        background: var(--mud-palette-action-default-hover);
    }

    .nx-kv-rev-row:focus-visible {
        outline: 2px solid var(--mud-palette-primary);
        outline-offset: -2px;
    }

.nx-kv-rev-row-placeholder {
    pointer-events: none;
}

    .nx-kv-rev-row-placeholder td {
        padding: 4px 10px;
    }

.nx-loader-drop-root {
    min-height: 100%;
}

.nx-probe-root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.nx-probe-bar {
    flex: 0 0 auto;
}

#blazor-error-ui {
    color-scheme: light;
    background: rgba(30, 30, 45, 0.95);
    color: #f5f5f7;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    box-sizing: border-box;
    display: none;
    left: 50%;
    right: auto;
    bottom: 1rem;
    width: min(52rem, calc(100vw - 2rem));
    transform: translateX(-50%);
    padding: 0.85rem 4rem 0.85rem 1rem;
    position: fixed;
    z-index: 2000;
}

    #blazor-error-ui .reload {
        color: #594AE2;
        font-weight: 600;
        margin-left: 0.5rem;
        text-decoration: none;
    }

        #blazor-error-ui .reload:hover {
            text-decoration: underline;
        }

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 1rem;
        top: 0.55rem;
        width: 1.75rem;
        height: 1.75rem;
        line-height: 1.65rem;
        text-align: center;
        border-radius: 999px;
        color: #d7d7df;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

        #blazor-error-ui .dismiss:hover {
            background: rgba(255, 255, 255, 0.12);
        }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #E6392C;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.nx-mono {
    font-family: "JetBrains Mono", "Fira Code", Menlo, Consolas, "Courier New", monospace;
    font-variant-numeric: tabular-nums;
}

.text-right {
    text-align: right;
}

/* ───────────────────────── Explorer page shell ───────────────────────── */

.nx-explorer-root {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.nx-explorer-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.nx-explorer-blocks {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
}

.nx-explorer-detail {
    flex: 0 0 auto;
    min-width: 0;
}

.nx-explorer-detail-empty {
    border: 1px dashed var(--mud-palette-lines-default);
    border-radius: 6px;
    background: transparent;
}

/* Side-by-side layout at ≥ md: blocks on the left, detail pinned right and made sticky
   so it remains in view while the user scrolls the (potentially huge) block list. */
@media (min-width: 960px) {
    .nx-explorer-content {
        flex-direction: row;
        align-items: flex-start;
    }

    .nx-explorer-detail {
        flex: 0 0 clamp(360px, 38vw, 560px);
        position: sticky;
        top: 12px;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
    }
}

/* ───────────────────────── Chain info card ───────────────────────── */

.nx-chain-card-content {
    padding: 10px 14px;
}

/* Auto-flow grid: each direct child is a (label, value) pair. The grid breaks fields
   into 1 / 2 / 3 columns based on viewport width (320 px minimum column, so 1024 px
   fits three columns comfortably and 640 px fits two). */
.nx-chain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    column-gap: 24px;
    row-gap: 4px;
    align-items: center;
}

.nx-chain-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    min-width: 0;
}

.nx-chain-row-progress {
    /* Progress bar spans the full value column without the label */
    grid-template-columns: 64px minmax(0, 1fr);
}

.nx-chain-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
}

.nx-chain-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    font-size: 0.875rem;
}

    .nx-chain-value .text-truncate {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
        flex: 1 1 auto;
    }

.nx-chain-id {
    max-width: 100%;
}

.nx-chain-sep {
    color: var(--mud-palette-text-disabled);
    margin: 0 2px;
}

.nx-chain-copy.mud-icon-button {
    padding: 2px;
    min-width: 0;
    width: 22px;
    height: 22px;
    margin-left: auto;
}

/* ───────────────────────── Block list (virtualized) ───────────────────────── */

.nx-block-list {
    display: flex;
    flex-direction: column;
    min-height: 20rem;
    height: 100%;
}

.nx-block-table-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-top: 1px solid var(--mud-palette-lines-default);
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.nx-block-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.nx-block-table th,
.nx-block-table td {
    padding: 2px 10px;
    text-align: left;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
    line-height: 28px;
}

.nx-block-table-header {
    background: var(--mud-palette-surface);
}

.nx-block-table-header th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--mud-palette-text-secondary);
    border-bottom: 1px solid var(--mud-palette-lines-default);
    padding-top: 6px;
    padding-bottom: 6px;
    line-height: 1.2;
}

/* Column widths: height + 4-byte digest + date + tx + 4-byte sig. The "extra" width goes
   to the date column on wide screens; on narrow it shrinks first because the digest /
   signature widths are pinned to fit the 8-char monospace lead exactly. */
.nx-col-height { width: 64px; }
.nx-col-digest { width: 110px; }
.nx-col-date { width: 190px; }
.nx-col-tx { width: 56px; }
.nx-col-sig { width: 110px; }

.nx-block-scroller {
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    overflow-x: hidden;
}

.nx-block-row {
    height: 32px;
    cursor: pointer;
    transition: background 80ms ease;
}

    .nx-block-row:hover {
        background: var(--mud-palette-action-default-hover);
    }

    .nx-block-row:focus-visible {
        outline: 2px solid var(--mud-palette-primary);
        outline-offset: -2px;
    }

.nx-block-row-selected {
    background: var(--mud-palette-action-disabled-background);
    box-shadow: inset 3px 0 0 0 var(--mud-palette-primary);
}

    .nx-block-row-selected:hover {
        background: var(--mud-palette-action-disabled-background);
    }

.nx-cell-height {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.nx-block-row-placeholder {
    pointer-events: none;
}

    .nx-block-row-placeholder td {
        padding: 4px 10px;
    }

.nx-block-detail {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    padding: 10px 12px;
}

@media (prefers-color-scheme: dark) {
    .nx-block-detail {
        background: rgba(255, 255, 255, 0.04);
    }
}

/* ───────────────────────── Detail meta-strip ───────────────────────── */

/* Single-row, wrap-on-narrow strip of label/value pairs. Replaces the old per-field
   `MudStack Row` layout which produced an uneven baseline because every child stack
   was its own flex container. */
.nx-meta-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 16px;
    margin-bottom: 8px;
}

.nx-meta-item {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1.4;
}

.nx-meta-item-strong {
    font-weight: 600;
}

.nx-meta-item-faint {
    color: var(--mud-palette-text-secondary);
}

.nx-meta-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mud-palette-text-secondary);
}

.nx-meta-value {
    color: var(--mud-palette-text-primary);
}

/* Button styled to look like the digest span but with link-affordance hover state. Used
   for the parent-digest pill in the block detail strip. Resets default <button> styles
   so the click target sits at the digest text — not at a wider invisible padding box. */
.nx-meta-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: var(--mud-palette-primary);
    font: inherit;
    line-height: inherit;
    text-decoration: underline dotted transparent;
    text-underline-offset: 2px;
    transition: text-decoration-color 80ms ease, color 80ms ease;
}

    .nx-meta-link:hover {
        text-decoration-color: currentColor;
    }

    .nx-meta-link:focus-visible {
        outline: 2px solid var(--mud-palette-primary);
        outline-offset: 2px;
        border-radius: 2px;
    }

.nx-meta-copy.mud-icon-button {
    padding: 2px;
    min-width: 0;
    width: 20px;
    height: 20px;
}

.nx-meta-chip {
    align-self: center;
}

/* ───────────────────────── Transaction list ───────────────────────── */

.nx-tx-row {
    border-radius: 4px;
}

.nx-tx-row-tombstone {
    text-decoration: line-through;
    opacity: 0.7;
}

.nx-tx-kind-icon {
    flex: 0 0 auto;
}

.nx-tx-list .mud-list-item {
    padding-top: 2px;
    padding-bottom: 2px;
}

.nx-tx-grid .mud-table-container {
    max-height: 50vh;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ───────────────────────── Transaction Viewer (Phase 10) ───────────────────────── */

.nx-viewer-content {
    min-height: 12rem;
}

.nx-viewer-meta {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
}

.nx-viewer-meta-grid {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 4px;
    align-items: center;
}

.nx-viewer-tombstone,
.nx-viewer-oversize {
    margin-top: 4px;
}

.nx-viewer-tabs {
    /* Bound the tab panel so a 64 KiB hex view + the dialog chrome don't push the
       window past viewport. The pre's overflow-y handles the rest. */
    max-height: clamp(280px, 60vh, 720px);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

    .nx-viewer-tabs .mud-tabs-panels {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    .nx-viewer-tabs .mud-tab-panel {
        height: 100%;
        overflow: auto;
    }

.nx-text-preview-pre,
.nx-hex-preview-pre {
    margin: 0;
    font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Mono', 'Consolas',
                 'Menlo', 'Monaco', monospace;
    font-size: 0.78rem;
    line-height: 1.45;
    white-space: pre;
    overflow: auto;
    color: var(--mud-palette-text-primary);
}

.nx-text-preview-pre {
    white-space: pre-wrap;
    word-break: break-word;
}

.nx-iframe-preview {
    width: 100%;
    height: clamp(280px, 60vh, 720px);
    border: 0;
    background: var(--mud-palette-background-grey);
    border-radius: 4px;
}

.nx-nowrap {
    white-space: nowrap;
}
