/* Sentinal - Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #f4f6fb;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --sidebar: #0f172a;
    --sidebar-text: #e2e8f0;
    --accent: #2563eb;
    --accent-contrast: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --bg-image: url("https://images.unsplash.com/photo-1769541607705-3b3c5095679b?auto=format&fit=crop&fm=jpg&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&ixlib=rb-4.1.0&q=80&w=2400");
    --bg-image-opacity: 0.12;
}

.theme-dark {
    --bg: #0b0f1a;
    --surface: #0f172a;
    --surface-2: #111827;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --border: #1f2937;
    --sidebar: #0b1220;
    --sidebar-text: #cbd5f5;
    --accent: #60a5fa;
    --accent-contrast: #0b1220;
    --success: #34d399;
    --danger: #f87171;
    --warning: #fbbf24;
    --shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
    --bg-image: url("https://images.unsplash.com/photo-1753837738655-538ad235ce41?auto=format&fit=crop&fm=jpg&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&ixlib=rb-4.1.0&q=75&w=2400");
    --bg-image-opacity: 0.16;
}

html, body {
    font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

body {
    position: relative;
    min-height: 100%;
    isolation: isolate;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    opacity: var(--bg-image-opacity);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(1200px 600px at 15% 10%, rgba(37, 99, 235, 0.12), transparent 60%),
                radial-gradient(900px 500px at 85% 15%, rgba(16, 185, 129, 0.10), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.app-shell {
    position: relative;
    z-index: 1;
}

/* Surface and text overrides for dark theme */
.theme-dark .bg-white { background-color: var(--surface) !important; }
.theme-dark .bg-gray-50 { background-color: var(--surface-2) !important; }
.theme-dark .bg-slate-50 { background-color: var(--surface-2) !important; }
.theme-dark .bg-slate-50\/50 { background-color: rgba(15, 23, 42, 0.6) !important; }
.theme-dark .bg-slate-800 { background-color: var(--sidebar) !important; }
.theme-dark .bg-slate-900 { background-color: #0b1220 !important; }

.theme-dark .text-slate-800 { color: var(--text) !important; }
.theme-dark .text-slate-700 { color: var(--text) !important; }
.theme-dark .text-slate-600 { color: var(--muted) !important; }
.theme-dark .text-slate-500 { color: var(--muted) !important; }
.theme-dark .text-slate-400 { color: #94a3b8 !important; }
.theme-dark .text-slate-300 { color: #cbd5f5 !important; }
.theme-dark .text-white { color: #ffffff !important; }
.theme-dark .text-slate-200 { color: #e2e8f0 !important; }
.theme-dark .text-slate-100 { color: #f1f5f9 !important; }
.theme-dark .text-slate-900 { color: #f8fafc !important; }

.theme-dark .border-slate-200 { border-color: var(--border) !important; }
.theme-dark .border-slate-100 { border-color: #1e293b !important; }
.theme-dark .border-slate-700 { border-color: #1f2937 !important; }
.theme-dark .border-slate-300 { border-color: #253046 !important; }
.theme-dark .border-slate-400 { border-color: #2b3750 !important; }
.theme-dark .divide-slate-100 > :not([hidden]) ~ :not([hidden]) { border-color: #1e293b !important; }

.theme-dark .shadow-sm { box-shadow: var(--shadow) !important; }

.theme-dark .bg-slate-200 { background-color: rgba(148, 163, 184, 0.18) !important; }
.theme-dark .bg-slate-300 { background-color: rgba(148, 163, 184, 0.22) !important; }
.theme-dark .bg-slate-400 { background-color: rgba(148, 163, 184, 0.28) !important; }

.theme-dark .bg-blue-50 { background-color: rgba(59, 130, 246, 0.12) !important; }
.theme-dark .bg-blue-100 { background-color: rgba(59, 130, 246, 0.18) !important; }
.theme-dark .text-blue-700 { color: #93c5fd !important; }
.theme-dark .text-emerald-800 { color: #a7f3d0 !important; }
.theme-dark .text-red-800 { color: #fecaca !important; }
.theme-dark .text-amber-800 { color: #fde68a !important; }

.theme-dark .bg-blue-600 { background-color: #3b82f6 !important; }
.theme-dark .bg-blue-700 { background-color: #2563eb !important; }
.theme-dark .bg-emerald-50 { background-color: rgba(16, 185, 129, 0.12) !important; }
.theme-dark .bg-red-50 { background-color: rgba(239, 68, 68, 0.12) !important; }
.theme-dark .bg-amber-50 { background-color: rgba(245, 158, 11, 0.12) !important; }

.theme-dark .bg-emerald-100 { background-color: rgba(16, 185, 129, 0.2) !important; }
.theme-dark .bg-amber-100 { background-color: rgba(245, 158, 11, 0.2) !important; }
.theme-dark .bg-red-100 { background-color: rgba(239, 68, 68, 0.2) !important; }

.theme-dark .bg-slate-100 { background-color: rgba(148, 163, 184, 0.15) !important; }
.theme-dark .bg-slate-50 { background-color: rgba(148, 163, 184, 0.08) !important; }

.theme-dark input,
.theme-dark select,
.theme-dark textarea {
    background-color: #0b1220 !important;
    color: var(--text) !important;
    border-color: #253046 !important;
}

.theme-dark input::placeholder,
.theme-dark textarea::placeholder {
    color: #64748b !important;
}

.theme-dark .bg-slate-700\/50,
.theme-dark .bg-slate-700\/60,
.theme-dark .bg-slate-700 {
    background-color: rgba(15, 23, 42, 0.7) !important;
}

.theme-dark .bg-white\/10 { background-color: rgba(255, 255, 255, 0.08) !important; }
.theme-dark .border-white\/10 { border-color: rgba(255, 255, 255, 0.12) !important; }
.theme-dark .text-slate-300 { color: #cbd5f5 !important; }

/* Smooth page transitions */
main {
    animation: fadeIn 0.18s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* List/table hover system */
tbody tr,
tr.hover\:bg-slate-50,
tr.table-row-hover {
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

tr.hover\:bg-slate-50:hover,
tr.table-row-hover:hover {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.05)) !important;
    box-shadow: inset 3px 0 0 rgba(37, 99, 235, 0.55);
    transform: translateX(1px);
}

.theme-dark tr.hover\:bg-slate-50:hover,
.theme-dark tr.table-row-hover:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.18), rgba(16, 185, 129, 0.12)) !important;
    box-shadow: inset 3px 0 0 rgba(96, 165, 250, 0.95);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Progress indicators */
.progress-indeterminate {
    position: relative;
    height: 6px;
    border-radius: 9999px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.2);
    border: 1px solid var(--border);
}

.progress-indeterminate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: progressIndeterminate 1.2s ease infinite;
}

@keyframes progressIndeterminate {
    0% { left: -40%; }
    100% { left: 100%; }
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.status-dot.warning {
    background: var(--warning);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.status-dot.success {
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.status-dot.danger {
    background: var(--danger);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
}

/* Sentinal logo polish */
.sentinal-logo {
    filter: drop-shadow(0 8px 18px rgba(59, 130, 246, 0.28));
}

.theme-dark .sentinal-logo {
    filter: drop-shadow(0 8px 20px rgba(96, 165, 250, 0.45));
}

/* Login theme toggle */
.login-theme-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    color: var(--text);
    backdrop-filter: blur(10px);
}

.theme-dark .login-theme-toggle {
    background: rgba(15, 23, 42, 0.9);
    border-color: var(--border);
}

.login-presentation-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.login-presentation-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
    border-color: rgba(37, 99, 235, 0.4);
}

/* Global security alert overlay */
.security-alert-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-alert-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
}

.security-alert-panel {
    position: relative;
    width: min(840px, calc(100% - 48px));
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    border-radius: 20px;
    overflow: hidden;
}

.security-alert-header {
    padding: 24px 28px 16px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(59, 130, 246, 0.12));
    border-bottom: 1px solid var(--border);
}

.security-alert-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin: 8px 0 6px;
}

.security-alert-header p {
    font-size: 14px;
    color: var(--muted);
}

.security-alert-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #991b1b;
    background: rgba(239, 68, 68, 0.15);
}

.theme-dark .security-alert-badge {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.25);
}

.security-alert-body {
    padding: 20px 28px;
    max-height: 50vh;
    overflow-y: auto;
}

.security-alert-list {
    display: grid;
    gap: 12px;
}

.security-alert-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    background: var(--surface-2);
}

.security-alert-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.security-alert-item p {
    font-size: 13px;
    color: var(--muted);
}

.security-alert-footer {
    padding: 16px 28px 22px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.security-alert-link {
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    background: var(--surface-2);
}

.security-alert-dismiss {
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    background: #ef4444;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.security-alert-dismiss:hover {
    background: #dc2626;
}

/* Servers page bulk backup button dark theme */
.theme-dark .bulk-run-btn {
    background-color: #10b981 !important;
    color: #ffffff !important;
}

.theme-dark .bulk-run-btn:hover {
    background-color: #059669 !important;
}

.theme-dark .bulk-run-btn:disabled {
    background-color: #334155 !important;
    color: #94a3b8 !important;
    border: 1px solid #475569;
}

/* User manual */
.manual-shell {
    align-items: flex-start;
}

.manual-toc-card {
    min-height: 320px;
}

.manual-toc-link {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: #475569;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.manual-toc-link:hover {
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}

.manual-section {
    box-shadow: var(--shadow);
}

.manual-grid-2 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
}

.manual-grid-3 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
}

@media (min-width: 860px) {
    .manual-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .manual-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.manual-pill-card,
.manual-padded-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), var(--surface-2));
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.manual-pill-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.manual-pill-card p {
    font-size: 13px;
    color: var(--muted);
}

.manual-diagram {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.7), var(--surface-2));
    border-radius: 12px;
    padding: 12px 14px;
    overflow-x: auto;
}

.manual-callout {
    border-left: 4px solid var(--accent);
    background: rgba(37, 99, 235, 0.08);
    border-radius: 8px;
    padding: 10px 12px;
}

.manual-list {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.manual-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
}

.manual-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #38bdf8, #22c55e);
}

.manual-ordered {
    list-style: decimal;
    margin-left: 18px;
}

.manual-ordered li {
    margin-bottom: 8px;
}

.theme-dark .manual-toc-link {
    color: #cbd5f5;
}

.theme-dark .manual-toc-link:hover {
    background: rgba(96, 165, 250, 0.2);
    color: #bfdbfe;
}

.theme-dark .manual-callout {
    background: rgba(96, 165, 250, 0.12);
}

/* Manual overhaul */
.manual-card {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), var(--surface));
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.manual-section-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(148, 163, 184, 0.2);
}

@media (min-width: 768px) {
    .manual-section-header {
        flex-direction: row;
        align-items: center;
    }
}

.manual-section-header h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
}

.manual-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

.manual-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.manual-version {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--muted);
}

.manual-badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.manual-badge--muted {
    color: #1e293b;
    background: rgba(148, 163, 184, 0.22);
    border-color: rgba(148, 163, 184, 0.25);
}

.manual-body {
    margin-top: 14px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.manual-section {
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.manual-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 240px at 10% 0%, rgba(59, 130, 246, 0.12), transparent 70%),
                radial-gradient(500px 260px at 90% 10%, rgba(16, 185, 129, 0.08), transparent 70%);
    opacity: 0.8;
    pointer-events: none;
}

.manual-section > * {
    position: relative;
    z-index: 1;
}

.manual-toc-header {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.manual-toc-subtitle {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 14px;
}

.manual-table {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.7), var(--surface-2));
}

.manual-table-row {
    display: grid;
    grid-template-columns: 160px 1fr 1fr;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text);
}

.manual-table-row:last-child {
    border-bottom: none;
}

.manual-table-head {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    background: rgba(148, 163, 184, 0.18);
    font-weight: 600;
}

@media (max-width: 860px) {
    .manual-table-row {
        grid-template-columns: 1fr;
    }
}

.manual-diagram-block {
    border-radius: 14px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.7), var(--surface-2));
    padding: 16px;
}

.manual-diagram-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
}

.manual-diagram {
    display: grid;
    gap: 12px;
}

/* Flow diagram */
.flow-diagram .flow-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.flow-diagram .flow-row--split {
    justify-content: space-between;
}

.flow-node {
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.flow-node--accent {
    border-color: rgba(37, 99, 235, 0.4);
    background: rgba(37, 99, 235, 0.12);
    color: #1e3a8a;
}

.flow-node--wide {
    flex: 1 1 100%;
    text-align: center;
}

.flow-arrow {
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.8));
    position: relative;
}

.flow-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    border-left: 6px solid rgba(37, 99, 235, 0.8);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.flow-arrow--down {
    width: 2px;
    height: 22px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.8));
}

.flow-arrow--down::after {
    right: -4px;
    top: auto;
    bottom: -4px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(37, 99, 235, 0.8);
    border-bottom: none;
}

/* Timeline diagram */
.timeline-diagram {
    display: grid;
    gap: 16px;
}

.timeline-step {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
}

.timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.14);
    color: #1d4ed8;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.timeline-step h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.timeline-step p {
    font-size: 13px;
    color: var(--muted);
}

/* Storage diagram */
.storage-diagram {
    display: grid;
    gap: 12px;
}

.storage-tier {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
}

.storage-tier h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.storage-tier p {
    font-size: 13px;
    color: var(--muted);
}

.storage-tier--primary {
    border-left: 4px solid #1d4ed8;
}

.storage-tier--secondary {
    border-left: 4px solid #10b981;
}

.storage-tier--tertiary {
    border-left: 4px solid #f59e0b;
}

/* Status diagram */
.status-diagram {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.status-step {
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
}

.status-step--pending { color: #b45309; background: rgba(245, 158, 11, 0.12); }
.status-step--running { color: #2563eb; background: rgba(59, 130, 246, 0.12); }
.status-step--verify { color: #475569; background: rgba(148, 163, 184, 0.18); }
.status-step--success { color: #047857; background: rgba(16, 185, 129, 0.12); }
.status-step--failed { color: #b91c1c; background: rgba(239, 68, 68, 0.12); }

.status-arrow {
    width: 20px;
    height: 2px;
    background: rgba(148, 163, 184, 0.5);
    position: relative;
}

.status-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    border-left: 6px solid rgba(148, 163, 184, 0.6);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

/* Event diagram */
.event-diagram {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.event-node {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.event-arrow {
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.8));
    position: relative;
}

.event-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    border-left: 6px solid rgba(16, 185, 129, 0.8);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.theme-dark .manual-badge {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(96, 165, 250, 0.4);
}

.theme-dark .manual-badge--muted {
    color: #cbd5f5;
    background: rgba(148, 163, 184, 0.2);
}

.theme-dark .manual-table-head {
    background: rgba(148, 163, 184, 0.2);
}

.theme-dark .flow-node--accent {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.18);
}

.theme-dark .manual-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(11, 18, 32, 0.96));
}

.theme-dark .manual-section-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.12));
    border-color: rgba(96, 165, 250, 0.25);
}

.theme-dark .manual-kicker,
.theme-dark .manual-diagram-title {
    color: #cbd5f5;
}

.theme-dark .manual-pill-card,
.theme-dark .manual-padded-card,
.theme-dark .manual-diagram-block,
.theme-dark .manual-table {
    background: rgba(15, 23, 42, 0.75);
}

.theme-dark .manual-diagram {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(11, 18, 32, 0.98));
    border-color: rgba(96, 165, 250, 0.22);
}

.theme-dark .flow-node,
.theme-dark .timeline-step,
.theme-dark .storage-tier,
.theme-dark .status-step,
.theme-dark .event-node {
    background: rgba(11, 18, 32, 0.85);
    border-color: rgba(148, 163, 184, 0.24);
    color: #e2e8f0;
}

.theme-dark .flow-node--accent {
    background: rgba(59, 130, 246, 0.24);
    border-color: rgba(96, 165, 250, 0.55);
    color: #e0f2fe;
}

.theme-dark .timeline-dot {
    background: rgba(96, 165, 250, 0.2);
    color: #bfdbfe;
}

.theme-dark .status-step--pending { color: #fcd34d; background: rgba(245, 158, 11, 0.22); }
.theme-dark .status-step--running { color: #93c5fd; background: rgba(59, 130, 246, 0.22); }
.theme-dark .status-step--verify { color: #cbd5f5; background: rgba(148, 163, 184, 0.22); }
.theme-dark .status-step--success { color: #a7f3d0; background: rgba(16, 185, 129, 0.22); }
.theme-dark .status-step--failed { color: #fecaca; background: rgba(239, 68, 68, 0.22); }

.theme-dark .manual-section-header h2,
.theme-dark .manual-title {
    color: #f8fafc;
}

.theme-dark .manual-body,
.theme-dark .manual-list li,
.theme-dark .manual-ordered li,
.theme-dark .manual-table-row {
    color: #cbd5f5;
}

.theme-dark .manual-table-row {
    border-bottom-color: rgba(148, 163, 184, 0.18);
}

.theme-dark .storage-tier--primary { border-left-color: #60a5fa; }
.theme-dark .storage-tier--secondary { border-left-color: #34d399; }
.theme-dark .storage-tier--tertiary { border-left-color: #fbbf24; }

.theme-dark .manual-list li::before {
    background: linear-gradient(135deg, #60a5fa, #34d399);
}
