/* ==========================================================================
   AI Sidebar CSS — Premium Design, Unified with aha.legal Add-in Language
   Inspired by: Word Add-in, Outlook Add-in, and existing aha.legal UI
   ========================================================================== */

:root {
    --ai-sidebar-width: 390px;
    --ai-sidebar-min-width: 320px;
    --ai-sidebar-max-width: 600px;

    /* Palette — aha.legal design system */
    --ai-primary: #2563eb;
    --ai-primary-dark: #1d4ed8;
    --ai-primary-light: #eff6ff;
    --ai-accent: #7c3aed;
    --ai-accent-light: #f5f3ff;
    --ai-success: #10b981;
    --ai-warning: #f59e0b;
    --ai-danger: #ef4444;
    --ai-text: #1e293b;
    --ai-muted: #64748b;
    --ai-border: #e2e8f0;
    --ai-radius: 8px;

    /* Sidebar-specific */
    --ai-sidebar-bg: #ffffff;
    --ai-card-bg: #f8fafc;
    --ai-user-bubble-bg: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --ai-user-bubble-color: #ffffff;
    --ai-bot-bubble-bg: #ffffff;
    --ai-bot-bubble-color: #1e293b;
    --ai-bot-bubble-border: #e2e8f0;
    --ai-glow: rgba(37, 99, 235, 0.15);
}

[data-bs-theme="dark"] {
    --ai-sidebar-bg: #0f172a;
    --ai-card-bg: #1e293b;
    --ai-border: #334155;
    --ai-text: #f1f5f9;
    --ai-muted: #94a3b8;
    --ai-primary-light: rgba(37, 99, 235, 0.15);
    --ai-user-bubble-bg: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --ai-bot-bubble-bg: #1e293b;
    --ai-bot-bubble-color: #f1f5f9;
    --ai-bot-bubble-border: #334155;
    --ai-glow: rgba(99, 102, 241, 0.2);
}

/* ─── Sidebar Container ──────────────────────────────────────────────── */
.ai-sidebar-container {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    width: var(--ai-sidebar-width);
    min-width: var(--ai-sidebar-min-width);
    max-width: var(--ai-sidebar-max-width);
    background-color: var(--ai-sidebar-bg);
    border-left: 1px solid var(--ai-border);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.06), -1px 0 2px rgba(0, 0, 0, 0.04);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ai-sidebar-body {
    flex: 1 1 0%;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

@media (min-width: 1440px) {
    body.ai-sidebar-open {
        margin-right: var(--ai-sidebar-width) !important;
        transition: margin-right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

/* ─── Resize Handle ──────────────────────────────────────────────────── */
.ai-resize-handle {
    position: absolute;
    top: 0;
    left: -4px;
    bottom: 0;
    width: 8px;
    cursor: col-resize;
    z-index: 1060;
    background: transparent;
    transition: background 0.15s ease;
}

.ai-resize-handle:hover,
.ai-resize-handle.resizing {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.3), rgba(124, 58, 237, 0.3));
}

/* ─── Header ─────────────────────────────────────────────────────────── */
.ai-sidebar-header {
    background: var(--ai-sidebar-bg);
    border-bottom: 1px solid var(--ai-border);
    padding: 10px 14px;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.ai-badge-avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    flex-shrink: 0;
}

.btn-icon {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--ai-muted);
    transition: all 0.15s ease;
}

.btn-icon:hover {
    background: var(--ai-primary-light);
    color: var(--ai-primary);
}

/* ─── Context Notice Bar ─────────────────────────────────────────────── */
.ai-context-notice {
    background: var(--ai-primary-light);
    color: var(--ai-text);
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    padding: 5px 14px;
    border-bottom: 1px solid var(--ai-border);
    flex-shrink: 0;
}

/* ─── Empty State ────────────────────────────────────────────────────── */
.ai-empty-icon {
    font-size: 2.4rem;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.9;
}

.ai-suggestion-btn {
    border: 1px solid var(--ai-border);
    background: var(--ai-sidebar-bg);
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--ai-text);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-suggestion-btn:hover {
    background: var(--ai-primary-light);
    border-color: var(--ai-primary);
    color: var(--ai-primary-dark);
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

/* ─── Message Bubbles — Word/Outlook Add-in Style ────────────────────── */
.ai-msg-bubble {
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.8125rem;
    line-height: 1.5;
    position: relative;
    word-break: break-word;
    animation: ai-fade-in 0.2s ease-out;
}

.ai-msg-user {
    align-self: flex-end;
    background: var(--ai-user-bubble-bg);
    color: var(--ai-user-bubble-color);
    border-radius: 12px 12px 3px 12px;
    max-width: 85%;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.ai-msg-assistant {
    align-self: flex-start;
    background: var(--ai-bot-bubble-bg);
    color: var(--ai-bot-bubble-color);
    border: 1px solid var(--ai-bot-bubble-border);
    border-radius: 12px 12px 12px 3px;
    max-width: 96%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Markdown content in assistant bubbles */
.ai-msg-assistant p:last-child { margin-bottom: 0; }
.ai-msg-assistant pre {
    background: var(--ai-card-bg);
    border: 1px solid var(--ai-border);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.75rem;
    overflow-x: auto;
    margin: 6px 0;
}
.ai-msg-assistant code {
    font-family: "SF Mono", Consolas, Monaco, "Courier New", monospace;
    font-size: 0.75rem;
    color: #d946ef;
}
.ai-msg-assistant ul, .ai-msg-assistant ol {
    padding-left: 18px;
    margin-bottom: 4px;
}
.ai-msg-assistant li { margin-bottom: 2px; }

/* Provenance footer */
.ai-provenance-tag {
    font-size: 0.64rem;
    opacity: 0.65;
    margin-top: 6px;
    font-family: "SF Mono", Consolas, monospace;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-provenance-tag .runtime-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    border-radius: 3px;
    background: var(--ai-card-bg);
    border: 1px solid var(--ai-border);
    font-size: 0.62rem;
}

/* ─── Tool Result Cards ──────────────────────────────────────────────── */
.ai-tool-card {
    border: 1px solid var(--ai-border);
    border-radius: 10px;
    background: var(--ai-card-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.ai-tool-card-header {
    background: linear-gradient(135deg, var(--ai-primary-light) 0%, #f0f4ff 100%);
    border-bottom: 1px solid var(--ai-border);
    font-weight: 700;
    font-size: 0.7rem;
    padding: 5px 10px;
    color: var(--ai-primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

[data-bs-theme="dark"] .ai-tool-card-header {
    background: rgba(37, 99, 235, 0.1);
}

.ai-tool-card-title {
    font-size: 0.78rem;
    color: var(--ai-text);
}

/* ─── Agent Step Cards (Robopravník SmartAgent) ──────────────────────── */
.ai-agent-step {
    border-left: 3px solid var(--ai-primary);
    padding: 5px 10px;
    margin: 4px 0;
    background: var(--ai-primary-light);
    border-radius: 0 6px 6px 0;
    font-size: 0.72rem;
    animation: ai-fade-in 0.2s ease-out;
}

.ai-agent-step.step-complete {
    border-left-color: var(--ai-success);
    background: #ecfdf5;
}

[data-bs-theme="dark"] .ai-agent-step {
    background: rgba(37, 99, 235, 0.1);
}

[data-bs-theme="dark"] .ai-agent-step.step-complete {
    background: rgba(16, 185, 129, 0.1);
}

.ai-agent-step .step-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    flex-shrink: 0;
}

.ai-agent-step .step-icon.running {
    background: var(--ai-primary);
    color: #fff;
    animation: ai-dot-pulse 1.4s infinite ease-in-out;
}

.ai-agent-step .step-icon.done {
    background: var(--ai-success);
    color: #fff;
}

/* ─── Disambiguation & Smart Pills ───────────────────────────────────── */
.ai-disambiguation-bar {
    background: var(--ai-primary-light);
    border-radius: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.ai-runnerup-chip,
.ai-smart-pill {
    background: var(--ai-sidebar-bg);
    border: 1px solid var(--ai-border);
    color: var(--ai-text);
    font-size: 0.72rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.ai-runnerup-chip:hover,
.ai-smart-pill:hover {
    background: var(--ai-primary-light);
    color: var(--ai-primary-dark);
    border-color: var(--ai-primary);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px var(--ai-glow);
}

/* ─── Typing / Progress Indicator ────────────────────────────────────── */
.ai-typing-indicator {
    align-self: flex-start;
    background: var(--ai-bot-bubble-bg);
    border: 1px solid var(--ai-bot-bubble-border);
    border-radius: 12px 12px 12px 3px;
}

.ai-typing-dot {
    width: 6px;
    height: 6px;
    margin: 0 2px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 50%;
    animation: ai-dot-pulse 1.4s infinite ease-in-out both;
}

.ai-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.ai-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes ai-dot-pulse {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ─── Tool Running Banner ────────────────────────────────────────────── */
.ai-tool-banner {
    background: var(--ai-primary-light);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 8px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    font-size: 0.72rem;
    animation: ai-fade-in 0.2s ease-out;
}

/* ─── State Overlay Panels ───────────────────────────────────────────── */
.ai-state-overlay {
    position: absolute;
    inset: 0;
    background: var(--ai-sidebar-bg);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.state-card {
    max-width: 280px;
    padding: 20px;
}

.state-card .btn {
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* ─── Composer ───────────────────────────────────────────────────────── */
.ai-sidebar-composer {
    background: var(--ai-sidebar-bg);
    border-top: 1px solid var(--ai-border);
    padding: 10px 12px;
    flex-shrink: 0;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.03);
}

.ai-chips-container {
    max-height: 52px;
    overflow-y: auto;
}

.ai-chips-container .badge {
    font-size: 0.66rem;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
}

.ai-textarea {
    font-size: 0.8125rem;
    border: 1px solid var(--ai-border);
    border-radius: 10px;
    padding: 8px 12px;
    padding-right: 40px;
    line-height: 1.45;
    background: var(--ai-card-bg);
    color: var(--ai-text);
    transition: all 0.2s ease;
    resize: none;
}

.ai-textarea:focus {
    background: var(--ai-sidebar-bg);
    border-color: var(--ai-primary);
    box-shadow: 0 0 0 3px var(--ai-glow);
    outline: none;
}

.ai-send-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.ai-send-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.ai-send-btn:disabled {
    background: #cbd5e1;
    box-shadow: none;
    cursor: not-allowed;
}

.ai-stop-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: var(--ai-danger);
    color: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
}

.ai-attach-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--ai-border);
    background: var(--ai-card-bg);
    color: var(--ai-text-muted, #64748b);
    cursor: pointer;
    transition: all 0.15s ease;
}

.ai-attach-btn:hover {
    color: var(--ai-primary);
    background: var(--ai-sidebar-bg);
    border-color: var(--ai-primary);
}

.ai-doc-picker-popover {
    background: var(--ai-card-bg, #ffffff);
    border: 1px solid var(--ai-border, #e2e8f0);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.ai-doc-picker-item {
    cursor: pointer;
    transition: background 0.15s ease;
}

.ai-doc-picker-item:hover {
    background: rgba(37, 99, 235, 0.08) !important;
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
.ai-sidebar-footer {
    background: var(--ai-sidebar-bg);
    border-top: 1px solid var(--ai-border);
    padding: 6px 14px;
    flex-shrink: 0;
    font-size: 0.68rem;
}

.ai-transport-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ai-muted);
    transition: color 0.15s ease;
    border: none;
    background: none;
    padding: 0;
}

.ai-transport-badge:hover {
    color: var(--ai-primary);
}

/* Transport picker dropdown */
#ai-transport-picker-menu {
    border: 1px solid var(--ai-border);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(12px);
}

#ai-transport-picker-menu .dropdown-item {
    font-size: 0.76rem;
    border-radius: 6px;
    padding: 6px 10px;
    transition: all 0.15s ease;
}

#ai-transport-picker-menu .dropdown-item:hover {
    background: var(--ai-primary-light);
    color: var(--ai-primary-dark);
}

/* Token meter badge */
.ai-token-meter-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.66rem;
    font-weight: 600;
    background: var(--ai-card-bg);
    border: 1px solid var(--ai-border);
    color: var(--ai-muted);
    transition: all 0.15s ease;
}

.ai-token-meter-badge .token-icon {
    color: var(--ai-warning);
    font-size: 0.72rem;
}

.ai-token-meter-badge.over-limit {
    background: #fef2f2;
    border-color: #fca5a5;
    color: var(--ai-danger);
}

[data-bs-theme="dark"] .ai-token-meter-badge.over-limit {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

/* ─── Capabilities Modal ─────────────────────────────────────────────── */
.ai-capabilities-panel table {
    font-size: 0.75rem;
}

.ai-capabilities-panel .table-primary-subtle {
    background-color: var(--ai-primary-light) !important;
}

/* ─── Action Confirmation Cards ──────────────────────────────────────── */
.ai-action-card {
    border: 1px solid var(--ai-border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--ai-sidebar-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ai-action-card-header {
    background: linear-gradient(135deg, var(--ai-primary-light) 0%, #f0f4ff 100%);
    border-bottom: 1px solid var(--ai-border);
    padding: 8px 12px;
    font-weight: 700;
    font-size: 0.76rem;
    color: var(--ai-primary-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

[data-bs-theme="dark"] .ai-action-card-header {
    background: rgba(37, 99, 235, 0.1);
}

.ai-action-card-body {
    padding: 10px 12px;
    background: var(--ai-card-bg);
}

.ai-action-fields-wrap {
    background: var(--ai-sidebar-bg);
    border: 1px solid var(--ai-border);
    border-radius: 6px;
    padding: 8px;
}

.ai-action-field {
    font-size: 0.8125rem;
    border-radius: 6px;
    border: 1px solid var(--ai-border);
    padding: 5px 8px;
    transition: all 0.15s ease;
    background: var(--ai-sidebar-bg);
    color: var(--ai-text);
}

.ai-action-field:focus {
    border-color: var(--ai-primary);
    box-shadow: 0 0 0 3px var(--ai-glow);
    outline: none;
}

.ai-action-execute-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 6px 16px;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.ai-action-execute-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.ai-action-pill {
    background: var(--ai-sidebar-bg);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: var(--ai-text);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
    transition: all 0.15s ease;
}

.ai-action-pill:hover {
    background: var(--ai-primary);
    color: #ffffff;
    border-color: var(--ai-primary);
}

/* ─── Assistive Labels & Links ───────────────────────────────────────── */
.cursor-pointer { cursor: pointer; }

.ai-md-link {
    color: var(--ai-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.ai-md-link:hover {
    text-decoration: underline !important;
    color: var(--ai-primary-dark);
}

.hover-primary {
    transition: color 0.15s ease;
}
.hover-primary:hover {
    color: var(--ai-primary-dark) !important;
    text-decoration: underline !important;
}

.hover-underline:hover {
    text-decoration: underline !important;
    color: var(--ai-text) !important;
}

/* ─── Streaming Text Cursor ──────────────────────────────────────────── */
.ai-streaming-cursor::after {
    content: '▋';
    display: inline-block;
    color: var(--ai-primary);
    animation: ai-blink 1s steps(2, start) infinite;
    margin-left: 1px;
    font-weight: 400;
}

@keyframes ai-blink {
    to { visibility: hidden; }
}

/* ─── Animations ─────────────────────────────────────────────────────── */
@keyframes ai-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-assistant-answer-wrap {
    animation: ai-fade-in 0.25s ease-in-out;
}

/* ─── Scrollbar Styling ──────────────────────────────────────────────── */
.ai-sidebar-body::-webkit-scrollbar {
    width: 5px;
}

.ai-sidebar-body::-webkit-scrollbar-track {
    background: transparent;
}

.ai-sidebar-body::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 10px;
}

.ai-sidebar-body::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

/* ─── Sources & Provisions (Robopravník agent output) ────────────────── */
.ai-sources-list {
    border-top: 1px solid var(--ai-border);
    margin-top: 8px;
    padding-top: 6px;
}

.ai-source-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 3px 0;
    font-size: 0.7rem;
    color: var(--ai-muted);
}

.ai-source-item a {
    color: var(--ai-primary);
    text-decoration: none;
    font-weight: 500;
}

.ai-source-item a:hover {
    text-decoration: underline;
}

.ai-provision-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 0.66rem;
    font-weight: 600;
    background: var(--ai-accent-light);
    color: var(--ai-accent);
    border: 1px solid rgba(124, 58, 237, 0.2);
    margin: 2px 3px 2px 0;
    transition: all 0.15s ease;
}

.ai-provision-chip:hover {
    background: var(--ai-accent);
    color: #ffffff;
    border-color: var(--ai-accent);
}

/* ─── Attachments ────────────────────────────────────────────────────── */
.ai-attachment-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid var(--ai-border);
    border-radius: 8px;
    background: var(--ai-card-bg);
    font-size: 0.72rem;
    transition: all 0.15s ease;
    cursor: pointer;
}

.ai-attachment-card:hover {
    border-color: var(--ai-primary);
    background: var(--ai-primary-light);
}

.ai-attachment-card .attachment-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--ai-primary-light);
    color: var(--ai-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    flex-shrink: 0;
}
