.pron-intro-list {
    color: #aeb8c4;
    margin: 10px 0 0;
    padding-left: 20px;
}

.pron-intro-list li {
    margin-bottom: 6px;
}

/* Compact preview strip: connector, voice, and one shared player for the page. */
.pron-preview {
    align-items: flex-end;
    background: #202020;
    border: 1px solid #414141;
    border-radius: 7px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 14px;
    padding: 10px 12px;
}

.pron-preview-caption {
    align-self: flex-end;
    color: #cfd8e3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0;
    padding-bottom: 9px;
    text-transform: uppercase;
    white-space: nowrap;
}

.pron-preview-field {
    flex: 1 1 170px;
    max-width: 250px;
    min-width: 0;
}

.pron-preview-player {
    flex: 1 1 210px;
    max-width: 320px;
    min-width: 0;
}

.pron-preview-field .pron-label,
.pron-preview-player .pron-label {
    margin-bottom: 4px;
}

.pron-preview-audio {
    display: block;
    height: 32px;
    max-width: 100%;
    width: 100%;
}

.pron-preview-status {
    color: #8b98a8;
    flex: 1 1 100%;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    min-height: 16px;
    overflow-wrap: anywhere;
}

.pron-preview.is-unavailable .pron-preview-status {
    color: #d5a849;
}

.pron-toolbar {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 12px;
}

.pron-toolbar-field {
    min-width: 220px;
}

.pron-label {
    color: #cfd8e3;
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.pron-field {
    background: #191919;
    border: 1px solid #4a4a4a;
    border-radius: 5px;
    box-sizing: border-box;
    color: #f8f9fa;
    font-family: inherit;
    font-size: 14px;
    padding: 8px 10px;
    width: 100%;
}

.pron-field:focus {
    border-color: rgb(242, 124, 17);
}

.pron-section :focus-visible {
    outline: 2px solid rgb(242, 124, 17);
    outline-offset: 2px;
}

.pron-cols {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(120px, 1fr) minmax(130px, 1.15fr) minmax(190px, 1.5fr) 96px 210px;
    padding: 10px 12px;
}

.pron-add-row {
    align-items: start;
    padding: 0;
}

/* The access column makes the add row tall, so keep the toggle and the submit
   button level with the first input line instead of dropping them to the base. */
.pron-add-row .pron-toggle,
.pron-add-row .pron-actions {
    margin-top: 21px;
}

.pron-grid {
    border: 1px solid #414141;
    border-radius: 7px;
    overflow: hidden;
}

.pron-head {
    background: #202020;
    border-bottom: 1px solid #414141;
    color: #8b98a8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pron-row {
    background: #242424;
    border-bottom: 1px solid #363636;
    margin: 0;
}

.pron-row:last-child {
    border-bottom: 0;
}

.pron-row:hover,
.pron-row:focus-within {
    background: #2b2b2b;
}

.pron-row.is-disabled .pron-static,
.pron-row.is-disabled .pron-scope,
.pron-row.is-disabled .pron-field {
    opacity: 0.62;
}

.pron-static {
    color: #f2f2f2;
    font-size: 14px;
    overflow-wrap: anywhere;
}

/* The access column stacks the NPC name, race, and Oghma tag filters. */
.pron-access {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.pron-access-field {
    min-width: 0;
}

.pron-scope {
    color: #aeb8c4;
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
    overflow-wrap: anywhere;
}

.pron-scope-label {
    color: #cfd8e3;
    font-weight: 700;
}

.pron-scope strong {
    color: rgb(242, 124, 17);
    font-weight: 700;
}

.pron-scope-hint {
    color: #8b98a8;
}

.pron-scope .pron-badge {
    margin-right: 6px;
}

.pron-badge {
    background: rgba(74, 138, 182, 0.16);
    border: 1px solid rgba(74, 138, 182, 0.35);
    border-radius: 999px;
    color: #93c5fd;
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 2px 9px;
    text-transform: uppercase;
    white-space: nowrap;
}

.pron-toggle {
    align-items: center;
    display: flex;
    gap: 8px;
}

.pron-toggle .pron-label {
    margin: 0;
}

.pron-toggle input[type="checkbox"] {
    accent-color: rgb(242, 124, 17);
    cursor: pointer;
    flex: 0 0 auto;
    height: 16px;
    margin: 0;
    width: 16px;
}

.pron-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pron-btn {
    font-size: 13px;
    margin: 0;
    padding: 6px 12px;
}

.pron-btn.delete {
    background-color: #8c2f2a;
    border-color: rgba(244, 67, 54, 0.35);
}

.pron-btn.delete:hover {
    background-color: #73241f;
}

/* The play control shares its cell with the text it speaks, so keep it square
   and small enough not to change any row height. */
.pron-input-row,
.pron-static-row {
    align-items: center;
    display: flex;
    gap: 6px;
    min-width: 0;
}

.pron-built-in-editor[hidden],
.pron-built-in-display[hidden] {
    display: none !important;
}

.pron-input-row .pron-field,
.pron-static-row .pron-static {
    flex: 1 1 auto;
    min-width: 0;
}

.pron-play {
    align-items: center;
    background: #2f2f2f !important;
    border: 1px solid #4d4d4d !important;
    border-radius: 5px !important;
    display: grid;
    flex: 0 0 auto;
    height: 30px !important;
    margin: 0 !important;
    min-height: 30px !important;
    padding: 0 !important;
    place-items: center;
    width: 30px;
}

.pron-play:hover:not(:disabled) {
    background: #383838 !important;
    border-color: rgba(242, 124, 17, 0.6) !important;
}

.pron-play-icon {
    border-color: transparent transparent transparent rgb(242, 124, 17);
    border-style: solid;
    border-width: 5px 0 5px 8px;
    display: block;
    height: 0;
    margin-left: 2px;
    width: 0;
}

/* Busy rows stay disabled, so opt out of the theme's dimmed disabled look and
   swap the triangle for a pulsing block instead. */
.pron-play.is-busy:disabled {
    filter: none !important;
    opacity: 1 !important;
}

.pron-play.is-busy .pron-play-icon {
    animation: pron-play-pulse 0.9s ease-in-out infinite;
    background: rgb(242, 124, 17);
    border: 0;
    border-radius: 2px;
    height: 9px;
    margin-left: 0;
    width: 9px;
}

@keyframes pron-play-pulse {
    0%, 100% {
        opacity: 0.35;
    }

    50% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pron-play.is-busy .pron-play-icon {
        animation: none;
        opacity: 0.75;
    }
}

/* The icon carries no text, so the button keeps a screen-reader-only name. */
.pron-play-text {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.pron-hidden-form {
    display: none;
}

.pron-empty {
    background: #242424;
    color: #aeb8c4;
    margin: 0;
    padding: 14px 12px;
}

.pron-count {
    color: #8b98a8;
    display: block;
    font-size: 12px;
    margin: 4px 0 0;
}

.pron-clear-filter {
    color: #93c5fd;
    font-size: 13px;
    padding-bottom: 9px;
}

/* Column headers carry the labels inside the grids, so per-row labels stay
   screen-reader only until the grid stacks on narrow viewports. */
.pron-grid .pron-label {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* Three inputs share the access column, so their labels must stay on screen. */
.pron-grid .pron-access .pron-label {
    clip: auto;
    height: auto;
    margin: 0 0 4px;
    overflow: visible;
    position: static;
    white-space: normal;
    width: auto;
}

@media (max-width: 900px) {
    .pron-head {
        display: none;
    }

    .pron-cols {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .pron-grid .pron-label {
        clip: auto;
        height: auto;
        margin: 0 0 5px;
        overflow: visible;
        position: static;
        white-space: normal;
        width: auto;
    }

    .pron-grid .pron-toggle .pron-label {
        margin: 0;
    }

    .pron-row {
        padding: 14px 12px;
    }

    .pron-toolbar-field {
        width: 100%;
    }

    .pron-preview-field,
    .pron-preview-player {
        flex: 1 1 100%;
        max-width: none;
    }

    .pron-add-row .pron-toggle,
    .pron-add-row .pron-actions {
        margin-top: 0;
    }
}
