
        #task-type-selector {
            display: flex !important;
            flex-direction: row;
            flex-wrap: nowrap;
            align-items: stretch;
            gap: 0.375rem;
            min-height: 2.5rem;
        }
        #task-type-selector label {
            flex: 1 1 0;
            min-width: 0;
            display: flex;
            align-items: stretch;
        }
        #task-type-selector label > div {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 2.15rem;
            box-sizing: border-box;
        }
        #kanban-board,
        #kanban-board * {
            -webkit-user-select: none !important;
            user-select: none !important;
            -webkit-touch-callout: none !important;
        }
        #kanban-board input,
        #kanban-board textarea {
            -webkit-user-select: text !important;
            user-select: text !important;
            -webkit-touch-callout: default !important;
        }
        #kanban-board.kanban-drag-active {
            scroll-snap-type: none !important;
            touch-action: none;
            overscroll-behavior: contain;
        }
        #kanban-board.kanban-drag-active .kanban-col { scroll-snap-align: none !important; }
        .kanban-card {
            touch-action: pan-x pan-y;
            -webkit-user-select: none;
            user-select: none;
        }
        .kanban-card.kanban-dragging { opacity: 0.25 !important; pointer-events: none; }
        .kanban-card-handle {
            touch-action: none;
            cursor: grab;
            -webkit-user-select: none;
            user-select: none;
            -webkit-touch-callout: none;
            position: relative;
            z-index: 5;
            min-height: 44px;
        }
        .kanban-card-handle:active { cursor: grabbing; }
        .kanban-drag-ghost {
            pointer-events: none !important;
            z-index: 10000 !important;
            will-change: left, top;
            -webkit-user-select: none !important;
            user-select: none !important;
        }
        .kanban-fallback,
        .sortable-fallback {
            opacity: 0.96 !important;
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(167, 139, 250, 0.65) !important;
            cursor: grabbing !important;
            z-index: 9999 !important;
            pointer-events: none !important;
            transition: none !important;
            border-radius: 0.85rem !important;
        }
        html:not(.kanban-dragging) .kanban-drag-ghost,
        html:not(.kanban-dragging) .kanban-fallback,
        html:not(.kanban-dragging) .sortable-fallback {
            display: none !important;
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
        }
        .kanban-card-body {
            cursor: pointer;
            touch-action: pan-x pan-y;
            -webkit-user-select: none;
            user-select: none;
        }
        .kanban-no-drag, .kanban-no-drag * { touch-action: manipulation; }
        .kanban-add-task {
            touch-action: manipulation !important;
            cursor: pointer;
            position: relative;
            z-index: 20;
            pointer-events: auto !important;
            -webkit-tap-highlight-color: rgba(139, 92, 246, 0.25);
            isolation: isolate;
            -webkit-user-select: none;
            user-select: none;
        }
        #kanban-board.kanban-drag-active .kanban-add-task { touch-action: manipulation !important; pointer-events: auto !important; }
        .kanban-col-header {
            position: relative;
            z-index: 15;
            flex-shrink: 0;
            -webkit-user-select: none !important;
            user-select: none !important;
            -webkit-touch-callout: none !important;
        }
        .kanban-col-header * {
            -webkit-user-select: none !important;
            user-select: none !important;
            -webkit-touch-callout: none !important;
        }
        .kanban-col-cards {
            touch-action: pan-x pan-y;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior-x: auto;
            overscroll-behavior-y: contain;
        }
        /* Coluna vazia: libera o swipe horizontal do board (sem lista pra rolar) */
        .kanban-col-cards:not(:has(.kanban-card)) {
            overflow-y: hidden;
            touch-action: pan-x;
            overscroll-behavior: auto;
        }
        @media (max-width: 639px) {
            #kanban-board { scroll-snap-type: x mandatory; scroll-padding-inline: 6vw; }
            .kanban-card { touch-action: pan-x pan-y; }
            .kanban-card-body { touch-action: pan-x pan-y; }
            .kanban-card-handle { min-height: 52px; padding-top: 0.8rem; padding-bottom: 0.8rem; }
            #kanban-board.kanban-drag-active { touch-action: none; }
            #kanban-board.kanban-drag-active .kanban-col-cards {
                overflow-y: hidden !important;
                touch-action: none;
            }
            .kanban-col { scroll-snap-align: center; scroll-snap-stop: always; }
        }
        .kanban-ghost {
            opacity: 0.2 !important;
            background: rgba(139, 92, 246, 0.12) !important;
            border: 2px dashed rgba(139, 92, 246, 0.45) !important;
            transform: none !important;
            box-shadow: none !important;
        }
        .kanban-chosen { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35) !important; transform: none !important; z-index: 50; }
        .kanban-col.kanban-drop-ready {
            opacity: 0.72;
            transition: opacity 0.15s ease, box-shadow 0.15s ease;
        }
        .kanban-col.kanban-snap-target {
            opacity: 1 !important;
            box-shadow: 0 0 0 3px rgba(167, 139, 250, 1), 0 12px 32px rgba(139, 92, 246, 0.35);
            z-index: 3;
        }
        .kanban-col.kanban-snap-target .kanban-col-header::after {
            content: 'Soltar aqui';
            order: 2;
            margin-left: 0.35rem;
            margin-right: auto;
            padding: 0.2rem 0.45rem;
            border-radius: 999px;
            border: 1px solid rgba(196, 181, 253, 0.55);
            background: rgba(139, 92, 246, 0.22);
            color: #ede9fe;
            font-size: 9px;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            pointer-events: none;
            flex-shrink: 0;
            white-space: nowrap;
        }
        .kanban-col.kanban-snap-target .kanban-col-header > span:last-child {
            order: 3;
        }
        .kanban-col.kanban-snap-target .kanban-col-cards {
            background: rgba(139, 92, 246, 0.1) !important;
            box-shadow: inset 0 0 0 2px rgba(196, 181, 253, 0.45);
        }
        #kanban-board.kanban-drag-active {
            touch-action: none;
            cursor: grabbing;
        }
        #kanban-board.kanban-drag-active .kanban-col-cards {
            overflow-y: hidden !important;
            touch-action: none;
            min-height: min(48dvh, 440px) !important;
        }
        .kanban-col-cards.sortable-drag-over {
            background: rgba(139, 92, 246, 0.08);
            border-radius: 0.75rem;
            min-height: 3rem;
        }
        .kanban-drag-ghost {
            z-index: 10050 !important;
        }
        .ig-spark-bar { transition: height 0.3s ease; min-height: 3px; }
        .overview-kpi { transition: transform 0.15s ease, border-color 0.15s ease; }
        .overview-kpi:hover { transform: translateY(-1px); border-color: rgba(139, 92, 246, 0.25); }

        /* Visão Geral — montagem escalonada ao abrir */
        @keyframes overview-assemble-in {
            from {
                opacity: 0.001;
                transform: translate3d(0, 0.85rem, 0) scale(0.92);
            }
            to {
                opacity: 1;
                transform: translate3d(0, 0, 0) scale(1);
            }
        }
        @keyframes overview-icon-pop {
            0% {
                opacity: 0;
                transform: scale(0.35) rotate(-18deg);
            }
            55% {
                opacity: 1;
                transform: scale(1.14) rotate(4deg);
            }
            100% {
                opacity: 1;
                transform: scale(1) rotate(0deg);
            }
        }
        @keyframes overview-val-rise {
            from { opacity: 0; transform: translateY(6px); }
            to { opacity: 1; transform: translateY(0); }
        }
        #workspace-overview.overview-assemble .overview-kpi,
        #workspace-overview.overview-assemble #instagram-widget-container > *,
        #workspace-overview.overview-assemble .overview-panel {
            animation: overview-assemble-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
            animation-delay: calc(var(--ov-i, 0) * 58ms);
            will-change: transform, opacity;
        }
        #workspace-overview.overview-assemble .overview-kpi-icon {
            animation: overview-icon-pop 0.55s cubic-bezier(0.34, 1.45, 0.64, 1) both;
            animation-delay: calc(var(--ov-i, 0) * 58ms + 90ms);
        }
        #workspace-overview.overview-assemble .overview-kpi-val {
            animation: overview-val-rise 0.4s ease both;
            animation-delay: calc(var(--ov-i, 0) * 58ms + 140ms);
        }
        @media (prefers-reduced-motion: reduce) {
            #workspace-overview.overview-assemble .overview-kpi,
            #workspace-overview.overview-assemble #instagram-widget-container > *,
            #workspace-overview.overview-assemble .overview-panel,
            #workspace-overview.overview-assemble .overview-kpi-icon,
            #workspace-overview.overview-assemble .overview-kpi-val {
                animation: none !important;
            }
        }
        @media (max-width: 639px) {
            #overview-kpi-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 0.5rem;
            }
            .overview-kpi {
                border-radius: 1rem;
                padding: 0.75rem;
                min-height: 5.25rem;
            }
            .overview-kpi-label {
                font-size: 0.5625rem;
                line-height: 1.3;
                letter-spacing: 0.04em;
            }
            .overview-kpi-val { font-size: 1.375rem; line-height: 1; }
            #workspace-context-bar {
                display: flex;
                flex-direction: row;
                flex-wrap: nowrap;
                align-items: center;
                gap: 0.5rem;
                padding: 0.5rem 0.7rem 0.55rem;
            }
            #workspace-context-bar .ctx-board-label { display: none; }
            #workspace-context-bar .ws-ctx-identity {
                display: none;
            }
            #workspace-context-bar .ws-ctx-nav {
                width: auto;
                min-width: 0;
                flex: 1 1 auto;
                display: flex;
                align-items: center;
                gap: 0.4rem;
            }
            #btn-board-home {
                display: inline-flex !important;
                flex: 0 0 auto;
                align-items: center;
                justify-content: center;
                width: 2.35rem;
                height: 2.35rem;
                padding: 0;
                border-radius: 0.75rem;
                border: 1px solid rgba(255, 255, 255, 0.08);
                background: rgba(255, 255, 255, 0.04);
                color: #94a3b8;
            }
            #btn-board-home.is-active,
            #btn-board-home.tab-active {
                color: #f3e8ff;
                border-color: rgba(167, 139, 250, 0.45);
                background: rgba(139, 92, 246, 0.22);
            }
            #btn-board-home:active {
                transform: scale(0.96);
            }
            #btn-board-home i,
            #btn-board-home svg {
                width: 1.1rem;
                height: 1.1rem;
            }
            #workspace-tabs {
                width: auto;
                flex: 1 1 auto;
                max-width: 100%;
                min-width: 0;
                gap: 0.2rem;
                padding: 0.2rem;
                border-radius: 0.8rem;
                background: rgba(255, 255, 255, 0.04);
                border: 1px solid rgba(255, 255, 255, 0.06);
                position: relative;
            }
            #workspace-tabs .ws-tab-indicator {
                display: block;
                position: absolute;
                top: 0.2rem;
                bottom: 0.2rem;
                left: 0;
                width: 0;
                border-radius: 0.6rem;
                background: linear-gradient(135deg, rgba(124, 58, 237, 0.7), rgba(192, 38, 211, 0.55));
                box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 4px 14px rgba(124, 58, 237, 0.25);
                pointer-events: none;
                z-index: 0;
                opacity: 0;
                transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
                            width 0.32s cubic-bezier(0.22, 1, 0.36, 1),
                            opacity 0.2s ease;
                will-change: transform, width;
            }
            #workspace-tabs button {
                flex: 1 1 0;
                justify-content: center;
                gap: 0.3rem !important;
                padding: 0.5rem 0.35rem !important;
                font-size: 0.5625rem !important;
                border-bottom: none !important;
                border-radius: 0.6rem;
                min-width: 0;
                position: relative;
                z-index: 1;
                background: transparent !important;
                box-shadow: none !important;
                transition: color 0.22s ease;
            }
            #workspace-tabs button.tab-active {
                color: #f3e8ff !important;
                background: transparent !important;
                border-bottom-color: transparent !important;
                box-shadow: none !important;
            }
            #workspace-tabs #tab-ia-art {
                display: none !important;
            }
            #workspace-context-bar .ws-ctx-actions {
                width: auto;
                margin-left: 0 !important;
                justify-content: flex-end;
                gap: 0.35rem;
                flex: 0 0 auto;
                overflow: visible;
            }
            #workspace-context-bar .ws-ctx-actions > #tab-overview,
            #workspace-context-bar .ws-ctx-actions > #btn-chrono-planner-header,
            #workspace-context-bar .ws-ctx-actions > #btn-chrono-export-pdf-header {
                display: none !important;
            }
            #workspace-context-bar .ws-ctx-actions > #btn-board-tools:not(.hidden) {
                display: inline-flex !important;
                flex: 0 0 auto;
                min-width: 2.35rem;
                min-height: 2.35rem;
                padding: 0.45rem !important;
                justify-content: center;
                align-items: center;
                border-radius: 0.75rem !important;
                border: 1px solid rgba(167, 139, 250, 0.35);
                background: rgba(139, 92, 246, 0.14);
                color: #e9d5ff;
            }
            #workspace-context-bar .ws-ctx-actions > #btn-board-tools:active {
                transform: scale(0.96);
                background: rgba(139, 92, 246, 0.28);
            }
            #btn-chrono-export-pdf-header span { display: inline !important; }
            #workspace-overview { padding: 0.75rem !important; }
            #workspace-overview .overview-panel { padding: 1rem !important; border-radius: 1rem !important; }

            /* Header app — 1 linha só: logo · Quadros/ações · Config/Sair */
            #app-header.app-header {
                display: flex !important;
                flex-flow: row nowrap !important;
                align-items: center !important;
                justify-content: flex-start;
                gap: 0.35rem;
                min-height: 3rem;
                padding: 0.45rem 0.7rem !important;
                overflow: hidden;
            }
            #app-header .header-brand {
                order: 1;
                flex: 0 0 auto;
                min-width: 0;
            }
            #app-header #header-actions {
                order: 2;
                flex: 1 1 auto;
                width: auto !important;
                max-width: none;
                min-width: 0;
                justify-content: flex-start;
                gap: 0.3rem;
                overflow: hidden;
            }
            #app-header #header-trailing {
                order: 4;
                flex: 0 0 auto;
                margin-left: 0;
                gap: 0.15rem;
            }
            #app-header #header-ia-art-tools,
            #app-header #header-ia-art-tools.is-on {
                display: none !important;
            }
            .header-brand img {
                height: 1.85rem;
                max-width: min(48vw, 9.5rem);
                width: auto;
                object-fit: contain;
            }
            .header-brand img.is-board-logo {
                height: 1.85rem;
                width: 1.85rem;
                max-width: 1.85rem;
            }
            .header-brand img.is-board-brand-logo {
                height: 1.85rem;
                max-width: min(36vw, 7rem);
            }
            .header-brand-name {
                font-size: 0.75rem;
                max-width: min(28vw, 6.5rem);
            }
            #header-trailing .hdr-btn-label { display: none !important; }
            #header-trailing .hdr-btn {
                padding: 0.4rem !important;
                min-width: 2rem;
                min-height: 2rem;
            }
            #header-trailing #btn-logout { border-color: transparent; }
            #btn-dashboard {
                flex: 0 0 auto;
                gap: 0.35rem;
                min-height: 2.15rem;
                padding: 0.45rem 0.7rem 0.45rem 0.55rem !important;
                border-radius: 0.7rem;
            }
            #btn-dashboard .hdr-btn-label {
                display: inline !important;
                font-size: 0.625rem;
                letter-spacing: 0.05em;
            }
            #btn-dashboard svg,
            #btn-dashboard i {
                width: 0.9rem;
                height: 0.9rem;
            }
            #header-tools:not(:has(button:not(.hidden))) {
                display: none !important;
            }
            #header-tools {
                padding: 0.15rem;
                gap: 0;
            }
            #header-tools .hdr-btn-label { display: none !important; }
            #header-tools .hdr-btn:not(.hidden) {
                padding: 0.4rem !important;
                min-width: 1.9rem;
                min-height: 1.9rem;
            }
            #header-dash-actions {
                margin-left: 0;
                gap: 0.3rem;
                flex: 1 1 auto;
                min-width: 0;
            }
            #app-header.is-dash-aura-only #header-dash-actions {
                margin-left: 0;
                width: 100%;
                max-width: none;
            }
            #header-dash-actions .hdr-btn {
                padding: 0.4rem 0.55rem !important;
                min-height: 2rem;
                gap: 0.3rem;
                box-shadow: none;
            }
            #header-dash-actions #btn-studio-assistant.hdr-btn-assistant {
                min-height: 2.45rem;
                padding-top: 0.35rem !important;
                padding-bottom: 0.35rem !important;
            }
            #header-dash-actions .hdr-btn-label {
                display: inline !important;
                font-size: 0.5625rem;
                letter-spacing: 0.04em;
            }

            /* Dashboard mais denso */
            #dashboard-scroll > .max-w-6xl { padding: 0.75rem 0.75rem 1.25rem !important; }
            .dash-hero { gap: 0.65rem; margin-bottom: 0.85rem; }
            #dash-board-search {
                min-height: 2.4rem;
                padding: 0.55rem 0.8rem 0.55rem 2.35rem;
                border-radius: 0.75rem;
                font-size: 16px !important;
            }
            #dashboard-boards-list {
                gap: 0.65rem !important;
            }
            .board-dash-card,
            .board-dash-add { min-height: 5.25rem !important; }

            /* Context bar: abas segmentadas + menu de ajustes */
            #workspace-context-bar {
                gap: 0.45rem;
                padding: 0.45rem 0.65rem 0.5rem;
            }
            #workspace-tabs .ws-tab-label {
                letter-spacing: 0.04em;
            }
        }

        /* Mobile / app: esconde IA Arte; ações vão para o menu de ajustes */
        html.has-mobile-nav #tab-ia-art,
        html.is-native-app #tab-ia-art {
            display: none !important;
        }
        html.has-mobile-nav #btn-board-tools:not(.hidden),
        html.is-native-app #btn-board-tools:not(.hidden) {
            display: inline-flex !important;
        }
        .custom-scrollbar::-webkit-scrollbar { width: 5px; height: 5px; } 
        .custom-scrollbar::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); border-radius: 10px; } 
        .custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
        .upload-thumb-wrap {
            position: relative;
            flex-shrink: 0;
            width: 4rem;
            height: 4rem;
            border-radius: 0.625rem;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.03);
        }
        .upload-thumb-wrap img,
        .upload-thumb-wrap > a,
        .upload-thumb-wrap > div:not(.upload-thumb-remove) {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .upload-thumb-remove {
            position: absolute;
            top: 4px;
            right: 4px;
            z-index: 10;
            width: 22px;
            height: 22px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            background: rgba(11, 13, 16, 0.88);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            color: rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(255, 255, 255, 0.14);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
            opacity: 0.96;
            transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
            cursor: pointer;
            touch-action: manipulation;
        }
        .upload-thumb-wrap:hover .upload-thumb-remove,
        .upload-thumb-remove:hover,
        .upload-thumb-remove:focus-visible {
            background: rgba(220, 38, 38, 0.96);
            border-color: rgba(252, 165, 165, 0.5);
            color: #fff;
            box-shadow: 0 2px 12px rgba(220, 38, 38, 0.45);
            transform: scale(1.06);
            outline: none;
        }
        .upload-thumb-remove:active { transform: scale(0.92); }
        @keyframes upload-shimmer {
            0% { background-position: 120% 0; }
            100% { background-position: -120% 0; }
        }
        .upload-thumb-wrap.upload-thumb-ingest::after,
        .upload-thumb-wrap.upload-thumb-pending-remote:not(.is-thumb-ready)::after {
            content: '';
            position: absolute;
            inset: 0;
            z-index: 1;
            pointer-events: none;
            background: linear-gradient(
                105deg,
                rgba(255, 255, 255, 0.02) 0%,
                rgba(139, 92, 246, 0.22) 45%,
                rgba(255, 255, 255, 0.02) 90%
            );
            background-size: 220% 100%;
            animation: upload-shimmer 1.35s ease-in-out infinite;
        }
        .upload-thumb-wrap .upload-thumb-img {
            opacity: 0;
            transition: opacity 0.22s ease;
        }
        .upload-thumb-wrap .upload-thumb-img.is-loaded,
        .upload-thumb-wrap.is-thumb-ready .upload-thumb-img {
            opacity: 1;
        }
        .upload-progress-strip {
            height: 2px;
            border-radius: 999px;
            background: rgba(139, 92, 246, 0.15);
            overflow: hidden;
            margin-top: 0.35rem;
        }
        .upload-progress-strip > span {
            display: block;
            height: 100%;
            width: 38%;
            border-radius: inherit;
            background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.95), transparent);
            animation: upload-strip-slide 1.1s ease-in-out infinite;
        }
        @keyframes upload-strip-slide {
            0% { transform: translateX(-120%); }
            100% { transform: translateX(320%); }
        }
        .upload-status-pulse {
            animation: upload-status-pulse 1.4s ease-in-out infinite;
        }
        @keyframes upload-status-pulse {
            0%, 100% { opacity: 0.55; }
            50% { opacity: 1; }
        }
        .upload-thumb-wrap.upload-thumb-interactive {
            cursor: grab;
            user-select: none;
            -webkit-user-select: none;
        }
        .upload-thumb-wrap.upload-thumb-interactive:active { cursor: grabbing; }
        .upload-thumb-wrap.is-dragging {
            opacity: 0.35;
            transform: scale(0.94);
        }
        .upload-thumb-wrap.upload-drag-over {
            outline: 2px solid rgba(167, 139, 250, 0.95);
            outline-offset: 2px;
            box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
        }
        .upload-thumb-cover-badge {
            position: absolute;
            left: 4px;
            bottom: 4px;
            z-index: 9;
            font-size: 8px;
            font-weight: 800;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: #fff;
            background: rgba(109, 40, 217, 0.92);
            border: 1px solid rgba(196, 181, 253, 0.35);
            border-radius: 4px;
            padding: 1px 4px;
            line-height: 1.2;
            pointer-events: none;
        }
        .upload-preview-hint {
            margin-top: 0.35rem;
            text-align: center;
            font-size: 9px;
            color: rgba(148, 163, 184, 0.85);
            letter-spacing: 0.02em;
        }
        .upload-preview-lightbox {
            position: fixed;
            inset: 0;
            z-index: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            pointer-events: auto;
        }
        .upload-preview-lightbox-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.88);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
        }
        .upload-preview-lightbox-img {
            position: relative;
            z-index: 1;
            max-width: min(92vw, 920px);
            max-height: min(82vh, 920px);
            object-fit: contain;
            border-radius: 0.75rem;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
            background: rgba(255, 255, 255, 0.03);
        }
        .upload-preview-lightbox-close,
        .upload-preview-lightbox-nav {
            position: absolute;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(255, 255, 255, 0.14);
            background: rgba(26, 29, 36, 0.92);
            color: #fff;
            cursor: pointer;
            transition: background 0.15s ease, transform 0.15s ease;
        }
        .upload-preview-lightbox-close {
            top: 1rem;
            right: 1rem;
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 0.75rem;
        }
        .upload-preview-lightbox-nav {
            top: 50%;
            transform: translateY(-50%);
            width: 2.75rem;
            height: 2.75rem;
            border-radius: 999px;
        }
        .upload-preview-lightbox-nav.prev { left: 0.75rem; }
        .upload-preview-lightbox-nav.next { right: 0.75rem; }
        .upload-preview-lightbox-close:hover,
        .upload-preview-lightbox-nav:hover {
            background: rgba(109, 40, 217, 0.95);
            transform: translateY(-50%) scale(1.05);
        }
        .upload-preview-lightbox-close:hover { transform: scale(1.05); }
        .upload-preview-lightbox-meta {
            position: absolute;
            z-index: 2;
            bottom: 1.25rem;
            left: 50%;
            transform: translateX(-50%);
            font-size: 12px;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.9);
            background: rgba(11, 13, 16, 0.75);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 999px;
            padding: 0.35rem 0.85rem;
            letter-spacing: 0.04em;
        }
        .filter-cb { appearance: none; background: transparent; width: 1.15em; height: 1.15em; border: 1px solid rgba(255,255,255,0.2); border-radius: 0.2em; display: grid; place-content: center; transition: 0.2s; cursor: pointer; } 
        .filter-cb::before { content: ""; width: 0.65em; height: 0.65em; transform: scale(0); transition: 120ms transform; box-shadow: inset 1em 1em white; background: white; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); } 
        .filter-cb:checked { background: #8b5cf6; border-color: #8b5cf6; } 
        .filter-cb:checked::before { transform: scale(1); }
        .flatpickr-calendar.dark { background: #1a1d24; border: 1px solid rgba(255,255,255,0.05); } 
        .flatpickr-day.selected { background: #8b5cf6; border-color: #8b5cf6; }
        /* Evita o painel do flatpickr estourar a largura da tela no app */
        .flatpickr-calendar {
            max-width: min(100vw - 1.5rem, 20rem) !important;
            box-sizing: border-box !important;
        }
        .flatpickr-calendar.hasTime.noCalendar {
            width: auto !important;
            max-width: min(100vw - 1.5rem, 12rem) !important;
        }
        .fm-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
        .fm-cal-head { text-align: center; font-size: 9px; font-weight: 800; text-transform: uppercase; color: #64748b; padding: 6px 0; }
        .fm-cal-day { min-height: 88px; background: #12151a; border: 1px solid rgba(255,255,255,0.04); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
        .fm-cal-day.fm-cal-empty { background: transparent; border-color: transparent; }
        .fm-cal-day.fm-cal-today { border-color: rgba(139,92,246,0.55); box-shadow: inset 0 0 0 1px rgba(139,92,246,0.2); background: linear-gradient(180deg, rgba(139,92,246,0.1) 0%, #12151a 100%); }
        .fm-cal-day.fm-cal-today .fm-cal-num {
            background: rgba(139,92,246,0.85);
            color: #fff;
            border-radius: 9999px;
            width: 1.35rem;
            height: 1.35rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }
        .fm-cal-day.fm-cal-blocked { background: linear-gradient(180deg, rgba(245,158,11,0.12) 0%, #12151a 100%); border-color: rgba(245,158,11,0.25); }
        .fm-cal-num { font-size: 10px; font-weight: 800; color: #94a3b8; line-height: 1; }
        .fm-cal-event { text-align: left; width: 100%; background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.25); border-radius: 8px; padding: 4px 6px; cursor: pointer; transition: background 0.15s; }
        .fm-cal-event:hover { background: rgba(245,158,11,0.25); }
        .fm-cal-time { display: block; font-size: 9px; font-weight: 900; color: #fbbf24; }
        .fm-cal-title { display: block; font-size: 8px; font-weight: 700; color: #fde68a; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .fm-cal-board { display: block; font-size: 7px; color: #94a3b8; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .fm-cal-fm { display: block; font-size: 7px; font-weight: 800; color: #c4b5fd; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .fm-cal-mobile { display: none; }
        .fm-cal-list { display: flex; flex-direction: column; gap: 0.75rem; }
        .fm-cal-list-day { display: flex; gap: 0.625rem; align-items: flex-start; }
        .fm-cal-list-date {
            flex-shrink: 0;
            width: 2.75rem;
            text-align: center;
            background: #12151a;
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 0.75rem;
            padding: 0.4rem 0.2rem;
        }
        .fm-cal-list-date-today { border-color: rgba(139,92,246,0.5); background: rgba(139,92,246,0.12); box-shadow: inset 0 0 0 1px rgba(139,92,246,0.15); }
        .fm-cal-list-wd { display: block; font-size: 8px; font-weight: 800; text-transform: uppercase; color: #64748b; line-height: 1.2; }
        .fm-cal-list-daynum { display: block; font-size: 1.125rem; font-weight: 900; color: #fff; line-height: 1.1; margin-top: 1px; }
        .fm-cal-list-mon { display: block; font-size: 7px; font-weight: 700; text-transform: uppercase; color: #94a3b8; margin-top: 1px; }
        .fm-cal-list-events { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.5rem; }
        .fm-cal-list-event {
            display: flex;
            align-items: center;
            gap: 0.625rem;
            width: 100%;
            text-align: left;
            padding: 0.625rem 0.75rem;
            background: linear-gradient(135deg, rgba(245,158,11,0.14) 0%, #12151a 100%);
            border: 1px solid rgba(245,158,11,0.28);
            border-radius: 0.875rem;
            cursor: pointer;
            transition: background 0.15s ease, border-color 0.15s ease;
        }
        .fm-cal-list-event:active { background: rgba(245,158,11,0.22); }
        .fm-cal-list-time {
            flex-shrink: 0;
            font-size: 11px;
            font-weight: 900;
            color: #fbbf24;
            min-width: 2.75rem;
        }
        .fm-cal-list-body { flex: 1; min-width: 0; }
        .fm-cal-list-title { display: block; font-size: 11px; font-weight: 800; color: #fde68a; line-height: 1.25; word-break: break-word; }
        .fm-cal-list-meta { display: block; font-size: 9px; font-weight: 600; color: #c4b5fd; margin-top: 2px; line-height: 1.25; }
        .fm-cal-list-board { color: #94a3b8; font-weight: 700; }
        .fm-cal-list-chevron { width: 1rem; height: 1rem; color: #64748b; flex-shrink: 0; }
        .cronograma-workspace { display: flex; flex-direction: column; flex: 1 1 0%; min-height: 0; overflow: hidden; padding: 0 !important; background: #0b0d10; }
        .cronograma-toolbar {
            flex-shrink: 0;
            padding: 0.75rem 1rem;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            background: rgba(11,13,16,0.98);
            z-index: 10;
            display: flex;
            flex-direction: column;
            gap: 0.65rem;
        }
        .cronograma-toolbar-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
        }
        .cronograma-toolbar-title {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            min-width: 0;
        }
        .cronograma-toolbar-title p {
            margin: 0;
            font-size: 0.6875rem;
            font-weight: 900;
            color: #fff;
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }
        .cronograma-month-row {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            min-width: 0;
            flex: 1;
            justify-content: flex-end;
        }
        .cronograma-month-nav {
            display: inline-flex;
            align-items: center;
            gap: 0.15rem;
            background: #1a1d24;
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 0.75rem;
            padding: 0.2rem;
            flex: 1;
            min-width: 0;
            max-width: 16rem;
        }
        .cronograma-month-nav .crono-nav-btn {
            padding: 0.45rem;
            border-radius: 0.5rem;
            color: #94a3b8;
            transition: background 0.15s, color 0.15s;
            flex-shrink: 0;
        }
        .cronograma-month-nav .crono-nav-btn:hover { background: rgba(255,255,255,0.06); color: #fff; }
        #cronograma-month-label {
            font-size: 0.8125rem;
            font-weight: 700;
            color: #fff;
            min-width: 0;
            flex: 1;
            text-align: center;
            padding: 0 0.35rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        #btn-feed-approval-link-top {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.35rem;
            flex-shrink: 0;
            min-height: 2.25rem;
            padding: 0.45rem 0.75rem;
            border-radius: 0.75rem;
            font-size: 0.6875rem;
            font-weight: 700;
            color: #fff;
            background: #2563eb;
            border: none;
            box-shadow: 0 4px 14px rgba(37,99,235,0.28);
            transition: filter 0.15s;
            white-space: nowrap;
        }
        #btn-feed-approval-link-top:hover { filter: brightness(1.06); }
        #btn-feed-approval-link-top.hidden { display: none !important; }
        .cronograma-stats-row { min-width: 0; }
        .cronograma-stats-row:empty { display: none; }
        .crono-empty-hint { font-size: 0.6875rem; color: #64748b; margin: 0; }
        @media (max-width: 639px) {
            .cronograma-toolbar { padding: 0.55rem 0.75rem 0.7rem; gap: 0.5rem; }
            .cronograma-toolbar-title { display: none; } /* aba já diz FEED */
            .cronograma-toolbar-top { justify-content: stretch; }
            .cronograma-month-row { width: 100%; justify-content: stretch; }
            .cronograma-month-nav { flex: 1; max-width: none; padding: 0.25rem; }
            #cronograma-month-label { font-size: 0.875rem; }
            #btn-feed-approval-link-top { padding: 0.45rem 0.7rem; font-size: 0.6875rem; }
            /* No Feed: ações ficam só na toolbar — some PDF/Planejar da barra de contexto */
            body.is-feed-tab #btn-chrono-planner-header,
            body.is-feed-tab #btn-chrono-export-pdf-header {
                display: none !important;
            }
            body.is-feed-tab #workspace-context-bar .ws-ctx-actions {
                justify-content: flex-end;
            }
            body.is-feed-tab #workspace-context-bar .ws-ctx-actions > button {
                flex: 0 0 auto;
            }
        }
        .cronograma-scroll {
            flex: 1 1 auto;
            min-height: 0;
            overflow-y: auto;
            overflow-x: hidden;
            overscroll-behavior: contain;
            -webkit-overflow-scrolling: touch;
        }
        .cronograma-list {
            max-width: 72rem;
            margin: 0 auto;
            padding: 1rem;
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
            align-items: start;
        }
        @media (min-width: 640px) {
            .cronograma-list {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                padding: 1.25rem 1.5rem 2rem;
                gap: 1rem;
            }
        }
        @media (min-width: 1024px) {
            .cronograma-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.125rem; }
        }
        .cronograma-card {
            background: #14171c;
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 1rem;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            height: 100%;
            min-width: 0;
        }
        .cronograma-card.is-approved { border-color: rgba(16,185,129,0.35); }
        .cronograma-card.has-comments { border-color: rgba(139,92,246,0.25); }
        .cronograma-card-media {
            position: relative;
            flex-shrink: 0;
            width: 100%;
            background: #0b0d10;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            cursor: zoom-in;
        }
        .cronograma-card-media::after {
            content: '';
            position: absolute;
            inset: 0;
            z-index: 15;
            background: rgba(0,0,0,0.28);
            opacity: 0;
            transition: opacity 0.15s;
            pointer-events: none;
        }
        .cronograma-card-media:hover::after { opacity: 1; }
        .cronograma-card-preview-hint {
            position: absolute;
            inset: 0;
            z-index: 16;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.15s;
            pointer-events: none;
        }
        .cronograma-card-media:hover .cronograma-card-preview-hint { opacity: 1; }
        .cronograma-card-title { font-size: 0.75rem; font-weight: 900; color: #fff; text-transform: uppercase; line-height: 1.3; margin-bottom: 0.375rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
        .cronograma-card-title:hover { color: #c4b5fd; }
        .cronograma-card-media .publy-carousel-viewport.is-feed { width: 100%; aspect-ratio: 4/5; min-height: 0; }
        .cronograma-card-media .publy-carousel-viewport.is-square { width: 100%; aspect-ratio: 1/1; min-height: 0; }
        .cronograma-card-media .publy-carousel-track { width: 100%; height: 100%; }
        .cronograma-card-media .publy-carousel-slide { flex: 0 0 100%; width: 100%; min-width: 100%; }
        .cronograma-card-media .publy-carousel-nav { padding: 0.3rem; }
        .cronograma-card-media .publy-carousel-nav i { width: 0.875rem; height: 0.875rem; }
        .cronograma-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 0.75rem 0.875rem 0.875rem; }
        .cronograma-card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.375rem; flex-wrap: wrap; margin-bottom: 0.375rem; }
        .cronograma-card-top-left { display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; }
        .cronograma-date-pill { display: inline-flex; align-items: center; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.5rem; padding: 0.2rem 0.45rem; font-size: 0.625rem; font-weight: 800; color: #e879f9; white-space: nowrap; }
        .cronograma-format-pill { display: inline-flex; align-items: center; background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.25); border-radius: 0.5rem; padding: 0.2rem 0.45rem; font-size: 0.625rem; font-weight: 800; color: #c4b5fd; white-space: nowrap; }
        .cronograma-time-pill { font-size: 0.5625rem; font-weight: 700; color: #94a3b8; }
        .cronograma-status-chip { font-size: 0.5rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.15rem 0.4rem; border-radius: 0.375rem; border: 1px solid transparent; }
        .cronograma-card-legenda { font-size: 0.6875rem; line-height: 1.45; color: #94a3b8; margin-bottom: 0.5rem; }
        .cronograma-card-legenda strong { font-weight: 800; color: #cbd5e1; display: block; margin-bottom: 0.15rem; font-size: 0.5625rem; text-transform: uppercase; letter-spacing: 0.04em; }
        .cronograma-card-legenda-text { white-space: pre-wrap; word-break: break-word; }
        .cronograma-card-legenda-edit { display: flex; flex-direction: column; gap: 0.375rem; }
        .cronograma-card-caption-input {
            width: 100%;
            padding: 0.5rem 0.625rem;
            background: #0b0d10;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 0.625rem;
            font-size: 0.6875rem;
            line-height: 1.45;
            color: #e2e8f0;
            outline: none;
            resize: vertical;
            min-height: 4.5rem;
            white-space: pre-wrap;
            word-break: break-word;
            overflow: hidden;
        }
        .cronograma-card-caption-input:focus { border-color: rgba(139,92,246,0.5); }
        .cronograma-card-caption-input::placeholder { color: #64748b; }
        .cronograma-btn-save-caption { flex: 0 0 auto; width: 100%; background: rgba(139,92,246,0.2); color: #c4b5fd; }
        .cronograma-btn-save-caption:hover { background: rgba(139,92,246,0.35); }
        .cronograma-card-comments { margin-bottom: 0.375rem; max-height: 3.5rem; overflow-y: auto; scrollbar-width: thin; }
        .cronograma-card-comments p { font-size: 0.625rem; line-height: 1.4; color: #94a3b8; }
        .cronograma-card-comments .author { font-weight: 800; color: #e2e8f0; }
        .cronograma-card-footer { margin-top: auto; display: flex; flex-direction: column; gap: 0.375rem; }
        .cronograma-card-comment textarea {
            width: 100%;
            padding: 0.5rem 0.625rem;
            background: #0b0d10;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 0.625rem;
            font-size: 0.6875rem;
            line-height: 1.35;
            color: #e2e8f0;
            outline: none;
            resize: none;
            min-height: 2.25rem;
        }
        .cronograma-card-comment textarea:focus { border-color: rgba(139,92,246,0.5); }
        .cronograma-card-comment textarea::placeholder { color: #64748b; }
        .cronograma-card-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
        .cronograma-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; padding: 0.5rem 0.75rem; border-radius: 0.625rem; font-size: 0.6875rem; font-weight: 800; border: none; cursor: pointer; transition: background 0.15s; }
        .cronograma-btn-comment { background: rgba(139,92,246,0.2); color: #c4b5fd; }
        .cronograma-btn-comment:hover { background: rgba(139,92,246,0.35); }
        .cronograma-btn-approve { background: #059669; color: #fff; }
        .cronograma-btn-approve:hover { background: #10b981; }
        .cronograma-btn-done { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.25); cursor: default; }
        .cronograma-btn-link { background: rgba(59,130,246,0.2); color: #93c5fd; flex: 1 1 100%; width: 100%; }
        .cronograma-btn-link:hover { background: rgba(59,130,246,0.35); }
        .feature-flag-section { margin-bottom: 1.25rem; }
        .feature-flag-section h4 { font-size: 0.6875rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; color: #a78bfa; margin-bottom: 0.25rem; }
        .feature-flag-section > p { font-size: 0.625rem; color: #64748b; margin-bottom: 0.75rem; line-height: 1.4; }
        .column-notify-card {
            padding: 0.875rem 1rem;
            border-radius: 0.875rem;
            border: 1px solid rgba(255,255,255,0.06);
            background: rgba(11, 13, 16, 0.65);
        }
        .auto-rule-card {
            padding: 1rem 1.125rem;
            border-radius: 1rem;
            border: 1px solid rgba(255,255,255,0.08);
            background: linear-gradient(180deg, rgba(21,23,28,0.95) 0%, rgba(11,13,16,0.85) 100%);
        }
        .auto-rule-card.is-off { opacity: 0.55; }
        .auto-rule-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
        .auto-rule-title { font-size: 0.75rem; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 0.04em; }
        .auto-rule-steps { display: flex; flex-direction: column; gap: 0.75rem; }
        .auto-step {
            padding: 0.75rem 0.875rem;
            border-radius: 0.75rem;
            border: 1px solid rgba(255,255,255,0.06);
            background: rgba(11,13,16,0.7);
        }
        .auto-step-label {
            font-size: 0.5625rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: #a78bfa;
            margin-bottom: 0.5rem;
        }
        .auto-when-pill {
            display: inline-flex;
            align-items: center;
            gap: 0.375rem;
            padding: 0.5rem 0.75rem;
            border-radius: 0.625rem;
            background: rgba(139,92,246,0.12);
            border: 1px solid rgba(139,92,246,0.25);
            font-size: 0.6875rem;
            font-weight: 700;
            color: #e9d5ff;
            line-height: 1.3;
        }
        .auto-then-options { display: flex; flex-direction: column; gap: 0.5rem; }
        .auto-then-option {
            display: flex; align-items: flex-start; gap: 0.5rem;
            font-size: 0.6875rem; color: #cbd5e1; line-height: 1.35;
        }
        .auto-then-option input { margin-top: 0.125rem; accent-color: #8b5cf6; }
        .auto-msg-panel {
            margin-top: 0.55rem;
            margin-left: 1.35rem;
            padding: 0.65rem 0.75rem;
            border-radius: 0.7rem;
            border: 1px solid rgba(167, 139, 250, 0.22);
            background: rgba(91, 33, 182, 0.08);
        }
        .auto-msg-preview {
            font-size: 0.6875rem;
            color: #cbd5e1;
            white-space: pre-wrap;
            line-height: 1.45;
            max-height: 5.5rem;
            overflow: auto;
            margin-bottom: 0.5rem;
        }
        .auto-msg-preview.is-custom::before {
            content: 'Personalizada';
            display: inline-block;
            font-size: 0.5625rem;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: #a78bfa;
            margin-bottom: 0.35rem;
            margin-right: 0.4rem;
        }
        .auto-msg-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 0.35rem;
            margin: 0.45rem 0 0.55rem;
        }
        .auto-msg-chip {
            border: 1px solid rgba(167, 139, 250, 0.35);
            background: rgba(124, 58, 237, 0.16);
            color: #ede9fe;
            font-size: 0.5625rem;
            font-weight: 700;
            padding: 0.28rem 0.45rem;
            border-radius: 999px;
            cursor: pointer;
            line-height: 1;
        }
        .auto-msg-chip:active { transform: scale(0.97); }
        .auto-msg-panel textarea,
        .auto-msg-editor {
            width: 100%;
            min-height: 7.5rem;
            border-radius: 0.65rem;
            border: 1px solid rgba(255,255,255,0.1);
            background: #0b0d10;
            color: #f8fafc;
            font-size: 0.8125rem;
            line-height: 1.55;
            padding: 0.7rem 0.75rem;
            outline: none;
            resize: vertical;
            white-space: pre-wrap;
            word-break: break-word;
        }
        .auto-msg-editor:empty:before {
            content: attr(data-placeholder);
            color: #64748b;
            pointer-events: none;
        }
        .auto-msg-editor:focus {
            border-color: rgba(167, 139, 250, 0.45);
        }
        .wa-var-token {
            display: inline;
            padding: 0.05rem 0.35rem;
            margin: 0 0.05rem;
            border-radius: 0.35rem;
            background: rgba(124, 58, 237, 0.28);
            border: 1px solid rgba(167, 139, 250, 0.45);
            color: #ddd6fe;
            font-weight: 700;
            font-size: 0.75rem;
            line-height: 1.35;
            white-space: nowrap;
            vertical-align: baseline;
            -webkit-user-select: none;
            user-select: none;
        }
        .auto-msg-hint {
            font-size: 0.5625rem;
            color: #94a3b8;
            line-height: 1.4;
            margin: 0.35rem 0 0.15rem;
        }
        .auto-msg-chip {
            border: 1px solid rgba(167, 139, 250, 0.35);
            background: rgba(124, 58, 237, 0.16);
            color: #ede9fe;
            font-size: 0.625rem;
            font-weight: 700;
            padding: 0.35rem 0.55rem;
            border-radius: 999px;
            cursor: pointer;
            line-height: 1;
        }
        .wa-template-vars-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 0.35rem;
            margin: 0.4rem 0 0.55rem;
        }
        .wa-template-block .auto-msg-editor {
            min-height: 5.5rem;
            font-size: 0.75rem;
        }
        .auto-recipients { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.375rem; max-height: 7rem; overflow-y: auto; }
        @media (max-width: 640px) { .auto-recipients { grid-template-columns: 1fr; } }
        .feature-flag-row {
            display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
            padding: 0.75rem 0.875rem; background: #15171c; border: 1px solid rgba(255,255,255,0.06);
            border-radius: 0.875rem; margin-bottom: 0.5rem;
        }
        .feature-flag-row:last-child { margin-bottom: 0; }
        .feature-flag-label { font-size: 0.75rem; font-weight: 700; color: #f1f5f9; line-height: 1.3; }
        .feature-flag-desc { font-size: 0.625rem; color: #64748b; margin-top: 0.2rem; line-height: 1.4; }
        .feature-toggle {
            flex-shrink: 0; width: 2.5rem; height: 1.375rem; border-radius: 9999px; border: none; cursor: pointer;
            background: #334155; position: relative; transition: background 0.2s;
        }
        .feature-toggle::after {
            content: ''; position: absolute; top: 0.1875rem; left: 0.1875rem; width: 1rem; height: 1rem;
            border-radius: 9999px; background: #fff; transition: transform 0.2s;
        }
        .feature-toggle.on { background: #7c3aed; }
        .feature-toggle.on::after { transform: translateX(1.125rem); }
        .feature-toggle:disabled { opacity: 0.45; cursor: not-allowed; }
        .wa-template-block {
            margin: 0.5rem 0 0.75rem;
            padding: 0.75rem;
            border-radius: 0.75rem;
            border: 1px solid rgba(255,255,255,0.06);
            background: rgba(11,13,16,0.65);
        }
        .wa-template-block textarea {
            width: 100%;
            min-height: 5.5rem;
            padding: 0.625rem 0.75rem;
            background: #0b0d10;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 0.625rem;
            color: #e2e8f0;
            font-size: 0.6875rem;
            line-height: 1.45;
            resize: vertical;
            font-family: ui-monospace, monospace;
        }
        .wa-template-vars { font-size: 0.5625rem; color: #64748b; line-height: 1.4; margin-top: 0.375rem; }
        .wa-template-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
        .wa-template-btn {
            font-size: 0.5625rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            padding: 0.35rem 0.65rem;
            border-radius: 0.5rem;
            color: #a78bfa;
            background: rgba(139,92,246,0.12);
        }
        .wa-template-btn:hover { background: rgba(139,92,246,0.22); color: #e9d5ff; }
        .wa-template-btn-muted { color: #94a3b8; background: rgba(255,255,255,0.05); }
        .feature-flag-row.has-template { flex-direction: column; align-items: stretch; }
        .feature-flag-row-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; width: 100%; }
        .publy-carousel-viewport { position: relative; width: 100%; overflow: hidden; background: #0b0d10; isolation: isolate; }
        .publy-carousel-viewport.is-square { aspect-ratio: 1/1; }
        .publy-carousel-viewport.is-feed { aspect-ratio: 4/5; }
        .publy-carousel-track {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            align-items: stretch;
            width: 100%;
            height: 100%;
            overflow-x: scroll;
            overflow-y: hidden;
            scroll-snap-type: x mandatory;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -ms-overflow-style: none;
            overscroll-behavior-x: contain;
        }
        .publy-carousel-track::-webkit-scrollbar { display: none; width: 0; height: 0; }
        .publy-carousel-slide {
            flex: 0 0 100%;
            width: 100%;
            min-width: 100%;
            max-width: 100%;
            height: 100%;
            scroll-snap-align: start;
            scroll-snap-stop: always;
            overflow: hidden;
            display: block;
            background: #0b0d10;
            box-sizing: border-box;
        }
        .publy-carousel-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; pointer-events: none; -webkit-user-drag: none; user-select: none; }
        .publy-carousel-dots { position: absolute; bottom: 0.5rem; left: 50%; transform: translateX(-50%); z-20; display: flex; gap: 0.35rem; pointer-events: none; padding: 0.25rem 0.5rem; border-radius: 9999px; background: rgba(0,0,0,0.45); backdrop-filter: blur(4px); }
        .publy-carousel-dot { width: 6px; height: 6px; border-radius: 9999px; background: rgba(255,255,255,0.35); transition: transform 0.2s, background 0.2s; }
        .publy-carousel-dot.active { background: #fff; transform: scale(1.15); }
        .publy-carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); z-20; background: rgba(0,0,0,0.55); color: #fff; border: none; padding: 0.4rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.15s, opacity 0.15s; }
        .publy-carousel-nav:hover:not(:disabled) { background: rgba(0,0,0,0.8); }
        .publy-carousel-nav:disabled { opacity: 0.25; cursor: default; pointer-events: none; }
        .publy-carousel-nav.prev { left: 0.5rem; }
        .publy-carousel-nav.next { right: 0.5rem; }
        .publy-carousel-counter { position: absolute; top: 0.5rem; right: 0.5rem; z-20; background: rgba(0,0,0,0.65); color: #fff; font-size: 0.5625rem; font-weight: 900; padding: 0.2rem 0.45rem; border-radius: 0.375rem; pointer-events: none; }
        .publy-carousel-download {
            position: absolute; bottom: 0.5rem; left: 0.5rem; z-index: 25;
            background: rgba(0,0,0,0.6); color: #fff; border: none; padding: 0.35rem 0.5rem;
            border-radius: 9999px; display: inline-flex; align-items: center; gap: 0.25rem;
            cursor: pointer; font-size: 0.5625rem; font-weight: 800; text-transform: uppercase;
            letter-spacing: 0.04em; transition: background 0.15s;
        }
        .publy-carousel-download:hover { background: rgba(0,0,0,0.85); }
        .publy-carousel-download-all {
            position: absolute; bottom: 0.5rem; left: 5.5rem; z-index: 25;
            background: rgba(0,0,0,0.6); color: #fff; border: none; padding: 0.35rem 0.45rem;
            border-radius: 9999px; display: inline-flex; align-items: center; cursor: pointer;
            transition: background 0.15s;
        }
        .publy-carousel-download-all:hover { background: rgba(0,0,0,0.85); }
        .cronograma-detail-modal { max-height: 92dvh; overflow-y: auto; }
        #global-demands-section .demand-col-list { max-height: 280px; overflow-y: auto; }
        #global-demands-chevron { transition: transform 0.2s ease; }
        @media (max-width: 767px) {
            .fm-cal-desktop { display: none !important; }
            .fm-cal-mobile { display: block !important; }
            #filmmaker-agenda-grid, #captacoes-grid { padding: 0.75rem !important; border-radius: 1rem !important; }
            #global-demands-section .demand-col { min-height: 0; }
            #filmmaker-agenda-section .fm-month-nav,
            #workspace-captacoes .fm-month-nav { width: 100%; justify-content: center; }
            #filmmaker-agenda-section .fm-month-nav span,
            #workspace-captacoes .fm-month-nav span { min-width: 0 !important; flex: 1; font-size: 0.8125rem; }
            .fm-cal-list-title { font-size: 13px; }
            .fm-cal-list-meta { font-size: 11px; }
            .fm-cal-list-time { font-size: 13px; min-width: 3rem; }
            .fm-cal-list-daynum { font-size: 1.25rem; }
        }
        body, html { width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden; background-color: #0b0d10; font-family: 'Inter', system-ui, sans-serif; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
        #app-shell {
            height: 100%;
            max-height: 100%;
            display: flex; flex-direction: column; overflow: hidden;
            /* Safe-area só no topo — embaixo a nav flutuante cuida (evita faixa preta + corte) */
            padding-top: env(safe-area-inset-top, 0px);
            padding-bottom: 0;
            padding-left: env(safe-area-inset-left, 0px);
            padding-right: env(safe-area-inset-right, 0px);
            background: #0b0d10;
        }
        /* iOS/Capacitor: body fixo = viewport completo; evita clip de position:fixed na home indicator */
        html.platform-ios body,
        html.is-native-app body {
            position: fixed;
            inset: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }
        /* iOS / Capacitor WebView — evita zoom em inputs, toques e tipografia “espremida” */
        html.platform-ios input, html.platform-ios textarea, html.platform-ios select,
        html.is-native-app input, html.is-native-app textarea, html.is-native-app select {
            font-size: 16px !important;
        }
        html.platform-ios, html.is-native-app {
            -webkit-tap-highlight-color: transparent;
            overscroll-behavior: none;
        }
        /* Customização de portal: só web — esconde abas no app nativo */
        html.is-native-app #ws-tab-btn-login-brand,
        html.is-native-app #tab-btn-login-brand,
        html.is-native-app #workspace-settings-login-brand-section,
        html.is-native-app #settings-login-brand-section {
            display: none !important;
        }
        /* App Store 4.8 / 4.0: Google oculto por padrão; só aparece em html.is-web-browser */
        #btn-login-google,
        #login-google-divider {
            display: none !important;
        }
        html.is-web-browser #btn-login-google {
            display: flex !important;
        }
        html.is-web-browser #login-google-divider {
            display: flex !important;
        }
        /* App Store 3.1.3(f): sem CTAs de assinatura/compra no app nativo */
        html.is-native-app #login-signup-row,
        html.is-native-app a[href="/cadastro"],
        html.is-native-app a[href^="/cadastro"],
        html.is-native-app a[href="/vendas"],
        html.is-native-app a[href^="/vendas"],
        html.is-native-app .ios-hide-purchase {
            display: none !important;
        }
        html.is-native-app #conta-row-delete {
            display: flex !important;
        }


        .estudio-loader-lottie {
            width: min(300px, 72vw);
            height: min(300px, 72vw);
            margin: 0 auto;
            position: relative;
            z-index: 2;
            transition: opacity 0.55s ease, transform 0.55s ease;
        }

        html.clinic-boot-heart #app-loader{background:#fff!important}
        html.clinic-boot-heart #estudio-loader-lottie{width:168px!important;height:168px!important;max-width:60vw;max-height:60vw;filter:none!important}
        html.clinic-boot-heart #app-loader .estudio-ambient{display:none!important}
        .estudio-loader-lottie svg { width: 100% !important; height: 100% !important; }

        /* Loader: fundo branco + animação compartilhada (login e app) */
        #app-loader {
            isolation: isolate;
            background: #fff !important;
            background-image: none !important;
            transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.7s;
            opacity: 1;
            visibility: visible;
        }
        #app-loader::before,
        #app-loader::after {
            content: none !important;
            display: none !important;
        }
        #app-loader > .estudio-ambient {
            display: none !important;
        }
        #app-loader.is-leaving {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }
        #app-loader.is-leaving .estudio-loader-lottie {
            opacity: 0;
            transform: scale(0.9);
        }
        @media (prefers-reduced-motion: reduce) {
            #app-loader,
            #app-loader.is-leaving .estudio-loader-lottie {
                transition: opacity 0.2s ease !important;
            }
        }


        .estudio-login-link {
            color: var(--estudio-brand-soft, #C4B5FD) !important;
            font-size: 0.72rem !important;
            font-weight: 600 !important;
            background: none;
            border: none;
            padding: 0;
            cursor: pointer;
        }
        .estudio-login-link:hover { filter: brightness(1.12); text-decoration: underline; }
        .estudio-login-back {
            color: var(--estudio-muted) !important;
            font-size: 0.7rem !important;
            font-weight: 700 !important;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            background: none;
            border: none;
            cursor: pointer;
            margin-bottom: 0.35rem;
        }
        .estudio-login-back:hover { color: var(--estudio-ink) !important; }
        #login-card.is-forgot #login-main-form,
        #login-card.is-forgot #login-support-row { display: none !important; }
        #auth-panel-forgot:not(.hidden) { display: block !important; }
        #forgot-feedback.is-ok { background: rgba(16,185,129,0.14); color: #6EE7B7; }
        #forgot-feedback.is-err { background: rgba(239,68,68,0.14); color: #FCA5A5; }
        #support-hub-modal:not(.hidden) { display: flex !important; }
        #support-hub-modal .support-hub-sheet {
            background: #111827;
            border: 1px solid rgba(51, 65, 85, 0.8);
            color: #E2E8F0;
        }
        #support-hub-modal .support-hub-sheet__head {
            border-bottom: 1px solid rgba(51, 65, 85, 0.8);
        }
        #support-hub-modal .support-hub-sheet__eyebrow {
            color: #C4B5FD;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }
        #support-hub-modal .support-hub-sheet__title {
            color: #fff;
            font-size: 1.125rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            line-height: 1.25;
        }
        #support-hub-modal .support-hub-sheet__close {
            color: #94A3B8;
        }
        #support-hub-modal .support-hub-sheet__close:hover {
            color: #fff;
            background: rgba(30, 41, 59, 0.9);
        }
        #support-hub-modal .support-hub-option {
            border: 1px solid rgba(51, 65, 85, 0.9);
            background: rgba(15, 23, 42, 0.55);
            color: inherit;
        }
        #support-hub-modal .support-hub-option--ai {
            border-color: rgba(110, 66, 255, 0.4);
            background: linear-gradient(90deg, rgba(110, 66, 255, 0.15), rgba(139, 92, 246, 0.1));
        }
        #support-hub-modal .support-hub-option--ai:hover {
            border-color: rgba(110, 66, 255, 0.6);
            background: linear-gradient(90deg, rgba(110, 66, 255, 0.22), rgba(139, 92, 246, 0.14));
        }
        #support-hub-modal .support-hub-option--wa:hover {
            border-color: rgba(16, 185, 129, 0.45);
            background: rgba(16, 185, 129, 0.08);
        }
        #support-hub-modal .support-hub-option__label {
            color: #fff;
            font-weight: 700;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            gap: 0.45rem;
            flex-wrap: wrap;
        }
        #support-hub-modal .support-hub-option__tag {
            font-size: 9px;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            padding: 0.15rem 0.5rem;
            border-radius: 999px;
        }
        #support-hub-modal .support-hub-option--ai .support-hub-option__tag {
            color: #c4b5fd;
            background: rgba(110, 66, 255, 0.3);
            border: 1px solid rgba(110, 66, 255, 0.4);
        }
        #support-hub-modal .support-hub-option--wa .support-hub-option__tag {
            color: #6ee7b7;
            background: rgba(16, 185, 129, 0.2);
            border: 1px solid rgba(16, 185, 129, 0.3);
        }
        #support-hub-modal .support-hub-option__value {
            color: #C4B5FD;
            font-weight: 600;
            font-size: 0.875rem;
            word-break: break-all;
        }
        #support-hub-modal .support-hub-option--wa .support-hub-option__value {
            color: #6EE7B7;
        }
        #support-hub-modal .support-hub-option__hint {
            color: #94A3B8;
            font-size: 0.75rem;
            margin-top: 0.15rem;
            line-height: 1.35;
        }
        #support-hub-modal .support-hub-option__chevron {
            color: #64748B;
        }
        #support-chat-panel {
            position: fixed;
            right: 1rem;
            bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
            z-index: 260;
            width: min(calc(100vw - 2rem), 400px);
            max-height: min(75vh, 560px);
            display: none;
            flex-direction: column;
            overflow: hidden;
            border-radius: 1rem;
            border: 1px solid rgba(51, 65, 85, 0.8);
            background: #111827;
            box-shadow: 0 24px 48px rgba(0,0,0,0.45);
        }
        #support-chat-panel:not(.hidden) { display: flex !important; }
        #support-chat-panel.support-chat-panel--login {
            bottom: calc(1.15rem + env(safe-area-inset-bottom, 0px));
        }
        #support-chat-messages .support-msg {
            max-width: 92%;
            padding: 0.65rem 0.8rem;
            border-radius: 0.85rem;
            font-size: 0.8125rem;
            line-height: 1.45;
            white-space: pre-wrap;
        }
        #support-chat-messages .support-msg--ai {
            background: rgba(110, 66, 255, 0.14);
            border: 1px solid rgba(110, 66, 255, 0.28);
            color: #e2e8f0;
            margin-right: auto;
        }
        #support-chat-messages .support-msg--user {
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.08);
            color: #f1f5f9;
            margin-left: auto;
        }
        #support-chat-messages .support-msg--meta {
            font-size: 0.65rem;
            color: #64748b;
            text-align: center;
            padding: 0.25rem;
        }


        /* Motion Clínicas → Estúdio */
        .estudio-stagger-item {
            animation: estudio-rise 0.45s ease both;
            animation-delay: calc(var(--estudio-stagger-i, 0) * 45ms);
        }
        @keyframes estudio-rise {
            from { opacity: 0; transform: translateY(14px); }
            to { opacity: 1; transform: none; }
        }
        .estudio-flat-sync {
            position: fixed;
            inset: 0;
            z-index: 99990;
            display: none;
            align-items: center;
            justify-content: center;
            background: #000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.55s;
        }
        .estudio-flat-sync.is-on {
            display: flex;
            opacity: 1;
            visibility: visible;
        }
        .estudio-flat-sync.is-leaving {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }
        .estudio-flat-sync__lottie {
            width: min(220px, 58vw);
            height: min(220px, 58vw);
            margin: 0 auto;
            overflow: visible;
            transition: opacity 0.45s ease, transform 0.45s ease;
        }
        .estudio-flat-sync.is-leaving .estudio-flat-sync__lottie {
            opacity: 0;
            transform: scale(0.92);
        }
        .estudio-flat-sync__lottie svg {
            width: 100% !important;
            height: 100% !important;
            display: block;
        }
        .estudio-flat-sync--lottie .estudio-flat-sync__bars { display: none !important; }
        .estudio-flat-sync__card { text-align: center; padding: 1.25rem 1.5rem; }
        .estudio-flat-sync__bars {
            display: flex;
            align-items: flex-end;
            justify-content: center;
            gap: 6px;
            height: 36px;
            margin-bottom: 12px;
        }
        .estudio-flat-sync__bars span {
            width: 8px;
            border-radius: 4px;
            background: var(--estudio-brand, #3C087B);
            display: block;
            animation: estudio-bar .9s ease-in-out infinite;
            transform-origin: bottom;
        }
        .estudio-flat-sync__bars span:nth-child(1) { height: 12px; }
        .estudio-flat-sync__bars span:nth-child(2) { height: 22px; animation-delay: .1s; }
        .estudio-flat-sync__bars span:nth-child(3) { height: 30px; animation-delay: .2s; }
        .estudio-flat-sync__bars span:nth-child(4) { height: 18px; animation-delay: .3s; }
        @keyframes estudio-bar {
            0%, 100% { transform: scaleY(.45); opacity: .45; }
            50% { transform: scaleY(1); opacity: 1; }
        }
        .estudio-btn-spinner {
            width: 14px;
            height: 14px;
            border: 2px solid rgba(255,255,255,.35);
            border-top-color: #fff;
            border-radius: 999px;
            display: inline-block;
            animation: estudio-spin .7s linear infinite;
        }
        @keyframes estudio-spin { to { transform: rotate(360deg); } }
        #login-screen.estudio-login-exit,
        #login-card.estudio-login-exit {
            opacity: 0;
            transform: translateY(-8px) scale(.98);
            transition: opacity .28s ease, transform .28s ease;
        }
        #login-screen.is-entering {
            animation: estudio-login-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
        }
        #login-screen.is-entering #login-card {
            animation: estudio-login-card-enter 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
        }
        @keyframes estudio-login-enter {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        @keyframes estudio-login-card-enter {
            from { opacity: 0; transform: translateY(16px) scale(0.985); }
            to { opacity: 1; transform: none; }
        }
        #dashboard-view.estudio-app-enter,
        #workspace-view.estudio-app-enter,
        #app-shell.estudio-app-enter {
            animation: estudio-app-in .55s cubic-bezier(0.22, 1, 0.36, 1) both;
        }
        @keyframes estudio-app-in {
            from { opacity: 0; transform: translateY(14px) scale(0.99); }
            to { opacity: 1; transform: none; }
        }
        .estudio-ambient--app {
            position: fixed;
            inset: 0;
            z-index: 0;
            pointer-events: none;
            opacity: 0.35;
        }
        .estudio-ambient--app .estudio-ambient__smoke--1 { opacity: 0.22; }
        @media (prefers-reduced-motion: reduce) {
            .estudio-stagger-item,
            #dashboard-view.estudio-app-enter,
            #workspace-view.estudio-app-enter,
            #app-shell.estudio-app-enter {
                animation: none !important;
            }
        }

        /* —— Login dark (fundo grade + glow roxo/magenta) —— */
        :root {
            --estudio-brand: #8B5CF6;
            --estudio-brand-hover: #A78BFA;
            --estudio-brand-deep: #7C3AED;
            --estudio-brand-soft: #C4B5FD;
            --estudio-brand-hot: #E879F9;
            --estudio-soft: rgba(139, 92, 246, 0.16);
            --estudio-mist: rgba(255, 255, 255, 0.08);
            --estudio-bg: #07070A;
            --estudio-field: rgba(255, 255, 255, 0.06);
            --estudio-ink: #F8FAFC;
            --estudio-muted: #94A3B8;
        }
        html.estudio-login-lock,
        html.estudio-login-lock body,
        html:has(#login-screen:not(.hidden)),
        html:has(#login-screen:not(.hidden)) body {
            overflow: hidden !important;
            height: 100% !important;
            max-height: 100% !important;
            overscroll-behavior: none !important;
        }
        html.estudio-login-lock body,
        html:has(#login-screen:not(.hidden)) body {
            position: fixed !important;
            inset: 0 !important;
            width: 100% !important;
            background: #07070A !important;
        }
        #login-screen {
            position: fixed !important;
            inset: 0 !important;
            width: 100% !important;
            height: 100% !important;
            max-height: 100% !important;
            min-height: 0 !important;
            overflow: hidden !important;
            overscroll-behavior: none !important;
            touch-action: none;
            isolation: isolate;
            box-sizing: border-box !important;
            display: none;
            background-color: #07070A !important;
            background-image:
                linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                radial-gradient(ellipse 95% 70% at 8% -8%, rgba(109, 40, 217, 0.55), transparent 58%),
                radial-gradient(ellipse 80% 55% at 108% 108%, rgba(190, 24, 93, 0.32), transparent 52%),
                radial-gradient(ellipse 55% 45% at 50% 42%, rgba(60, 8, 123, 0.22), transparent 70%) !important;
            background-size: 44px 44px, 44px 44px, auto, auto, auto !important;
            background-position: center, center, center, center, center !important;
        }
        #login-screen:not(.hidden) {
            display: flex !important;
            align-items: center;
            justify-content: center;
        }
        #login-screen::before {
            content: '' !important;
            display: block !important;
            position: absolute;
            inset: 0;
            pointer-events: none;
            z-index: 0;
            background:
                radial-gradient(circle at 20% 18%, rgba(168, 85, 247, 0.18), transparent 42%),
                radial-gradient(circle at 82% 78%, rgba(236, 72, 153, 0.12), transparent 40%);
            animation: estudio-login-glow 10s ease-in-out infinite alternate;
        }
        #login-screen::after {
            content: '' !important;
            display: block !important;
            position: absolute;
            inset: -20%;
            pointer-events: none;
            z-index: 0;
            opacity: 0.45;
            background-image:
                linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 44px 44px;
            mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
            -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
            animation: estudio-login-grid-drift 28s linear infinite;
        }
        @keyframes estudio-login-glow {
            from { opacity: 0.7; transform: scale(1); }
            to { opacity: 1; transform: scale(1.04); }
        }
        @keyframes estudio-login-grid-drift {
            from { transform: translate3d(0, 0, 0); }
            to { transform: translate3d(-44px, -44px, 0); }
        }
        @media (prefers-reduced-motion: reduce) {
            #login-screen::before,
            #login-screen::after { animation: none !important; }
        }
        #login-screen > .login-screen-inner {
            width: 100%;
            max-width: 100%;
            height: 100% !important;
            min-height: 0 !important;
            max-height: 100% !important;
            box-sizing: border-box;
            margin: 0 auto;
            overflow-x: hidden !important;
            overflow-y: auto !important;
            -webkit-overflow-scrolling: touch;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: max(1rem, env(safe-area-inset-top)) 1rem max(1.25rem, env(safe-area-inset-bottom)) !important;
            background: transparent !important;
            position: relative;
            z-index: 2;
        }
        #login-screen > *:not(.estudio-ambient) {
            position: relative;
            z-index: 2;
            background: transparent !important;
        }
        .estudio-ambient {
            position: absolute;
            inset: 0;
            width: 100%;
            overflow: hidden;
            pointer-events: none;
            z-index: 1;
        }
        .estudio-ambient__smoke {
            position: absolute;
            pointer-events: none;
            z-index: 1;
            will-change: transform;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            transform: translateZ(0);
        }
        .estudio-ambient__smoke::before {
            content: '';
            position: absolute;
            inset: -25%;
            border-radius: inherit;
            filter: blur(48px);
            background:
                radial-gradient(ellipse 70% 55% at 40% 45%, rgba(124, 58, 237, 0.55) 0%, rgba(124, 58, 237, 0.18) 48%, transparent 72%),
                radial-gradient(ellipse 50% 50% at 70% 60%, rgba(232, 121, 249, 0.28) 0%, transparent 70%);
        }
        .estudio-ambient__smoke--1 {
            width: min(110vw, 560px);
            height: min(70vw, 360px);
            left: -12%;
            top: 8%;
            opacity: 0.55;
            border-radius: 58% 42% 52% 48% / 48% 55% 45% 52%;
        }
        .estudio-ambient__smoke--2 {
            width: min(90vw, 420px);
            height: min(60vw, 280px);
            right: -18%;
            bottom: 4%;
            left: auto;
            top: auto;
            opacity: 0.4;
            border-radius: 42% 58% 48% 52% / 55% 42% 58% 45%;
        }
        .estudio-ambient__smoke--2::before {
            background:
                radial-gradient(ellipse 65% 55% at 55% 50%, rgba(190, 24, 93, 0.4) 0%, transparent 70%),
                radial-gradient(ellipse 45% 45% at 30% 40%, rgba(139, 92, 246, 0.25) 0%, transparent 65%);
        }
        .estudio-ambient--js-smoke .estudio-ambient__smoke {
            animation: none !important;
        }
        #login-card {
            background:
                radial-gradient(ellipse 90% 70% at 12% 0%, rgba(124, 58, 237, 0.28), transparent 55%),
                radial-gradient(ellipse 80% 60% at 100% 100%, rgba(219, 39, 119, 0.16), transparent 50%),
                rgba(12, 12, 18, 0.72) !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            border-radius: 28px !important;
            box-shadow:
                0 28px 80px rgba(0, 0, 0, 0.55),
                inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
            backdrop-filter: blur(22px) saturate(1.15) !important;
            -webkit-backdrop-filter: blur(22px) saturate(1.15) !important;
            padding: 1.65rem 1.25rem 1.35rem !important;
            max-width: 380px;
            width: 100%;
            margin: 0 auto;
            box-sizing: border-box;
            position: relative;
            z-index: 2;
            overflow: hidden;
        }
        #login-card::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            pointer-events: none;
            opacity: 0.35;
            background-image:
                linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
            background-size: 28px 28px;
            mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
            -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
        }
        #login-card > * { position: relative; z-index: 1; }
        @media (min-width: 640px) {
            #login-card { padding: 2rem 1.75rem 1.6rem !important; }
        }
        .estudio-login-brand {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 100%;
            margin: 0 auto 1rem;
            max-width: 100%;
            text-align: center;
        }
        .estudio-login-brand__lockup {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            max-width: 100%;
            margin: 0 auto;
            pointer-events: none;
        }
        /* Sobrescreve .login-brand img (height fixo pequeno) */
        .login-brand .estudio-login-brand__full,
        .estudio-login-brand__full {
            display: block !important;
            width: auto !important;
            height: auto !important;
            max-width: min(100%, 13.5rem) !important;
            max-height: 3.25rem !important;
            margin-left: auto !important;
            margin-right: auto !important;
            object-fit: contain !important;
            object-position: center !important;
            opacity: 0;
            transform-origin: 50% 50%;
            will-change: transform, opacity;
            transform: translate3d(0, 10px, 0) scale(0.96);
            filter:
                drop-shadow(0 8px 18px rgba(139, 92, 246, 0.28))
                drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
        }
        @media (min-width: 400px) {
            .login-brand .estudio-login-brand__full,
            .estudio-login-brand__full {
                max-width: min(100%, 15rem) !important;
                max-height: 3.5rem !important;
            }
        }
        @media (min-width: 640px) {
            .login-brand .estudio-login-brand__full,
            .estudio-login-brand__full {
                max-width: min(100%, 16.5rem) !important;
                max-height: 3.75rem !important;
            }
        }
        .estudio-login-brand__lockup.is-playing .estudio-login-brand__full {
            animation: estudio-logo-full-in 0.7s cubic-bezier(0.16, 0.84, 0.28, 1) forwards;
        }
        .estudio-login-brand__lockup.is-done .estudio-login-brand__full {
            opacity: 1;
            transform: none;
            animation: none;
        }
        @keyframes estudio-logo-full-in {
            0% {
                opacity: 0;
                transform: translate3d(0, 12px, 0) scale(0.96);
            }
            100% {
                opacity: 1;
                transform: translate3d(0, 0, 0) scale(1);
            }
        }
        @media (prefers-reduced-motion: reduce) {
            .login-brand .estudio-login-brand__full,
            .estudio-login-brand__full {
                opacity: 1 !important;
                transform: none !important;
                animation: none !important;
            }
        }
        #login-card .login-brand-custom { display: none; margin: 0 auto 1.35rem; text-align: center; }
        #login-card.is-custom-brand .estudio-login-brand { display: none !important; }
        #login-card.is-custom-brand .login-brand-custom { display: block !important; }
        #login-card.is-custom-brand #login-brand-logo {
            display: inline-block !important;
            max-height: 72px;
            width: auto;
            max-width: min(280px, 78vw);
            margin: 0 auto 0.5rem;
        }
        #login-card.is-custom-brand #login-brand-name {
            color: #F8FAFC !important;
        }
        #login-brand-tagline {
            color: var(--estudio-muted) !important;
            font-size: 0.8rem !important;
            font-weight: 500 !important;
            line-height: 1.4 !important;
            margin: 0.35rem 0 0 !important;
        }
        #login-card label {
            color: var(--estudio-muted) !important;
            letter-spacing: 0.02em !important;
            font-size: 0.72rem !important;
            text-transform: none !important;
            font-weight: 600 !important;
        }
        #login-card input[type="text"],
        #login-card input[type="email"],
        #login-card input[type="password"] {
            background: rgba(255, 255, 255, 0.05) !important;
            color: #F8FAFC !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            border-radius: 14px !important;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
            min-height: 48px;
            font-size: 16px !important;
            line-height: 1.25 !important;
            padding: 0.85rem 1rem !important;
            transition: border-color .15s ease, background .15s ease, box-shadow .15s ease !important;
        }
        /* Bolinhas da senha seguem o font-size — menor = discos menores (viewport já bloqueia zoom) */
        #login-card input[type="password"] {
            font-size: 11px !important;
            letter-spacing: 0.22em !important;
            line-height: 48px !important;
            padding-top: 0 !important;
            padding-bottom: 0 !important;
        }
        #login-card input:focus {
            background: rgba(255, 255, 255, 0.08) !important;
            border-color: rgba(167, 139, 250, 0.65) !important;
            box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.22) !important;
            outline: none !important;
        }
        #login-card input::placeholder { color: #64748B !important; }
        #login-remember { accent-color: var(--estudio-brand) !important; }
        #login-card label[for="login-remember"] { color: var(--estudio-muted) !important; font-size: 0.72rem !important; text-transform: none !important; }
        #btn-login-unified,
        #btn-forgot-send,
        #btn-save-client-password,
        #btn-create-profile {
            position: relative !important;
            overflow: hidden !important;
            isolation: isolate;
            background: linear-gradient(95deg, #7C3AED 0%, #C026D3 52%, #E879F9 100%) !important;
            background-image: linear-gradient(95deg, #7C3AED 0%, #C026D3 52%, #E879F9 100%) !important;
            box-shadow:
                0 10px 28px rgba(192, 38, 211, 0.35),
                0 0 0 1px rgba(255, 255, 255, 0.08) inset !important;
            border-radius: 999px !important;
            font-weight: 700 !important;
            letter-spacing: 0.01em;
            min-height: 52px;
            font-size: 0.95rem !important;
            margin-top: 0.35rem;
            color: #fff !important;
            transition: transform .15s ease, filter .15s ease, box-shadow .15s ease !important;
        }
        #btn-login-unified > * { position: relative; z-index: 1; }
        #btn-login-unified::after {
            content: "";
            position: absolute;
            inset: -20% -40%;
            background: linear-gradient(105deg, transparent 36%, rgba(255,255,255,0.08) 42%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0.08) 58%, transparent 64%);
            transform: translateX(-55%) skewX(-18deg);
            animation: estudio-btn-shine 3.8s ease-in-out infinite;
            pointer-events: none;
            z-index: 0;
        }
        #btn-login-unified:hover,
        #btn-forgot-send:hover,
        #btn-save-client-password:hover,
        #btn-create-profile:hover {
            filter: brightness(1.07);
            box-shadow:
                0 14px 34px rgba(192, 38, 211, 0.42),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
        }
        #btn-login-unified:active { transform: scale(0.985); }
        #btn-login-unified.is-loading::after,
        #btn-login-unified:disabled::after { animation: none; opacity: 0; }
        @keyframes estudio-btn-shine {
            0%, 18% { transform: translateX(-55%) skewX(-18deg); opacity: 0; }
            28% { opacity: 1; }
            55% { transform: translateX(55%) skewX(-18deg); opacity: 1; }
            68%, 100% { transform: translateX(55%) skewX(-18deg); opacity: 0; }
        }
        #login-card #login-google-divider span { color: var(--estudio-muted) !important; }
        #login-card #login-google-divider .border-t,
        #login-card #login-google-divider .flex-grow {
            border-color: rgba(255, 255, 255, 0.1) !important;
            background: rgba(255, 255, 255, 0.1) !important;
        }
        #login-signup-row { color: var(--estudio-muted) !important; }
        #login-signup-row a { color: var(--estudio-brand-soft) !important; }
        .estudio-login-link {
            color: var(--estudio-brand-soft) !important;
        }
        #login-card .pass-toggle-btn {
            color: #94A3B8 !important;
        }
        #login-card .pass-toggle-btn:hover {
            color: #F8FAFC !important;
            background: rgba(255, 255, 255, 0.06) !important;
        }
        #forgot-feedback.is-ok { background: rgba(16,185,129,0.14); color: #6EE7B7; }
        #forgot-feedback.is-err { background: rgba(239,68,68,0.14); color: #FCA5A5; }
        #client-password-step h3,
        #client-profile-step h3,
        #client-password-step p,
        #client-profile-step p { color: var(--estudio-muted) !important; }
        #client-password-board-title,
        #client-board-title-ui { color: #F8FAFC !important; }
        #client-password-step button.self-start,
        #client-profile-step button.self-start { color: var(--estudio-muted) !important; }
        #client-password-step input,
        #client-profile-step input {
            background: rgba(255, 255, 255, 0.05) !important;
            border-color: rgba(255, 255, 255, 0.1) !important;
            color: #fff !important;
        }
        #global-toast {
            right: 1rem;
            bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
            left: auto;
            z-index: 9999;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            max-width: min(92vw, 22rem);
            padding: 0.75rem 1rem;
            border-radius: 0.75rem;
            font-size: 0.875rem;
            font-weight: 700;
            color: #fff;
            background: #7c3aed;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transform: translate3d(0, 120%, 0);
            transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
        }
        html.has-mobile-nav #global-toast {
            bottom: calc(6.25rem + env(safe-area-inset-bottom, 0px));
        }
        #global-toast.is-on {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translate3d(0, 0, 0);
        }
        .dash-hero {
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
            margin-bottom: 1.15rem;
        }
        .dash-hero-title-row {
            display: flex;
            align-items: flex-start;
            gap: 0.65rem;
            min-width: 0;
            width: 100%;
        }
        .dash-hero-copy {
            flex: 1 1 auto;
            min-width: 0;
        }
        .dash-hero-copy h2 {
            margin: 0;
            font-size: 1.0625rem;
            line-height: 1.3;
            font-weight: 700;
            color: #fff;
            letter-spacing: -0.01em;
            white-space: normal;
            overflow-wrap: anywhere;
            word-break: normal;
        }
        .dash-hero-copy p {
            margin: 0.3rem 0 0;
            font-size: 0.6875rem;
            line-height: 1.45;
            color: #64748b;
        }
        .dash-search-wrap {
            position: relative;
            width: 100%;
        }
        .dash-search-wrap > i,
        .dash-search-wrap > svg {
            position: absolute;
            left: 0.85rem;
            top: 50%;
            transform: translateY(-50%);
            width: 1rem;
            height: 1rem;
            color: #64748b;
            pointer-events: none;
        }
        #dash-board-search {
            width: 100%;
            min-height: 2.65rem;
            padding: 0.65rem 0.9rem 0.65rem 2.55rem;
            border-radius: 0.85rem;
            border: 1px solid rgba(255,255,255,0.08);
            background: rgba(255,255,255,0.04);
            color: #f1f5f9;
            font-size: 0.875rem !important;
            font-weight: 500;
            outline: none;
            transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
        }
        #dash-board-search::placeholder { color: #64748b; }
        #dash-board-search:focus {
            border-color: rgba(167,139,250,0.45);
            background: rgba(139,92,246,0.08);
            box-shadow: 0 0 0 3px rgba(139,92,246,0.12);
        }
        #header-dash-actions {
            display: none;
            margin-left: auto;
            align-items: center;
            gap: 0.35rem;
            flex: 1 1 auto;
            min-width: 0;
            max-width: 100%;
        }
        #header-dash-actions.is-on {
            display: inline-flex !important;
        }
        #header-dash-actions .hdr-btn {
            min-height: 2rem;
            padding: 0.4rem 0.65rem;
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 0.03em;
            text-transform: uppercase;
            border-radius: 0.55rem;
            white-space: nowrap;
            gap: 0.35rem;
        }
        #header-dash-actions #btn-studio-assistant.hdr-btn-assistant {
            white-space: normal;
            flex: 1 1 auto;
            min-width: 0;
        }
        #header-dash-actions .hdr-btn-label {
            display: inline;
            font-size: 0.625rem;
        }
        #btn-studio-assistant.hdr-btn-assistant,
        .hdr-btn-assistant {
            color: #f5f3ff;
            /* Degradê forte: índigo → violeta → magenta */
            background: linear-gradient(90deg, #3b0764 0%, #6d28d9 32%, #7c3aed 55%, #c026d3 100%) !important;
            border: 1px solid rgba(216,180,254,0.4) !important;
            box-shadow: 0 4px 18px rgba(124,58,237,0.4), inset 0 1px 0 rgba(255,255,255,0.12);
            gap: 0.45rem;
            padding-left: 0.35rem !important;
            padding-right: 0.7rem !important;
            max-width: min(100%, 100%);
            flex: 1 1 auto;
            min-width: 0;
            align-items: center;
        }
        #btn-studio-assistant.hdr-btn-assistant:hover,
        .hdr-btn-assistant:hover {
            filter: brightness(1.06);
            color: #fff;
        }
        /* No quadro (com logo): assistente full width — degradê padrão só se ainda sem tema do cliente */
        #app-header:not(.is-dash-aura-only) #header-dash-actions.is-on {
            flex: 1 1 auto;
            min-width: 0;
            max-width: 100%;
        }
        #app-header:not(.is-dash-aura-only) #btn-studio-assistant.hdr-btn-assistant:not(.is-board-theme) {
            width: 100%;
            max-width: none;
            border-radius: 0.85rem !important;
            background-image: linear-gradient(90deg, #3b0764 0%, #6d28d9 28%, #7c3aed 52%, #db2777 100%) !important;
            background-color: transparent !important;
            transition: background 0.45s ease, border-color 0.35s ease, box-shadow 0.35s ease;
        }
        /* No quadro: cor do cliente — background-image vence o degradê roxo */
        #app-header.is-board-aura #btn-studio-assistant.hdr-btn-assistant,
        #app-header:not(.is-dash-aura-only) #btn-studio-assistant.hdr-btn-assistant.is-board-theme,
        #btn-studio-assistant.hdr-btn-assistant.is-board-theme,
        #app-header.is-dash-aura-only.is-board-aura #btn-studio-assistant.hdr-btn-assistant {
            width: 100%;
            max-width: none;
            border-radius: 0.85rem !important;
            background-color: transparent !important;
            background-image: var(--aura-board-grad, linear-gradient(90deg, #b45309 0%, #ea580c 42%, #f59e0b 100%)) !important;
            border-color: rgba(255, 255, 255, 0.3) !important;
            box-shadow: 0 4px 18px rgba(234, 88, 12, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
        }
        #btn-studio-assistant.hdr-btn-assistant .hdr-btn-label,
        #btn-studio-assistant .aura-header-phrase {
            display: -webkit-box !important;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            letter-spacing: 0.01em;
            font-weight: 650;
            text-transform: none;
            font-size: 0.6875rem;
            line-height: 1.2;
            text-align: left;
            white-space: normal;
            overflow: hidden;
            text-overflow: clip;
            max-width: none;
            flex: 1 1 auto;
            min-width: 0;
            opacity: 1;
            transform: none;
        }
        #btn-studio-assistant .aura-header-phrase.is-entering {
            animation: aura-phrase-in 0.38s ease both;
        }
        @keyframes aura-phrase-in {
            from { opacity: 0; transform: translateY(5px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @media (prefers-reduced-motion: reduce) {
            #btn-studio-assistant .aura-header-phrase.is-entering { animation: none; }
        }
        #btn-studio-assistant .aura-lottie {
            position: relative;
            width: 1.85rem;
            height: 1.85rem;
            flex-shrink: 0;
            border-radius: 999px;
            overflow: hidden !important;
            background: #0d0c66;
            isolation: isolate;
            contain: paint;
            transform: translateZ(0);
            clip-path: circle(50% at 50% 50%);
            -webkit-clip-path: circle(50% at 50% 50%);
            -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 69%, transparent 70%);
            mask-image: radial-gradient(circle at 50% 50%, #000 69%, transparent 70%);
        }
        #btn-studio-assistant .aura-lottie svg,
        #btn-studio-assistant .aura-lottie > svg,
        #btn-studio-assistant .aura-lottie > div {
            width: 118% !important;
            height: 118% !important;
            max-width: none !important;
            max-height: none !important;
            display: block !important;
            position: absolute !important;
            left: 50% !important;
            top: 50% !important;
            transform: translate(-50%, -50%) scale(0.72) !important;
            transform-origin: center center !important;
            pointer-events: none;
        }
        #btn-studio-assistant.is-busy { opacity: 0.7; pointer-events: none; }
        #btn-studio-assistant.is-busy .aura-lottie { filter: grayscale(0.2); }
        @media (max-width: 639px) {
            #btn-studio-assistant.hdr-btn-assistant {
                max-width: none;
                padding-right: 0.55rem !important;
                min-height: 2.35rem;
            }
            #btn-studio-assistant .aura-header-phrase {
                font-size: 0.625rem;
                line-height: 1.2;
            }
            #btn-studio-assistant .aura-lottie {
                width: 1.65rem;
                height: 1.65rem;
            }
        }
        .aura-assistant-hero {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            min-width: 0;
        }
        .aura-assistant-hero__lottie {
            position: relative;
            width: 3.25rem;
            height: 3.25rem;
            flex-shrink: 0;
            border-radius: 1rem;
            overflow: hidden !important;
            background: #0d0c66;
            border: 1px solid rgba(13, 12, 102, 0.85);
            box-shadow: 0 8px 24px rgba(13, 12, 102, 0.35);
            isolation: isolate;
            contain: paint;
            clip-path: inset(0 round 1rem);
            -webkit-clip-path: inset(0 round 1rem);
        }
        .aura-assistant-hero__lottie svg,
        .aura-assistant-hero__lottie > svg,
        .aura-assistant-hero__lottie > div {
            width: 118% !important;
            height: 118% !important;
            display: block !important;
            position: absolute !important;
            left: 50% !important;
            top: 50% !important;
            transform: translate(-50%, -50%) scale(0.78) !important;
            transform-origin: center center !important;
            pointer-events: none;
        }
        /* botão “Pedir à Spark” e outros hosts .aura-lottie fora do header */
        .aura-lottie {
            position: relative;
            overflow: hidden !important;
            border-radius: 999px;
            isolation: isolate;
            contain: paint;
            clip-path: circle(50% at 50% 50%);
            -webkit-clip-path: circle(50% at 50% 50%);
            background: #0d0c66;
        }
        .aura-lottie svg,
        .aura-lottie > svg,
        .aura-lottie > div {
            width: 118% !important;
            height: 118% !important;
            display: block !important;
            position: absolute !important;
            left: 50% !important;
            top: 50% !important;
            transform: translate(-50%, -50%) scale(0.72) !important;
            transform-origin: center center !important;
            pointer-events: none;
        }
        #btn-studio-assistant-mic.is-recording {
            background: #dc2626 !important;
            animation: fx-pulse-ring 1.2s ease-in-out infinite;
        }

        /* —— Modal AURA —— */
        #studio-assistant-modal,
        #studio-assistant-modal .aura-modal-shell,
        #studio-assistant-modal .aura-modal-shell * {
            -webkit-user-select: none !important;
            user-select: none !important;
            -webkit-touch-callout: none !important;
        }
        #studio-assistant-modal #studio-assistant-text,
        #studio-assistant-modal .aura-draft-card input,
        #studio-assistant-modal .aura-draft-card textarea {
            -webkit-user-select: text !important;
            user-select: text !important;
            -webkit-touch-callout: default !important;
        }
        #studio-assistant-modal .aura-modal-shell {
            background:
                radial-gradient(ellipse 85% 50% at 0% 0%, rgba(109, 40, 217, 0.28), transparent 55%),
                radial-gradient(ellipse 60% 40% at 100% 0%, rgba(13, 12, 102, 0.45), transparent 50%),
                #15171c;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 1.25rem;
            width: 100%;
            max-width: 26rem;
            max-height: min(92dvh, 40rem);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
        }
        #studio-assistant-modal .aura-modal-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 1rem 1rem 0.85rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            flex-shrink: 0;
        }
        #studio-assistant-modal .aura-modal-body {
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
            padding: 0.9rem 1rem 1rem;
            overflow-y: auto;
            flex: 1 1 auto;
            min-height: 0;
            -webkit-overflow-scrolling: touch;
        }
        #studio-assistant-modal .aura-modal-intro {
            margin: 0;
            padding: 0.65rem 0.75rem;
            border-radius: 0.85rem;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.05);
            color: #94a3b8;
            font-size: 0.75rem;
            line-height: 1.45;
            min-height: auto;
            flex-shrink: 0;
            overflow: visible;
            white-space: normal;
            overflow-wrap: anywhere;
            word-break: break-word;
        }
        #studio-assistant-modal .aura-modal-intro.is-error { color: #fb7185; border-color: rgba(244, 63, 94, 0.25); }
        #studio-assistant-modal .aura-modal-intro.is-ok { color: #34d399; border-color: rgba(16, 185, 129, 0.25); }
        #studio-assistant-voice-meter {
            display: none;
            margin: 0;
            padding: 0.85rem 0.9rem;
            border-radius: 0.95rem;
            background: rgba(124, 58, 237, 0.12);
            border: 1px solid rgba(167, 139, 250, 0.35);
            color: #e9e3ff;
            text-align: center;
        }
        #studio-assistant-voice-meter.is-visible { display: block; }
        #studio-assistant-voice-meter .spark-meter-label {
            display: block;
            font-size: 0.625rem;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: #c4b5fd;
            margin-bottom: 0.55rem;
        }
        #studio-assistant-voice-meter .spark-meter-hint {
            display: block;
            margin-top: 0.55rem;
            font-size: 0.68rem;
            line-height: 1.35;
            color: #94a3b8;
        }
        #studio-assistant-voice-meter.is-locked .spark-meter-label {
            color: #6ee7b7;
        }
        #studio-assistant-voice-meter.is-locked .spark-meter-hint {
            color: #a7f3d0;
        }
        #studio-assistant-voice-meter .spark-meter-bars {
            display: flex;
            align-items: flex-end;
            justify-content: center;
            gap: 0.28rem;
            height: 2.35rem;
        }
        #studio-assistant-voice-meter .spark-meter-bar {
            width: 0.28rem;
            height: 18%;
            border-radius: 999px;
            background: linear-gradient(180deg, #c4b5fd 0%, #7c3aed 100%);
            opacity: 0.45;
            transform-origin: bottom center;
            transition: height 0.06s linear, opacity 0.08s linear;
        }
        #studio-assistant-voice-meter.is-active .spark-meter-bar {
            opacity: 1;
        }
                #studio-assistant-modal .aura-modal-intro.is-loading {
            display: flex;
            align-items: center;
            gap: 0.65rem;
            color: #ddd6fe;
            border-color: rgba(167, 139, 250, 0.35);
            background:
                linear-gradient(90deg, rgba(124, 58, 237, 0.16), rgba(168, 85, 247, 0.08), rgba(124, 58, 237, 0.16));
            background-size: 200% 100%;
            animation: aura-loading-shimmer 1.4s ease-in-out infinite;
        }
        #studio-assistant-modal .aura-loading-spinner {
            width: 1.05rem;
            height: 1.05rem;
            border-radius: 999px;
            border: 2px solid rgba(196, 181, 253, 0.25);
            border-top-color: #c4b5fd;
            animation: aura-spin 0.75s linear infinite;
            flex-shrink: 0;
        }
        #studio-assistant-modal .aura-loading-label {
            min-width: 0;
        }
        #studio-assistant-modal .aura-loading-dots::after {
            content: '';
            display: inline-block;
            width: 1.15em;
            text-align: left;
            animation: aura-dots 1.2s steps(4, end) infinite;
        }
        @keyframes aura-spin { to { transform: rotate(360deg); } }
        @keyframes aura-dots {
            0% { content: ''; }
            25% { content: '.'; }
            50% { content: '..'; }
            75%, 100% { content: '...'; }
        }
        @keyframes aura-loading-shimmer {
            0% { background-position: 100% 0; }
            100% { background-position: -100% 0; }
        }
        #studio-assistant-modal.is-loading #btn-studio-assistant-run,
        #studio-assistant-modal #btn-studio-assistant-run.is-loading {
            pointer-events: none;
            opacity: 0.95;
            background: linear-gradient(90deg, #4c1d95 0%, #6d28d9 45%, #86198f 100%);
        }
        #studio-assistant-modal.is-loading #btn-studio-assistant-mic:not(.is-recording),
        #studio-assistant-modal.is-loading #studio-assistant-text,
        #studio-assistant-modal.is-loading .aura-quick-chip,
        #studio-assistant-modal.is-loading .aura-draft-confirm:not(.is-loading) {
            pointer-events: none;
            opacity: 0.55;
        }
        #studio-assistant-modal .aura-draft-confirm.is-loading {
            pointer-events: none;
            opacity: 0.9;
        }
        #studio-assistant-modal.is-loading .aura-assistant-hero__lottie {
            animation: aura-hero-pulse 1.4s ease-out infinite;
        }
        @keyframes aura-hero-pulse {
            0% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.45); }
            70% { box-shadow: 0 0 0 12px rgba(167, 139, 250, 0); }
            100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); }
        }
        #studio-assistant-modal .aura-suggestions-block {
            display: flex;
            flex-direction: column;
            gap: 0.45rem;
            min-width: 0;
        }
        #studio-assistant-modal .aura-suggestions-label {
            margin: 0;
            font-size: 0.625rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #64748b;
        }
        #studio-assistant-modal #studio-assistant-suggestions {
            display: flex;
            flex-wrap: nowrap;
            gap: 0.45rem;
            overflow-x: auto;
            overflow-y: hidden;
            padding: 0.1rem 0 0.35rem;
            margin: 0 -0.15rem;
            padding-left: 0.15rem;
            padding-right: 0.15rem;
            scroll-snap-type: x proximity;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }
        #studio-assistant-modal #studio-assistant-suggestions::-webkit-scrollbar { display: none; }
        .aura-quick-chip {
            display: inline-flex;
            align-items: flex-start;
            flex: 0 0 auto;
            width: min(13.5rem, 72vw);
            max-width: 72vw;
            padding: 0.55rem 0.7rem;
            border-radius: 0.85rem;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.035);
            color: #e2e8f0;
            font-size: 0.6875rem;
            font-weight: 600;
            line-height: 1.35;
            text-align: left;
            cursor: pointer;
            scroll-snap-align: start;
            transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
        }
        .aura-quick-chip:hover,
        .aura-quick-chip:active {
            background: rgba(124, 58, 237, 0.18);
            border-color: rgba(167, 139, 250, 0.4);
            color: #fff;
            transform: translateY(-1px);
        }
        #studio-assistant-modal .aura-composer {
            display: flex;
            flex-direction: column;
            gap: 0.65rem;
            padding: 0.75rem;
            border-radius: 1rem;
            background: #0b0d10;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
        }
        #studio-assistant-modal #studio-assistant-text {
            width: 100%;
            min-height: 5.5rem;
            padding: 0.15rem 0.1rem;
            border: 0;
            border-radius: 0;
            background: transparent;
            color: #f8fafc;
            font-size: 0.875rem;
            line-height: 1.45;
            outline: none;
            resize: none;
        }
        #studio-assistant-modal #studio-assistant-text::placeholder {
            color: #64748b;
        }
        #studio-assistant-modal .aura-composer-actions {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        #studio-assistant-modal .aura-mic-wrap {
            position: relative;
            flex: 0 0 auto;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 0.4rem;
            min-width: 0;
            overflow: visible;
            padding-top: 0.45rem;
        }
        #studio-assistant-modal.is-voice-first .aura-mic-wrap {
            width: 100%;
            order: -1;
        }
        #studio-assistant-modal .aura-mic-track {
            --spark-slide: 0;
            --spark-slide-armed: 0;
            position: relative;
            width: 100%;
            min-height: 2.75rem;
            border-radius: 0.95rem;
            overflow: hidden;
            background: rgba(255, 255, 255, 0.035);
            border: 1px solid rgba(167, 139, 250, 0.18);
            isolation: isolate;
            padding: 0.28rem;
            box-sizing: border-box;
            transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
        }
        #studio-assistant-modal.is-voice-first .aura-mic-track {
            min-height: 3.15rem;
        }
        #studio-assistant-modal .aura-mic-track.is-holding {
            border-color: rgba(167, 139, 250, 0.42);
            box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.1);
        }
        #studio-assistant-modal .aura-mic-track.is-dragging {
            border-color: rgba(52, 211, 153, 0.38);
            background: rgba(16, 185, 129, 0.04);
        }
        #studio-assistant-modal .aura-mic-track.is-armed {
            border-color: rgba(52, 211, 153, 0.62);
            box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.16), inset 0 0 0 1px rgba(52, 211, 153, 0.12);
        }
        #studio-assistant-modal .aura-mic-track.is-locked {
            border-color: rgba(52, 211, 153, 0.5);
            background: rgba(16, 185, 129, 0.08);
            animation: spark-mic-lock-flash 0.55s ease-out;
            overflow: visible;
        }
        #studio-assistant-modal .aura-mic-track-fill {
            position: absolute;
            inset: 0 auto 0 0;
            width: calc(var(--spark-slide, 0) * 100%);
            border-radius: inherit;
            background: linear-gradient(
                90deg,
                rgba(124, 58, 237, 0.16) 0%,
                rgba(124, 58, 237, 0.22) 35%,
                rgba(16, 185, 129, calc(0.22 + var(--spark-slide, 0) * 0.38)) 100%
            );
            pointer-events: none;
            transition: none;
            z-index: 0;
            overflow: hidden;
        }
        #studio-assistant-modal .aura-mic-track-fill::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.22) 48%, transparent 66%);
            transform: translateX(-120%);
            opacity: 0;
        }
        #studio-assistant-modal .aura-mic-track.is-dragging .aura-mic-track-fill::after,
        #studio-assistant-modal .aura-mic-track.is-holding .aura-mic-track-fill::after {
            opacity: 1;
            animation: spark-mic-fill-sheen 1.05s ease-in-out infinite;
        }
        #studio-assistant-modal .aura-mic-track.is-locked .aura-mic-track-fill {
            width: 100% !important;
            background: linear-gradient(90deg, rgba(4, 120, 87, 0.35), rgba(16, 185, 129, 0.55));
            transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
        }
        #studio-assistant-modal .aura-mic-chevrons {
            position: absolute;
            right: 2.85rem;
            top: 50%;
            transform: translate3d(calc(var(--spark-slide, 0) * 6px), -50%, 0);
            display: none;
            gap: 0.06rem;
            color: rgba(196, 181, 253, 0.6);
            font-size: 1.05rem;
            font-weight: 800;
            letter-spacing: -0.1em;
            pointer-events: none;
            z-index: 1;
            opacity: calc(0.95 - var(--spark-slide, 0) * 1.05);
        }
        #studio-assistant-modal .aura-mic-track.is-holding .aura-mic-chevrons {
            display: inline-flex;
            animation: spark-mic-chevron-flow 1s linear infinite;
        }
        #studio-assistant-modal .aura-mic-track.is-armed .aura-mic-chevrons,
        #studio-assistant-modal .aura-mic-track.is-locked .aura-mic-chevrons {
            color: rgba(167, 243, 208, 0.95);
        }
        #studio-assistant-modal .aura-mic-lock-target {
            position: absolute;
            right: 0.38rem;
            top: 50%;
            transform: translateY(-50%) scale(calc(0.88 + var(--spark-slide, 0) * 0.28));
            width: 2rem;
            height: 2rem;
            border-radius: 999px;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(16, 185, 129, calc(0.1 + var(--spark-slide, 0) * 0.22));
            border: 1px solid rgba(52, 211, 153, calc(0.22 + var(--spark-slide, 0) * 0.4));
            color: #6ee7b7;
            pointer-events: none;
            z-index: 1;
            transition: background 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
            box-shadow: 0 0 0 calc(var(--spark-slide, 0) * 7px) rgba(16, 185, 129, calc(var(--spark-slide, 0) * 0.14));
        }
        #studio-assistant-modal .aura-mic-track.is-holding .aura-mic-lock-target {
            display: inline-flex;
            animation: spark-mic-lock-breathe 1.35s ease-in-out infinite;
        }
        #studio-assistant-modal .aura-mic-track.is-armed .aura-mic-lock-target {
            transform: translateY(-50%) scale(1.16);
            background: rgba(16, 185, 129, 0.32);
            box-shadow: 0 0 0 7px rgba(16, 185, 129, 0.14);
            animation: spark-mic-lock-ready 0.7s ease-in-out infinite;
            color: #ecfdf5;
        }
        #studio-assistant-modal .aura-mic-track.is-locked .aura-mic-lock-target {
            transform: translateY(-50%) scale(1.08);
            background: rgba(16, 185, 129, 0.35);
            box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.14);
            animation: spark-mic-lock-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
        }
        #studio-assistant-modal .aura-mic-lock-target i,
        #studio-assistant-modal .aura-mic-lock-target svg {
            width: 0.95rem;
            height: 0.95rem;
        }
        #studio-assistant-mic-lock-hint {
            display: none;
            align-items: center;
            justify-content: center;
            gap: 0.35rem;
            padding: 0.35rem 0.55rem;
            border-radius: 0.7rem;
            background: rgba(124, 58, 237, 0.14);
            border: 1px solid rgba(167, 139, 250, 0.28);
            color: #c4b5fd;
            font-size: 0.625rem;
            font-weight: 800;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            pointer-events: none;
            transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
        }
        #studio-assistant-mic-lock-hint.is-visible {
            display: inline-flex;
            animation: spark-mic-hint-nudge 1.5s ease-in-out infinite;
        }
        #studio-assistant-mic-lock-hint.is-armed {
            color: #bbf7d0;
            border-color: rgba(52, 211, 153, 0.35);
            background: rgba(16, 185, 129, 0.12);
            transform: translateX(0.2rem) scale(1.03);
            animation: none;
        }
        #studio-assistant-mic-lock-hint.is-locked {
            color: #bbf7d0;
            border-color: rgba(52, 211, 153, 0.4);
            background: rgba(16, 185, 129, 0.16);
            animation: none;
        }
        #studio-assistant-modal #btn-studio-assistant-mic {
            position: relative;
            z-index: 2;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            flex: 0 0 auto;
            width: 100%;
            min-width: 2.75rem;
            height: 2.75rem;
            padding: 0 0.85rem;
            border-radius: 0.85rem;
            border: 1px solid rgba(167, 139, 250, 0.35);
            background: rgba(124, 58, 237, 0.16);
            color: #ede9fe;
            font-size: 0.625rem;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            user-select: none;
            touch-action: none;
            cursor: pointer;
            will-change: transform, width;
            transition:
                width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.18s ease,
                background 0.18s ease,
                border-color 0.18s ease,
                color 0.18s ease,
                border-radius 0.22s ease;
        }
        /* Thumb deslizante — evita botão full-width cortando o texto ao arrastar */
        #studio-assistant-modal .aura-mic-track.is-holding #btn-studio-assistant-mic:not(.is-locked),
        #studio-assistant-modal .aura-mic-track.is-dragging #btn-studio-assistant-mic:not(.is-locked) {
            width: min(48%, 10.25rem);
            min-width: 7.35rem;
            border-radius: 0.8rem;
            box-shadow: 0 10px 22px rgba(220, 38, 38, 0.28), 0 2px 8px rgba(0, 0, 0, 0.25);
        }
        #studio-assistant-modal #btn-studio-assistant-mic.is-dragging {
            transition:
                width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.18s ease,
                background 0.18s ease,
                border-color 0.18s ease,
                color 0.18s ease,
                border-radius 0.22s ease;
            animation: none !important;
        }
        #studio-assistant-modal #btn-studio-assistant-mic.is-recording.is-dragging {
            animation: none !important;
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 55%, #b91c1c 100%) !important;
        }
        #studio-assistant-modal #btn-studio-assistant-mic.is-slide-armed {
            box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.55), 0 12px 26px rgba(16, 185, 129, 0.22);
            background: linear-gradient(135deg, #f87171 0%, #ef4444 40%, #059669 100%) !important;
            border-color: rgba(52, 211, 153, 0.45);
        }
        #studio-assistant-modal #btn-studio-assistant-mic.is-locked {
            width: 100% !important;
            min-width: 0;
            background: linear-gradient(90deg, #047857 0%, #059669 55%, #10b981 100%);
            border-color: transparent;
            color: #fff;
            box-shadow: 0 10px 24px rgba(16, 185, 129, 0.28);
            animation: spark-mic-btn-lock 0.52s cubic-bezier(0.22, 1, 0.36, 1);
        }
        @keyframes spark-mic-chevron-flow {
            0% { letter-spacing: -0.14em; opacity: 0.35; }
            50% { letter-spacing: -0.04em; opacity: 1; }
            100% { letter-spacing: -0.14em; opacity: 0.35; }
        }
        @keyframes spark-mic-fill-sheen {
            0% { transform: translateX(-120%); }
            100% { transform: translateX(140%); }
        }
        @keyframes spark-mic-hint-nudge {
            0%, 100% { transform: translateX(0); }
            50% { transform: translateX(0.28rem); }
        }
        @keyframes spark-mic-lock-breathe {
            0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.0); }
            50% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0.12); }
        }
        @keyframes spark-mic-lock-ready {
            0%, 100% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.1); }
            50% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0.2); }
        }
        @keyframes spark-mic-lock-pop {
            0% { transform: translateY(-50%) scale(0.85); }
            55% { transform: translateY(-50%) scale(1.2); }
            100% { transform: translateY(-50%) scale(1.08); }
        }
        @keyframes spark-mic-lock-flash {
            0% { filter: brightness(1.28); }
            100% { filter: brightness(1); }
        }
        @keyframes spark-mic-btn-lock {
            0% { transform: translate3d(12%, 0, 0) scale(0.94); border-radius: 0.8rem; }
            55% { transform: translate3d(-1.5%, 0, 0) scale(1.02); }
            100% { transform: translate3d(0, 0, 0) scale(1); border-radius: 0.85rem; }
        }
        @media (prefers-reduced-motion: reduce) {
            #studio-assistant-modal .aura-mic-track.is-holding .aura-mic-chevrons,
            #studio-assistant-modal .aura-mic-track.is-holding .aura-mic-lock-target,
            #studio-assistant-modal .aura-mic-track.is-armed .aura-mic-lock-target,
            #studio-assistant-modal .aura-mic-track.is-locked,
            #studio-assistant-modal .aura-mic-track.is-locked .aura-mic-lock-target,
            #studio-assistant-modal #btn-studio-assistant-mic.is-locked,
            #studio-assistant-mic-lock-hint.is-visible,
            #studio-assistant-modal .aura-mic-track.is-dragging .aura-mic-track-fill::after,
            #studio-assistant-modal .aura-mic-track.is-holding .aura-mic-track-fill::after {
                animation: none !important;
            }
        }
        #studio-assistant-modal #btn-studio-assistant-mic:hover {
            background: rgba(124, 58, 237, 0.28);
        }
        #studio-assistant-modal #btn-studio-assistant-run {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.45rem;
            flex: 1 1 auto;
            height: 2.75rem;
            padding: 0 1rem;
            border-radius: 0.85rem;
            border: 0;
            background: linear-gradient(90deg, #5b21b6 0%, #7c3aed 45%, #a21caf 100%);
            color: #fff;
            font-size: 0.6875rem;
            font-weight: 800;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
        }
        #btn-studio-assistant-tts {
            display: none !important;
        }
        #studio-assistant-modal #btn-studio-assistant-run:hover {
            filter: brightness(1.06);
        }
        #studio-assistant-modal #studio-assistant-result {
            border-radius: 1rem;
            border: 1px solid rgba(167, 139, 250, 0.22);
            background: rgba(91, 33, 182, 0.1);
            padding: 0.85rem 0.9rem;
        }
        #studio-assistant-modal .aura-result-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.5rem;
            margin-bottom: 0.45rem;
        }
        #studio-assistant-modal .aura-result-head p {
            margin: 0;
        }
        #btn-studio-assistant-tts {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2rem;
            height: 2rem;
            border-radius: 0.65rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.04);
            color: #c4b5fd;
            flex-shrink: 0;
        }
        #btn-studio-assistant-tts.is-muted {
            color: #64748b;
        }
        #btn-studio-assistant-tts.is-speaking {
            color: #6ee7b7;
            border-color: rgba(52, 211, 153, 0.35);
            background: rgba(16, 185, 129, 0.12);
            animation: spark-tts-pulse 1.2s ease-in-out infinite;
        }
        #btn-studio-assistant-tts i,
        #btn-studio-assistant-tts svg {
            width: 1rem;
            height: 1rem;
        }
        @keyframes spark-tts-pulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.06); opacity: 0.85; }
        }
        @media (prefers-reduced-motion: reduce) {
            #btn-studio-assistant-tts.is-speaking { animation: none; }
        }
        #studio-assistant-modal #studio-assistant-drafts {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            flex-shrink: 0;
            min-width: 0;
            max-width: 100%;
        }
        #studio-assistant-modal .aura-draft-card {
            border-radius: 1.1rem;
            border: 1px solid rgba(52, 211, 153, 0.22);
            background:
                radial-gradient(ellipse 80% 60% at 0% 0%, rgba(16, 185, 129, 0.16), transparent 55%),
                linear-gradient(180deg, rgba(21, 23, 28, 0.98), rgba(11, 13, 16, 0.96));
            padding: 0.95rem 1rem 1rem;
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
        }
        #studio-assistant-modal .aura-draft-card__head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 0.65rem;
            margin-bottom: 0.85rem;
        }
        #studio-assistant-modal .aura-draft-card__badge {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            font-size: 0.625rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #6ee7b7;
            background: rgba(16, 185, 129, 0.12);
            border: 1px solid rgba(52, 211, 153, 0.28);
            border-radius: 999px;
            padding: 0.28rem 0.55rem;
        }
        #studio-assistant-modal .aura-draft-status {
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-end;
            gap: 0.3rem;
            max-width: 58%;
        }
        #studio-assistant-modal .aura-draft-chip {
            font-size: 0.5625rem;
            font-weight: 800;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            border-radius: 999px;
            padding: 0.28rem 0.5rem;
            border: 1px solid transparent;
        }
        #studio-assistant-modal .aura-draft-chip.is-ok {
            color: #6ee7b7;
            background: rgba(16, 185, 129, 0.12);
            border-color: rgba(52, 211, 153, 0.28);
        }
        #studio-assistant-modal .aura-draft-chip.is-miss {
            color: #fcd34d;
            background: rgba(245, 158, 11, 0.12);
            border-color: rgba(245, 158, 11, 0.3);
        }
        #studio-assistant-modal .aura-draft-card label {
            display: block;
            font-size: 0.625rem;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: #94a3b8;
            margin-bottom: 0.3rem;
        }
        #studio-assistant-modal .aura-draft-card .aura-draft-field.is-miss label {
            color: #fbbf24;
        }
        #studio-assistant-modal .aura-draft-card .aura-draft-field.is-miss input,
        #studio-assistant-modal .aura-draft-card .aura-draft-field.is-miss select,
        #studio-assistant-modal .aura-draft-card .aura-draft-field.is-miss textarea {
            border-color: rgba(245, 158, 11, 0.45);
            box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.12);
        }
        #studio-assistant-modal .aura-draft-card {
            overflow: hidden;
            max-width: 100%;
            box-sizing: border-box;
        }
        #studio-assistant-modal .aura-draft-grid > *,
        #studio-assistant-modal .aura-draft-field,
        #studio-assistant-modal .aura-draft-client {
            min-width: 0;
            max-width: 100%;
        }
        #studio-assistant-modal .aura-draft-card input,
        #studio-assistant-modal .aura-draft-card select,
        #studio-assistant-modal .aura-draft-card textarea {
            width: 100%;
            max-width: 100%;
            min-width: 0;
            box-sizing: border-box;
            border-radius: 0.75rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: #0b0d10;
            color: #f8fafc;
            font-size: 0.875rem;
            padding: 0.65rem 0.75rem;
            outline: none;
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
        }
        #studio-assistant-modal .aura-draft-card input[type="date"],
        #studio-assistant-modal .aura-draft-card input[type="time"] {
            display: block;
            max-width: 100%;
            min-width: 0;
            -webkit-appearance: none;
            appearance: none;
        }
        #studio-assistant-modal .aura-draft-brief-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.5rem;
            margin-bottom: 0.35rem;
        }
        #studio-assistant-modal .aura-draft-brief-head label {
            margin: 0;
        }
        #studio-assistant-modal .aura-draft-ai-brief {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            flex-shrink: 0;
            border: 0;
            border-radius: 0.55rem;
            padding: 0.28rem 0.55rem;
            font-size: 0.5625rem;
            font-weight: 800;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            color: #ddd6fe;
            background: rgba(124, 58, 237, 0.22);
            cursor: pointer;
        }
        #studio-assistant-modal .aura-draft-ai-brief:disabled {
            opacity: 0.6;
            cursor: wait;
        }
        #studio-assistant-modal .aura-draft-card input:focus,
        #studio-assistant-modal .aura-draft-card select:focus,
        #studio-assistant-modal .aura-draft-card textarea:focus {
            border-color: rgba(52, 211, 153, 0.45);
            box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
        }
        #studio-assistant-modal .aura-draft-card textarea {
            min-height: 4.5rem;
            resize: vertical;
            line-height: 1.45;
        }
        #studio-assistant-modal .aura-draft-card .aura-draft-title-input {
            font-size: 1rem;
            font-weight: 800;
            letter-spacing: 0.02em;
            text-transform: uppercase;
        }
        #studio-assistant-modal .aura-draft-client {
            margin-bottom: 0.65rem;
            padding: 0.65rem 0.7rem;
            border-radius: 0.85rem;
            border: 1px solid rgba(167, 139, 250, 0.28);
            background: rgba(91, 33, 182, 0.12);
        }
        #studio-assistant-modal .aura-draft-client label {
            color: #c4b5fd;
        }
        #studio-assistant-modal .aura-draft-client select {
            border-color: rgba(167, 139, 250, 0.35);
            background: rgba(11, 13, 16, 0.85);
            font-weight: 700;
        }
        #studio-assistant-modal .aura-draft-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.6rem;
        }
        #studio-assistant-modal .aura-draft-actions {
            display: flex;
            gap: 0.5rem;
            margin-top: 0.85rem;
        }
        #studio-assistant-modal .aura-draft-actions button {
            flex: 1 1 auto;
            height: 2.75rem;
            border-radius: 0.85rem;
            font-size: 0.75rem;
            font-weight: 800;
        }
        #studio-assistant-modal .aura-draft-discard {
            flex: 0 0 auto;
            width: 2.75rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.04);
            color: #94a3b8;
        }
        #studio-assistant-modal .aura-draft-confirm {
            border: 0;
            background: linear-gradient(90deg, #059669, #10b981);
            color: #fff;
            box-shadow: 0 8px 22px rgba(16, 185, 129, 0.28);
        }
        #studio-assistant-modal .aura-draft-confirm:disabled {
            opacity: 0.45;
            box-shadow: none;
        }
        @media (max-width: 639px) {
            #studio-assistant-modal .aura-draft-grid {
                grid-template-columns: 1fr;
            }
        }
        @media (max-width: 639px) {
            #studio-assistant-modal {
                align-items: flex-end !important;
                padding: 0 !important;
            }
            #studio-assistant-modal .aura-modal-shell {
                max-width: none;
                max-height: min(92dvh, 100%);
                border-radius: 1.25rem 1.25rem 0 0;
                border-bottom: 0;
                padding-bottom: env(safe-area-inset-bottom, 0px);
                transform: translate3d(0, 110%, 0);
                opacity: 0.92;
                will-change: transform, opacity;
            }
            /* Enter animation only while opening; is-open holds the final sheet position. */
            #studio-assistant-modal.is-opening {
                animation: spark-backdrop-in 0.34s ease-out both;
            }
            #studio-assistant-modal.is-opening .aura-modal-shell {
                animation: spark-sheet-in 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
            }
            #studio-assistant-modal.is-open:not(.is-closing) .aura-modal-shell {
                transform: translate3d(0, 0, 0);
                opacity: 1;
            }
            #studio-assistant-modal.is-closing {
                animation: spark-backdrop-out 0.28s ease-in both;
                pointer-events: none;
            }
            #studio-assistant-modal.is-closing .aura-modal-shell {
                animation: spark-sheet-out 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
            }
            #studio-assistant-modal.is-opening .aura-assistant-hero__lottie {
                animation: spark-hero-pop 0.52s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
            }
            #studio-assistant-modal.is-opening .aura-suggestions-block,
            #studio-assistant-modal.is-opening .aura-composer {
                animation: spark-content-rise 0.48s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
            }
            @keyframes spark-backdrop-in {
                from { background-color: rgba(0, 0, 0, 0); backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px); }
                to { background-color: rgba(0, 0, 0, 0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
            }
            @keyframes spark-backdrop-out {
                from { background-color: rgba(0, 0, 0, 0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
                to { background-color: rgba(0, 0, 0, 0); backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px); }
            }
            @keyframes spark-sheet-in {
                0% { transform: translate3d(0, 110%, 0); opacity: 0.85; }
                72% { transform: translate3d(0, -1.4%, 0); opacity: 1; }
                100% { transform: translate3d(0, 0, 0); opacity: 1; }
            }
            @keyframes spark-sheet-out {
                from { transform: translate3d(0, 0, 0); opacity: 1; }
                to { transform: translate3d(0, 110%, 0); opacity: 0.9; }
            }
            @keyframes spark-hero-pop {
                0% { transform: scale(0.72); opacity: 0; }
                70% { transform: scale(1.06); opacity: 1; }
                100% { transform: scale(1); opacity: 1; }
            }
            @keyframes spark-content-rise {
                from { transform: translate3d(0, 18px, 0); opacity: 0; }
                to { transform: translate3d(0, 0, 0); opacity: 1; }
            }
            @media (prefers-reduced-motion: reduce) {
                #studio-assistant-modal .aura-modal-shell,
                #studio-assistant-modal.is-opening,
                #studio-assistant-modal.is-closing,
                #studio-assistant-modal.is-opening .aura-modal-shell,
                #studio-assistant-modal.is-closing .aura-modal-shell,
                #studio-assistant-modal.is-opening .aura-assistant-hero__lottie,
                #studio-assistant-modal.is-opening .aura-suggestions-block,
                #studio-assistant-modal.is-opening .aura-composer {
                    animation: none !important;
                    transform: none !important;
                    opacity: 1 !important;
                }
            }
            #studio-assistant-modal.is-voice-first .aura-composer-actions {
                flex-direction: column;
            }
            #studio-assistant-modal.is-voice-first #btn-studio-assistant-mic {
                height: 2.6rem;
                padding: 0 0.9rem;
                gap: 0.45rem;
                font-size: 0.72rem;
                background: linear-gradient(90deg, #5b21b6 0%, #7c3aed 50%, #a21caf 100%);
                border-color: transparent;
                color: #fff;
                box-shadow: 0 10px 28px rgba(124, 58, 237, 0.35);
            }
            #studio-assistant-modal.is-voice-first .aura-mic-track:not(.is-holding):not(.is-dragging) #btn-studio-assistant-mic:not(.is-locked) {
                height: 2.6rem;
            }
            #studio-assistant-modal.is-voice-first .aura-mic-track.is-holding #btn-studio-assistant-mic:not(.is-locked),
            #studio-assistant-modal.is-voice-first .aura-mic-track.is-dragging #btn-studio-assistant-mic:not(.is-locked) {
                height: 2.55rem;
            }
            #studio-assistant-modal.is-voice-first #btn-studio-assistant-mic.is-locked {
                background: linear-gradient(90deg, #047857 0%, #059669 55%, #10b981 100%);
                box-shadow: 0 10px 28px rgba(16, 185, 129, 0.32);
            }
            #studio-assistant-modal.is-voice-first #btn-studio-assistant-mic [data-assistant-mic-label] {
                display: inline;
            }
            #studio-assistant-modal.is-voice-first #btn-studio-assistant-run {
                width: 100%;
                background: rgba(255, 255, 255, 0.06);
                color: #cbd5e1;
            }
            #studio-assistant-modal.is-voice-first #studio-assistant-text {
                min-height: 3.25rem;
                font-size: 0.8125rem;
            }
            #studio-assistant-modal:not(.is-voice-first) #btn-studio-assistant-mic [data-assistant-mic-label] {
                display: none;
            }
            #studio-assistant-modal:not(.is-voice-first) #btn-studio-assistant-mic {
                width: 2.75rem;
                padding: 0;
            }
        }

        /* Planejador de cronograma (IA) */
        #chrono-planner-modal .cp-shell {
            background:
                radial-gradient(ellipse 90% 55% at 10% -10%, rgba(139, 92, 246, 0.22), transparent 55%),
                radial-gradient(ellipse 70% 45% at 100% 0%, rgba(217, 70, 239, 0.12), transparent 50%),
                #15171c;
            border: 1px solid rgba(255,255,255,0.1);
            box-shadow: 0 28px 80px rgba(0,0,0,0.55);
        }
        #chrono-planner-modal .cp-head {
            background: rgba(21, 23, 28, 0.92);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(255,255,255,0.06);
        }
        #chrono-planner-modal .cp-head-icon {
            width: 2.35rem;
            height: 2.35rem;
            border-radius: 0.75rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, rgba(139,92,246,0.95), rgba(217,70,239,0.85));
            box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
            color: #fff;
            flex-shrink: 0;
        }
        #chrono-planner-modal .cp-step {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.2rem 0.55rem;
            border-radius: 999px;
            background: rgba(139, 92, 246, 0.14);
            border: 1px solid rgba(167, 139, 250, 0.25);
            color: #c4b5fd;
            font-size: 0.5625rem;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }
        #chrono-planner-modal .cp-lead {
            color: #94a3b8;
            font-size: 0.75rem;
            line-height: 1.45;
            margin: 0 0 1rem;
        }
        #chrono-planner-modal .cp-base {
            border-radius: 1rem;
            padding: 0.85rem 0.95rem;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(15,15,20,0.65));
            border: 1px solid rgba(167, 139, 250, 0.22);
        }
        #chrono-planner-modal .cp-base.is-warn {
            background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(15,15,20,0.65));
            border-color: rgba(245, 158, 11, 0.35);
        }
        #chrono-planner-modal .cp-base-kicker {
            font-size: 0.5625rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #c4b5fd;
            margin-bottom: 0.35rem;
        }
        #chrono-planner-modal .cp-base.is-warn .cp-base-kicker { color: #fbbf24; }
        #chrono-planner-modal .cp-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.75rem;
        }
        #chrono-planner-modal .cp-field {
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
            min-width: 0;
        }
        #chrono-planner-modal .cp-field.is-full { grid-column: 1 / -1; }
        #chrono-planner-modal .cp-label {
            font-size: 0.5625rem;
            font-weight: 800;
            letter-spacing: 0.07em;
            text-transform: uppercase;
            color: #64748b;
        }
        #chrono-planner-modal .cp-input {
            width: 100%;
            height: 2.75rem;
            min-height: 2.75rem;
            max-height: 2.75rem;
            box-sizing: border-box;
            padding: 0 0.85rem;
            border-radius: 0.85rem;
            border: 1px solid rgba(255,255,255,0.1);
            background: rgba(11, 13, 16, 0.92);
            color: #f8fafc;
            font-size: 0.875rem;
            font-weight: 650;
            outline: none;
            line-height: 1.2;
            -webkit-appearance: none;
            appearance: none;
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
        }
        #chrono-planner-modal .cp-input:focus {
            border-color: rgba(167, 139, 250, 0.55);
            box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
        }
        #chrono-planner-modal input[type="month"].cp-input {
            color-scheme: dark;
        }
        #chrono-planner-modal input[type="number"].cp-input {
            text-align: center;
            font-variant-numeric: tabular-nums;
            font-size: 1.05rem;
            font-weight: 800;
        }
        #chrono-planner-modal .cp-hint {
            font-size: 0.625rem;
            color: #64748b;
            line-height: 1.35;
        }
        #chrono-planner-modal .cp-hint strong {
            color: #c4b5fd;
            font-weight: 700;
        }
        #chrono-planner-modal .cp-stat {
            margin-top: 0.85rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 0.75rem 0.9rem;
            border-radius: 0.9rem;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.06);
        }
        #chrono-planner-modal .cp-stat-label {
            font-size: 0.6875rem;
            color: #94a3b8;
        }
        #chrono-planner-modal .cp-stat-value {
            font-size: 1.125rem;
            font-weight: 800;
            color: #fff;
            font-variant-numeric: tabular-nums;
        }
        #chrono-planner-modal .cp-foot {
            background: rgba(21, 23, 28, 0.96);
            border-top: 1px solid rgba(255,255,255,0.06);
        }
        #chrono-planner-modal .cp-btn-ghost {
            flex: 1;
            min-height: 2.75rem;
            border-radius: 0.85rem;
            background: rgba(255,255,255,0.05);
            color: #cbd5e1;
            font-weight: 700;
            font-size: 0.8125rem;
        }
        #chrono-planner-modal .cp-btn-ghost:hover { background: rgba(255,255,255,0.08); }
        #chrono-planner-modal .cp-btn-primary {
            flex: 2;
            min-height: 2.75rem;
            border-radius: 0.85rem;
            background: linear-gradient(135deg, #7c3aed 0%, #c026d3 100%);
            color: #fff;
            font-weight: 800;
            font-size: 0.8125rem;
            box-shadow: 0 10px 28px rgba(124, 58, 237, 0.35);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.45rem;
        }
        #chrono-planner-modal .cp-btn-primary:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            box-shadow: none;
        }

        #btn-send-charge, #btn-send-report { display: none !important; }
        @media (max-width: 639px) {
            #dashboard-scroll > .max-w-6xl { padding: 1rem 1rem 1.5rem !important; }
            #dashboard-boards-list .col-span-full { padding: 1.5rem 1.25rem !important; }
            #dashboard-boards-list .col-span-full p { font-size: 0.8125rem; line-height: 1.5; }
        }
        #workspace-view { display: flex; flex-direction: column; flex: 1 1 0%; min-height: 0; overflow: hidden; }
        .kanban-ai-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 1.25rem;
            height: 1.125rem;
            padding: 0 0.35rem;
            font-size: 0.5625rem;
            font-weight: 900;
            letter-spacing: 0.08em;
            color: #c4b5fd;
            background: rgba(139, 92, 246, 0.18);
            border: 1px solid rgba(139, 92, 246, 0.32);
            border-radius: 0.25rem;
            line-height: 1;
            flex-shrink: 0;
        }
        .kanban-ai-refresh {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 1.125rem;
            height: 1.125rem;
            border-radius: 0.25rem;
            color: #a78bfa;
            background: rgba(139, 92, 246, 0.1);
            border: 1px solid rgba(139, 92, 246, 0.22);
            flex-shrink: 0;
            cursor: pointer;
            transition: background 0.15s, color 0.15s;
        }
        .kanban-ai-refresh:hover { background: rgba(139, 92, 246, 0.28); color: #ede9fe; }
        .kanban-ai-meta { font-size: 0.5625rem; color: #64748b; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .ia-art-preview-frame {
            /* Feed 1080×1350 — largura limitada pela altura alvo; height vem só do aspect-ratio */
            --ia-art-frame-h: min(72vh, 680px);
            width: min(100%, calc(var(--ia-art-frame-h) * 4 / 5));
            height: auto;
            max-height: none;
            aspect-ratio: 4 / 5;
            margin-left: auto;
            margin-right: auto;
            background: #0b0d10;
            border-radius: 1rem;
            overflow: hidden;
            border: none;
            outline: none;
            position: relative;
            touch-action: pan-y;
            cursor: grab;
            flex-shrink: 0;
        }
        .ia-art-preview-frame.is-swiping,
        .ia-art-preview-frame.is-animating { cursor: grabbing; touch-action: none; }
        .ia-art-preview-frame.is-panning-image {
            cursor: grabbing;
            touch-action: none;
        }
        .ia-art-preview-stage {
            position: absolute; inset: 0; z-index: 2;
            will-change: transform;
            transform: translate3d(0, 0, 0);
            backface-visibility: hidden;
            contain: layout paint;
        }
        .ia-art-preview-stage img#ia-art-preview-img {
            width: 100%; height: 100%; object-fit: contain; object-position: center; display: block;
            pointer-events: none; user-select: none; -webkit-user-drag: none;
        }
        .ia-art-preview-peek {
            position: absolute; inset: 0; z-index: 1;
            display: none; pointer-events: none;
            background: #0b0d10;
        }
        .ia-art-preview-frame.is-swiping .ia-art-preview-peek,
        .ia-art-preview-frame.is-animating .ia-art-preview-peek { display: block; }
        .ia-art-preview-peek img {
            width: 100%; height: 100%; object-fit: contain; object-position: center; display: block;
            opacity: 0.92;
        }
        .ia-art-preview-frame.is-swiping .ia-art-preview-stage {
            transition: none !important;
        }
        .ia-art-preview-frame.has-swipe-transition .ia-art-preview-stage {
            transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
        }
        .ia-art-preview-frame.ratio-story {
            --ia-art-frame-h: min(78vh, 760px);
            width: min(100%, calc(var(--ia-art-frame-h) * 9 / 16));
            height: auto;
            max-height: none;
            aspect-ratio: 9 / 16;
        }
        .ia-art-preview-frame.ratio-square {
            --ia-art-frame-h: min(62vh, 560px);
            width: min(100%, var(--ia-art-frame-h));
            height: auto;
            max-height: none;
            aspect-ratio: 1 / 1;
        }
        .ia-art-preview-frame.ratio-feed {
            --ia-art-frame-h: min(72vh, 680px);
            width: min(100%, calc(var(--ia-art-frame-h) * 4 / 5));
            height: auto;
            max-height: none;
            aspect-ratio: 4 / 5;
        }
        .ia-art-live-editor {
            position: absolute; inset: 0; z-index: 2; display: none;
            box-sizing: border-box; overflow: hidden; user-select: none;
            font-synthesis: none; background: transparent !important; padding: 0 !important;
            pointer-events: none;
        }
        .ia-art-live-editor.is-on { display: block; }
        .ia-art-live-editor.is-layers .ia-art-layer {
            position: absolute; box-sizing: border-box; pointer-events: auto;
            border: 1px solid transparent; border-radius: 6px;
            min-height: 1.2em; cursor: grab;
        }
        .ia-art-live-editor.is-layers .ia-art-layer:hover,
        .ia-art-live-editor.is-layers .ia-art-layer.is-active {
            border-color: rgba(167, 139, 250, 0.85);
            background: rgba(124, 58, 237, 0.08);
            box-shadow: 0 0 0 1px rgba(124,58,237,0.25);
        }
        .ia-art-live-editor.is-layers .ia-art-layer-grip {
            position: absolute; left: -2px; top: -2px; width: 18px; height: 18px;
            border-radius: 4px; background: rgba(124,58,237,0.95); color: #fff;
            font-size: 9px; line-height: 18px; text-align: center; cursor: grab;
            opacity: 0; z-index: 2;
        }
        .ia-art-live-editor.is-layers .ia-art-layer:hover .ia-art-layer-grip,
        .ia-art-live-editor.is-layers .ia-art-layer.is-active .ia-art-layer-grip { opacity: 1; }
        .ia-art-live-editor.is-layers .ia-art-layer.is-dragging { opacity: 0.92; cursor: grabbing; z-index: 5; }
        .ia-art-live-editor.is-layers .ia-art-layer .ia-art-layer-view {
            color: transparent; text-shadow: none;
            pointer-events: none; user-select: none;
            width: 100%; min-height: 1em;
        }
        .ia-art-live-editor.is-layers .ia-art-layer-img,
        .ia-art-live-editor.is-layers .ia-art-layer-logo {
            overflow: hidden; background: transparent;
            border: 1px dashed transparent !important;
            cursor: grab;
        }
        .ia-art-live-editor.is-layers .ia-art-layer-img:hover,
        .ia-art-live-editor.is-layers .ia-art-layer-logo:hover {
            border-color: rgba(167,139,250,0.85) !important;
            background: rgba(124,58,237,0.08);
        }
        .ia-art-live-editor.is-layers .ia-art-layer-img img,
        .ia-art-live-editor.is-layers .ia-art-layer-logo img {
            width: 100%; height: 100%; object-fit: contain; pointer-events: none;
            opacity: 0; /* PNG já tem logo/foto — evita duplicar */
        }
        .ia-art-live-editor.is-layers .ia-art-layer-img { object-fit: cover; }
        .ia-art-live-editor.is-layers .ia-art-layer-img img { object-fit: cover; }
        .ia-art-live-editor.is-layers .ia-art-layer-placeholder {
            display: flex; align-items: center; justify-content: center;
            width: 100%; height: 100%; color: rgba(255,255,255,0.75);
            font-size: 10px; font-weight: 800; letter-spacing: 0.04em;
        }
        .ia-art-live-hint { display: none !important; }
        #ia-art-preview-img { position: relative; z-index: 1; }
        #ia-art-icons-assemble {
            position: absolute; inset: 0; z-index: 8; display: none;
            flex-direction: column; justify-content: center; gap: 12px;
            padding: 16% 10% 20%; box-sizing: border-box;
            background: #F3EEE6;
            pointer-events: none;
            opacity: 1;
            transform: translate3d(0, 0, 0) scale(1);
            transition: opacity 0.42s ease, transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
        }
        #ia-art-icons-assemble.is-on { display: flex; }
        #ia-art-icons-assemble.is-revealing {
            opacity: 0;
            transform: translate3d(0, -10px) scale(1.02);
        }
        .ia-art-preview-frame.is-assembling #ia-art-preview-img,
        .ia-art-preview-frame.is-assembling #ia-art-live-editor {
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
        }
        .ia-art-preview-frame.is-assemble-reveal #ia-art-preview-stage {
            animation: ia-art-card-reveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
        }
        @keyframes ia-art-card-reveal {
            0% { opacity: 0; transform: translate3d(0, 18px) scale(0.96); }
            100% { opacity: 1; transform: translate3d(0, 0) scale(1); }
        }
        .ia-art-preview-frame.is-panning-image { cursor: grabbing !important; }
        .ia-art-preview-frame.has-card-image-pan:not(.is-panning-image) { cursor: grab; }
        #ia-art-icons-assemble .ia-art-assemble-label {
            position: absolute; top: 8%; left: 10%; right: 10%;
            font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
            color: rgba(21,34,56,0.45); display: flex; align-items: center; gap: 8px;
        }
        #ia-art-icons-assemble .ia-art-assemble-label .dot {
            width: 7px; height: 7px; border-radius: 999px; background: #7c3aed;
            animation: ia-art-assemble-pulse 1s ease-in-out infinite;
        }
        #ia-art-icons-assemble .ia-art-assemble-row {
            display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center;
            opacity: 0; transform: translateY(16px) scale(0.96);
        }
        #ia-art-icons-assemble .ia-art-assemble-row.is-in {
            animation: ia-art-assemble-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
        }
        #ia-art-icons-assemble .ia-art-assemble-icon {
            width: 42px; height: 42px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
            background: #1B4D3E; color: #fff; box-shadow: 0 4px 12px rgba(21,34,56,0.12);
            opacity: 0; transform: scale(0.5);
        }
        #ia-art-icons-assemble .ia-art-assemble-icon.is-on {
            opacity: 1; transform: scale(1);
            transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
        }
        #ia-art-icons-assemble .ia-art-assemble-icon.is-pop {
            animation: ia-art-assemble-pop 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) both;
        }
        #ia-art-icons-assemble .ia-art-assemble-icon img { width: 22px; height: 22px; }
        #ia-art-icons-assemble .ia-art-assemble-icon.is-skel {
            opacity: 1; transform: scale(1);
            background: linear-gradient(110deg, #cfd8e3 25%, #e8eef5 40%, #cfd8e3 55%);
            background-size: 200% 100%;
            animation: ia-art-assemble-shimmer 1.1s linear infinite;
        }
        #ia-art-icons-assemble .ia-art-assemble-lines { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
        #ia-art-icons-assemble .ia-art-assemble-title,
        #ia-art-icons-assemble .ia-art-assemble-desc {
            border-radius: 6px;
            opacity: 0;
            transform: translateX(8px);
            transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
        }
        #ia-art-icons-assemble .ia-art-assemble-title.is-skel,
        #ia-art-icons-assemble .ia-art-assemble-desc.is-skel {
            opacity: 1; transform: none;
            background: rgba(21,34,56,0.12);
            background-image: linear-gradient(110deg, rgba(21,34,56,0.1) 25%, rgba(21,34,56,0.18) 40%, rgba(21,34,56,0.1) 55%);
            background-size: 200% 100%;
            animation: ia-art-assemble-shimmer 1.1s linear infinite;
        }
        #ia-art-icons-assemble .ia-art-assemble-title.is-skel { height: 12px; width: 58%; }
        #ia-art-icons-assemble .ia-art-assemble-desc.is-skel { height: 8px; width: 88%; }
        #ia-art-icons-assemble .ia-art-assemble-title.is-on,
        #ia-art-icons-assemble .ia-art-assemble-desc.is-on {
            opacity: 1; transform: translateX(0);
            background: transparent; height: auto; width: auto;
            animation: none;
        }
        #ia-art-icons-assemble .ia-art-assemble-title.is-on {
            color: #152238; font-size: 12px; font-weight: 800; line-height: 1.2;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        #ia-art-icons-assemble .ia-art-assemble-desc.is-on {
            color: rgba(61,74,92,0.9); font-size: 10px; line-height: 1.3; font-weight: 500;
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
        }
        @keyframes ia-art-assemble-in {
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        @keyframes ia-art-assemble-pop {
            0% { transform: scale(0.4); opacity: 0; }
            70% { transform: scale(1.08); }
            100% { transform: scale(1); opacity: 1; }
        }
        @keyframes ia-art-assemble-pulse {
            0%, 100% { opacity: 0.45; transform: scale(1); }
            50% { opacity: 1; transform: scale(1.25); }
        }
        @keyframes ia-art-assemble-shimmer {
            0% { background-position: 120% 0; }
            100% { background-position: -40% 0; }
        }
        #ia-art-edit-items .ia-art-icon-item-enter {
            opacity: 0; transform: translateX(-10px);
            animation: ia-art-assemble-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
        }
        #ia-art-edit-items .ia-art-icon-item-enter .ia-art-item-icon-pop {
            animation: ia-art-assemble-pop 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) both;
        }
        .ia-art-studio-header {
            display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
            padding: 14px 18px; border-radius: 1rem; border: 1px solid rgba(255,255,255,0.08);
            background: linear-gradient(135deg, rgba(18,20,26,0.98) 0%, rgba(24,20,36,0.95) 100%);
        }
        .ia-art-studio-header h2 {
            font-size: 1.05rem; font-weight: 800; color: #fff; letter-spacing: -0.02em;
        }
        .ia-art-studio-section {
            border-radius: 1rem; border: 1px solid rgba(255,255,255,0.07);
            background: #12141a; overflow: hidden;
        }
        .ia-art-studio-section > h4 {
            display: flex; align-items: center; gap: 10px; margin: 0;
            padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.06);
            font-size: 10px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: #cbd5e1;
        }
        .ia-art-studio-section > h4 span {
            display: inline-flex; align-items: center; justify-content: center;
            width: 22px; height: 22px; border-radius: 999px; background: rgba(124,58,237,0.22);
            color: #c4b5fd; font-size: 11px; font-weight: 900;
        }
        .ia-art-studio-section .ia-art-studio-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
        .ia-art-studio-hint {
            font-size: 10px; line-height: 1.45; color: #64748b;
        }
        .ia-art-orient-chat {
            display: none;
            position: absolute;
            top: 8px;
            /* à esquerda da coluna de ferramentas (~176px) */
            right: calc(min(176px, 28vw) + 16px);
            width: min(320px, calc(100% - min(176px, 28vw) - 28px));
            z-index: 47;
            flex-direction: column;
            border-radius: 1rem;
            border: 1px solid rgba(139,92,246,0.4);
            background: rgba(12,14,20,0.98);
            backdrop-filter: blur(14px);
            box-shadow: 0 18px 40px rgba(0,0,0,0.45);
            overflow: hidden;
        }
        .ia-art-orient-chat.is-open {
            display: flex;
        }
        .ia-art-orient-chat-head {
            display: flex; align-items: center; justify-content: space-between; gap: 8px;
            padding: 11px 12px; border-bottom: 1px solid rgba(255,255,255,0.08);
            flex-shrink: 0;
        }
        .ia-art-orient-chat-head h4 {
            margin: 0; font-size: 10px; font-weight: 900; letter-spacing: 0.1em;
            text-transform: uppercase; color: #c4b5fd;
        }
        .ia-art-orient-chat-close {
            width: 28px; height: 28px; border-radius: 0.5rem;
            border: 1px solid rgba(255,255,255,0.1);
            background: rgba(255,255,255,0.04); color: #94a3b8;
            font-size: 16px; line-height: 1; cursor: pointer;
        }
        .ia-art-orient-chat-close:hover { color: #fff; border-color: rgba(139,92,246,0.4); }
        .ia-art-orient {
            display: flex; flex-direction: column; gap: 8px;
            padding: 12px;
        }
        .ia-art-orient-label {
            font-size: 9px; font-weight: 900; letter-spacing: 0.08em;
            text-transform: uppercase; color: #c4b5fd;
        }
        #ia-art-orient-text {
            width: 100%; min-height: 96px; resize: vertical;
            padding: 10px 12px; border-radius: 10px;
            background: #0b0d10; border: 1px solid rgba(255,255,255,0.1);
            color: #e2e8f0; font-size: 12px; line-height: 1.45;
        }
        #ia-art-orient-text:focus {
            outline: none; border-color: rgba(167,139,250,0.55);
            box-shadow: 0 0 0 2px rgba(124,58,237,0.2);
        }
        .ia-art-orient-actions {
            display: flex; gap: 8px; align-items: center;
        }
        .ia-art-orient-actions button {
            flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
            padding: 9px 10px; border-radius: 10px; font-size: 11px; font-weight: 700;
            border: 1px solid rgba(255,255,255,0.1); transition: background .15s, border-color .15s, color .15s;
        }
        #btn-ia-art-orient-mic {
            background: rgba(255,255,255,0.05); color: #e2e8f0;
        }
        #btn-ia-art-orient-mic:hover { background: rgba(56,189,248,0.12); border-color: rgba(56,189,248,0.35); color: #7dd3fc; }
        #btn-ia-art-orient-mic.is-recording {
            background: rgba(239,68,68,0.18); border-color: rgba(248,113,113,0.45); color: #fecaca;
            animation: iaArtOrientPulse 1.2s ease-in-out infinite;
        }
        #btn-ia-art-orient-send {
            background: rgba(124,58,237,0.28); border-color: rgba(167,139,250,0.4); color: #ede9fe;
        }
        #btn-ia-art-orient-send:hover { background: rgba(124,58,237,0.45); }
        #btn-ia-art-orient-send:disabled,
        #btn-ia-art-orient-mic:disabled { opacity: 0.55; cursor: not-allowed; }
        #ia-art-orient-status { min-height: 1.2em; }
        #ia-art-orient-status.is-ready { color: #67e8f9; }
        #ia-art-orient-status.is-error { color: #fca5a5; }
        #btn-ia-art-orient-open { color: #c4b5fd; }
        #btn-ia-art-orient-open:hover { background: rgba(124,58,237,0.28); border-color: rgba(167,139,250,0.4); }
        #btn-ia-art-orient-open.is-active {
            background: rgba(124,58,237,0.32);
            border-color: rgba(167,139,250,0.55);
            color: #ede9fe;
        }
        .ia-art-orient-meter {
            display: none;
            align-items: flex-end;
            justify-content: center;
            gap: 3px;
            height: 36px;
            padding: 6px 10px;
            border-radius: 10px;
            background: rgba(239,68,68,0.08);
            border: 1px solid rgba(248,113,113,0.22);
        }
        .ia-art-orient-meter.is-live {
            display: flex;
        }
        .ia-art-orient-meter-bar {
            flex: 1;
            max-width: 10px;
            height: 100%;
            border-radius: 999px;
            background: linear-gradient(180deg, #fda4af 0%, #f87171 45%, #c084fc 100%);
            transform-origin: bottom center;
            transform: scaleY(0.12);
            opacity: 0.55;
            transition: transform 0.05s linear, opacity 0.08s ease;
            will-change: transform;
        }
        .ia-art-orient-meter.is-live .ia-art-orient-meter-bar {
            opacity: 1;
            box-shadow: 0 0 8px rgba(248,113,113,0.25);
        }
        @keyframes iaArtOrientPulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(248,113,113,0.35); }
            50% { box-shadow: 0 0 0 6px rgba(248,113,113,0); }
        }
        @media (max-width: 1023px) {
            .ia-art-orient-chat {
                top: auto; bottom: 8px; left: 8px; right: 8px; width: auto;
            }
        }
        /* Brand DNA · organizado por seções */
        .ia-art-dna-studio {
            border-radius: 1.25rem; border: 1px solid rgba(255,255,255,0.08);
            background: linear-gradient(180deg, #14161c 0%, #101218 100%);
            overflow: hidden;
        }
        .ia-art-dna-studio-head {
            display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
            padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.06);
        }
        .ia-art-dna-studio-head h3 {
            font-size: 1.2rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.2;
        }
        .ia-art-dna-studio-head .ia-art-dna-head-meta {
            display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 6px;
        }
        .ia-art-dna-studio-head .ia-art-dna-url-row {
            display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1;
            font-size: 11px; color: #94a3b8;
        }
        .ia-art-dna-studio-head .ia-art-dna-url-row input {
            flex: 1; min-width: 140px; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,0.1);
            outline: none; padding: 2px 0; color: #cbd5e1;
        }
        .ia-art-dna-studio-head .ia-art-dna-url-row input:focus { border-color: #a78bfa; }
        .ia-art-dna-studio-actions { display: flex; flex-wrap: wrap; gap: 8px; shrink: 0; }
        .ia-art-dna-studio-actions button {
            padding: 8px 12px; border-radius: 0.65rem; font-size: 10px; font-weight: 700; cursor: pointer;
        }
        .ia-art-dna-studio-grid {
            display: grid; gap: 12px; padding: 14px 16px 18px;
        }
        @media (min-width: 960px) {
            .ia-art-dna-studio-grid { grid-template-columns: 1fr 1fr; }
            .ia-art-dna-span-2 { grid-column: 1 / -1; }
        }
        .ia-art-dna-card {
            border-radius: 1rem; border: 1px solid rgba(255,255,255,0.07);
            background: #0b0d10; padding: 14px 14px 16px;
            display: flex; flex-direction: column; gap: 10px;
        }
        .ia-art-dna-card h4 {
            font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
            color: #94a3b8; margin: 0; display: flex; align-items: center; gap: 8px;
        }
        .ia-art-dna-card h4 .ia-art-dna-h4-num {
            display: inline-flex; align-items: center; justify-content: center;
            width: 18px; height: 18px; border-radius: 999px;
            background: rgba(124,58,237,0.2); color: #c4b5fd; font-size: 9px; font-weight: 900;
        }
        .ia-art-dna-card .ia-art-dna-sublabel {
            font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
            color: #64748b; margin: 2px 0 0;
        }
        .ia-art-dna-card .ia-art-dna-hint {
            font-size: 10px; line-height: 1.4; color: #64748b; margin: 0;
        }
        .ia-art-dna-divider {
            height: 1px; background: rgba(255,255,255,0.06); margin: 2px 0;
        }
        .ia-art-dna-details {
            border-radius: 0.75rem; border: 1px solid rgba(255,255,255,0.06);
            background: rgba(255,255,255,0.02); overflow: hidden;
        }
        .ia-art-dna-details > summary {
            list-style: none; cursor: pointer; padding: 10px 12px;
            font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
            color: #94a3b8; display: flex; align-items: center; justify-content: space-between; gap: 8px;
            user-select: none;
        }
        .ia-art-dna-details > summary::-webkit-details-marker { display: none; }
        .ia-art-dna-details > summary::after {
            content: '+'; font-size: 14px; color: #64748b; font-weight: 400;
        }
        .ia-art-dna-details[open] > summary::after { content: '−'; }
        .ia-art-dna-details[open] > summary { border-bottom: 1px solid rgba(255,255,255,0.05); color: #e2e8f0; }
        .ia-art-dna-details-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
        .ia-art-dna-identity-grid {
            display: grid; gap: 8px; grid-template-columns: 1fr;
        }
        @media (min-width: 640px) {
            .ia-art-dna-identity-grid { grid-template-columns: repeat(3, 1fr); }
        }
        .ia-art-dna-identity-chip {
            padding: 10px 12px; border-radius: 0.75rem; background: #15171c; border: 1px solid rgba(255,255,255,0.05);
        }
        .ia-art-dna-identity-chip p:first-child {
            font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
            color: #64748b; margin: 0 0 4px;
        }
        .ia-art-dna-identity-chip p:last-child {
            font-size: 11px; color: #e2e8f0; line-height: 1.35; margin: 0;
        }
        .ia-art-dna-desc {
            width: 100%; min-height: 72px; max-height: 140px; resize: vertical;
            padding: 10px 12px; border-radius: 0.75rem; background: #15171c;
            border: 1px solid rgba(255,255,255,0.08); color: #cbd5e1; font-size: 12px; line-height: 1.5;
            outline: none;
        }
        .ia-art-dna-desc:focus { border-color: rgba(167,139,250,0.45); }
        .ia-art-dna-logo-sizes {
            display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 0;
        }
        .ia-art-dna-logo-sizes.is-2 { grid-template-columns: repeat(2, 1fr); min-width: 88px; }
        .ia-art-dna-logo-sizes.is-4 { grid-template-columns: repeat(2, 1fr); }
        @media (min-width: 420px) {
            .ia-art-dna-logo-sizes.is-4 { grid-template-columns: repeat(4, 1fr); }
        }
        .ia-art-dna-logo-size {
            padding: 8px 6px; border-radius: 0.7rem; border: 1px solid rgba(255,255,255,0.1);
            background: #15171c; color: #94a3b8; font-size: 10px; font-weight: 800;
            text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer;
        }
        .ia-art-dna-swipe-row .ia-art-dna-logo-size {
            padding: 6px 4px; font-size: 9px; border-radius: 0.45rem;
        }
        .ia-art-dna-logo-size:hover { border-color: rgba(139,92,246,0.35); color: #e2e8f0; }
        .ia-art-dna-logo-size.is-active {
            border-color: rgba(139,92,246,0.55); background: rgba(139,92,246,0.18); color: #ede9fe;
        }
        .ia-art-dna-logo-slider-row {
            display: flex; flex-direction: column; gap: 8px; margin-top: 2px;
        }
        .ia-art-dna-logo-slider-meta {
            display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
        }
        .ia-art-dna-logo-slider-meta strong {
            font-size: 12px; font-weight: 800; color: #ede9fe; font-variant-numeric: tabular-nums;
        }
        .ia-art-dna-logo-slider {
            -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
            border-radius: 999px; background: linear-gradient(90deg, rgba(139,92,246,0.25), rgba(139,92,246,0.55));
            outline: none; cursor: pointer;
        }
        .ia-art-dna-logo-slider::-webkit-slider-thumb {
            -webkit-appearance: none; appearance: none;
            width: 18px; height: 18px; border-radius: 50%;
            background: #a78bfa; border: 2px solid #ede9fe;
            box-shadow: 0 0 0 3px rgba(139,92,246,0.25); cursor: grab;
        }
        .ia-art-dna-logo-slider::-moz-range-thumb {
            width: 18px; height: 18px; border-radius: 50%;
            background: #a78bfa; border: 2px solid #ede9fe;
            box-shadow: 0 0 0 3px rgba(139,92,246,0.25); cursor: grab;
        }
        .ia-art-dna-logo-slider-ends {
            display: flex; justify-content: space-between;
            font-size: 9px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #64748b;
        }
        .ia-art-dna-logo-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
        .ia-art-dna-logo-thumb {
            width: 72px; height: 72px; border-radius: 0.85rem; border: 1px solid rgba(255,255,255,0.1);
            background: #15171c; display: flex; align-items: center; justify-content: center; overflow: hidden;
        }
        .ia-art-dna-logo-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
        .ia-art-dna-logo-add {
            width: 72px; height: 72px; border-radius: 0.85rem; border: 1px dashed rgba(255,255,255,0.18);
            display: flex; align-items: center; justify-content: center; color: #64748b; cursor: pointer;
            background: rgba(255,255,255,0.02);
        }
        .ia-art-dna-logo-add:hover { border-color: rgba(139,92,246,0.5); color: #c4b5fd; }
        .ia-art-dna-logo-preview {
            margin-top: 0; position: relative; aspect-ratio: 4 / 5; max-height: 280px; width: 100%;
            border-radius: 0.9rem; border: 1px solid rgba(255,255,255,0.1); overflow: hidden;
            background:
                linear-gradient(165deg, rgba(46,110,90,0.18) 0%, transparent 46%),
                var(--ia-dna-paper, #F3EEE6);
        }
        .ia-art-dna-logo-preview-label {
            position: absolute; top: 10px; left: 10px; z-index: 3;
            font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
            color: rgba(21,34,56,0.45);
        }
        .ia-art-dna-swipe-grid {
            display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 2px;
        }
        @media (min-width: 480px) {
            .ia-art-dna-swipe-grid { grid-template-columns: repeat(5, 1fr); }
        }
        .ia-art-dna-swipe-card {
            display: flex; flex-direction: column; gap: 2px; align-items: center;
            padding: 3px 2px 4px; border-radius: 0.45rem; border: 1px solid rgba(255,255,255,0.1);
            background: #15171c; cursor: pointer; text-align: center;
            transition: border-color 0.15s, background 0.15s;
        }
        .ia-art-dna-swipe-card:hover { border-color: rgba(139,92,246,0.4); }
        .ia-art-dna-swipe-card.is-active {
            border-color: rgba(139,92,246,0.7); background: rgba(139,92,246,0.18);
        }
        .ia-art-dna-swipe-thumb {
            width: 100%; aspect-ratio: 2.4 / 1; border-radius: 0.28rem;
            background: #f3eee6; display: flex; align-items: center; justify-content: center;
            overflow: hidden; color: #152238;
        }
        .ia-art-dna-swipe-thumb svg { width: 78%; height: 62%; }
        .ia-art-dna-swipe-card span {
            font-size: 7px; font-weight: 800; letter-spacing: 0.01em; text-transform: uppercase;
            color: #94a3b8; line-height: 1.05; max-width: 100%;
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px;
        }
        .ia-art-dna-swipe-card.is-active span { color: #ede9fe; }
        .ia-art-dna-swipe-controls {
            display: flex; flex-direction: column; gap: 6px; margin-top: 6px;
        }
        .ia-art-dna-swipe-row {
            display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end;
        }
        .ia-art-dna-swipe-icons {
            display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
        }
        .ia-art-dna-swipe-icons button {
            width: 26px; height: 26px; border-radius: 0.4rem; border: 1px solid rgba(255,255,255,0.1);
            background: #15171c; display: flex; align-items: center; justify-content: center;
            cursor: pointer; padding: 0;
        }
        .ia-art-dna-swipe-icons button.is-active {
            border-color: rgba(167,139,250,0.7); background: rgba(139,92,246,0.2);
        }
        .ia-art-dna-swipe-icons img { width: 16px; height: 16px; }
        /* Textura do card — UI compacta (2 modos) */
        .ia-art-dna-tex-modes {
            display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px;
        }
        .ia-art-dna-tex-mode {
            display: flex; align-items: center; justify-content: center; gap: 6px;
            padding: 8px 10px; border-radius: 0.65rem; border: 1px solid rgba(255,255,255,0.1);
            background: #15171c; color: #94a3b8; font-size: 10px; font-weight: 800;
            letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer;
            transition: border-color 0.15s, background 0.15s, color 0.15s;
        }
        .ia-art-dna-tex-mode:hover { border-color: rgba(139,92,246,0.4); color: #e2e8f0; }
        .ia-art-dna-tex-mode.is-active {
            border-color: rgba(139,92,246,0.65); background: rgba(139,92,246,0.16); color: #ede9fe;
        }
        .ia-art-dna-tex-grid {
            display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
        }
        @media (max-width: 420px) {
            .ia-art-dna-tex-grid { grid-template-columns: repeat(3, 1fr); }
        }
        .ia-art-dna-tex-card {
            display: flex; flex-direction: column; gap: 4px; align-items: center;
            padding: 6px 4px; border-radius: 0.55rem; border: 1px solid rgba(255,255,255,0.1);
            background: #15171c; cursor: pointer; text-align: center;
            transition: border-color 0.15s, background 0.15s;
        }
        .ia-art-dna-tex-card:hover { border-color: rgba(139,92,246,0.4); }
        .ia-art-dna-tex-card.is-active {
            border-color: rgba(139,92,246,0.65); background: rgba(139,92,246,0.16);
        }
        .ia-art-dna-tex-thumb {
            width: 100%; aspect-ratio: 1.6 / 1; border-radius: 0.35rem;
            background: #f3eee6; display: flex; align-items: center; justify-content: center;
            overflow: hidden;
        }
        .ia-art-dna-tex-thumb svg { width: 92%; height: 78%; }
        .ia-art-dna-tex-thumb img { width: 100%; height: 100%; object-fit: cover; }
        .ia-art-dna-tex-card span {
            font-size: 8px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase;
            color: #94a3b8; line-height: 1.1;
        }
        .ia-art-dna-tex-card.is-active span { color: #ede9fe; }
        .ia-art-dna-tex-import {
            display: flex; flex-direction: column; gap: 8px;
            padding: 10px; border-radius: 0.75rem; border: 1px dashed rgba(255,255,255,0.16);
            background: rgba(255,255,255,0.02);
        }
        .ia-art-dna-tex-import-preview {
            width: 100%; aspect-ratio: 16 / 9; border-radius: 0.55rem; overflow: hidden;
            background: #0b0d10; border: 1px solid rgba(255,255,255,0.08);
            display: flex; align-items: center; justify-content: center;
        }
        .ia-art-dna-tex-import-preview img { width: 100%; height: 100%; object-fit: cover; }
        .ia-art-dna-tex-import-preview span { font-size: 10px; color: #64748b; text-align: center; padding: 8px; }
        .ia-art-dna-pair {
            display: grid; gap: 12px; grid-template-columns: 1fr;
        }
        @media (min-width: 640px) {
            .ia-art-dna-pair { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
        }
        .ia-art-dna-logo-preview-swipe {
            position: absolute; left: 8%; bottom: 18%; z-index: 4;
            width: 42%; max-width: 140px; pointer-events: none; color: #152238;
            transform-origin: left bottom;
        }
        .ia-art-dna-logo-preview-swipe[data-side="right"] {
            left: auto; right: 8%; transform-origin: right bottom;
        }
        .ia-art-dna-logo-preview-swipe svg { width: 100%; height: auto; display: block; }
        .ia-art-dna-logo-preview-dots {
            position: absolute; right: 8%; bottom: 10%; z-index: 4;
            display: flex; align-items: center; gap: 4px; pointer-events: none;
        }
        .ia-art-dna-logo-preview-dots[data-side="left"] { left: 8%; right: auto; }
        .ia-art-dna-logo-preview-dots .dot {
            width: 5px; height: 5px; border-radius: 999px; background: rgba(21,34,56,0.22);
        }
        .ia-art-dna-logo-preview-dots .dot.is-active {
            width: 16px; background: #152238;
        }
        .ia-art-dna-layout-row {
            display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 6px;
        }
        .ia-art-dna-layout-btn {
            padding: 7px 6px; border-radius: 0.55rem; border: 1px solid rgba(255,255,255,0.1);
            background: #15171c; color: #94a3b8; font-size: 9px; font-weight: 800;
            text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer;
        }
        .ia-art-dna-layout-btn:hover { border-color: rgba(139,92,246,0.35); color: #e2e8f0; }
        .ia-art-dna-layout-btn.is-active {
            border-color: rgba(139,92,246,0.55); background: rgba(139,92,246,0.18); color: #ede9fe;
        }
        .ia-art-dna-preview-text {
            position: absolute; top: 12%; z-index: 2; width: 72%; max-width: 78%;
            left: 8%; text-align: left;
            padding: 4px 2px; border-radius: 0.4rem;
            pointer-events: none;
        }
        .ia-art-dna-logo-preview-eyebrow {
            margin: 0 0 6px;
            font-size: 8px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
            color: rgba(27,77,62,0.75);
        }
        .ia-art-dna-logo-preview-title {
            margin: 0;
            font-size: clamp(13px, 3.2vw, 18px); font-weight: 800; line-height: 1.05;
            color: #152238; letter-spacing: -0.02em;
        }
        .ia-art-dna-logo-preview-title em {
            font-style: normal; color: #1B4D3E;
        }
        .ia-art-dna-logo-preview-sub {
            margin: 8px 0 0;
            font-size: 9px; line-height: 1.35; color: rgba(61,74,92,0.85); font-weight: 500;
        }
        .ia-art-dna-logo-preview-pill {
            position: absolute; top: 48%; left: 8%; z-index: 2;
            width: 58%; height: 18px; border-radius: 999px; background: rgba(21,34,56,0.08);
            pointer-events: none;
        }
        .ia-art-dna-logo-preview-decor {
            position: absolute; inset: 0; z-index: 1;
            opacity: 0.55; pointer-events: none; overflow: hidden; border-radius: inherit;
        }
        .ia-art-dna-logo-preview-decor svg { width: 100%; height: 100%; display: block; object-fit: cover; }
        .ia-art-dna-logo-preview img.logo {
            position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%);
            width: var(--ia-logo-preview-w, 36%);
            height: var(--ia-logo-preview-h, 14%);
            max-width: 70%;
            max-height: 32%;
            object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
            z-index: 3;
        }
        .ia-art-dna-logo-preview.is-empty {
            display: flex; align-items: center; justify-content: center;
            background: #15171c;
        }
        .ia-art-dna-logo-preview.is-empty .ia-art-dna-preview-text,
        .ia-art-dna-logo-preview.is-empty .ia-art-dna-logo-preview-pill,
        .ia-art-dna-logo-preview.is-empty .ia-art-dna-logo-preview-decor { display: none; }
        .ia-art-dna-type-specimen {
            border-radius: 0.85rem; border: 1px solid rgba(255,255,255,0.08);
            background: #15171c; padding: 16px 14px; text-align: left;
        }
        .ia-art-dna-type-specimen .big {
            font-size: clamp(22px, 3.2vw, 34px); font-weight: 800; line-height: 1.05;
            color: #f8fafc; letter-spacing: -0.03em;
        }
        .ia-art-dna-type-specimen .small {
            margin-top: 8px; font-size: 12px; color: #94a3b8; font-weight: 500;
        }
        .ia-art-dna-modes {
            display: grid; gap: 10px; grid-template-columns: 1fr;
        }
        @media (min-width: 640px) {
            .ia-art-dna-modes { grid-template-columns: 1fr 1fr; }
        }
        .ia-art-dna-mode {
            border-radius: 0.9rem; border: 1px solid rgba(255,255,255,0.08);
            padding: 14px; min-height: 148px; display: flex; flex-direction: column; gap: 12px;
        }
        .ia-art-dna-mode.is-light { background: #f7f5f1; color: #152238; }
        .ia-art-dna-mode.is-dark { background: #152238; color: #f8fafc; }
        .ia-art-dna-mode .sample {
            font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1;
        }
        .ia-art-dna-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
        .ia-art-dna-swatch {
            width: 28px; height: 28px; border-radius: 999px; border: 2px solid rgba(0,0,0,0.08);
            box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15); cursor: pointer;
        }
        .ia-art-dna-mode.is-dark .ia-art-dna-swatch { border-color: rgba(255,255,255,0.18); }
        .ia-art-dna-tags { display: flex; flex-wrap: wrap; gap: 6px; }
        .ia-art-dna-tag {
            font-size: 10px; font-weight: 700; color: #cbd5e1;
            padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.06);
        }
        .ia-art-layer-row {
            display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center;
            padding: 8px 10px; border-radius: 0.65rem; border: 1px solid rgba(255,255,255,0.08);
            background: #0b0d10;
        }
        .ia-art-layer-row.is-hidden-layer { opacity: 0.45; }
        .ia-art-layer-row .ia-art-layer-meta { min-width: 0; }
        .ia-art-layer-row .ia-art-layer-name { font-size: 11px; font-weight: 700; color: #e2e8f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .ia-art-layer-row .ia-art-layer-type { font-size: 9px; color: #64748b; text-transform: uppercase; letter-spacing: 0.06em; }
        .ia-art-layer-row .ia-art-layer-actions { display: flex; gap: 4px; }
        .ia-art-layer-row .ia-art-layer-actions button {
            width: 26px; height: 26px; border-radius: 0.45rem; border: 1px solid rgba(255,255,255,0.1);
            background: rgba(255,255,255,0.04); color: #cbd5e1; font-size: 11px; font-weight: 800;
            display: inline-flex; align-items: center; justify-content: center;
        }
        .ia-art-layer-row .ia-art-layer-actions button:hover { background: rgba(124,58,237,0.25); color: #fff; }
        .ia-art-scale-row {
            display: flex; flex-direction: column; gap: 8px;
            padding: 10px 12px; border-radius: 0.75rem; border: 1px solid rgba(255,255,255,0.08); background: #0b0d10;
            transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
        }
        .ia-art-scale-row.is-active {
            border-color: rgba(167,139,250,0.45);
            background: rgba(124,58,237,0.12);
            box-shadow: 0 0 0 1px rgba(139,92,246,0.15);
        }
        .ia-art-scale-row .ia-art-scale-row-top {
            display: flex; align-items: center; justify-content: space-between; gap: 8px;
        }
        .ia-art-scale-row span.label { font-size: 10px; font-weight: 700; color: #94a3b8; }
        .ia-art-scale-row span.val { font-size: 11px; font-weight: 800; color: #c4b5fd; min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; }
        .ia-art-scale-slider {
            -webkit-appearance: none; appearance: none;
            width: 100%; height: 8px; border-radius: 999px;
            background: rgba(255,255,255,0.1);
            outline: none; cursor: pointer;
            border: 1px solid rgba(255,255,255,0.08);
        }
        .ia-art-scale-slider::-webkit-slider-runnable-track {
            height: 8px; border-radius: 999px;
            background: linear-gradient(90deg, rgba(124,58,237,0.35), rgba(217,70,239,0.45));
        }
        .ia-art-scale-slider::-webkit-slider-thumb {
            -webkit-appearance: none; appearance: none;
            width: 18px; height: 18px; border-radius: 50%;
            background: linear-gradient(145deg, #c4b5fd, #a78bfa);
            border: 2px solid #1e1035;
            box-shadow: 0 2px 8px rgba(124,58,237,0.45);
            cursor: grab;
            margin-top: -5px;
        }
        .ia-art-scale-slider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.08); }
        .ia-art-scale-slider::-moz-range-thumb {
            width: 18px; height: 18px; border-radius: 50%;
            background: linear-gradient(145deg, #c4b5fd, #a78bfa);
            border: 2px solid #1e1035;
            box-shadow: 0 2px 8px rgba(124,58,237,0.45);
            cursor: grab;
        }
        .ia-art-scale-slider::-moz-range-track {
            height: 8px; border-radius: 999px; background: linear-gradient(90deg, rgba(124,58,237,0.35), rgba(217,70,239,0.45));
        }
        .ia-art-text-scale-drawer {
            position: absolute; top: 52px; left: 12px; bottom: 12px;
            width: min(320px, calc(100% - 24px));
            z-index: 46; display: flex; flex-direction: column; gap: 0;
            border-radius: 1rem; border: 1px solid rgba(139,92,246,0.35);
            background: rgba(12,14,20,0.97); backdrop-filter: blur(12px);
            box-shadow: 0 18px 40px rgba(0,0,0,0.45);
            transform: translateX(calc(-100% - 24px));
            opacity: 0; pointer-events: none;
            transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
            overflow: hidden;
        }
        .ia-art-text-scale-drawer.is-open {
            transform: translateX(0);
            opacity: 1;
            pointer-events: auto;
        }
        .ia-art-text-scale-drawer-head {
            display: flex; align-items: center; justify-content: space-between; gap: 8px;
            padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.08);
        }
        .ia-art-text-scale-drawer-head h4 {
            margin: 0; font-size: 10px; font-weight: 900; letter-spacing: 0.1em;
            text-transform: uppercase; color: #c4b5fd;
        }
        .ia-art-text-scale-drawer-body {
            padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px;
            flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
        }
        .ia-art-text-scale-drawer-close {
            width: 28px; height: 28px; border-radius: 0.5rem; border: 1px solid rgba(255,255,255,0.1);
            background: rgba(255,255,255,0.04); color: #94a3b8; font-size: 16px; line-height: 1; cursor: pointer;
        }
        .ia-art-text-scale-drawer-close:hover { color: #fff; border-color: rgba(139,92,246,0.4); }
        /* Toolbar antiga (só label de tamanho) — desativada; nav/export ficam visíveis via JS */
        .ia-art-preview-toolbar { display: none !important; }
        #ia-art-carousel-swipe-hint {
            display: none !important;
        }
        #ia-art-preview-size-chip {
            display: none !important;
            margin: 0.4rem auto 0;
            padding: 0.22rem 0.65rem;
            border-radius: 999px;
            border: 1px solid rgba(255,255,255,0.1);
            background: rgba(15,17,22,0.92);
            color: #a5b4fc;
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 0.05em;
            font-variant-numeric: tabular-nums;
            line-height: 1.2;
        }
        #ia-art-create-workspace.is-studio-mode #ia-art-preview-size-chip {
            display: none !important;
        }
        .ia-art-preview-row {
            flex: 1 1 0%;
            align-self: stretch;
            min-height: 0;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
        }
        .ia-art-preview-row > #ia-art-output {
            flex: 0 1 auto;
            min-width: 0;
            min-height: 0;
            height: auto;
            max-height: 100%;
            width: auto;
            max-width: 100%;
            align-self: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        .ia-art-preview-row > .ia-art-creative-tools {
            align-self: center;
        }
        .ia-art-creative-tools {
            display: none;
            flex-direction: column;
            gap: 8px;
            width: min(176px, 28vw);
            flex-shrink: 0;
            padding: 2px 0 8px;
            max-height: 100%;
            overflow-y: auto;
            overscroll-behavior: contain;
        }
        #ia-art-create-workspace.is-studio-mode .ia-art-creative-tools {
            display: flex;
        }
        .ia-art-creative-tools-label {
            font-size: 9px;
            font-weight: 900;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: #94a3b8;
            padding: 0 2px;
        }
        .ia-art-creative-tools button {
            width: 100%;
            display: inline-flex;
            align-items: center;
            justify-content: flex-start;
            gap: 8px;
            padding: 10px 12px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 700;
            line-height: 1.25;
            text-align: left;
            border: 1px solid rgba(255,255,255,0.1);
            background: rgba(255,255,255,0.05);
            color: #e2e8f0;
            transition: background .15s, border-color .15s, color .15s;
        }
        .ia-art-creative-tools button:hover {
            background: rgba(255,255,255,0.09);
            border-color: rgba(255,255,255,0.18);
        }
        .ia-art-creative-tools button.is-active {
            background: rgba(124,58,237,0.25);
            border-color: rgba(167,139,250,0.5);
            color: #ddd6fe;
        }
        #btn-ia-art-layout-icon-list { color: #ddd6fe; }
        #btn-ia-art-layout-icon-list:hover { background: rgba(124,58,237,0.28); border-color: rgba(167,139,250,0.4); }
        #btn-ia-art-regen-cover { color: #ddd6fe; }
        #btn-ia-art-regen-cover:hover { background: rgba(124,58,237,0.28); border-color: rgba(167,139,250,0.4); }
        #btn-ia-art-harmonize-cover { color: #a7f3d0; }
        #btn-ia-art-harmonize-cover:hover { background: rgba(16,185,129,0.18); border-color: rgba(52,211,153,0.35); }
        #btn-ia-art-improve-copy { color: #fde68a; }
        #btn-ia-art-improve-copy:hover { background: rgba(217,119,6,0.18); border-color: rgba(251,191,36,0.35); }
        @media (max-width: 1023px) {
            .ia-art-preview-row {
                flex-direction: column;
                align-items: stretch;
            }
            .ia-art-creative-tools {
                width: 100%;
                flex-direction: row;
                flex-wrap: wrap;
                max-height: none;
            }
            .ia-art-creative-tools-label { width: 100%; }
            .ia-art-creative-tools button {
                flex: 1 1 calc(50% - 4px);
                justify-content: center;
            }
        }
        .ia-art-preview-hint {
            font-size: 10px; color: #64748b; font-weight: 600;
        }
        #ia-art-preview-panel { position: relative; }
        #ia-art-workspace-grid {
            align-items: stretch;
            gap: 1rem;
        }
        @media (min-width: 1024px) {
            #ia-art-workspace-grid {
                grid-template-columns: minmax(440px, 560px) minmax(0, 1fr);
                gap: 1rem;
            }
        }
        #ia-art-left-column {
            min-width: 0;
        }
        #ia-art-preview-panel {
            min-width: 0;
        }
        .ia-art-layout-popover {
            position: fixed; left: 50%; top: 50%;
            transform: translate(-50%, -50%);
            width: min(92vw, 360px); max-height: min(70vh, 520px);
            z-index: 420; display: none; flex-direction: column;
            border-radius: 1rem; border: 1px solid rgba(139,92,246,0.35);
            background: rgba(12,14,20,0.97); backdrop-filter: blur(10px);
            box-shadow: 0 18px 40px rgba(0,0,0,0.45);
            overflow: hidden;
            touch-action: none;
            will-change: left, top;
        }
        .ia-art-layout-popover.is-open { display: flex; }
        .ia-art-layout-popover.is-dragged,
        .ia-art-layout-popover.is-dragging {
            transform: none !important;
        }
        .ia-art-layout-popover-head {
            display: flex; align-items: center; justify-content: space-between; gap: 8px;
            padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.08);
            cursor: grab; user-select: none; -webkit-user-select: none;
            touch-action: none;
        }
        .ia-art-layout-popover-head:active,
        .ia-art-layout-popover.is-dragging .ia-art-layout-popover-head {
            cursor: grabbing;
        }
        .ia-art-layout-popover.is-dragging {
            box-shadow: 0 22px 48px rgba(0,0,0,0.55);
            opacity: 0.98;
        }
        .ia-art-layout-popover-head h4 {
            margin: 0; font-size: 10px; font-weight: 900; letter-spacing: 0.1em;
            text-transform: uppercase; color: #c4b5fd;
            display: flex; align-items: center; gap: 6px; pointer-events: none;
        }
        .ia-art-layout-popover-head h4::before {
            content: '⠿'; font-size: 12px; color: rgba(196,181,253,0.55); letter-spacing: 0;
        }
        .ia-art-layout-popover-body {
            padding: 10px 12px 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
            overscroll-behavior: contain;
        }
        .ia-art-layout-popover-close {
            width: 28px; height: 28px; border-radius: 0.5rem; border: 1px solid rgba(255,255,255,0.1);
            background: rgba(255,255,255,0.04); color: #94a3b8; font-size: 16px; line-height: 1; cursor: pointer;
            flex-shrink: 0;
        }
        .ia-art-layout-popover-close:hover { color: #fff; border-color: rgba(139,92,246,0.4); }
        #ia-art-create-workspace.is-studio-mode #ia-art-brief-panel.is-collapsed {
            display: none;
        }
        #ia-art-create-workspace.is-studio-mode #ia-art-workspace-grid {
            grid-template-columns: minmax(440px, 540px) minmax(0, 1fr);
        }
        /* (sizing do frame está em #workspace-ia-art / is-studio-mode mais abaixo — altura via aspect-ratio) */
        #ia-art-create-workspace.is-studio-mode #ia-art-preview-panel {
            position: sticky; top: 0; align-self: start;
        }
        #ia-art-create-workspace.is-studio-mode .ia-art-live-editor.is-layers .ia-art-layer-logo,
        #ia-art-create-workspace.is-studio-mode .ia-art-live-editor.is-layers .ia-art-layer-img {
            border: 1px dashed rgba(167,139,250,0.45) !important;
            background: rgba(124,58,237,0.06);
        }
        #ia-art-create-workspace.is-studio-mode .ia-art-live-editor.is-layers .ia-art-layer-logo::after,
        #ia-art-create-workspace.is-studio-mode .ia-art-live-editor.is-layers .ia-art-layer-img::after {
            content: attr(data-layer-label);
            position: absolute; bottom: 2px; right: 4px;
            font-size: 8px; font-weight: 800; letter-spacing: 0.06em;
            text-transform: uppercase; color: rgba(196,181,253,0.9);
            pointer-events: none;
        }

        /* —— IA Arte · create workspace polish —— */
        #workspace-ia-art {
            background:
                radial-gradient(ellipse 80% 50% at 10% -10%, rgba(124, 58, 237, 0.14), transparent 55%),
                radial-gradient(ellipse 60% 40% at 90% 0%, rgba(217, 70, 239, 0.08), transparent 50%),
                #0b0d10;
            display: flex;
            flex-direction: column;
            flex: 1 1 0%;
            min-height: 0;
            height: 100%;
            overflow: hidden !important;
            padding: 0.75rem 1rem 0.75rem !important;
        }
        #workspace-ia-art > .ia-art-shell {
            flex: 1 1 0%;
            min-height: 0;
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 0.65rem;
            overflow: hidden;
            padding-bottom: 0 !important;
        }
        /* —— Fluxo Studio hub (inspirado em studio de IA) —— */
        #fluxo-studio-hub {
            flex: 1 1 0%;
            min-height: 0;
            overflow-x: hidden;
            overflow-y: auto;
            overscroll-behavior: contain;
            padding: 0.25rem 0.15rem 1.5rem;
        }
        #fluxo-studio-hub.hidden { display: none !important; }
        .fs-hub-greet {
            margin: 0.35rem 0 1.35rem;
        }
        .fs-hub-greet h2 {
            margin: 0;
            font-size: clamp(1.55rem, 3.2vw, 2.15rem);
            font-weight: 800;
            letter-spacing: -0.03em;
            color: #fff;
            line-height: 1.15;
        }
        .fs-hub-greet p {
            margin: 0.35rem 0 0;
            font-size: 0.95rem;
            color: #94a3b8;
            font-weight: 500;
        }
        .fs-hub-section-label {
            margin: 0 0 0.75rem;
            font-size: 11px;
            font-weight: 900;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: #64748b;
        }
        .fs-hub-tools {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
            gap: 0.7rem;
            margin-bottom: 1.75rem;
        }
        .fs-hub-tool {
            text-align: left;
            border-radius: 1rem;
            border: 1px solid rgba(255,255,255,0.07);
            background: linear-gradient(165deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
            padding: 1rem 1rem 0.95rem;
            color: #e2e8f0;
            transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
            cursor: pointer;
            min-height: 118px;
            display: flex;
            flex-direction: column;
            gap: 0.45rem;
            position: relative;
        }
        .fs-hub-tool:hover {
            border-color: rgba(139,92,246,0.45);
            background: linear-gradient(165deg, rgba(139,92,246,0.12), rgba(255,255,255,0.02));
            transform: translateY(-1px);
        }
        .fs-hub-tool-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.5rem;
        }
        .fs-hub-tool-ico {
            width: 2.1rem;
            height: 2.1rem;
            border-radius: 0.65rem;
            display: grid;
            place-items: center;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.08);
            flex-shrink: 0;
        }
        .fs-hub-tool-ico i { width: 1.05rem; height: 1.05rem; color: #c4b5fd; }
        .fs-hub-tool-arrow {
            opacity: 0;
            transform: translateX(-4px);
            transition: opacity 0.15s ease, transform 0.15s ease;
            color: #a78bfa;
        }
        .fs-hub-tool:hover .fs-hub-tool-arrow {
            opacity: 1;
            transform: translateX(0);
        }
        .fs-hub-tool h3 {
            margin: 0;
            font-size: 0.92rem;
            font-weight: 800;
            color: #fff;
            letter-spacing: -0.02em;
        }
        .fs-hub-tool p {
            margin: 0;
            font-size: 0.72rem;
            line-height: 1.35;
            color: #94a3b8;
        }
        .fs-hub-styles {
            display: flex;
            gap: 0.75rem;
            overflow-x: auto;
            padding-bottom: 0.5rem;
            scroll-snap-type: x mandatory;
        }
        .fs-hub-style {
            flex: 0 0 auto;
            width: 168px;
            scroll-snap-align: start;
            border: 0;
            padding: 0;
            background: transparent;
            cursor: pointer;
            text-align: left;
        }
        .fs-hub-style-thumb {
            width: 168px;
            height: 168px;
            border-radius: 1rem;
            border: 1px solid rgba(255,255,255,0.08);
            overflow: hidden;
            position: relative;
            background: #111318;
            transition: border-color 0.18s ease, transform 0.18s ease;
        }
        .fs-hub-style:hover .fs-hub-style-thumb {
            border-color: rgba(139,92,246,0.5);
            transform: translateY(-2px);
        }
        .fs-hub-style-thumb span {
            position: absolute;
            inset: 0;
            display: grid;
            place-items: center;
            font-size: 2rem;
            opacity: 0.9;
        }
        .fs-hub-style strong {
            display: block;
            margin-top: 0.45rem;
            font-size: 0.72rem;
            font-weight: 700;
            color: #cbd5e1;
            line-height: 1.25;
        }
        #fluxo-studio-tool {
            flex: 1 1 0%;
            min-height: 0;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        #fluxo-studio-tool.hidden { display: none !important; }
        .fs-tool-head {
            display: flex;
            align-items: center;
            gap: 0.65rem;
            margin-bottom: 0.85rem;
            flex-shrink: 0;
        }
        .fs-tool-back {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.45rem 0.7rem;
            border-radius: 0.7rem;
            border: 1px solid rgba(255,255,255,0.08);
            background: rgba(255,255,255,0.04);
            color: #cbd5e1;
            font-size: 11px;
            font-weight: 700;
            cursor: pointer;
        }
        .fs-tool-back:hover { background: rgba(139,92,246,0.15); color: #fff; }
        .fs-tool-head h3 {
            margin: 0;
            font-size: 1.05rem;
            font-weight: 800;
            color: #fff;
            letter-spacing: -0.02em;
        }
        .fs-tool-head p {
            margin: 0.1rem 0 0;
            font-size: 0.75rem;
            color: #94a3b8;
        }
        .fs-tool-body {
            flex: 1 1 0%;
            min-height: 0;
            display: grid;
            grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
            gap: 0.9rem;
            overflow: hidden;
        }
        @media (max-width: 900px) {
            .fs-tool-body {
                grid-template-columns: 1fr;
                overflow-y: auto;
            }
        }
        .fs-tool-form {
            min-height: 0;
            overflow-y: auto;
            border-radius: 1rem;
            border: 1px solid rgba(255,255,255,0.07);
            background: #12141a;
            padding: 0.95rem;
            display: flex;
            flex-direction: column;
            gap: 0.7rem;
        }
        .fs-tool-form label {
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #64748b;
            display: block;
            margin-bottom: 0.3rem;
        }
        .fs-tool-form textarea,
        .fs-tool-form select,
        .fs-tool-form input[type="text"] {
            width: 100%;
            border-radius: 0.75rem;
            border: 1px solid rgba(255,255,255,0.1);
            background: #0b0d10;
            color: #fff;
            font-size: 0.8rem;
            padding: 0.7rem 0.8rem;
        }
        .fs-tool-form textarea { min-height: 110px; resize: vertical; }
        .fs-tool-gen {
            width: 100%;
            padding: 0.85rem 1rem;
            border-radius: 0.85rem;
            border: 0;
            background: linear-gradient(90deg, #7c3aed, #c026d3);
            color: #fff;
            font-weight: 800;
            font-size: 0.85rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.45rem;
            cursor: pointer;
            box-shadow: 0 10px 28px rgba(124,58,237,0.28);
        }
        .fs-tool-gen:disabled { opacity: 0.55; cursor: wait; }
        .fs-tool-preview {
            min-height: 0;
            border-radius: 1rem;
            border: 1px solid rgba(255,255,255,0.07);
            background: #0b0d10;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
        }
        .fs-tool-preview img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }
        .fs-tool-preview-empty {
            text-align: center;
            color: #64748b;
            font-size: 0.8rem;
            padding: 1.5rem;
        }
        .fs-tool-actions {
            position: absolute;
            right: 0.65rem;
            bottom: 0.65rem;
            display: flex;
            gap: 0.4rem;
        }
        .fs-tool-actions button {
            padding: 0.45rem 0.7rem;
            border-radius: 0.65rem;
            border: 1px solid rgba(255,255,255,0.12);
            background: rgba(0,0,0,0.55);
            color: #fff;
            font-size: 10px;
            font-weight: 800;
            cursor: pointer;
            backdrop-filter: blur(8px);
        }
        .fs-tool-upload {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            min-height: 88px;
            border-radius: 0.85rem;
            border: 1px dashed rgba(255,255,255,0.14);
            background: #0b0d10;
            color: #94a3b8;
            font-size: 0.75rem;
            font-weight: 700;
            cursor: pointer;
        }
        .fs-tool-upload:hover { border-color: rgba(139,92,246,0.45); color: #e2e8f0; }
        .fs-tool-upload img {
            width: 56px;
            height: 56px;
            object-fit: cover;
            border-radius: 0.5rem;
        }
        .fs-tool-prompt-out {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            padding: 0.85rem;
            gap: 0.55rem;
            background: #0b0d10;
        }
        .fs-tool-prompt-out.hidden { display: none !important; }
        .fs-tool-prompt-out textarea {
            flex: 1 1 0%;
            min-height: 0;
            width: 100%;
            resize: none;
            border-radius: 0.75rem;
            border: 1px solid rgba(255,255,255,0.1);
            background: #12141a;
            color: #e2e8f0;
            font-size: 0.78rem;
            line-height: 1.45;
            padding: 0.75rem 0.85rem;
        }
        .fs-tool-prompt-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
            flex-shrink: 0;
        }
        .fs-tool-prompt-actions button {
            padding: 0.5rem 0.75rem;
            border-radius: 0.65rem;
            border: 1px solid rgba(255,255,255,0.12);
            background: rgba(255,255,255,0.05);
            color: #fff;
            font-size: 10px;
            font-weight: 800;
            cursor: pointer;
        }
        .fs-tool-prompt-actions button.is-primary {
            background: linear-gradient(90deg, #7c3aed, #c026d3);
            border-color: transparent;
        }
        #ia-art-create-workspace {
            flex: 1 1 0%;
            min-height: 0;
            display: flex;
            flex-direction: column;
            gap: 0.65rem !important;
            overflow: hidden;
        }
        #ia-art-create-workspace.hidden { display: none !important; }
        #ia-art-workspace-grid {
            flex: 1 1 0%;
            min-height: 0;
            height: 100%;
            align-items: stretch !important;
            gap: 0.85rem !important;
            overflow: hidden;
        }
        @media (min-width: 1024px) {
            #ia-art-workspace-grid {
                grid-template-columns: minmax(440px, 560px) minmax(0, 1fr) !important;
                gap: 1rem !important;
            }
            #ia-art-create-workspace.is-studio-mode #ia-art-workspace-grid {
                grid-template-columns: minmax(440px, 540px) minmax(0, 1fr) !important;
            }
        }
        #ia-art-left-column {
            min-width: 0;
            min-height: 0;
            height: 100%;
            overflow-x: hidden;
            overflow-y: auto;
            overscroll-behavior: contain;
            display: flex;
            flex-direction: column;
            gap: 0.65rem !important;
            padding-right: 2px;
        }
        #ia-art-brief-panel {
            flex: 0 0 auto;
        }
        #ia-art-brief-panel .ia-art-brief-body {
            padding: 0.75rem !important;
            gap: 0.55rem !important;
        }
        .ia-art-brief-analysis-drawer {
            position: absolute; top: 8px; right: 8px; bottom: 8px;
            width: min(380px, calc(100% - 16px));
            z-index: 48; display: flex; flex-direction: column;
            border-radius: 1rem; border: 1px solid rgba(139,92,246,0.4);
            background: rgba(12,14,20,0.98); backdrop-filter: blur(14px);
            box-shadow: -12px 0 40px rgba(0,0,0,0.45);
            transform: translateX(calc(100% + 20px));
            opacity: 0; pointer-events: none;
            transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
            overflow: hidden;
        }
        .ia-art-brief-analysis-drawer.is-open {
            transform: translateX(0);
            opacity: 1;
            pointer-events: auto;
        }
        .ia-art-brief-analysis-drawer-head {
            display: flex; align-items: center; justify-content: space-between; gap: 8px;
            padding: 11px 12px; border-bottom: 1px solid rgba(255,255,255,0.08);
            flex-shrink: 0;
        }
        .ia-art-brief-analysis-drawer-head h4 {
            margin: 0; font-size: 10px; font-weight: 900; letter-spacing: 0.1em;
            text-transform: uppercase; color: #c4b5fd;
        }
        .ia-art-brief-analysis-drawer-actions {
            display: flex; align-items: center; gap: 6px;
        }
        .ia-art-brief-analysis-drawer-actions button {
            height: 28px; padding: 0 9px; border-radius: 0.5rem;
            border: 1px solid rgba(255,255,255,0.1);
            background: rgba(255,255,255,0.04); color: #94a3b8;
            font-size: 9px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
            cursor: pointer;
        }
        .ia-art-brief-analysis-drawer-actions button:hover { color: #fff; border-color: rgba(139,92,246,0.4); }
        .ia-art-brief-analysis-drawer-actions .is-close {
            width: 28px; padding: 0; font-size: 16px; line-height: 1;
        }
        .ia-art-brief-analysis-drawer-body {
            flex: 1 1 0%; min-height: 0;
            padding: 12px; overflow-y: auto; overscroll-behavior: contain;
            display: flex; flex-direction: column; gap: 10px;
        }
        #ia-art-brief-clarify {
            display: flex; flex-direction: column; gap: 10px;
        }
        #ia-art-brief-clarify.hidden { display: none !important; }
        #ia-art-brief-clarify.is-result-reveal #ia-art-clarify-summary,
        #ia-art-brief-clarify.is-result-reveal #ia-art-clarify-structure > *,
        #ia-art-brief-clarify.is-result-reveal #ia-art-clarify-questions > * {
            animation: iaArtBriefReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
        }
        #ia-art-brief-clarify.is-result-reveal #ia-art-clarify-summary { animation-delay: 0.04s; }
        #ia-art-brief-clarify.is-result-reveal #ia-art-clarify-structure > *:nth-child(1) { animation-delay: 0.1s; }
        #ia-art-brief-clarify.is-result-reveal #ia-art-clarify-structure > *:nth-child(2) { animation-delay: 0.16s; }
        #ia-art-brief-clarify.is-result-reveal #ia-art-clarify-structure > *:nth-child(3) { animation-delay: 0.22s; }
        #ia-art-brief-clarify.is-result-reveal #ia-art-clarify-structure .space-y-1 > *:nth-child(1) { animation: iaArtBriefRevealCard 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both; }
        #ia-art-brief-clarify.is-result-reveal #ia-art-clarify-structure .space-y-1 > *:nth-child(2) { animation: iaArtBriefRevealCard 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both; }
        #ia-art-brief-clarify.is-result-reveal #ia-art-clarify-structure .space-y-1 > *:nth-child(3) { animation: iaArtBriefRevealCard 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both; }
        #ia-art-brief-clarify.is-result-reveal #ia-art-clarify-structure .space-y-1 > *:nth-child(4) { animation: iaArtBriefRevealCard 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both; }
        #ia-art-brief-clarify.is-result-reveal #ia-art-clarify-structure .space-y-1 > *:nth-child(5) { animation: iaArtBriefRevealCard 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both; }
        #ia-art-brief-clarify.is-result-reveal #ia-art-clarify-structure .space-y-1 > *:nth-child(n+6) { animation: iaArtBriefRevealCard 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.56s both; }
        #ia-art-brief-clarify.is-result-reveal #ia-art-clarify-questions > *:nth-child(1) { animation-delay: 0.48s; }
        #ia-art-brief-clarify.is-result-reveal #ia-art-clarify-questions > *:nth-child(2) { animation-delay: 0.56s; }
        #ia-art-brief-clarify.is-result-reveal #ia-art-clarify-questions > *:nth-child(3) { animation-delay: 0.64s; }
        #ia-art-brief-clarify.is-result-reveal #ia-art-clarify-questions > *:nth-child(n+4) { animation-delay: 0.7s; }
        @keyframes iaArtBriefReveal {
            from { opacity: 0; transform: translateY(12px); filter: blur(2px); }
            to { opacity: 1; transform: translateY(0); filter: blur(0); }
        }
        @keyframes iaArtBriefRevealCard {
            from { opacity: 0; transform: translateY(14px) scale(0.97); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        .ia-art-brief-analysis-drawer.is-result-pop {
            animation: iaArtBriefDrawerPop 0.7s cubic-bezier(0.22, 1, 0.36, 1);
        }
        @keyframes iaArtBriefDrawerPop {
            0% { box-shadow: -12px 0 40px rgba(0,0,0,0.45); border-color: rgba(139,92,246,0.4); }
            35% { box-shadow: -12px 0 48px rgba(139,92,246,0.35), 0 0 0 1px rgba(167,139,250,0.35); border-color: rgba(167,139,250,0.85); }
            100% { box-shadow: -12px 0 40px rgba(0,0,0,0.45); border-color: rgba(139,92,246,0.4); }
        }
        #btn-ia-art-open-analysis {
            display: none;
            align-items: center; justify-content: center; gap: 6px;
            width: 100%; margin-top: 4px;
            padding: 8px 10px; border-radius: 0.75rem;
            border: 1px dashed rgba(167,139,250,0.35);
            background: rgba(139,92,246,0.08);
            color: #c4b5fd; font-size: 10px; font-weight: 800;
            letter-spacing: 0.04em; text-transform: uppercase;
            cursor: pointer;
        }
        #btn-ia-art-open-analysis.is-visible { display: flex; }
        #btn-ia-art-open-analysis:hover { background: rgba(139,92,246,0.16); color: #fff; }
        @media (max-width: 1023px) {
            .ia-art-brief-analysis-drawer {
                top: auto; left: 8px; right: 8px; bottom: 8px; height: min(62vh, 520px);
                width: auto;
                transform: translateY(calc(100% + 24px));
            }
            .ia-art-brief-analysis-drawer.is-open { transform: translateY(0); }
        }
        #ia-art-gen-history {
            flex-shrink: 0;
        }
        #ia-art-create-workspace.is-studio-mode #ia-art-gen-history {
            display: none !important;
        }
        #ia-art-gen-history .ia-art-gen-history-body {
            max-height: 140px;
        }
        #ia-art-preview-panel {
            min-width: 0;
            min-height: 0;
            height: 100%;
            display: flex !important;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            overflow: hidden;
            position: relative !important;
            align-self: stretch !important;
        }
        #ia-art-preview-panel #ia-art-output {
            min-height: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.35rem;
        }
        #ia-art-preview-panel #ia-art-carousel-nav {
            margin-top: 0.25rem !important;
            flex-shrink: 0;
        }
        #ia-art-preview-panel #ia-art-carousel-swipe-hint {
            display: none !important;
        }
        #ia-art-preview-panel #ia-art-export-actions {
            flex-shrink: 0;
            margin-top: 0.35rem !important;
            width: min(100%, 280px);
        }
        #workspace-ia-art .ia-art-preview-frame {
            /* Feed 1080×1350 (4:5): nunca setar max-height junto com width — isso virava quadrado */
            --ia-art-frame-h: min(78vh, calc(100dvh - 10rem), 780px);
            width: min(100%, calc(var(--ia-art-frame-h) * 4 / 5)) !important;
            height: auto !important;
            max-height: none !important;
            aspect-ratio: 4 / 5 !important;
            max-width: 100% !important;
            margin: 0 auto !important;
        }
        #workspace-ia-art .ia-art-preview-frame.ratio-story {
            --ia-art-frame-h: min(74vh, calc(100dvh - 13rem), 780px);
            width: min(100%, calc(var(--ia-art-frame-h) * 9 / 16)) !important;
            height: auto !important;
            max-height: none !important;
            aspect-ratio: 9 / 16 !important;
            max-width: 100% !important;
        }
        #workspace-ia-art .ia-art-preview-frame.ratio-square {
            --ia-art-frame-h: min(58vh, calc(100dvh - 13rem), 520px);
            width: min(100%, var(--ia-art-frame-h)) !important;
            height: auto !important;
            max-height: none !important;
            aspect-ratio: 1 / 1 !important;
            max-width: 100% !important;
        }
        #ia-art-create-workspace.is-studio-mode .ia-art-preview-frame {
            --ia-art-frame-h: min(80vh, calc(100dvh - 10rem), 800px);
            width: min(100%, calc(var(--ia-art-frame-h) * 4 / 5)) !important;
            height: auto !important;
            max-height: none !important;
            aspect-ratio: 4 / 5 !important;
            max-width: 100% !important;
        }
        #ia-art-create-workspace.is-studio-mode .ia-art-preview-frame.ratio-story {
            --ia-art-frame-h: min(76vh, calc(100dvh - 13rem), 800px);
            width: min(100%, calc(var(--ia-art-frame-h) * 9 / 16)) !important;
            height: auto !important;
            max-height: none !important;
            aspect-ratio: 9 / 16 !important;
            max-width: 100% !important;
        }
        #ia-art-create-workspace.is-studio-mode .ia-art-preview-frame.ratio-square {
            --ia-art-frame-h: min(62vh, calc(100dvh - 13rem), 560px);
            width: min(100%, var(--ia-art-frame-h)) !important;
            height: auto !important;
            max-height: none !important;
            aspect-ratio: 1 / 1 !important;
            max-width: 100% !important;
        }
        #ia-art-create-workspace.is-studio-mode #ia-art-preview-panel {
            position: relative !important;
            top: auto !important;
        }
        #btn-ia-art-generate { padding-top: 0.7rem !important; padding-bottom: 0.7rem !important; }
        #ia-art-studio-sidebar {
            min-height: 0;
        }
        @media (max-width: 1023px) {
            #workspace-ia-art {
                overflow-y: auto !important;
            }
            #workspace-ia-art > .ia-art-shell,
            #ia-art-create-workspace,
            #ia-art-workspace-grid {
                height: auto;
                min-height: 0;
                overflow: visible;
            }
            #ia-art-left-column {
                height: auto;
                overflow: visible;
            }
        }
        #ia-art-brief-panel {
            border-color: rgba(255, 255, 255, 0.08);
            background:
                linear-gradient(165deg, rgba(255,255,255,0.03) 0%, transparent 42%),
                #12141a;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
        }
        /* Prévia sem “quadro de fora” — só o cartão no tamanho do formato */
        #ia-art-preview-panel {
            border: none !important;
            background: transparent !important;
            box-shadow: none !important;
            padding: 0 !important;
            min-height: 0;
        }
        #ia-art-output {
            width: 100%;
        }
        #ia-art-output .ia-art-preview-frame {
            margin-top: 0;
        }

        /* Animação · gerando card */
        .ia-art-generating {
            position: absolute; inset: 0; z-index: 12;
            display: none; flex-direction: column; align-items: center; justify-content: center;
            gap: 14px; padding: 24px 20px; text-align: center;
            background:
                radial-gradient(ellipse at 50% 35%, rgba(139, 92, 246, 0.28), transparent 58%),
                linear-gradient(160deg, #12141c 0%, #0b0d10 100%);
            pointer-events: none;
        }
        .ia-art-generating.is-on { display: flex; }
        .ia-art-generating.is-out {
            animation: iaArtGenFadeOut 0.45s ease forwards;
        }
        .ia-art-gen-orb {
            position: relative; width: 88px; height: 88px; margin-bottom: 4px;
        }
        .ia-art-gen-orb::before,
        .ia-art-gen-orb::after {
            content: ''; position: absolute; inset: 0; border-radius: 50%;
            border: 2px solid transparent;
        }
        .ia-art-gen-orb::before {
            border-top-color: rgba(167, 139, 250, 0.95);
            border-right-color: rgba(217, 70, 239, 0.35);
            animation: iaArtGenSpin 1.1s linear infinite;
        }
        .ia-art-gen-orb::after {
            inset: 10px;
            border-bottom-color: rgba(196, 181, 253, 0.7);
            border-left-color: rgba(124, 58, 237, 0.25);
            animation: iaArtGenSpin 1.6s linear infinite reverse;
        }
        .ia-art-gen-core {
            position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
        }
        .ia-art-gen-core span {
            width: 42px; height: 42px; border-radius: 14px;
            display: flex; align-items: center; justify-content: center;
            background: rgba(124, 58, 237, 0.35);
            border: 1px solid rgba(196, 181, 253, 0.4);
            box-shadow: 0 0 24px rgba(139, 92, 246, 0.45);
            animation: iaArtGenPulse 1.6s ease-in-out infinite;
        }
        .ia-art-gen-core span i,
        .ia-art-gen-core span svg { width: 18px; height: 18px; color: #ede9fe; }
        .ia-art-gen-title {
            margin: 0; font-size: 13px; font-weight: 800; color: #e2e8f0; letter-spacing: -0.01em;
        }
        .ia-art-gen-step {
            margin: 0; max-width: 220px; min-height: 2.6em;
            font-size: 11px; line-height: 1.4; color: #a78bfa; font-weight: 600;
            transition: opacity 0.2s ease, transform 0.2s ease;
        }
        .ia-art-gen-step.is-swap {
            opacity: 0; transform: translateY(6px);
        }
        .ia-art-gen-bars {
            display: flex; gap: 5px; margin-top: 2px; height: 18px; align-items: flex-end;
        }
        .ia-art-gen-bars i {
            display: block; width: 5px; border-radius: 99px;
            background: linear-gradient(180deg, #c4b5fd, #7c3aed);
            animation: iaArtGenBar 0.9s ease-in-out infinite;
        }
        .ia-art-gen-bars i:nth-child(1) { height: 8px; animation-delay: 0s; }
        .ia-art-gen-bars i:nth-child(2) { height: 14px; animation-delay: 0.12s; }
        .ia-art-gen-bars i:nth-child(3) { height: 10px; animation-delay: 0.24s; }
        .ia-art-gen-bars i:nth-child(4) { height: 16px; animation-delay: 0.36s; }
        .ia-art-gen-bars i:nth-child(5) { height: 9px; animation-delay: 0.48s; }
        .ia-art-preview-frame.is-generating #ia-art-preview-empty {
            opacity: 0 !important;
            pointer-events: none !important;
        }
        .ia-art-preview-frame.is-generating-reveal {
            animation: iaArtGenCardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
        }
        @keyframes iaArtGenSpin {
            to { transform: rotate(360deg); }
        }
        @keyframes iaArtGenPulse {
            0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(139, 92, 246, 0.35); }
            50% { transform: scale(1.06); box-shadow: 0 0 32px rgba(139, 92, 246, 0.55); }
        }
        @keyframes iaArtGenBar {
            0%, 100% { transform: scaleY(0.55); opacity: 0.55; }
            50% { transform: scaleY(1); opacity: 1; }
        }
        @keyframes iaArtGenFadeOut {
            to { opacity: 0; transform: scale(1.04); }
        }
        @keyframes iaArtGenCardIn {
            0% { opacity: 0.55; transform: translateY(14px) scale(0.97); filter: blur(2px); }
            100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
        }
        #ia-art-brief-panel > .px-4 {
            background: linear-gradient(90deg, rgba(217, 70, 239, 0.08), transparent 60%);
        }
        #ia-art-idea {
            border-color: rgba(255, 255, 255, 0.08);
            background: rgba(11, 13, 16, 0.85);
            min-height: 96px;
            line-height: 1.45;
        }
        #ia-art-idea:focus {
            outline: none;
            border-color: rgba(167, 139, 250, 0.35);
        }
        #btn-ia-art-generate {
            letter-spacing: 0.02em;
            transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
        }
        #btn-ia-art-generate:hover {
            transform: translateY(-1px);
            box-shadow: 0 14px 36px rgba(139, 92, 246, 0.35);
        }
        #ia-art-format {
            width: 100%;
        }
        .ia-art-count-seg {
            display: flex; gap: 4px; padding: 4px;
            background: rgba(11, 13, 16, 0.9);
            border-radius: 0.85rem;
            border: 1px solid rgba(255, 255, 255, 0.07);
        }
        .ia-art-count-seg button {
            flex: 1; padding: 0.55rem 0.25rem; border-radius: 0.6rem;
            font-size: 10px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase;
            color: #64748b; transition: background 0.15s, color 0.15s, box-shadow 0.15s;
        }
        .ia-art-count-seg button:hover { color: #e2e8f0; }
        .ia-art-count-seg button.is-active {
            background: linear-gradient(135deg, #7c3aed, #a855f7);
            color: #fff;
            box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
        }

        /* Prévia vazia · design + IA */
        #ia-art-preview-empty {
            position: absolute; inset: 0;
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            gap: 14px; padding: 22px 18px; text-align: center;
            background:
                radial-gradient(ellipse at 50% 32%, rgba(124, 58, 237, 0.2), transparent 52%),
                radial-gradient(ellipse at 78% 70%, rgba(56, 189, 248, 0.08), transparent 42%),
                #0b0d10;
            z-index: 4;
            pointer-events: none;
            overflow: hidden;
        }
        #ia-art-preview-empty.hidden { display: none !important; }
        #ia-art-output.is-empty { min-height: 0; }
        #ia-art-output.is-empty #ia-art-preview-frame { display: block; }
        #ia-art-preview-frame.hidden { display: none !important; }

        .ia-art-empty-stage {
            position: relative; width: 132px; height: 132px;
            margin-bottom: 2px;
        }
        .ia-art-empty-grid {
            position: absolute; inset: 10px;
            border-radius: 18px;
            background-image:
                linear-gradient(rgba(167, 139, 250, 0.07) 1px, transparent 1px),
                linear-gradient(90deg, rgba(167, 139, 250, 0.07) 1px, transparent 1px);
            background-size: 14px 14px;
            mask-image: radial-gradient(circle at 50% 50%, #000 42%, transparent 78%);
            -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 42%, transparent 78%);
            animation: iaArtEmptyGridDrift 10s linear infinite;
            opacity: 0.9;
        }
        .ia-art-empty-board {
            position: absolute; left: 50%; top: 50%;
            width: 72px; height: 88px;
            transform: translate(-50%, -50%);
            border-radius: 12px;
            border: 1.5px solid rgba(196, 181, 253, 0.38);
            background:
                linear-gradient(160deg, rgba(255,255,255,0.06), rgba(124,58,237,0.08));
            box-shadow:
                0 0 0 1px rgba(139, 92, 246, 0.08),
                0 18px 40px rgba(0,0,0,0.35);
            z-index: 2;
            overflow: visible;
        }
        .ia-art-empty-board .ia-art-empty-handle {
            position: absolute; width: 7px; height: 7px; border-radius: 2px;
            background: #a78bfa; border: 1px solid rgba(255,255,255,0.55);
            box-shadow: 0 0 8px rgba(167, 139, 250, 0.55);
            animation: iaArtEmptyHandleBlink 2.8s ease-in-out infinite;
        }
        .ia-art-empty-board .ia-art-empty-handle:nth-child(1) { left: -4px; top: -4px; }
        .ia-art-empty-board .ia-art-empty-handle:nth-child(2) { right: -4px; top: -4px; animation-delay: 0.35s; }
        .ia-art-empty-board .ia-art-empty-handle:nth-child(3) { left: -4px; bottom: -4px; animation-delay: 0.7s; }
        .ia-art-empty-board .ia-art-empty-handle:nth-child(4) { right: -4px; bottom: -4px; animation-delay: 1.05s; }

        .ia-art-empty-fan {
            position: absolute; inset: 10px 9px 14px;
        }
        .ia-art-empty-fan b {
            position: absolute; inset: 0;
            border-radius: 7px;
            border: 1px solid rgba(255,255,255,0.16);
            background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(139,92,246,0.12));
            box-shadow: 0 4px 12px rgba(0,0,0,0.25);
            transform-origin: 50% 100%;
        }
        .ia-art-empty-fan b::before {
            content: '';
            position: absolute; left: 18%; right: 18%; top: 18%;
            height: 3px; border-radius: 2px;
            background: rgba(255,255,255,0.28);
        }
        .ia-art-empty-fan b::after {
            content: '';
            position: absolute; left: 18%; right: 30%; top: 32%;
            height: 2px; border-radius: 2px;
            background: rgba(255,255,255,0.16);
        }
        .ia-art-empty-fan b:nth-child(1) {
            transform: translateX(-10px) rotate(-11deg) scale(0.92);
            opacity: 0.55;
            animation: iaArtEmptyFan1 4.2s ease-in-out infinite;
        }
        .ia-art-empty-fan b:nth-child(2) {
            z-index: 1;
            animation: iaArtEmptyFan2 4.2s ease-in-out infinite;
        }
        .ia-art-empty-fan b:nth-child(3) {
            transform: translateX(10px) rotate(11deg) scale(0.92);
            opacity: 0.55;
            animation: iaArtEmptyFan3 4.2s ease-in-out infinite;
        }

        .ia-art-empty-neural {
            position: absolute; inset: 0; z-index: 1; pointer-events: none;
        }
        .ia-art-empty-neural svg {
            position: absolute; inset: 0; width: 100%; height: 100%;
            opacity: 0.55;
        }
        .ia-art-empty-neural svg path {
            fill: none;
            stroke: rgba(125, 211, 252, 0.45);
            stroke-width: 1;
            stroke-dasharray: 4 6;
            animation: iaArtEmptyDash 2.4s linear infinite;
        }
        .ia-art-empty-node {
            position: absolute; width: 8px; height: 8px; border-radius: 999px;
            background: #7dd3fc;
            box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
            animation: iaArtEmptyNodePulse 2s ease-in-out infinite;
        }
        .ia-art-empty-node:nth-child(2) { left: 10px; top: 28px; animation-delay: 0.2s; }
        .ia-art-empty-node:nth-child(3) { right: 8px; top: 22px; background: #c4b5fd; box-shadow: 0 0 10px rgba(167,139,250,0.7); animation-delay: 0.5s; }
        .ia-art-empty-node:nth-child(4) { left: 18px; bottom: 20px; background: #e879f9; box-shadow: 0 0 10px rgba(232,121,249,0.65); animation-delay: 0.8s; }
        .ia-art-empty-node:nth-child(5) { right: 16px; bottom: 28px; animation-delay: 1.1s; }

        .ia-art-empty-core {
            position: absolute; left: 50%; top: 50%;
            transform: translate(-50%, -58%);
            z-index: 4;
        }
        .ia-art-empty-core span {
            width: 42px; height: 42px; border-radius: 14px;
            display: flex; align-items: center; justify-content: center;
            background: linear-gradient(145deg, rgba(124,58,237,0.95), rgba(91,33,182,0.92));
            border: 1px solid rgba(221, 214, 254, 0.45);
            box-shadow:
                0 0 0 4px rgba(124, 58, 237, 0.16),
                0 10px 28px rgba(124, 58, 237, 0.45);
            animation: iaArtEmptyPulse 2.6s ease-in-out infinite;
        }
        .ia-art-empty-core span i,
        .ia-art-empty-core span svg { width: 18px; height: 18px; color: #f5f3ff; }

        .ia-art-empty-scan {
            position: absolute; left: 12%; right: 12%; height: 18px;
            top: 18%;
            background: linear-gradient(180deg, transparent, rgba(167,139,250,0.22), transparent);
            border-radius: 999px;
            filter: blur(0.2px);
            animation: iaArtEmptyScan 3.4s ease-in-out infinite;
            z-index: 3; pointer-events: none;
        }

        .ia-art-empty-title {
            margin: 0; font-size: 13px; font-weight: 800; color: #e2e8f0;
            letter-spacing: -0.01em;
        }
        .ia-art-empty-size {
            margin: 0;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: #67e8f9;
            font-variant-numeric: tabular-nums;
        }
        .ia-art-empty-sub {
            margin: 0; max-width: 230px; font-size: 11px; line-height: 1.45; color: #64748b; font-weight: 500;
        }
        .ia-art-empty-dots {
            display: flex; gap: 6px; margin-top: 2px; align-items: center;
        }
        .ia-art-empty-dots span {
            width: 6px; height: 6px; border-radius: 999px;
            background: rgba(167, 139, 250, 0.55);
            animation: iaArtEmptyDot 1.4s ease-in-out infinite;
        }
        .ia-art-empty-dots span:nth-child(2) { animation-delay: 0.2s; width: 14px; border-radius: 999px; background: rgba(125, 211, 252, 0.55); }
        .ia-art-empty-dots span:nth-child(3) { animation-delay: 0.4s; }

        @keyframes iaArtEmptyGridDrift {
            from { background-position: 0 0, 0 0; }
            to { background-position: 14px 14px, 14px 14px; }
        }
        @keyframes iaArtEmptyHandleBlink {
            0%, 100% { opacity: 0.55; transform: scale(0.92); }
            50% { opacity: 1; transform: scale(1.08); }
        }
        @keyframes iaArtEmptyFan1 {
            0%, 100% { transform: translateX(-10px) rotate(-11deg) scale(0.92); }
            50% { transform: translateX(-14px) rotate(-14deg) scale(0.94); }
        }
        @keyframes iaArtEmptyFan2 {
            0%, 100% { transform: translateY(0) scale(1); }
            50% { transform: translateY(-3px) scale(1.02); }
        }
        @keyframes iaArtEmptyFan3 {
            0%, 100% { transform: translateX(10px) rotate(11deg) scale(0.92); }
            50% { transform: translateX(14px) rotate(14deg) scale(0.94); }
        }
        @keyframes iaArtEmptyDash {
            to { stroke-dashoffset: -20; }
        }
        @keyframes iaArtEmptyNodePulse {
            0%, 100% { transform: scale(1); opacity: 0.7; }
            50% { transform: scale(1.35); opacity: 1; }
        }
        @keyframes iaArtEmptyPulse {
            0%, 100% { transform: scale(1); box-shadow: 0 0 0 4px rgba(124,58,237,0.14), 0 10px 28px rgba(124,58,237,0.4); }
            50% { transform: scale(1.05); box-shadow: 0 0 0 7px rgba(124,58,237,0.2), 0 12px 34px rgba(167,139,250,0.55); }
        }
        @keyframes iaArtEmptyScan {
            0% { top: 16%; opacity: 0; }
            15% { opacity: 0.9; }
            85% { opacity: 0.7; }
            100% { top: 68%; opacity: 0; }
        }
        @keyframes iaArtEmptyDot {
            0%, 100% { opacity: 0.35; transform: scale(0.85); }
            50% { opacity: 1; transform: scale(1.15); }
        }
        @media (prefers-reduced-motion: reduce) {
            .ia-art-empty-grid,
            .ia-art-empty-board .ia-art-empty-handle,
            .ia-art-empty-fan b,
            .ia-art-empty-neural svg path,
            .ia-art-empty-node,
            .ia-art-empty-core span,
            .ia-art-empty-scan,
            .ia-art-empty-dots span { animation: none !important; }
        }


        .ia-art-studio-card-bar {
            display: flex; align-items: center; justify-content: space-between; gap: 8px;
            padding: 10px 12px; border-radius: 0.85rem; border: 1px solid rgba(255,255,255,0.07);
            background: #0b0d10;
        }
        .ia-art-history-btns {
            display: flex; align-items: center; gap: 4px; flex-shrink: 0;
        }
        .ia-art-history-btns button {
            display: inline-flex; align-items: center; gap: 4px;
            padding: 6px 8px; border-radius: 0.55rem;
            border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04);
            color: #cbd5e1; font-size: 9px; font-weight: 800; letter-spacing: 0.04em;
            text-transform: uppercase; cursor: pointer;
        }
        .ia-art-history-btns button:hover:not(:disabled) {
            border-color: rgba(167,139,250,0.45); color: #fff; background: rgba(124,58,237,0.18);
        }
        .ia-art-history-btns button:disabled {
            opacity: 0.35; cursor: not-allowed;
        }
        .ia-art-history-btns button i,
        .ia-art-history-btns button svg { width: 14px; height: 14px; }

        .ia-art-gen-history {
            border-radius: 1rem; border: 1px solid rgba(255,255,255,0.06);
            background: #12141a; overflow: hidden;
        }
        .ia-art-gen-history-head {
            display: flex; align-items: center; justify-content: space-between; gap: 8px;
            padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.06);
        }
        .ia-art-gen-history-head h3 {
            margin: 0; font-size: 11px; font-weight: 900; letter-spacing: 0.08em;
            text-transform: uppercase; color: #e2e8f0;
            display: flex; align-items: center; gap: 8px;
        }
        .ia-art-gen-history-head h3 span {
            width: 18px; height: 18px; border-radius: 999px; display: inline-flex;
            align-items: center; justify-content: center; font-size: 9px; font-weight: 900;
            background: rgba(139,92,246,0.25); color: #c4b5fd;
        }
        .ia-art-gen-history-count {
            font-size: 9px; font-weight: 800; color: #64748b; letter-spacing: 0.04em;
        }
        .ia-art-gen-history-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
        .ia-art-gen-history-empty { font-size: 11px; color: #64748b; line-height: 1.45; padding: 6px 2px; }
        .ia-art-gen-history-item {
            display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 10px; align-items: center;
            padding: 8px; border-radius: 0.75rem; border: 1px solid rgba(255,255,255,0.06);
            background: rgba(255,255,255,0.02);
        }
        .ia-art-gen-history-item.is-active { border-color: rgba(139,92,246,0.45); background: rgba(139,92,246,0.1); }
        .ia-art-gen-history-thumb {
            width: 52px; height: 65px; border-radius: 0.5rem; overflow: hidden;
            background: #0b0d10; border: 1px solid rgba(255,255,255,0.08);
        }
        .ia-art-gen-history-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .ia-art-gen-history-meta { min-width: 0; }
        .ia-art-gen-history-meta strong {
            display: block; font-size: 11px; font-weight: 700; color: #f1f5f9;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .ia-art-gen-history-meta span { display: block; font-size: 10px; color: #64748b; margin-top: 2px; }
        .ia-art-gen-history-actions { display: flex; flex-direction: column; gap: 4px; }
        .ia-art-gen-history-actions button {
            font-size: 9px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
            padding: 5px 8px; border-radius: 0.45rem; border: 1px solid rgba(255,255,255,0.1);
            background: rgba(255,255,255,0.04); color: #cbd5e1; cursor: pointer;
        }
        .ia-art-gen-history-actions button:hover { background: rgba(139,92,246,0.2); color: #fff; border-color: rgba(139,92,246,0.35); }
        .ia-art-gen-history-actions button.is-danger { color: #fda4af; border-color: rgba(244,63,94,0.25); }
        .ia-art-gen-history-actions button.is-danger:hover { background: rgba(244,63,94,0.18); color: #fff; border-color: rgba(244,63,94,0.4); }
        .ia-art-logo-slot { border-top: 1px dashed rgba(139,92,246,0.35); background: linear-gradient(180deg, rgba(11,13,16,0) 0%, rgba(11,13,16,0.85) 100%); }
        .ia-art-clarify-option {
            width: 100%; text-align: left; padding: 9px 11px; border-radius: 0.65rem;
            border: 1px solid rgba(255,255,255,0.1); background: #0b0d10;
            color: #cbd5e1; font-size: 11px; font-weight: 600; line-height: 1.35;
            transition: border-color 0.15s, background 0.15s, color 0.15s;
        }
        .ia-art-clarify-option:hover { border-color: rgba(167,139,250,0.45); color: #fff; }
        .ia-art-clarify-option.is-selected {
            border-color: rgba(139,92,246,0.75); background: rgba(124,58,237,0.22); color: #fff;
            box-shadow: 0 0 0 1px rgba(124,58,237,0.2);
        }
        #workspace-context-bar {
            flex-shrink: 0;
            position: sticky;
            top: 0;
            z-index: 10;
            background: linear-gradient(180deg, rgba(26, 29, 36, 0.98) 0%, rgba(21, 23, 28, 0.92) 100%);
            border-bottom: 1px solid rgba(255,255,255,0.06);
        }
        #workspace-context-bar .ws-ctx-nav {
            min-width: 0;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        #btn-board-home {
            display: inline-flex;
            flex: 0 0 auto;
            align-items: center;
            justify-content: center;
            width: 2.35rem;
            height: 2.35rem;
            padding: 0;
            border-radius: 0.75rem;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.03);
            color: #94a3b8;
            transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
        }
        #btn-board-home:hover {
            color: #e2e8f0;
            background: rgba(255, 255, 255, 0.06);
        }
        #btn-board-home.is-active,
        #btn-board-home.tab-active {
            color: #c4b5fd;
            border-color: rgba(139, 92, 246, 0.45);
            background: rgba(139, 92, 246, 0.15);
        }
        #btn-board-home i,
        #btn-board-home svg {
            width: 1.1rem;
            height: 1.1rem;
        }
        #workspace-context-bar .ws-ctx-actions {
            flex-shrink: 0;
        }
        #workspace-tabs {
            flex-shrink: 0;
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 0.125rem;
            overflow-x: auto;
            max-width: 100%;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }
        #workspace-tabs::-webkit-scrollbar { display: none; }
        #board-essentials-banner,
        #dash-essentials-banner {
            display: none;
            flex-shrink: 0;
            width: 100%;
            padding: 0.55rem 0.75rem 0.6rem;
            background:
                linear-gradient(105deg, rgba(180, 83, 9, 0.32) 0%, rgba(245, 158, 11, 0.14) 42%, rgba(15, 23, 42, 0.94) 100%);
            border-bottom: 1px solid rgba(251, 191, 36, 0.26);
        }
        #dash-essentials-banner {
            border: 1px solid rgba(251, 191, 36, 0.26);
            border-radius: 1rem;
            border-bottom: 1px solid rgba(251, 191, 36, 0.26);
            box-sizing: border-box;
        }
        #board-essentials-banner.is-visible,
        #dash-essentials-banner.is-visible {
            display: block;
        }
        #board-essentials-banner .board-essentials-banner__row,
        #dash-essentials-banner .board-essentials-banner__row {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            position: relative;
            padding: 0 1.75rem;
            text-align: center;
        }
        #board-essentials-banner .board-essentials-banner__head,
        #dash-essentials-banner .board-essentials-banner__head {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.35rem;
            margin: 0;
            color: #fde68a;
            font-size: 0.625rem;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            line-height: 1.2;
        }
        #board-essentials-banner .board-essentials-banner__head i,
        #board-essentials-banner .board-essentials-banner__head svg,
        #dash-essentials-banner .board-essentials-banner__head i,
        #dash-essentials-banner .board-essentials-banner__head svg {
            width: 0.8rem;
            height: 0.8rem;
            flex-shrink: 0;
        }
        #board-essentials-banner .board-essentials-banner__sub,
        #dash-essentials-banner .board-essentials-banner__sub {
            display: none !important;
        }
        #board-essentials-steps,
        #dash-essentials-steps {
            display: flex;
            flex-wrap: wrap;
            gap: 0.35rem;
            justify-content: center;
            align-items: center;
        }
        #board-essentials-steps .board-ess-step,
        #dash-essentials-steps .board-ess-step {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.45rem 0.7rem;
            border-radius: 0.65rem;
            border: 1px solid rgba(251, 191, 36, 0.42);
            background: rgba(0, 0, 0, 0.34);
            color: #fef3c7;
            font-size: 0.625rem;
            font-weight: 800;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            cursor: pointer;
            transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
            -webkit-tap-highlight-color: transparent;
        }
        #board-essentials-steps .board-ess-step:hover,
        #board-essentials-steps .board-ess-step:active,
        #dash-essentials-steps .board-ess-step:hover,
        #dash-essentials-steps .board-ess-step:active {
            background: rgba(245, 158, 11, 0.24);
            border-color: rgba(251, 191, 36, 0.62);
            transform: translateY(-1px);
        }
        #board-essentials-steps .board-ess-step i,
        #board-essentials-steps .board-ess-step svg,
        #dash-essentials-steps .board-ess-step i,
        #dash-essentials-steps .board-ess-step svg {
            width: 0.8rem;
            height: 0.8rem;
            flex-shrink: 0;
        }
        #board-essentials-dismiss,
        #dash-essentials-dismiss {
            position: absolute;
            top: 50%;
            right: 0;
            transform: translateY(-50%);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 1.75rem;
            height: 1.75rem;
            border: 0;
            border-radius: 0.5rem;
            background: transparent;
            color: rgba(254, 243, 199, 0.55);
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }
        #board-essentials-dismiss:hover,
        #board-essentials-dismiss:active,
        #dash-essentials-dismiss:hover,
        #dash-essentials-dismiss:active {
            color: #fef3c7;
            background: rgba(0, 0, 0, 0.28);
        }
        #board-essentials-dismiss i,
        #board-essentials-dismiss svg,
        #dash-essentials-dismiss i,
        #dash-essentials-dismiss svg {
            width: 0.95rem;
            height: 0.95rem;
        }
        @media (max-width: 639px) {
            #board-essentials-banner,
            #dash-essentials-banner {
                padding: 0.5rem 0.65rem 0.55rem;
            }
            #board-essentials-banner .board-essentials-banner__row,
            #dash-essentials-banner .board-essentials-banner__row {
                gap: 0.45rem;
                padding-right: 1.65rem;
            }
        }
        .workspace-ctx-tab {
            color: #94a3b8;
            border: 1px solid rgba(255,255,255,0.08);
            background: rgba(255,255,255,0.03);
            transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
        }
        .workspace-ctx-tab:hover { color: #cbd5e1; background: rgba(255,255,255,0.06); }
        .client-feed-cta {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 0.875rem;
            border-radius: 0.75rem;
            font-size: 0.6875rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: #fff;
            background: linear-gradient(135deg, #2563eb 0%, #7c3aed 52%, #c026d3 100%);
            border: 1px solid rgba(255,255,255,0.18);
            box-shadow: 0 4px 18px rgba(59, 130, 246, 0.35), 0 0 0 1px rgba(124, 58, 237, 0.2) inset;
            transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
        }
        .client-feed-cta:hover { filter: brightness(1.06); box-shadow: 0 6px 22px rgba(59, 130, 246, 0.45); }
        .client-feed-cta:active { transform: scale(0.98); }
        .client-feed-cta-badge {
            min-width: 1.125rem;
            padding: 0.1rem 0.35rem;
            border-radius: 9999px;
            background: rgba(0,0,0,0.35);
            font-size: 0.5625rem;
            font-weight: 900;
            line-height: 1.2;
        }
        @media (min-width: 640px) {
            .client-feed-cta { padding: 0.625rem 1.125rem; font-size: 0.75rem; }
        }
        .workspace-ctx-tab.tab-active {
            color: #c4b5fd;
            border-color: rgba(139, 92, 246, 0.45);
            background: rgba(139, 92, 246, 0.15);
        }
        #workspace-tabs .ws-tab-label { display: inline; }
        #workspace-board-title { letter-spacing: 0.04em; }

        /* Menu de ajustes do quadro (mobile) */
        #btn-board-tools {
            display: none;
            position: relative;
            color: #e9d5ff;
            border: 1px solid rgba(167, 139, 250, 0.35);
            background: rgba(139, 92, 246, 0.14);
            transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
        }
        #btn-board-tools:hover {
            background: rgba(139, 92, 246, 0.22);
            border-color: rgba(167, 139, 250, 0.5);
        }
        .board-tools-menu {
            position: fixed;
            inset: 0;
            z-index: 520;
            display: none;
            pointer-events: none;
        }
        .board-tools-menu.is-open {
            display: block;
            pointer-events: auto;
        }
        .board-tools-backdrop {
            position: absolute;
            inset: 0;
            border: 0;
            padding: 0;
            margin: 0;
            background: rgba(0, 0, 0, 0.55);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            cursor: pointer;
        }
        .board-tools-sheet {
            position: absolute;
            left: 0.55rem;
            right: 0.55rem;
            bottom: 0.55rem;
            padding: 0.65rem 0.85rem 0.85rem;
            border-radius: 1.15rem;
            background: linear-gradient(180deg, #1c1f27 0%, #14161b 100%);
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.45);
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
            animation: board-tools-up 0.28s cubic-bezier(0.22, 1, 0.36, 1);
        }
        /* Acima da pílula do menu inferior (não fica coberta no meio) */
        html.has-mobile-nav .board-tools-sheet,
        html.is-native-app .board-tools-sheet {
            left: 0.65rem;
            right: 0.65rem;
            bottom: calc(5.35rem + env(safe-area-inset-bottom, 0px));
            padding-bottom: 0.9rem;
            border-radius: 1.15rem;
            max-height: min(70dvh, calc(100dvh - 7.5rem - env(safe-area-inset-bottom, 0px)));
            overflow-y: auto;
        }
        html.platform-ios .board-tools-sheet,
        html.is-native-app .board-tools-sheet {
            bottom: calc(5.55rem + env(safe-area-inset-bottom, 0px));
        }
        @keyframes board-tools-up {
            from { transform: translateY(110%); opacity: 0.6; }
            to { transform: translateY(0); opacity: 1; }
        }
        .board-tools-handle {
            width: 2.25rem;
            height: 0.28rem;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.18);
            margin: 0.1rem auto 0.35rem;
        }
        .board-tools-title {
            margin: 0 0.15rem 0.35rem;
            font-size: 0.6875rem;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: #94a3b8;
        }
        .board-tools-stack {
            position: relative;
            overflow: hidden;
            width: 100%;
            min-height: 0;
        }
        .board-tools-panel {
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
            width: 100%;
            min-width: 0;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
            transform: translate3d(0, 0, 0);
        }
        .board-tools-panel.is-hidden {
            display: none !important;
            pointer-events: none;
        }
        .board-tools-panel.is-animating {
            display: flex !important;
            pointer-events: none;
        }
        .board-tools-panel.is-layer {
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            width: 100%;
        }
        @keyframes board-tools-forward-in {
            from { transform: translate3d(100%, 0, 0); opacity: 0.72; }
            to { transform: translate3d(0, 0, 0); opacity: 1; }
        }
        @keyframes board-tools-forward-out {
            from { transform: translate3d(0, 0, 0); opacity: 1; }
            to { transform: translate3d(-28%, 0, 0); opacity: 0; }
        }
        @keyframes board-tools-back-in {
            from { transform: translate3d(-28%, 0, 0); opacity: 0.88; }
            to { transform: translate3d(0, 0, 0); opacity: 1; }
        }
        @keyframes board-tools-back-out {
            from { transform: translate3d(0, 0, 0); opacity: 1; }
            to { transform: translate3d(100%, 0, 0); opacity: 0; }
        }
        .board-tools-panel.is-forward-in {
            animation: board-tools-forward-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
            z-index: 2;
        }
        .board-tools-panel.is-forward-out {
            animation: board-tools-forward-out 0.3s cubic-bezier(0.32, 0.72, 0.24, 1) both;
            z-index: 1;
        }
        .board-tools-panel.is-back-in {
            animation: board-tools-back-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
            z-index: 1;
        }
        .board-tools-panel.is-back-out {
            animation: board-tools-back-out 0.3s cubic-bezier(0.32, 0.72, 0.24, 1) both;
            z-index: 2;
        }
        .board-tools-stack.is-height-tween {
            transition: min-height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            will-change: min-height;
        }
        @media (prefers-reduced-motion: reduce) {
            .board-tools-sheet { animation: none; }
            .board-tools-panel.is-forward-in,
            .board-tools-panel.is-forward-out,
            .board-tools-panel.is-back-in,
            .board-tools-panel.is-back-out {
                animation: none !important;
            }
        }
        .board-tools-back {
            display: flex;
            align-items: center;
            gap: 0.45rem;
            width: 100%;
            margin: 0 0 0.1rem;
            padding: 0.5rem 0.4rem;
            border: 0;
            border-radius: 0.7rem;
            background: transparent;
            color: #c4b5fd;
            font-size: 0.78rem;
            font-weight: 700;
            text-align: left;
            cursor: pointer;
        }
        .board-tools-back:hover,
        .board-tools-back:active {
            background: rgba(139, 92, 246, 0.12);
            color: #ede9fe;
        }
        .board-tools-back i,
        .board-tools-back svg {
            width: 1rem;
            height: 1rem;
            flex-shrink: 0;
        }
        .board-tools-item .board-tools-chevron {
            margin-left: auto;
            width: 1rem !important;
            height: 1rem !important;
            color: #64748b !important;
            opacity: 0.85;
        }
        .board-tools-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            width: 100%;
            padding: 0.85rem 0.9rem;
            border-radius: 0.85rem;
            border: 1px solid rgba(255, 255, 255, 0.06);
            background: rgba(255, 255, 255, 0.03);
            color: #e2e8f0;
            font-size: 0.875rem;
            font-weight: 700;
            text-align: left;
            transition: background 0.15s ease, border-color 0.15s ease;
            -webkit-user-select: none;
            user-select: none;
            -webkit-touch-callout: none;
            -webkit-tap-highlight-color: transparent;
        }
        @media (hover: hover) {
            .board-tools-item:hover {
                background: rgba(139, 92, 246, 0.14);
                border-color: rgba(139, 92, 246, 0.35);
                color: #fff;
            }
        }
        .board-tools-item:active {
            background: rgba(139, 92, 246, 0.18);
            border-color: rgba(139, 92, 246, 0.4);
            color: #fff;
        }
        .board-tools-item i,
        .board-tools-item svg {
            width: 1.15rem;
            height: 1.15rem;
            color: #c4b5fd;
            flex-shrink: 0;
        }
        /* Sem destaque permanente — no touch parecia item “travado” selecionado */
        .board-tools-item.is-accent {
            background: rgba(255, 255, 255, 0.03);
            border-color: rgba(255, 255, 255, 0.06);
        }
        .board-tools-sheet.is-panel-busy,
        .board-tools-sheet.is-panel-busy .board-tools-item,
        .board-tools-sheet.is-panel-busy .board-tools-back {
            pointer-events: none !important;
        }
        .board-tools-menu,
        .board-tools-menu * {
            -webkit-user-select: none;
            user-select: none;
            -webkit-touch-callout: none;
        }
        .board-tools-item.hidden { display: none !important; }
        .board-tools-filter-badge {
            position: absolute;
            top: 0.65rem;
            right: 0.75rem;
            width: 0.45rem;
            height: 0.45rem;
            border-radius: 999px;
            background: #8b5cf6;
            box-shadow: 0 0 0 2px #1c1f27;
        }
        .board-tools-filter-badge.hidden { display: none !important; }
        #btn-board-tools .board-tools-btn-filter-dot {
            position: absolute;
            top: 0.3rem;
            right: 0.3rem;
            width: 0.4rem;
            height: 0.4rem;
            border-radius: 999px;
            background: #8b5cf6;
            box-shadow: 0 0 0 2px #15171c;
            pointer-events: none;
        }
        #btn-board-tools .board-tools-btn-filter-dot.hidden { display: none !important; }
        .app-header {
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            align-items: center;
            gap: 0.5rem 0.625rem;
        }
        .app-header .header-brand { flex: 0 0 auto; }
        #header-trailing {
            display: flex;
            align-items: center;
            gap: 0.375rem;
            flex: 0 0 auto;
            margin-left: auto;
        }
        #btn-logout { flex-shrink: 0; }
        #header-actions {
            display: flex;
            align-items: center;
            gap: 0.375rem;
            min-width: 0;
            flex: 1 1 auto;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }
        #header-ia-art-tools.hidden {
            display: none !important;
        }
        #header-actions::-webkit-scrollbar { display: none; }
        #header-ia-art-tools {
            display: none;
        }
        #header-ia-art-tools.is-on {
            display: inline-flex !important;
        }
        #header-ia-art-tools .hdr-btn {
            min-height: 2rem;
            padding: 0.35rem 0.55rem;
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 0.02em;
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 0.55rem;
            background: rgba(255,255,255,0.04);
        }
        #btn-hdr-ia-art-save.is-autosaved {
            color: #a7f3d0 !important;
            background: rgba(16,185,129,0.12);
            border-color: rgba(52,211,153,0.25);
            pointer-events: none;
            cursor: default;
        }
        #btn-hdr-ia-art-save.is-saving {
            color: #fde68a !important;
            pointer-events: none;
        }
        #btn-hdr-ia-art-save.is-save-error {
            color: #fecaca !important;
            background: rgba(244,63,94,0.12);
            border-color: rgba(251,113,133,0.35);
            pointer-events: auto;
            cursor: pointer;
        }
        #header-ia-art-tools .hdr-btn:hover {
            border-color: rgba(167,139,250,0.35);
        }
        #header-ia-art-tools .hdr-btn i,
        #header-ia-art-tools .hdr-btn svg {
            width: 0.875rem; height: 0.875rem;
        }
        @media (max-width: 640px) {
            #header-ia-art-tools .hdr-btn-label { display: none; }
        }
        #header-tools {
            display: inline-flex;
            align-items: stretch;
            gap: 0.125rem;
            padding: 0.2rem;
            background: rgba(255,255,255,0.035);
            border: 1px solid rgba(255,255,255,0.07);
            border-radius: 0.75rem;
            flex-shrink: 0;
        }
        #header-tools.hidden,
        #header-tools[style*="display: none"] {
            display: none !important;
        }
        #header-tools .hdr-btn.hidden,
        #header-tools .hdr-btn[style*="display: none"] {
            display: none !important;
        }
        #header-tools .hdr-btn:not(.hidden) {
            display: inline-flex !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important;
            justify-content: center;
            align-items: center;
            gap: 0.35rem;
            padding: 0.4rem 0.55rem;
            min-width: auto;
            min-height: auto;
            white-space: nowrap;
            text-align: left;
        }
        #header-tools .hdr-btn-label {
            display: inline !important;
            font-size: 0.5625rem;
            letter-spacing: 0.03em;
            line-height: 1;
            white-space: nowrap;
        }
        #header-tools .hdr-btn i,
        #header-tools .hdr-btn svg {
            flex-shrink: 0;
            display: block;
        }
        #header-tools .hdr-btn-secondary { color: #94a3b8; }
        #header-tools .hdr-btn-secondary i { color: #94a3b8; }
        #header-tools .hdr-btn-secondary:hover { color: #f1f5f9; }
        #header-tools .hdr-btn-secondary:hover i { color: #e2e8f0; }
        #header-actions > .hdr-btn:not(#header-tools .hdr-btn) {
            flex-shrink: 0;
        }
        @media (min-width: 640px) {
            .app-header {
                display: flex;
                flex-direction: row;
                flex-wrap: nowrap;
                gap: 0.75rem;
            }
            .app-header .header-brand { order: 1; }
            #header-actions { order: 2; }
            #header-ia-art-tools { order: 3; }
            #header-trailing { order: 4; margin-left: auto; }
            #header-tools .hdr-btn:not(.hidden) {
                padding: 0.45rem 0.65rem;
                gap: 0.4rem;
            }
            #header-tools .hdr-btn-label {
                font-size: 0.625rem;
            }
        }
        .hdr-btn {
            display: inline-flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            gap: 0.375rem;
            padding: 0.5rem 0.65rem;
            border-radius: 0.625rem;
            font-size: 0.625rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            line-height: 1;
            transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
            flex-shrink: 0;
            white-space: nowrap;
            border: 1px solid transparent;
        }
        .hdr-btn-label { display: none; }
        @media (min-width: 640px) {
            .hdr-btn { padding: 0.5rem 0.85rem; font-size: 0.6875rem; }
            .hdr-btn-label { display: inline; }
        }
        @media (max-width: 639px) {
            .hdr-btn-icon-only .hdr-btn-label { display: none !important; }
            .hdr-btn-compact {
                flex-direction: row !important;
                align-items: center !important;
                padding: 0.45rem 0.55rem;
                gap: 0.25rem;
            }
            .hdr-btn-compact .hdr-btn-label { display: inline; font-size: 0.5625rem; letter-spacing: 0.02em; }
        }
        .hdr-btn-primary {
            background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
            border-color: rgba(167, 139, 250, 0.5);
            color: #fff;
            box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255,255,255,0.12);
        }
        .hdr-btn-primary:hover {
            background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%);
            box-shadow: 0 6px 22px rgba(124, 58, 237, 0.5), inset 0 1px 0 rgba(255,255,255,0.15);
            transform: translateY(-1px);
        }
        .hdr-btn-primary i { color: #fff !important; }

        /* Voltar aos Quadros — chip de navegação legível */
        #btn-dashboard.hdr-btn-quadros,
        .hdr-btn-quadros {
            gap: 0.4rem;
            min-height: 2.25rem;
            padding: 0.5rem 0.85rem 0.5rem 0.65rem;
            border-radius: 0.75rem;
            border: 1px solid rgba(167, 139, 250, 0.42);
            background: linear-gradient(135deg, rgba(124, 58, 237, 0.28) 0%, rgba(99, 102, 241, 0.18) 100%);
            color: #f5f3ff;
            font-weight: 800;
            letter-spacing: 0.06em;
            box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.12), 0 6px 18px rgba(76, 29, 149, 0.22);
        }
        #btn-dashboard.hdr-btn-quadros:hover,
        .hdr-btn-quadros:hover {
            border-color: rgba(196, 181, 253, 0.6);
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.42) 0%, rgba(99, 102, 241, 0.3) 100%);
            color: #fff;
            transform: translateY(-1px);
            box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.2), 0 8px 22px rgba(60, 8, 123, 0.35);
        }
        #btn-dashboard.hdr-btn-quadros:active,
        .hdr-btn-quadros:active {
            transform: translateY(0);
        }
        #btn-dashboard .hdr-btn-label {
            display: inline;
            font-size: 0.6875rem;
        }
        #btn-dashboard i,
        #btn-dashboard svg {
            color: #ddd6fe !important;
            flex-shrink: 0;
        }
        #btn-dashboard:hover i,
        #btn-dashboard:hover svg {
            color: #fff !important;
        }
        @media (min-width: 640px) {
            #btn-dashboard.hdr-btn-quadros {
                min-height: 2.35rem;
                padding: 0.5rem 1rem 0.5rem 0.75rem;
            }
            #btn-dashboard .hdr-btn-label { font-size: 0.75rem; }
        }

        /* Barra flutuante inferior (mobile / app) */
        #app-mobile-nav {
            display: none;
            position: fixed;
            left: 50%;
            /* Sobe a pílula acima da home indicator — sem clip pela safe-area */
            bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px));
            transform: translateX(-50%) translateZ(0);
            z-index: 100;
            width: min(22.5rem, calc(100vw - 1.25rem));
            align-items: stretch;
            justify-content: space-between;
            gap: 0.15rem;
            padding: 0.4rem 0.45rem;
            border-radius: 999px;
            background: rgba(22, 24, 29, 0.94);
            border: 1px solid rgba(255,255,255,0.1);
            box-shadow: 0 12px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,0,0,0.35);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            pointer-events: auto;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
        }
        html.platform-ios #app-mobile-nav,
        html.is-native-app #app-mobile-nav {
            /* Folga extra no notch/home indicator de alguns iPhones */
            bottom: max(0.7rem, calc(0.45rem + env(safe-area-inset-bottom, 0px)));
        }
        html.has-mobile-nav #app-mobile-nav {
            display: flex;
        }
        #app-mobile-nav .am-nav-indicator {
            position: absolute;
            top: 0.35rem;
            bottom: 0.35rem;
            left: 0;
            width: 0;
            border-radius: 999px;
            background: rgba(59, 130, 246, 0.14);
            border: 1px solid rgba(96, 165, 250, 0.2);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
            transform: translateX(0);
            opacity: 0;
            transition:
                transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
                width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.2s ease;
            pointer-events: none;
            z-index: 0;
        }
        #app-mobile-nav .am-nav-item {
            flex: 1 1 0;
            min-width: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.2rem;
            padding: 0.35rem 0.2rem 0.3rem;
            border: 0;
            background: transparent;
            color: #94a3b8;
            border-radius: 999px;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
            position: relative;
            z-index: 1;
            transition: color 0.22s ease;
        }
        #app-mobile-nav .am-nav-icon {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2.15rem;
            height: 1.85rem;
            border-radius: 0.65rem;
            color: inherit;
            transition: background 0.25s ease, color 0.22s ease, transform 0.25s ease;
        }
        #app-mobile-nav .am-nav-icon i,
        #app-mobile-nav .am-nav-icon svg {
            width: 1.15rem;
            height: 1.15rem;
            display: block;
        }
        #app-mobile-nav .am-nav-label {
            font-size: 0.5625rem;
            font-weight: 700;
            letter-spacing: 0.01em;
            line-height: 1.1;
            white-space: nowrap;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: color 0.22s ease;
        }
        #app-mobile-nav .am-nav-item.is-active {
            color: #60a5fa;
        }
        #app-mobile-nav .am-nav-item.is-active .am-nav-icon {
            background: rgba(59, 130, 246, 0.16);
            color: #60a5fa;
        }
        #app-mobile-nav .am-nav-item.is-active.is-just-activated .am-nav-icon {
            animation: am-nav-icon-pop 0.38s cubic-bezier(0.22, 1, 0.36, 1);
        }
        @keyframes am-nav-icon-pop {
            0% { transform: scale(0.86); }
            55% { transform: scale(1.08); }
            100% { transform: scale(1); }
        }
        #app-mobile-nav .am-nav-badge {
            position: absolute;
            top: -0.15rem;
            right: -0.2rem;
            min-width: 1rem;
            height: 1rem;
            padding: 0 0.25rem;
            border-radius: 999px;
            background: #ef4444;
            color: #fff;
            font-size: 0.5625rem;
            font-weight: 800;
            line-height: 1rem;
            text-align: center;
            box-shadow: 0 0 0 2px #16181d;
        }
        #app-mobile-nav .am-nav-badge:empty,
        #app-mobile-nav .am-nav-badge[data-count="0"] {
            display: none;
        }

        @media (prefers-reduced-motion: reduce) {
            #app-mobile-nav .am-nav-indicator {
                transition: none !important;
            }
            #app-mobile-nav .am-nav-item.is-active.is-just-activated .am-nav-icon {
                animation: none !important;
            }
        }
        html.has-mobile-nav #btn-dashboard,
        html.has-mobile-nav #btn-workspace-settings,
        html.has-mobile-nav #btn-brainstorm,
        html.is-native-app #btn-brainstorm {
            display: none !important;
        }
        html.has-mobile-nav #dashboard-view,
        html.is-native-app #dashboard-view,
        html.platform-ios #dashboard-view {
            flex: 1 1 0% !important;
            min-height: 0 !important;
            max-height: 100% !important;
            overflow: hidden !important;
        }
        #dashboard-scroll,
        .dashboard-scroll {
            flex: 1 1 0%;
            min-height: 0;
            max-height: 100%;
            overflow-x: hidden;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior-y: contain;
            touch-action: pan-y;
        }
        html.has-mobile-nav #dashboard-scroll,
        html.is-native-app #dashboard-scroll,
        html.platform-ios #dashboard-scroll {
            padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)) !important;
            touch-action: pan-y !important;
        }
        .board-dash-card,
        .board-dash-add {
            touch-action: pan-y;
            -webkit-user-select: none;
            user-select: none;
        }
        /* Abas “parked” fora da hit-area — evita WebKit interceptar pan vertical */
        html.has-mobile-nav #dashboard-view.dash-nav-quadros #global-demands-section,
        html.has-mobile-nav #dashboard-view.dash-nav-quadros #filmmaker-agenda-section,
        html.has-mobile-nav #dashboard-view.dash-nav-quadros #conta-view,
        html.has-mobile-nav #dashboard-view.dash-nav-demandas .dash-hero,
        html.has-mobile-nav #dashboard-view.dash-nav-demandas #dashboard-boards-list,
        html.has-mobile-nav #dashboard-view.dash-nav-demandas #filmmaker-agenda-section,
        html.has-mobile-nav #dashboard-view.dash-nav-demandas #conta-view,
        html.has-mobile-nav #dashboard-view.dash-nav-agenda .dash-hero,
        html.has-mobile-nav #dashboard-view.dash-nav-agenda #dashboard-boards-list,
        html.has-mobile-nav #dashboard-view.dash-nav-agenda #global-demands-section,
        html.has-mobile-nav #dashboard-view.dash-nav-agenda #conta-view,
        html.has-mobile-nav #dashboard-view.dash-nav-conta .dash-hero,
        html.has-mobile-nav #dashboard-view.dash-nav-conta #dashboard-boards-list,
        html.has-mobile-nav #dashboard-view.dash-nav-conta #global-demands-section,
        html.has-mobile-nav #dashboard-view.dash-nav-conta #filmmaker-agenda-section {
            transform: translateX(-120vw) !important;
            width: 1px !important;
            min-width: 0 !important;
            max-width: 1px !important;
        }
        /* Kanban/colunas até o fim da tela — clearance do menu no scroll interno dos cards */
        html.has-mobile-nav #workspace-view,
        html.is-native-app #workspace-view {
            padding-bottom: 0 !important;
        }
        #workspace-kanban {
            flex: 1 1 0%;
            min-height: 0;
            width: 100%;
        }
        html.has-mobile-nav #kanban-board,
        html.is-native-app #kanban-board {
            padding-top: 0.55rem !important;
            padding-bottom: 0 !important;
        }
        html.has-mobile-nav .kanban-col,
        html.is-native-app .kanban-col {
            border-bottom-left-radius: 0 !important;
            border-bottom-right-radius: 0 !important;
            margin-bottom: 0 !important;
        }
        /* Espaço extra no fim da lista — último cartão sobe acima do menu + home indicator */
        html.has-mobile-nav .kanban-col-cards,
        html.is-native-app .kanban-col-cards,
        html.platform-ios .kanban-col-cards {
            padding-bottom: calc(7.75rem + env(safe-area-inset-bottom, 0px)) !important;
            scroll-padding-bottom: calc(7.75rem + env(safe-area-inset-bottom, 0px));
        }
        html.has-mobile-nav #workspace-overview,
        html.has-mobile-nav #workspace-captacoes,
        html.is-native-app #workspace-overview,
        html.is-native-app #workspace-captacoes {
            padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)) !important;
        }
        html.has-mobile-nav #workspace-cronograma,
        html.has-mobile-nav #workspace-ia-art {
            padding-bottom: 0 !important;
        }
        html.has-mobile-nav #cronograma-grid,
        html.has-mobile-nav .cronograma-workspace .cronograma-scroll,
        html.has-mobile-nav #workspace-ia-art .ia-art-shell {
            padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
        }
        /* Esconde abas inativas sem display:none — no iOS isso evita reload de imgs/Lottie */
        html.has-mobile-nav #dashboard-view.dash-nav-quadros #global-demands-section,
        html.has-mobile-nav #dashboard-view.dash-nav-quadros #filmmaker-agenda-section,
        html.has-mobile-nav #dashboard-view.dash-nav-quadros #conta-view,
        html.has-mobile-nav #dashboard-view.dash-nav-demandas .dash-hero,
        html.has-mobile-nav #dashboard-view.dash-nav-demandas #dashboard-boards-list,
        html.has-mobile-nav #dashboard-view.dash-nav-demandas #filmmaker-agenda-section,
        html.has-mobile-nav #dashboard-view.dash-nav-demandas #conta-view,
        html.has-mobile-nav #dashboard-view.dash-nav-agenda .dash-hero,
        html.has-mobile-nav #dashboard-view.dash-nav-agenda #dashboard-boards-list,
        html.has-mobile-nav #dashboard-view.dash-nav-agenda #global-demands-section,
        html.has-mobile-nav #dashboard-view.dash-nav-agenda #conta-view,
        html.has-mobile-nav #dashboard-view.dash-nav-conta .dash-hero,
        html.has-mobile-nav #dashboard-view.dash-nav-conta #dashboard-boards-list,
        html.has-mobile-nav #dashboard-view.dash-nav-conta #global-demands-section,
        html.has-mobile-nav #dashboard-view.dash-nav-conta #filmmaker-agenda-section {
            position: absolute !important;
            left: 0 !important;
            right: 0 !important;
            top: 0 !important;
            height: 0 !important;
            max-height: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
            overflow: hidden !important;
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
            border: none !important;
            z-index: -1 !important;
        }
        html.has-mobile-nav #dashboard-view.dash-nav-demandas #global-demands-section,
        html.has-mobile-nav #dashboard-view.dash-nav-agenda #filmmaker-agenda-section {
            margin-top: 0 !important;
        }
        #conta-view { display: none; }
        html.has-mobile-nav #dashboard-view.dash-nav-conta #conta-view {
            display: block !important;
            position: relative !important;
            height: auto !important;
            max-height: none !important;
            width: auto !important;
            max-width: none !important;
            min-width: 0 !important;
            transform: none !important;
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: auto !important;
            overflow: visible !important;
            z-index: auto !important;
        }
        /* Conta: esconde o header inteiro (barra + logo Fluxo) */
        html.is-conta-tab #app-header,
        #app-header.is-conta-hidden {
            display: none !important;
            height: 0 !important;
            min-height: 0 !important;
            padding: 0 !important;
            margin: 0 !important;
            border: none !important;
            overflow: hidden !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }
        html.has-mobile-nav #btn-logout { display: none !important; }

        /* Tela Conta — estilo settings iOS */
        .conta-screen {
            max-width: 28rem;
            margin: 0 auto;
            padding: 0.25rem 0.15rem 1rem;
        }
        .conta-screen-title {
            font-size: 1.75rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            color: #fff;
            margin: 0.15rem 0 1.1rem;
            line-height: 1.15;
        }
        .conta-card {
            background: #1c1c1e;
            border-radius: 1rem;
            overflow: hidden;
            border: 1px solid rgba(255,255,255,0.06);
        }
        .conta-profile {
            display: flex;
            align-items: center;
            gap: 0.85rem;
            padding: 0.9rem 1rem;
            width: 100%;
            text-align: left;
            cursor: pointer;
            transition: background 0.15s ease;
            -webkit-tap-highlight-color: transparent;
        }
        button.conta-profile:hover,
        button.conta-profile:active {
            background: #2c2c2e;
        }
        button.conta-profile .conta-row-chevron {
            margin-left: auto;
            flex-shrink: 0;
            color: #636366;
        }
        button.conta-profile .conta-row-chevron svg {
            width: 1.1rem;
            height: 1.1rem;
        }
        .conta-avatar {
            width: 3.15rem;
            height: 3.15rem;
            border-radius: 999px;
            object-fit: cover;
            background: #2c2c2e;
            flex-shrink: 0;
            border: 1px solid rgba(255,255,255,0.08);
        }
        /* Conta — painel de perfil / senha (layout limpo) */
        .account-settings-stack {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        .account-profile-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 0.85rem;
            padding: 1.35rem 1.15rem 1.2rem;
            border-radius: 1.25rem;
            background: #14161c;
            border: 1px solid rgba(255,255,255,0.06);
        }
        .account-photo-wrap {
            position: relative;
            flex-shrink: 0;
        }
        .account-photo {
            width: 5.5rem;
            height: 5.5rem;
            border-radius: 999px;
            object-fit: cover;
            background: #0d0f14;
            border: 2px solid rgba(255,255,255,0.1);
            display: block;
            box-shadow: 0 8px 28px rgba(0,0,0,0.35);
        }
        .account-photo-edit {
            position: absolute;
            right: 0;
            bottom: 0;
            width: 1.85rem;
            height: 1.85rem;
            border-radius: 999px;
            border: 2px solid #14161c;
            background: #7c3aed;
            color: #fff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        .account-photo-edit:hover { background: #8b5cf6; }
        .account-photo-edit i,
        .account-photo-edit svg {
            width: 0.9rem;
            height: 0.9rem;
        }
        .account-profile-meta {
            min-width: 0;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.2rem;
        }
        .account-profile-name {
            margin: 0;
            font-size: 1.15rem;
            font-weight: 800;
            color: #fff;
            line-height: 1.2;
            letter-spacing: -0.02em;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .account-profile-name-row {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.45rem;
            width: 100%;
            max-width: 18rem;
        }
        .account-profile-name-input {
            width: 100%;
            margin: 0;
            padding: 0.45rem 0.7rem;
            border-radius: 0.7rem;
            border: 1px solid rgba(255,255,255,0.12);
            background: rgba(0,0,0,0.28);
            color: #fff;
            font-size: 1.05rem;
            font-weight: 800;
            line-height: 1.25;
            letter-spacing: -0.02em;
            text-align: center;
            outline: none;
        }
        .account-profile-name-input:focus {
            border-color: rgba(167,139,250,0.55);
            box-shadow: 0 0 0 2px rgba(139,92,246,0.2);
        }
        .account-profile-name-save {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            padding: 0.4rem 0.75rem;
            border-radius: 999px;
            border: 1px solid rgba(167,139,250,0.35);
            background: rgba(139,92,246,0.18);
            color: #ddd6fe;
            font-size: 0.6875rem;
            font-weight: 700;
            cursor: pointer;
        }
        .account-profile-name-save:hover { background: rgba(139,92,246,0.28); }
        .account-profile-name-save:disabled { opacity: 0.55; cursor: wait; }
        .account-profile-name-save i,
        .account-profile-name-save svg {
            width: 0.8rem;
            height: 0.8rem;
        }
        .account-profile-email {
            margin: 0;
            font-size: 0.8rem;
            color: #94a3b8;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .account-photo-actions {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.45rem;
            margin-top: 0.55rem;
        }
        .account-photo-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.5rem 0.85rem;
            border-radius: 999px;
            border: 1px solid rgba(255,255,255,0.1);
            background: rgba(255,255,255,0.04);
            color: #e2e8f0;
            font-size: 0.75rem;
            font-weight: 700;
            cursor: pointer;
        }
        .account-photo-btn:hover { background: rgba(255,255,255,0.08); }
        .account-photo-btn.is-muted { color: #94a3b8; }
        .account-photo-btn i,
        .account-photo-btn svg {
            width: 0.85rem;
            height: 0.85rem;
        }
        .account-photo-hint {
            margin: 0.15rem 0 0;
            font-size: 0.65rem;
            color: #64748b;
            line-height: 1.35;
        }
        .account-password-card {
            padding: 0.85rem 0.9rem 0.95rem;
            border-radius: 1rem;
            background: #14161c;
            border: 1px solid rgba(255,255,255,0.06);
        }
        .account-password-head {
            margin-bottom: 0.7rem;
            padding-bottom: 0.65rem;
            border-bottom: 1px solid rgba(255,255,255,0.06);
        }
        .account-password-title {
            margin: 0;
            font-size: 0.875rem;
            font-weight: 750;
            color: #fff;
            letter-spacing: -0.015em;
        }
        .account-password-note {
            margin: 0.25rem 0 0;
            font-size: 0.65rem;
            color: #94a3b8;
            line-height: 1.4;
        }
        .account-password-fields {
            display: flex;
            flex-direction: column;
            gap: 0.55rem;
        }
        .account-password-ok {
            margin: 0;
            display: flex;
            align-items: flex-start;
            gap: 0.35rem;
            font-size: 0.65rem;
            color: #a7f3d0;
            line-height: 1.35;
        }
        .account-password-ok i,
        .account-password-ok svg {
            width: 0.85rem;
            height: 0.85rem;
            flex-shrink: 0;
            margin-top: 0.05rem;
            color: #34d399;
        }
        .account-field {
            display: flex;
            flex-direction: column;
            gap: 0.28rem;
        }
        .account-field span {
            font-size: 0.625rem;
            font-weight: 700;
            letter-spacing: 0.02em;
            text-transform: none;
            color: #94a3b8;
        }
        .account-field input {
            width: 100%;
            padding: 0.6rem 0.75rem;
            border-radius: 0.7rem;
            border: 1px solid rgba(255,255,255,0.08);
            background: #0b0d10;
            color: #fff;
            font-size: 0.8125rem;
            outline: none;
        }
        .account-field input:focus {
            border-color: rgba(167,139,250,0.45);
            box-shadow: 0 0 0 2px rgba(124,58,237,0.12);
        }
        .account-primary-btn,
        .account-secondary-btn {
            width: 100%;
            margin-top: 0.2rem;
            padding: 0.7rem 0.85rem;
            border-radius: 0.75rem;
            font-size: 0.8125rem;
            font-weight: 750;
            cursor: pointer;
            border: 0;
        }
        .account-primary-btn {
            background: #7c3aed;
            color: #fff;
        }
        .account-primary-btn:hover { background: #8b5cf6; }
        .account-secondary-btn {
            background: rgba(255,255,255,0.06);
            color: #fff;
            border: 1px solid rgba(255,255,255,0.1);
        }
        .account-secondary-btn:hover { background: rgba(255,255,255,0.1); }

        /* Modais de config — afastam da Dynamic Island / notch */
        #workspace-settings-modal,
        #settings-modal {
            align-items: center;
            justify-content: center;
            padding:
                max(0.75rem, calc(env(safe-area-inset-top, 0px) + 0.35rem))
                max(0.75rem, env(safe-area-inset-right, 0px))
                max(0.75rem, calc(env(safe-area-inset-bottom, 0px) + 0.35rem))
                max(0.75rem, env(safe-area-inset-left, 0px));
            box-sizing: border-box;
        }
        #workspace-settings-modal > div,
        #settings-modal > div {
            max-height: min(92dvh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 1.5rem));
        }
        html.platform-ios #workspace-settings-modal,
        html.is-native-app #workspace-settings-modal,
        html.platform-ios #settings-modal,
        html.is-native-app #settings-modal,
        html.has-mobile-nav #workspace-settings-modal,
        html.has-mobile-nav #settings-modal {
            align-items: flex-start;
            padding-top: max(1.1rem, calc(env(safe-area-inset-top, 0px) + 0.65rem));
            padding-bottom: max(1rem, calc(env(safe-area-inset-bottom, 0px) + 0.55rem));
        }
        /* WhatsApp focado: centraliza o card na tela (evita ficar colado no topo) */
        #workspace-settings-modal.is-wa-centered,
        html.platform-ios #workspace-settings-modal.is-wa-centered,
        html.is-native-app #workspace-settings-modal.is-wa-centered,
        html.has-mobile-nav #workspace-settings-modal.is-wa-centered {
            align-items: center !important;
            justify-content: center !important;
            padding-top: max(1rem, calc(env(safe-area-inset-top, 0px) + 0.75rem)) !important;
            padding-bottom: max(1rem, calc(env(safe-area-inset-bottom, 0px) + 0.75rem)) !important;
        }
        #workspace-settings-modal.is-wa-centered > div {
            width: min(100%, 28rem);
            max-height: min(88dvh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 2rem));
            margin: 0 auto;
        }
        html.platform-ios #workspace-settings-modal > div,
        html.is-native-app #workspace-settings-modal > div,
        html.platform-ios #settings-modal > div,
        html.is-native-app #settings-modal > div,
        html.has-mobile-nav #workspace-settings-modal > div,
        html.has-mobile-nav #settings-modal > div {
            max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 2.2rem);
            margin-top: 0;
        }

        /* Configurações do quadro — abas + Perfil IA */
        #settings-modal .settings-modal-head {
            display: flex;
            align-items: flex-start;
            gap: 0.55rem;
            padding: 0.95rem 1rem;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            flex-shrink: 0;
            background: #15171c;
        }
        #settings-modal .settings-back-btn {
            display: none;
            align-items: center;
            justify-content: center;
            width: 2.35rem;
            height: 2.35rem;
            margin-top: 0.05rem;
            border-radius: 0.7rem;
            border: 1px solid rgba(255,255,255,0.08);
            background: rgba(255,255,255,0.04);
            color: #c4b5fd;
            flex-shrink: 0;
        }
        #settings-modal .settings-back-btn:hover {
            background: rgba(139,92,246,0.16);
            color: #ede9fe;
        }
        #settings-modal .settings-back-btn i,
        #settings-modal .settings-back-btn svg {
            width: 1.15rem;
            height: 1.15rem;
        }
        #settings-modal .settings-modal-titles {
            flex: 1 1 auto;
            min-width: 0;
            padding-top: 0.15rem;
        }
        #settings-modal #settings-modal-title {
            margin: 0;
            font-size: 1.05rem;
            font-weight: 800;
            color: #fff;
            line-height: 1.25;
        }
        #settings-modal .settings-modal-subtitle {
            margin: 0.2rem 0 0;
            font-size: 0.6875rem;
            color: #64748b;
            line-height: 1.4;
        }
        #settings-modal .settings-modal-subtitle[hidden] { display: none !important; }
        #settings-modal .settings-close-btn {
            flex-shrink: 0;
            padding: 0.5rem;
            border-radius: 0.7rem;
            color: #94a3b8;
        }
        #settings-modal .settings-close-btn:hover { background: rgba(255,255,255,0.05); color: #e2e8f0; }
        #settings-modal.is-section-focus .settings-back-btn { display: inline-flex; }
        #settings-modal.is-section-focus .settings-tabs { display: none !important; }
        /* Mesma geometria do board-tools-sheet — evita “pulo” ao voltar das seções */
        html.has-mobile-nav #settings-modal.is-section-focus,
        html.is-native-app #settings-modal.is-section-focus,
        html.platform-ios #settings-modal.is-section-focus {
            align-items: flex-end !important;
            justify-content: center !important;
            padding:
                0.55rem
                0.65rem
                calc(5.35rem + env(safe-area-inset-bottom, 0px))
                0.65rem !important;
        }
        html.platform-ios #settings-modal.is-section-focus,
        html.is-native-app #settings-modal.is-section-focus {
            padding-bottom: calc(5.55rem + env(safe-area-inset-bottom, 0px)) !important;
        }
        html.has-mobile-nav #settings-modal.is-section-focus > div,
        html.is-native-app #settings-modal.is-section-focus > div,
        html.platform-ios #settings-modal.is-section-focus > div {
            width: 100%;
            max-width: none;
            margin: 0;
            border-radius: 1.15rem;
            max-height: min(70dvh, calc(100dvh - 7.5rem - env(safe-area-inset-bottom, 0px)));
            box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.45);
        }
        .board-tools-sheet.is-instant {
            animation: none !important;
        }
        #settings-modal .settings-tabs {
            display: flex;
            gap: 0.1rem;
            padding: 0 0.65rem;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            background: #12141a;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            flex-shrink: 0;
        }
        #settings-modal .settings-tabs::-webkit-scrollbar { display: none; }
        #settings-modal .settings-tab {
            flex: 0 0 auto;
            margin: 0;
            padding: 0.9rem 0.8rem 0.75rem;
            border: 0;
            border-bottom: 2px solid transparent;
            background: transparent;
            color: #64748b;
            font-size: 0.66rem;
            font-weight: 800;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            white-space: nowrap;
            cursor: pointer;
            transition: color 0.15s ease, border-color 0.15s ease;
        }
        #settings-modal .settings-tab:hover { color: #cbd5e1; }
        #settings-modal .settings-tab.is-active {
            color: #ddd6fe;
            border-bottom-color: #8b5cf6;
        }
        #settings-modal .settings-tab.is-hidden,
        #settings-modal .settings-tab[hidden] {
            display: none !important;
        }
        #settings-modal .settings-body {
            padding: 0.85rem 0.85rem 1.25rem;
            overflow-y: auto;
            overflow-x: hidden;
            background: #0b0d10;
            border-radius: 0 0 1rem 1rem;
            flex: 1 1 0%;
            min-height: 0;
        }
        @media (min-width: 640px) {
            #settings-modal .settings-body {
                padding: 1.15rem 1.35rem 1.5rem;
            }
            #settings-modal .settings-modal-head {
                padding: 1.15rem 1.35rem;
            }
            #settings-modal #settings-modal-title { font-size: 1.2rem; }
        }

        .set-stack {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }
        .set-card {
            padding: 1rem 1rem 1.05rem;
            border-radius: 1rem;
            background: rgba(255, 255, 255, 0.025);
            border: 1px solid rgba(255, 255, 255, 0.06);
        }
        .set-card.is-ig,
        .set-card.is-wa {
            border-color: rgba(255, 255, 255, 0.06);
            background: rgba(255, 255, 255, 0.025);
        }
        .set-card-head {
            display: flex;
            align-items: flex-start;
            gap: 0.7rem;
            margin-bottom: 0.85rem;
        }
        .set-card-icon {
            width: 2.2rem;
            height: 2.2rem;
            border-radius: 0.7rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            background: rgba(255, 255, 255, 0.05);
            color: #a78bfa;
            border: 1px solid rgba(255, 255, 255, 0.06);
        }
        .set-card.is-ig .set-card-icon { background: rgba(255, 255, 255, 0.05); color: #e2e8f0; }
        .set-card.is-wa .set-card-icon { background: rgba(255, 255, 255, 0.05); color: #e2e8f0; }
        .set-card-icon i,
        .set-card-icon svg { width: 1.05rem; height: 1.05rem; }
        .set-card-title {
            margin: 0;
            font-size: 0.9rem;
            font-weight: 750;
            color: #f8fafc;
            line-height: 1.25;
            letter-spacing: -0.01em;
        }
        .set-card-desc {
            margin: 0.2rem 0 0;
            font-size: 0.6875rem;
            color: #64748b;
            line-height: 1.4;
        }
        .set-status {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            max-width: 100%;
            padding: 0.35rem 0.65rem;
            border-radius: 999px;
            font-size: 0.625rem;
            font-weight: 700;
            margin-bottom: 0.75rem;
            border: 1px solid transparent;
        }
        .set-status.is-ok {
            background: rgba(255, 255, 255, 0.04);
            border-color: rgba(255, 255, 255, 0.08);
            color: #94a3b8;
        }
        .set-status.is-ok i,
        .set-status.is-ok svg { color: #34d399; width: 0.85rem; height: 0.85rem; flex-shrink: 0; }
        .set-status.is-warn {
            background: rgba(255, 255, 255, 0.03);
            border-color: rgba(255, 255, 255, 0.07);
            color: #94a3b8;
        }
        .set-account {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.65rem;
            padding: 0.7rem 0.75rem;
            border-radius: 0.8rem;
            background: #0b0d10;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }
        .set-account + .set-account { margin-top: 0.4rem; }
        .set-account-list {
            margin-bottom: 0.75rem;
            max-height: 28vh;
            overflow-y: auto;
        }
        .set-account-handle {
            margin: 0;
            font-size: 0.8125rem;
            font-weight: 700;
            color: #f1f5f9;
            letter-spacing: -0.01em;
        }
        .set-account-meta {
            margin: 0.15rem 0 0;
            font-size: 0.625rem;
            color: #64748b;
        }
        .set-account-actions {
            display: flex;
            gap: 0.3rem;
            flex-shrink: 0;
        }
        .set-account-actions button {
            font-size: 0.625rem;
            font-weight: 700;
            padding: 0.4rem 0.6rem;
            border-radius: 0.55rem;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.04);
            color: #cbd5e1;
        }
        .set-account-actions button:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
        }
        .set-account-actions button.is-danger {
            color: #fda4af;
            border-color: rgba(251, 113, 133, 0.2);
            background: rgba(244, 63, 94, 0.08);
        }
        .set-account-actions button.is-danger:hover {
            background: rgba(244, 63, 94, 0.16);
            color: #fecdd3;
        }
        .set-row {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        .set-input-wrap {
            display: flex;
            align-items: stretch;
            min-width: 0;
            border-radius: 0.75rem;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: #0b0d10;
        }
        .set-input-wrap:focus-within {
            border-color: rgba(167, 139, 250, 0.4);
            box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.12);
        }
        .set-input-prefix {
            display: inline-flex;
            align-items: center;
            padding: 0 0.75rem;
            font-size: 0.75rem;
            font-weight: 700;
            color: #64748b;
            background: transparent;
            border-right: 1px solid rgba(255, 255, 255, 0.06);
        }
        .set-input-wrap input {
            flex: 1 1 auto;
            min-width: 0;
            border: 0;
            background: transparent;
            color: #fff;
            padding: 0.75rem 0.8rem;
            font-size: 0.875rem;
            outline: none;
        }
        .set-save-btn {
            width: 100%;
            padding: 0.75rem 1rem;
            border-radius: 0.75rem;
            font-size: 0.8125rem;
            font-weight: 750;
            color: #fff;
            background: #7c3aed;
            border: 0;
        }
        .set-save-btn:hover { background: #8b5cf6; }
        .set-hint {
            margin: 0.55rem 0 0;
            font-size: 0.625rem;
            color: #64748b;
            line-height: 1.4;
        }
        .set-fb-btn {
            width: 100%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.55rem;
            padding: 0.8rem 1rem;
            border-radius: 0.75rem;
            background: #1877F2;
            color: #fff;
            font-size: 0.8125rem;
            font-weight: 750;
            border: 0;
        }
        .set-fb-btn:hover { filter: brightness(1.05); }
        .set-fb-btn svg { width: 1.05rem; height: 1.05rem; }
        .set-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
            margin-top: 0.7rem;
        }
        .set-actions button {
            padding: 0.55rem 0.8rem;
            border-radius: 0.65rem;
            font-size: 0.6875rem;
            font-weight: 700;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.04);
            color: #cbd5e1;
        }
        .set-actions button:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
        }
        .set-actions button.is-primary {
            background: #7c3aed;
            border-color: transparent;
            color: #fff;
        }
        .set-actions button.is-primary:hover { background: #8b5cf6; }
        .set-actions button.is-danger {
            color: #fda4af;
            border-color: rgba(251, 113, 133, 0.2);
            background: rgba(244, 63, 94, 0.08);
        }
        .set-details {
            margin-top: 0.7rem;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            padding-top: 0.65rem;
        }
        .set-details > summary {
            list-style: none;
            cursor: pointer;
            font-size: 0.625rem;
            font-weight: 750;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: #64748b;
            user-select: none;
        }
        .set-details > summary::-webkit-details-marker { display: none; }
        .set-details > summary:hover { color: #94a3b8; }
        .set-details[open] > summary { color: #a78bfa; }
        .set-details-body {
            margin-top: 0.7rem;
            display: flex;
            flex-direction: column;
            gap: 0.65rem;
        }
        .set-field label {
            display: block;
            margin-bottom: 0.3rem;
            font-size: 0.625rem;
            font-weight: 700;
            color: #64748b;
        }
        .set-field input,
        .set-field select {
            width: 100%;
            padding: 0.7rem 0.8rem;
            border-radius: 0.7rem;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: #0b0d10;
            color: #fff;
            font-size: 0.8125rem;
            outline: none;
        }
        .set-field input:focus,
        .set-field select:focus {
            border-color: rgba(167, 139, 250, 0.4);
        }
        .set-help-card {
            padding: 0.85rem 0.95rem;
        }
        .set-help-card summary {
            font-size: 0.6875rem;
            font-weight: 700;
            color: #94a3b8;
            cursor: pointer;
            list-style: none;
        }
        .set-help-card summary::-webkit-details-marker { display: none; }
        .set-help-body {
            margin-top: 0.7rem;
            padding-top: 0.7rem;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            display: flex;
            flex-direction: column;
            gap: 0.45rem;
            font-size: 0.6875rem;
            color: #64748b;
            line-height: 1.45;
        }
        .set-help-body code {
            color: #93c5fd;
            font-size: 0.625rem;
            word-break: break-all;
        }
        .set-help-body b { color: #cbd5e1; font-weight: 700; }

        .board-tools-item-copy {
            display: flex;
            flex-direction: column;
            gap: 0.12rem;
            min-width: 0;
            flex: 1 1 auto;
            text-align: left;
        }
        .board-tools-item-copy strong {
            font-size: 0.875rem;
            font-weight: 750;
            color: inherit;
        }
        .board-tools-item-copy small {
            font-size: 0.625rem;
            font-weight: 550;
            color: #64748b;
            line-height: 1.3;
        }
        .board-tools-item:hover .board-tools-item-copy small,
        .board-tools-item:active .board-tools-item-copy small {
            color: #94a3b8;
        }

        .ai-prof {
            display: flex;
            flex-direction: column;
            gap: 1.1rem;
            padding-bottom: 0.35rem;
        }
        .ai-prof-hero {
            padding: 1rem 1.05rem 1.05rem;
            border-radius: 1.1rem;
            background: #16181f;
            border: 1px solid rgba(255,255,255,0.07);
            position: relative;
            overflow: hidden;
        }
        .ai-prof-hero::before {
            content: "";
            position: absolute;
            inset: 0 auto 0 0;
            width: 3px;
            background: linear-gradient(180deg, #a78bfa, #7c3aed 60%, transparent);
            opacity: 0.9;
        }
        .ai-prof-hero-top {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
        }
        .ai-prof-icon {
            width: 2.25rem;
            height: 2.25rem;
            border-radius: 0.7rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            background: rgba(124,58,237,0.16);
            color: #c4b5fd;
        }
        .ai-prof-icon i,
        .ai-prof-icon svg {
            width: 1.1rem;
            height: 1.1rem;
        }
        .ai-prof-title {
            margin: 0;
            font-size: 1rem;
            font-weight: 750;
            color: #fff;
            letter-spacing: -0.015em;
            line-height: 1.2;
        }
        .ai-prof-lead {
            margin: 0.35rem 0 0;
            font-size: 0.75rem;
            line-height: 1.45;
            color: #94a3b8;
        }
        .ai-prof-lead b { color: #e9e2ff; font-weight: 700; }
        .ai-prof-hero-actions {
            margin-top: 0.9rem;
        }
        .ai-prof-analyze {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.45rem;
            width: 100%;
            padding: 0.78rem 1rem;
            border-radius: 0.85rem;
            border: 1px solid rgba(167,139,250,0.35);
            background: rgba(124,58,237,0.14);
            color: #ddd6fe;
            font-size: 0.78rem;
            font-weight: 750;
            cursor: pointer;
        }
        .ai-prof-analyze:hover {
            background: rgba(124,58,237,0.22);
            border-color: rgba(167,139,250,0.5);
            color: #fff;
        }
        .ai-prof-analyze:disabled {
            opacity: 0.45;
            cursor: not-allowed;
        }
        .ai-prof-analyze i,
        .ai-prof-analyze svg {
            width: 0.95rem;
            height: 0.95rem;
        }
        .ai-prof-status {
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
            margin: 0.75rem 0 0;
            padding: 0.7rem 0.8rem;
            border-radius: 0.8rem;
            line-height: 1.35;
        }
        .ai-prof-status.is-ok {
            color: #bbf7d0;
            background: rgba(16,185,129,0.08);
            border: 1px solid rgba(16,185,129,0.18);
        }
        .ai-prof-status.is-warn {
            color: #fde68a;
            background: rgba(245,158,11,0.08);
            border: 1px solid rgba(245,158,11,0.18);
        }
        .ai-prof-status-main {
            display: flex;
            align-items: center;
            gap: 0.45rem;
            font-size: 0.78rem;
            font-weight: 700;
        }
        .ai-prof-status-dot {
            width: 0.4rem;
            height: 0.4rem;
            border-radius: 999px;
            background: currentColor;
            flex-shrink: 0;
        }
        .ai-prof-status-meta {
            margin: 0;
            padding-left: 0.85rem;
            font-size: 0.68rem;
            font-weight: 500;
            opacity: 0.78;
            color: inherit;
        }
        .ai-prof-section {
            display: flex;
            flex-direction: column;
            gap: 0.65rem;
        }
        .ai-prof-section-title {
            margin: 0;
            padding: 0 0.15rem;
            font-size: 0.68rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #64748b;
        }
        .ai-prof-grid {
            display: grid;
            gap: 0.65rem;
        }
        @media (min-width: 640px) {
            .ai-prof-grid.is-split {
                grid-template-columns: 1fr 1fr;
                align-items: start;
            }
        }
        .ai-prof-card {
            padding: 0.9rem 0.95rem 1rem;
            border-radius: 1rem;
            background: #16181f;
            border: 1px solid rgba(255,255,255,0.06);
        }
        .ai-prof-card-head {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 0.5rem;
            margin-bottom: 0.65rem;
        }
        .ai-prof-card-label {
            display: block;
            margin: 0;
            font-size: 0.7rem;
            font-weight: 750;
            letter-spacing: 0.02em;
            text-transform: none;
            color: #cbd5e1;
        }
        .ai-prof-card-count {
            font-size: 0.62rem;
            font-weight: 700;
            color: #64748b;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 999px;
            padding: 0.15rem 0.45rem;
        }
        .ai-prof-card-hint {
            margin: -0.35rem 0 0.7rem;
            font-size: 0.68rem;
            color: #64748b;
            line-height: 1.4;
        }
        .ai-prof-textarea {
            width: 100%;
            min-height: 6.5rem;
            padding: 0;
            border: 0;
            border-radius: 0;
            background: transparent;
            color: #f1f5f9;
            font-size: 0.875rem;
            line-height: 1.55;
            outline: none;
            resize: vertical;
        }
        .ai-prof-textarea::placeholder,
        .ai-prof-input::placeholder {
            color: #64748b;
        }
        .ai-prof-textarea:focus {
            box-shadow: none;
        }
        .ai-prof-list {
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
        }
        .ai-prof-row {
            display: flex;
            align-items: stretch;
            gap: 0;
            border-radius: 0.8rem;
            border: 1px solid rgba(255,255,255,0.07);
            background: #0d0f14;
            overflow: hidden;
        }
        .ai-prof-row .ai-prof-input {
            flex: 1;
            min-width: 0;
            width: auto;
            padding: 0.72rem 0.85rem;
            border: 0;
            border-radius: 0;
            background: transparent;
            color: #f8fafc;
            font-size: 0.875rem;
            line-height: 1.4;
            outline: none;
            box-shadow: none;
        }
        .ai-prof-row .ai-prof-input:focus {
            box-shadow: none;
        }
        .ai-prof-row:focus-within {
            border-color: rgba(167,139,250,0.4);
            box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
        }
        .ai-prof-remove {
            width: 2.4rem;
            border: 0;
            border-left: 1px solid rgba(255,255,255,0.06);
            border-radius: 0;
            background: transparent;
            color: #64748b;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            cursor: pointer;
        }
        .ai-prof-remove:hover {
            color: #fb7185;
            background: rgba(244,63,94,0.08);
        }
        .ai-prof-remove i,
        .ai-prof-remove svg {
            width: 0.9rem;
            height: 0.9rem;
        }
        .ai-prof-add {
            margin-top: 0.15rem;
            width: 100%;
            padding: 0.62rem 0.75rem;
            border-radius: 0.8rem;
            border: 1px dashed rgba(148,163,184,0.28);
            background: transparent;
            color: #a78bfa;
            font-size: 0.72rem;
            font-weight: 700;
            cursor: pointer;
        }
        .ai-prof-add:hover {
            border-color: rgba(167,139,250,0.45);
            background: rgba(124,58,237,0.08);
            color: #ddd6fe;
        }
        .ai-prof-footer {
            position: static;
            display: flex;
            flex-direction: column;
            gap: 0.55rem;
            margin: 0.35rem 0 0;
            padding: 1rem 0 0.35rem;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            background: transparent;
        }
        .ai-prof-save {
            width: 100%;
            padding: 0.9rem 1.15rem;
            border-radius: 0.95rem;
            border: 0;
            background: #7c3aed;
            color: #fff;
            font-size: 0.84rem;
            font-weight: 750;
            cursor: pointer;
            box-shadow: 0 10px 28px rgba(124,58,237,0.28);
        }
        .ai-prof-save:hover { background: #8b5cf6; }
        @media (min-width: 480px) {
            .ai-prof-footer {
                flex-direction: row;
                align-items: center;
                justify-content: flex-end;
            }
            .ai-prof-save { width: auto; min-width: 12rem; }
            .ai-prof-analyze { width: auto; }
        }

        /* WhatsApp connect — layout limpo */
        .wa-connect {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        .wa-connect-card {
            padding: 1.35rem 1.15rem 1.25rem;
            border-radius: 1.25rem;
            background: #14161c;
            border: 1px solid rgba(255,255,255,0.06);
        }
        .wa-connect-card.is-live {
            border-color: rgba(52,211,153,0.18);
            background: linear-gradient(180deg, rgba(16,185,129,0.06) 0%, #14161c 42%);
        }
        .wa-connect-live {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 0.85rem;
            padding: 0.35rem 0.25rem 0.15rem;
        }
        .wa-connect-live-badge {
            width: 3.4rem;
            height: 3.4rem;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(16,185,129,0.14);
            color: #34d399;
            border: 1px solid rgba(52,211,153,0.28);
            position: relative;
        }
        .wa-connect-live-badge::before {
            content: "";
            position: absolute;
            inset: -4px;
            border-radius: inherit;
            border: 1px solid rgba(52,211,153,0.22);
            animation: wa-ring 2.4s ease-out infinite;
            pointer-events: none;
        }
        @keyframes wa-ring {
            0% { transform: scale(0.92); opacity: 0.7; }
            70% { transform: scale(1.12); opacity: 0; }
            100% { transform: scale(1.12); opacity: 0; }
        }
        .wa-connect-live-badge i,
        .wa-connect-live-badge svg {
            width: 1.45rem;
            height: 1.45rem;
        }
        .wa-connect-live-title {
            margin: 0;
            font-size: 1.05rem;
            font-weight: 800;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: #ecfdf5;
            background: linear-gradient(90deg, #6ee7b7 0%, #fff 45%, #34d399 100%);
            background-size: 180% 100%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: wa-conectado-shine 3.2s linear infinite;
        }
        @keyframes wa-conectado-shine {
            0% { background-position: 100% 50%; }
            100% { background-position: -100% 50%; }
        }
        .wa-connect-live-meta {
            margin: -0.35rem 0 0;
            font-size: 0.78rem;
            line-height: 1.45;
            color: #94a3b8;
            max-width: 16rem;
        }
        .wa-connect-head {
            display: flex;
            align-items: flex-start;
            gap: 0.85rem;
            margin-bottom: 1rem;
        }
        .wa-connect-icon {
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 0.85rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            background: rgba(16,185,129,0.12);
            color: #6ee7b7;
            border: 1px solid rgba(52,211,153,0.18);
        }
        .wa-connect-icon i,
        .wa-connect-icon svg {
            width: 1.15rem;
            height: 1.15rem;
        }
        .wa-connect-title {
            margin: 0;
            font-size: 1rem;
            font-weight: 750;
            color: #fff;
            letter-spacing: -0.015em;
        }
        .wa-connect-lead {
            margin: 0.3rem 0 0;
            font-size: 0.74rem;
            line-height: 1.45;
            color: #94a3b8;
        }
        .wa-connect-status {
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
            padding: 0.7rem 0.85rem;
            border-radius: 0.85rem;
            margin-bottom: 0.85rem;
        }
        .wa-connect-status.is-wait {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.07);
            color: #94a3b8;
        }
        .wa-connect-status.is-warn {
            background: rgba(245,158,11,0.1);
            border: 1px solid rgba(245,158,11,0.2);
            color: #fde68a;
        }
        .wa-connect-status-main {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.8rem;
            font-weight: 700;
        }
        .wa-connect-status-meta {
            margin: 0;
            padding-left: 1.25rem;
            font-size: 0.68rem;
            font-weight: 500;
            opacity: 0.8;
            line-height: 1.4;
        }
        .wa-connect-status-dot {
            width: 0.45rem;
            height: 0.45rem;
            border-radius: 999px;
            background: currentColor;
            flex-shrink: 0;
        }
        @media (prefers-reduced-motion: reduce) {
            .wa-connect-live-badge::before,
            .wa-connect-live-title {
                animation: none !important;
            }
            .wa-connect-live-title {
                color: #ecfdf5;
                -webkit-text-fill-color: #ecfdf5;
                background: none;
            }
        }
        .wa-connect-body {
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
            align-items: stretch;
        }
        @media (min-width: 480px) {
            .wa-connect-body.is-qr {
                flex-direction: row;
                align-items: center;
            }
        }
        .wa-connect-qr {
            width: 11rem;
            height: 11rem;
            border-radius: 1rem;
            background: #fff;
            padding: 0.5rem;
            object-fit: contain;
            flex-shrink: 0;
            align-self: center;
            box-shadow: 0 8px 24px rgba(0,0,0,0.25);
        }
        .wa-connect-qr.is-hidden { display: none; }
        .wa-connect-actions {
            display: flex;
            flex-direction: column;
            gap: 0.55rem;
            flex: 1;
            min-width: 0;
            width: 100%;
        }
        .wa-connect-primary {
            width: 100%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.9rem 1rem;
            border-radius: 0.9rem;
            border: 0;
            background: #059669;
            color: #fff;
            font-size: 0.875rem;
            font-weight: 750;
            cursor: pointer;
        }
        .wa-connect-primary:hover { background: #10b981; }
        .wa-connect-primary i,
        .wa-connect-primary svg {
            width: 1rem;
            height: 1rem;
        }
        .wa-connect-danger {
            width: 100%;
            max-width: 16rem;
            margin: 0.15rem auto 0;
            padding: 0.8rem 1rem;
            border-radius: 0.9rem;
            border: 1px solid rgba(244,63,94,0.22);
            background: transparent;
            color: #fb7185;
            font-size: 0.8rem;
            font-weight: 700;
            cursor: pointer;
        }
        .wa-connect-danger:hover {
            background: rgba(244,63,94,0.1);
        }
        .wa-connect-agency {
            margin-top: 0.15rem;
            padding-top: 1rem;
            border-top: 1px solid rgba(255,255,255,0.07);
            width: 100%;
            text-align: left;
        }
        .wa-connect-agency-title {
            margin: 0;
            font-size: 0.72rem;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: #a7f3d0;
        }
        .wa-connect-agency-desc {
            margin: 0.35rem 0 0.75rem;
            font-size: 0.72rem;
            line-height: 1.4;
            color: #94a3b8;
        }
        .wa-connect-agency-current {
            display: flex;
            align-items: center;
            gap: 0.45rem;
            margin-bottom: 0.65rem;
            padding: 0.55rem 0.7rem;
            border-radius: 0.75rem;
            background: rgba(16,185,129,0.1);
            border: 1px solid rgba(52,211,153,0.22);
            color: #bbf7d0;
            font-size: 0.78rem;
            font-weight: 650;
            min-width: 0;
        }
        .wa-connect-agency-current.is-empty {
            background: rgba(245,158,11,0.08);
            border-color: rgba(245,158,11,0.22);
            color: #fde68a;
        }
        .wa-connect-agency-current i,
        .wa-connect-agency-current svg {
            width: 0.95rem;
            height: 0.95rem;
            flex-shrink: 0;
        }
        .wa-connect-agency-current span {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .wa-no-group-opt {
            display: flex;
            align-items: flex-start;
            gap: 0.55rem;
            margin: 0.75rem 0 0.15rem;
            padding: 0.7rem 0.75rem;
            border-radius: 0.85rem;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.03);
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }
        .wa-no-group-opt:hover {
            border-color: rgba(255, 255, 255, 0.14);
            background: rgba(255, 255, 255, 0.045);
        }
        .wa-no-group-opt.is-on {
            border-color: rgba(148, 163, 184, 0.35);
            background: rgba(148, 163, 184, 0.08);
        }
        .wa-no-group-opt input {
            margin-top: 0.15rem;
            width: 1rem;
            height: 1rem;
            accent-color: #94a3b8;
            flex-shrink: 0;
            cursor: pointer;
        }
        .wa-no-group-opt__text {
            min-width: 0;
            flex: 1 1 auto;
        }
        .wa-no-group-opt__title {
            display: block;
            font-size: 0.75rem;
            font-weight: 700;
            color: #e2e8f0;
            line-height: 1.3;
        }
        .wa-no-group-opt__desc {
            display: block;
            margin-top: 0.2rem;
            font-size: 0.625rem;
            color: #94a3b8;
            line-height: 1.35;
        }
        .wa-connect-agency.is-no-group .wa-group-picker-row,
        .wa-connect-agency.is-no-group > label[for="wa-agency-group-picker"],
        .wa-connect-agency.is-no-group #wa-agency-groups-meta,
        .set-card.is-wa.is-no-group .wa-group-picker-row,
        .set-card.is-wa.is-no-group .wa-groups-cache-meta {
            opacity: 0.4;
            pointer-events: none;
        }
        .wa-connect-agency label {
            display: block;
            margin-bottom: 0.35rem;
            font-size: 0.62rem;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: #64748b;
        }
        .wa-group-picker-row {
            display: flex;
            align-items: stretch;
            gap: 0.45rem;
        }
        .wa-group-picker-row select {
            flex: 1 1 auto;
            min-width: 0;
        }
        .wa-groups-sync {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.3rem;
            flex: 0 0 auto;
            padding: 0 0.75rem;
            border-radius: 0.85rem;
            border: 1px solid rgba(52, 211, 153, 0.28);
            background: rgba(16, 185, 129, 0.1);
            color: #a7f3d0;
            font-size: 0.625rem;
            font-weight: 800;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            white-space: nowrap;
            cursor: pointer;
            transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
        }
        .wa-groups-sync:hover {
            background: rgba(16, 185, 129, 0.18);
            border-color: rgba(52, 211, 153, 0.45);
        }
        .wa-groups-sync:disabled {
            opacity: 0.55;
            cursor: wait;
            pointer-events: none;
        }
        .wa-groups-sync.is-syncing i,
        .wa-groups-sync.is-syncing svg {
            animation: wa-groups-spin 0.85s linear infinite;
        }
        @keyframes wa-groups-spin {
            to { transform: rotate(360deg); }
        }
        .wa-groups-sync i,
        .wa-groups-sync svg {
            width: 0.85rem;
            height: 0.85rem;
        }
        .wa-groups-cache-meta {
            margin: 0.4rem 0 0;
            font-size: 0.625rem;
            color: #64748b;
            line-height: 1.35;
        }
        .wa-connect-agency select {
            width: 100%;
            appearance: none;
            -webkit-appearance: none;
            padding: 0.75rem 0.85rem;
            border-radius: 0.85rem;
            border: 1px solid rgba(255,255,255,0.1);
            background: #0b0d10;
            color: #e2e8f0;
            font-size: 0.8125rem;
            outline: none;
        }
        .wa-connect-agency select:focus {
            border-color: rgba(52,211,153,0.45);
        }
        .set-field .wa-group-picker-row {
            margin-top: 0;
        }
        .set-field .wa-groups-sync {
            border-color: rgba(139, 92, 246, 0.35);
            background: rgba(139, 92, 246, 0.12);
            color: #ddd6fe;
        }
        .set-field .wa-groups-sync:hover {
            background: rgba(139, 92, 246, 0.2);
            border-color: rgba(167, 139, 250, 0.5);
        }
        .wa-connect-steps {
            margin: 0 0 0.85rem;
            padding: 0.75rem 0.85rem 0.75rem 1.6rem;
            border-radius: 0.85rem;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.06);
            color: #94a3b8;
            font-size: 0.72rem;
            line-height: 1.5;
        }
        .wa-connect-steps li + li { margin-top: 0.25rem; }

        @media (max-width: 420px) {
            .account-photo {
                width: 5rem;
                height: 5rem;
            }
        }
        .conta-profile-text { min-width: 0; flex: 1; }
        .conta-profile-name {
            font-size: 1rem;
            font-weight: 700;
            color: #fff;
            line-height: 1.25;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .conta-profile-email {
            font-size: 0.8125rem;
            color: #8e8e93;
            margin-top: 0.15rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .conta-section {
            margin-top: 1.35rem;
        }
        .conta-section-label {
            font-size: 0.8125rem;
            color: #8e8e93;
            margin: 0 0.35rem 0.45rem;
            font-weight: 500;
        }
        .conta-row {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            width: 100%;
            text-align: left;
            padding: 0.85rem 1rem;
            background: transparent;
            border: 0;
            color: #fff;
            font-size: 0.9375rem;
            text-decoration: none;
            box-sizing: border-box;
            cursor: pointer;
            font-weight: 500;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }
        .conta-row + .conta-row {
            border-top: 1px solid rgba(84, 84, 88, 0.45);
        }
        .conta-row:active { background: rgba(255,255,255,0.06); }
        .conta-row-icon {
            width: 1.35rem;
            height: 1.35rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #aeaeb2;
            flex-shrink: 0;
        }
        .conta-row-icon i,
        .conta-row-icon svg {
            width: 1.15rem;
            height: 1.15rem;
        }
        .conta-row-label { flex: 1; min-width: 0; }
        .conta-row-chevron {
            color: #636366;
            flex-shrink: 0;
        }
        .conta-row-chevron i,
        .conta-row-chevron svg {
            width: 1rem;
            height: 1rem;
        }
        .conta-row.is-danger { color: #ff453a; }
        .conta-row.is-danger .conta-row-icon { color: #ff453a; }
        .ebill {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }
        .ebill p { margin: 0; }
        .ebill-hero {
            overflow: hidden;
        }
        .ebill-plan {
            position: relative;
            padding: 1rem 1.05rem 0.95rem;
            display: flex;
            flex-direction: column;
            background:
                radial-gradient(120% 90% at 100% -20%, rgba(124, 58, 237, 0.28), transparent 58%);
        }
        .ebill-plan-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.6rem;
            margin-bottom: 0.4rem;
        }
        .ebill-kicker {
            font-size: 0.6875rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: #a1a1aa;
        }
        .ebill-name {
            font-size: 0.95rem;
            font-weight: 700;
            color: #e4e4e7;
            letter-spacing: -0.02em;
            line-height: 1.25;
        }
        .ebill-price {
            margin-top: 0.2rem !important;
            font-size: 1.5rem;
            font-weight: 800;
            letter-spacing: -0.04em;
            color: #fff;
            line-height: 1.1;
            font-variant-numeric: tabular-nums;
        }
        .ebill-price span {
            font-size: 0.78rem;
            font-weight: 600;
            color: #8e8e93;
            letter-spacing: 0;
        }
        .ebill-meta {
            margin-top: 0.35rem !important;
            font-size: 0.72rem;
            color: #a1a1aa;
            line-height: 1.4;
        }
        .ebill-badge {
            display: inline-flex;
            align-items: center;
            border-radius: 999px;
            padding: 0.2rem 0.5rem;
            font-size: 0.625rem;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            flex-shrink: 0;
        }
        .ebill-badge.is-warn { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }
        .ebill-badge.is-ok { background: rgba(52, 211, 153, 0.14); color: #34d399; }
        .ebill-badge.is-bad { background: rgba(248, 113, 113, 0.16); color: #f87171; }
        .ebill-alert {
            display: flex;
            gap: 0.65rem;
            align-items: flex-start;
            margin: 0 0.75rem 0.75rem;
            padding: 0.7rem 0.75rem;
            border-radius: 0.8rem;
            background: rgba(245, 158, 11, 0.08);
            border: 1px solid rgba(245, 158, 11, 0.16);
        }
        .ebill-alert-icon {
            width: 1.5rem;
            height: 1.5rem;
            border-radius: 999px;
            background: rgba(245, 158, 11, 0.16);
            color: #fbbf24;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            margin-top: 0.05rem;
        }
        .ebill-alert-icon i,
        .ebill-alert-icon svg { width: 0.85rem; height: 0.85rem; }
        .ebill-alert-title {
            font-size: 0.84rem;
            font-weight: 800;
            color: #fff;
            letter-spacing: -0.02em;
        }
        .ebill-alert-text {
            margin-top: 0.15rem !important;
            font-size: 0.72rem;
            color: #d4d4d8;
            line-height: 1.4;
        }
        .ebill-actions {
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
            padding: 0 0.75rem 0.85rem;
        }
        .ebill-plan + .ebill-actions {
            border-top: 1px solid rgba(255,255,255,0.06);
            padding-top: 0.85rem;
        }
        .ebill-cta {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            width: 100%;
            border: 0;
            border-radius: 0.8rem;
            padding: 0.78rem 1rem;
            font-weight: 800;
            font-size: 0.875rem;
            cursor: pointer;
            background: #7c3aed;
            color: #fff;
            -webkit-tap-highlight-color: transparent;
        }
        .ebill-cta:hover { background: #8b5cf6; }
        .ebill-cta i,
        .ebill-cta svg { width: 1rem; height: 1rem; }
        .ebill-cta.is-ghost {
            background: transparent;
            color: #c4b5fd;
            padding: 0.35rem 0.5rem;
            font-size: 0.75rem;
        }
        .ebill-cta.is-ghost:hover { background: rgba(124, 58, 237, 0.12); }
        .ebill-cta.is-logout {
            background: transparent;
            color: #fca5a5;
            border: 1px solid rgba(248, 113, 113, 0.35);
        }
        .ebill-cta.is-logout:hover { background: rgba(248, 113, 113, 0.1); }
        html.estudio-payment-lock #app-mobile-nav,
        html.estudio-payment-lock #btn-workspace-settings,
        html.estudio-payment-lock #workspace-settings-close,
        html.estudio-payment-lock #workspace-settings-tabs { display: none !important; }
        .ebill-note {
            font-size: 0.65rem;
            color: #8e8e93;
            line-height: 1.35;
            text-align: center;
        }
        .ebill-row {
            display: flex;
            align-items: flex-start;
            gap: 0.7rem;
            width: 100%;
            text-align: left;
            padding: 0.75rem 1rem;
            background: transparent;
            border: 0;
            color: #fff;
        }
        .ebill-row + .ebill-row { border-top: 1px solid rgba(84, 84, 88, 0.4); }
        .ebill-dot {
            width: 0.48rem;
            height: 0.48rem;
            border-radius: 999px;
            background: #636366;
            flex-shrink: 0;
            margin-top: 0.4rem;
        }
        .ebill-dot.is-ok { background: #34d399; }
        .ebill-dot.is-warn { background: #fbbf24; }
        .ebill-dot.is-bad { background: #f87171; }
        .ebill-row-body { min-width: 0; flex: 1; }
        .ebill-row-title {
            font-size: 0.875rem;
            font-weight: 700;
            color: #fff;
            letter-spacing: -0.01em;
        }
        .ebill-row-sub {
            margin-top: 0.12rem !important;
            font-size: 0.7rem;
            color: #8e8e93;
            line-height: 1.35;
        }
        .ebill-row-side {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 0.18rem;
            flex-shrink: 0;
            padding-top: 0.05rem;
        }
        .ebill-row-amt {
            font-size: 0.875rem;
            font-weight: 800;
            color: #fff;
            font-variant-numeric: tabular-nums;
            letter-spacing: -0.02em;
            white-space: nowrap;
        }
        .ebill-link {
            border: 0;
            background: transparent;
            color: #a78bfa;
            font-size: 0.68rem;
            font-weight: 700;
            cursor: pointer;
            padding: 0;
        }
        .ebill-link:hover { color: #ddd6fe; }
        .ebill-empty,
        .ebill-loading,
        .ebill-error {
            padding: 1rem;
            font-size: 0.82rem;
            color: #8e8e93;
            text-align: center;
        }
        .ebill-loading {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }
        .ebill-loading i,
        .ebill-loading svg { width: 1rem; height: 1rem; }
        .ebill-error { color: #f87171; }
        .ws-billing-panel .ebill { max-width: none; }
        .ws-billing-panel .conta-card { background: #14161c; }
        .ws-billing-panel .ebill-plan {
            background:
                radial-gradient(110% 90% at 100% -20%, rgba(124, 58, 237, 0.22), transparent 58%),
                #14161c;
        }
        #app-mobile-nav .am-nav-avatar {
            width: 1.35rem;
            height: 1.35rem;
            border-radius: 999px;
            object-fit: cover;
            display: block;
            border: 1px solid rgba(255,255,255,0.15);
        }
        .hdr-btn-group {
            display: inline-flex;
            align-items: center;
            gap: 2px;
            padding: 3px;
            background: rgba(255,255,255,0.035);
            border: 1px solid rgba(255,255,255,0.07);
            border-radius: 0.75rem;
            flex-shrink: 0;
        }
        .hdr-btn-secondary {
            color: #94a3b8;
            background: transparent;
        }
        .hdr-btn-secondary:hover {
            background: rgba(255,255,255,0.08);
            color: #f1f5f9;
        }
        .hdr-btn-accent {
            color: #fbbf24;
            background: rgba(245, 158, 11, 0.08);
            border-color: rgba(245, 158, 11, 0.15);
        }
        .hdr-btn-accent i { color: #fbbf24 !important; }
        .hdr-btn-accent:hover {
            background: rgba(245, 158, 11, 0.16);
            color: #fde68a;
        }
        .hdr-btn-accent:hover i { color: #fde68a !important; }
        .hdr-divider {
            width: 1px;
            height: 1.375rem;
            background: rgba(255,255,255,0.1);
            flex-shrink: 0;
        }
        #workspace-tabs button {
            color: #64748b;
            border-bottom: 2px solid transparent;
            transition: color 0.22s ease, border-color 0.22s ease;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
            padding-bottom: 0.2rem;
            white-space: nowrap;
        }
        .workspace-ctx-tab, .hdr-btn, button[type="button"] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
        #workspace-tabs button:hover { color: #cbd5e1; }
        #workspace-tabs button.tab-active {
            color: #c4b5fd;
            border-bottom-color: #8b5cf6;
        }
        @media (min-width: 640px) {
            #workspace-tabs .ws-tab-indicator { display: none !important; }
        }

        /* Conteúdo do quadro: sem fade (evita “reload” ao trocar aba) — só o pill desliza */
        #workspace-overview.ws-panel-enter,
        #workspace-kanban.ws-panel-enter,
        #workspace-cronograma.ws-panel-enter,
        #workspace-captacoes.ws-panel-enter,
        #workspace-ia-art.ws-panel-enter,
        #workspace-overview.ws-panel-enter-left,
        #workspace-kanban.ws-panel-enter-left,
        #workspace-cronograma.ws-panel-enter-left,
        #workspace-captacoes.ws-panel-enter-left,
        #workspace-ia-art.ws-panel-enter-left {
            animation: none;
        }
        @media (prefers-reduced-motion: reduce) {
            #workspace-tabs .ws-tab-indicator { transition: none !important; }
        }
        @media (max-width: 639px) {
            #kanban-board { scroll-padding-inline: 7.5vw; }
            .kanban-col { width: 88vw; max-width: 88vw; }
        }
        input, select, textarea { font-size: 16px !important; }
        .modal-open { display: flex !important; }
        /* Modal do cartão — mais compacto e harmonizado */
        #task-modal {
            align-items: flex-end;
            padding: 0;
            background: rgba(0,0,0,0.72);
            overflow: hidden;
        }
        #task-modal > div {
            display: flex;
            flex-direction: column;
            width: 100%;
            max-width: 36rem;
            max-height: min(92dvh, 92vh);
            border-radius: 1.15rem 1.15rem 0 0;
            border-color: rgba(255,255,255,0.08);
            overflow: hidden;
            min-width: 0;
            min-height: 0;
        }
        #task-modal .task-modal-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 0.75rem;
            padding: 0.85rem 1rem;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            background: rgba(21,23,28,0.98);
        }
        #task-modal #modal-main-title {
            font-size: 1.05rem;
            gap: 0.55rem;
        }
        #task-modal #modal-main-title svg { width: 1.1rem; height: 1.1rem; }
        #task-modal .task-modal-body {
            padding: 0.9rem 1rem 1.25rem;
            gap: 0.85rem;
            display: flex;
            flex-direction: column;
            flex: 1 1 auto;
            min-width: 0;
            min-height: 0;
            max-width: 100%;
            overflow-x: hidden;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
            /* espaço extra para o conteúdo não ficar sob Cancelar/Salvar */
            padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
        }
        #task-modal .task-modal-body > * {
            min-width: 0;
            max-width: 100%;
            flex-shrink: 0;
        }
        #task-modal .task-modal-body.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 0; }
        #task-modal .task-modal-foot {
            padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
            gap: 0.55rem;
            flex-shrink: 0;
            background: #15171c;
            border-top-color: rgba(255,255,255,0.08);
            box-shadow: 0 -8px 24px rgba(0,0,0,0.28);
        }
        #task-modal .task-modal-foot button {
            padding: 0.7rem 1rem;
            font-size: 0.875rem;
            border-radius: 0.75rem;
            min-height: 2.65rem;
        }
        #task-modal label.text-\[10px\],
        #task-modal .text-\[10px\].font-black {
            letter-spacing: 0.06em;
            margin-bottom: 0.3rem;
        }
        #task-modal input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
        #task-modal textarea,
        #task-modal select,
        #task-modal .flatpickr-input,
        #task-modal .flatpickr-alt-input,
        #task-modal .task-fp-input {
            padding: 0.7rem 0.85rem !important;
            border-radius: 0.75rem !important;
            font-size: 15px !important;
            min-height: 0;
            min-width: 0 !important;
            max-width: 100% !important;
            width: 100% !important;
            box-sizing: border-box !important;
            border: 1px solid rgba(255,255,255,0.08) !important;
            background: #0b0d10 !important;
        }
        /* Flatpickr altInput: esconde o input original que vazava do modal */
        #task-modal .flatpickr-wrapper {
            display: block !important;
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            position: relative;
            overflow: hidden;
        }
        #task-modal input.flatpickr-input:not(.flatpickr-alt-input):not(.task-fp-input) {
            position: absolute !important;
            left: 0 !important;
            top: 0 !important;
            width: 1px !important;
            height: 1px !important;
            min-width: 0 !important;
            max-width: 1px !important;
            opacity: 0 !important;
            pointer-events: none !important;
            padding: 0 !important;
            margin: 0 !important;
            border: 0 !important;
            overflow: hidden !important;
            clip: rect(0, 0, 0, 0) !important;
        }
        #task-modal .flatpickr-alt-input,
        #task-modal input.task-fp-input,
        #task-modal input.flatpickr-alt-input {
            position: relative !important;
            left: auto !important;
            top: auto !important;
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            height: auto !important;
            opacity: 1 !important;
            pointer-events: auto !important;
            clip: auto !important;
        }
        html.platform-ios #task-modal input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
        html.platform-ios #task-modal textarea,
        html.platform-ios #task-modal select,
        html.platform-ios #task-modal .flatpickr-alt-input,
        html.is-native-app #task-modal input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
        html.is-native-app #task-modal textarea,
        html.is-native-app #task-modal select,
        html.is-native-app #task-modal .flatpickr-alt-input {
            font-size: 16px !important;
        }
        #task-modal textarea { min-height: 4.5rem !important; }
        #task-modal #task-script { min-height: 5.5rem !important; }
        #task-modal #task-config-wrapper {
            padding: 0.85rem !important;
            border-radius: 0.9rem !important;
            gap: 0.75rem;
            min-width: 0;
            max-width: 100%;
            /* Nunca esmagar no flex do modal — overflow:hidden cortava Feed/Story */
            flex-shrink: 0;
            overflow: visible;
            box-sizing: border-box;
        }
        #task-modal #type-feed-wrapper,
        #task-modal #type-graphic-wrapper {
            min-width: 0;
            max-width: 100%;
            flex-shrink: 0;
        }
        #task-modal #task-type-selector {
            margin-bottom: 0.65rem !important;
            padding: 0.35rem !important;
            min-width: 0;
            max-width: 100%;
            min-height: 2.5rem;
            align-items: stretch;
            flex-shrink: 0;
            box-sizing: border-box;
        }
        #task-modal #task-type-selector label {
            display: flex !important;
            align-items: stretch;
            min-height: 2.15rem;
        }
        #task-modal #task-type-selector label > div {
            padding: 0.55rem 0.4rem !important;
            font-size: 10px !important;
            line-height: 1.2 !important;
            display: flex !important;
            align-items: center;
            justify-content: center;
            min-height: 2.15rem;
            box-sizing: border-box;
        }
        #task-modal #cronograma-option-wrapper {
            margin-top: 0.75rem !important;
            padding-top: 0.75rem !important;
            display: grid;
            grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
            gap: 0.55rem 0.65rem;
            align-items: start;
            min-width: 0;
            max-width: 100%;
            width: 100%;
            box-sizing: border-box;
        }
        #task-modal #cronograma-option-wrapper .task-sched-field {
            min-width: 0;
            max-width: 100%;
            display: flex;
            flex-direction: column;
            gap: 0.3rem;
            overflow: hidden;
        }
        #task-modal #cronograma-option-wrapper .task-sched-field label { margin: 0; }
        #task-modal #cronograma-option-wrapper .flatpickr-wrapper,
        #task-modal #cronograma-option-wrapper .flatpickr-input,
        #task-modal #cronograma-option-wrapper .flatpickr-alt-input,
        #task-modal #cronograma-option-wrapper input,
        #task-modal #cronograma-option-wrapper .task-fp-input {
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            box-sizing: border-box !important;
        }
        #task-modal #task-post-date,
        #task-modal #task-post-time,
        #task-modal #task-recording-date,
        #task-modal #task-recording-time {
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            box-sizing: border-box !important;
        }
        #task-modal #auto-publish-wrapper {
            grid-column: 1 / -1;
            padding: 0.65rem 0.75rem !important;
            margin-top: 0.15rem;
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
        }
        @media (max-width: 420px) {
            #task-modal #cronograma-option-wrapper {
                grid-template-columns: 1fr;
            }
        }
        #task-modal #video-quick-wrapper {
            padding: 0.75rem !important;
            border-radius: 0.9rem !important;
            gap: 0.55rem;
            min-width: 0;
            max-width: 100%;
            overflow: visible;
            flex-shrink: 0;
            box-sizing: border-box;
        }
        #task-modal #video-quick-wrapper .task-rec-grid {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            gap: 0.65rem;
            min-width: 0;
            max-width: 100%;
            width: 100%;
        }
        #task-modal #video-quick-wrapper .task-rec-grid > div,
        #task-modal #recording-time-wrapper {
            min-width: 0;
            max-width: 100%;
            overflow: hidden;
        }
        #task-modal #recording-time-quick {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
            max-width: 100%;
            min-width: 0;
        }
        #task-modal #recording-time-quick .recording-time-quick-btn {
            flex: 0 0 auto;
        }
        #task-modal #task-script-section {
            padding: 0.75rem !important;
            border-radius: 0.9rem !important;
            min-width: 0;
            max-width: 100%;
            overflow: visible;
            flex-shrink: 0;
            box-sizing: border-box;
        }
        #task-modal #briefing-ai-adjust-wrapper,
        #task-modal #task-script-section .flex.gap-2 {
            min-width: 0;
            max-width: 100%;
        }
        #task-modal #briefing-ai-adjust-wrapper input,
        #task-modal #task-ai-adjust {
            min-width: 0 !important;
            flex: 1 1 auto;
        }
        #task-modal #assignee-selector-container > button {
            padding: 0.65rem 0.8rem !important;
            border-radius: 0.75rem !important;
        }
        #task-modal #assignee-summary { font-size: 12px !important; }
        #task-modal #upload-preview {
            border-radius: 0.75rem !important;
            border-color: rgba(255,255,255,0.08) !important;
            background: #12151a !important;
        }
        #task-modal #upload-preview .upload-thumb-wrap {
            width: 3.25rem;
            height: 3.25rem;
        }
        #task-modal #task-history-section {
            margin-top: 0.25rem !important;
            padding-top: 0.65rem !important;
        }
        #task-modal .pt-5.border-t { padding-top: 0.75rem !important; }
        #task-modal #type-feed-wrapper { gap: 0.65rem; }
        @media (min-width: 640px) {
            #task-modal {
                align-items: center;
                padding: 1rem;
            }
            #task-modal > div {
                border-radius: 1rem;
                max-height: min(88vh, 860px);
            }
            #task-modal .task-modal-head { padding: 1rem 1.25rem; }
            #task-modal .task-modal-body { padding: 1.1rem 1.25rem 1.5rem; gap: 1rem; }
            #task-modal .task-modal-foot { padding: 0.85rem 1.25rem; }
            #task-modal input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
            #task-modal textarea,
            #task-modal select,
            #task-modal .flatpickr-alt-input {
                padding: 0.8rem 0.95rem !important;
            }
        }
        .board-dash-card {
            min-height: 8.5rem;
            background: var(--board-grad, linear-gradient(135deg, #6d28d9 0%, #312e81 100%));
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .board-dash-icon-btn {
            pointer-events: none;
        }
        @media (hover: hover) and (pointer: fine) {
            .board-dash-card:hover .board-dash-icon-btn,
            .board-dash-icon-btn:focus-visible {
                pointer-events: auto;
            }
        }
        @media (hover: none), (pointer: coarse) {
            .board-dash-icon-btn { display: none !important; }
        }
        .board-dash-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 16px 40px rgba(0,0,0,0.35);
        }
        .board-dash-add {
            min-height: 8.5rem;
        }
        @media (max-width: 639px) {
            .board-dash-card,
            .board-dash-add { min-height: 5.75rem; }
            .board-dash-card:hover {
                transform: translateY(-2px);
                box-shadow: 0 12px 28px rgba(0,0,0,0.32);
            }
            .board-dash-avatar,
            .board-dash-avatar-fallback {
                width: 2.25rem;
                height: 2.25rem;
                font-size: 0.625rem;
                box-shadow: 0 3px 10px rgba(0,0,0,0.3);
            }
        }
        .team-add-card {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            padding: 1.15rem 1.1rem 1.25rem;
            background: linear-gradient(180deg, rgba(26,29,36,0.98) 0%, rgba(18,20,26,0.98) 100%);
            border: 1px solid rgba(167,139,250,0.18);
            border-radius: 1.15rem;
            margin-bottom: 1rem;
        }
        .team-add-card-head {
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
        }
        .team-add-card-kicker {
            font-size: 0.625rem;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: #a78bfa;
        }
        .team-add-card-sub {
            font-size: 0.6875rem;
            color: #64748b;
            line-height: 1.45;
        }
        .team-add-fields {
            display: flex;
            flex-direction: column;
            gap: 0.65rem;
            padding-top: 0.15rem;
            border-top: 1px solid rgba(255,255,255,0.06);
        }
        .team-member-card {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            padding: 1rem;
            background: #1a1d24;
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 1rem;
            transition: border-color 0.15s ease;
        }
        .team-member-card:hover { border-color: rgba(167, 139, 250, 0.22); }
        .team-member-card__top {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
        }
        .team-member-card__meta { flex: 1; min-width: 0; }
        .team-member-card__name {
            font-size: 0.875rem;
            font-weight: 800;
            color: #fff;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .team-member-card__line {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            margin-top: 0.2rem;
            font-size: 0.6875rem;
            color: #94a3b8;
            min-width: 0;
        }
        .team-member-card__line.is-email { color: #c4b5fd; }
        .team-member-card__line.is-phone { color: #34d399; }
        .team-member-card__line span {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .team-member-card__actions {
            display: flex;
            align-items: center;
            gap: 0.15rem;
            flex-shrink: 0;
        }
        .team-member-card__actions button {
            color: #64748b;
            padding: 0.4rem;
            border-radius: 0.55rem;
        }
        .team-member-card__actions button:hover {
            color: #c4b5fd;
            background: rgba(139, 92, 246, 0.12);
        }
        .team-member-card__actions button.is-danger:hover {
            color: #f87171;
            background: rgba(239, 68, 68, 0.12);
        }
        .team-access-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.5rem;
            padding-top: 0.65rem;
            border-top: 1px solid rgba(255,255,255,0.06);
        }
        .team-access-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            font-size: 0.5625rem;
            font-weight: 800;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            border-radius: 999px;
            padding: 0.28rem 0.55rem;
            border: 1px solid transparent;
        }
        .team-access-chip.is-none {
            color: #94a3b8;
            background: rgba(148, 163, 184, 0.1);
            border-color: rgba(148, 163, 184, 0.2);
        }
        .team-access-chip.is-invited {
            color: #fcd34d;
            background: rgba(245, 158, 11, 0.12);
            border-color: rgba(245, 158, 11, 0.28);
        }
        .team-access-chip.is-active {
            color: #6ee7b7;
            background: rgba(16, 185, 129, 0.12);
            border-color: rgba(52, 211, 153, 0.28);
        }
        .team-invite-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            height: 2rem;
            padding: 0 0.75rem;
            border-radius: 0.65rem;
            font-size: 0.6875rem;
            font-weight: 800;
            color: #fff;
            background: linear-gradient(90deg, #6d28d9, #7c3aed);
            border: 0;
            white-space: nowrap;
        }
        .team-invite-btn:disabled { opacity: 0.5; }
        .team-invite-btn.is-secondary {
            background: rgba(255,255,255,0.06);
            color: #cbd5e1;
            border: 1px solid rgba(255,255,255,0.1);
        }
        .avatar-builder {
            display: flex;
            flex-direction: column;
            gap: 0.9rem;
        }
        .avatar-builder-edit {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.65rem;
            padding: 0.7rem 0.85rem;
            border-radius: 0.85rem;
            background: rgba(139,92,246,0.12);
            border: 1px solid rgba(167,139,250,0.28);
        }
        .avatar-builder-edit p {
            font-size: 0.6875rem;
            color: #c4b5fd;
            font-weight: 600;
            line-height: 1.35;
        }
        .avatar-builder-edit p span { color: #fff; }
        .avatar-builder-edit-actions {
            display: flex;
            gap: 0.4rem;
            flex-shrink: 0;
        }
        .avatar-builder-edit-actions button {
            font-size: 0.625rem;
            font-weight: 700;
            padding: 0.4rem 0.65rem;
            border-radius: 0.55rem;
        }
        .avatar-builder-edit-cancel {
            color: #94a3b8;
            background: rgba(255,255,255,0.05);
        }
        .avatar-builder-edit-save {
            color: #fff;
            background: #7c3aed;
        }
        .avatar-builder-stage {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.75rem;
            padding: 1.1rem 1rem 1rem;
            border-radius: 1rem;
            background:
                radial-gradient(ellipse 70% 80% at 50% 20%, rgba(139,92,246,0.16), transparent 60%),
                rgba(255,255,255,0.025);
            border: 1px solid rgba(255,255,255,0.07);
        }
        .avatar-builder-preview-img {
            width: 6.5rem;
            height: 6.5rem;
            border-radius: 9999px;
            object-fit: cover;
            background: #fff;
            box-shadow:
                0 0 0 3px rgba(139,92,246,0.45),
                0 12px 28px rgba(0,0,0,0.35);
        }
        .avatar-builder-random {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            font-size: 0.6875rem;
            font-weight: 700;
            color: #ddd6fe;
            padding: 0.45rem 0.9rem;
            border-radius: 999px;
            background: rgba(139,92,246,0.18);
            border: 1px solid rgba(167,139,250,0.35);
            transition: background 0.15s ease, border-color 0.15s ease;
        }
        .avatar-builder-random:hover {
            background: rgba(139,92,246,0.28);
            border-color: rgba(167,139,250,0.55);
        }
        .avatar-builder-tabs {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.3rem;
            padding: 0.28rem;
            border-radius: 0.85rem;
            background: rgba(0,0,0,0.28);
            border: 1px solid rgba(255,255,255,0.06);
        }
        .avatar-builder-tab {
            font-size: 0.6875rem;
            font-weight: 700;
            color: #64748b;
            padding: 0.55rem 0.35rem;
            border-radius: 0.65rem;
            text-align: center;
            transition: color 0.15s ease, background 0.15s ease;
        }
        .avatar-builder-tab.active {
            color: #fff;
            background: rgba(139,92,246,0.35);
            box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset;
        }
        .avatar-builder-panel {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            min-height: 9.5rem;
        }
        .avatar-builder-field {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        .avatar-builder-label {
            font-size: 0.625rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #94a3b8;
        }
        .avatar-swatch-row,
        .avatar-builder-pills,
        .avatar-pill-scroll {
            display: flex;
            flex-wrap: nowrap;
            gap: 0.5rem;
            overflow-x: auto;
            overflow-y: hidden;
            -webkit-overflow-scrolling: touch;
            scroll-snap-type: x proximity;
            padding: 0.15rem 0.1rem 0.45rem;
            margin: 0 -0.1rem;
            scrollbar-width: none;
        }
        .avatar-swatch-row::-webkit-scrollbar,
        .avatar-builder-pills::-webkit-scrollbar,
        .avatar-pill-scroll::-webkit-scrollbar { display: none; }
        .avatar-swatch {
            flex: 0 0 auto;
            width: 2rem;
            height: 2rem;
            border-radius: 999px;
            border: 2px solid rgba(255,255,255,0.14);
            cursor: pointer;
            scroll-snap-align: start;
            transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
        }
        .avatar-swatch:hover { transform: scale(1.06); border-color: rgba(255,255,255,0.35); }
        .avatar-swatch.active {
            border-color: #c4b5fd;
            box-shadow: 0 0 0 2px rgba(139,92,246,0.55);
            transform: scale(1.08);
        }
        .avatar-pill {
            flex: 0 0 auto;
            font-size: 0.6875rem;
            font-weight: 650;
            padding: 0.45rem 0.75rem;
            border-radius: 999px;
            border: 1px solid rgba(255,255,255,0.08);
            background: rgba(255,255,255,0.04);
            color: #94a3b8;
            white-space: nowrap;
            scroll-snap-align: start;
            transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
        }
        .avatar-pill:hover { color: #e2e8f0; border-color: rgba(167,139,250,0.35); }
        .avatar-pill.active {
            background: rgba(139,92,246,0.28);
            border-color: rgba(167,139,250,0.65);
            color: #ede9fe;
        }
        .board-dash-avatar {
            width: 2.75rem;
            height: 2.75rem;
            border-radius: 9999px;
            object-fit: cover;
            border: 2px solid rgba(255,255,255,0.35);
            box-shadow: 0 4px 14px rgba(0,0,0,0.35);
            background: rgba(0,0,0,0.25);
            /* Evita flash branco/vazio ao trocar src */
            opacity: 1;
            transition: none;
        }
        .board-dash-avatar.is-loading {
            opacity: 0.35;
        }
        .board-dash-avatar-fallback {
            width: 2.75rem;
            height: 2.75rem;
            border-radius: 9999px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: 800;
            color: #fff;
            border: 2px solid rgba(255,255,255,0.35);
            box-shadow: 0 4px 14px rgba(0,0,0,0.35);
            background: rgba(0,0,0,0.3);
        }
        @keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
        .animate-fade-up { animation: fade-up 0.25s ease-out; }

        /* ——— Web FX: sensação mais tecnológica (desktop; respeita reduced-motion) ——— */
        @keyframes fx-fade-rise {
            from { opacity: 0; transform: translateY(14px) scale(0.985); filter: blur(2px); }
            to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
        }
        @keyframes fx-view-enter {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes board-open-enter {
            from { opacity: 0; transform: translate3d(1.15rem, 0, 0); }
            to { opacity: 1; transform: translate3d(0, 0, 0); }
        }
        @keyframes board-open-chrome {
            from { opacity: 0; transform: translate3d(0, -0.45rem, 0); }
            to { opacity: 1; transform: translate3d(0, 0, 0); }
        }
        @keyframes board-open-body {
            from { opacity: 0; transform: translate3d(0, 0.65rem, 0); }
            to { opacity: 1; transform: translate3d(0, 0, 0); }
        }
        #workspace-view.board-enter {
            animation: board-open-enter 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
        }
        #workspace-view.board-enter #workspace-context-bar {
            animation: board-open-chrome 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
        }
        #workspace-view.board-enter #workspace-overview,
        #workspace-view.board-enter #workspace-kanban,
        #workspace-view.board-enter #workspace-cronograma,
        #workspace-view.board-enter #workspace-captacoes,
        #workspace-view.board-enter #workspace-ia-art {
            animation: board-open-body 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
        }
        @media (prefers-reduced-motion: reduce) {
            #workspace-view.board-enter,
            #workspace-view.board-enter #workspace-context-bar,
            #workspace-view.board-enter #workspace-overview,
            #workspace-view.board-enter #workspace-kanban,
            #workspace-view.board-enter #workspace-cronograma,
            #workspace-view.board-enter #workspace-captacoes,
            #workspace-view.board-enter #workspace-ia-art {
                animation: none !important;
            }
        }
        @keyframes fx-mesh-drift {
            0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.55; }
            50% { transform: translate3d(2%, -1.5%, 0) scale(1.04); opacity: 0.85; }
        }
        @keyframes fx-grid-scan {
            0% { background-position: 0 0, 0 0; opacity: 0.22; }
            50% { opacity: 0.38; }
            100% { background-position: 28px 28px, 0 0; opacity: 0.22; }
        }
        @keyframes fx-sheen {
            from { transform: translateX(-130%) skewX(-12deg); }
            to { transform: translateX(130%) skewX(-12deg); }
        }
        @keyframes fx-orb-a {
            0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
            50% { transform: translate3d(8%, -6%, 0) scale(1.08); }
        }
        @keyframes fx-orb-b {
            0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
            50% { transform: translate3d(-10%, 8%, 0) scale(1.12); }
        }
        @keyframes fx-pulse-ring {
            0%, 100% { box-shadow: 0 4px 14px rgba(91,33,182,0.25), 0 0 0 0 rgba(167,139,250,0.35); }
            50% { box-shadow: 0 6px 20px rgba(91,33,182,0.4), 0 0 0 6px rgba(167,139,250,0); }
        }
        @keyframes fx-pulse-ring-green {
            0%, 100% { box-shadow: 0 4px 14px rgba(6,95,70,0.25), 0 0 0 0 rgba(52,211,153,0.35); }
            50% { box-shadow: 0 6px 20px rgba(6,95,70,0.4), 0 0 0 6px rgba(52,211,153,0); }
        }
        @keyframes fx-line-glow {
            0%, 100% { opacity: 0.35; }
            50% { opacity: 0.9; }
        }
        @media (min-width: 768px) {
            html:not(.platform-ios):not(.is-native-app) #dashboard-view {
                position: relative;
                isolation: isolate;
            }
            html:not(.platform-ios):not(.is-native-app) #dashboard-view::before {
                content: "";
                position: absolute;
                inset: 0 0 auto 0;
                height: min(70vh, 560px);
                pointer-events: none;
                z-index: 0;
                background:
                    radial-gradient(ellipse 55% 50% at 12% 0%, rgba(124,58,237,0.18), transparent 70%),
                    radial-gradient(ellipse 45% 40% at 88% 8%, rgba(56,189,248,0.08), transparent 65%),
                    radial-gradient(ellipse 40% 35% at 50% 20%, rgba(232,121,249,0.06), transparent 70%);
                animation: fx-mesh-drift 18s ease-in-out infinite;
            }
            html:not(.platform-ios):not(.is-native-app) #dashboard-view::after {
                content: "";
                position: absolute;
                inset: 0;
                pointer-events: none;
                z-index: 0;
                background-image:
                    linear-gradient(rgba(148,163,184,0.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(148,163,184,0.045) 1px, transparent 1px);
                background-size: 48px 48px, 48px 48px;
                mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 72%);
                animation: fx-grid-scan 14s linear infinite;
            }
            html:not(.platform-ios):not(.is-native-app) #dashboard-view > * { position: relative; z-index: 1; }

            html:not(.platform-ios):not(.is-native-app) .dash-search-wrap {
                animation: fx-fade-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
            }
            html:not(.platform-ios):not(.is-native-app) #dash-board-search:focus {
                box-shadow: 0 0 0 3px rgba(139,92,246,0.16), 0 0 28px rgba(124,58,237,0.18);
            }

            html:not(.platform-ios):not(.is-native-app) .board-dash-card,
            html:not(.platform-ios):not(.is-native-app) .board-dash-add {
                transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
                will-change: transform;
            }
            html:not(.platform-ios):not(.is-native-app) #dashboard-view.fx-stagger-on .board-dash-card,
            html:not(.platform-ios):not(.is-native-app) #dashboard-view.fx-stagger-on .board-dash-add {
                animation: fx-fade-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
                animation-delay: calc(var(--stagger, 0) * 45ms);
            }
            html:not(.platform-ios):not(.is-native-app) .board-dash-card {
                border: 1px solid rgba(255,255,255,0.06);
            }
            html:not(.platform-ios):not(.is-native-app) .board-dash-card::after {
                content: "";
                position: absolute;
                top: 0; bottom: 0; left: 0;
                width: 45%;
                background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
                opacity: 0;
                pointer-events: none;
                z-index: 3;
                transform: translateX(-130%) skewX(-12deg);
                transition:
                    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                    opacity 0.35s ease;
            }
            html:not(.platform-ios):not(.is-native-app) .board-dash-card:hover {
                transform: translateY(-6px) scale(1.015);
                box-shadow: 0 22px 48px rgba(0,0,0,0.42), 0 0 0 1px rgba(167,139,250,0.22), 0 0 36px rgba(124,58,237,0.18);
                border-color: rgba(167,139,250,0.28);
            }
            html:not(.platform-ios):not(.is-native-app) .board-dash-card:hover::after {
                opacity: 1;
                transform: translateX(55%) skewX(-12deg);
            }
            html:not(.platform-ios):not(.is-native-app) .board-dash-add:hover {
                transform: translateY(-4px);
                box-shadow: 0 16px 36px rgba(124,58,237,0.12);
            }

            html:not(.platform-ios):not(.is-native-app) #header-dash-actions.is-on #btn-send-charge:not(.hidden) {
                animation: fx-pulse-ring 2.8s ease-in-out infinite;
            }
            html:not(.platform-ios):not(.is-native-app) #header-dash-actions.is-on #btn-send-report:not(.hidden) {
                animation: fx-pulse-ring-green 3.2s ease-in-out infinite;
            }

            html:not(.platform-ios):not(.is-native-app) .hdr-btn-primary,
            html:not(.platform-ios):not(.is-native-app) #btn-dashboard.hdr-btn-quadros {
                position: relative;
                overflow: hidden;
            }
            html:not(.platform-ios):not(.is-native-app) .hdr-btn-primary::after,
            html:not(.platform-ios):not(.is-native-app) #btn-dashboard.hdr-btn-quadros::after {
                content: "";
                position: absolute;
                inset: 0;
                background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.2) 50%, transparent 65%);
                transform: translateX(-120%);
                pointer-events: none;
            }
            html:not(.platform-ios):not(.is-native-app) .hdr-btn-primary:hover::after,
            html:not(.platform-ios):not(.is-native-app) #btn-dashboard.hdr-btn-quadros:hover::after {
                animation: fx-sheen 0.7s ease;
            }

            html:not(.platform-ios):not(.is-native-app) .app-header {
                border-bottom-color: rgba(167,139,250,0.12);
                box-shadow: 0 4px 24px rgba(0,0,0,0.25), 0 1px 0 rgba(167,139,250,0.08);
            }
            html:not(.platform-ios):not(.is-native-app) .app-header::after {
                content: "";
                position: absolute;
                left: 8%;
                right: 8%;
                bottom: -1px;
                height: 1px;
                background: linear-gradient(90deg, transparent, rgba(167,139,250,0.55), rgba(56,189,248,0.35), transparent);
                animation: fx-line-glow 4s ease-in-out infinite;
                pointer-events: none;
            }

            html:not(.platform-ios):not(.is-native-app) #dashboard-view.view-enter,
            html:not(.platform-ios):not(.is-native-app) #workspace-view.view-enter {
                animation: fx-view-enter 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
            }
            /* Também no app / iOS — volta ao dashboard */
            html.platform-ios #dashboard-view.view-enter,
            html.is-native-app #dashboard-view.view-enter {
                animation: fx-view-enter 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
            }

            html:not(.platform-ios):not(.is-native-app) #workspace-tabs button {
                transition: color 0.2s ease, background 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
            }
            html:not(.platform-ios):not(.is-native-app) #workspace-tabs button.tab-active {
                box-shadow: 0 0 0 1px rgba(167,139,250,0.25), 0 0 18px rgba(124,58,237,0.2);
            }
            html:not(.platform-ios):not(.is-native-app) #workspace-tabs button:hover {
                transform: translateY(-1px);
            }

            html:not(.platform-ios):not(.is-native-app) #login-screen > div.absolute:nth-child(1) {
                animation: fx-orb-a 14s ease-in-out infinite;
            }
            html:not(.platform-ios):not(.is-native-app) #login-screen > div.absolute:nth-child(2) {
                animation: fx-orb-b 16s ease-in-out infinite;
            }
            html:not(.platform-ios):not(.is-native-app) #login-screen > div.relative.z-10 {
                animation: fx-fade-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
            }

            html:not(.platform-ios):not(.is-native-app) #global-demands-section,
            html:not(.platform-ios):not(.is-native-app) #filmmaker-agenda-section {
                animation: fx-fade-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
                animation-delay: 0.18s;
            }
            html:not(.platform-ios):not(.is-native-app) #global-demands-toggle:hover {
                box-shadow: 0 0 0 1px rgba(167,139,250,0.22), 0 12px 32px rgba(0,0,0,0.25);
                transform: translateY(-1px);
            }
            html:not(.platform-ios):not(.is-native-app) #global-demands-toggle {
                transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
            }

            html:not(.platform-ios):not(.is-native-app) .fm-cal-day.fm-cal-blocked {
                transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
            }
            html:not(.platform-ios):not(.is-native-app) .fm-cal-day.fm-cal-blocked:hover {
                transform: translateY(-2px);
                box-shadow: 0 10px 24px rgba(245,158,11,0.12);
            }
            html:not(.platform-ios):not(.is-native-app) .fm-cal-event {
                transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
            }
            html:not(.platform-ios):not(.is-native-app) .fm-cal-event:hover {
                transform: translateY(-1px) scale(1.02);
                box-shadow: 0 4px 14px rgba(245,158,11,0.2);
            }
        }
        @media (prefers-reduced-motion: reduce) {
            html:not(.platform-ios):not(.is-native-app) #dashboard-view::before,
            html:not(.platform-ios):not(.is-native-app) #dashboard-view::after,
            html:not(.platform-ios):not(.is-native-app) #dashboard-view.fx-stagger-on .board-dash-card,
            html:not(.platform-ios):not(.is-native-app) #dashboard-view.fx-stagger-on .board-dash-add,
            html:not(.platform-ios):not(.is-native-app) .dash-search-wrap,
            html:not(.platform-ios):not(.is-native-app) #dashboard-view.view-enter,
            html:not(.platform-ios):not(.is-native-app) #workspace-view.view-enter,
            html:not(.platform-ios):not(.is-native-app) #header-dash-actions.is-on #btn-send-charge:not(.hidden),
            html:not(.platform-ios):not(.is-native-app) #header-dash-actions.is-on #btn-send-report:not(.hidden),
            html:not(.platform-ios):not(.is-native-app) .app-header::after,
            html:not(.platform-ios):not(.is-native-app) #login-screen > div.absolute:nth-child(1),
            html:not(.platform-ios):not(.is-native-app) #login-screen > div.absolute:nth-child(2),
            html:not(.platform-ios):not(.is-native-app) #global-demands-section,
            html:not(.platform-ios):not(.is-native-app) #filmmaker-agenda-section {
                animation: none !important;
            }
            html:not(.platform-ios):not(.is-native-app) .board-dash-card::after,
            html:not(.platform-ios):not(.is-native-app) .board-dash-card:hover::after {
                transition: none !important;
                transform: none !important;
                opacity: 0 !important;
            }
            html:not(.platform-ios):not(.is-native-app) .hdr-btn-primary:hover::after {
                animation: none !important;
            }
        }
        .header-brand {
            display: flex;
            align-items: center;
            min-width: 0;
            flex-shrink: 0;
        }
        .header-brand img {
            height: 2.15rem;
            width: auto;
            max-width: min(52vw, 13.5rem);
            object-fit: contain;
            object-position: left center;
        }
        /* Wordmark com fundo preto “some” no header escuro */
        .header-brand img:not(.is-board-logo) {
            mix-blend-mode: lighten;
        }
        .header-brand img.is-board-logo {
            height: 2.15rem;
            width: 2.15rem;
            max-width: 2.15rem;
            border-radius: 9999px;
            object-fit: cover;
            border: 2px solid rgba(255,255,255,0.22);
            box-shadow: 0 2px 10px rgba(0,0,0,0.35);
            background: rgba(0,0,0,0.25);
            mix-blend-mode: normal;
        }
        .header-brand img.is-board-brand-logo {
            height: 2.15rem;
            width: auto;
            max-width: min(42vw, 8.5rem);
            border-radius: 0.55rem;
            object-fit: contain;
            object-position: left center;
            border: 1px solid rgba(255,255,255,0.12);
            background: rgba(255,255,255,0.04);
            padding: 0.15rem 0.3rem;
            mix-blend-mode: normal;
            box-shadow: none;
        }
        .header-brand-name {
            font-size: 0.8125rem;
            font-weight: 800;
            color: #f8fafc;
            letter-spacing: 0.02em;
            max-width: min(42vw, 10rem);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        /* Dashboard: só a AURA no header (sem logo Fluxo) — degradê full bleed */
        #app-header.is-dash-aura-only {
            padding-top: 0 !important;
            padding-bottom: 0 !important;
            padding-left: 0 !important;
            padding-right: 0 !important;
            min-height: 3rem;
            align-items: stretch;
            gap: 0;
        }
        #app-header.is-dash-aura-only .header-brand {
            display: none !important;
        }
        #app-header.is-dash-aura-only #header-actions {
            margin-left: 0;
            margin-right: 0;
            justify-content: stretch;
            align-items: stretch;
            flex: 1 1 auto;
            width: 100%;
            max-width: none;
            height: auto;
            align-self: stretch;
        }
        #app-header.is-dash-aura-only #header-dash-actions {
            margin-left: 0;
            margin-right: 0;
            width: 100%;
            max-width: none;
            flex: 1 1 auto;
            justify-content: stretch;
            align-items: stretch;
            align-self: stretch;
            height: auto;
            min-height: 100%;
        }
        #app-header.is-dash-aura-only #header-dash-actions.is-on {
            display: flex !important;
        }
        #app-header.is-dash-aura-only #btn-studio-assistant.hdr-btn-assistant {
            width: 100%;
            max-width: none;
            height: 100%;
            min-height: 3rem;
            align-self: stretch;
            /* Ícone + texto juntos, alinhados à esquerda */
            justify-content: flex-start;
            flex-direction: row !important;
            align-items: center;
            gap: 0.55rem;
            padding: 0 1rem 0 0.75rem !important;
            border: none;
            border-radius: 0;
            /* Mesmo degradê do pill (índigo → violeta → magenta), full bleed */
            background: linear-gradient(
                90deg,
                #3b0764 0%,
                #6d28d9 28%,
                #7c3aed 52%,
                #c026d3 82%,
                rgba(192, 38, 211, 0.35) 100%
            ) !important;
            box-shadow: none;
            color: #faf5ff;
        }
        #app-header.is-dash-aura-only #btn-studio-assistant.hdr-btn-assistant:hover {
            filter: brightness(1.05);
            background: linear-gradient(
                90deg,
                #5b21b6 0%,
                #8b5cf6 42%,
                #d946ef 78%,
                rgba(217, 70, 239, 0.4) 100%
            );
        }
        #app-header.is-dash-aura-only #btn-studio-assistant .aura-lottie {
            flex: 0 0 auto;
            order: 1; /* ícone à esquerda */
        }
        #app-header.is-dash-aura-only #btn-studio-assistant .aura-header-phrase {
            max-width: none;
            flex: 1 1 auto;
            text-align: left;
            margin: 0;
            order: 2; /* texto à direita do ícone */
            -webkit-line-clamp: 2;
            font-size: 0.75rem;
            line-height: 1.25;
        }
        @media (max-width: 639px) {
            #app-header.is-dash-aura-only {
                min-height: 3.05rem;
                padding: 0 !important;
            }
            #app-header.is-dash-aura-only #header-dash-actions {
                width: 100%;
            }
            #app-header.is-dash-aura-only #btn-studio-assistant.hdr-btn-assistant {
                min-height: 3.05rem;
                height: 100%;
                padding: 0 0.85rem 0 0.65rem !important;
                gap: 0.5rem;
            }
            #app-header.is-dash-aura-only #btn-studio-assistant .aura-header-phrase {
                font-size: 0.6875rem;
                max-width: none;
            }
        }
        @media (min-width: 640px) {
            .header-brand img { height: 2.4rem; max-width: 15rem; }
            .header-brand img.is-board-logo { height: 2.4rem; width: 2.4rem; max-width: 2.4rem; }
            .header-brand img.is-board-brand-logo { height: 2.4rem; max-width: 10rem; }
            .header-brand-name { font-size: 0.9375rem; max-width: 11rem; }
        }
        .login-brand img {
            height: 3.25rem;
            width: auto;
            max-width: min(88vw, 18rem);
            object-fit: contain;
        }
        @media (min-width: 640px) {
            .login-brand img { height: 3.75rem; max-width: 20rem; }
        }
        .login-brand-preview {
            background: #0b0d10;
            border: 1px dashed rgba(255,255,255,0.1);
            border-radius: 1rem;
            padding: 0.75rem;
        }
        .login-brand-mock-card {
            background: rgba(21, 23, 28, 0.92);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 1.25rem;
            padding: 1rem 0.85rem;
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
        }
        .login-brand-mock-logo {
            height: 1.75rem;
            width: auto;
            max-width: 9.5rem;
            object-fit: contain;
        }
        .login-brand-mock .mock-label {
            font-size: 8px;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: #94a3b8;
            margin-bottom: 0.25rem;
            padding-left: 0.15rem;
        }
        .login-brand-mock .mock-field {
            width: 100%;
            padding: 0.45rem 0.55rem;
            background: rgba(11, 13, 16, 0.55);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 0.55rem;
            font-size: 10px;
            color: #475569;
        }
        .login-brand-mock .mock-btn-primary {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.35rem;
            width: 100%;
            padding: 0.5rem;
            border-radius: 0.55rem;
            font-size: 10px;
            font-weight: 700;
            color: #fff;
            background: linear-gradient(to right, #7c3aed, #4f46e5);
        }
        .login-brand-mock .mock-btn-google {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            width: 100%;
            padding: 0.5rem;
            border-radius: 0.55rem;
            font-size: 10px;
            font-weight: 700;
            color: #111827;
            background: #fff;
        }
        .login-brand-mock .mock-divider {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: #64748b;
            font-size: 8px;
            font-weight: 800;
            text-transform: uppercase;
            margin: 0.15rem 0;
        }
        .login-brand-mock .mock-divider::before,
        .login-brand-mock .mock-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: rgba(255, 255, 255, 0.06);
        }
            .wa-method-tabs { display:flex; gap:0.5rem; padding:0.3rem; margin:1rem 0; background:rgba(0,0,0,.18); border:1px solid rgba(255,255,255,.08); border-radius:1rem; }
        .wa-method-tabs button { flex:1; min-width:0; border:0; border-radius:.75rem; padding:.8rem .5rem; color:#cbd5e1; background:transparent; font-size:.85rem; font-weight:700; cursor:pointer; }
        .wa-method-tabs button.is-active { background:#064e3b; color:#ecfdf5; box-shadow:inset 0 0 0 1px #059669; }
        .wa-method-tabs button:focus-visible,.wa-pairing-copy:focus-visible { outline:2px solid #34d399; outline-offset:3px; }
        .wa-method-tabs button:disabled,.wa-connect-primary:disabled { opacity:.6; cursor:wait; }
        .wa-pairing-form { display:grid; gap:.65rem; }
        .wa-pairing-form label { color:#e2e8f0; font-size:.8rem; font-weight:650; }
        .wa-pairing-form input { width:100%; box-sizing:border-box; border:1px solid #475569; background:#0b0d10; color:#f8fafc; border-radius:.8rem; padding:.9rem; font-size:16px; }
        .wa-pairing-form input:focus { outline:2px solid #34d399; outline-offset:2px; }
        .wa-pairing-form p,.wa-method-note { color:#94a3b8; font-size:.75rem; line-height:1.6; }
        .wa-method-note { margin-top:1rem; }
        .wa-pairing-result { display:flex; flex-direction:column; gap:.7rem; align-items:center; text-align:center; padding:1.1rem; margin-top:1rem; background:rgba(5,150,105,.12); border:1px solid rgba(52,211,153,.35); border-radius:1rem; }
        .wa-pairing-result>span { color:#a7f3d0; font-size:.8rem; }
        .wa-pairing-result strong { font-family:ui-monospace,monospace; font-size:clamp(1.35rem,5vw,2rem); letter-spacing:.1em; color:#ecfdf5; user-select:all; overflow-wrap:anywhere; }
        .wa-pairing-result p { color:#94a3b8; font-size:.75rem; line-height:1.6; }
        .wa-pairing-copy { border:1px solid #059669; border-radius:.65rem; padding:.55rem 1rem; background:transparent; color:#a7f3d0; font-size:.8rem; font-weight:650; cursor:pointer; }
        #wa-method-panel-qr[hidden],#wa-method-panel-code[hidden],#wa-pairing-result[hidden] { display:none !important; }
        .wa-reconnect-number { display:flex;align-items:center;gap:12px;padding:16px;border:1px solid rgba(52,211,153,.2);border-radius:16px;background:linear-gradient(120deg,rgba(16,185,129,.09),rgba(16,185,129,.02)); }
        .wa-reconnect-number-icon { width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:rgba(16,185,129,.12);color:#6ee7b7;flex-shrink:0; }
        .wa-reconnect-number-icon svg,.wa-reconnect-number-icon i { width:19px;height:19px; }
        .wa-reconnect-number>div { display:flex;flex-direction:column;gap:5px;min-width:0;flex:1; }
        .wa-reconnect-number small { color:#94a3b8;font-size:11px; }
        .wa-reconnect-number strong { color:#f1f5f9;font-size:clamp(13px,3.8vw,17px);font-weight:650;overflow-wrap:anywhere; }
        .wa-number-saved { font-size:10px;color:#6ee7b7;background:rgba(16,185,129,.1);border-radius:99px;padding:5px 8px; }
        .wa-phone-editor { margin:8px 0 16px; }
        .wa-phone-editor summary { cursor:pointer;color:#94a3b8;font-size:12px;padding:8px 3px; }
        .wa-phone-editor[open] .wa-pairing-form { padding:12px 0 2px; }
        .wa-generate-code { padding:16px;font-size:15px;border-radius:14px;box-shadow:0 8px 22px rgba(5,150,105,.12); }
        .wa-reconnect-guide { margin-top:22px;padding-top:18px;border-top:1px solid rgba(255,255,255,.07); }
        .wa-reconnect-guide>p { color:#e2e8f0;font-size:12px;font-weight:650;margin:0 0 14px; }
        .wa-reconnect-guide ol { list-style:none;padding:0;margin:0;display:grid;gap:14px; }
        .wa-reconnect-guide li { display:flex;gap:11px;align-items:flex-start;color:#cbd5e1;font-size:12px;line-height:1.5; }
        .wa-reconnect-guide li>span { display:grid;place-items:center;width:23px;height:23px;flex-shrink:0;border-radius:8px;background:rgba(16,185,129,.1);color:#6ee7b7;font-size:11px;font-weight:700; }
        .wa-reconnect-guide small { display:block;color:#94a3b8;font-size:11px;margin-top:3px; }
        .wa-connect-status { margin-bottom:16px; }
