﻿:root {
    --bg-main: #F0F2F5;
    --bg-page: #FFFFFF;
    --widget-bg: #FFFFFF;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --text-main: #1A202C;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --accent-navy: #1E3A5F;
    --accent-blue: #2563EB;
    --accent-red: #DC2626;
    --accent-gold: #B45309;
    --accent-green: #059669;
    --accent-crimson: #991B1B;
    --accent-purple: #7C3AED;
    --accent-dark: #374151;
    --sidebar-bg: #0B1929;
    --sidebar-hover: #162D4A;
    --sidebar-active: #1E3A5F;
    --sidebar-text: #8899AA;
    --sidebar-text-active: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-main);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--text-main);
    font-size: 13px;
    line-height: 1.5;
}

/* ===== TITLE BAR ===== */
#title-bar {
    height: 38px;
    background: linear-gradient(135deg, #0B1929 0%, #152744 100%);
    display: flex;
    align-items: center;
    padding: 0 16px;
    -webkit-app-region: drag;
    gap: 12px;
    color: #CBD5E0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
#app-title {
    font-weight: 700;
    font-size: 13px;
    color: #F7FAFC;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}
.title-icon { font-size: 16px; }
#title-center { flex: 1; text-align: center; }
#clock {
    font-family: 'Cascadia Code', 'Consolas', monospace;
    font-size: 12px;
    font-weight: 500;
    color: #63B3ED;
    letter-spacing: 0.5px;
}
#window-controls { display: flex; gap: 4px; align-items: center; -webkit-app-region: no-drag; }
.win-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    width: 32px;
    height: 26px;
    border-radius: 4px;
    color: #A0AEC0;
    transition: all 0.15s;
}
.win-btn:hover { background: rgba(255,255,255,0.1); color: white; }
.win-btn.close:hover { background: #E53E3E; color: white; }

/* ===== LAYOUT ===== */
#app-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ===== SIDEBAR ===== */
#sidebar {
    width: 68px;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border-right: 1px solid rgba(255,255,255,0.04);
    z-index: 10;
    flex-shrink: 0;
    overflow-y: auto;
    overflow-x: hidden;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 4px 8px;
    cursor: pointer;
    color: var(--sidebar-text);
    transition: all 0.2s;
    position: relative;
    border-left: 3px solid transparent;
}
.nav-item:hover {
    background: var(--sidebar-hover);
    color: #CBD5E0;
}
.nav-item.active {
    background: var(--sidebar-active);
    color: var(--sidebar-text-active);
    border-left-color: #63B3ED;
}
.nav-icon { font-size: 18px; margin-bottom: 2px; }
.nav-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-align: center;
    line-height: 1.2;
}
.nav-spacer { flex: 1; }

/* ===== MAIN CONTENT ===== */
#main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* ===== PAGES ===== */
.page {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}
.page.active { display: flex; }

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: white;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.page-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.3px;
}
.page-actions { display: flex; gap: 8px; align-items: center; }

.page-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}
.page-body-fill {
    display: flex;
    flex-direction: column;
}

/* ===== AI PANEL (RIGHT) ===== */
#ai-panel {
    width: 0;
    background: white;
    display: flex;
    flex-direction: column;
    transition: width 0.25s ease;
    overflow: hidden;
    border-left: 1px solid var(--border);
    flex-shrink: 0;
}
#ai-panel.open {
    width: 380px;
}
.ai-panel-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 380px;
    overflow: hidden;
}
.ai-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--accent-navy);
    color: white;
    flex-shrink: 0;
}
.ai-panel-title {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
}
.btn-panel-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.15s;
}
.btn-panel-close:hover { background: rgba(255,255,255,0.15); color: white; }

/* ===== AI MODE BAR ===== */
.ai-mode-bar {
    display: flex;
    background: #F8FAFC;
    border-bottom: 1px solid var(--border);
    padding: 6px 8px;
    gap: 4px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.ai-mode {
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    background: white;
    color: var(--text-muted);
    transition: all 0.15s;
    white-space: nowrap;
}
.ai-mode:hover { border-color: var(--accent-navy); color: var(--accent-navy); }
.ai-mode.active { background: var(--accent-navy); color: white; border-color: var(--accent-navy); }

/* ===== CHAT ===== */
.chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #FAFBFC;
    min-height: 100px;
}
.chat-input-area {
    display: flex;
    gap: 5px;
    padding: 8px 12px;
    border-top: 1px solid var(--border);
    background: white;
    flex-shrink: 0;
}
.chat-msg { margin-bottom: 10px; line-height: 1.5; font-size: 13px; }
.chat-msg.user { color: var(--accent-navy); }
.chat-msg.ai { color: var(--text-main); }
.chat-msg.system { color: var(--text-muted); font-style: italic; font-size: 12px; }
.chat-msg strong { font-weight: 700; }

/* ===== TTS CONTROLS ===== */
.tts-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #0d1b30;
    border-top: 1px solid #1a2a44;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.btn-tts {
    background: #1a2a44;
    color: #8899aa;
    border: 1px solid #2a3a54;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-tts:hover { background: #2a3a54; color: #c0a050; }
.btn-tts.active { background: #1a3a1a; color: #50c050; border-color: #50c050; }
.btn-tts:disabled { opacity: 0.4; cursor: default; }
.tts-voice-select {
    background: #1a2a44;
    color: #8899aa;
    border: 1px solid #2a3a54;
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 10px;
    max-width: 120px;
}
.tts-slider { width: 50px; accent-color: #c0a050; cursor: pointer; }
.tts-rate-label { color: #8899aa; font-size: 10px; min-width: 20px; }

/* ===== SUB-TABS ===== */
.sub-tabs {
    display: flex;
    background: #F8FAFC;
    border-bottom: 1px solid var(--border);
    padding: 0;
    flex-shrink: 0;
}
.sub-tab {
    padding: 10px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.15s;
    border-bottom: 2px solid transparent;
    letter-spacing: 0.3px;
}
.sub-tab:hover { color: var(--accent-navy); background: #EDF2F7; }
.sub-tab.active {
    color: var(--accent-navy);
    border-bottom-color: var(--accent-navy);
    background: white;
}
.sub-panel {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}
.sub-panel.active { display: flex; }
.sub-toolbar {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}

/* ===== BUTTONS ===== */
.btn {
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    letter-spacing: 0.2px;
}
.btn:hover { filter: brightness(0.9); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-sm { padding: 5px 12px; font-size: 11px; }
.btn-navy { background: var(--accent-navy); color: white; }
.btn-blue { background: var(--accent-blue); color: white; }
.btn-red { background: var(--accent-red); color: white; }
.btn-gold { background: var(--accent-gold); color: white; }
.btn-green { background: var(--accent-green); color: white; }
.btn-crimson { background: var(--accent-crimson); color: white; }
.btn-purple { background: var(--accent-purple); color: white; }
.btn-teal { background: #0d9488; color: white; }
.btn-orange { background: #ea580c; color: white; }
.btn-dark { background: var(--accent-dark); color: white; }
.full-width { width: 100%; }
.flex-1-btn { flex: 1; }
.mt-1 { margin-top: 8px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 10px; }

/* ===== INPUTS ===== */
.input-field {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    background: white;
    color: var(--text-main);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.input-field:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.input-field.short { width: 100px; min-width: 80px; }
.input-row { display: flex; gap: 8px; align-items: flex-end; }
textarea.input-field { resize: none; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== PANELS ===== */
.panel-section-header {
    padding: 10px 16px;
    font-weight: 700;
    font-size: 12px;
    color: var(--text-secondary);
    background: #F7FAFC;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.panel-section-header.navy { background: var(--accent-navy); color: #F7FAFC; }
.panel-section-header.gold { background: #92400E; color: #FEF3C7; }
.panel-section-header.crimson { background: var(--accent-crimson); color: #FEE2E2; }
.panel-section-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }

/* ===== SPLIT LAYOUT ===== */
.split-layout {
    display: flex;
    gap: 0;
    flex: 1;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: white;
}
.split-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}
.split-panel + .split-panel { border-left: 1px solid var(--border); }

/* ===== CONTRACT LAYOUT ===== */
.contract-layout {
    display: flex;
    gap: 20px;
    flex: 1;
}
.contract-form-panel {
    flex: 0 0 400px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.contract-preview-panel {
    flex: 1;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.contract-preview {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    font-size: 13px;
    line-height: 1.7;
    font-family: 'Georgia', 'Cambria', serif;
    background: #FFFDF7;
    min-height: 300px;
}

/* ===== RESEARCH LAYOUT ===== */
.research-layout {
    display: flex;
    gap: 20px;
}
.research-panel {
    flex: 1;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ===== BILLING LAYOUT ===== */
.billing-layout {
    display: flex;
    gap: 20px;
}
.billing-form-panel {
    flex: 1;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.billing-entries-panel {
    flex: 1;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ===== NOTES LAYOUT ===== */
.notes-layout {
    max-width: 800px;
}
.notes-form-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ===== EMAIL LAYOUT ===== */
.email-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 16px;
    height: 100%;
    min-height: 0;
}
.email-list-panel,
.email-main-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.email-collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.btn-email-collapse {
    border: 1px solid rgba(148,163,184,0.55);
    background: #ffffff;
    color: #334155;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    padding: 3px 8px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-email-collapse:hover {
    border-color: #2563EB;
    color: #1E40AF;
    background: #EFF6FF;
}
.email-collapsible-body.collapsed {
    display: none;
}
.email-row {
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 6px;
    background: #FAFBFC;
}
.email-row:hover { border-color: #CBD5E1; background: #F1F5F9; }
.email-row.unread { background: #EFF6FF; border-color: #BFDBFE; }
.email-row-header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}
.email-row-from {
    font-size: 12px;
    font-weight: 700;
    color: #1E3A5F;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.email-row-date {
    font-size: 10px;
    color: #64748B;
    white-space: nowrap;
}
.email-row-subject {
    font-size: 12px;
    color: #111827;
    margin-top: 3px;
    font-weight: 600;
}
.email-row-preview {
    font-size: 11px;
    color: #6B7280;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.email-message-view {
    flex: 1;
    padding: 20px;
    border-top: 1px solid var(--border-light);
    overflow-y: auto;
    min-height: 280px;
}
.email-message-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E2E8F0;
}
.email-message-sender {
    flex: 1;
}
.email-message-sender-name {
    font-size: 16px;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 4px;
}
.email-message-sender-addr {
    font-size: 12px;
    color: #64748B;
}
.email-message-date {
    font-size: 12px;
    color: #64748B;
    white-space: nowrap;
}
.email-message-meta {
    font-size: 13px;
    color: #475569;
    margin-bottom: 8px;
    display: flex;
    gap: 6px;
}
.email-message-meta strong {
    color: #1E293B;
    font-weight: 600;
    min-width: 60px;
}
.email-action {
    display: flex;
    gap: 10px;
    margin: 12px 0 16px;
}
.email-action-full {
    margin-top: 10px;
}
.email-message-body {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #F8FAFC;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
}
.email-message-document {
    margin-top: 10px;
    padding: 20px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    background: #FFFFFF;
    color: #1F2937;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Calibri", sans-serif;
    font-size: 13px;
    line-height: 1.8;
    box-shadow: inset 0 0 0 1px #F8FAFC;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}
.email-message-document a {
    color: #2563EB;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.15s ease;
}
.email-message-document a:hover {
    color: #1D4ED8;
    border-bottom-color: #2563EB;
}
.email-message-document strong,
.email-message-document b {
    color: #0F172A;
    font-weight: 700;
}
.email-message-document em,
.email-message-document i {
    color: #374151;
    font-style: italic;
}
.email-message-document p {
    margin: 10px 0;
}
.email-message-document ul,
.email-message-document ol {
    margin: 10px 0 10px 20px;
}
.email-message-document li {
    margin: 6px 0;
}
.email-editor-shell {
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.email-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}
.email-editor-btn {
    border: 1px solid #CBD5E1;
    background: #fff;
    color: #334155;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    min-width: 28px;
}
.email-editor-btn:hover {
    border-color: #2563EB;
    color: #1E40AF;
    background: #EFF6FF;
}
.email-editor-sep {
    width: 1px;
    height: 20px;
    background: #CBD5E1;
}
.email-editor-select {
    width: auto;
    min-width: 120px;
    padding: 4px 8px;
    font-size: 11px;
}
.email-editor-color {
    width: 28px;
    height: 28px;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    background: #fff;
    padding: 2px;
    cursor: pointer;
}
.email-compose-editor {
    min-height: 220px;
    max-height: 420px;
    overflow-y: auto;
    padding: 12px;
    font-size: 13px;
    line-height: 1.6;
    color: #0F172A;
    outline: none;
}
.email-compose-editor:empty:before {
    content: attr(data-placeholder);
    color: #94A3B8;
}
.email-compose-editor h1,
.email-compose-editor h2,
.email-compose-editor h3 {
    color: #0F172A;
    margin: 8px 0;
}
.email-compose-editor blockquote {
    border-left: 3px solid #93C5FD;
    margin: 6px 0;
    padding: 4px 10px;
    color: #1E3A8A;
    background: #EFF6FF;
}
.email-compose-editor pre {
    background: #0F172A;
    color: #E2E8F0;
    padding: 10px;
    border-radius: 8px;
    white-space: pre-wrap;
}
.email-attachment-list {
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 8px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #F8FAFC;
    max-height: 120px;
    overflow-y: auto;
}
.email-attachment-empty {
    font-size: 11px;
    color: #64748B;
}
.email-attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid #E2E8F0;
}
.email-attachment-item:last-child {
    border-bottom: none;
}
.email-attachment-name {
    font-size: 11px;
    color: #1E3A5F;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.email-attachment-meta {
    font-size: 10px;
    color: #64748B;
}
.email-message-html-frame {
    margin-top: 10px;
    width: 100%;
    min-height: 380px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #fff;
}
.email-full-html-frame {
    margin-top: 10px;
    width: 100%;
    height: 68vh;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background: #fff;
}

/* ===== JUDICIAL DIRECTORY ===== */
.directory-row {
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    background: #FFFFFF;
    transition: all 0.15s ease;
}
.directory-row:hover {
    border-color: #93C5FD;
    background: #F8FAFF;
}
.directory-row.selected {
    border-color: #2563EB;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}
.directory-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}
.directory-badge {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #475569;
    background: #F1F5F9;
    border-radius: 999px;
    padding: 2px 7px;
    font-weight: 700;
}
.directory-verify {
    font-size: 10px;
    border-radius: 999px;
    padding: 2px 7px;
    font-weight: 700;
}
.directory-verify.ok {
    color: #065F46;
    background: #D1FAE5;
}
.directory-verify.pending {
    color: #92400E;
    background: #FEF3C7;
}
.directory-name {
    font-size: 13px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 2px;
}
.directory-meta {
    font-size: 11px;
    color: #64748B;
}

/* ===== DIRECTORY: clickable contact card + quick actions ===== */
.directory-contact-card {
    border: 1px solid #DBEAFE;
    background: linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 100%);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.directory-contact-card.empty {
    border-style: dashed;
    background: #F8FAFC;
    color: #64748B;
    text-align: center;
}
.dcc-empty {
    font-size: 12px;
    color: #64748B;
    padding: 8px 0;
}
.dcc-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    border-bottom: 1px dashed #E2E8F0;
    padding-bottom: 8px;
}
.dcc-title {
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
}
.dcc-subtitle {
    font-size: 11px;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 2px;
}
.dcc-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dcc-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    padding: 3px 0;
}
.dcc-key {
    color: #475569;
    font-weight: 600;
    font-size: 11px;
}
.dcc-val {
    color: #1E293B;
    word-break: break-word;
}
.dcc-val.link,
a.dcc-val.link {
    color: #2563EB;
    text-decoration: none;
}
.dcc-val.link:hover {
    text-decoration: underline;
}
.dcc-social-link {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #EFF6FF;
    color: #1D4ED8;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #DBEAFE;
}
.dcc-social-link:hover {
    background: #DBEAFE;
}
.dcc-quick-row {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}
.dcc-quick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #F1F5F9;
    color: #1E293B;
    text-decoration: none;
    font-size: 13px;
    border: 1px solid #E2E8F0;
}
.dcc-quick:hover {
    background: #DBEAFE;
    border-color: #93C5FD;
}

/* ===== SCROLL CONTAINERS ===== */
.scroll-list { flex: 1; overflow-y: auto; padding: 8px 12px; }
.scroll-box { overflow-y: auto; padding: 8px; }

/* ===== CASE CARDS ===== */
.case-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s;
}
.case-card:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.case-card.active { border-color: var(--accent-navy); background: #EBF4FF; }
.case-card .case-header { display: flex; justify-content: space-between; align-items: center; }
.case-card .case-title { font-weight: 700; font-size: 14px; color: var(--accent-navy); }
.case-card .case-number { font-size: 11px; color: var(--text-muted); font-family: 'Consolas', monospace; }
.case-card .case-meta { font-size: 12px; color: var(--text-secondary); margin: 4px 0; }
.case-card .case-tags { display: flex; gap: 6px; margin-top: 6px; }
.case-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.case-tag.open { background: #D1FAE5; color: #065F46; }
.case-tag.pending { background: #FEF3C7; color: #92400E; }
.case-tag.review { background: #DBEAFE; color: #1E40AF; }
.case-tag.closed { background: #E5E7EB; color: #4B5563; }
.case-tag.urgent { background: #FEE2E2; color: #991B1B; }
.case-tag.critical { background: #991B1B; color: white; }
.case-tag.type { background: #EDE9FE; color: #5B21B6; }

/* ===== CLIENT CARDS ===== */
.client-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s;
    border-left: 3px solid var(--accent-navy);
}
.client-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.client-card .client-name { font-weight: 700; font-size: 14px; color: var(--accent-navy); }
.client-card .client-info { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* ===== DEADLINE CARDS ===== */
.deadline-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 8px;
    transition: all 0.15s;
}
.deadline-card.overdue { border-left: 4px solid var(--accent-red); background: #FFF5F5; }
.deadline-card.today { border-left: 4px solid var(--accent-gold); background: #FFFBEB; }
.deadline-card.upcoming { border-left: 4px solid var(--accent-green); }
.deadline-card .deadline-title { font-weight: 700; font-size: 14px; }
.deadline-card .deadline-meta { font-size: 12px; color: var(--text-secondary); }
.deadline-card .deadline-date { font-family: 'Consolas', monospace; font-size: 12px; font-weight: bold; }

/* ===== CALENDAR (MONTH VIEW) ===== */
.calendar-shell {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: #F8FAFC;
}
.calendar-month-label {
    font-weight: 700;
    font-size: 15px;
    color: var(--accent-navy);
    letter-spacing: 0.2px;
}
.calendar-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 0;
    flex: 1;
    min-height: 0;
}
.calendar-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-right: 1px solid var(--border);
}
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid var(--border);
    background: #F8FAFC;
}
.calendar-weekdays > div {
    padding: 8px 6px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(90px, 1fr);
    flex: 1;
    min-height: 0;
}
.calendar-day {
    border-right: 1px solid #EEF2F7;
    border-bottom: 1px solid #EEF2F7;
    padding: 6px;
    cursor: pointer;
    background: white;
    transition: background 0.12s ease;
    overflow: hidden;
}
.calendar-day:hover { background: #F8FAFC; }
.calendar-day.other-month { background: #FBFCFE; color: #94A3B8; }
.calendar-day.today { background: #EFF6FF; }
.calendar-day.selected {
    outline: 2px solid #2563EB;
    outline-offset: -2px;
    background: #EFF6FF;
}
.calendar-day-num {
    font-size: 12px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 4px;
}
.calendar-event-chip {
    font-size: 10px;
    line-height: 1.2;
    border-radius: 10px;
    padding: 2px 6px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
    cursor: pointer;
}
.calendar-event-chip.normal { background: #2563EB; }
.calendar-event-chip.high { background: #B45309; }
.calendar-event-chip.critical { background: #DC2626; }

.calendar-side {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #FCFDFE;
}
.calendar-selected-date {
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #1E3A5F;
    border-bottom: 1px solid var(--border-light);
}
.calendar-day-event {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 8px;
    background: white;
    cursor: pointer;
}
.calendar-day-event:hover { border-color: #2563EB; }
.calendar-day-event-title {
    font-weight: 700;
    font-size: 12px;
    color: #1E3A5F;
}
.calendar-day-event-meta {
    margin-top: 2px;
    font-size: 10px;
    color: #64748B;
}

/* ===== DASHBOARD ===== */
.dash-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.kpi-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}
.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kpi-num { font-size: 36px; font-weight: 800; color: var(--accent-navy); line-height: 1; }
.kpi-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}
.dash-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}
.dash-card h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--accent-navy);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}
.dash-list { font-size: 13px; color: var(--text-main); }
.dash-list-item {
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
}
.dash-list-item:last-child { border-bottom: none; }
.dash-link { cursor: pointer; color: #2563EB; text-decoration: underline; transition: all 0.15s; border-radius: 4px; padding: 6px 4px; margin: 0 -4px; }
.dash-link:hover { background: #EFF6FF; color: #1D4ED8; text-decoration: underline; }

/* Entity Links (clickable client/case names) */
.entity-link { color: #2563EB; cursor: pointer; text-decoration: none; font-weight: 600; transition: all 0.15s; border-bottom: 1px dashed transparent; }
.entity-link:hover { color: #1E40AF; border-bottom-color: #2563EB; }
.client-card { cursor: pointer; transition: all 0.15s; }
.client-card:hover { background: #EFF6FF; border-color: #2563EB; }

/* ===== TOOLS GRID ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.btn-tool {
    padding: 16px 8px;
    font-size: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    line-height: 1.3;
    font-weight: 600;
    color: var(--text-main);
}
.btn-tool:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-navy);
    color: var(--accent-navy);
}

/* ===== AI RESULT BOX ===== */
.ai-result-box {
    background: #F0F4FF;
    border: 1px solid #BFDBFE;
    border-radius: var(--radius);
    padding: 12px;
    font-size: 13px;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
}

/* ===== INTAKE FORM SEND/IMPORT ===== */
.field-row-stack { display: flex; flex-direction: column; }
.intake-field-label { font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 4px; letter-spacing: 0.3px; }
.intake-import-drop {
    border: 2px dashed #D1D5DB; border-radius: 10px; padding: 36px; text-align: center;
    cursor: pointer; transition: all 0.2s; background: #FAFBFC;
}
.intake-import-drop:hover { border-color: #2563EB; background: #EFF6FF; }
.intake-import-drop.dragover { border-color: #2563EB; background: #DBEAFE; }
.intake-preview-box {
    background: #F8FAFC; border: 1px solid #E5E7EB; border-radius: 8px;
    padding: 16px; font-size: 13px; line-height: 1.7; max-height: 400px; overflow-y: auto;
}
.intake-preview-box .ipb-row { display: flex; padding: 4px 0; border-bottom: 1px solid #F0F0F0; }
.intake-preview-box .ipb-label { width: 160px; flex-shrink: 0; font-weight: 600; color: #1E3A5F; font-size: 12px; }
.intake-preview-box .ipb-value { flex: 1; color: #374151; }
.intake-preview-box .ipb-section { font-size: 13px; font-weight: 700; color: #1E3A5F; margin: 12px 0 6px; padding-bottom: 4px; border-bottom: 2px solid #1E3A5F; }
.intake-preview-box .ipb-section:first-child { margin-top: 0; }

/* ===== DOC ANALYSIS ===== */
.doc-analysis-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    color: var(--text-muted);
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
}

/* ===== MODALS ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}
.modal-overlay.active { display: flex; }
.modal {
    background: white;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(0,0,0,0.12);
    max-height: 90vh;
}
.modal-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--accent-navy);
    color: white;
}
.modal-header h3 { margin: 0; font-size: 16px; font-weight: 700; }
.modal-close {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all 0.15s;
}
.modal-close:hover { background: rgba(255,255,255,0.15); color: white; }
.modal-body-scroll { flex: 1; overflow-y: auto; padding: 16px 20px; }
.modal-footer { padding: 12px 20px; border-top: 1px solid var(--border); background: #F7FAFC; }

/* ===== CASE LAW ===== */
.caselaw-card {
    background: #FFF5F5;
    border: 1px solid #FECACA;
    border-radius: var(--radius);
    padding: 10px;
    margin-bottom: 8px;
}
.caselaw-card .caselaw-title { font-weight: bold; color: var(--accent-crimson); font-size: 13px; }
.caselaw-card .caselaw-cite { font-family: monospace; font-size: 11px; color: var(--text-muted); }
.caselaw-card .caselaw-summary { font-size: 12px; color: #555; margin-top: 3px; line-height: 1.4; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E0; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #A0AEC0; }

/* ===== SPINNER ===== */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(30,58,95,0.2);
    border-top: 2px solid var(--accent-navy);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.status-badge.active { background: #D1FAE5; color: #065F46; }
.status-badge.pending { background: #FEF3C7; color: #92400E; }
.status-badge.closed { background: #E5E7EB; color: #4B5563; }

/* ===== CLIENT FILES ===== */
.file-card:hover { background: #F8FAFC; }
.client-file-card:hover { background: #F1F5F9; }
#panel-client-files .scroll-list { display: flex; flex-direction: column; }
#file-items-container { flex: 1; overflow-y: auto; }

/* ===== MEDIA VIEWER ===== */
#modal-media-viewer .modal { border: 1px solid #1a2a44; }
#media-viewer-body { background: #111; }
#media-video-player { outline: none; }
#media-video-player::-webkit-media-controls-panel { background: linear-gradient(transparent, rgba(0,0,0,0.7)); }
#media-audio-player { outline: none; filter: invert(1) hue-rotate(180deg); }
#media-audio-player::-webkit-media-controls-panel { background: rgba(255,255,255,0.1); border-radius: 20px; }
#media-image-viewer { transition: transform 0.2s ease; }
#media-image-viewer.zoomed { cursor: zoom-out; max-width: none; max-height: none; }

/* ===== VOICE-TO-TEXT MIC ===== */
.mic-wrapper { display: inline-block; vertical-align: middle; margin-left: 2px; }
.btn-mic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border: 1px solid var(--border); border-radius: 50%;
    background: white; cursor: pointer; font-size: 13px; padding: 0;
    transition: all 0.2s; vertical-align: middle;
}
.btn-mic:hover { background: #EFF6FF; border-color: var(--accent-navy); }
.btn-mic.mic-active {
    background: #FEE2E2; border-color: var(--accent-red); box-shadow: 0 0 0 3px rgba(220,38,38,0.18);
    animation: mic-pulse 1s ease-in-out infinite;
}
@keyframes mic-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(220,38,38,0.18); }
    50% { box-shadow: 0 0 0 6px rgba(220,38,38,0.10); }
}


/* ===== EVIDENCE VIEWER (Apple-style media grid) ===== */

#modal-evidence-viewer {
    background: rgba(8, 12, 24, 0.78);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
}
#modal-evidence-viewer.active {
    display: flex;
    align-items: stretch;
    justify-content: center;
}
.evidence-shell {
    width: 96vw;
    height: 94vh;
    max-width: 1600px;
    margin: auto;
    background: linear-gradient(180deg, rgba(28,32,44,0.92) 0%, rgba(18,22,34,0.95) 100%);
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.55), 0 2px 0 rgba(255,255,255,0.06) inset;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #F5F7FB;
    animation: evidenceShellIn 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}
@keyframes evidenceShellIn {
    from { opacity: 0; transform: scale(0.96) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.evidence-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0));
}
.evidence-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.evidence-title-icon { font-size: 18px; }
.evidence-count {
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    color: #C7CEDB;
    font-weight: 500;
    margin-left: 4px;
}
.evidence-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.evidence-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.06);
    color: #F5F7FB;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.evidence-icon-btn:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}
.evidence-icon-btn:active { transform: scale(0.95); }
.evidence-close:hover { background: rgba(220, 38, 38, 0.4); border-color: rgba(220, 38, 38, 0.6); }

.evidence-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 22px;
    scroll-behavior: smooth;
}
.evidence-body::-webkit-scrollbar { width: 10px; }
.evidence-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.14);
    border-radius: 10px;
}
.evidence-body::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.24); }

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--evi-tile-size, 260px), 1fr));
    gap: 16px;
    transition: grid-template-columns 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.evidence-tile {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: #0b0e17;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 4px 20px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.05) inset;
    cursor: grab;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.2s ease,
                opacity 0.25s ease;
    will-change: transform;
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    animation: evidenceTileIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes evidenceTileIn {
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.evidence-tile:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 14px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(56, 160, 255, 0.35);
    border-color: rgba(56, 160, 255, 0.35);
}
.evidence-tile:active { cursor: grabbing; }
.evidence-tile.dragging {
    opacity: 0.45;
    transform: scale(0.94) rotate(-1.2deg);
    box-shadow: 0 18px 40px rgba(0,0,0,0.6);
}
.evidence-tile.drag-over::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(56, 160, 255, 0.8);
    border-radius: 16px;
    pointer-events: none;
}

.evidence-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
    pointer-events: none;
}

.evidence-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.75) 100%);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px 12px;
}
.evidence-tile:hover .evidence-tile-overlay { opacity: 1; }
.evidence-tile-name {
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.evidence-tile-meta {
    color: rgba(255,255,255,0.7);
    font-size: 10px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.evidence-tile-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.evidence-tile-badge.video { background: rgba(220, 38, 38, 0.75); }
.evidence-tile-badge.image { background: rgba(37, 99, 235, 0.72); }

.evidence-empty {
    text-align: center;
    padding: 80px 20px;
    color: #9aa3b2;
}
.evidence-empty-icon { font-size: 56px; margin-bottom: 14px; opacity: 0.6; }
.evidence-empty-text { font-size: 15px; font-weight: 600; color: #dfe4ec; }
.evidence-empty-hint { font-size: 12px; margin-top: 6px; color: #8b95a6; }

.evidence-lightbox {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: evidenceLightboxIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes evidenceLightboxIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.evidence-lightbox-stage {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.evidence-lightbox-stage img,
.evidence-lightbox-stage video {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 14px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.7);
    animation: evidenceMediaIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes evidenceMediaIn {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}
.evidence-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.18s, transform 0.18s;
    z-index: 11;
}
.evidence-lightbox-close:hover {
    background: rgba(220,38,38,0.5);
    transform: scale(1.08);
}
