.podcast-file-drop {
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.podcast-file-drop.is-dragging {
    border-color: var(--podcast-accent);
    background: color-mix(in srgb, var(--podcast-accent) 14%, var(--podcast-surface-soft));
    transform: scale(1.01);
}

#podcast-file-status:empty {
    display: none;
}

#podcast-file-status:not(:empty) {
    color: var(--podcast-accent);
}

.podcast-field-hint {
    display: block;
    margin-top: .45rem;
    color: var(--podcast-muted);
    font-size: .75rem;
    line-height: 1.45;
}

.podcast-notice.is-warning {
    background: rgba(161, 98, 7, .14);
    color: #e78200;
}

.podcast-card.is-loading {
    cursor: progress;
}

.podcast-card.is-loading .podcast-step {
    opacity: .72;
}

.podcast-button:disabled {
    cursor: wait;
    filter: grayscale(.3);
    opacity: .62;
}

.podcast-segmented label.is-disabled {
    cursor: not-allowed;
    opacity: .4;
}

.podcast-header-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: .35rem .2rem;
}

.podcast-theme-button {
    align-items: center;
    border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
    border-radius: 999px;
    display: inline-flex;
    font-size: 1rem;
    height: 2.25rem;
    justify-content: center;
    padding: 0;
    width: 2.25rem;
}

.has-auth-modal {
    overflow: hidden;
}

.podcast-auth-modal {
    align-items: center;
    background: rgba(15, 23, 42, .58);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 1000;
}

.podcast-auth-modal[hidden] {
    display: none;
}

.podcast-auth-dialog {
    background: var(--podcast-surface, #fff);
    border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    border-radius: 1.25rem;
    box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, .24);
    color: var(--podcast-text, #111827);
    max-height: calc(100vh - 2rem);
    max-width: 30rem;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    width: 100%;
}

.podcast-auth-dialog h2 {
    margin: 0 0 .5rem;
}

.podcast-auth-dialog > p {
    color: var(--podcast-muted, #64748b);
    margin: 0 0 1.25rem;
}

.podcast-auth-close {
    appearance: none;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.podcast-auth-tabs {
    background: var(--podcast-surface-soft, #f1f5f9);
    border-radius: .75rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 1.25rem;
    padding: .25rem;
}

.podcast-auth-tabs button {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: .55rem;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: .65rem .75rem;
}

.podcast-auth-tabs button.is-active {
    background: var(--podcast-surface, #fff);
    box-shadow: 0 .15rem .5rem rgba(15, 23, 42, .08);
    font-weight: 700;
}

.podcast-auth-form {
    display: grid;
    gap: 1rem;
}

.podcast-auth-form[hidden] {
    display: none;
}

.podcast-auth-form label:not(.podcast-auth-check) {
    display: grid;
    font-size: .85rem;
    font-weight: 650;
    gap: .4rem;
}

.podcast-auth-form input:not([type="checkbox"]) {
    background: var(--podcast-surface-soft, #f8fafc);
    border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
    border-radius: .7rem;
    color: inherit;
    font: inherit;
    padding: .8rem .9rem;
}

.podcast-auth-check {
    align-items: flex-start;
    display: flex;
    font-size: .82rem;
    gap: .6rem;
}

.podcast-auth-check input {
    margin-top: .15rem;
}

.podcast-auth-message {
    background: color-mix(in srgb, var(--podcast-accent, #2563eb) 12%, transparent);
    border-radius: .7rem;
    margin-bottom: 1rem;
    padding: .75rem .9rem;
}

.podcast-auth-message.is-error {
    background: rgba(220, 38, 38, .12);
    color: #dc2626;
}

/* Compact universal source input */
.podcast-source-grid[hidden] {
    display: none !important;
}

.podcast-step[data-step="0"] .podcast-step-heading {
    margin-bottom: 1.15rem;
}

.podcast-step[data-step="0"] .podcast-source-input {
    margin-top: 0;
}

.podcast-step[data-step="0"] .podcast-file-drop {
    min-height: 132px;
    gap: .35rem;
    padding: 1.2rem;
}

.podcast-file-drop-icon {
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--podcast-accent) 40%, var(--podcast-border));
    border-radius: 50%;
    color: var(--podcast-accent);
    display: inline-flex;
    font-size: 1.25rem;
    height: 2.4rem;
    justify-content: center;
    margin-bottom: .15rem;
    width: 2.4rem;
}

.podcast-file-types {
    font-size: .72rem;
}

.podcast-source-separator {
    align-items: center;
    color: var(--podcast-muted);
    display: grid;
    font-size: .68rem;
    font-weight: 800;
    gap: .75rem;
    grid-template-columns: 1fr auto 1fr;
    letter-spacing: .12em;
    margin: 1rem 0;
    text-align: center;
}

.podcast-source-separator::before,
.podcast-source-separator::after {
    background: var(--podcast-border);
    content: '';
    height: 1px;
}

.podcast-smart-source {
    min-height: 48px;
    resize: none;
    transition: min-height .18s ease;
}

.podcast-smart-source.is-expanded {
    min-height: 220px;
    resize: vertical;
}

.podcast-smart-source-hint {
    margin-bottom: 0;
}

.podcast-memory-landmarks {
    margin-top: .8rem;
}

@media (max-width: 640px) {
    .podcast-header-nav > a {
        display: none;
    }

    .podcast-auth-dialog {
        padding: 1.5rem;
    }

    .podcast-step[data-step="0"] .podcast-file-drop {
        min-height: 112px;
    }
}