/* ═══════════════════════════════════════════════════════════
   SUPORTE EVENTOS — Design System v2.0
   Modern ticketing support app stylesheet
   ═══════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ───────────────────────────────── */
:root {
    /* Brand */
    --se-brand:           #f97316;
    --se-brand-dark:      #ea580c;
    --se-brand-darker:    #c2410c;
    --se-brand-light:     #fff7ed;
    --se-brand-alpha:     rgba(249, 115, 22, 0.12);

    /* Layout */
    --se-header-height:   64px;
    --se-sidebar-width:   248px;

    /* Radius */
    --se-radius:          8px;
    --se-radius-md:       12px;
    --se-radius-lg:       16px;
    --se-radius-pill:     100px;

    /* Transitions */
    --se-transition:      0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --se-transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --se-shadow-xs:    0 1px 2px rgba(0, 0, 0, 0.05);
    --se-shadow-sm:    0 1px 4px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
    --se-shadow-md:    0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.05);
    --se-shadow-lg:    0 12px 32px rgba(0, 0, 0, 0.10), 0 4px 8px rgba(0, 0, 0, 0.06);
    --se-shadow-brand: 0 6px 20px rgba(249, 115, 22, 0.28);

    /* Status palette */
    --se-open:              #3b82f6;
    --se-open-bg:           #eff6ff;
    --se-open-border:       #bfdbfe;
    --se-open-text:         #1d4ed8;

    --se-progress:          #f59e0b;
    --se-progress-bg:       #fffbeb;
    --se-progress-border:   #fde68a;
    --se-progress-text:     #92400e;

    --se-resolved:          #10b981;
    --se-resolved-bg:       #f0fdf4;
    --se-resolved-border:   #a7f3d0;
    --se-resolved-text:     #065f46;

    --se-closed:            #94a3b8;
    --se-closed-bg:         #f8fafc;
    --se-closed-border:     #e2e8f0;
    --se-closed-text:       #475569;

    --se-breached:          #ef4444;
    --se-breached-bg:       #fef2f2;
    --se-breached-border:   #fecaca;
    --se-breached-text:     #991b1b;

    --se-atrisk:            #f97316;
    --se-atrisk-bg:         #fff7ed;
    --se-atrisk-border:     #fed7aa;
    --se-atrisk-text:       #9a3412;

    --se-info:              #06b6d4;
    --se-info-bg:           #ecfeff;
    --se-info-border:       #a5f3fc;
    --se-info-text:         #0e7490;

    /* Sidebar */
    --se-sidebar-bg:        #0f172a;
    --se-sidebar-surface:   #1e293b;
    --se-sidebar-text:      #94a3b8;
    --se-sidebar-text-muted: rgba(148, 163, 184, 0.5);
    --se-sidebar-border:    rgba(255, 255, 255, 0.05);
    --se-sidebar-hover:     rgba(255, 255, 255, 0.06);
    --se-sidebar-active:    rgba(249, 115, 22, 0.12);
}

/* ─── Base Reset ──────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1:focus { outline: none; }

/* ─── Validation ──────────────────────────────────────────── */
.valid.modified:not([type=checkbox]) { outline: 1px solid var(--se-resolved); }
.invalid                              { outline: 1px solid var(--se-breached); }
.validation-message                   { color: var(--se-breached); font-size: 0.8rem; }

.blazor-error-boundary {
    background: var(--se-breached);
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: var(--se-radius);
}
.blazor-error-boundary::after { content: "Ocorreu um erro inesperado."; }

/* ─── Global Scrollbar ────────────────────────────────────── */
::-webkit-scrollbar             { width: 6px; height: 6px; }
::-webkit-scrollbar-track       { background: transparent; }
::-webkit-scrollbar-thumb       { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ─── Layout ──────────────────────────────────────────────── */
.page-content {
    padding: 1.75rem 2rem;
    max-width: 1600px;
}

/* ─── Top Navigation Items (staff header) ─────────────────── */
.se-topnav-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--se-radius);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--se-transition), color var(--se-transition);
    user-select: none;
    font-family: 'Inter', -apple-system, sans-serif;
}

.se-topnav-item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.se-topnav-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
}

/* ─── Admin Dropdown ──────────────────────────────────────── */
.se-admin-dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 210px;
    background: #fff;
    border-radius: var(--se-radius-md);
    box-shadow: var(--se-shadow-lg);
    z-index: 200;
    padding: 0.375rem;
    border: 1px solid var(--rz-base-300);
}

.se-admin-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--se-radius);
    cursor: pointer;
    transition: background var(--se-transition), color var(--se-transition);
    color: #334155;
    font-size: 0.875rem;
    font-weight: 500;
    user-select: none;
    font-family: 'Inter', -apple-system, sans-serif;
}

.se-admin-dropdown-item:hover {
    background: var(--se-brand-light);
    color: var(--se-brand-dark);
}

/* ─── Header Elements ─────────────────────────────────────── */
.se-logo-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--se-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    flex-shrink: 0;
}

.se-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.28);
    letter-spacing: 0.04em;
}

.se-header-sep {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 0.125rem;
    flex-shrink: 0;
}

/* ─── Customer Portal Nav Links ───────────────────────────── */
.se-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--se-radius-pill);
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--se-transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.se-nav-link:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff !important;
}

.se-nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.25);
}

/* ─── Staff Navigation ────────────────────────────────────── */
.staff-nav-container {
    padding: 0.75rem 0.625rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, sans-serif;
}

.staff-nav-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.staff-nav-section-label {
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--se-sidebar-text-muted);
    padding: 1rem 0.875rem 0.375rem;
}

.staff-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background var(--se-transition), color var(--se-transition);
    color: var(--se-sidebar-text);
    font-weight: 500;
    font-size: 0.875rem;
    user-select: none;
    position: relative;
    overflow: hidden;
}

/* Left accent bar */
.staff-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 55%;
    background: var(--se-brand);
    border-radius: 0 3px 3px 0;
    transition: transform var(--se-transition);
}

.staff-nav-item:hover {
    background: var(--se-sidebar-hover);
    color: #e2e8f0;
}

.staff-nav-item.active {
    background: var(--se-sidebar-active);
    color: #fff;
    font-weight: 600;
}

.staff-nav-item.active::before {
    transform: translateY(-50%) scaleY(1);
}

.staff-nav-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    transition: color var(--se-transition);
}

.staff-nav-item.active .staff-nav-icon {
    color: var(--se-brand);
}

.staff-nav-label {
    flex: 1;
    color: inherit;
}

/* Nav divider */
.staff-nav-divider {
    height: 1px;
    background: var(--se-sidebar-border);
    margin: 0.75rem 0.5rem;
}

/* Admin section */
.staff-nav-admin-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.55rem 0.875rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background var(--se-transition), color var(--se-transition);
    color: var(--se-sidebar-text-muted);
    font-weight: 700;
    font-size: 0.63rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    user-select: none;
}

.staff-nav-admin-header:hover {
    background: var(--se-sidebar-hover);
    color: var(--se-sidebar-text);
}

.staff-nav-admin-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 0.5rem;
}

.staff-nav-item-admin {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.55rem 0.875rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--se-transition);
    color: rgba(148, 163, 184, 0.75);
    font-weight: 500;
    font-size: 0.825rem;
    user-select: none;
    border-left: 2px solid rgba(255, 255, 255, 0.03);
}

.staff-nav-item-admin:hover {
    background: var(--se-sidebar-hover);
    color: #e2e8f0;
    border-left-color: rgba(255, 255, 255, 0.12);
}

.staff-nav-item-admin.active {
    background: var(--se-sidebar-active);
    color: #fdba74;
    border-left-color: var(--se-brand);
}

.staff-nav-expand {
    transition: transform var(--se-transition-slow);
    margin-left: auto;
    font-size: 1.1rem !important;
}

/* ─── Stat Cards ──────────────────────────────────────────── */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.stat-card {
    min-width: 0;
}

.stat-card-inner {
    padding: 1.375rem 1.25rem 1.125rem !important;
    border-radius: var(--se-radius-md) !important;
    transition: transform var(--se-transition), box-shadow var(--se-transition) !important;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--rz-base-300) !important;
    box-shadow: var(--se-shadow-sm) !important;
    background: var(--rz-base-background) !important;
}

/* Decorative glow in top-right corner */
.stat-card-inner::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0.06;
    transition: opacity var(--se-transition);
}

.stat-card-inner:hover {
    transform: translateY(-4px);
    box-shadow: var(--se-shadow-lg) !important;
}

.stat-card-inner:hover::after {
    opacity: 0.1;
}

.stat-open::after     { background: var(--se-open); }
.stat-pending::after  { background: var(--se-progress); }
.stat-resolved::after { background: var(--se-resolved); }
.stat-breached::after { background: var(--se-breached); }
.stat-atrisk::after   { background: var(--se-atrisk); }
.stat-chats::after    { background: var(--se-info); }

.stat-icon {
    font-size: 1.4rem;
    margin-bottom: 0.875rem;
    font-family: 'Material Symbols Outlined', 'Material Icons';
    display: block;
    line-height: 1;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.35rem;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    color: var(--rz-text-color);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--rz-text-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 600;
}

/* Top accent border per status */
.stat-open     { border-top: 3px solid var(--se-open)     !important; }
.stat-pending  { border-top: 3px solid var(--se-progress) !important; }
.stat-resolved { border-top: 3px solid var(--se-resolved) !important; }
.stat-breached { border-top: 3px solid var(--se-breached) !important; }
.stat-atrisk   { border-top: 3px solid var(--se-atrisk)   !important; }
.stat-chats    { border-top: 3px solid var(--se-info)     !important; }

.stat-icon-open     { color: var(--se-open); }
.stat-icon-pending  { color: var(--se-progress); }
.stat-icon-resolved { color: var(--se-resolved); }
.stat-icon-breached { color: var(--se-breached); }
.stat-icon-atrisk   { color: var(--se-atrisk); }
.stat-icon-chats    { color: var(--se-info); }

/* ─── Section Headers ─────────────────────────────────────── */
.se-section-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--rz-base-300);
    margin-bottom: 1.25rem;
}

.se-section-header-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--se-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ─── Status Badges ───────────────────────────────────────── */
.se-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--se-radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border: 1px solid transparent;
}

.se-badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Status badge variants */
.se-badge-open     { background: var(--se-open-bg);     color: var(--se-open-text);     border-color: var(--se-open-border); }
.se-badge-open     .se-badge-dot { background: var(--se-open); }

.se-badge-progress { background: var(--se-progress-bg); color: var(--se-progress-text); border-color: var(--se-progress-border); }
.se-badge-progress .se-badge-dot { background: var(--se-progress); }

.se-badge-resolved { background: var(--se-resolved-bg); color: var(--se-resolved-text); border-color: var(--se-resolved-border); }
.se-badge-resolved .se-badge-dot { background: var(--se-resolved); }

.se-badge-closed   { background: var(--se-closed-bg);   color: var(--se-closed-text);   border-color: var(--se-closed-border); }
.se-badge-closed   .se-badge-dot { background: var(--se-closed); }

.se-badge-breached { background: var(--se-breached-bg); color: var(--se-breached-text); border-color: var(--se-breached-border); }
.se-badge-breached .se-badge-dot { background: var(--se-breached); }

.se-badge-atrisk   { background: var(--se-atrisk-bg);   color: var(--se-atrisk-text);   border-color: var(--se-atrisk-border); }
.se-badge-atrisk   .se-badge-dot { background: var(--se-atrisk); }

.se-badge-sla-ok   { background: var(--se-resolved-bg); color: var(--se-resolved-text); border-color: var(--se-resolved-border); }
.se-badge-sla-ok   .se-badge-dot { background: var(--se-resolved); }

/* Priority badge variants */
.se-badge-priority-normal  { background: var(--se-closed-bg);   color: var(--se-closed-text);   border-color: var(--se-closed-border); }
.se-badge-priority-alta    { background: var(--se-progress-bg); color: var(--se-progress-text); border-color: var(--se-progress-border); }
.se-badge-priority-urgente { background: var(--se-breached-bg); color: var(--se-breached-text); border-color: var(--se-breached-border); }

/* ─── Email Body Display ──────────────────────────────────── */
.email-body-frame {
    background: #ffffff;
    border: 1px solid var(--rz-base-300);
    border-radius: var(--se-radius);
    padding: 1.5rem;
    max-height: 520px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #1e293b;
}

.email-body-frame::-webkit-scrollbar       { width: 5px; }
.email-body-frame::-webkit-scrollbar-track  { background: transparent; }
.email-body-frame::-webkit-scrollbar-thumb  { background: #cbd5e1; border-radius: 10px; }

/* ─── Reply / Conversation Timeline ──────────────────────── */
.reply-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.reply-bubble {
    border-radius: var(--se-radius-md);
    padding: 0.875rem 1.125rem;
    max-width: 88%;
    box-shadow: var(--se-shadow-sm);
}

.reply-staff {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    align-self: flex-end;
    border-bottom-right-radius: 3px;
    border: 1px solid #bfdbfe;
}

.reply-customer {
    background: var(--rz-base-100);
    align-self: flex-start;
    border-bottom-left-radius: 3px;
    border: 1px solid var(--rz-base-300);
}

.reply-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--rz-text-secondary-color);
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    font-weight: 500;
}

.reply-time { margin-left: auto; opacity: 0.8; }

.reply-body {
    font-size: 0.9rem;
    line-height: 1.65;
    word-break: break-word;
    color: var(--rz-text-color);
}

.reply-body p:last-child { margin-bottom: 0; }

/* ─── Chat Widget ─────────────────────────────────────────── */
.chat-widget-panel {
    border: 1px solid var(--rz-base-300);
    border-radius: var(--se-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 460px;
    box-shadow: var(--se-shadow-md);
}

.chat-header {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    padding: 0.75rem 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.chat-header-staff {
    background: linear-gradient(135deg, var(--se-brand) 0%, var(--se-brand-dark) 100%);
}

.chat-online-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    margin-left: auto;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
    animation: se-pulse 2.2s ease-in-out infinite;
}

@keyframes se-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25); }
    50%       { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.08); }
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--rz-base-background);
}

.chat-messages::-webkit-scrollbar       { width: 4px; }
.chat-messages::-webkit-scrollbar-track  { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb  { background: #cbd5e1; border-radius: 10px; }

.chat-msg {
    max-width: 76%;
    padding: 0.5rem 0.875rem;
    border-radius: 18px;
    font-size: 0.875rem;
    line-height: 1.5;
    word-break: break-word;
    box-shadow: var(--se-shadow-xs);
}

.chat-msg-staff {
    background: var(--rz-primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-msg-customer {
    background: var(--rz-base-200);
    color: var(--rz-text-color);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--rz-base-300);
}

.chat-time {
    display: block;
    font-size: 0.68rem;
    opacity: 0.6;
    margin-top: 0.2rem;
}

.chat-input-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    border-top: 1px solid var(--rz-base-300);
    background: var(--rz-base-100);
    flex-shrink: 0;
}

.chat-input-row .rz-textbox { flex: 1; }

/* ─── Customer Portal ─────────────────────────────────────── */
.customer-portal-body {
    min-height: calc(100vh - 120px);
    padding: 1.5rem;
    max-width: 860px;
    margin: 0 auto;
}

.se-ticket-card {
    border-radius: var(--se-radius-md) !important;
    border: 1px solid var(--rz-base-300) !important;
    box-shadow: var(--se-shadow-sm) !important;
    transition: box-shadow var(--se-transition), transform var(--se-transition) !important;
}

.se-ticket-card:hover {
    box-shadow: var(--se-shadow-md) !important;
    transform: translateY(-2px) !important;
}

/* ─── Filter Pill Buttons ─────────────────────────────────── */
.se-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.se-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.875rem;
    border-radius: var(--se-radius-pill);
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid var(--rz-base-400);
    background: var(--rz-base-background);
    color: var(--rz-text-secondary-color);
    cursor: pointer;
    transition: all var(--se-transition);
    user-select: none;
}

.se-filter-pill:hover {
    border-color: var(--se-brand);
    color: var(--se-brand);
    background: var(--se-brand-light);
}

.se-filter-pill.active {
    background: var(--se-brand);
    border-color: var(--se-brand);
    color: #fff;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.28);
}

/* ─── FM2026 Document Card ────────────────────────────────── */
.se-fm2026-card {
    border-radius: var(--se-radius-md) !important;
    border-left: 3px solid var(--se-info) !important;
    box-shadow: var(--se-shadow-sm) !important;
    transition: box-shadow var(--se-transition) !important;
}

.se-fm2026-card:hover { box-shadow: var(--se-shadow-md) !important; }

/* ─── Details/Summary ─────────────────────────────────────── */
details > summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

details > summary::-webkit-details-marker { display: none; }

details > summary::before {
    content: 'expand_more';
    font-family: 'Material Symbols Outlined', 'Material Icons';
    font-size: 1rem;
    transition: transform var(--se-transition-slow);
}

details[open] > summary::before { transform: rotate(180deg); }

/* ─── Blazor Error UI ─────────────────────────────────────── */
#blazor-error-ui {
    background: var(--se-breached-bg);
    bottom: 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    display: none;
    left: 0;
    padding: 0.875rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: var(--se-breached-text);
    font-size: 0.875rem;
    border-top: 2px solid #fca5a5;
}

#blazor-error-ui .reload  { font-weight: 600; color: #dc2626; margin-left: 0.4rem; }
#blazor-error-ui .dismiss { float: right; cursor: pointer; opacity: 0.6; transition: opacity var(--se-transition); }
#blazor-error-ui .dismiss:hover { opacity: 1; }

/* ─── Utility Animations ──────────────────────────────────── */
@keyframes se-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.se-animate-in {
    animation: se-fade-in 0.25s var(--se-transition) both;
}

/* ─── Reply Attachment Dropzone ───────────────────────────── */
.se-dropzone {
    position: relative;
    border: 2px dashed var(--rz-base-400);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: border-color .18s, background .18s;
    cursor: pointer;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rz-base-100);
}

.se-dropzone:hover, .se-dropzone-active {
    border-color: var(--se-brand);
    background: rgba(249, 115, 22, 0.04);
}
