.pd-viewer {
    font-family: Calibri, Arial, sans-serif;
    color: #1e2d7d;
}
.pd-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem 0;
}
.pd-language-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .95rem;
}
.pd-language-select {
    min-width: 10.5rem;
    max-width: 100%;
    padding: .4rem 2rem .4rem .65rem;
    border: 1px solid #c9cdd9;
    border-radius: .35rem;
    background: #fff;
    color: #1e2d7d;
}
.pd-status {
    min-height: 1.2em;
    margin: 0 0 .55rem 0;
    font-size: .9rem;
}
.pd-status:empty {
    display: none;
}
.pd-status.pd-status-loading {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .7rem .85rem;
    border: 1px solid #dbe2f3;
    border-radius: .4rem;
    background: #f4f7fc;
    color: #1e2d7d;
    line-height: 1.45;
}
.pd-hourglass {
    display: inline-block;
    flex: 0 0 auto;
    font-size: 1.15rem;
    line-height: 1.3;
    transform-origin: center;
    animation: pd-hourglass-turn 2s ease-in-out infinite alternate;
}
.pd-status-message {
    min-width: 0;
    overflow-wrap: anywhere;
}
@keyframes pd-hourglass-turn {
    0%, 20% { transform: rotate(0deg); }
    80%, 100% { transform: rotate(180deg); }
}
@media (prefers-reduced-motion: reduce) {
    .pd-hourglass {
        animation: none;
    }
}
.pd-content-host {
    min-height: 4rem;
}
.pd-content-host[aria-busy="true"] {
    opacity: .65;
}
.pd-ai-notice {
    margin: 1.2em 0 0 0;
    font-size: .9em;
    font-style: italic;
    line-height: 1.45;
}
.pd-ai-notice[hidden] {
    display: none !important;
}
.pd-thought p {
    line-height: 1.55;
}
@media (max-width: 520px) {
    .pd-toolbar {
        justify-content: flex-start;
    }
    .pd-language-label {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }
    .pd-language-select {
        width: 100%;
    }
}

.pd-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
}
.pd-button {
    border: 0;
    border-radius: .35rem;
    padding: .58rem .9rem;
    background: #173c5b;
    color: #fff;
    font: inherit;
    cursor: pointer;
}
.pd-button:hover,
.pd-button:focus-visible {
    background: #102f49;
}
.pd-button:disabled {
    opacity: .62;
    cursor: wait;
}
.pd-audio-panel {
    margin: 0 0 1rem 0;
    padding: .75rem .85rem;
    border-radius: .45rem;
    background: #f1f6f8;
}
.pd-audio-panel[hidden] {
    display: none !important;
}
.pd-audio-panel audio {
    display: block;
    width: 100%;
}
@media (max-width: 640px) {
    .pd-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    .pd-language-label {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .pd-language-select {
        width: 100%;
    }
    .pd-actions {
        justify-content: flex-end;
    }
}
