/* /Components/AgentMode/AgentModeProgressPanel.razor.rz.scp.css */
.streaming-content-panel[b-sxrdy3qi4c] {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 0.75rem;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.streaming-content-panel h4[b-sxrdy3qi4c] {
    color: #667eea;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.streaming-content-panel h4[b-sxrdy3qi4c]::before {
    content: "⚡";
    font-size: 1.2rem;
}

.streaming-content[b-sxrdy3qi4c] {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.streaming-content pre[b-sxrdy3qi4c] {
    margin: 0;
    color: #e0e0e0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.streaming-content[b-sxrdy3qi4c]::-webkit-scrollbar {
    width: 8px;
}

.streaming-content[b-sxrdy3qi4c]::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.streaming-content[b-sxrdy3qi4c]::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 4px;
}

.streaming-content[b-sxrdy3qi4c]::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

.event-log .message-preview[b-sxrdy3qi4c] {
    margin-left: 0.5rem;
    color: #a0a0a0;
    font-style: italic;
    font-size: 0.85rem;
}

.streaming-debug[b-sxrdy3qi4c] {
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.25rem;
    font-family: monospace;
}

.streaming-waiting[b-sxrdy3qi4c] {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 2rem;
    animation: pulse-b-sxrdy3qi4c 2s ease-in-out infinite;
}

@keyframes pulse-b-sxrdy3qi4c {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
/* /Components/AgentMode/AgentModePromptForm.razor.rz.scp.css */
/* ============================================
   Prompt Form Card
   ============================================ */
.prompt-form-card[b-2glyuj88wk] {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.prompt-form-header[b-2glyuj88wk] {
    padding: 2rem 2rem 0;
}

.prompt-form-header h2[b-2glyuj88wk] {
    margin: 0 0 0.375rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.prompt-form-subtitle[b-2glyuj88wk] {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.prompt-form-body[b-2glyuj88wk] {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ============================================
   Form Controls
   ============================================ */
.form-group[b-2glyuj88wk] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label[b-2glyuj88wk] {
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
}

.form-group textarea[b-2glyuj88wk],
.form-group select[b-2glyuj88wk] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    color: #1f2937;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.form-group textarea:focus[b-2glyuj88wk],
.form-group select:focus[b-2glyuj88wk] {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.form-group textarea[b-2glyuj88wk] {
    resize: vertical;
    min-height: 100px;
}

/* ============================================
   Form Row (Age Group + Knowledge Mode)
   ============================================ */
.form-row[b-2glyuj88wk] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* ============================================
   Radio Group
   ============================================ */
.radio-group[b-2glyuj88wk] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-label[b-2glyuj88wk] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #374151;
    cursor: pointer;
}

.radio-label input[type="radio"][b-2glyuj88wk] {
    accent-color: #667eea;
}

/* ============================================
   Form Actions
   ============================================ */
.form-actions[b-2glyuj88wk] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 0.5rem;
}

.btn-primary[b-2glyuj88wk] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover[b-2glyuj88wk] {
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled[b-2glyuj88wk] {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-spinner[b-2glyuj88wk] {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin-b-2glyuj88wk 0.6s linear infinite;
}

@keyframes spin-b-2glyuj88wk {
    to { transform: rotate(360deg); }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .prompt-form-header[b-2glyuj88wk] {
        padding: 1.25rem 1.25rem 0;
    }

    .prompt-form-body[b-2glyuj88wk] {
        padding: 1.25rem;
    }

    .form-row[b-2glyuj88wk] {
        grid-template-columns: 1fr;
    }
}
/* /Components/AgentMode/ManualOrchestrationPromptForm.razor.rz.scp.css */
/* ============================================
   Prompt Form Card
   ============================================ */
.prompt-form-card[b-axpowbgzu8] {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.prompt-form-header[b-axpowbgzu8] {
    padding: 2rem 2rem 0;
}

.prompt-form-header h2[b-axpowbgzu8] {
    margin: 0 0 0.375rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.prompt-form-subtitle[b-axpowbgzu8] {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.prompt-form-body[b-axpowbgzu8] {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ============================================
   Form Controls
   ============================================ */
.form-group[b-axpowbgzu8] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label[b-axpowbgzu8] {
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
}

.form-group textarea[b-axpowbgzu8],
.form-group select[b-axpowbgzu8] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    color: #1f2937;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.form-group textarea:focus[b-axpowbgzu8],
.form-group select:focus[b-axpowbgzu8] {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.form-group textarea[b-axpowbgzu8] {
    resize: vertical;
    min-height: 100px;
}

/* ============================================
   Form Row (Age Group + Knowledge Mode)
   ============================================ */
.form-row[b-axpowbgzu8] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* ============================================
   Radio Group
   ============================================ */
.radio-group[b-axpowbgzu8] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-label[b-axpowbgzu8] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #374151;
    cursor: pointer;
}

.radio-label input[type="radio"][b-axpowbgzu8] {
    accent-color: #667eea;
}

/* ============================================
   Agent Model Configuration Section
   ============================================ */
.agent-model-section[b-axpowbgzu8] {
    padding-top: 0.5rem;
}

.section-title[b-axpowbgzu8] {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

.section-subtitle[b-axpowbgzu8] {
    margin: 0 0 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.agent-model-grid[b-axpowbgzu8] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.agent-model-card[b-axpowbgzu8] {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.agent-model-card-header[b-axpowbgzu8] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.agent-icon[b-axpowbgzu8] {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.agent-model-card-header div h4[b-axpowbgzu8] {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
}

.agent-model-card-header div p[b-axpowbgzu8] {
    margin: 0.125rem 0 0;
    font-size: 0.8rem;
    color: #6b7280;
}

.model-select[b-axpowbgzu8] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    color: #1f2937;
    background: #ffffff;
    box-sizing: border-box;
}

.model-select:focus[b-axpowbgzu8] {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.loading-models[b-axpowbgzu8] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

/* ============================================
   Form Actions
   ============================================ */
.form-actions[b-axpowbgzu8] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 0.5rem;
}

.btn-primary[b-axpowbgzu8] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover[b-axpowbgzu8] {
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled[b-axpowbgzu8] {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-link[b-axpowbgzu8] {
    background: none;
    border: none;
    color: #667eea;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0;
    text-decoration: none;
}

.btn-link:hover[b-axpowbgzu8] {
    text-decoration: underline;
}

.btn-link:disabled[b-axpowbgzu8] {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-spinner[b-axpowbgzu8] {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin-b-axpowbgzu8 0.6s linear infinite;
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .prompt-form-header[b-axpowbgzu8] {
        padding: 1.25rem 1.25rem 0;
    }

    .prompt-form-body[b-axpowbgzu8] {
        padding: 1.25rem;
    }

    .form-row[b-axpowbgzu8] {
        grid-template-columns: 1fr;
    }

    .agent-model-grid[b-axpowbgzu8] {
        grid-template-columns: 1fr;
    }
}
/* /Components/AgentMode/OrchestrationSessionBrowser.razor.rz.scp.css */
/* ============================================
   Session Browser
   ============================================ */
.session-browser[b-80busbtjad] {
    margin-bottom: 2rem;
}

.session-browser-header[b-80busbtjad] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.session-browser-header h3[b-80busbtjad] {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
}

.btn-refresh[b-80busbtjad] {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-refresh:hover[b-80busbtjad] {
    background: #f9fafb;
    border-color: #9ca3af;
}

.session-loading[b-80busbtjad],
.session-empty[b-80busbtjad] {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* ============================================
   Card Grid
   ============================================ */
.session-card-grid[b-80busbtjad] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.session-card[b-80busbtjad] {
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.session-card:hover[b-80busbtjad] {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.session-card-header[b-80busbtjad] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.session-stage-badge[b-80busbtjad] {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.session-stage-badge.stage-complete[b-80busbtjad] {
    background: #d1fae5;
    color: #065f46;
}

.session-stage-badge.stage-evaluated[b-80busbtjad] {
    background: #dbeafe;
    color: #1e40af;
}

.session-stage-badge.stage-failed[b-80busbtjad] {
    background: #fee2e2;
    color: #991b1b;
}

.session-stage-badge.stage-active[b-80busbtjad] {
    background: #fef3c7;
    color: #92400e;
}

.session-stage-badge.stage-default[b-80busbtjad] {
    background: #f3f4f6;
    color: #6b7280;
}

.session-age-badge[b-80busbtjad] {
    font-size: 0.75rem;
    color: #6b7280;
    background: #f9fafb;
    padding: 0.15rem 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
}

.session-card-body[b-80busbtjad] {
    padding: 0.75rem 1rem;
}

.session-prompt[b-80busbtjad] {
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.session-meta[b-80busbtjad] {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #9ca3af;
}

.session-error-hint[b-80busbtjad] {
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    color: #dc2626;
    background: #fef2f2;
    border-top: 1px solid #fecaca;
}

/* ============================================
   Card Actions
   ============================================ */
.session-card-actions[b-80busbtjad] {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid #f3f4f6;
    background: #fafbfc;
}

.btn-session-load[b-80busbtjad] {
    flex: 1;
    padding: 0.5rem;
    border-radius: 0.375rem;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-session-load:hover[b-80busbtjad] {
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.btn-session-delete[b-80busbtjad] {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #fca5a5;
    background: white;
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-session-delete:hover[b-80busbtjad] {
    background: #fef2f2;
    border-color: #ef4444;
}

/* ============================================
   Delete Confirmation Overlay
   ============================================ */
.delete-overlay[b-80busbtjad] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.delete-dialog[b-80busbtjad] {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.delete-dialog h4[b-80busbtjad] {
    margin: 0 0 0.5rem 0;
    color: #991b1b;
    font-size: 1.1rem;
}

.delete-dialog p[b-80busbtjad] {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.delete-prompt-preview[b-80busbtjad] {
    font-style: italic;
    color: #9ca3af;
    font-size: 0.85rem;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.delete-dialog-actions[b-80busbtjad] {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.btn-cancel[b-80busbtjad] {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-cancel:hover[b-80busbtjad] {
    background: #f9fafb;
}

.btn-confirm-delete[b-80busbtjad] {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: none;
    background: #dc2626;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-confirm-delete:hover[b-80busbtjad] {
    background: #b91c1c;
}

.btn-confirm-delete:disabled[b-80busbtjad] {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-spinner[b-80busbtjad] {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin-b-80busbtjad 0.6s linear infinite;
}

@keyframes spin-b-80busbtjad {
    to { transform: rotate(360deg); }
}
/* /Components/EntraSignInButton.razor.rz.scp.css */
/* ============================================================
   EntraSignInButton — scoped styles (story-generator web)
   ============================================================ */

.entra-signin-wrapper[b-lv26gpqzjz] {
    display: flex;
    justify-content: center;
}

.entra-signin-btn[b-lv26gpqzjz] {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: #111827;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
    max-width: 320px;
    justify-content: center;
}

.entra-signin-btn:hover:not(:disabled)[b-lv26gpqzjz] {
    background-color: #f3f4f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.entra-signin-btn:focus-visible[b-lv26gpqzjz] {
    outline: 2px solid #0078D4;
    outline-offset: 2px;
}

.entra-signin-btn:disabled[b-lv26gpqzjz] {
    opacity: 0.6;
    cursor: not-allowed;
}

.entra-icon[b-lv26gpqzjz] {
    flex-shrink: 0;
}
/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-hkbk8x16sb] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-hkbk8x16sb] {
    flex: 1;
}

.sidebar[b-hkbk8x16sb] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-hkbk8x16sb] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-hkbk8x16sb]  a, .top-row[b-hkbk8x16sb]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-hkbk8x16sb]  a:hover, .top-row[b-hkbk8x16sb]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-hkbk8x16sb]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-hkbk8x16sb] {
        justify-content: space-between;
    }

    .top-row[b-hkbk8x16sb]  a, .top-row[b-hkbk8x16sb]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-hkbk8x16sb] {
        flex-direction: row;
    }

    .sidebar[b-hkbk8x16sb] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-hkbk8x16sb] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-hkbk8x16sb]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-hkbk8x16sb], article[b-hkbk8x16sb] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-a5yyuqpmza] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-a5yyuqpmza] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-a5yyuqpmza] {
    font-size: 1.1rem;
}

.bi[b-a5yyuqpmza] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-a5yyuqpmza] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-a5yyuqpmza] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-a5yyuqpmza] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-a5yyuqpmza] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-a5yyuqpmza] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-a5yyuqpmza] {
        padding-bottom: 1rem;
    }

    .nav-item[b-a5yyuqpmza]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-a5yyuqpmza]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-a5yyuqpmza]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-a5yyuqpmza] {
        display: none;
    }

    .collapse[b-a5yyuqpmza] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
    
    .nav-scrollable[b-a5yyuqpmza] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Pages/AgentModeStoryPage.razor.rz.scp.css */
.agent-story-container[b-dkdf89oeum] {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.session-container[b-dkdf89oeum] {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Alert styles */
.alert[b-dkdf89oeum] {
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.alert-danger[b-dkdf89oeum] {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning[b-dkdf89oeum] {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Prompt Form Styles */
[b-dkdf89oeum] .prompt-form {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[b-dkdf89oeum] .prompt-form h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
}

[b-dkdf89oeum] .form-group {
    margin-bottom: 1.5rem;
}

[b-dkdf89oeum] .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #555;
}

[b-dkdf89oeum] .form-group textarea,
[b-dkdf89oeum] .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

[b-dkdf89oeum] .form-group textarea:focus,
[b-dkdf89oeum] .form-group select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

[b-dkdf89oeum] .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

[b-dkdf89oeum] .radio-group,
[b-dkdf89oeum] .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

[b-dkdf89oeum] .radio-group label,
[b-dkdf89oeum] .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

[b-dkdf89oeum] .btn-primary {
    background: #0066cc;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 600;
}

[b-dkdf89oeum] .btn-primary:hover:not(:disabled) {
    background: #0052a3;
}

[b-dkdf89oeum] .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Progress Panel Styles */
[b-dkdf89oeum] .progress-panel {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[b-dkdf89oeum] .iteration-badge {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #e3f2fd;
    border-radius: 4px;
    color: #1976d2;
    font-size: 0.95rem;
}

[b-dkdf89oeum] .timeline {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

[b-dkdf89oeum] .timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
}

[b-dkdf89oeum] .timeline-marker {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: #e0e0e0;
    transition: all 0.3s ease;
}

[b-dkdf89oeum] .timeline-item.active .timeline-marker {
    background: #ffc107;
    animation: pulse-b-dkdf89oeum 1.5s ease-in-out infinite;
}

[b-dkdf89oeum] .timeline-item.complete .timeline-marker {
    background: #28a745;
}

[b-dkdf89oeum] .timeline-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
}

@keyframes pulse-b-dkdf89oeum {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

[b-dkdf89oeum] .spinner {
    display: inline-block;
    animation: spin-b-dkdf89oeum 1s linear infinite;
}

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

/* Evaluation Scorecard Styles */
[b-dkdf89oeum] .evaluation-scorecard {
    background: #f0f8ff;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid #b3d9ff;
}

[b-dkdf89oeum] .evaluation-scorecard h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #0066cc;
}

[b-dkdf89oeum] .score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

[b-dkdf89oeum] .score-row:last-child {
    border-bottom: none;
}

[b-dkdf89oeum] .score-row label {
    font-weight: 600;
    margin-bottom: 0;
}

[b-dkdf89oeum] .score-row .pass {
    color: #28a745;
    font-weight: 600;
}

[b-dkdf89oeum] .score-row .fail {
    color: #dc3545;
    font-weight: 600;
}

/* Progress Bar Styles */
[b-dkdf89oeum] .progress-bar-container {
    position: relative;
    width: 200px;
    height: 24px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

[b-dkdf89oeum] .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #5cb85c);
    transition: width 0.3s ease;
}

[b-dkdf89oeum] .progress-bar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

/* Findings Styles */
[b-dkdf89oeum] .findings {
    margin-top: 1rem;
}

[b-dkdf89oeum] .findings h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

[b-dkdf89oeum] .finding-category {
    margin-bottom: 1rem;
}

[b-dkdf89oeum] .finding-category strong {
    color: #0066cc;
}

[b-dkdf89oeum] .finding-category ul {
    margin: 0.5rem 0 0 1.5rem;
}

[b-dkdf89oeum] .finding-category li {
    margin-bottom: 0.25rem;
}

[b-dkdf89oeum] .recommendation {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

/* Rubric Summary Styles */
[b-dkdf89oeum] .rubric-summary {
    background: #f0fff4;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid #9ae6b4;
}

[b-dkdf89oeum] .rubric-summary h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2f855a;
}

[b-dkdf89oeum] .rubric-header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

[b-dkdf89oeum] .ready-badge {
    padding: 0.5rem 1.5rem;
    background: #28a745;
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

[b-dkdf89oeum] .needs-work-badge {
    padding: 0.5rem 1.5rem;
    background: #ffc107;
    color: #333;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

[b-dkdf89oeum] .rubric-section {
    margin-bottom: 1.5rem;
}

[b-dkdf89oeum] .rubric-section:last-child {
    margin-bottom: 0;
}

[b-dkdf89oeum] .rubric-section h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #2f855a;
    font-size: 1.1rem;
}

[b-dkdf89oeum] .rubric-section p {
    line-height: 1.6;
    color: #333;
    margin: 0;
}

[b-dkdf89oeum] .strength-list,
[b-dkdf89oeum] .concern-list,
[b-dkdf89oeum] .focus-list {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}

[b-dkdf89oeum] .strength-list li,
[b-dkdf89oeum] .concern-list li,
[b-dkdf89oeum] .focus-list li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

[b-dkdf89oeum] .strength-list li {
    color: #2f855a;
}

[b-dkdf89oeum] .concern-list li {
    color: #d97706;
}

[b-dkdf89oeum] .focus-list li {
    color: #0066cc;
}

/* Event Log Styles */
[b-dkdf89oeum] .event-log {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

[b-dkdf89oeum] .event-log h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #555;
}

[b-dkdf89oeum] .events {
    max-height: 200px;
    overflow-y: auto;
}

[b-dkdf89oeum] .event {
    padding: 0.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

[b-dkdf89oeum] .event:last-child {
    border-bottom: none;
}

[b-dkdf89oeum] .event .timestamp {
    color: #666;
    font-family: monospace;
    min-width: 70px;
}

[b-dkdf89oeum] .event .type {
    font-weight: 600;
    color: #333;
}

[b-dkdf89oeum] .event .phase {
    color: #0066cc;
    font-style: italic;
}

[b-dkdf89oeum] .metadata {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
    color: #666;
    font-size: 0.9rem;
}

/* Refinement Panel Styles */
[b-dkdf89oeum] .refinement-panel {
    background: #fff3cd;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[b-dkdf89oeum] .refinement-panel h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #856404;
}

[b-dkdf89oeum] .refine-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

[b-dkdf89oeum] .text-muted {
    color: #6c757d;
    font-style: italic;
}

/* Story Display Panel Styles */
[b-dkdf89oeum] .story-display-panel {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[b-dkdf89oeum] .story-display-panel h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #0066cc;
}

[b-dkdf89oeum] .story-content {
    margin-top: 1rem;
}

[b-dkdf89oeum] .story-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

[b-dkdf89oeum] .story-metadata {
    color: #666;
    margin-bottom: 1.5rem;
}

[b-dkdf89oeum] .story-scenes {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

[b-dkdf89oeum] .story-scene {
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

[b-dkdf89oeum] .scene-title {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #0066cc;
}

[b-dkdf89oeum] .scene-setting {
    color: #666;
    margin-bottom: 1rem;
}

[b-dkdf89oeum] .scene-text {
    line-height: 1.6;
    margin-bottom: 1rem;
}

[b-dkdf89oeum] .scene-characters {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

[b-dkdf89oeum] .story-json-raw {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .agent-story-container[b-dkdf89oeum] {
        padding: 1rem;
    }

    [b-dkdf89oeum] .form-row {
        grid-template-columns: 1fr;
    }

    [b-dkdf89oeum] .timeline {
        flex-direction: column;
        align-items: center;
    }

    [b-dkdf89oeum] .progress-bar-container {
        width: 150px;
    }

    [b-dkdf89oeum] .score-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
/* /Pages/AuthCallback.razor.rz.scp.css */
.auth-callback-container[b-ywerkwjj4o] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 1rem;
    font-family: inherit;
}

.auth-callback-spinner[b-ywerkwjj4o] {
    width: 2rem;
    height: 2rem;
    border: 3px solid #e5e7eb;
    border-top-color: #0078d4;
    border-radius: 50%;
    animation: spin-b-ywerkwjj4o 0.8s linear infinite;
}

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

.auth-callback-error[b-ywerkwjj4o] {
    color: #dc2626;
}
/* /Pages/ManualOrchestrationStoryPage.razor.rz.scp.css */
/* ============================================
   Manual Orchestration Story Page Styles
   ============================================ */
.agent-story-container[b-6svrsz1jjy] {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.session-container[b-6svrsz1jjy] {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ============================================
   Alert Styles
   ============================================ */
.alert[b-6svrsz1jjy] {
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.alert-danger[b-6svrsz1jjy] {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning[b-6svrsz1jjy] {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* ============================================
   Evaluation Card
   ============================================ */
[b-6svrsz1jjy] .eval-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin-top: 0.5rem;
}

[b-6svrsz1jjy] .eval-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

[b-6svrsz1jjy] .eval-card-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
}

[b-6svrsz1jjy] .safety-badge {
    padding: 0.3rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
}

[b-6svrsz1jjy] .safety-pass {
    background: #d1fae5;
    color: #065f46;
}

[b-6svrsz1jjy] .safety-fail {
    background: #fee2e2;
    color: #991b1b;
}

/* Score Grid */
[b-6svrsz1jjy] .eval-scores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 0.5rem 0;
}

[b-6svrsz1jjy] .eval-score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #f9fafb;
}

[b-6svrsz1jjy] .eval-score-item:nth-last-child(-n+2) {
    border-bottom: none;
}

[b-6svrsz1jjy] .eval-score-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
}

/* Progress Bar Styles */
[b-6svrsz1jjy] .progress-bar-container {
    position: relative;
    width: 180px;
    height: 22px;
    background: #f3f4f6;
    border-radius: 11px;
    overflow: hidden;
}

[b-6svrsz1jjy] .progress-bar-fill {
    height: 100%;
    border-radius: 11px;
    transition: width 0.5s ease;
}

[b-6svrsz1jjy] .progress-bar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: #374151;
}

/* Findings */
[b-6svrsz1jjy] .eval-findings {
    padding: 1rem 1.5rem 0.5rem;
    border-top: 1px solid #f3f4f6;
}

[b-6svrsz1jjy] .eval-findings h4 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

[b-6svrsz1jjy] .findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

[b-6svrsz1jjy] .finding-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    padding: 1rem;
}

[b-6svrsz1jjy] .finding-card-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: #667eea;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

[b-6svrsz1jjy] .finding-card ul {
    margin: 0;
    padding-left: 1.25rem;
}

[b-6svrsz1jjy] .finding-card li {
    font-size: 0.825rem;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

[b-6svrsz1jjy] .eval-recommendation {
    padding: 0.875rem 1.5rem;
    margin: 0.5rem 1.5rem 1.5rem;
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #92400e;
}

/* ============================================
   Rubric Card
   ============================================ */
[b-6svrsz1jjy] .rubric-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

[b-6svrsz1jjy] .rubric-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

[b-6svrsz1jjy] .rubric-card-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
}

[b-6svrsz1jjy] .rubric-badge {
    padding: 0.3rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
}

[b-6svrsz1jjy] .rubric-ready {
    background: #d1fae5;
    color: #065f46;
}

[b-6svrsz1jjy] .rubric-needs-work {
    background: #fef3c7;
    color: #92400e;
}

[b-6svrsz1jjy] .rubric-summary-text {
    padding: 1rem 1.5rem 0;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

[b-6svrsz1jjy] .rubric-sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
    padding: 1rem 1.5rem;
}

[b-6svrsz1jjy] .rubric-section-card {
    border-radius: 0.625rem;
    padding: 1rem;
    border: 1px solid transparent;
}

[b-6svrsz1jjy] .rubric-section-card h4 {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

[b-6svrsz1jjy] .rubric-section-card ul {
    margin: 0;
    padding-left: 1.25rem;
}

[b-6svrsz1jjy] .rubric-section-card li {
    font-size: 0.825rem;
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

[b-6svrsz1jjy] .rubric-strengths {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

[b-6svrsz1jjy] .rubric-strengths h4 { color: #166534; }
[b-6svrsz1jjy] .rubric-strengths li { color: #15803d; }

[b-6svrsz1jjy] .rubric-concerns {
    background: #fffbeb;
    border-color: #fde68a;
}

[b-6svrsz1jjy] .rubric-concerns h4 { color: #92400e; }
[b-6svrsz1jjy] .rubric-concerns li { color: #b45309; }

[b-6svrsz1jjy] .rubric-focus {
    background: #eff6ff;
    border-color: #bfdbfe;
}

[b-6svrsz1jjy] .rubric-focus h4 { color: #1e40af; }
[b-6svrsz1jjy] .rubric-focus li { color: #2563eb; }

[b-6svrsz1jjy] .rubric-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem 1.5rem;
}

[b-6svrsz1jjy] .rubric-actions .btn-primary,
[b-6svrsz1jjy] .rubric-actions .btn-secondary {
    flex: 1;
    text-align: center;
    justify-content: center;
}

/* ============================================
   Refinement Panel Styles
   ============================================ */
[b-6svrsz1jjy] .refinement-panel {
    background: #ffffff;
    padding: 1.75rem 2rem;
    border-radius: 1rem;
    border: 1px solid #fde68a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
}

[b-6svrsz1jjy] .refinement-panel h3 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: #92400e;
    font-size: 1.1rem;
}

[b-6svrsz1jjy] .refinement-panel textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #fcd34d;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    background-color: #ffffff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

[b-6svrsz1jjy] .refinement-panel textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

[b-6svrsz1jjy] .refine-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

[b-6svrsz1jjy] .text-muted {
    color: #9ca3af;
    font-style: italic;
}

/* ============================================
   Story Display Panel Styles
   ============================================ */
[b-6svrsz1jjy] .story-display-panel {
    background: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
}

[b-6svrsz1jjy] .story-display-panel h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #667eea;
    font-weight: 700;
}

[b-6svrsz1jjy] .story-content {
    margin-top: 1rem;
}

[b-6svrsz1jjy] .story-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

[b-6svrsz1jjy] .story-metadata {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

[b-6svrsz1jjy] .story-scenes {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

[b-6svrsz1jjy] .story-scene {
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border-left: 3px solid #667eea;
    transition: all 0.15s ease;
}

[b-6svrsz1jjy] .scene-clickable {
    cursor: pointer;
}

[b-6svrsz1jjy] .scene-clickable:hover {
    background: #f0f1ff;
    border-left-color: #4f46e5;
}

[b-6svrsz1jjy] .scene-selected {
    background: #eef2ff;
    border-left-color: #4f46e5;
    box-shadow: 0 0 0 1px #818cf8;
}

[b-6svrsz1jjy] .scene-selection-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    background: #eef2ff;
    border-radius: 0.5rem;
    border: 1px solid #c7d2fe;
}

[b-6svrsz1jjy] .selection-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4338ca;
}

[b-6svrsz1jjy] .btn-clear-selection {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid #a5b4fc;
    background: white;
    color: #4338ca;
    cursor: pointer;
    transition: all 0.15s ease;
}

[b-6svrsz1jjy] .btn-clear-selection:hover {
    background: #e0e7ff;
}

[b-6svrsz1jjy] .selected-scenes-yaml-section {
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #c7d2fe;
    border-top: none;
    border-radius: 0 0 0.75rem 0.75rem;
}

[b-6svrsz1jjy] .yaml-section-title {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
}

[b-6svrsz1jjy] .yaml-editor {
    width: 100%;
    font-family: monospace;
    font-size: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    padding: 0.75rem;
    resize: vertical;
    background: #ffffff;
    color: #1e293b;
    line-height: 1.5;
}

[b-6svrsz1jjy] .yaml-editor:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.2);
}

[b-6svrsz1jjy] .quick-refine-section {
    margin-top: 1rem;
    padding: 1rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.75rem;
}

[b-6svrsz1jjy] .quick-refine-title {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #92400e;
}

[b-6svrsz1jjy] .quick-refine-prompt {
    width: 100%;
    font-size: 0.875rem;
    border: 1px solid #fcd34d;
    border-radius: 0.375rem;
    padding: 0.75rem;
    resize: vertical;
    background: #ffffff;
    line-height: 1.5;
}

[b-6svrsz1jjy] .quick-refine-prompt:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

[b-6svrsz1jjy] .quick-refine-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

[b-6svrsz1jjy] .btn-quick-refine {
    flex: 1;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

[b-6svrsz1jjy] .btn-quick-refine:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

[b-6svrsz1jjy] .btn-quick-refine:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

[b-6svrsz1jjy] .btn-run-judge {
    flex: 1;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid #6366f1;
    background: white;
    color: #6366f1;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

[b-6svrsz1jjy] .btn-run-judge:hover:not(:disabled) {
    background: #eef2ff;
}

[b-6svrsz1jjy] .btn-run-judge:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

[b-6svrsz1jjy] .scene-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

[b-6svrsz1jjy] .scene-title {
    margin: 0;
    color: #667eea;
    font-size: 1.05rem;
    flex: 1;
}

[b-6svrsz1jjy] .btn-scroll-to-prompt {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: background 0.15s, border-color 0.15s;
}

[b-6svrsz1jjy] .btn-scroll-to-prompt:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}

[b-6svrsz1jjy] .scene-setting {
    color: #6b7280;
    margin-bottom: 0.75rem;
}

[b-6svrsz1jjy] .scene-text {
    line-height: 1.65;
    margin-bottom: 0.75rem;
    color: #374151;
}

[b-6svrsz1jjy] .scene-characters {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0;
}

[b-6svrsz1jjy] .story-json-raw {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-size: 0.85rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .agent-story-container[b-6svrsz1jjy] {
        padding: 1rem;
    }

    [b-6svrsz1jjy] .h-timeline {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    [b-6svrsz1jjy] .h-timeline-connector {
        display: none;
    }

    [b-6svrsz1jjy] .eval-scores-grid {
        grid-template-columns: 1fr;
    }

    [b-6svrsz1jjy] .findings-grid {
        grid-template-columns: 1fr;
    }

    [b-6svrsz1jjy] .rubric-sections {
        grid-template-columns: 1fr;
    }

    [b-6svrsz1jjy] .progress-bar-container {
        width: 130px;
    }

    [b-6svrsz1jjy] .eval-score-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
/* /Pages/SignIn.razor.rz.scp.css */
/* ============================================================
   SignIn page — scoped styles (story-generator web)
   ============================================================ */

.signin-container[b-g5vnn2ay1k] {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
}

.signin-card[b-g5vnn2ay1k] {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
}

.signin-header[b-g5vnn2ay1k] {
    text-align: center;
    margin-bottom: 2rem;
}

.signin-title[b-g5vnn2ay1k] {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem;
}

.signin-subtitle[b-g5vnn2ay1k] {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0;
}

.signin-actions[b-g5vnn2ay1k] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.signin-error[b-g5vnn2ay1k] {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 0.375rem;
    color: #b91c1c;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.signin-loading[b-g5vnn2ay1k] {
    text-align: center;
    padding: 1.5rem 0;
    color: #6b7280;
}

.signin-loading p[b-g5vnn2ay1k] {
    margin: 0.75rem 0 0;
    font-size: 0.9375rem;
}

.signin-spinner[b-g5vnn2ay1k] {
    border: 3px solid #e5e7eb;
    border-top-color: #667eea;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: signin-spin-b-g5vnn2ay1k 0.9s linear infinite;
    margin: 0 auto;
}

@keyframes signin-spin-b-g5vnn2ay1k {
    to { transform: rotate(360deg); }
}
