/* /Layout/MainLayout.razor.rz.scp.css */
/* ── App Shell ─────────────────────────────────────────── */
.app-header[b-duu2a000yx] {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

.mock-data-banner[b-duu2a000yx] {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #b45309;
    color: #fef3c7;
    font-size: clamp(0.7rem, 2vw, 0.85rem);
    padding: 0.3rem 1rem;
    letter-spacing: 0.03em;
    text-align: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.mock-data-banner__details[b-duu2a000yx] {
    opacity: 0.85;
    font-weight: 400;
    font-size: 0.8em;
}

/* Reset Radzen a-element interference inside the header.
   NOTE: color is intentionally omitted here so that app.css
   nav colour tokens (.app-nav__brand, .app-nav__link) are honoured. */
.app-header a[b-duu2a000yx],
.app-header a:link[b-duu2a000yx],
.app-header a:visited[b-duu2a000yx],
.app-header a:hover[b-duu2a000yx] {
    background: transparent !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.app-nav[b-duu2a000yx] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
    height: 64px;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.app-nav__brand[b-duu2a000yx] {
    display: flex;
    align-items: center;
    color: #f1f5f9;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    text-decoration: none !important;
    gap: 0.4rem;
    flex-shrink: 0;
    background: transparent !important;
}

.app-nav__brand:hover[b-duu2a000yx] {
    color: #7dd3fc;
    background: transparent !important;
}

.app-nav__links[b-duu2a000yx] {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.app-nav__link[b-duu2a000yx] {
    color: #94a3b8;
    text-decoration: none !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.01em;
    background: transparent !important;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    line-height: 1;
    white-space: nowrap;
}

.app-nav__link:hover[b-duu2a000yx] {
    background: rgba(255,255,255,0.08) !important;
    color: #f1f5f9 !important;
}

.app-nav__link.active[b-duu2a000yx] {
    background: rgba(96,165,250,0.15) !important;
    color: #93c5fd !important;
    font-weight: 600;
    box-shadow: inset 0 -2px 0 #60a5fa !important;
}

.app-nav__user[b-duu2a000yx] {
    /* #64748b was too dark on #0f172a nav (contrast ~1.6:1).
       #94a3b8 (slate-400) gives ~4.7:1 — passes WCAG AA. */
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
}

.app-main[b-duu2a000yx] {
    min-height: calc(100vh - 64px);
    /* Token, not a literal: this is the page canvas and must follow the dark scheme
       override in app.css (the header/footer chrome above stays fixed dark by design). */
    background: var(--color-bg);
}

/* Footer */
.app-footer[b-duu2a000yx] {
    background: #0f172a;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 0.55rem 0;
}

.app-footer__inner[b-duu2a000yx] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.75rem;
    font-size: 0.75rem;
    color: #475569;
}

.app-footer__hint kbd[b-duu2a000yx] {
    background: rgba(255,255,255,0.1);
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    font-size: 0.7rem;
}

.app-footer__center[b-duu2a000yx] {
    /* #334155 on the #0f172a footer was ~1.5:1. Slate-300 gives ~11:1. */
    color: #cbd5e1;
}

.app-footer__env-badge[b-duu2a000yx] {
    background: rgba(96,165,250,0.15);
    color: #93c5fd;
    border: 1px solid rgba(96,165,250,0.25);
    border-radius: 6px;
    padding: 0.1rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Mobile nav: collapse text labels below 640 px ─── */
@media (max-width: 639px) {
    .app-nav[b-duu2a000yx] {
        padding: 0 0.75rem;
        height: 56px;
        gap: 0.5rem;
    }
    /* Tighten the brand — keep the icon, drop the "PoRedoImage" wordmark
       below 480 px to claw back ~110 px of horizontal space. */
    @media (max-width: 479px) {
        .app-nav__brand-text[b-duu2a000yx] { display: none; }
    }
    /* Pad nav-link items tighter at narrow widths. */
    .app-nav__link[b-duu2a000yx] {
        padding: 0.4rem 0.55rem;
        font-size: 0.82rem;
    }
    /* Hide the user badge text and show only the icon at narrow widths.
       The person-circle icon still communicates "logged in" to the user. */
    .app-nav__user[b-duu2a000yx] {
        display: none;
    }
    /* Remove the gutter margin that was pushing Sign-out off-screen. */
    .d-flex.align-items-center.gap-2.ms-3[b-duu2a000yx],
    .app-nav__link.ms-3[b-duu2a000yx] { margin-left: 0 !important; }
}

/* Blazor error bar */
#blazor-error-ui[b-duu2a000yx] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-duu2a000yx] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Layout/NavMenu.razor.rz.scp.css */
/* Nav links are styled globally in app.css via .app-nav__link */

/* /Pages/BulkGenerate/BulkGallery.razor.rz.scp.css */
/* Scoped CSS for BulkGallery.razor — Blazor appends a per-component attribute
   selector to every rule, so selectors here only match elements inside this
   component's render tree. */

/* ── Empty state ──────────────────────────────────────────────────────── */
.bulk-empty-state[b-6z247pq4c3] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    color: var(--color-muted);
    background: var(--color-surface-muted, #f8fafc);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    min-height: 260px;
}

.bulk-empty-state__icon[b-6z247pq4c3] {
    font-size: 3rem;
    color: var(--color-border-strong, #cbd5e1);
    margin-bottom: var(--spacing-md);
}

.bulk-empty-state__title[b-6z247pq4c3] {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text, #334155);
    margin-bottom: var(--spacing-xs);
}

.bulk-empty-state__hint[b-6z247pq4c3] {
    font-size: 0.9rem;
    color: var(--color-muted);
    max-width: 38ch;
    margin: 0 auto;
}

/* ── Progress header (aria-live = polite) ─────────────────────────────── */
.bulk-progress-header[b-6z247pq4c3] {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: var(--spacing-xs);
}

.bulk-progress-bar[b-6z247pq4c3] {
    height: 6px;
    background: var(--color-surface-muted, #e2e8f0);
    border-radius: 99px;
    overflow: hidden;
}

.bulk-progress-bar__fill[b-6z247pq4c3] {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--color-primary, #2563eb), var(--color-accent, #7c3aed));
    border-radius: 99px;
    transform: scaleX(var(--progress, 0));
    transform-origin: left center;
    transition: transform 0.4s var(--motion-ease-in-out, ease);
    will-change: transform;
}

/* ── Gallery grid (virtualized — see BulkGallery.razor <Virtualize>) ── */
.bulk-gallery[b-6z247pq4c3] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--spacing-md);
    margin-top: 0;
    /* Reserve room for the scrollbar so virtualization layout stays stable. */
    scrollbar-gutter: stable;
}

@media (max-width: 576px) {
    .bulk-gallery[b-6z247pq4c3] { grid-template-columns: 1fr; }
}

/* ── Slot card ────────────────────────────────────────────────────────── */
.bulk-slot[b-6z247pq4c3] {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: border-color var(--motion-base, 0.2s ease);
    box-shadow: var(--shadow-sm);
}

.bulk-slot:hover[b-6z247pq4c3] { border-color: var(--color-primary-soft, #93c5fd); }
.bulk-slot:focus-within[b-6z247pq4c3] { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.bulk-slot--pending[b-6z247pq4c3]  { opacity: 0.92; }
.bulk-slot--complete[b-6z247pq4c3] { border-color: var(--color-primary-soft, #93c5fd); }
.bulk-slot--failed[b-6z247pq4c3]   { border-color: var(--color-danger-soft, #fca5a5); }

.bulk-slot__header[b-6z247pq4c3] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.78rem;
    color: var(--color-muted);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}

.bulk-slot__num[b-6z247pq4c3] {
    font-weight: 700;
    color: var(--color-text, #334155);
}

/* ── Slot image area (1:1 aspect-ratio) ──────────────────────────────── */
.bulk-slot__img-area[b-6z247pq4c3] {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface-muted, #f1f5f9);
    overflow: hidden;
}

.bulk-slot__img-area img[b-6z247pq4c3] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform var(--motion-base, 0.2s ease);
}

.bulk-slot__img-area img:hover[b-6z247pq4c3] { transform: scale(1.02); }

.bulk-slot__img-area--pending[b-6z247pq4c3] {
    color: var(--color-muted-strong, #94a3b8);
    font-size: 0.8rem;
}

.bulk-slot__img-area--processing[b-6z247pq4c3] {
    flex-direction: column;
    gap: var(--spacing-xs);
    color: var(--color-muted);
    font-size: 0.78rem;
}

.bulk-slot__img-area--failed[b-6z247pq4c3] {
    color: var(--color-danger, #ef4444);
    font-size: 0.8rem;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.bulk-slot__spinner[b-6z247pq4c3] {
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-border, #e2e8f0);
    border-top-color: var(--color-primary, #3b82f6);
    border-radius: 50%;
    animation: bulk-spin-b-6z247pq4c3 0.8s linear infinite;
}

@keyframes bulk-spin-b-6z247pq4c3 { to { transform: rotate(360deg); } }

.bulk-slot__shimmer[b-6z247pq4c3] {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        var(--color-surface-muted, #f1f5f9) 0%,
        var(--color-border, #e2e8f0) 50%,
        var(--color-surface-muted, #f1f5f9) 100%);
    background-size: 200% 100%;
    animation: bulk-shimmer-b-6z247pq4c3 1.5s ease-in-out infinite;
}

@keyframes bulk-shimmer-b-6z247pq4c3 {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Slot footer ──────────────────────────────────────────────────────── */
.bulk-slot__footer[b-6z247pq4c3] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    padding: 0.4rem 0.75rem;
    min-height: 2.2rem;
}

.bulk-slot__prompt-preview[b-6z247pq4c3] {
    font-size: 0.72rem;
    color: var(--color-muted-strong, #94a3b8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 75%;
}

.bulk-slot__actions[b-6z247pq4c3] {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

/* ── Inline action buttons ───────────────────────────────────────────── */
.btn-dl-slot[b-6z247pq4c3] {
    background: none;
    border: 1px solid rgba(91, 154, 255, 0.4);
    border-radius: 6px;
    color: #5b9aff;
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}

.btn-dl-slot:hover[b-6z247pq4c3] { background: rgba(91, 154, 255, 0.12); }
.btn-dl-slot:focus-visible[b-6z247pq4c3] { outline: 2px solid #5b9aff; outline-offset: 2px; }

.btn-heart-slot[b-6z247pq4c3] {
    background: none;
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 6px;
    color: var(--color-muted);
    font-size: 0.72rem;
    padding: 0.2rem 0.45rem;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-heart-slot:hover[b-6z247pq4c3] { background: rgba(220, 38, 38, 0.08); }
.btn-heart-slot--active[b-6z247pq4c3] {
    color: var(--color-danger, #dc2626);
    border-color: rgba(220, 38, 38, 0.55);
    background: rgba(220, 38, 38, 0.08);
}

.btn-reroll-slot[b-6z247pq4c3] {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text, #334155);
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-reroll-slot:hover:not(:disabled)[b-6z247pq4c3] {
    background: var(--color-surface-muted, #f1f5f9);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-reroll-slot:disabled[b-6z247pq4c3] { opacity: 0.6; cursor: not-allowed; }
.btn-reroll-slot:focus-visible[b-6z247pq4c3] { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* ── Re-roll panel ────────────────────────────────────────────────────── */
.bulk-reroll-panel[b-6z247pq4c3] {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

.bulk-reroll-grid[b-6z247pq4c3] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--spacing-sm);
}

.bulk-reroll-cell[b-6z247pq4c3] {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
}

.bulk-reroll-cell img[b-6z247pq4c3] {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
/* Status pill for a not-yet-started slot. Sized here rather than inline (NET_RULES §4). */
.bulk-slot__status--queued[b-6z247pq4c3] {
    font-size: 0.72rem;
}
/* /Pages/BulkGenerate/BulkPromptEditor.razor.rz.scp.css */
/* Scoped CSS for BulkPromptEditor.razor — Blazor appends a per-component
   attribute selector to every rule, so selectors here only match elements
   inside this component's render tree. */

.prompt-editor[b-vuenerq3up] {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.prompt-editor__header[b-vuenerq3up] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}

.prompt-editor__title[b-vuenerq3up] {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    white-space: nowrap;
}

.prompt-editor__actions[b-vuenerq3up] {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}

.prompt-editor__actions .btn .d-action-label[b-vuenerq3up] { display: inline; }

.prompt-editor__token-hint[b-vuenerq3up] {
    width: 100%;
    font-size: 0.72rem;
    color: var(--color-muted);
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.prompt-editor__token-hint code[b-vuenerq3up] {
    background: #eff6ff;
    color: var(--color-primary, #2563eb);
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    padding: 0.05rem 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
}

.prompt-editor__list[b-vuenerq3up] {
    padding: 0.75rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--spacing-xs);
}

.prompt-editor__item[b-vuenerq3up] {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.prompt-editor__num[b-vuenerq3up] {
    width: 1.5rem;
    text-align: center;
    color: var(--color-muted-strong, #94a3b8);
    font-size: 0.75rem;
    padding-top: 0.5rem;
    flex-shrink: 0;
}

.prompt-editor__textarea[b-vuenerq3up] {
    flex: 1;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 0.82rem;
    padding: 0.45rem 0.7rem;
    resize: vertical;
    min-height: 56px;
    transition: border-color 0.15s, background 0.15s;
    line-height: 1.45;
}

.prompt-editor__textarea:focus[b-vuenerq3up] {
    outline: none;
    border-color: var(--color-primary, #3b82f6);
    background: var(--color-surface);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn-reset-row[b-vuenerq3up] {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-muted-strong, #94a3b8);
    font-size: 0.75rem;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 0.45rem;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-reset-row:hover[b-vuenerq3up] {
    background: var(--color-bg);
    border-color: var(--color-muted-strong, #94a3b8);
    color: var(--color-text);
}

.btn-reset-row:focus-visible[b-vuenerq3up] {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
/* /Pages/Login.razor.rz.scp.css */
/* Scoped styles for Login.razor — auto-prefixed by Blazor at compile time. */

.login-page[b-ah696wlyti] {
    background: radial-gradient(ellipse 90% 80% at 50% -10%, rgba(5,39,103,0.18), transparent);
    /* Vertically centres the card in the viewport without inline styles (NET_RULES §4). */
    min-height: 80vh;
}

.login-card[b-ah696wlyti] {
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2rem 2.25rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 16px 48px rgba(0,0,0,.55);
    position: relative;
    overflow: hidden;
}

.login-card[b-ah696wlyti]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #052767, #3a0647, #052767);
}

.login-title[b-ah696wlyti] {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: #f1f5f9;
}

.login-subtitle[b-ah696wlyti] {
    font-size: .85rem;
    color: #94a3b8;
    margin-top: .3rem;
}

.btn-ms-signin[b-ah696wlyti] {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: .6rem 1rem;
    font-size: .95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, box-shadow .15s;
}

.btn-ms-signin:hover[b-ah696wlyti] {
    background: #f3f4f6;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    color: #1a1a1a;
}

.login-divider[b-ah696wlyti] {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #484f58;
    font-size: .8rem;
    margin: 1.25rem 0;
}

.login-divider[b-ah696wlyti]::before,
.login-divider[b-ah696wlyti]::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #30363d;
}

.btn-anon-signin[b-ah696wlyti] {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #94a3b8;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: .6rem 1rem;
    font-size: .95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
    gap: .25rem;
}

.btn-anon-signin:hover[b-ah696wlyti] {
    background: rgba(148,163,184,.08);
    border-color: #94a3b8;
    color: #e2e8f0;
}

.anon-badge[b-ah696wlyti] {
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #f0883e;
    background: rgba(240,136,62,.12);
    border: 1px solid rgba(240,136,62,.25);
    border-radius: 4px;
    padding: .1rem .35rem;
    margin-left: .4rem;
}
/* /Pages/NotFound.razor.rz.scp.css */
/* Oversized, de-emphasised glyph above the 404 message. Lives here rather than inline
   per NET_RULES §4 (inline styles forbidden). */
.not-found__icon[b-v2en5wj55g] {
    font-size: 4rem;
    opacity: 0.4;
    line-height: 1;
}
/* /Pages/RapRoast.razor.rz.scp.css */
/* Scoped styles for RapRoast.razor. All colours resolve from the shared tokens so they inherit
   the light/dark treatment and stay above the 4.5:1 contrast floor the axe gate enforces. */

.roast-style[b-er5f24d7zj] {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg, 12px);
    padding: 0.9rem 1rem 1rem;
}

.roast-style__legend[b-er5f24d7zj] {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0 0.35rem;
    width: auto;
    margin-bottom: 0;
}

.roast-style__options[b-er5f24d7zj] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
}

.roast-style__option[b-er5f24d7zj] {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md, 8px);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.roast-style__option:hover[b-er5f24d7zj] {
    border-color: var(--color-border-hover, var(--color-primary));
}

/* Keyboard focus must be visible on the label, since the radio itself is visually small. */
.roast-style__option:focus-within[b-er5f24d7zj] {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.roast-style__option--selected[b-er5f24d7zj] {
    border-color: var(--color-primary);
    background: rgba(5, 39, 103, 0.06);
}

.roast-style__name[b-er5f24d7zj] {
    font-weight: 600;
    font-size: 0.9rem;
}

.roast-style__hint[b-er5f24d7zj] {
    font-size: 0.75rem;
    /* --color-muted clears 4.5:1 on the page background but only reaches 4.05:1 on the selected
       option's tinted fill. Slate-600 stays above the floor in both states. */
    color: #475569;
}

.roast-disclaimer[b-er5f24d7zj] {
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: var(--color-muted);
}

.roast-player[b-er5f24d7zj] {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg, 12px);
    padding: 1rem;
}

.roast-player__audio[b-er5f24d7zj] {
    width: 100%;
}

.roast-refused[b-er5f24d7zj] {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-md, 8px);
    padding: 0.85rem 1rem;
}

.roast-softened[b-er5f24d7zj] {
    margin-top: 0.65rem;
    color: var(--color-muted);
}

.roast-lyrics[b-er5f24d7zj] {
    margin-top: 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg, 12px);
    padding: 1rem 1.25rem;
}

.roast-lyrics__heading[b-er5f24d7zj] {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* The lyrics are pre-formatted: section tags and line breaks are meaningful, so whitespace is
   preserved, but long lines still wrap rather than forcing the page to scroll sideways. */
.roast-lyrics__text[b-er5f24d7zj] {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

.roast-seen[b-er5f24d7zj] {
    margin-top: 1rem;
    font-size: 0.85rem;
}

.roast-seen summary[b-er5f24d7zj] {
    cursor: pointer;
    color: var(--color-muted);
}

.roast-subject[b-er5f24d7zj] {
    margin: 0 0 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg, 12px);
    padding: 0.75rem;
    text-align: center;
}

/* Capped by viewport height as well as width: a tall portrait photo would otherwise push the
   audio player and the bars entirely below the fold. */
.roast-subject__img[b-er5f24d7zj] {
    max-width: 100%;
    max-height: 340px;
    width: auto;
    border-radius: var(--radius-md, 8px);
    display: block;
    margin: 0 auto;
}

.roast-subject__caption[b-er5f24d7zj] {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #475569;
}

.roast-seen__thin[b-er5f24d7zj] {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: #475569;
}

/* Structured scene slots. A definition list is the correct semantic here — each label genuinely
   describes its value — and it gives screen readers the pairing for free. */
.scene-slots[b-er5f24d7zj] {
    display: grid;
    grid-template-columns: minmax(90px, auto) 1fr;
    gap: 0.35rem 0.85rem;
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
}

.scene-slots dt[b-er5f24d7zj] {
    font-weight: 600;
    color: #334155;
}

.scene-slots dd[b-er5f24d7zj] {
    margin: 0;
    color: #475569;
}

/* OCR lines are quoted verbatim from the image, so they get chip treatment to distinguish them
   from the model's own words. */
.scene-slots__chip[b-er5f24d7zj] {
    display: inline-block;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0.05rem 0.35rem;
    margin: 0 0.25rem 0.25rem 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.75rem;
    color: #334155;
}

@media (max-width: 479px) {
    .scene-slots[b-er5f24d7zj] {
        grid-template-columns: 1fr;
        gap: 0.1rem 0;
    }

    .scene-slots dd[b-er5f24d7zj] {
        margin-bottom: 0.4rem;
    }
}
/* /Shared/AiServicePicker.razor.rz.scp.css */
.ai-picker[b-dx24rw2mip] {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    background: var(--color-surface);
}

.ai-picker__legend[b-dx24rw2mip] {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-body);
    padding: 0 var(--spacing-xs);
}

.ai-picker__row[b-dx24rw2mip] {
    display: grid;
    grid-template-columns: minmax(9rem, 12rem) 1fr;
    align-items: center;
    gap: var(--spacing-sm);
}

@media (max-width: 34rem) {
    .ai-picker__row[b-dx24rw2mip] {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xs);
    }
}

.ai-picker__label[b-dx24rw2mip] {
    font-size: 0.8125rem;
    color: var(--color-muted);
}

.ai-picker__select[b-dx24rw2mip] {
    width: 100%;
    padding: 0.4rem 0.6rem;
    font-size: 0.8125rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-body);
}

.ai-picker__select:focus-visible[b-dx24rw2mip] {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
}

.ai-picker__select:disabled[b-dx24rw2mip] {
    background: var(--color-surface-elevated);
    color: var(--color-muted);
    cursor: not-allowed;
}

.ai-picker__device[b-dx24rw2mip] {
    margin: 0;
    font-size: 0.75rem;
    color: var(--color-muted);
}
