/* b5-responsivo-e-canais.css — pedaço 5/8 do antigo painel-body.css. A ORDEM dos links
   no index.html é a cascata: não reordenar, não trocar de posição. */

/* A camada mobile inteira (os antigos blocos @media 960px e 560px daqui) foi REFEITA
   do zero em 19/08/2026 e mora em public/css/mobile.css, carregado por ultimo no
   index.html. Nao recriar regra de celular neste arquivo. */


        html.light-theme .settings-container {
            background: #ffffff !important;
        }

        html.light-theme .settings-sidebar {
            background: #f0f2f5 !important;
            color: #111b21 !important;
        }

        html.light-theme .settings-card {
            background: #f0f2f5 !important;
        }

        html.light-theme ::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.2) !important;
        }

        html.light-theme ::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 0, 0, 0.35) !important;
        }

        html.light-theme ::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.02) !important;
        }

        html.light-theme #assignment-overlay {
            background: #f0f2f5 !important;
            border: 1px solid #d1d7db !important;
        }

        html.light-theme #assignment-bottom-text {
            color: #111b21 !important;
        }

        /* Correção de estilo para modals */
        .swal2-dark-custom .swal2-select {
            color: var(--text-main) !important;
            background: var(--bg-header) !important;
            border: 1px solid var(--border) !important;
            padding: 10px !important;
        }
        .swal2-dark-custom .swal2-select option {
            background: var(--bg-sidebar) !important;
            color: var(--text-main) !important;
        }
        
        /* Dropdown Menu */
        .dropdown {
            position: relative;
            display: inline-block;
        }

        .dropdown-content {
            display: none;
            position: absolute;
            right: 0;
            background-color: var(--bg-header);
            min-width: 220px;
            box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.5);
            z-index: 1000;
            border-radius: 8px;
            border: 1px solid var(--border);
            padding: 8px 0;
            margin-top: 10px;
        }

        .dropdown-content a {
            color: var(--text-main);
            padding: 10px 16px;
            text-decoration: none;
            display: block;
            font-size: 14px;
            transition: 0.2s;
        }

        .dropdown-content a i {
            width: 20px;
            margin-right: 12px;
            color: var(--text-secondary);
        }

        .dropdown-content a:hover {
            background-color: rgba(255, 255, 255, 0.05);
        }

        .dropdown-content.show {
            display: block;
        }

        .chat-context-menu {
            position: fixed;
            min-width: 240px;
            display: none;
            opacity: 0;
            transform: translateY(8px) scale(0.97);
            transform-origin: top left;
            background: linear-gradient(180deg, rgba(26, 39, 48, 0.98), rgba(17, 27, 33, 0.98));
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            box-shadow: 0 22px 46px rgba(0,0,0,0.38);
            backdrop-filter: blur(14px);
            z-index: 4000;
            padding: 10px;
            transition: opacity 0.16s ease, transform 0.18s ease;
        }

        .chat-context-menu.show {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        .chat-context-menu button {
            width: 100%;
            background: transparent;
            border: none;
            color: var(--text-main);
            text-align: left;
            padding: 12px 14px;
            cursor: pointer;
            font-size: 14px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            gap: 12px;
            outline: none;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
            transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
        }

        .chat-context-menu button:focus,
        .chat-context-menu button:active {
            background: rgba(0,168,132,0.12);
            color: var(--text-main);
            outline: none;
        }

        .chat-context-menu button i {
            width: 18px;
            text-align: center;
            color: rgba(255,255,255,0.72);
            transition: color 0.18s ease, transform 0.18s ease;
        }

        .chat-context-menu button:hover {
            background: rgba(255,255,255,0.08);
            transform: translateX(2px);
        }

        .chat-context-menu button:hover i {
            color: var(--accent);
            transform: scale(1.08);
        }

        .chat-context-menu button.destructive {
            color: #ffb3b0;
        }

        .chat-context-menu button.destructive i {
            color: #ff8a80;
        }

        .chat-context-menu button.is-accent i {
            color: #7af5cf;
        }

        .chat-context-menu .menu-divider {
            height: 1px;
            background: rgba(255,255,255,0.08);
            margin: 8px 4px;
        }

        :root.light-theme .chat-context-menu {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 250, 0.98));
            border: 1px solid rgba(17, 27, 33, 0.10);
            box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
        }

        :root.light-theme .chat-context-menu button {
            color: #111b21;
        }

        :root.light-theme .chat-context-menu button i {
            color: rgba(17, 27, 33, 0.62);
        }

        :root.light-theme .chat-context-menu button:hover {
            background: rgba(17, 27, 33, 0.06);
        }

        :root.light-theme .chat-context-menu button:focus,
        :root.light-theme .chat-context-menu button:active {
            background: rgba(0,168,132,0.10);
            color: #111b21;
        }

        :root.light-theme .chat-context-menu .menu-divider {
            background: rgba(17, 27, 33, 0.08);
        }

        :root.light-theme .chat-context-menu button.destructive {
            color: #c62828;
        }

        :root.light-theme .chat-context-menu button.destructive i {
            color: #e53935;
        }

        .chat-bulk-toolbar {
            display: none;
            margin: 0 10px 10px;
            padding: 8px;
            border-radius: 12px;
            background: rgba(0, 168, 132, 0.08);
            border: 1px solid rgba(0, 168, 132, 0.18);
        }

        .chat-bulk-toolbar.is-visible {
            display: block;
        }

        .chat-bulk-toolbar-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 8px;
        }

        .chat-bulk-toolbar-title {
            color: var(--text-main);
            font-size: 12px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }

        .chat-bulk-toolbar-title span {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .chat-bulk-toolbar-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .chat-bulk-action-btn {
            border: 1px solid rgba(255,255,255,0.1);
            background: rgba(255,255,255,0.06);
            color: var(--text-main);
            border-radius: 10px;
            padding: 7px 9px;
            font-size: 11px;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: all 0.18s ease;
        }

        .chat-bulk-action-btn:hover {
            transform: translateY(-1px);
            border-color: rgba(0,168,132,0.3);
            background: rgba(0,168,132,0.12);
        }

        .chat-bulk-action-btn.is-danger {
            color: #ffb3b0;
            border-color: rgba(244, 67, 54, 0.22);
            background: rgba(244, 67, 54, 0.08);
        }

        .chat-bulk-action-btn.is-danger:hover {
            border-color: rgba(244, 67, 54, 0.34);
            background: rgba(244, 67, 54, 0.14);
        }

        .chat-bulk-action-btn.is-primary {
            color: #ffffff;
            border-color: rgba(0, 168, 132, 0.52);
            background: #008069;
            box-shadow: 0 8px 18px rgba(0, 128, 105, 0.22);
        }

        .chat-bulk-action-btn:disabled,
        .chat-bulk-action-btn.is-primary:disabled {
            color: rgba(224, 224, 224, 0.45);
            border-color: rgba(255, 255, 255, 0.08);
            background: #202c33;
            box-shadow: none;
            cursor: not-allowed;
            opacity: 1;
            transform: none;
        }

        .chat-bulk-action-btn:disabled i,
        .chat-bulk-action-btn.is-primary:disabled i {
            color: rgba(224, 224, 224, 0.32);
        }

        :root.light-theme .chat-bulk-toolbar {
            background: rgba(0, 168, 132, 0.08);
            border-color: rgba(0, 168, 132, 0.16);
        }

        :root.light-theme .chat-bulk-action-btn {
            border-color: rgba(17, 27, 33, 0.08);
            background: rgba(17, 27, 33, 0.03);
        }

        .chat-quick-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            padding: 10px 12px;
            border-bottom: 1px solid var(--border);
            overflow: visible;
            background:
                linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)),
                var(--bg-sidebar);
        }

        .chat-quick-filter-btn {
            width: auto;
            margin-top: 0;
            padding: 7px 13px !important;
            border-radius: 999px !important;
            white-space: nowrap;
            border: 1px solid rgba(255,255,255,0.06) !important;
            background: rgba(255,255,255,0.03) !important;
            color: var(--text-main) !important;
            transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease !important;
        }

        .chat-quick-filter-btn:hover {
            transform: translateY(-1px);
            background: rgba(255,255,255,0.07) !important;
            box-shadow: 0 8px 20px rgba(0,0,0,0.18);
        }

        .chat-quick-filter-btn.active {
            background: linear-gradient(135deg, var(--accent), #2bd9b0) !important;
            color: #05231d !important;
            box-shadow: 0 10px 24px rgba(37, 211, 102, 0.22);
            border-color: transparent !important;
        }

        .chat-quick-filter-btn.active span {
            color: inherit !important;
        }

        .chat-channel-filter-btn {
            min-width: 38px;
            width: 38px;
            padding-left: 0 !important;
            padding-right: 0 !important;
            justify-content: center;
        }

        .chat-channel-filter-btn i {
            font-size: 15px;
            line-height: 1;
        }

        .chat-header-title-row {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }

        .chat-header-title-row #c-name {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .chat-header-channel-badge {
            width: 28px;
            min-width: 28px;
            height: 24px;
            padding: 0;
        }

        #quick-filter-whatsapp.active {
            background: #00a884 !important;
            color: #fff !important;
            box-shadow: 0 10px 24px rgba(0, 168, 132, 0.24);
        }

        #quick-filter-instagram.active {
            background: linear-gradient(45deg, #f09433, #e6683c 28%, #dc2743 55%, #bc1888) !important;
            color: #fff !important;
            box-shadow: 0 10px 24px rgba(220, 39, 67, 0.24);
        }

        #quick-filter-messenger.active {
            background: #0084ff !important;
            color: #fff !important;
            box-shadow: 0 10px 24px rgba(0, 132, 255, 0.24);
        }

        .instagram-token-alert {
            background: rgba(220, 39, 67, 0.12);
            border: 1px solid rgba(220, 39, 67, 0.42);
            border-radius: 8px;
            color: var(--text-primary);
            padding: 14px;
            text-align: left;
        }

        .instagram-token-alert .instagram-token-title {
            align-items: center;
            color: #ff6b8f;
            display: flex;
            font-size: 13px;
            font-weight: 800;
            gap: 8px;
            margin-bottom: 6px;
            text-transform: uppercase;
        }

        .instagram-token-alert .instagram-token-text {
            color: var(--text-secondary);
            font-size: 12px;
            line-height: 1.45;
            margin-bottom: 12px;
        }

        html.light-theme .chat-quick-filters {
            background:
                linear-gradient(180deg, rgba(17,27,33,0.02), rgba(17,27,33,0)),
                #ffffff;
            border-bottom-color: #d1d7db !important;
        }

        html.light-theme .chat-quick-filter-btn {
            background: #f0f2f5 !important;
            border-color: #d1d7db !important;
            color: #111b21 !important;
            box-shadow: none !important;
        }

        html.light-theme .chat-quick-filter-btn:hover {
            background: #e9edef !important;
            box-shadow: 0 6px 14px rgba(17,27,33,0.08) !important;
        }

        html.light-theme .chat-quick-filter-btn.active {
            color: #111b21 !important;
            box-shadow: 0 10px 24px rgba(0,168,132,0.18) !important;
        }

        html.light-theme .chat-quick-filter-btn.active span {
            color: inherit !important;
        }

        .mobile-inbox-filter-trigger {
            display: none;
            width: 42px;
            height: 42px;
            border: 1px solid var(--border);
            border-radius: 14px;
            background: rgba(255,255,255,0.04);
            color: var(--text-main);
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            cursor: pointer;
        }

        html.light-theme .mobile-inbox-filter-trigger {
            background: #f0f2f5;
            border-color: #d1d7db;
            color: #111b21;
        }

        .mobile-bottom-bar {
            display: none;
        }

        html.light-theme .switch .slider {
            background-color: #cfd7dc;
            border-color: #b8c4cc;
        }

        html.light-theme .switch .slider:before {
            background-color: #ffffff;
            box-shadow: 0 1px 4px rgba(17,27,33,0.18);
        }

        html.light-theme .switch input:checked + .slider {
            background-color: var(--accent);
            border-color: var(--accent);
        }

        /* Contact Details Panel */
        .contact-details-panel .avatar-big {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            margin: 20px auto;
            display: block;
            object-fit: cover;
            border: 4px solid var(--accent);
        }

        .contact-detail-row {
            margin-bottom: 25px;
            border-bottom: 1px solid var(--border);
            padding-bottom: 15px;
        }

        .info-label {
            color: var(--accent);
            font-size: 12px;
            text-transform: uppercase;
            font-weight: 600;
            margin-bottom: 8px;
            display: block;
        }

        .info-value {
            font-size: 16px;
            color: var(--text-main);
        }
        .status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            display: inline-block;
            margin-left: 5px;
            box-shadow: 0 0 5px rgba(0,0,0,0.5);
            transition: background 0.3s ease;
        }
        .status-online { background: #00e676; box-shadow: 0 0 8px #00e676; }
        .status-offline { background: #f44336; box-shadow: 0 0 8px #f44336; }
        .status-connecting { background: #ffeb3b; box-shadow: 0 0 8px #ffeb3b; }

        /* Saude da IA — separado de propósito do status do WhatsApp (28/08/2026):
           uma API instável não deve parecer "WhatsApp caiu". Cor âmbar, nunca vermelha. */
        .ai-health-dot {
            margin-left: 3px;
            background: #ffa726;
            box-shadow: 0 0 8px #ffa726;
            animation: ai-health-pulse 1.6s ease-in-out infinite;
        }
        @keyframes ai-health-pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.35; }
        }

        ::selection {
            background: rgba(0, 168, 132, 0.28);
            color: var(--text-main);
        }

        ::-moz-selection {
            background: rgba(0, 168, 132, 0.28);
            color: var(--text-main);
        }

        .agenda-shell {
            flex: 1;
            display: grid;
            grid-template-columns: minmax(0, 1fr) 280px;
            gap: 18px;
            width: 100%;
            max-width: 1780px;
            margin: 0 auto;
            padding: 18px 20px 20px;
            min-height: 0;
            overflow: auto;
            box-sizing: border-box;
            align-items: start;
        }

/* ══ CALENDÁRIO & AGENDA ESTILO GOOGLE AGENDA ═════════════════════════════════ */
        .agenda-top-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 24px;
            border-bottom: 1px solid var(--border);
            background: var(--bg-card);
            flex-wrap: wrap;
            gap: 16px;
            z-index: 10;
        }

        .agenda-top-left {
            display: flex;
            align-items: center;
            gap: 14px;
            flex-wrap: wrap;
        }

        .agenda-top-title-wrap {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-right: 6px;
        }

        .agenda-top-icon {
            font-size: 22px;
            color: var(--accent);
            display: flex;
            align-items: center;
        }

        .agenda-top-title {
            font-size: 20px;
            font-weight: 700;
            margin: 0;
            color: var(--text-main);
            letter-spacing: -0.02em;
        }

        .agenda-btn-today {
            border: 1px solid var(--border);
            background: var(--bg-sidebar);
            color: var(--text-main);
            border-radius: 8px;
            padding: 7px 16px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .agenda-btn-today:hover {
            background: var(--accent-subtle);
            border-color: var(--accent);
            color: var(--accent);
        }

        .agenda-nav-arrows {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .agenda-nav-btn {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            border: 1px solid var(--border);
            background: var(--bg-sidebar);
            color: var(--text-main);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.15s ease;
        }

        .agenda-nav-btn:hover {
            border-color: var(--accent);
            color: var(--accent);
            background: var(--accent-subtle);
        }

        .agenda-period-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-main);
            margin: 0 0 0 6px;
            letter-spacing: -0.01em;
        }

        .agenda-top-right {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .agenda-dropdown-wrap {
            position: relative;
        }

        .agenda-view-dropdown-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            background: var(--bg-sidebar);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 7px 16px;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-main);
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .agenda-view-dropdown-btn:hover {
            border-color: var(--accent);
            background: var(--accent-subtle);
        }

        .agenda-view-dropdown-menu {
            position: absolute;
            top: calc(100% + 6px);
            right: 0;
            min-width: 260px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 14px;
            box-shadow: 0 16px 40px rgba(0,0,0,0.3);
            padding: 8px 0;
            z-index: 120;
            backdrop-filter: blur(14px);
        }

        .agenda-menu-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 9px 18px;
            font-size: 13px;
            color: var(--text-main);
            cursor: pointer;
            transition: background 0.12s ease, color 0.12s ease;
        }

        .agenda-menu-item:hover, .agenda-menu-item.active {
            background: var(--accent-subtle);
            color: var(--accent);
        }

        .agenda-shortcut-key {
            font-size: 11px;
            color: var(--text-secondary);
            font-weight: 700;
            background: rgba(255,255,255,0.06);
            padding: 2px 7px;
            border-radius: 4px;
            border: 1px solid var(--border);
        }

        .agenda-menu-divider {
            height: 1px;
            background: var(--border);
            margin: 6px 0;
        }

        .agenda-menu-checkbox {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 18px;
            font-size: 12.5px;
            color: var(--text-main);
            cursor: pointer;
            user-select: none;
            transition: background 0.12s ease;
        }

        .agenda-menu-checkbox:hover {
            background: rgba(255,255,255,0.04);
        }

        .agenda-menu-checkbox input {
            display: none;
        }

        .agenda-custom-chk {
            width: 17px;
            height: 17px;
            border-radius: 4px;
            border: 1.5px solid var(--text-secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            color: transparent;
            transition: all 0.12s ease;
            flex-shrink: 0;
        }

        .agenda-menu-checkbox input:checked + .agenda-custom-chk {
            background: var(--accent);
            border-color: var(--accent);
            color: #ffffff;
        }

        /* CALENDARS CHECKLIST */
        .agenda-calendars-list {
            display: flex;
            flex-direction: column;
            gap: 4px;
            margin-bottom: 20px;
        }

        .agenda-cal-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 7px 10px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 12px;
            color: var(--text-main);
            font-weight: 500;
            transition: background 0.12s ease;
            user-select: none;
        }

        .agenda-cal-item:hover {
            background: rgba(255,255,255,0.04);
        }

        .agenda-cal-item input {
            accent-color: var(--accent);
            cursor: pointer;
        }

        .agenda-cal-color-dot {
            width: 10px;
            height: 10px;
            border-radius: 3px;
            flex-shrink: 0;
        }

        .agenda-holiday-pill {
            border-radius: 6px;
            background: rgba(245, 158, 11, 0.15);
            border-left: 3px solid #f59e0b;
            padding: 3px 6px;
            font-size: 10px;
            color: #f59e0b;
            font-weight: 700;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 3px;
        }

        /* ══ SCHEDULE / PROGRAMAÇÃO VIEW ════════════════════════════════════════ */
        .agenda-schedule-view {
            display: flex;
            flex-direction: column;
            gap: 14px;
            padding: 20px 24px;
            overflow-y: auto;
            height: 100%;
            box-sizing: border-box;
        }

        .agenda-schedule-group {
            display: flex;
            gap: 20px;
            border-bottom: 1px solid var(--border);
            padding-bottom: 16px;
        }

        .agenda-schedule-date-badge {
            width: 90px;
            flex-shrink: 0;
            text-align: right;
        }

        .agenda-schedule-day-num {
            font-size: 24px;
            font-weight: 800;
            color: var(--text-main);
            line-height: 1;
        }

        .agenda-schedule-day-name {
            font-size: 11.5px;
            font-weight: 700;
            color: var(--text-secondary);
            text-transform: uppercase;
            margin-top: 4px;
        }

        .agenda-schedule-events {
            display: flex;
            flex-direction: column;
            gap: 8px;
            flex: 1;
        }

        .agenda-schedule-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 16px;
            border-radius: 12px;
            background: var(--bg-sidebar);
            border: 1px solid var(--border);
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .agenda-schedule-item:hover {
            border-color: var(--accent);
            transform: translateX(2px);
        }

        .agenda-schedule-holiday-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 14px;
            border-radius: 10px;
            background: rgba(245, 158, 11, 0.1);
            border: 1px dashed rgba(245, 158, 11, 0.4);
            color: #f59e0b;
            font-size: 12.5px;
            font-weight: 700;
        }

        .agenda-btn-create {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(135deg, #00a884 0%, #008769 100%);
            color: #ffffff !important;
            border: none;
            padding: 8px 18px;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 4px 14px rgba(0, 168, 132, 0.35);
            transition: all 0.15s ease;
        }

        .agenda-btn-create:hover {
            transform: translateY(-1px);
            filter: brightness(1.06);
            box-shadow: 0 6px 18px rgba(0, 168, 132, 0.45);
        }

        /* MAIN SHELL & SIDEBAR */
        .agenda-shell {
            display: grid;
            grid-template-columns: 310px 1fr;
            gap: 16px;
            padding: 16px 24px 24px 24px;
            flex: 1;
            min-height: 0;
            overflow: hidden;
            box-sizing: border-box;
        }

        .agenda-side-card {
            padding: 18px;
            overflow-y: auto;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            box-shadow: 0 6px 20px rgba(0,0,0,0.03);
            display: flex;
            flex-direction: column;
        }

        .agenda-side-title {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-main);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
            letter-spacing: -0.01em;
        }

        /* MINI CALENDAR (GOOGLE STYLE) */
        .agenda-mini-calendar-wrap {
            background: var(--bg-sidebar);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 12px 14px;
        }

        .agenda-mini-cal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8px;
        }

        .agenda-mini-month-title {
            font-size: 12.5px;
            font-weight: 700;
            color: var(--text-main);
        }

        .agenda-mini-cal-nav {
            display: flex;
            align-items: center;
            gap: 2px;
        }

        .agenda-mini-nav-btn {
            width: 24px;
            height: 24px;
            border-radius: 6px;
            border: none;
            background: transparent;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 10px;
            transition: all 0.12s ease;
        }

        .agenda-mini-nav-btn:hover {
            background: rgba(255,255,255,0.08);
            color: var(--text-main);
        }

        .agenda-mini-weekdays {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            text-align: center;
            font-size: 10.5px;
            font-weight: 700;
            color: var(--text-secondary);
            margin-bottom: 4px;
        }

        .agenda-mini-days-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 2px;
            text-align: center;
        }

        .agenda-mini-day {
            height: 26px;
            width: 26px;
            margin: 0 auto;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 600;
            color: var(--text-main);
            cursor: pointer;
            transition: all 0.12s ease;
            position: relative;
        }

        .agenda-mini-day:hover {
            background: rgba(255,255,255,0.08);
        }

        .agenda-mini-day.is-outside {
            opacity: 0.3;
        }

        .agenda-mini-day.is-today {
            color: var(--accent);
            font-weight: 800;
        }

        .agenda-mini-day.is-selected {
            background: var(--accent) !important;
            color: #ffffff !important;
            font-weight: 800;
        }

        .agenda-mini-day.has-events::after {
            content: '';
            position: absolute;
            bottom: 2px;
            width: 3px;
            height: 3px;
            border-radius: 50%;
            background: var(--accent);
        }

        .agenda-mini-day.is-selected.has-events::after {
            background: #ffffff;
        }

        /* STATS CARDS */
        .agenda-stat-grid {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 20px;
        }

        .agenda-stat {
            border-radius: 14px;
            border: 1px solid var(--border);
            background: var(--bg-card);
            padding: 14px 16px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.02);
            transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
        }

        .agenda-stat:hover {
            border-color: rgba(0, 168, 132, 0.35);
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(0,0,0,0.05);
        }

        .agenda-stat-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .agenda-stat-label {
            font-size: 11.5px;
            font-weight: 600;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        .agenda-stat-icon {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            background: rgba(0, 168, 132, 0.12);
            color: var(--accent);
            flex-shrink: 0;
        }

        .agenda-stat-body {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
        }

        .agenda-stat-value {
            font-size: 24px;
            font-weight: 800;
            color: var(--text-main);
            letter-spacing: -0.02em;
            line-height: 1;
        }

        .agenda-stat-sub {
            font-size: 11.5px;
            color: var(--text-secondary);
            font-weight: 500;
        }

        /* UPCOMING LIST */
        .agenda-upcoming-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .agenda-upcoming-item {
            border-radius: 14px;
            border: 1px solid var(--border);
            background: var(--bg-sidebar);
            padding: 14px 16px;
            transition: all 0.15s ease;
        }

        .agenda-upcoming-item:hover {
            border-color: rgba(0, 168, 132, 0.35);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.04);
        }

        .agenda-upcoming-meta {
            font-size: 11.5px;
            color: var(--accent);
            font-weight: 700;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .agenda-empty {
            padding: 28px 16px;
            border-radius: 14px;
            border: 1px solid var(--border);
            background: var(--bg-sidebar);
            color: var(--text-secondary);
            text-align: center;
            font-size: 13px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .agenda-empty i {
            font-size: 26px;
            opacity: 0.45;
            color: var(--text-secondary);
            margin-bottom: 2px;
        }

        /* MAIN CALENDAR CARD CONTAINER */
        .agenda-calendar-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 18px;
            box-shadow: 0 6px 24px rgba(0,0,0,0.04);
            display: flex;
            flex-direction: column;
            min-height: 0;
            height: 100%;
            overflow: hidden;
            position: relative;
        }

        /* ══ MONTH VIEW (MÊS - GOOGLE CALENDAR GRID) ═══════════════════════════ */
        .agenda-month-view {
            display: flex;
            flex-direction: column;
            height: 100%;
            overflow-y: auto;
        }

        .agenda-weekdays {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            border-bottom: 1px solid var(--border);
            background: var(--bg-sidebar);
            text-align: center;
            flex-shrink: 0;
        }

        .agenda-weekday {
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: var(--text-secondary);
            padding: 10px 4px;
            border-right: 1px solid var(--border);
        }

        .agenda-weekday:last-child {
            border-right: none;
        }

        .agenda-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 0;
            padding: 0;
            flex: 1;
            border-left: 1px solid var(--border);
            background: var(--bg-card);
        }

        .agenda-day {
            min-height: 120px;
            border-right: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
            background: transparent;
            padding: 6px 8px;
            cursor: pointer;
            transition: background 0.12s ease;
            display: flex;
            flex-direction: column;
            gap: 2px;
            box-sizing: border-box;
            position: relative;
        }

        .agenda-day:hover {
            background: rgba(255,255,255,0.03);
        }

        .agenda-day.is-outside {
            opacity: 0.38;
            background: rgba(0,0,0,0.08);
        }

        .agenda-day.is-today {
            background: rgba(0, 168, 132, 0.04);
        }

        .agenda-day-head {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 4px;
        }

        .agenda-day-number {
            color: var(--text-main);
            font-size: 12px;
            font-weight: 700;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

        .agenda-day.is-today .agenda-day-number {
            background: var(--accent);
            color: #ffffff;
            font-weight: 800;
        }

        .agenda-day-events {
            display: flex;
            flex-direction: column;
            gap: 2px;
            flex: 1;
            overflow: hidden;
        }

        .agenda-holiday-pill {
            border-radius: 4px !important;
            background: #0b8043 !important;
            color: #ffffff !important;
            padding: 2px 8px !important;
            font-size: 11px !important;
            font-weight: 600 !important;
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            margin-bottom: 2px !important;
            border: none !important;
            display: flex !important;
            align-items: center !important;
            gap: 4px !important;
            box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
        }

        .agenda-event-pill {
            border-radius: 4px !important;
            background: #039be5 !important;
            color: #ffffff !important;
            padding: 2px 8px !important;
            font-size: 11px !important;
            font-weight: 600 !important;
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            margin-bottom: 2px !important;
            border: none !important;
            display: flex !important;
            align-items: center !important;
            gap: 4px !important;
            cursor: pointer !important;
            transition: all 0.12s ease !important;
            box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
        }

        .agenda-event-pill:hover {
            filter: brightness(1.15) !important;
            transform: scale(1.01) !important;
        }

        .agenda-event-time {
            font-size: 10.5px;
            font-weight: 700;
            opacity: 0.9;
        }

        .agenda-event-title {
            font-size: 11px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .agenda-more {
            font-size: 10px;
            color: var(--text-secondary);
            margin-top: auto;
            font-weight: 700;
            padding: 1px 4px;
        }

        /* ══ DAY & WEEK TIME GRIDS (GOOGLE STYLE) ═══════════════════════════════ */
        .agenda-timeline-view {
            display: flex;
            flex-direction: column;
            height: 100%;
            min-height: 0;
            overflow: hidden;
            background: var(--bg-card);
        }

        .agenda-timeline-header {
            display: flex;
            border-bottom: 1px solid var(--border);
            background: var(--bg-sidebar);
            flex-shrink: 0;
            overflow-y: scroll;
            scrollbar-width: thin;
            scrollbar-color: transparent transparent;
        }

        .agenda-timeline-header::-webkit-scrollbar {
            width: 8px;
            background: transparent;
        }

        .agenda-timeline-header::-webkit-scrollbar-thumb {
            background: transparent;
        }

        .agenda-timeline-header-cols {
            display: grid;
            flex: 1;
            min-width: 0;
        }

        .agenda-timeline-header-col {
            padding: 8px 4px;
            text-align: center;
            border-right: 1px solid var(--border);
            cursor: pointer;
            box-sizing: border-box;
            transition: background 0.12s ease;
        }

        .agenda-timeline-header-col:hover {
            background: rgba(127, 127, 127, 0.05);
        }

        .agenda-timeline-header-col:last-child {
            border-right: none;
        }

        .agenda-timeline-body {
            display: flex;
            flex: 1;
            overflow-y: scroll !important;
            overflow-x: hidden;
            position: relative;
            scrollbar-width: thin;
            scrollbar-color: rgba(127, 127, 127, 0.28) transparent;
        }

        .agenda-timeline-body::-webkit-scrollbar {
            width: 8px;
        }

        .agenda-timeline-body::-webkit-scrollbar-thumb {
            background: rgba(127, 127, 127, 0.28);
            border-radius: 4px;
        }

        .agenda-timeline-body::-webkit-scrollbar-thumb:hover {
            background: rgba(127, 127, 127, 0.48);
        }

        .agenda-time-gutter {
            width: 64px;
            flex-shrink: 0;
            border-right: 1px solid var(--border);
            background: var(--bg-sidebar);
            user-select: none;
        }

        .agenda-time-slot-label {
            height: 54px;
            font-size: 11px;
            color: var(--text-secondary);
            font-weight: 600;
            text-align: right;
            padding-right: 10px;
            transform: translateY(-8px);
            box-sizing: border-box;
        }

        .agenda-timeline-cols {
            display: grid;
            flex: 1;
            position: relative;
            min-width: 0;
        }

        .agenda-timeline-col {
            position: relative;
            border-right: 1px solid var(--border);
            height: calc(54px * 24);
        }

        .agenda-timeline-col:last-child {
            border-right: none;
        }

        .agenda-hour-line {
            height: 54px;
            border-bottom: 1px solid var(--border);
            box-sizing: border-box;
            cursor: pointer;
            transition: background 0.1s ease;
        }

        .agenda-hour-line:hover {
            background: rgba(255,255,255,0.025);
        }

        .agenda-timeline-event {
            position: absolute;
            left: 4px;
            right: 4px;
            border-radius: 6px;
            background: #039be5;
            color: #ffffff;
            padding: 6px 10px;
            font-size: 12px;
            cursor: pointer;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.22);
            border: 1px solid rgba(255,255,255,0.2);
            transition: all 0.15s ease;
            z-index: 5;
        }

        .agenda-timeline-event:hover {
            filter: brightness(1.1);
            transform: scale(1.01);
            z-index: 10;
        }

        .agenda-timeline-event-title {
            font-weight: 700;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .agenda-timeline-event-time {
            font-size: 10.5px;
            opacity: 0.9;
        }

        .agenda-time-now-line {
            position: absolute;
            left: 0;
            right: 0;
            height: 2px;
            background: #ea4335;
            z-index: 8;
            pointer-events: none;
        }

        .agenda-time-now-line::before {
            content: '';
            position: absolute;
            left: -5px;
            top: -4px;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #ef4444;
        }

        /* ══ YEAR VIEW (ANO) ═══════════════════════════════════════════════════ */
        .agenda-year-view {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            padding: 20px;
            overflow-y: auto;
            height: 100%;
            box-sizing: border-box;
        }

        @media (max-width: 1200px) {
            .agenda-year-view {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 900px) {
            .agenda-year-view {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .agenda-year-month-card {
            background: var(--bg-sidebar);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 14px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            cursor: pointer;
            transition: all 0.16s ease;
        }

        .agenda-year-month-card:hover {
            border-color: var(--accent);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.06);
        }

        .agenda-year-month-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-main);
            text-align: center;
        }

        .agenda-year-days-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 2px;
            text-align: center;
        }

        .agenda-year-day {
            height: 22px;
            width: 22px;
            margin: 0 auto;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: 600;
            color: var(--text-main);
            position: relative;
        }

        .agenda-year-day.is-outside {
            opacity: 0.2;
        }

        .agenda-year-day.is-today {
            background: var(--accent);
            color: #ffffff;
            font-weight: 800;
        }

        .agenda-year-day.has-events::after {
            content: '';
            position: absolute;
            bottom: 1px;
            width: 3px;
            height: 3px;
            border-radius: 50%;
            background: #f59e0b;
        }

        .agenda-year-day.is-today.has-events::after {
            background: #ffffff;
        }

        @media (max-width: 1024px) {
            .agenda-shell {
                grid-template-columns: 1fr;
                overflow-y: auto;
            }
            .agenda-calendar-card {
                min-height: 600px;
            }
        }

        .agenda-upcoming-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .agenda-upcoming-item {
            border-radius: 14px;
            border: 1px solid var(--border);
            background: var(--bg-sidebar);
            padding: 14px 16px;
            transition: all 0.15s ease;
        }

        .agenda-upcoming-item:hover {
            border-color: rgba(0, 168, 132, 0.35);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.04);
        }

        .agenda-upcoming-meta {
            font-size: 11.5px;
            color: var(--accent);
            font-weight: 700;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .agenda-empty {
            padding: 32px 18px;
            border-radius: 14px;
            border: 1px solid var(--border);
            background: var(--bg-sidebar);
            color: var(--text-secondary);
            text-align: center;
            font-size: 13px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .agenda-empty i {
            font-size: 26px;
            opacity: 0.45;
            color: var(--text-secondary);
            margin-bottom: 2px;
        }

        @media (max-width: 1024px) {
            .agenda-shell {
                grid-template-columns: 1fr;
                max-width: none;
            }
        }

        @media (max-width: 720px) {
            .agenda-shell {
                padding: 14px;
                gap: 14px;
            }

            .agenda-weekdays, .agenda-grid {
                gap: 6px;
                padding-left: 10px;
                padding-right: 10px;
                min-width: 700px;
            }

            .agenda-day {
                min-height: 108px;
                padding: 8px;
                border-radius: 14px;
            }

            .agenda-day-number {
                font-size: 15px;
            }

            .agenda-event-pill {
                padding: 6px 7px;
            }

            .agenda-event-title {
                font-size: 11px;
            }
        }

        .apps-shell {
            display: flex;
            flex-direction: column;
            gap: 20px;
            padding: 20px;
            overflow-y: auto;
            box-sizing: border-box;
        }

        .apps-hero-band {
            display: grid;
            grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
            gap: 24px;
            padding: 24px;
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 8px;
            background: linear-gradient(135deg, rgba(16, 24, 27, 0.98) 0%, rgba(19, 39, 34, 0.98) 44%, rgba(47, 28, 17, 0.98) 100%);
            box-shadow: 0 18px 40px rgba(0,0,0,0.18);
        }

        .apps-eyebrow {
            display: block;
            font-size: 11px;
            color: rgba(255,255,255,0.72);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin-bottom: 10px;
        }

        .apps-instance-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 8px;
            background: rgba(255,255,255,0.05);
            color: var(--text-main);
            font-size: 12px;
            margin-bottom: 18px;
        }

        .apps-hero-brand {
            display: flex;
            align-items: flex-start;
            gap: 18px;
        }

        .apps-brand-mark {
            width: 58px;
            height: 58px;
            border-radius: 8px;
            background: #ffffff;
            object-fit: contain;
            padding: 10px;
            box-shadow: 0 12px 28px rgba(0,0,0,0.24);
            flex-shrink: 0;
        }

        .apps-hero-title {
            margin: 0 0 10px;
            font-size: 34px;
            line-height: 1.08;
            color: var(--text-main);
            max-width: 780px;
        }

        .apps-hero-text {
            margin: 0;
            max-width: 720px;
            font-size: 14px;
            line-height: 1.7;
            color: rgba(255,255,255,0.78);
        }

        .apps-service-strip {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 22px;
        }

        .apps-service-pill {
            display: flex;
            align-items: center;
            gap: 10px;
            min-height: 54px;
            padding: 10px 12px;
            border: 1px solid rgba(255,255,255,0.09);
            border-radius: 8px;
            background: rgba(255,255,255,0.05);
            min-width: 190px;
        }

        .apps-service-logo {
            width: 30px;
            height: 30px;
            border-radius: 8px;
            object-fit: contain;
            background: rgba(255,255,255,0.96);
            padding: 5px;
            flex-shrink: 0;
        }

        .apps-service-body {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .apps-service-name {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-main);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .apps-service-state {
            display: inline-flex;
            align-items: center;
            width: fit-content;
            padding: 3px 8px;
            border-radius: 8px;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        .apps-state-positive {
            background: #dcfce7;
            border: 1px solid #86efac;
            color: #166534;
        }

        .apps-state-waiting {
            background: #fef3c7;
            border: 1px solid #facc15;
            color: #92400e;
        }

        .apps-state-neutral {
            background: #e0f2fe;
            border: 1px solid #7dd3fc;
            color: #075985;
        }

        .apps-metric-strip {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 16px;
            margin-top: 22px;
            padding-top: 18px;
            border-top: 1px solid rgba(255,255,255,0.08);
        }

        .apps-metric {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .apps-metric-label {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: rgba(255,255,255,0.64);
        }

        .apps-metric-value {
            font-size: 28px;
            font-weight: 800;
            color: var(--text-main);
            line-height: 1;
            word-break: break-word;
        }

        .apps-metric-note {
            font-size: 12px;
            color: rgba(255,255,255,0.68);
        }

        .apps-hero-aside {
            display: flex;
            flex-direction: column;
            gap: 18px;
            padding-left: 24px;
            border-left: 1px solid rgba(255,255,255,0.08);
        }

        .app-status-badge {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 8px 10px;
            border-radius: 8px;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            border: 1px solid rgba(255,255,255,0.08);
            background: rgba(255,255,255,0.04);
            color: var(--text-main);
        }

        .app-status-badge.is-connected {
            background: rgba(34, 197, 94, 0.12);
            color: #9df0b6;
            border-color: rgba(34, 197, 94, 0.22);
        }

        .app-status-badge.is-disconnected {
            background: rgba(239, 68, 68, 0.12);
            color: #ffb3b3;
            border-color: rgba(239, 68, 68, 0.22);
        }

        .app-status-badge.is-waiting {
            background: rgba(245, 158, 11, 0.12);
            color: #facc15;
            border-color: rgba(245, 158, 11, 0.24);
        }

        .apps-aside-copy {
            margin: 0;
            color: rgba(255,255,255,0.78);
            font-size: 13px;
            line-height: 1.7;
        }

        .apps-signal-list {
            display: flex;
            flex-direction: column;
        }

        .apps-signal {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 14px;
            padding: 14px 0;
            border-top: 1px solid rgba(255,255,255,0.08);
        }

        .apps-signal:first-child {
            padding-top: 0;
            border-top: 0;
        }

        .apps-signal-label {
            font-size: 12px;
            color: rgba(255,255,255,0.68);
        }

        .apps-signal-value {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-main);
            text-align: right;
            word-break: break-word;
        }

        .apps-board {
            display: grid;
            grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
            gap: 20px;
        }

        .apps-side-stack {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .apps-panel {
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 8px;
            background: linear-gradient(180deg, rgba(255,255,255,0.034), rgba(255,255,255,0.015));
            box-shadow: 0 16px 34px rgba(0,0,0,0.14);
            padding: 22px;
        }

        .apps-panel-primary {
            background: linear-gradient(180deg, rgba(20, 33, 31, 0.96), rgba(13, 21, 26, 0.96));
        }

        .apps-panel-head {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 16px;
            margin-bottom: 18px;
        }

        .apps-app-lockup {
            display: flex;
            align-items: flex-start;
            gap: 14px;
        }

        .apps-app-logo {
            width: 54px;
            height: 54px;
            border-radius: 8px;
            object-fit: contain;
            background: rgba(255,255,255,0.96);
            padding: 8px;
            flex-shrink: 0;
        }

        .apps-panel-title {
            margin: 0;
            font-size: 26px;
            color: var(--text-main);
        }

        .apps-panel-copy {
            margin: 6px 0 0;
            color: var(--text-secondary);
            font-size: 13px;
            line-height: 1.65;
            max-width: 640px;
        }

        .apps-data-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px 18px;
            margin-bottom: 18px;
        }

        .apps-data-row {
            padding-top: 14px;
            border-top: 1px solid rgba(255,255,255,0.08);
            min-width: 0;
        }

        .apps-data-label {
            display: block;
            margin-bottom: 8px;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: var(--text-secondary);
        }

        .apps-data-value {
            color: var(--text-main);
            font-size: 15px;
            font-weight: 700;
            word-break: break-word;
            line-height: 1.45;
        }

        .apps-toggle-band {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 16px 0;
            border-top: 1px solid rgba(255,255,255,0.08);
            border-bottom: 1px solid rgba(255,255,255,0.08);
            margin-bottom: 18px;
        }

        .apps-config-grid {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 14px;
            align-items: end;
        }

        .apps-field label {
            display: block;
            margin-bottom: 8px;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: var(--text-secondary);
        }

        .app-select, .app-input {
            width: 100%;
            min-width: 0;
            background: rgba(6, 23, 31, 0.84);
            border: 1px solid rgba(255,255,255,0.08);
            color: var(--text-main);
            border-radius: 8px;
            padding: 13px 14px;
            font-size: 13px;
            outline: none;
        }

        .apps-button-row {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 16px;
        }

        .apps-note {
            margin-top: 14px;
            font-size: 12px;
            line-height: 1.65;
            color: var(--text-secondary);
        }

        .apps-health-list {
            display: flex;
            flex-direction: column;
        }

        .apps-health-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 14px;
            padding: 14px 0;
            border-top: 1px solid rgba(255,255,255,0.08);
        }

        .apps-health-row:first-child {
            border-top: 0;
            padding-top: 0;
        }

        .apps-health-row.is-alert .apps-health-value {
            color: #ffc18c;
        }

        .apps-health-label {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.55;
        }

        .apps-health-value {
            font-size: 15px;
            font-weight: 700;
            color: var(--text-main);
            text-align: right;
            word-break: break-word;
        }

        .app-market-tag {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 6px 10px;
            border-radius: 8px;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-secondary);
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.06);
        }

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

        .app-market-card {
            display: flex;
            flex-direction: column;
            min-height: 176px;
            padding: 16px;
            border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.07);
            background: rgba(255,255,255,0.03);
            transition: border-color .2s ease, transform .2s ease, background .2s ease;
        }

        .app-market-card:hover {
            border-color: rgba(255,255,255,0.14);
            background: rgba(255,255,255,0.04);
            transform: translateY(-1px);
        }

        .app-market-icon-wrap {
            width: 48px;
            height: 48px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255,255,255,0.08);
            margin-bottom: 14px;
        }

        .app-market-logo {
            width: 28px;
            height: 28px;
            object-fit: contain;
        }

        .app-market-icon-wrap i {
            font-size: 22px;
            color: var(--text-main);
        }

        .app-market-title {
            font-size: 16px;
            font-weight: 800;
            color: var(--text-main);
            margin-bottom: 8px;
        }

        .app-market-copy {
            margin: 0;
            font-size: 12px;
            color: var(--text-secondary);
            line-height: 1.65;
        }

        .apps-layout {
            position: relative;
            width: 100% !important;
            max-width: 100% !important;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .apps-list-panel {
            width: 100% !important;
            max-width: 100% !important;
            border: 1px solid var(--border);
            border-radius: 16px;
            background: var(--bg-card);
            box-shadow: 0 4px 24px rgba(0,0,0,0.03);
            overflow: hidden;
            box-sizing: border-box;
        }

        .apps-list-head {
            padding: 24px 28px 20px;
            border-bottom: 1px solid var(--border);
            background: var(--bg-sidebar);
        }

        .apps-list-head p {
            margin: 6px 0 0;
            color: var(--text-secondary);
            font-size: 13px;
            line-height: 1.5;
        }

        .apps-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
            gap: 16px;
            padding: 20px 28px 28px;
        }

        .apps-list-section {
            padding: 24px 0 8px;
            border-top: 1px solid var(--border);
        }

        .apps-list-section:first-of-type {
            border-top: 0;
        }

        .apps-list-section-title {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 0 28px 6px;
            color: var(--text-main);
            font-size: 13px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .apps-list-section-copy {
            margin: 0 28px 16px;
            color: var(--text-secondary);
            font-size: 12.5px;
            line-height: 1.5;
        }

        .app-list-item {
            display: flex;
            height: 100%;
        }

        .app-list-card {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: space-between;
            gap: 14px;
            text-align: left;
            min-height: 142px;
            padding: 18px 20px;
            border: 1px solid var(--border);
            border-radius: 14px;
            background: var(--bg-sidebar);
            color: var(--text-main);
            cursor: pointer;
            box-sizing: border-box;
            transition: border-color .18s ease, transform .18s ease, background .18s ease, box-shadow .18s ease;
        }

        .app-list-card:hover {
            border-color: rgba(0, 168, 132, 0.45);
            background: var(--accent-subtle);
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0,0,0,0.06);
        }

        .app-list-card.is-active {
            border-color: var(--accent);
            background: rgba(0, 168, 132, 0.08);
            box-shadow: 0 8px 24px rgba(0, 168, 132, 0.15);
        }

        .app-list-card.is-upcoming {
            opacity: 0.95;
            min-height: 142px;
        }

        .app-list-card.is-upcoming:hover {
            opacity: 1;
        }

        .app-list-card-top {
            width: 100%;
            display: flex;
            align-items: flex-start;
            gap: 14px;
        }

        .app-list-logo,
        .app-list-icon {
            width: 38px !important;
            height: 38px !important;
            border-radius: 8px;
            flex-shrink: 0;
        }

        .app-list-logo {
            object-fit: contain;
            background: rgba(255,255,255,0.96);
            padding: 4px;
            box-sizing: border-box;
        }

        .app-list-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255,255,255,0.08);
            color: var(--text-main);
            font-size: 18px;
            padding: 0;
        }

        .app-list-copy {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .app-list-name {
            display: block;
            font-size: 14.5px;
            font-weight: 700;
            color: var(--text-main);
            line-height: 1.25;
        }

        .app-list-summary {
            margin: 0;
            color: var(--text-secondary);
            font-size: 12px;
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            min-height: 36px;
        }

        .app-list-side {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-top: auto;
            flex-shrink: 0;
        }

        .apps-service-state {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 3px 9px;
            border-radius: 6px;
            font-size: 10.5px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }

        .apps-state-positive {
            background: rgba(0, 168, 132, 0.15);
            color: var(--accent);
            border: 1px solid rgba(0, 168, 132, 0.35);
        }

        .apps-state-waiting {
            background: rgba(245, 158, 11, 0.15);
            color: #f59e0b;
            border: 1px solid rgba(245, 158, 11, 0.35);
        }

        .apps-state-neutral {
            background: rgba(127, 127, 127, 0.12);
            color: var(--text-secondary);
            border: 1px solid var(--border);
        }

        .app-list-open {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            border-radius: 8px;
            color: var(--text-secondary);
            background: rgba(255,255,255,0.05);
            font-size: 11px;
            font-weight: 700;
            transition: all 0.15s ease;
        }

        .app-list-card:hover .app-list-open {
            background: var(--accent);
            color: #ffffff;
        }

        .apps-detail-panel {
            position: fixed;
            inset: 0;
            z-index: 2500;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
            background: rgba(3, 8, 12, 0.72);
            backdrop-filter: blur(8px);
            animation: appsModalFade .18s ease;
        }

        .app-inline-drawer {
            width: min(920px, calc(100vw - 32px));
            max-height: calc(100vh - 48px);
            border: 1px solid rgba(15, 23, 42, 0.10);
            border-radius: 18px;
            background: #ffffff;
            box-shadow: 0 30px 80px rgba(15, 23, 42, 0.20);
            overflow: hidden;
            transform-origin: center center;
            animation: appDrawerReveal .22s ease;
        }

        .apps-drawer {
            position: relative;
            width: 100%;
            max-height: calc(100vh - 48px);
            border: 0;
            border-radius: 0;
            background: transparent;
            box-shadow: none;
            overflow: auto;
            transform: none;
            transition: none;
            z-index: 1;
        }


/* ══ TELA DE CANAIS (20/08/2026) ═══════════════════════════════════════════════
   Antes cada canal era um settings-card com estilo inline improvisado, borda
   colorida na esquerda e um botao em CAIXA ALTA — tres desenhos diferentes para
   a mesma coisa. Aqui os tres canais usam o MESMO cartao, a mesma escala (raio
   16/12/8, espaco em multiplo de 4, tipo 15/13/12/11) e a mesma barra de acoes.
   A cor da marca entra so por --canal-cor; nada de gradiente inventado. */

        .canais-topo {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            padding: 14px 16px;
            margin-bottom: 18px;
            border: 1px solid var(--border);
            border-radius: var(--r-md);
            background: var(--bg-surface);
        }

        .canais-topo-icone {
            width: 36px;
            height: 36px;
            border-radius: var(--r-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--accent-subtle);
            color: var(--accent);
            font-size: 15px;
            flex: 0 0 auto;
        }

        .canais-topo-txt { min-width: 0; flex: 1; }

        .canais-topo-rotulo {
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .08em;
            color: var(--text-secondary);
        }

        .canais-topo-valor {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            margin-top: 2px;
            overflow-wrap: anywhere;
        }

        .canais-topo-contagem {
            font-size: 12.5px;
            color: var(--text-secondary);
            white-space: nowrap;
        }

        .canais-lista {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .canal-card {
            border: 1px solid var(--border);
            border-radius: var(--r-lg);
            background: var(--bg-card);
            box-shadow: var(--shadow-xs);
            overflow: hidden;
            transition: border-color .18s ease, box-shadow .18s ease;
        }

        .canal-card:hover {
            border-color: color-mix(in srgb, var(--canal-cor, var(--accent)) 45%, var(--border));
            box-shadow: var(--shadow-sm);
        }

        .canal-card.is-whatsapp  { --canal-cor: #25d366; }
        .canal-card.is-instagram { --canal-cor: #e1306c; }
        .canal-card.is-messenger { --canal-cor: #0084ff; }

        .canal-head {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 16px 18px;
            border-bottom: 1px solid var(--border-subtle);
            background: linear-gradient(90deg, color-mix(in srgb, var(--canal-cor, var(--accent)) 8%, transparent), transparent 55%);
        }

        .canal-marca {
            width: 44px;
            height: 44px;
            border-radius: var(--r-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 21px;
            flex: 0 0 auto;
            color: var(--canal-cor, var(--accent));
            background: color-mix(in srgb, var(--canal-cor, var(--accent)) 14%, transparent);
            border: 1px solid color-mix(in srgb, var(--canal-cor, var(--accent)) 26%, transparent);
        }

        .canal-head-txt { min-width: 0; flex: 1; }

        .canal-nome {
            font-size: 15px;
            font-weight: 700;
            color: var(--text-primary);
            margin: 0;
            line-height: 1.3;
        }

        .canal-desc {
            font-size: 12.5px;
            color: var(--text-secondary);
            margin: 3px 0 0;
            line-height: 1.45;
        }

        .canal-selo {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 5px 11px;
            border-radius: var(--r-full);
            font-size: 11.5px;
            font-weight: 700;
            white-space: nowrap;
            border: 1px solid var(--border);
            background: var(--bg-surface);
            color: var(--text-secondary);
            flex: 0 0 auto;
        }

        .canal-selo::before {
            content: "";
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: currentColor;
            opacity: .8;
        }

        .canal-selo.is-on {
            color: #16a34a;
            border-color: rgba(34, 197, 94, .35);
            background: rgba(34, 197, 94, .10);
        }

        .canal-selo.is-alerta {
            color: #d97706;
            border-color: rgba(245, 158, 11, .35);
            background: rgba(245, 158, 11, .10);
        }

        html.dark-theme .canal-selo.is-on { color: #4ade80; }
        html.dark-theme .canal-selo.is-alerta { color: #fbbf24; }

        .canal-corpo { padding: 16px 18px; }

        .canal-dados {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 12px 20px;
            margin-bottom: 16px;
        }

        .canal-dado-rotulo {
            display: block;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .08em;
            color: var(--text-secondary);
            margin-bottom: 3px;
        }

        .canal-dado-valor {
            font-size: 13.5px;
            color: var(--text-main);
            font-weight: 500;
            overflow-wrap: anywhere;
        }

        .canal-acoes {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .canal-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 9px 16px;
            border-radius: var(--r-sm);
            border: 1px solid var(--border);
            background: var(--bg-surface);
            color: var(--text-main);
            font-family: inherit;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: background .16s ease, border-color .16s ease, transform .16s ease, color .16s ease;
        }

        .canal-btn:hover:not(:disabled) {
            background: var(--bg-surface-hover);
            border-color: var(--border-hover);
            transform: translateY(-1px);
        }

        .canal-btn:disabled {
            opacity: .5;
            cursor: not-allowed;
        }

        .canal-btn.is-primary {
            background: var(--canal-cor, var(--accent));
            border-color: transparent;
            color: #fff;
        }

        .canal-btn.is-primary:hover:not(:disabled) {
            background: color-mix(in srgb, var(--canal-cor, var(--accent)) 86%, #000);
            border-color: transparent;
        }

        .canal-btn.is-danger {
            color: #ef4444;
            border-color: rgba(239, 68, 68, .32);
            background: rgba(239, 68, 68, .08);
        }

        .canal-btn.is-danger:hover:not(:disabled) {
            background: rgba(239, 68, 68, .16);
            border-color: rgba(239, 68, 68, .5);
        }

        .canal-conta {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border: 1px solid var(--border);
            border-radius: var(--r-sm);
            background: var(--bg-surface);
            margin-bottom: 8px;
        }

        .canal-conta i { color: var(--canal-cor, var(--accent)); font-size: 15px; }

        .canal-conta-nome {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-main);
            flex: 1;
            min-width: 0;
            overflow-wrap: anywhere;
        }

        .canal-conta-tag {
            font-size: 11px;
            color: var(--text-secondary);
            white-space: nowrap;
        }

        /* ID da página embaixo do nome: quem tem várias páginas com nome parecido
           precisa do número para saber qual é qual. */
        .canal-conta-id {
            display: block;
            font-size: 11px;
            font-weight: 500;
            color: var(--text-secondary);
            margin-top: 2px;
        }

        /* Botão de linha ("Usar só esta"): mesmo desenho do .canal-btn, um degrau
           menor, para não competir com as ações do rodapé do card. */
        .canal-btn.is-mini {
            padding: 6px 12px;
            font-size: 12px;
            flex: 0 0 auto;
        }

        .canal-vazio {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.5;
            margin: 0 0 14px;
        }

        .canal-nota {
            display: flex;
            gap: 9px;
            align-items: flex-start;
            margin-top: 14px;
            padding-top: 13px;
            border-top: 1px solid var(--border-subtle);
            font-size: 12px;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        .canal-nota i { margin-top: 2px; opacity: .8; }

        /* Proteção da conexão: vive DENTRO do card do WhatsApp, recolhida. Era um
           cartão solto do mesmo tamanho do canal e roubava a atenção da tela. */
        .canal-protecao {
            margin-top: 16px;
            border: 1px solid var(--border);
            border-radius: var(--r-md);
            background: var(--bg-surface);
            overflow: hidden;
        }

        .canal-protecao > summary {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 14px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-main);
            list-style: none;
        }

        .canal-protecao > summary::-webkit-details-marker { display: none; }

        .canal-protecao-seta {
            margin-left: auto;
            font-size: 11px;
            color: var(--text-secondary);
            transition: transform .18s ease;
        }

        .canal-protecao[open] .canal-protecao-seta { transform: rotate(180deg); }

        .canal-protecao-score {
            font-size: 18px;
            font-weight: 800;
            color: var(--accent);
            font-variant-numeric: tabular-nums;
        }

        .canal-protecao-corpo {
            padding: 0 14px 14px;
            border-top: 1px solid var(--border-subtle);
        }

        .canal-protecao-barra {
            height: 6px;
            border-radius: var(--r-full);
            background: rgba(127, 127, 127, .18);
            overflow: hidden;
            margin: 14px 0 12px;
        }

        .canal-protecao-barra > div {
            height: 100%;
            width: 0;
            border-radius: inherit;
            background: var(--accent);
            transition: width .25s ease;
        }

        .canal-protecao-itens {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 8px;
            font-size: 12px;
            color: var(--text-secondary);
        }

        .canal-alerta {
            margin-top: 14px;
            padding: 14px;
            border: 1px solid rgba(239, 68, 68, .45);
            border-radius: var(--r-sm);
            background: rgba(239, 68, 68, .09);
            color: var(--text-main);
        }

        /* ══ SETTINGS VIEW (CONFIGURAÇÕES COMO ABA COMPLETA) ══════════════════ */
        #settings-view-container {
            display: none;
            flex: 1;
            width: 100%;
            height: 100%;
            overflow: hidden;
            background: var(--bg-main);
            z-index: 66;
        }

        #settings-view-container .settings-container {
            width: 100% !important;
            max-width: 100% !important;
            height: 100% !important;
            max-height: 100% !important;
            background: var(--bg-main) !important;
            border-radius: 0 !important;
            display: flex !important;
            overflow: hidden !important;
            border: none !important;
            box-shadow: none !important;
            animation: none !important;
            margin: 0 !important;
        }

        #settings-view-container .settings-sidebar {
            width: 260px !important;
            background: var(--bg-sidebar) !important;
            border-right: 1px solid var(--border) !important;
            display: flex !important;
            flex-direction: column !important;
            overflow-y: auto !important;
            padding: 0 !important;
            flex-shrink: 0 !important;
            height: 100% !important;
        }

        #settings-view-container .settings-content-area {
            flex: 1 !important;
            height: 100% !important;
            overflow-y: auto !important;
            padding: 24px 32px !important;
            background: var(--bg-main) !important;
            box-sizing: border-box !important;
        }

        #settings-view-container .settings-close-btn {
            display: none !important;
        }

        /* ══ DIGIFOOD EDITORIAL HELP & DOCUMENTATION CENTER (REF: EDITORIAL DESIGN) ══════ */
        #help-view-container {
            display: none;
            flex: 1;
            height: 100%;
            width: 100% !important;
            background: var(--bg-main);
            overflow-y: auto !important;
            overflow-x: hidden !important;
            z-index: 67;
            box-sizing: border-box;
            scroll-behavior: smooth;
        }

        .doc-page-wrapper {
            max-width: 1160px;
            margin: 0 auto;
            padding: 56px 40px 100px;
            box-sizing: border-box;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            color: var(--text-main);
        }

        /* Header Editorial */
        .doc-header {
            margin-bottom: 32px;
        }

        .doc-eyebrow {
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.16em;
            color: var(--text-secondary);
            margin-bottom: 16px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .doc-eyebrow::before {
            content: '';
            display: inline-block;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--accent, #00a884);
        }

        .doc-main-title {
            font-size: 46px;
            font-weight: 800;
            letter-spacing: -0.035em;
            line-height: 1.12;
            color: var(--text-main);
            margin: 0 0 16px 0;
            font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
        }

        .doc-main-title .doc-title-highlight {
            font-weight: 900;
            color: var(--accent, #00a884);
        }

        .doc-main-subtitle {
            font-size: 16px;
            line-height: 1.7;
            color: var(--text-secondary);
            max-width: 820px;
            margin: 0 0 22px 0;
            font-weight: 400;
        }

        .doc-meta {
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--text-secondary);
            opacity: 0.7;
        }

        .doc-divider {
            width: 100%;
            height: 1px;
            background: var(--border, rgba(255, 255, 255, 0.08));
            margin: 36px 0 48px 0;
        }

        /* 2-Column Grid Layout */
        .doc-layout-grid {
            display: grid;
            grid-template-columns: 240px 1fr;
            gap: 64px;
            align-items: start;
        }

        @media (max-width: 960px) {
            .doc-layout-grid {
                grid-template-columns: 1fr;
                gap: 40px;
            }
            .doc-page-wrapper {
                padding: 32px 20px 80px;
            }
            .doc-main-title {
                font-size: 32px;
            }
        }

        /* Left Column: Sticky Navigation */
        .doc-toc-sidebar {
            position: sticky;
            top: 32px;
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .doc-toc-title {
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.14em;
            color: var(--text-secondary);
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
            margin: 0;
        }

        .doc-toc-nav {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .doc-toc-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 13.5px;
            font-weight: 500;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.15s ease;
            text-decoration: none;
            line-height: 1.35;
            background: transparent;
            border: none;
            text-align: left;
            width: 100%;
            box-sizing: border-box;
        }

        .doc-toc-item:hover {
            color: var(--text-main);
            background: var(--hover-bg, rgba(255, 255, 255, 0.04));
        }

        .doc-toc-item.active {
            color: var(--text-main);
            font-weight: 700;
            background: var(--hover-bg, rgba(255, 255, 255, 0.07));
        }

        .doc-toc-item .toc-num {
            font-size: 12.5px;
            font-weight: 800;
            color: var(--accent, #00a884);
            min-width: 22px;
        }

        .doc-toc-actions {
            margin-top: 10px;
            padding-top: 20px;
            border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .doc-action-link {
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--text-main);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: all 0.15s ease;
            cursor: pointer;
            background: none;
            border: none;
            padding: 0;
            text-align: left;
        }

        .doc-action-link:hover {
            color: var(--accent, #00a884);
            transform: translateX(2px);
        }

        /* Right Column: Main Content */
        .doc-content-column {
            display: flex;
            flex-direction: column;
            gap: 48px;
        }

        .doc-section {
            scroll-margin-top: 36px;
            display: flex;
            flex-direction: column;
            gap: 14px;
            padding-bottom: 40px;
            border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.06));
        }

        .doc-section:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .doc-sec-header {
            display: flex;
            align-items: baseline;
            gap: 14px;
            margin-bottom: 4px;
        }

        .doc-sec-num {
            font-size: 17px;
            font-weight: 800;
            color: var(--accent, #00a884);
            font-family: inherit;
        }

        .doc-sec-title {
            font-size: 26px;
            font-weight: 700;
            letter-spacing: -0.02em;
            color: var(--text-main);
            margin: 0;
            line-height: 1.25;
            font-family: 'Playfair Display', Georgia, 'Plus Jakarta Sans', serif;
        }

        .doc-sec-body {
            font-size: 14.5px;
            line-height: 1.75;
            color: var(--text-secondary);
        }

        .doc-sec-body p {
            margin: 0 0 14px 0;
        }

        .doc-sec-body p:last-child {
            margin-bottom: 0;
        }

        .doc-sec-body strong {
            color: var(--text-main);
            font-weight: 600;
        }

        .doc-list {
            list-style: none;
            padding: 0;
            margin: 14px 0;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .doc-list li {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            line-height: 1.65;
            font-size: 14px;
        }

        .doc-list li::before {
            content: '•';
            color: var(--accent, #00a884);
            font-size: 18px;
            line-height: 1;
            margin-top: 1px;
            flex-shrink: 0;
        }

        /* Support & Interactive Panels in Help */
        .doc-support-card {
            background: var(--bg-card, rgba(255, 255, 255, 0.03));
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 26px 30px;
            display: flex;
            flex-direction: column;
            gap: 18px;
            margin-top: 10px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        }

        .doc-support-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 12.5px;
            font-weight: 700;
            color: #22c55e;
            background: rgba(34, 197, 94, 0.1);
            padding: 6px 12px;
            border-radius: 999px;
            align-self: flex-start;
        }

        /* FAQ Styling */
        .doc-faq-search {
            display: flex;
            align-items: center;
            gap: 12px;
            background: var(--bg-sidebar);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 12px 18px;
            margin: 12px 0 18px;
        }

        .doc-faq-search input {
            border: none;
            background: transparent;
            outline: none;
            color: var(--text-main);
            font-size: 14px;
            width: 100%;
        }

        .help-faq-details {
            background: var(--bg-card, rgba(255, 255, 255, 0.02));
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 16px 20px;
            margin-bottom: 10px;
            transition: all 0.2s ease;
        }

        .help-faq-details[open] {
            border-color: var(--accent, #00a884);
            background: var(--bg-card);
        }

        .help-faq-details summary {
            font-size: 14.5px;
            font-weight: 600;
            color: var(--text-main);
            cursor: pointer;
            list-style: none;
            display: flex;
            align-items: center;
            justify-content: space-between;
            user-select: none;
        }

        .help-faq-details summary::-webkit-details-marker {
            display: none;
        }

        .help-faq-details summary::after {
            content: '\f078';
            font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
            font-weight: 900;
            font-size: 11px;
            color: var(--text-secondary);
            transition: transform 0.2s ease;
        }

        .help-faq-details[open] summary::after {
            transform: rotate(180deg);
            color: var(--accent, #00a884);
        }

        .help-faq-body {
            margin-top: 12px;
            font-size: 13.5px;
            color: var(--text-secondary);
            line-height: 1.7;
            border-top: 1px solid var(--border);
            padding-top: 12px;
        }

        /* Light Theme Overrides */
        :root.light-theme .doc-page-wrapper,
        body.light-theme .doc-page-wrapper {
            background: #ffffff;
            color: #111827;
        }

        :root.light-theme .doc-main-title,
        body.light-theme .doc-main-title,
        :root.light-theme .doc-sec-title,
        body.light-theme .doc-sec-title {
            color: #111827;
        }

        :root.light-theme .doc-sec-body,
        body.light-theme .doc-sec-body,
        :root.light-theme .doc-main-subtitle,
        body.light-theme .doc-main-subtitle {
            color: #4b5563;
        }

        :root.light-theme .doc-toc-item {
            color: #4b5563;
        }

        :root.light-theme .doc-toc-item:hover,
        :root.light-theme .doc-toc-item.active {
            color: #111827;
            background: rgba(0, 0, 0, 0.04);
        }

        :root.light-theme .doc-action-link {
            color: #111827;
        }

        :root.light-theme .doc-support-card {
            background: #f8fafc;
            border-color: #e2e8f0;
            box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
        }
