@import url("/public/styles/animations.css");

#readme-button {
    display: none
}

/* Theme toggle button is now visible */
/* #theme-toggle {
    display: none
} */

.watermark {
    display: none !important;
}

/* Hide share button in thread menu */
#share-thread,
div[id="share-thread"],
[role="menuitem"]:has(.lucide-share2),
button[aria-label*="Share"],
button[title*="Share"],
button[data-testid*="share"],
[data-testid="thread-share-button"],
.thread-share-button,
button:has(svg[data-testid="ShareIcon"]),
button:has([data-icon="share"]) {
    display: none !important;
}


button.bg-primary {
    background-color: #053587;
}


button.bg-primary:hover {
    background-color: #3c6bbb;
}

#message-composer {
    margin-bottom: 20px;
}

#message-composer.workflow-generating {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

/* Hide the send arrow and show a stop square via CSS — no React DOM touch */
#message-composer.workflow-generating #chat-submit svg {
    visibility: hidden;
}

#message-composer.workflow-generating #chat-submit {
    position: relative;
    cursor: not-allowed;
}

#message-composer.workflow-generating #chat-submit::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: currentColor;
    border-radius: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Checking state: applied to body immediately on thread pages while poll is in-flight.
   CSS takes effect as soon as #message-composer is rendered by React — no JS timing needed. */
body.workflow-checking #message-composer {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}
body.workflow-checking #message-composer #chat-submit svg {
    visibility: hidden;
}
body.workflow-checking #message-composer #chat-submit {
    position: relative;
    cursor: not-allowed;
}
body.workflow-checking #message-composer #chat-submit::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: currentColor;
    border-radius: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}


img[alt="Avatar for LangGraph"] {
    display: none;
}

img[alt="Avatar for Lumi"] {
    display: none;
}

.lu-expandable-text-block a {
    color: #084bbf;
}


.lu-expandable-text-block table {
    border-collapse: collapse;
    width: 100%;
}

.lu-expandable-text-block table th,
.lu-expandable-text-block table td {
    border: 1px solid #606060;
}

.lu-expandable-text-block h1 {
    font-size: 1.15rem;
    font-weight: 600;
}

.lu-expandable-text-block h2 {
    font-size: 1.10rem;
    font-weight: 500;
}

.lu-expandable-text-block  ul {
    list-style-type: disc;
    padding-left: 1.25rem;
}

.lu-expandable-text-block  ol {
    list-style-type: decimal;
    padding-left: 1.25rem;
}
.lu-expandable-text-block  li {
    margin-bottom: 0.25rem;
}

.login-page-side {
    background-image: url('/public/images/background.webp');
}


:root {
  --ring: 218 93% 26% !important;
}

/* Workflow Progress Animation */
.workflow-progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    background-color: rgba(5, 53, 135, 0.05);
    border: 1px solid rgba(5, 53, 135, 0.2);
    margin: 4px 0;
}

.workflow-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(5, 53, 135, 0.2);
    border-top-color: #053587;
    border-radius: 50%;
    animation: workflow-spin 1s linear infinite;
}

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

.workflow-text {
    font-size: 0.875rem;
    color: #053587;
    font-weight: 500;
}

/* Dark mode support */
.dark .workflow-progress-container {
    background-color: rgba(5, 53, 135, 0.15);
    border-color: rgba(5, 53, 135, 0.4);
}

.dark .workflow-spinner {
    border-color: rgba(60, 107, 187, 0.3);
    border-top-color: #3c6bbb;
}

.dark .workflow-text {
    color: #3c6bbb;
}

/* ========================================
   Navbar Workflow Status Indicator
   ======================================== */
#workflow-status-indicator {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    margin: 0 8px !important;
    padding: 0 !important;
    cursor: pointer !important;
    position: relative !important;
    border-radius: 8px !important;
    transition: background-color 0.2s ease !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    flex-shrink: 0 !important;
}

#workflow-status-indicator:hover {
    background-color: rgba(234, 179, 8, 0.15) !important;
}

#workflow-status-indicator.hidden {
    display: none !important;
}

/* Static document icon (default state) */
#workflow-status-indicator .workflow-icon-static {
    width: 20px !important;
    height: 20px !important;
    color: #6b7280;
    transition: color 0.2s ease;
}

#workflow-status-indicator:hover .workflow-icon-static {
    color: #f59e0b;
}

.dark #workflow-status-indicator .workflow-icon-static {
    color: #9ca3af;
}

.dark #workflow-status-indicator:hover .workflow-icon-static {
    color: #fbbf24;
}

/* Spinning loader icon (processing state) */
#workflow-status-indicator .workflow-icon-spinner {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    border: 3px solid rgba(156, 163, 175, 0.3) !important;
    border-top-color: #9ca3af !important;
    border-radius: 50% !important;
    animation: workflow-icon-spin 0.8s linear infinite !important;
    box-sizing: border-box !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

@keyframes workflow-icon-spin {
    to { transform: rotate(360deg); }
}

/* Tooltip */
#workflow-status-indicator[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 10000;
    pointer-events: none;
}

#workflow-status-indicator[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Dark mode indicator */
.dark #workflow-status-indicator:hover {
    background-color: rgba(156, 163, 175, 0.15) !important;
}

.dark #workflow-status-indicator .workflow-icon-spinner {
    border-color: rgba(156, 163, 175, 0.3) !important;
    border-top-color: #9ca3af !important;
}

.dark #workflow-status-indicator[data-tooltip]::after {
    background: rgba(30, 30, 30, 0.95);
}

/* ========================================
   Workflow Status Modal
   ======================================== */
.workflow-status-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workflow-status-modal.hidden {
    display: none !important;
}

.workflow-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.workflow-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.workflow-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.workflow-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.workflow-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.workflow-modal-close:hover {
    color: #111827;
}

.workflow-modal-body {
    padding: 0;
}

/* Active processing section (centered) */
.workflow-modal-active {
    padding: 24px 20px 20px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.workflow-modal-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #9ca3af;
    border-radius: 50%;
    animation: workflow-modal-spin 1s linear infinite;
    margin: 0 auto 14px;
}

@keyframes workflow-modal-spin {
    to { transform: rotate(360deg); }
}

.workflow-modal-text {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 500;
    color: #111827;
}

.workflow-modal-subtext {
    margin: 0 0 14px;
    font-size: 13px;
    color: #6b7280;
}

.workflow-modal-goto-btn {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.workflow-modal-goto-btn:hover {
    background: #d97706;
}

/* History section */
.workflow-modal-history {
    padding: 0;
}

.workflow-history-header {
    padding: 10px 20px 6px;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.workflow-history-list {
    max-height: 220px;
    overflow-y: auto;
    padding: 0 8px 8px;
}

.workflow-history-empty {
    padding: 16px 12px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

.workflow-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s;
    gap: 8px;
}

.workflow-history-item:hover {
    background-color: #f3f4f6;
}

.workflow-history-item-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.workflow-history-item-type {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.workflow-history-item-date {
    font-size: 12px;
    color: #6b7280;
}

.workflow-history-item-arrow {
    font-size: 16px;
    color: #9ca3af;
    flex-shrink: 0;
}

/* Dark mode modal */
.dark .workflow-modal-content {
    background: #1f2937;
}

.dark .workflow-modal-header {
    border-bottom-color: #374151;
}

.dark .workflow-modal-header h3 {
    color: #f9fafb;
}

.dark .workflow-modal-close {
    color: #9ca3af;
}

.dark .workflow-modal-close:hover {
    color: #f9fafb;
}

.dark .workflow-modal-spinner {
    border-color: #374151;
    border-top-color: #9ca3af;
}

.dark .workflow-modal-text {
    color: #f9fafb;
}

.dark .workflow-modal-subtext {
    color: #9ca3af;
}

.dark .workflow-modal-active {
    border-bottom-color: #374151;
}

.dark .workflow-modal-goto-btn {
    background: #fbbf24;
    color: #1f2937;
}

.dark .workflow-modal-goto-btn:hover {
    background: #f59e0b;
}

/* Dark mode history */
.dark .workflow-history-header {
    color: #6b7280;
}

.dark .workflow-history-item:hover {
    background-color: #374151;
}

.dark .workflow-history-item-type {
    color: #f9fafb;
}

.dark .workflow-history-item-date {
    color: #6b7280;
}

.dark .workflow-history-item-arrow {
    color: #6b7280;
}

.dark .workflow-history-empty {
    color: #6b7280;
}

/* ========================================
   Report Waiting Modal
   ======================================== */
.hitl-waiting-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: hitl-fade-in 0.3s ease-out;
}

.hitl-waiting-modal.hidden {
    display: none !important;
}

@keyframes hitl-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes hitl-steam {
    0%, 100% { transform: translateY(0) scaleX(1); opacity: 0.4; }
    50% { transform: translateY(-4px) scaleX(1.1); opacity: 0.8; }
}

@keyframes hitl-wm-float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(0, -6px); }
}

.hitl-waiting-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hitl-waiting-content {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    width: 90%;
    max-width: 440px;
    padding: 40px 32px 32px;
    box-shadow:
        0 0 0 1px rgba(5, 53, 135, 0.05),
        0 25px 60px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: slide-right 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    overflow: hidden;
}

/* Scattered "Lumier" watermarks */
.hitl-waiting-watermarks {
    position: absolute;
    inset: 0;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
    z-index: 0;
}

.hitl-wm {
    position: absolute;
    font-size: 64px;
    font-weight: 900;
    letter-spacing: -1px;
    white-space: nowrap;
    color: rgba(5, 53, 135, 0.06);
    animation: hitl-wm-float 8s ease-in-out infinite;
}

.hitl-wm-1 {
    top: -8px;
    left: -20px;
    font-size: 72px;
}

.hitl-wm-2 {
    bottom: 20px;
    right: -30px;
    font-size: 56px;
    animation-delay: -3s;
}

.hitl-wm-3 {
    top: 50%;
    left: 50%;
    font-size: 90px;
    margin-left: -100px;
    margin-top: -30px;
    animation-delay: -5s;
}

.hitl-wm-4 {
    top: 35%;
    right: -10px;
    font-size: 48px;
    animation-delay: -2s;
}

.hitl-wm-5 {
    bottom: -5px;
    left: 30%;
    font-size: 60px;
    animation-delay: -7s;
}

/* Circular countdown button (replaces X) */
.hitl-waiting-countdown-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    transition: background-color 0.15s;
}

.hitl-waiting-countdown-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.hitl-countdown-ring {
    position: absolute;
    top: 0;
    left: 0;
}

.hitl-countdown-track {
    stroke: #e5e7eb;
}

.hitl-countdown-progress {
    stroke: #053587;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.4s ease;
}

.hitl-countdown-number {
    position: relative;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    line-height: 1;
}

/* Coffee icon wrapper */
.hitl-waiting-icon-wrap {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(5, 53, 135, 0.08), rgba(5, 53, 135, 0.04));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hitl-waiting-icon-wrap svg {
    color: #053587;
    animation: hitl-steam 3s ease-in-out infinite;
}

.hitl-waiting-title {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}

.hitl-waiting-description {
    position: relative;
    z-index: 1;
    margin: 0 0 24px;
    font-size: 14.5px;
    line-height: 1.7;
    color: #4b5563;
}

.hitl-waiting-description strong {
    color: #053587;
    font-weight: 700;
}

/* Info row with icons */
.hitl-waiting-info-row {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 28px;
    padding: 16px;
    background: rgba(5, 53, 135, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(5, 53, 135, 0.06);
}

.hitl-waiting-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: #374151;
    text-align: left;
}

.hitl-waiting-info-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: rgba(5, 53, 135, 0.07);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hitl-waiting-info-icon svg {
    color: #053587;
}

.hitl-waiting-dismiss-btn {
    position: relative;
    z-index: 1;
    background: #053587;
    color: white;
    border: none;
    padding: 12px 36px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
    width: 100%;
    max-width: 220px;
    box-shadow: 0 4px 12px rgba(5, 53, 135, 0.25);
}

.hitl-waiting-dismiss-btn:hover {
    background: #0a4aad;
    box-shadow: 0 6px 16px rgba(5, 53, 135, 0.35);
}

.hitl-waiting-dismiss-btn:active {
    transform: scale(0.97);
}

/* ---- Dark mode ---- */
.dark .hitl-waiting-backdrop {
    background: rgba(0, 0, 0, 0.7);
}

.dark .hitl-waiting-content {
    background: #1a2332;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 25px 60px -12px rgba(0, 0, 0, 0.6);
}

.dark .hitl-wm {
    color: rgba(255, 255, 255, 0.05);
}

.dark .hitl-waiting-countdown-btn:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.dark .hitl-countdown-track {
    stroke: #374151;
}

.dark .hitl-countdown-progress {
    stroke: #60a5fa;
}

.dark .hitl-countdown-number {
    color: #94a3b8;
}

.dark .hitl-waiting-icon-wrap {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(96, 165, 250, 0.07));
}

.dark .hitl-waiting-icon-wrap svg {
    color: #60a5fa;
}

.dark .hitl-waiting-title {
    color: #f1f5f9;
}

.dark .hitl-waiting-description {
    color: #94a3b8;
}

.dark .hitl-waiting-description strong {
    color: #60a5fa;
}

.dark .hitl-waiting-info-row {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.dark .hitl-waiting-info-item {
    color: #cbd5e1;
}

.dark .hitl-waiting-info-icon {
    background: rgba(96, 165, 250, 0.12);
}

.dark .hitl-waiting-info-icon svg {
    color: #60a5fa;
}

.dark .hitl-waiting-dismiss-btn {
    background: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.dark .hitl-waiting-dismiss-btn:hover {
    background: #2563eb;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* ---- Mobile ---- */
@media (max-width: 480px) {
    .hitl-waiting-content {
        width: 95%;
        padding: 32px 20px 24px;
        border-radius: 16px;
    }

    .hitl-wm-1 { font-size: 52px; }
    .hitl-wm-2 { font-size: 40px; }
    .hitl-wm-3 { font-size: 64px; }
    .hitl-wm-4 { font-size: 36px; }
    .hitl-wm-5 { font-size: 44px; }

    .hitl-waiting-title {
        font-size: 19px;
    }

    .hitl-waiting-description {
        font-size: 13.5px;
    }

    .hitl-waiting-icon-wrap {
        width: 60px;
        height: 60px;
    }

    .hitl-waiting-icon-wrap svg {
        width: 32px;
        height: 32px;
    }

    .hitl-waiting-info-row {
        padding: 12px;
    }
}

/* ---- Mobile header: prevent button overflow ---- */
@media (max-width: 768px) {
    /* Chainlit renders the top bar as a <header> or nav with flex */
    header, nav {
        overflow: visible !important;
        flex-wrap: nowrap !important;
    }

    /* Make the plan badge (Enterprise / Free etc.) shrink */
    [class*="MuiChip-label"],
    [class*="MuiChip-root"],
    [class*="plan-badge"],
    [class*="tier"],
    [class*="badge"] {
        font-size: 11px !important;
        padding: 2px 6px !important;
    }

    /* Add more credits / Extend button */
    button[data-custom-pricing-hooked="true"] {
        font-size: 11px !important;
        padding: 4px 8px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
}

/* ========================================
   Mode Picker Modal  (mode-picker.js)
   ======================================== */
.lu-mp-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

/* ── Sheet — desktop: centred card, mobile: bottom sheet ── */
.lu-mp-sheet {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    width: 92%;
    max-width: 680px;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.07),
        0 20px 48px -8px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    animation: lu-mp-in 0.15s ease-out both;
}

@keyframes lu-mp-in {
    from { transform: scale(0.97) translateY(8px); opacity: 0; }
    to   { transform: scale(1)    translateY(0);   opacity: 1; }
}

/* Mobile: full-width bottom sheet */
@media (max-width: 599px) {
    #lu-mode-picker-modal {
        align-items: flex-end !important;
    }
    .lu-mp-sheet {
        width: 100%;
        max-width: 100%;
        max-height: 80vh;
        border-radius: 18px 18px 0 0;
        animation: lu-mp-slide-up 0.2s ease-out both;
    }
    @keyframes lu-mp-slide-up {
        from { transform: translateY(100%); opacity: 0; }
        to   { transform: translateY(0);    opacity: 1; }
    }
}

.lu-mp-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.lu-mp-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.lu-mp-close {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    transition: background 0.1s, color 0.1s;
}
.lu-mp-close:hover { background: #f3f4f6; color: #111827; }

/* ── Grid list ── */
.lu-mp-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

@media (max-width: 599px) {
    .lu-mp-list {
        grid-template-columns: repeat(2, 1fr);
        padding: 10px 10px 20px;
        gap: 7px;
    }
}

/* ── Grid card option ── */
.lu-mp-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    padding: 12px 12px 11px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    background: #fafafa;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.lu-mp-option:hover {
    background: #f3f4f6;
    border-color: rgba(0, 0, 0, 0.1);
}

.lu-mp-option--active {
    background: #eef2fb;
    border-color: #c0cef5;
    box-shadow: 0 0 0 1px #c0cef5;
}
.lu-mp-option--active:hover {
    background: #e8eef9;
}

.lu-mp-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f0f0f2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}
.lu-mp-option--active .lu-mp-icon {
    background: #dce6f7;
    color: #053587;
}

.lu-mp-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

.lu-mp-name {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}
.lu-mp-option--active .lu-mp-name { color: #053587; }

.lu-mp-desc {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.4;
}

/* Chat button — highlighted when chat mode is active (no command selected) */
button[data-lu-chat-active="1"] {
    background: #eef2fb !important;
    color: #053587 !important;
    border-color: #c0cef5 !important;
    box-shadow: 0 0 0 1px #c0cef5 !important;
}
.dark button[data-lu-chat-active="1"] {
    background: #1e2a3e !important;
    color: #93bbfd !important;
    border-color: #3b5ea8 !important;
    box-shadow: 0 0 0 1px #3b5ea8 !important;
}

/* Active-mode badge next to the Modes trigger button */
.lu-mode-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
    white-space: nowrap;
    vertical-align: middle;
    pointer-events: none;
    line-height: 1.6;
    border: 1px solid rgba(0, 0, 0, 0.07);
}

/* ---- Dark mode ---- */
.dark .lu-mp-sheet {
    background: #1c1c1e;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 20px 48px -8px rgba(0, 0, 0, 0.55);
}
.dark .lu-mp-header     { border-bottom-color: rgba(255, 255, 255, 0.07); }
.dark .lu-mp-title      { color: #f9fafb; }
.dark .lu-mp-close      { color: #6b7280; }
.dark .lu-mp-close:hover { background: #2a2a2e; color: #f9fafb; }
.dark .lu-mp-option {
    background: #252528;
    border-color: rgba(255, 255, 255, 0.06);
}
.dark .lu-mp-option:hover {
    background: #2e2e32;
    border-color: rgba(255, 255, 255, 0.1);
}
.dark .lu-mp-option--active {
    background: #1e2a3e;
    border-color: #3b5ea8;
    box-shadow: 0 0 0 1px #3b5ea8;
}
.dark .lu-mp-option--active:hover { background: #223047; }
.dark .lu-mp-icon       { background: #2a2a2e; color: #9ca3af; }
.dark .lu-mp-option--active .lu-mp-icon { background: #1d3057; color: #60a5fa; }
.dark .lu-mp-name       { color: #f9fafb; }
.dark .lu-mp-option--active .lu-mp-name { color: #93bbfd; }
.dark .lu-mp-desc       { color: #6b7280; }
.dark .lu-mode-badge    { background: #2a2a2e; color: #d1d5db; border-color: rgba(255, 255, 255, 0.08); }