/* ═══════════════════════════════════════════════════════════════════
   ─── BUTLER V3: BUSINESS MODULE & DYNAMIC WORKSPACE STYLESHEET ─────
   ─── Strict 10% (Rail) / 40% (Chat) / 50% (Console) Responsive Grid ─
   ═══════════════════════════════════════════════════════════════════ */

/* ─── 1. CORE MODE (DEFAULT): Left Nav Rail & Business Console HIDDEN ─── */
#appNavRail {
    display: none;
    opacity: 0;
    transform: translateX(-20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.business-workspace-split {
    display: none;
    opacity: 0;
}

/* Base Nav Rail Components (Floating Frosted Capsule) */
.app-nav-rail {
    position: fixed;
    top: 14px;
    bottom: 14px;
    left: 14px;
    width: 62px;
    min-width: 62px;
    max-width: 62px;
    height: calc(100vh - 28px);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    z-index: 60;
    box-sizing: border-box;
}

.rail-top-brand {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    color: var(--text-dark);
}

.rail-top-brand:hover {
    transform: scale(1.08);
}

.rail-mascot-img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: contain;
    display: block;
}

.rail-nav-center {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.rail-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--text-dark);
    opacity: 0.55;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
}

.rail-nav-btn svg {
    width: 20px;
    height: 20px;
}

.rail-nav-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

.rail-nav-btn.active,
.rail-dynamic-btn.active,
#railNavCalendar.active,
#railNavAnalytics.active {
    opacity: 1 !important;
    background: #181A18 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
}

.rail-nav-btn.active:hover,
.rail-dynamic-btn.active:hover,
#railNavCalendar.active:hover,
#railNavAnalytics.active:hover {
    opacity: 1 !important;
    background: #181A18 !important;
    color: #FFFFFF !important;
}

body.dark-mode .rail-nav-btn.active,
body.dark-mode .rail-dynamic-btn.active,
body.dark-mode #railNavCalendar.active,
body.dark-mode #railNavAnalytics.active {
    opacity: 1 !important;
    background: #F8F2ED !important;
    color: #181A18 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode .rail-nav-btn.active:hover,
body.dark-mode .rail-dynamic-btn.active:hover,
body.dark-mode #railNavCalendar.active:hover,
body.dark-mode #railNavAnalytics.active:hover {
    opacity: 1 !important;
    background: #F8F2ED !important;
    color: #181A18 !important;
}

.rail-dynamic-btn {
    transition: opacity 0.25s ease, transform 0.2s ease, background 0.18s ease;
    animation: railBtnFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.biz-module-icon {
    display: inline-block;
    width: 25px;
    height: 25px;
    background-color: currentColor;
    -webkit-mask: url('../images/business-module-icon.png') no-repeat center / contain;
    mask: url('../images/business-module-icon.png') no-repeat center / contain;
    vertical-align: middle;
    flex-shrink: 0;
}

@keyframes railBtnFadeIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 0.65;
        transform: scale(1);
    }
}

.rail-avatar-btn {
    opacity: 1 !important;
}

.rail-avatar-btn:hover {
    opacity: 1 !important;
    transform: scale(1.08);
}

.rail-avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #E2E8F0;
    color: #181A18;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-chat);
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    opacity: 1 !important;
}

.rail-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1 !important;
    display: block;
}

/* ─── 2. ACTIVE BUSINESS MODULE WORKSPACE: 10% / 40% / 50% SPLIT ─── */

/* Header ALWAYS remains 100% stable, identical, never shifted */
body.business-workspace-active .header {
    left: 0 !important;
    width: 100% !important;
    margin-left: 0 !important;
    background: transparent !important;
    border-bottom: none !important;
    position: fixed !important;
    top: 0 !important;
    z-index: 50 !important;
    padding: 20px 32px !important;
    box-sizing: border-box !important;
}

/* First 10%: Left Nav Rail smoothly revealed below Header */
body.business-workspace-active #appNavRail {
    display: flex !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
    position: fixed !important;
    top: 68px !important;
    bottom: 14px !important;
    left: 14px !important;
    width: 62px !important;
    min-width: 62px !important;
    max-width: 62px !important;
    height: calc(100vh - 82px) !important;
    animation: railReveal 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes railReveal {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Next 40%: Unified Chat Area (Preserves full stream without reset) */
body.business-workspace-active .chat-area {
    display: flex !important;
    position: fixed !important;
    top: 68px !important;
    left: 86px !important;
    right: auto !important;
    width: calc(45vw - 102px) !important;
    max-width: calc(45vw - 102px) !important;
    bottom: 84px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    border-right: none !important;
    background: transparent !important;
    z-index: 20;
    transition: width 0.48s cubic-bezier(0.19, 1, 0.22, 1), max-width 0.48s cubic-bezier(0.19, 1, 0.22, 1), left 0.48s cubic-bezier(0.19, 1, 0.22, 1) !important;
    will-change: width;
}

body.business-workspace-active .input-area {
    display: flex !important;
    position: fixed !important;
    bottom: 16px !important;
    left: 86px !important;
    right: auto !important;
    width: calc(45vw - 102px) !important;
    max-width: calc(45vw - 102px) !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    z-index: 30;
    background: transparent !important;
    transition: width 0.48s cubic-bezier(0.19, 1, 0.22, 1), max-width 0.48s cubic-bezier(0.19, 1, 0.22, 1), left 0.48s cubic-bezier(0.19, 1, 0.22, 1) !important;
    will-change: width;
}

body.business-workspace-active .input-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

body.dark-mode.business-workspace-active .input-container,
body.dark-mode .input-container {
    background: rgba(26, 28, 26, 0.88) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(248, 242, 237, 0.12) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode.business-workspace-active .input-container:focus-within,
body.dark-mode .input-container:focus-within {
    background: rgba(32, 35, 32, 0.95) !important;
    border-color: rgba(248, 242, 237, 0.28) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65) !important;
}

body.dark-mode.business-workspace-active .chat-input,
body.dark-mode .chat-input {
    color: #F8F2ED !important;
}

body.dark-mode.business-workspace-active .chat-input::placeholder,
body.dark-mode .chat-input::placeholder {
    color: rgba(248, 242, 237, 0.4) !important;
}

body.dark-mode.business-workspace-active .add-btn,
body.dark-mode.business-workspace-active .action-btn {
    color: rgba(248, 242, 237, 0.75) !important;
}

body.business-workspace-active #mainContent {
    display: none !important;
}

body.business-workspace-active #bottomLeftProfile {
    display: none !important;
}

body.business-workspace-active .floating-settings,
body.business-workspace-active .context-capsule-bar {
    display: none !important;
}

/* Rest 55%: Large Rounded Floating Glass Console */
body.business-workspace-active .business-workspace-split {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 68px !important;
    bottom: 16px !important;
    right: 18px !important;
    left: 45vw !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    padding: 20px 22px 20px 22px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    z-index: 40;
    border-radius: 28px !important;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.04);
    opacity: 1 !important;
    transform: translateX(0);
    transition: transform 0.48s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.38s ease;
    will-change: transform, opacity;
}

body.dark-mode.business-workspace-active .business-workspace-split,
body.dark-mode .business-workspace-split {
    background: rgba(24, 26, 24, 0.92) !important;
    backdrop-filter: blur(32px) !important;
    -webkit-backdrop-filter: blur(32px) !important;
    border: 1px solid rgba(248, 242, 237, 0.12) !important;
    box-shadow: 0 16px 52px rgba(0, 0, 0, 0.6) !important;
}

/* ─── Business Hub Minimized State (Ergonomic Chat Focus - GSAP Expo Smooth) ─── */
body.business-workspace-active.business-hub-minimized .business-workspace-split {
    transform: translateX(calc(100% + 40px)) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: transform 0.48s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.38s ease !important;
}

body.business-workspace-active:not(.business-hub-minimized) .business-workspace-split {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: transform 0.48s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.38s ease !important;
}

/* Chat & Input expand smoothly to centered full reading column when Business Hub is minimized */
body.business-workspace-active.business-hub-minimized .chat-area {
    left: 74px !important;
    right: 0 !important;
    width: calc(100vw - 74px) !important;
    max-width: none !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    transition: width 0.48s cubic-bezier(0.19, 1, 0.22, 1), max-width 0.48s cubic-bezier(0.19, 1, 0.22, 1), left 0.48s cubic-bezier(0.19, 1, 0.22, 1) !important;
}

body.business-workspace-active.business-hub-minimized .input-area {
    left: 74px !important;
    right: 0 !important;
    width: calc(100vw - 74px) !important;
    max-width: none !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: width 0.48s cubic-bezier(0.19, 1, 0.22, 1), max-width 0.48s cubic-bezier(0.19, 1, 0.22, 1), left 0.48s cubic-bezier(0.19, 1, 0.22, 1) !important;
}

body.business-workspace-active.business-hub-minimized .chat-area .message-row,
body.business-workspace-active.business-hub-minimized .chat-area .message {
    width: 100% !important;
    max-width: 820px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

body.business-workspace-active.business-hub-minimized .input-container {
    width: 100% !important;
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.business-workspace-active .chat-area .message-row,
body.business-workspace-active .chat-area .message {
    width: 100% !important;
    max-width: 820px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

body.business-workspace-active .input-container {
    width: 100% !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* Floating Expand Tab at Right End of Screen */
.biz-hub-expand-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(120%);
    z-index: 55;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 10px 12px;
    border-radius: 20px 0 0 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-right: none;
    box-shadow: -4px 8px 24px rgba(0, 0, 0, 0.08);
    color: #181A18;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.35s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body.business-workspace-active.business-hub-minimized .biz-hub-expand-tab {
    display: flex !important;
    transform: translateY(-50%) translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.business-workspace-active:not(.business-hub-minimized) .biz-hub-expand-tab {
    display: none !important;
    visibility: hidden !important;
    transform: translateY(-50%) translateX(120%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.biz-hub-expand-tab:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: -6px 12px 28px rgba(0, 0, 0, 0.14);
    transform: translateY(-50%) translateX(-4px);
}

.biz-hub-expand-tab svg {
    transition: transform 0.2s ease;
}

.biz-hub-expand-tab:hover svg {
    transform: translateX(-3px);
}

body.dark-mode .biz-hub-expand-tab {
    background: rgba(24, 26, 24, 0.9);
    border-color: rgba(248, 242, 237, 0.12);
    box-shadow: -4px 8px 28px rgba(0, 0, 0, 0.55);
    color: #F8F2ED;
}

body.dark-mode .biz-hub-expand-tab:hover {
    background: rgba(32, 35, 32, 0.98);
    box-shadow: -6px 12px 32px rgba(0, 0, 0, 0.75);
}

/* Minimize button inside Business Hub header */
.biz-hub-minimize-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 9px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-chat);
    white-space: nowrap;
}

.biz-hub-minimize-btn:hover {
    background: #F8FAFC;
    border-color: #94A3B8;
    color: #0F172A;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body.dark-mode .biz-hub-minimize-btn {
    background: rgba(248, 242, 237, 0.08) !important;
    border-color: rgba(248, 242, 237, 0.2) !important;
    color: #F8F2ED !important;
}

body.dark-mode .biz-hub-minimize-btn:hover {
    background: rgba(248, 242, 237, 0.15) !important;
    border-color: rgba(248, 242, 237, 0.3) !important;
    color: #FFFFFF !important;
}

/* Back to Sprint button inside Business Hub header */
.biz-hub-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 9px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-chat);
    white-space: nowrap;
}

.biz-hub-back-btn:hover {
    background: #F8FAFC;
    border-color: #94A3B8;
    color: #0F172A;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body.dark-mode .biz-hub-back-btn {
    background: rgba(248, 242, 237, 0.08) !important;
    border-color: rgba(248, 242, 237, 0.2) !important;
    color: #F8F2ED !important;
}

body.dark-mode .biz-hub-back-btn:hover {
    background: rgba(248, 242, 237, 0.15) !important;
    border-color: rgba(248, 242, 237, 0.3) !important;
    color: #FFFFFF !important;
}

/* Floating Corner Minimize button is deprecated to maintain single header minimize button */
.biz-hub-corner-minimize-btn {
    display: none !important;
}

@keyframes moduleConsoleSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ─── Top-Right Apps Dropdown (Image 2 Alignment) ─── */
.apps-dropdown {
    position: fixed !important;
    top: 68px !important;
    right: 28px !important;
    width: 290px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 24px !important;
    padding: 14px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    z-index: 1000 !important;
}

.apps-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
}

.module-launcher-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 12px 14px !important;
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 18px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
    margin: 0 !important;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    transition: all 0.2s ease;
    box-sizing: border-box !important;
}

.module-launcher-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.module-launcher-main-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
}

.module-launcher-card .biz-hub-plan-and-capacity.launcher-plan-capacity {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
    background: rgba(2, 132, 199, 0.05) !important;
    border: 1px solid rgba(2, 132, 199, 0.15) !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.module-launcher-card .biz-hub-plan-and-capacity.launcher-plan-capacity.is-hidden,
.module-launcher-card .biz-hub-plan-and-capacity.launcher-plan-capacity[style*="display: none"] {
    display: none !important;
}

.launcher-footer {
    display: flex !important;
    width: 100% !important;
    margin-top: 2px !important;
}

.launcher-footer .profile-card {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.launcher-footer .profile-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #E2E8F0 !important;
    flex-shrink: 0 !important;
}

.launcher-footer .footer-avatar-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.launcher-footer .profile-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.launcher-footer .profile-name {
    font-family: var(--font-chat) !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #181A18 !important;
}

.launcher-footer .profile-status {
    font-size: 0.72rem !important;
    color: #64748B !important;
}

/* Apps Dropdown Dark Mode Overrides */
body.dark-mode .apps-dropdown {
    background: rgba(24, 26, 24, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .module-launcher-card {
    background: #1E201E !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
}

body.dark-mode .module-launcher-card:hover {
    background: #252825 !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

body.dark-mode .module-card-title {
    color: #F8F2ED !important;
}

body.dark-mode .module-card-desc {
    color: #94A3B8 !important;
}

body.dark-mode .launcher-footer .profile-card {
    background: #1E201E !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
}

body.dark-mode .launcher-footer .profile-card:hover {
    background: #252825 !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

body.dark-mode .launcher-footer .profile-name {
    color: #F8F2ED !important;
}

body.dark-mode .launcher-footer .profile-status {
    color: #94A3B8 !important;
}

.module-card-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #111315;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.module-card-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.module-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.module-card-title {
    font-family: var(--font-chat);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
}

.module-card-desc {
    font-family: var(--font-chat);
    font-size: 0.72rem;
    color: #64748B;
    line-height: 1.2;
}

/* ─── Settings-Style Toggle Switch ─── */
.module-toggle-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

.module-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.module-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CBD5E1;
    transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 9999px;
}

.module-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #FFFFFF;
    transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.module-toggle-switch input:checked + .module-toggle-slider {
    background-color: #018EEF;
}

.module-toggle-switch input:checked + .module-toggle-slider:before {
    transform: translateX(18px);
}

/* ─── Business Workspace Chat Layout Overrides (Mockup Match) ─── */
body.business-workspace-active .chat-area .message-row {
    padding: 8px 0 !important;
}

body.business-workspace-active .chat-area .message-row.message-user {
    justify-content: flex-end !important;
}

body.business-workspace-active .chat-area .message-row.message-user .message-bubble {
    background: #181A18 !important;
    color: #FFFFFF !important;
    border-radius: 20px 20px 4px 20px !important;
    padding: 12px 18px !important;
    font-size: 0.88rem !important;
    max-width: 85% !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

body.business-workspace-active .chat-area .message-row.message-assistant {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
}

body.business-workspace-active .chat-area .message-row.message-assistant .message-avatar {
    width: 28px !important;
    height: 28px !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}

body.business-workspace-active .chat-area .message-row.message-assistant .message-avatar img {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    object-fit: contain !important;
}

body.business-workspace-active .chat-area .message-row.message-assistant .message-bubble {
    background: transparent !important;
    border: none !important;
    padding: 2px 0 !important;
    box-shadow: none !important;
    color: #1E293B !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}

body.business-workspace-active .chat-area .message-row.message-assistant .message-actions {
    display: none !important;
}

/* ─── Business Module Connected Message Card ─── */
.biz-module-connected-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin: 10px 0;
}

.biz-module-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #111315;
    color: #FFFFFF;
    font-size: 0.88rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-chat);
    flex-shrink: 0;
    overflow: hidden;
}

.biz-module-card-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.biz-module-card-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.biz-module-card-text strong {
    font-size: 0.88rem;
    color: var(--text-dark);
    font-family: var(--font-chat);
}

.biz-module-card-text span {
    font-size: 0.72rem;
    color: #64748B;
}

.biz-module-connected-btn {
    background: #181A18;
    color: #FFFFFF;
    border: none;
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: default;
    font-family: var(--font-chat);
}

/* ═══════════════════════════════════════════════════════════════════
   ─── BUSINESS MODULE CONSOLE INTERNALS (Canvas, Stages, Cards) ─────
   ═══════════════════════════════════════════════════════════════════ */

.biz-canvas-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.biz-stage-panels-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

/* Stage Panels & Full Scrollability System */
.biz-stage-panel {
    display: none;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    flex: 1 1 0px;
    min-height: 0; /* Critical for flex child overflow scrolling */
    max-height: 100%;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-bottom: 24px;
    padding-right: 8px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(0, 0, 0, 0.18) transparent !important;
    animation: bizPanelFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.biz-stage-panel.active {
    display: flex !important;
}

/* VisionOS Slim Glass Scrollbar (Overrides global hidden scrollbars) */
.biz-stage-panel::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
    display: block !important;
}

.biz-stage-panel::-webkit-scrollbar-track {
    background: transparent !important;
}

.biz-stage-panel::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18) !important;
    border-radius: 9999px !important;
}

.biz-stage-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.32) !important;
}

body.dark-mode .biz-stage-panel {
    scrollbar-color: rgba(248, 242, 237, 0.22) transparent !important;
}

body.dark-mode .biz-stage-panel::-webkit-scrollbar-thumb {
    background: rgba(248, 242, 237, 0.2) !important;
}

body.dark-mode .biz-stage-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(248, 242, 237, 0.38) !important;
}

@keyframes bizPanelFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stage Headers */
.biz-stage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.biz-setup-main-title,
.biz-stage-title {
    font-family: var(--font-chat);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.01em;
    margin: 0;
}

.biz-stage-desc {
    font-size: 0.78rem;
    color: #64748B;
    margin: 2px 0 0 0;
}

/* ─── Stage 1: Business Setup Grid ─── */
.biz-setup-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1180px) {
    .biz-setup-grid {
        grid-template-columns: 1fr;
    }
}

.biz-setup-left-col,
.biz-setup-right-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.biz-setup-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.biz-setup-card-title {
    font-family: var(--font-chat);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px 0;
}

.biz-setup-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.biz-setup-field-label {
    font-family: var(--font-chat);
    font-size: 0.65rem;
    font-weight: 800;
    color: #94A3B8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.biz-setup-input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #F8FAFC;
    font-family: var(--font-chat);
    font-size: 0.82rem;
    color: var(--text-dark);
    outline: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

select.biz-setup-input,
.biz-setup-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #F8FAFC;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) center;
    background-size: 13px 13px;
    padding-right: 32px !important;
    cursor: pointer;
    font-family: var(--font-chat);
    font-size: 0.82rem;
    color: var(--text-dark);
}

select.biz-setup-input:hover,
.biz-setup-select:hover {
    border-color: #CBD5E1;
    background-color: #FFFFFF;
}

#fieldWrapBizDesc,
#setupBizDesc {
    position: relative;
    z-index: 2;
    pointer-events: auto !important;
    cursor: text !important;
    user-select: text !important;
    -webkit-user-select: text !important;
}

.biz-setup-field-label .req {
    color: #EF4444;
    font-weight: 800;
    margin-left: 2px;
}

.biz-setup-input.input-error,
.biz-single-logo-dropzone.input-error {
    border-color: #EF4444 !important;
    background: rgba(239, 68, 68, 0.04) !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
    animation: shakeSetupInput 0.35s ease-in-out;
}

@keyframes shakeSetupInput {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

.biz-setup-input:focus {
    background: #FFFFFF;
    border-color: #181A18;
    box-shadow: 0 0 0 2px rgba(24, 26, 24, 0.08);
}

/* Social Rows */
.biz-social-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.biz-social-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}

.biz-social-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.biz-social-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

.biz-social-icon.insta { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.biz-social-icon.fb { background: #1877F2; }
.biz-social-icon.li { background: #0A66C2; }

.biz-social-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
}

.biz-connect-pill-btn {
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #F1F5F9;
    color: #475569;
    transition: all 0.18s ease;
}

.biz-connect-pill-btn.connected {
    background: #181A18;
    color: #FFFFFF;
    border-color: #181A18;
}

/* Brand Logo Preview Cards (Mockup Fidelity) */
.biz-logo-dropzones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.biz-logo-card-preview-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.biz-logo-preview-box {
    height: 74px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
}

.biz-logo-preview-box:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.biz-logo-preview-box.white-box {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
}

.biz-logo-preview-box.dark-box {
    background: #181A18;
}

.biz-wordmark-preview-txt {
    font-family: var(--font-chat);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #181A18;
}

.biz-logo-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px;
}

.biz-dropzone-filename {
    font-size: 0.68rem;
    color: #64748B;
    font-weight: 500;
}

.biz-logo-status-tag {
    font-size: 0.68rem;
    color: #64748B;
    font-weight: 500;
}

/* Brand Kit Preview (Mockup Fidelity) */
.biz-kit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.biz-kit-status {
    font-size: 0.72rem;
    color: #94A3B8;
    font-weight: 500;
}

.biz-kit-status.detected {
    color: #94A3B8;
}

/* ─── Business Details Drawer & Field Grid ─── */
.biz-setup-fields-grid-2col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}
.biz-setup-fields-grid-2col:empty {
    display: none;
}
.biz-setup-fields-grid-2col > :only-child {
    grid-column: 1 / -1;
}
@media (max-width: 640px) {
    .biz-setup-fields-grid-2col {
        grid-template-columns: 1fr;
    }
}

.biz-prefilled-drawer {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 10px;
    background: #F8FAFC;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 2px;
}

.biz-prefilled-drawer.open {
    border-color: #CBD5E1;
    background: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.biz-prefilled-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.biz-prefilled-drawer-header:hover {
    background: rgba(0, 0, 0, 0.02);
}

.biz-prefilled-drawer-header-left {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.biz-prefilled-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #0284C7;
    background: rgba(1, 142, 239, 0.08);
    border: 1px solid rgba(1, 142, 239, 0.22);
    padding: 2px 6px;
    border-radius: 6px;
    white-space: nowrap;
}

.biz-prefilled-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.biz-prefilled-title {
    font-size: 0.76rem;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.2;
}

.biz-prefilled-desc {
    font-size: 0.7rem;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    max-width: 250px;
}

.biz-prefilled-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #0284C7;
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.2);
    padding: 4px 9px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.biz-prefilled-toggle-btn:hover {
    background: rgba(2, 132, 199, 0.15);
    color: #0369A1;
}

.biz-drawer-chevron {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.biz-prefilled-drawer.open .biz-drawer-chevron {
    transform: rotate(180deg);
}

.biz-prefilled-drawer-body {
    padding: 12px;
    border-top: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #FFFFFF;
}

.biz-unfilled-fields-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

/* ─── Card Header Flex (Top title + badge alignment) ─── */
.biz-card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

/* ─── Social Publishing Accounts: Full-Length Instagram Hero + Bottom Locked Strip ─── */
.biz-social-hero-card {
    width: 100%;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-sizing: border-box;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.biz-social-hero-card:hover {
    border-color: #CBD5E1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.biz-social-hero-card.is-connected {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.03) 0%, rgba(131, 58, 180, 0.02) 50%, rgba(253, 175, 69, 0.02) 100%), #FFFFFF;
    border-color: rgba(225, 48, 108, 0.35);
    box-shadow: 0 4px 16px rgba(225, 48, 108, 0.06);
}

.biz-social-hero-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.biz-social-hero-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.biz-social-icon.insta-hero {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    box-shadow: 0 3px 10px rgba(225, 48, 108, 0.25);
    transition: transform 0.2s ease;
}

.biz-social-hero-card:hover .biz-social-icon.insta-hero {
    transform: scale(1.03);
}

.biz-social-icon.insta-hero svg {
    width: 21px;
    height: 21px;
}

.biz-social-hero-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #94A3B8;
    border: 2px solid #FFFFFF;
    transition: all 0.2s ease;
}

.biz-social-hero-card.is-connected .biz-social-hero-status-dot {
    background: #018EEF;
    box-shadow: 0 0 0 2px rgba(1, 142, 239, 0.25);
}

.biz-social-hero-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1 1 auto;
}

.biz-social-hero-title-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.biz-social-hero-platform {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.2px;
}

.biz-social-hero-badge {
    font-size: 0.63rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 7px;
    border-radius: 9999px;
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
}

.biz-social-status-pill {
    font-size: 0.66rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.biz-social-status-pill.not-connected {
    background: #F1F5F9;
    color: #64748B;
    border: 1px solid #CBD5E1;
}

.biz-social-status-pill.connected {
    background: rgba(1, 142, 239, 0.12);
    color: #0284C7;
    border: 1px solid rgba(1, 142, 239, 0.3);
}

.biz-social-status-pill.pending {
    background: rgba(245, 158, 11, 0.12);
    color: #D97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.biz-social-status-pill.invite {
    background: rgba(99, 102, 241, 0.1);
    color: #6366F1;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.biz-social-status-pill.connected .status-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #018EEF;
    display: inline-block;
}

.biz-social-hero-handle-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.biz-social-hero-handle {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0284C7;
    letter-spacing: -0.1px;
}

.biz-social-hero-card:not(.is-connected) .biz-social-hero-handle {
    color: #64748B;
    font-weight: 500;
}

.biz-social-hero-meta {
    font-size: 0.70rem;
    color: #94A3B8;
}

.biz-social-hero-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.biz-hero-connect-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #FFFFFF;
    border: none;
    padding: 7px 15px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(225, 48, 108, 0.22);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.biz-hero-connect-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(225, 48, 108, 0.32);
}

.biz-hero-connect-btn.pending {
    background: rgba(245, 158, 11, 0.14);
    color: #D97706;
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: none;
}

.biz-hero-connect-btn.pending:hover {
    background: rgba(245, 158, 11, 0.22);
    box-shadow: none;
    transform: none;
}

.biz-hero-disconnect-btn {
    background: #FFF1F2;
    color: #E11D48;
    border: 1px solid rgba(225, 29, 72, 0.25);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.biz-hero-disconnect-btn:hover {
    background: #FFE4E6;
    border-color: #E11D48;
    color: #BE123C;
}

.biz-hero-switch-btn {
    background: #FFFFFF;
    color: #334155;
    border: 1px solid #CBD5E1;
    padding: 6px 11px;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.biz-hero-switch-btn:hover {
    background: #F8FAFC;
    border-color: #94A3B8;
    color: #0F172A;
}

.biz-hero-whitelisted-btn {
    background: transparent;
    color: #64748B;
    border: 1px dashed rgba(100, 116, 139, 0.4);
    padding: 6px 11px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.biz-hero-whitelisted-btn:hover {
    background: rgba(100, 116, 139, 0.08);
    border-color: #64748B;
    color: #1E293B;
}

body.dark-mode .biz-hero-whitelisted-btn {
    color: #94A3B8;
    border-color: rgba(148, 163, 184, 0.3);
}

body.dark-mode .biz-hero-whitelisted-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
}

/* ─── Compact Locked / Enterprise Channels Section at Bottom ─── */
.biz-social-locked-section {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px dashed #E2E8F0;
}

.biz-social-locked-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}

.biz-social-locked-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.biz-social-locked-hint {
    font-size: 0.66rem;
    color: #94A3B8;
    font-weight: 600;
}

.biz-social-locked-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
}

@media (max-width: 640px) {
    .biz-social-locked-grid {
        grid-template-columns: 1fr;
    }
    .biz-social-hero-card {
        flex-direction: column;
        align-items: stretch;
    }
    .biz-social-hero-actions {
        margin-top: 8px;
        justify-content: flex-end;
    }
}

.biz-social-locked-chip {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 6px 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    opacity: 0.85;
    transition: all 0.15s ease;
}

.biz-social-locked-chip:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
    opacity: 1;
}

.biz-social-locked-chip-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.biz-social-chip-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    flex-shrink: 0;
    background: #64748B;
}

.biz-social-chip-icon.fb-locked {
    background: #1877F2 !important;
}

.biz-social-chip-icon.li-locked {
    background: #0A66C2 !important;
}

.biz-social-chip-icon.wa-locked {
    background: #25D366 !important;
}

.biz-social-chip-icon svg,
.biz-social-locked-chip svg {
    width: 13px !important;
    height: 13px !important;
    max-width: 13px !important;
    max-height: 13px !important;
    stroke: currentColor !important;
    flex-shrink: 0 !important;
}

.biz-social-fullwidth,
.biz-product-fullwidth {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin-top: 14px !important;
    grid-column: 1 / -1 !important;
}

.biz-social-chip-texts {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.biz-social-chip-name {
    font-size: 0.70rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.2;
}

.biz-social-chip-sub {
    font-size: 0.61rem;
    color: #94A3B8;
    line-height: 1.2;
}

.biz-chip-lock-tag {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.61rem;
    font-weight: 700;
    color: #64748B;
    background: rgba(100, 116, 139, 0.1);
    padding: 2px 5px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* ─── Compact Brand Kit Palette Bar (Below Logo) ─── */
.biz-compact-palette-wrap {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.biz-compact-palette-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.biz-compact-palette-title {
    font-size: 0.76rem;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
}

.biz-compact-palette-count {
    font-size: 0.68rem;
    color: #94A3B8;
    font-weight: 600;
    white-space: nowrap;
}

.biz-compact-swatches-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    scrollbar-width: thin;
}

.biz-compact-swatches-strip .biz-swatch-col {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 7px;
    border-radius: 6px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    flex-shrink: 0;
}

.biz-compact-swatches-strip .biz-swatch-box {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.biz-compact-swatches-strip .biz-swatch-name {
    font-size: 0.66rem;
    color: #475569;
    font-weight: 600;
    white-space: nowrap;
}

.biz-compact-style-pills {
    display: flex;
    gap: 6px;
    margin-top: 7px;
    flex-wrap: wrap;
}

.biz-compact-pill {
    font-size: 0.66rem;
    color: #64748B;
    background: #F1F5F9;
    padding: 2px 7px;
    border-radius: 5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

/* Fallback legacy compatibility */
.biz-swatches-grid {
    display: flex;
    gap: 10px;
    margin: 8px 0;
}

.biz-swatch-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.biz-swatch-box {
    width: 32px;
    height: 26px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.biz-swatch-name {
    font-size: 0.64rem;
    color: #64748B;
    font-weight: 500;
}

/* Dark Mode overrides for Stage 0 elements */
body.dark-mode .biz-prefilled-drawer {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .biz-prefilled-drawer.open {
    background: #181C26;
    border-color: rgba(255, 255, 255, 0.15);
}
body.dark-mode .biz-prefilled-drawer-header:hover {
    background: rgba(255, 255, 255, 0.02);
}
body.dark-mode .biz-prefilled-title {
    color: #F1F5F9;
}
body.dark-mode .biz-prefilled-desc {
    color: #94A3B8;
}
body.dark-mode .biz-prefilled-drawer-body {
    background: #181C26;
    border-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .biz-prefilled-toggle-btn {
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.25);
}
body.dark-mode .biz-social-tile {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .biz-social-tile:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}
body.dark-mode .biz-social-tile .biz-social-name {
    color: #F1F5F9;
}
body.dark-mode .biz-social-tile .biz-social-handle {
    color: #94A3B8;
}
body.dark-mode .biz-compact-palette-wrap {
    border-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .biz-compact-palette-title {
    color: #E2E8F0;
}
body.dark-mode .biz-compact-swatches-strip .biz-swatch-col {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .biz-compact-swatches-strip .biz-swatch-name {
    color: #94A3B8;
}
body.dark-mode .biz-compact-pill {
    background: rgba(255, 255, 255, 0.06);
    color: #94A3B8;
}

.biz-setup-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.biz-brandkit-change-notice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #0284C7;
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.25);
    padding: 6px 12px;
    border-radius: 9999px;
    animation: fadeInNotice 0.2s ease-out;
}

body.dark-mode .biz-brandkit-change-notice {
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
}

.biz-save-continue-btn.is-back-btn {
    background: #F1F5F9;
    color: #334155;
    border: 1px solid #CBD5E1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.biz-save-continue-btn.is-back-btn:hover {
    background: #E2E8F0;
    color: #0F172A;
    border-color: #94A3B8;
}

body.dark-mode .biz-save-continue-btn.is-back-btn {
    background: #1F2937;
    color: #E2E8F0;
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .biz-save-continue-btn.is-back-btn:hover {
    background: #374151;
    color: #FFFFFF;
}

@keyframes fadeInNotice {
    from {
        opacity: 0;
        transform: translateY(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.biz-save-continue-btn {
    background: #181A18;
    color: #FFFFFF;
    border: none;
    border-radius: 9999px;
    padding: 10px 24px;
    font-family: var(--font-chat);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.biz-save-continue-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    background: #000000;
}

.biz-primary-cta {
    background: #181A18;
    color: #FFFFFF;
    border: none;
    border-radius: 9999px;
    padding: 10px 22px;
    font-family: var(--font-chat);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
    white-space: nowrap !important;
}

.biz-primary-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    background: #000000;
}

/* ─── Stage 2: 30-Day Calendar Grid ─── */
.biz-calendar-top-stats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.biz-metric-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    background: #F1F5F9;
    color: #475569;
}

.biz-metric-pill.success {
    background: rgba(1, 142, 239, 0.12);
    color: #0284C7;
}

.biz-strategy-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F8FAFC;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.78rem;
    color: #475569;
}

.biz-calendar-container {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.biz-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: #94A3B8;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.biz-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.biz-cal-day-cell {
    background: #F8FAFC;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 8px 7px;
    min-height: 74px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    position: relative;
}

.biz-cal-day-cell:hover {
    background: #FFFFFF;
    border-color: #181A18;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.biz-cal-day-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.biz-cal-day-num {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-dark, #181A18);
}

.biz-cal-type-pill {
    font-size: 0.52rem;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.biz-cal-type-pill.post { background: rgba(1, 142, 239, 0.12); color: #0284C7; }
.biz-cal-type-pill.carousel { background: #F1F5F9; color: #475569; }
.biz-cal-type-pill.story { background: rgba(1, 142, 239, 0.08); color: #018EEF; }
.biz-cal-type-pill.reel { background: rgba(1, 142, 239, 0.18); color: #0070C0; }

/* Indian Festival & Special Occasion Mini Badge on Cell */
.biz-cal-festive-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.56rem;
    font-weight: 700;
    color: var(--text-primary, #181A18);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.biz-festive-icon {
    font-size: 0.65rem;
    line-height: 1;
}

.biz-festive-name {
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark-mode .biz-cal-festive-badge {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #F8F2ED !important;
}

.biz-cal-day-title {
    font-size: 0.63rem;
    color: #475569;
    line-height: 1.25;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 4 Progress Stages (Planned, Prepared, Scheduled, Posted) */
.biz-cal-day-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: auto;
}

.biz-cal-status-pill {
    font-size: 0.54rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    letter-spacing: 0.02em;
}

.biz-status-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

/* 1. Planned (Blueprint Slate) */
.biz-cal-status-pill.planned {
    background: #F1F5F9;
    color: #475569;
}
.biz-cal-status-pill.planned .biz-status-dot { background: #64748B; }
body.dark-mode .biz-cal-status-pill.planned {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #94A3B8 !important;
}
body.dark-mode .biz-cal-status-pill.planned .biz-status-dot { background: #94A3B8 !important; }

/* 2. Prepared (Refined Slate / Silver) */
.biz-cal-status-pill.prepared {
    background: #E2E8F0;
    color: #334155;
}
.biz-cal-status-pill.prepared .biz-status-dot { background: #475569; }
body.dark-mode .biz-cal-status-pill.prepared {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #CBD5E1 !important;
}
body.dark-mode .biz-cal-status-pill.prepared .biz-status-dot { background: #E2E8F0 !important; }

/* 3. Scheduled (Butler Brand Sky / Blue) */
.biz-cal-status-pill.scheduled {
    background: rgba(1, 142, 239, 0.12);
    color: #0284C7;
}
.biz-cal-status-pill.scheduled .biz-status-dot { background: #018EEF; }
body.dark-mode .biz-cal-status-pill.scheduled {
    background: rgba(1, 142, 239, 0.18) !important;
    color: #38BDF8 !important;
}
body.dark-mode .biz-cal-status-pill.scheduled .biz-status-dot { background: #38BDF8 !important; }

/* 4. Posted (Butler Primary Solid Blue) */
.biz-cal-status-pill.posted {
    background: rgba(1, 142, 239, 0.22);
    color: #0070C0;
}
.biz-cal-status-pill.posted .biz-status-dot { background: #0070C0; }
body.dark-mode .biz-cal-status-pill.posted {
    background: rgba(1, 142, 239, 0.28) !important;
    color: #7DD3FC !important;
}
body.dark-mode .biz-cal-status-pill.posted .biz-status-dot { background: #7DD3FC !important; }

/* ─── Day Content & Progress Detail Modal ─── */
.biz-day-detail-card {
    width: 100%;
    max-width: 480px;
    background: #FFFFFF;
    border-radius: 22px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    animation: metaCardPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode .biz-day-detail-card {
    background: #181A18 !important;
    border-color: rgba(248, 242, 237, 0.14) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7) !important;
}

.biz-day-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.dark-mode .biz-day-detail-header {
    border-color: rgba(248, 242, 237, 0.1) !important;
}

.biz-day-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.biz-day-header-date {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark, #181A18);
}

body.dark-mode .biz-day-header-date {
    color: #F8F2ED !important;
}

.biz-day-header-pill {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(1, 142, 239, 0.12);
    color: #0284C7;
    text-transform: uppercase;
}

body.dark-mode .biz-day-header-pill {
    background: rgba(1, 142, 239, 0.18) !important;
    color: #38BDF8 !important;
}

/* Indian Festival Detail Banner */
.biz-day-occasion-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .biz-day-occasion-banner {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.biz-occasion-icon {
    font-size: 1.3rem;
}

.biz-occasion-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.biz-occasion-info strong {
    font-size: 0.82rem;
    color: var(--text-primary, #181A18);
}

body.dark-mode .biz-occasion-info strong {
    color: #F8F2ED !important;
}

.biz-occasion-info span {
    font-size: 0.7rem;
    color: var(--text-secondary, #64748B);
}

body.dark-mode .biz-occasion-info span {
    color: rgba(248, 242, 237, 0.65) !important;
}

.biz-occasion-boost-tag {
    font-size: 0.62rem;
    font-weight: 700;
    color: #065F46;
    background: #D1FAE5;
    padding: 3px 8px;
    border-radius: 9999px;
    white-space: nowrap;
}

body.dark-mode .biz-occasion-boost-tag {
    background: rgba(1, 142, 239, 0.2) !important;
    color: #38BDF8 !important;
}

.biz-day-detail-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 60vh;
    overflow-y: auto;
}

.biz-day-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.biz-day-content-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-dark, #181A18);
    margin: 0;
}

body.dark-mode .biz-day-content-title {
    color: #F8F2ED !important;
}

/* Progress Stepper in Modal */
.biz-progress-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.biz-progress-status-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    background: #F1F5F9;
    color: #334155;
}

body.dark-mode .biz-progress-status-badge {
    background: rgba(248, 242, 237, 0.1) !important;
    color: #F8F2ED !important;
}

.biz-day-progress-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #F8FAFC;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.dark-mode .biz-day-progress-bar {
    background: rgba(20, 22, 20, 0.6) !important;
    border-color: rgba(248, 242, 237, 0.1) !important;
}

.biz-progress-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: var(--font-chat);
}

.biz-prog-num {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #E2E8F0;
    color: #475569;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.biz-prog-txt {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748B;
}

.biz-prog-sep {
    font-size: 0.65rem;
    color: #94A3B8;
}

.biz-progress-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

body.dark-mode .biz-progress-btn:hover {
    background: rgba(248, 242, 237, 0.08) !important;
}

/* Active states for each progress step */
.biz-progress-btn.active.planned {
    background: #F1F5F9;
    border-color: #CBD5E1;
}
.biz-progress-btn.active.planned .biz-prog-num { background: #64748B; color: #FFFFFF; }
.biz-progress-btn.active.planned .biz-prog-txt { color: #475569; font-weight: 700; }

.biz-progress-btn.active.prepared {
    background: #E2E8F0;
    border-color: #94A3B8;
}
.biz-progress-btn.active.prepared .biz-prog-num { background: #475569; color: #FFFFFF; }
.biz-progress-btn.active.prepared .biz-prog-txt { color: #334155; font-weight: 700; }

.biz-progress-btn.active.scheduled {
    background: rgba(1, 142, 239, 0.12);
    border-color: rgba(1, 142, 239, 0.4);
}
.biz-progress-btn.active.scheduled .biz-prog-num { background: #018EEF; color: #FFFFFF; }
.biz-progress-btn.active.scheduled .biz-prog-txt { color: #0284C7; font-weight: 700; }

.biz-progress-btn.active.posted {
    background: rgba(1, 142, 239, 0.22);
    border-color: rgba(1, 142, 239, 0.5);
}
.biz-progress-btn.active.posted .biz-prog-num { background: #0070C0; color: #FFFFFF; }
.biz-progress-btn.active.posted .biz-prog-txt { color: #0070C0; font-weight: 700; }

body.dark-mode .biz-progress-btn.active.planned {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}
body.dark-mode .biz-progress-btn.active.planned .biz-prog-txt { color: #94A3B8 !important; }

body.dark-mode .biz-progress-btn.active.prepared {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}
body.dark-mode .biz-progress-btn.active.prepared .biz-prog-txt { color: #CBD5E1 !important; }

body.dark-mode .biz-progress-btn.active.scheduled {
    background: rgba(1, 142, 239, 0.2) !important;
    border-color: rgba(1, 142, 239, 0.45) !important;
}
body.dark-mode .biz-progress-btn.active.scheduled .biz-prog-txt { color: #38BDF8 !important; }

body.dark-mode .biz-progress-btn.active.posted {
    background: rgba(1, 142, 239, 0.28) !important;
    border-color: rgba(1, 142, 239, 0.55) !important;
}
body.dark-mode .biz-progress-btn.active.posted .biz-prog-txt { color: #7DD3FC !important; }

/* Specs Row */
.biz-day-specs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.biz-spec-box {
    background: #F8FAFC;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.dark-mode .biz-spec-box {
    background: rgba(20, 22, 20, 0.6) !important;
    border-color: rgba(248, 242, 237, 0.1) !important;
}

.biz-spec-lbl {
    font-size: 0.64rem;
    color: #64748B;
}

body.dark-mode .biz-spec-lbl {
    color: rgba(248, 242, 237, 0.5) !important;
}

.biz-spec-val {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dark, #181A18);
}

body.dark-mode .biz-spec-val {
    color: #F8F2ED !important;
}

/* Caption Preview Box */
.biz-caption-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.biz-copy-snippet-btn {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.biz-copy-snippet-btn:hover {
    background: #E2E8F0;
    color: #0F172A;
}

body.dark-mode .biz-copy-snippet-btn {
    background: rgba(248, 242, 237, 0.1) !important;
    border-color: rgba(248, 242, 237, 0.2) !important;
    color: #F8F2ED !important;
}

.biz-day-caption-box {
    background: #F8FAFC;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.76rem;
    line-height: 1.45;
    color: #334155;
    max-height: 120px;
    overflow-y: auto;
    white-space: pre-line;
}

body.dark-mode .biz-day-caption-box {
    background: rgba(20, 22, 20, 0.6) !important;
    border-color: rgba(248, 242, 237, 0.1) !important;
    color: rgba(248, 242, 237, 0.85) !important;
}

/* ─── Stage 3: Creative Studio Carousel ─── */
.biz-carousel-viewer {
    position: relative;
    background: #181A18;
    border-radius: 14px;
    height: 240px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.biz-carousel-slide {
    display: none;
    position: absolute;
    inset: 0;
    padding: 24px;
    color: #FFFFFF;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.biz-carousel-slide.active {
    display: flex;
}

.biz-slide-tag {
    font-size: 0.68rem;
    font-weight: 800;
    color: #018EEF;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
body.dark-mode .biz-slide-tag {
    color: #38BDF8 !important;
}

.biz-slide-headline {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.25;
    margin: 0 0 8px 0;
}

.biz-slide-desc {
    font-size: 0.78rem;
    opacity: 0.85;
    line-height: 1.4;
    margin: 0;
}

.biz-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #FFFFFF;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.15s ease;
    z-index: 10;
}

.biz-carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.biz-carousel-arrow.prev { left: 12px; }
.biz-carousel-arrow.next { right: 12px; }

.biz-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.biz-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}

.biz-dot.active {
    background: #FFFFFF;
    width: 18px;
    border-radius: 4px;
}

/* ─── Stage 4: Heatmap Table ─── */
.biz-heatmap-table {
    display: grid;
    grid-template-columns: 48px repeat(7, 1fr);
    gap: 4px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.biz-heatmap-cell {
    height: 28px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease;
}

.biz-heatmap-cell:hover {
    transform: scale(1.1);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.heat-0 { background: #F1F5F9; color: transparent; }
.heat-1 { background: rgba(1, 142, 239, 0.12); color: #0284C7; }
.heat-2 { background: rgba(1, 142, 239, 0.25); color: #018EEF; }
.heat-3 { background: rgba(1, 142, 239, 0.45); color: #FFFFFF; }
.heat-4 { background: #018EEF; color: #FFFFFF; }
.heat-5 { background: #0070C0; color: #FFFFFF; }

/* ─── Stage 5: Live Publishing Queue & Channel Cards ─── */
.biz-channel-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 1120px) {
    .biz-channel-cards-row {
        grid-template-columns: 1fr;
    }
}

.biz-live-channel-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.biz-live-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.biz-channel-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #FFFFFF;
    flex-shrink: 0;
}

.biz-channel-icon.insta {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.biz-channel-icon.fb {
    background: #1877F2;
}

.biz-channel-icon.li {
    background: #0A66C2;
}

.biz-live-card-name {
    font-family: var(--font-chat);
    font-size: 0.84rem;
    font-weight: 700;
    color: #181A18;
    display: block;
}

.biz-live-card-handle {
    font-size: 0.7rem;
    color: #64748B;
    display: block;
}

.biz-live-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 8px;
}

.biz-live-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #64748B;
}

.biz-live-meta-row strong {
    color: #181A18;
    font-weight: 600;
}

.biz-green-txt {
    color: #018EEF;
    font-weight: 600;
    font-size: 0.7rem;
}
body.dark-mode .biz-green-txt {
    color: #38BDF8 !important;
}

.biz-stage-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 14px;
}

@media (max-width: 1080px) {
    .biz-stage-grid {
        grid-template-columns: 1fr;
    }
}

.biz-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.biz-card-heading {
    font-family: var(--font-chat);
    font-size: 0.88rem;
    font-weight: 700;
    color: #181A18;
    margin: 0 0 12px 0;
}

body.dark-mode .biz-card {
    background: #181A18;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

body.dark-mode .biz-card-heading {
    color: #F8F2ED;
}

body.dark-mode .biz-slide-counter {
    color: #94A3B8;
}

body.dark-mode .biz-progress-header span {
    color: #94A3B8;
}

body.dark-mode .biz-progress-bar {
    background: rgba(255, 255, 255, 0.08);
}

.biz-live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(1, 142, 239, 0.12);
    color: #0284C7;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
}
body.dark-mode .biz-live-status-pill {
    background: rgba(1, 142, 239, 0.2) !important;
    color: #38BDF8 !important;
}

.status-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16A34A;
    animation: pulse 1.6s infinite;
}

/* ─── Modules Hub Grid ─── */
.biz-modules-hub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 1080px) {
    .biz-modules-hub-grid {
        grid-template-columns: 1fr;
    }
}

.biz-module-hub-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.biz-module-hub-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.biz-module-hub-card.active {
    border-color: rgba(24, 26, 24, 0.15);
    background: #FFFFFF;
}

.biz-module-hub-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.biz-module-hub-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #181A18;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.biz-module-hub-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.biz-module-hub-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.biz-module-hub-name {
    font-family: var(--font-chat);
    font-size: 0.88rem;
    font-weight: 700;
    color: #181A18;
}

.biz-module-hub-tagline {
    font-size: 0.72rem;
    color: #64748B;
}

.biz-module-hub-desc {
    font-size: 0.74rem;
    color: #64748B;
    line-height: 1.4;
    margin: 0;
}

.biz-module-hub-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}

.biz-canvas-btn {
    padding: 7px 14px;
    border-radius: 8px;
    font-family: var(--font-chat);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
}

.biz-canvas-btn.primary {
    background: #181A18;
    color: #FFFFFF;
}

.biz-canvas-btn.primary:hover {
    background: #000000;
}

body.dark-mode .biz-canvas-btn.primary {
    background: #F8F2ED;
    color: #181A18;
}

body.dark-mode .biz-canvas-btn.primary:hover {
    background: #FFFFFF;
}

.biz-canvas-btn.outline {
    background: #F8FAFC;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #334155;
}

.biz-canvas-btn.outline:hover {
    background: #FFFFFF;
    border-color: #181A18;
}

body.dark-mode .biz-canvas-btn.outline {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #F8F2ED;
}

body.dark-mode .biz-canvas-btn.outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ─── Carousel Controls & Dots ─── */
.biz-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0 0 12px 12px;
}

body.dark-mode .biz-carousel-controls {
    background: rgba(255, 255, 255, 0.02);
    border-top-color: rgba(255, 255, 255, 0.06);
}

.biz-carousel-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.biz-carousel-dots .biz-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

body.dark-mode .biz-carousel-dots .biz-dot {
    background: rgba(255, 255, 255, 0.2);
}

.biz-carousel-dots .biz-dot.active {
    width: 22px;
    border-radius: 4px;
    background: var(--text-dark, #181A18);
}

body.dark-mode .biz-carousel-dots .biz-dot.active {
    background: #FFFFFF;
}

.biz-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.dark-mode .biz-icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.biz-icon-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

body.dark-mode .biz-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ─── Active Sprint Milestone Banner ─── */
.biz-milestone-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.08), rgba(245, 158, 11, 0.08));
    border: 1px solid rgba(2, 132, 199, 0.25);
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 14px;
    gap: 12px;
    color: var(--text-dark, #181A18);
}

body.dark-mode .biz-milestone-banner {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.15), rgba(245, 158, 11, 0.1));
    border-color: rgba(56, 189, 248, 0.3);
    color: #F8F2ED;
}

.biz-milestone-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: inherit;
}

.biz-milestone-desc {
    font-size: 0.72rem;
    color: var(--text-muted, #64748B);
}

body.dark-mode .biz-milestone-desc {
    color: #94A3B8;
}

.biz-milestone-btn {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #0F172A;
    font-weight: 600;
    font-size: 0.74rem;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

body.dark-mode .biz-milestone-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: #F8F2ED;
}

.biz-milestone-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.biz-queue-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.biz-queue-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F8FAFC;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 10px 14px;
    gap: 12px;
}

.biz-queue-time-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748B;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.biz-queue-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.biz-queue-info strong {
    font-size: 0.8rem;
    color: #181A18;
}

.biz-queue-info span {
    font-size: 0.68rem;
    color: #64748B;
}

.biz-tag {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
}

.biz-tag.live { background: rgba(1, 142, 239, 0.12); color: #0284C7; }
.biz-tag.queued { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary, #64748B); }
.biz-tag.primary { background: rgba(1, 142, 239, 0.12); color: #0284C7; }
.biz-tag.success { background: rgba(1, 142, 239, 0.15); color: #018EEF; }
.biz-tag.info { background: rgba(1, 142, 239, 0.1); color: #0284C7; }
.biz-tag.warning { background: rgba(255, 255, 255, 0.08); color: var(--text-primary, #181A18); }

body.dark-mode .biz-tag.live { background: rgba(1, 142, 239, 0.2); color: #38BDF8; }
body.dark-mode .biz-tag.queued { background: rgba(255, 255, 255, 0.08); color: #CBD5E1; }
body.dark-mode .biz-tag.primary { background: rgba(1, 142, 239, 0.2); color: #38BDF8; }
body.dark-mode .biz-tag.success { background: rgba(1, 142, 239, 0.2); color: #38BDF8; }
body.dark-mode .biz-tag.info { background: rgba(1, 142, 239, 0.15); color: #38BDF8; }
body.dark-mode .biz-tag.warning { background: rgba(255, 255, 255, 0.08) !important; color: #F8F2ED !important; }

.biz-queue-action-btn {
    background: #181A18;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.biz-projection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.biz-proj-box {
    background: #F8FAFC;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.biz-proj-label { font-size: 0.65rem; color: #64748B; font-weight: 600; }
.biz-proj-val { font-size: 1rem; color: var(--text-dark); }
.biz-proj-growth { font-size: 0.65rem; color: #018EEF; font-weight: 700; }
body.dark-mode .biz-proj-growth { color: #38BDF8 !important; }

/* ─── Bottom 9-Step Stepper Navigation Bar (Removed for Minimal Small Business UI) ─── */
.biz-stepper-bar {
    display: none !important;
}

.biz-step-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #94A3B8;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.15s ease;
    user-select: none;
}

.biz-step-item:hover {
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.04);
}

.biz-step-item.active {
    color: #181A18;
    font-weight: 700;
}

.biz-step-item.completed {
    color: #018EEF;
}

.biz-step-icon {
    font-size: 0.8rem;
}

/* ─── Dark Mode Business Console Overrides (Butler V3 Design System) ─── */
body.dark-mode .app-nav-rail {
    background: rgba(28, 30, 28, 0.85);
    border-color: rgba(248, 242, 237, 0.12);
}

body.dark-mode .rail-nav-btn {
    color: rgba(248, 242, 237, 0.65);
}

body.dark-mode .rail-nav-btn:hover {
    background: rgba(248, 242, 237, 0.12);
    color: #F8F2ED;
}

body.dark-mode .rail-nav-btn.active {
    background: #F8F2ED;
    color: #181A18;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

body.dark-mode .business-workspace-split {
    background: rgba(24, 26, 24, 0.92) !important;
    border-color: rgba(248, 242, 237, 0.12) !important;
}

body.dark-mode .chat-area {
    border-right-color: rgba(248, 242, 237, 0.08);
}

body.dark-mode .module-launcher-card {
    background: rgba(30, 33, 30, 0.7);
    border-color: rgba(248, 242, 237, 0.12);
}

body.dark-mode .module-launcher-card:hover {
    background: rgba(36, 40, 36, 0.85);
    border-color: rgba(248, 242, 237, 0.2);
}

body.dark-mode .module-card-title {
    color: #F8F2ED;
}

body.dark-mode .module-card-desc {
    color: rgba(248, 242, 237, 0.65);
}

body.dark-mode .module-toggle-slider {
    background-color: rgba(248, 242, 237, 0.2);
}

body.dark-mode .module-toggle-switch input:checked + .module-toggle-slider {
    background-color: #018EEF;
}

body.dark-mode .biz-setup-card,
body.dark-mode .biz-calendar-container,
body.dark-mode .biz-heatmap-table,
body.dark-mode .biz-queue-item,
body.dark-mode .biz-module-hub-card {
    background: rgba(32, 35, 32, 0.85) !important;
    border-color: rgba(248, 242, 237, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode .biz-setup-main-title,
body.dark-mode .biz-stage-title,
body.dark-mode .biz-setup-card-title,
body.dark-mode .biz-module-hub-name,
body.dark-mode .biz-social-name,
body.dark-mode .biz-cal-day-num,
body.dark-mode .biz-queue-info strong,
body.dark-mode .biz-proj-val,
body.dark-mode .biz-kit-meta-val {
    color: #F8F2ED !important;
}

body.dark-mode .biz-stage-desc,
body.dark-mode .biz-module-hub-desc,
body.dark-mode .biz-module-hub-tagline,
body.dark-mode .biz-social-handle,
body.dark-mode .biz-kit-meta-label,
body.dark-mode .biz-swatch-name {
    color: rgba(248, 242, 237, 0.65) !important;
}

body.dark-mode .biz-setup-field-label {
    color: rgba(248, 242, 237, 0.5) !important;
}

body.dark-mode input.biz-setup-input,
body.dark-mode textarea.biz-setup-input,
body.dark-mode .biz-strategy-banner,
body.dark-mode .biz-cal-day-cell,
body.dark-mode .biz-proj-box,
body.dark-mode .biz-queue-time-badge {
    background: rgba(20, 22, 20, 0.75) !important;
    border-color: rgba(248, 242, 237, 0.12) !important;
    color: #F8F2ED !important;
}

body.dark-mode select.biz-setup-input,
body.dark-mode .biz-setup-select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: rgba(20, 22, 20, 0.95) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: calc(100% - 12px) center !important;
    background-size: 13px 13px !important;
    padding-right: 34px !important;
    color: #F8F2ED !important;
    border-color: rgba(248, 242, 237, 0.18) !important;
}

body.dark-mode select.biz-setup-input option,
body.dark-mode .biz-setup-select option {
    background-color: #141614 !important;
    color: #F8F2ED !important;
}

body.dark-mode .biz-cal-day-cell:hover {
    background: rgba(30, 34, 30, 0.95) !important;
    border-color: rgba(248, 242, 237, 0.3) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .biz-social-row {
    background: rgba(24, 26, 24, 0.6) !important;
    border: 1px solid rgba(248, 242, 237, 0.08) !important;
}

body.dark-mode .biz-connect-pill-btn {
    background: rgba(248, 242, 237, 0.08) !important;
    border-color: rgba(248, 242, 237, 0.2) !important;
    color: #F8F2ED !important;
}

body.dark-mode .biz-connect-pill-btn:hover {
    background: rgba(248, 242, 237, 0.16) !important;
}

body.dark-mode .biz-connect-pill-btn.connected {
    background: rgba(1, 142, 239, 0.18) !important;
    border-color: rgba(1, 142, 239, 0.35) !important;
    color: #38BDF8 !important;
}

body.dark-mode .biz-save-continue-btn,
body.dark-mode .biz-primary-cta {
    background: #F8F2ED !important;
    color: #181A18 !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .biz-save-continue-btn:hover,
body.dark-mode .biz-primary-cta:hover {
    background: #FFFFFF !important;
    transform: translateY(-1px) scale(1.01) !important;
}

body.dark-mode .biz-stepper-bar {
    background: rgba(20, 22, 20, 0.95) !important;
    border-top-color: rgba(248, 242, 237, 0.1) !important;
}

body.dark-mode .biz-step-item {
    color: rgba(248, 242, 237, 0.5) !important;
}

body.dark-mode .biz-step-item.active {
    color: #F8F2ED !important;
    font-weight: 700 !important;
}

body.dark-mode .biz-step-item.completed {
    color: #38BDF8 !important;
}

body.dark-mode .heat-0 { background: rgba(20, 22, 20, 0.7); }

/* ═══════════════════════════════════════════════════════════════════
   ─── 3. ADVANCED RESPONSIVE SYSTEM (ETHICS & FLUID BREAKPOINTS) ───
   Covers: Ultra-Wide (4K), Standard Desktop, Tablets (Portrait/Landscape),
   Foldables (Folded/Unfolded), Large Phones, Small Mobile (iPhone SE).
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Mobile View Pill Switcher (Header Segmented Control) ─── */
.biz-mobile-view-pill {
    display: none;
    align-items: center;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 9999px;
    padding: 3px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    z-index: 55;
}

body.dark-mode .biz-mobile-view-pill {
    background: rgba(30, 34, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.biz-mob-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 9999px;
    border: none;
    background: transparent;
    color: #64748B;
    font-family: var(--font-chat);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    touch-action: manipulation;
}

body.dark-mode .biz-mob-tab-btn {
    color: #94A3B8;
}

.biz-mob-tab-btn.active {
    background: #111315;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

body.dark-mode .biz-mob-tab-btn.active {
    background: #F1F5F9;
    color: #0F172A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ─── A. Ultra-Wide & 4K Displays (≥ 1800px) ─── */
/* ─── Business Hub Fullscreen State (Laptop & Desktop) ─── */
body.business-hub-fullscreen .chat-area,
body.business-hub-fullscreen .input-area {
    display: none !important;
}

body.business-hub-fullscreen .business-workspace-split {
    left: 76px !important;
    width: calc(100vw - 88px) !important;
    max-width: calc(100vw - 88px) !important;
    right: 12px !important;
    z-index: 85 !important;
}

body.business-hub-fullscreen .biz-week-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 16px !important;
}

body.business-hub-fullscreen .biz-day-studio-workspace {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) !important;
    gap: 24px !important;
}

body.business-hub-fullscreen .biz-hub-fullscreen-btn .icon-expand {
    display: none !important;
}
body.business-hub-fullscreen .biz-hub-fullscreen-btn .icon-collapse {
    display: inline-block !important;
}

/* Expand / Collapse Button Styling */
.biz-hub-fullscreen-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 9px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-chat);
    white-space: nowrap;
}

body.dark-mode .biz-hub-fullscreen-btn {
    background: rgba(248, 242, 237, 0.08);
    border-color: rgba(248, 242, 237, 0.2);
    color: #F8F2ED;
}

.biz-hub-fullscreen-btn:hover {
    background: #F8FAFC;
    border-color: #94A3B8;
    color: #0F172A;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body.dark-mode .biz-hub-fullscreen-btn:hover {
    background: rgba(248, 242, 237, 0.15);
    border-color: rgba(248, 242, 237, 0.3);
    color: #FFFFFF;
}

/* ─── A. Ultra-Wide & 4K Displays (≥ 1800px) ─── */
@media (min-width: 1800px) {
    body.business-workspace-active:not(.business-hub-fullscreen):not(.business-hub-minimized) .chat-area {
        left: 100px !important;
        width: 36vw !important;
        max-width: 640px !important;
    }
    body.business-workspace-active:not(.business-hub-fullscreen):not(.business-hub-minimized) .input-area {
        left: 100px !important;
        width: 36vw !important;
        max-width: 640px !important;
    }
    body.business-workspace-active:not(.business-hub-fullscreen):not(.business-hub-minimized) .business-workspace-split {
        left: 40vw !important;
        right: 28px !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        padding: 22px 26px 20px 26px !important;
    }
    .biz-modules-hub-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    .biz-channel-cards-row {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
}

/* ─── B. Standard Desktop (1281px – 1799px) ─── */
@media (min-width: 1281px) and (max-width: 1799px) {
    body.business-workspace-active:not(.business-hub-fullscreen):not(.business-hub-minimized) .chat-area {
        left: 86px !important;
        width: calc(44vw - 102px) !important;
        max-width: calc(44vw - 102px) !important;
    }
    body.business-workspace-active:not(.business-hub-fullscreen):not(.business-hub-minimized) .input-area {
        left: 86px !important;
        width: calc(44vw - 102px) !important;
        max-width: calc(44vw - 102px) !important;
    }
    body.business-workspace-active:not(.business-hub-fullscreen):not(.business-hub-minimized) .business-workspace-split {
        left: 44vw !important;
        right: 18px !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        padding: 20px 22px 20px 22px !important;
    }
    .biz-modules-hub-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
        gap: 14px !important;
    }
    .biz-channel-cards-row {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }
    .biz-week-grid {
        grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)) !important;
        gap: 14px !important;
    }
}

/* ─── C. Laptops & Compact Desktops (1081px – 1280px) ─── */
@media (min-width: 1081px) and (max-width: 1280px) {
    body.business-workspace-active #appNavRail {
        width: 56px !important;
        min-width: 56px !important;
        left: 10px !important;
    }
    body.business-workspace-active:not(.business-hub-fullscreen):not(.business-hub-minimized) .chat-area {
        left: 74px !important;
        width: calc(42vw - 88px) !important;
        max-width: calc(42vw - 88px) !important;
        padding: 10px 12px !important;
    }
    body.business-workspace-active:not(.business-hub-fullscreen):not(.business-hub-minimized) .input-area {
        left: 74px !important;
        width: calc(42vw - 88px) !important;
        max-width: calc(42vw - 88px) !important;
    }
    body.business-workspace-active:not(.business-hub-fullscreen):not(.business-hub-minimized) .business-workspace-split {
        left: 42vw !important;
        right: 14px !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        padding: 16px 18px 20px 18px !important;
    }
    .biz-modules-hub-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 12px !important;
    }
    .biz-brand-drawer-header-row {
        gap: 10px !important;
    }
    .biz-drawer-header-right {
        gap: 8px !important;
    }
    .biz-week-grid {
        grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)) !important;
        gap: 12px !important;
    }
    /* In split mode on 13" laptop, Day Studio stacks cleanly with Created Visual on TOP */
    body:not(.business-hub-fullscreen) .biz-day-studio-workspace {
        display: flex !important;
        flex-direction: column !important;
    }
    body:not(.business-hub-fullscreen) .biz-day-studio-col-right {
        order: -1 !important;
    }
    body:not(.business-hub-fullscreen) .biz-day-studio-col-left {
        order: 1 !important;
    }
    .biz-modules-hub-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .biz-channel-cards-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

/* ─── D. Tablets Portrait & Landscape (768px – 1080px) ─── */
/* Single-Panel Ergonomics: User has full-width focus on Chat OR Business Hub */
@media (min-width: 768px) and (max-width: 1080px) {
    /* Reveal Header View Switcher Pill on Tablets */
    body.business-workspace-active .biz-mobile-view-pill {
        display: inline-flex !important;
    }

    body.business-workspace-active #appNavRail {
        width: 58px !important;
        min-width: 58px !important;
        padding: 14px 0 !important;
        left: 8px !important;
        top: 64px !important;
        height: calc(100vh - 78px) !important;
        display: flex !important;
    }

    /* 1. When in Chat View on Tablet */
    body.business-workspace-active:not(.mobile-view-console) .chat-area,
    body.business-workspace-active.mobile-view-chat .chat-area {
        display: flex !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        top: 64px !important;
        left: 76px !important;
        width: calc(100vw - 88px) !important;
        max-width: calc(100vw - 88px) !important;
        bottom: 84px !important;
        padding: 14px 20px !important;
        box-sizing: border-box !important;
    }

    body.business-workspace-active:not(.mobile-view-console) .input-area,
    body.business-workspace-active.mobile-view-chat .input-area {
        display: flex !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        left: 76px !important;
        width: calc(100vw - 88px) !important;
        max-width: calc(100vw - 88px) !important;
        bottom: 12px !important;
    }

    body.business-workspace-active:not(.mobile-view-console) .business-workspace-split,
    body.business-workspace-active.mobile-view-chat .business-workspace-split {
        display: none !important;
    }

    /* 2. When in Business Hub View on Tablet */
    body.business-workspace-active.mobile-view-console .chat-area,
    body.business-workspace-active.mobile-view-console .input-area {
        display: none !important;
    }

    body.business-workspace-active.mobile-view-console .business-workspace-split {
        display: flex !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        top: 64px !important;
        left: 76px !important;
        width: calc(100vw - 88px) !important;
        max-width: calc(100vw - 88px) !important;
        right: 8px !important;
        bottom: 12px !important;
        height: calc(100vh - 78px) !important;
        padding: 18px 20px 48px 20px !important;
        box-sizing: border-box !important;
    }

    .biz-brand-drawer-header-row {
        flex-wrap: wrap !important;
        gap: 12px !important;
    }

    .biz-drawer-header-right {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    /* On tablets, single-panel mode already occupies full width: hide minimize and expand buttons */
    .biz-hub-fullscreen-btn,
    .biz-hub-minimize-btn {
        display: none !important;
    }

    /* Cards render in a spacious 2-to-3 column grid on tablets */
    .biz-week-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
        gap: 14px !important;
    }

    .biz-setup-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .biz-modules-hub-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
        gap: 14px !important;
    }

    .biz-channel-cards-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .biz-day-studio-workspace {
        display: flex !important;
        flex-direction: column !important;
    }
    .biz-day-studio-col-right {
        order: -1 !important;
    }
    .biz-day-studio-col-left {
        order: 1 !important;
    }
}

/* ─── E. Mobile Phones & Foldable Cover Screens (≤ 767px) ─── */
@media (max-width: 767px) {
    /* Compact, safe header on mobile */
    .header {
        padding: max(8px, env(safe-area-inset-top, 8px)) 12px 6px 12px !important;
        height: 52px !important;
        justify-content: space-between !important;
        gap: 6px !important;
    }

    .logo {
        font-size: 1.18rem !important;
        letter-spacing: -0.01em !important;
        flex-shrink: 0 !important;
    }

    .header-tagline {
        display: none !important;
    }

    /* Hide connector badge on mobile phones so header never overflows */
    .active-connector-badge {
        display: none !important;
    }

    .header > div:last-child {
        gap: 6px !important;
    }

    .header-share-btn,
    .header .header-share-btn {
        display: none !important;
    }

    .theme-toggle,
    .header .theme-toggle {
        display: none !important;
    }

    .header .menu-grid {
        padding: 6px !important;
        gap: 4px !important;
    }

    /* Reveal Mobile Business View Switcher Pill in Header */
    body.business-workspace-active .biz-mobile-view-pill {
        display: inline-flex !important;
        margin: 0 auto !important;
        padding: 2px 3px !important;
        border-radius: 20px !important;
        gap: 2px !important;
    }

    .biz-mob-tab-btn {
        padding: 3px 8px !important;
        font-size: 0.70rem !important;
        gap: 3px !important;
    }

    .biz-mob-tab-btn svg {
        width: 11px !important;
        height: 11px !important;
        margin-right: 2px !important;
    }

    /* Hide desktop minimize and expand buttons on mobile */
    .biz-hub-fullscreen-btn,
    .biz-hub-minimize-btn,
    .biz-hub-expand-tab {
        display: none !important;
    }

    /* Phone / Mobile UI: Completely remove floating nav rail from bottom */
    #appNavRail,
    body.business-workspace-active #appNavRail {
        display: none !important;
    }

    /* ─── Mobile Viewport Mode Switching (Single-Panel Ergonomics) ─── */

    /* 1. When in Chat View (Default or Active) */
    body.business-workspace-active:not(.mobile-view-console) .chat-area,
    body.business-workspace-active.mobile-view-chat .chat-area {
        display: flex !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        top: 52px !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        bottom: 64px !important;
        padding: 8px 12px !important;
        box-sizing: border-box !important;
    }

    body.business-workspace-active:not(.mobile-view-console) .input-area,
    body.business-workspace-active.mobile-view-chat .input-area {
        display: flex !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        bottom: 0 !important;
        height: auto !important;
        padding: 6px 10px max(10px, env(safe-area-inset-bottom, 10px)) 10px !important;
        background: rgba(255, 255, 255, 0.94) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
        z-index: 90 !important;
        box-sizing: border-box !important;
    }

    body.dark-mode.business-workspace-active:not(.mobile-view-console) .input-area,
    body.dark-mode.business-workspace-active.mobile-view-chat .input-area {
        background: rgba(18, 22, 30, 0.94) !important;
        border-top-color: rgba(255, 255, 255, 0.08) !important;
    }

    body.business-workspace-active .input-disclaimer {
        display: none !important;
    }

    body.business-workspace-active:not(.mobile-view-console) .input-container,
    body.business-workspace-active.mobile-view-chat .input-container {
        border-radius: 24px !important;
        padding: 6px 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    body.business-workspace-active:not(.mobile-view-console) .business-workspace-split,
    body.business-workspace-active.mobile-view-chat .business-workspace-split {
        display: none !important;
    }

    /* 2. When in Console View (Modules / Calendar / Analytics / Setup) */
    body.business-workspace-active.mobile-view-console .chat-area,
    body.business-workspace-active.mobile-view-console .input-area {
        display: none !important;
    }

    body.business-workspace-active.mobile-view-console .business-workspace-split {
        display: flex !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        top: 52px !important;
        left: 6px !important;
        right: 6px !important;
        width: calc(100% - 12px) !important;
        max-width: calc(100% - 12px) !important;
        bottom: max(8px, env(safe-area-inset-bottom, 8px)) !important;
        height: calc(100vh - 60px - env(safe-area-inset-bottom, 0px)) !important;
        height: calc(100dvh - 60px - env(safe-area-inset-bottom, 0px)) !important;
        border-radius: 18px !important;
        padding: 10px 10px 24px 10px !important;
        z-index: 90 !important;
        box-sizing: border-box !important;
    }

    /* Brand Drawer on Mobile (Pixel-Perfect, Non-Overlapping Layout) */
    .biz-brand-drawer {
        padding: 10px 12px !important;
        margin-bottom: 10px !important;
        border-radius: 16px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        overflow: hidden !important;
        background: #FFFFFF !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    }

    body.dark-mode .biz-brand-drawer {
        background: #111827 !important;
        border-color: rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
    }

    .biz-brand-drawer-header-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .biz-drawer-left {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .biz-drawer-left .biz-drawer-avatar,
    .biz-drawer-logo-wrap {
        width: 32px !important;
        height: 32px !important;
        border-radius: 9px !important;
        flex-shrink: 0 !important;
    }

    .biz-drawer-info {
        min-width: 0 !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
    }

    .biz-drawer-title-row {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        min-width: 0 !important;
    }

    .biz-drawer-name {
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 145px !important;
        line-height: 1.2 !important;
    }

    .biz-drawer-cat-badge {
        font-size: 0.58rem !important;
        padding: 1px 5px !important;
        border-radius: 5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 75px !important;
        display: inline-block !important;
        flex-shrink: 1 !important;
    }

    .biz-drawer-tagline {
        display: none !important;
    }

    .biz-drawer-header-right {
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;
    }

    /* Sleek, Compact Mobile Plan & Capacity Capsule - Never Full Width, Pinned in Top-Right Corner */
    .biz-hub-plan-and-capacity {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 3px 8px 3px 6px !important;
        border-radius: 24px !important;
        width: auto !important;
        max-width: fit-content !important;
        margin-left: auto !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
        background: rgba(0, 0, 0, 0.04) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    body.dark-mode .biz-hub-plan-and-capacity {
        background: rgba(255, 255, 255, 0.06) !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
    }

    .biz-hub-plan-badge-pill {
        font-size: 0.62rem !important;
        padding: 3px 7px !important;
        letter-spacing: 0.02em !important;
        gap: 3px !important;
        white-space: nowrap !important;
    }

    .radial-gauge-container {
        width: 24px !important;
        height: 24px !important;
        flex-shrink: 0 !important;
    }

    .radial-gauge-svg {
        width: 24px !important;
        height: 24px !important;
    }

    .gauge-percentage-text {
        font-size: 0.52rem !important;
        font-weight: 800 !important;
    }

    /* Completely hide verbose "Capacity" word on mobile so it never collides or overlaps */
    .gauge-info-text .gauge-label {
        display: none !important;
    }

    .gauge-info-text {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        white-space: nowrap !important;
        line-height: 1 !important;
    }

    .gauge-sub,
    .hubGaugeSubText {
        font-size: 0.65rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        color: var(--text-dark, #181A18) !important;
    }

    body.dark-mode .gauge-sub,
    body.dark-mode .hubGaugeSubText {
        color: #F8FAFC !important;
    }

    .biz-drawer-channel-badge {
        padding: 3px 7px !important;
        font-size: 0.68rem !important;
    }

    /* Unified Single-Row Autonomy Switch + Edit Brand Kit on Mobile */
    .biz-drawer-sub-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-top: 8px !important;
        padding-top: 8px !important;
        border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    body.dark-mode .biz-drawer-sub-row {
        border-top-color: rgba(255, 255, 255, 0.08) !important;
    }

    .biz-hub-autonomy-switch {
        flex: 1 1 auto !important;
        display: flex !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
        border-radius: 9px !important;
        background: rgba(0, 0, 0, 0.05) !important;
        padding: 2px !important;
        height: 32px !important;
    }

    body.dark-mode .biz-hub-autonomy-switch {
        background: rgba(255, 255, 255, 0.06) !important;
    }

    .biz-hub-autonomy-switch .biz-mode-toggle-btn {
        flex: 1 !important;
        height: 100% !important;
        justify-content: center !important;
        padding: 0 6px !important;
        font-size: 0.68rem !important;
        font-weight: 700 !important;
        min-width: 0 !important;
        border-radius: 7px !important;
        box-sizing: border-box !important;
        gap: 4px !important;
    }

    .biz-hub-autonomy-switch .biz-mode-toggle-btn.active {
        background: #181A18 !important;
        color: #FFFFFF !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    }

    body.dark-mode .biz-hub-autonomy-switch .biz-mode-toggle-btn.active {
        background: #0284C7 !important;
        color: #FFFFFF !important;
    }

    .biz-hub-autonomy-switch .biz-mode-toggle-btn .mode-txt {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .biz-drawer-edit-btn {
        flex-shrink: 0 !important;
        width: auto !important;
        height: 32px !important;
        padding: 0 10px !important;
        font-size: 0.70rem !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        white-space: nowrap !important;
        background: rgba(0, 0, 0, 0.04) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    body.dark-mode .biz-drawer-edit-btn {
        background: rgba(255, 255, 255, 0.05) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        color: #E2E8F0 !important;
    }

    /* Sprint Header on Mobile */
    .biz-stage-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        margin-bottom: 8px !important;
    }

    .biz-stage-title {
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
    }

    .biz-stage-desc {
        font-size: 0.72rem !important;
        color: #64748B !important;
        margin: 1px 0 0 0 !important;
    }

    .biz-cal-week-nav-controls {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        gap: 8px !important;
        margin-top: 8px !important;
    }

    .biz-cal-week-nav-controls #bizCalPrevWeekBtn,
    .biz-cal-week-nav-controls #bizCalNextWeekBtn {
        flex: 1 1 calc(50% - 4px) !important;
        min-width: 0 !important;
        height: 34px !important;
        padding: 0 10px !important;
        font-size: 0.76rem !important;
        font-weight: 600 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
    }

    .biz-cal-week-nav-controls #bizAddDateBtn {
        flex: 1 1 100% !important;
        width: 100% !important;
        height: 36px !important;
        padding: 0 14px !important;
        font-size: 0.78rem !important;
        font-weight: 700 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }

    /* Cards & Grids on Mobile */
    .biz-week-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding-bottom: 84px !important;
    }

    .biz-week-day-card {
        padding: 10px 10px 12px 10px !important;
        border-radius: 14px !important;
        gap: 8px !important;
        box-sizing: border-box !important;
        background: #FFFFFF !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    }

    body.dark-mode .biz-week-day-card {
        background: #111827 !important;
        border-color: rgba(255, 255, 255, 0.08) !important;
    }

    .biz-week-day-card.today {
        border: 1.5px solid rgba(2, 132, 199, 0.45) !important;
        background: rgba(2, 132, 199, 0.02) !important;
    }

    body.dark-mode .biz-week-day-card.today {
        border-color: rgba(56, 189, 248, 0.4) !important;
        background: rgba(2, 132, 199, 0.06) !important;
    }

    .biz-week-creative-preview {
        border-radius: 10px !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
        overflow: hidden !important;
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
    }

    body.dark-mode .biz-week-creative-preview {
        border-color: rgba(255, 255, 255, 0.08) !important;
    }

    .biz-week-card-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .biz-week-card-actions button {
        flex: 1 1 auto !important;
        min-height: 34px !important;
        font-size: 0.74rem !important;
    }

    .biz-day-studio-nav-bar {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        padding: 6px 8px !important;
    }

    .biz-day-studio-header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    /* Day Studio Suggestion Panel Mobile */
    .biz-day-suggest-panel {
        padding: 10px 12px !important;
        border-radius: 12px !important;
        margin-bottom: 10px !important;
    }

    .biz-day-suggest-input-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
    }

    .biz-day-suggest-input-group .biz-canvas-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 8px 12px !important;
        font-size: 0.78rem !important;
    }

    .biz-suggest-quick-chips {
        gap: 5px !important;
    }

    .biz-suggest-chip {
        font-size: 0.70rem !important;
        padding: 4px 8px !important;
        min-height: 28px !important;
        border-radius: 6px !important;
    }

    .biz-day-studio-workspace {
        display: flex !important;
        flex-direction: column !important;
        padding-bottom: 84px !important;
    }
    .biz-day-studio-col-right {
        order: -1 !important;
    }
    .biz-day-studio-col-left {
        order: 1 !important;
    }

    .biz-day-studio-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        margin-top: 18px !important;
        padding-top: 14px !important;
    }

    .biz-day-studio-footer > button {
        width: 100% !important;
        margin: 0 !important;
        justify-content: center !important;
        text-align: center !important;
        min-height: 40px !important;
        font-size: 0.82rem !important;
    }

    .biz-setup-grid,
    .biz-modules-hub-grid,
    .biz-channel-cards-row,
    .biz-stage-grid,
    .biz-timing-layout,
    .biz-creative-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .biz-projection-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .biz-logo-dropzones {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .biz-logo-preview-box {
        height: 64px !important;
    }

    .biz-wordmark-preview-txt {
        font-size: 0.95rem !important;
        letter-spacing: 0.08em !important;
    }

    .biz-swatches-grid {
        gap: 6px !important;
        flex-wrap: wrap !important;
    }

    .biz-swatch-box {
        width: 36px !important;
        height: 30px !important;
    }

    .biz-cal-weekdays,
    .biz-cal-grid {
        gap: 3px !important;
    }

    .biz-cal-day-cell {
        min-height: 42px !important;
        padding: 4px 3px !important;
    }

    .biz-cal-day-title {
        display: none !important;
    }

    .biz-stepper-bar {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        padding: 0 10px !important;
        height: 44px !important;
    }

    .biz-stepper-bar::-webkit-scrollbar {
        display: none !important;
    }

    .biz-step-item {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        font-size: 0.7rem !important;
        padding: 4px 8px !important;
    }

    /* Mobile Bottom Sheet Apps Dropdown */
    .apps-dropdown {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 24px 24px 0 0 !important;
        transform: translateY(100%) !important;
        padding: 20px 18px calc(24px + env(safe-area-inset-bottom, 0px)) 18px !important;
        z-index: 1050 !important;
        box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.28) !important;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease !important;
    }

    .apps-dropdown.active {
        transform: translateY(0) !important;
    }

    /* Mobile Bottom Sheet Profile Popover */
    .profile-popover-menu {
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 24px 24px 0 0 !important;
        transform: translateY(100%) !important;
        padding: 16px 16px calc(28px + env(safe-area-inset-bottom, 0px)) 16px !important;
        z-index: 1060 !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25) !important;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease !important;
    }

    .profile-popover-menu.active {
        transform: translateY(0) !important;
    }

    .profile-submenu {
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 24px 24px 0 0 !important;
        max-height: 68vh !important;
        overflow-y: auto !important;
        z-index: 1070 !important;
        padding: 16px 16px calc(28px + env(safe-area-inset-bottom, 0px)) 16px !important;
        transform: translateY(100%) !important;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease !important;
    }

    .profile-submenu.active {
        transform: translateY(0) !important;
    }

    /* Prevent iOS auto-zoom on inputs */
    input, textarea, select {
        font-size: 16px !important;
    }
}

/* ─── F. Compact Mobile Screens (≤ 430px: iPhone SE, Samsung A55, Galaxy S21-S24) ─── */
@media (max-width: 430px) {
    .logo {
        font-size: 1.12rem !important;
        letter-spacing: -0.01em !important;
    }
    .header {
        padding: max(6px, env(safe-area-inset-top, 6px)) 10px 6px 10px !important;
        height: 50px !important;
        gap: 4px !important;
    }
    .header > div:last-child {
        gap: 6px !important;
    }
    .biz-mobile-view-pill {
        padding: 2px !important;
        gap: 2px !important;
    }
    .biz-mob-tab-btn {
        padding: 3px 6px !important;
        font-size: 0.68rem !important;
    }
    .biz-mob-tab-btn svg {
        width: 11px !important;
        height: 11px !important;
        margin-right: 2px !important;
    }
    .theme-toggle,
    .header .theme-toggle {
        display: none !important;
    }
    .header-share-btn,
    .header .header-share-btn {
        display: none !important;
    }
    .menu-grid {
        padding: 5px !important;
        gap: 3px !important;
    }
    .apps-btn {
        width: 30px !important;
        height: 30px !important;
    }
    .biz-setup-card {
        padding: 10px !important;
    }
    .biz-save-continue-btn,
    .biz-primary-cta {
        padding: 8px 14px !important;
        font-size: 0.76rem !important;
    }
    body.business-workspace-active .business-workspace-split {
        padding: 8px 8px 44px 8px !important;
        left: 4px !important;
        right: 4px !important;
        width: calc(100% - 8px) !important;
    }
    .biz-brand-drawer {
        padding: 8px 10px !important;
        border-radius: 14px !important;
        position: relative !important;
    }
    .biz-brand-drawer-header-row {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 4px !important;
    }
    .biz-drawer-header-right {
        order: -1 !important; /* Top of section above business name */
        width: 100% !important;
        display: flex !important;
        justify-content: flex-end !important; /* Pinned to top-right corner */
        margin-bottom: 2px !important;
        flex-shrink: 0 !important;
    }
    .biz-hub-plan-and-capacity {
        width: auto !important; /* Never full width! */
        max-width: fit-content !important;
        margin: 0 0 0 auto !important;
        padding: 2px 7px 2px 5px !important;
        gap: 5px !important;
        flex-shrink: 0 !important;
        border-radius: 20px !important;
        background: rgba(0, 0, 0, 0.04) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
    }
    body.dark-mode .biz-hub-plan-and-capacity {
        background: rgba(255, 255, 255, 0.06) !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
    }
    .biz-drawer-left {
        order: 1 !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    .biz-drawer-left .biz-drawer-avatar,
    .biz-drawer-logo-wrap {
        width: 28px !important;
        height: 28px !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
    }
    .biz-drawer-name {
        max-width: calc(100% - 38px) !important;
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2 !important;
    }
    .biz-drawer-cat-badge {
        display: none !important;
    }
    .biz-hub-plan-badge-pill {
        font-size: 0.58rem !important;
        padding: 2px 5px !important;
    }
    .gauge-sub,
    .hubGaugeSubText {
        font-size: 0.60rem !important;
    }
    .biz-drawer-sub-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        margin-top: 6px !important;
        padding-top: 6px !important;
    }
    .biz-hub-autonomy-switch {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    .biz-hub-autonomy-switch .biz-mode-toggle-btn {
        font-size: 0.65rem !important;
        padding: 0 4px !important;
        gap: 3px !important;
    }
    .biz-drawer-edit-btn {
        padding: 0 7px !important;
        font-size: 0.65rem !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    .mode-txt-full {
        display: none !important;
    }
    .mode-txt-short {
        display: inline !important;
    }
    .biz-logo-dropzones {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }
    .biz-projection-grid {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }
}

@media (max-width: 600px) {
    .biz-brand-drawer-header-row {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 4px !important;
    }
    .biz-drawer-header-right {
        order: -1 !important; /* Top of section above business name */
        width: 100% !important;
        display: flex !important;
        justify-content: flex-end !important; /* Pinned to top-right corner */
        margin-bottom: 2px !important;
        flex-shrink: 0 !important;
    }
    .biz-hub-plan-and-capacity {
        width: auto !important; /* Never full width! */
        max-width: fit-content !important;
        margin: 0 0 0 auto !important;
        padding: 2px 7px 2px 5px !important;
        gap: 5px !important;
        flex-shrink: 0 !important;
        border-radius: 20px !important;
        background: rgba(0, 0, 0, 0.04) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
    }
    body.dark-mode .biz-hub-plan-and-capacity {
        background: rgba(255, 255, 255, 0.06) !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
    }
    .biz-drawer-left {
        order: 1 !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    .biz-drawer-name {
        max-width: calc(100% - 36px) !important;
    }
    .biz-module-hub-top {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .biz-module-hub-info {
        min-width: 150px !important;
        flex: 1 1 auto !important;
    }
    .biz-module-hub-card {
        padding: 12px 14px !important;
    }
    .biz-module-hub-actions {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
}

@media (max-width: 360px) {
    .biz-brand-drawer-header-row {
        gap: 3px !important;
    }
    .biz-drawer-header-right {
        order: -1 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: flex-end !important;
    }
    .biz-hub-plan-and-capacity {
        width: auto !important;
        max-width: fit-content !important;
        margin-left: auto !important;
        justify-content: flex-end !important;
    }
    .biz-drawer-left {
        order: 1 !important;
        width: 100% !important;
    }
    .biz-drawer-name {
        max-width: calc(100% - 36px) !important;
    }
}

.mode-txt-short {
    display: none;
}
.mode-txt-full {
    display: inline;
}

/* ═══════════════════════════════════════════════════════════════════
   ─── 14. BRAND IDENTITY TOP DRAWER & META OAUTH & LOGO DROPZONE ────
   ═══════════════════════════════════════════════════════════════════ */

/* ─── A. Brand Identity Top Drawer (Collapsible) ─── */
.biz-brand-drawer {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    padding: 6px 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    animation: drawerSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.3s ease;
}

body.dark-mode .biz-brand-drawer {
    background: rgba(28, 30, 28, 0.9) !important;
    border-color: rgba(248, 242, 237, 0.12) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

@keyframes drawerSlideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.biz-brand-drawer-content,
.biz-brand-drawer-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.biz-drawer-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.biz-hub-top-window-controls {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
    flex-shrink: 0;
}

.biz-drawer-sub-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

body.dark-mode .biz-drawer-sub-row {
    border-top-color: rgba(248, 242, 237, 0.08) !important;
}

.biz-drawer-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 180px;
}

.biz-drawer-logo-wrap {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #181A18;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 3px;
    box-sizing: border-box;
}

body.dark-mode .biz-drawer-logo-wrap {
    background: #252825;
    border-color: rgba(255, 255, 255, 0.16);
}

.biz-drawer-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.biz-drawer-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.biz-drawer-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.biz-drawer-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-dark, #181A18);
    font-family: var(--font-chat);
    line-height: 1.2;
}

body.dark-mode .biz-drawer-name {
    color: #F8F2ED !important;
}

.biz-drawer-cat-badge {
    font-size: 0.62rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary, #64748B);
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.2;
}

body.dark-mode .biz-drawer-cat-badge {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(248, 242, 237, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.biz-drawer-tagline {
    display: none !important;
}

.biz-drawer-center {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.biz-drawer-swatches {
    display: none !important;
}

.biz-drawer-swatch {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: inline-block;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.biz-drawer-channels {
    display: none !important;
}

.biz-drawer-channel-badge {
    display: none !important;
}

body.dark-mode .biz-drawer-channel-badge {
    background: rgba(248, 242, 237, 0.08) !important;
    color: rgba(248, 242, 237, 0.65) !important;
}

.biz-drawer-channel-badge.active {
    background: rgba(1, 142, 239, 0.12);
    color: #0284C7;
    border: 1px solid rgba(1, 142, 239, 0.25);
}

body.dark-mode .biz-drawer-channel-badge.active {
    background: rgba(1, 142, 239, 0.18) !important;
    color: #38BDF8 !important;
    border: 1px solid rgba(1, 142, 239, 0.35) !important;
}

.biz-drawer-right {
    display: flex;
    align-items: center;
}

.biz-drawer-edit-btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.70rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 7px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-chat);
}

body.dark-mode .biz-drawer-edit-btn {
    background: rgba(248, 242, 237, 0.08) !important;
    border-color: rgba(248, 242, 237, 0.2) !important;
    color: #F8F2ED !important;
}

.biz-drawer-edit-btn:hover {
    background: #F8FAFC;
    border-color: #94A3B8;
    color: #0F172A;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body.dark-mode .biz-drawer-edit-btn:hover {
    background: rgba(248, 242, 237, 0.15) !important;
    border-color: rgba(248, 242, 237, 0.3) !important;
    color: #FFFFFF !important;
}

.biz-brand-drawer .biz-mode-toggle-btn {
    padding: 3px 8px !important;
    font-size: 0.70rem !important;
    border-radius: 7px !important;
}

.biz-brand-drawer .biz-hub-fullscreen-btn,
.biz-brand-drawer .biz-hub-minimize-btn {
    padding: 3px 8px !important;
    font-size: 0.70rem !important;
    border-radius: 7px !important;
}

.biz-brand-drawer .biz-drawer-channel-badge {
    padding: 2px 7px !important;
    font-size: 0.68rem !important;
    border-radius: 6px !important;
}

/* ─── B. Single Required Brand Logo Dropzone ─── */
.biz-brand-logo-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.biz-single-logo-dropzone {
    border: 2px dashed #CBD5E1;
    border-radius: 14px;
    padding: 18px 16px;
    background: #F8FAFC;
    cursor: pointer;
    transition: all 0.22s ease;
    position: relative;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

body.dark-mode .biz-single-logo-dropzone {
    background: rgba(20, 22, 20, 0.5) !important;
    border-color: rgba(248, 242, 237, 0.2) !important;
}

.biz-single-logo-dropzone:hover {
    border-color: #181A18;
    background: #F1F5F9;
}

body.dark-mode .biz-single-logo-dropzone:hover {
    border-color: rgba(248, 242, 237, 0.45) !important;
    background: rgba(30, 33, 30, 0.6) !important;
}

.biz-single-logo-dropzone.dragover {
    border-color: #0084FF !important;
    background: #EFF6FF !important;
}

body.dark-mode .biz-single-logo-dropzone.dragover {
    background: rgba(0, 132, 255, 0.15) !important;
    border-color: #38BDF8 !important;
}

.biz-logo-upload-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 10px 0;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.biz-logo-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #E2E8F0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode .biz-logo-icon-circle {
    background: rgba(248, 242, 237, 0.1) !important;
    color: #F8F2ED !important;
}

.biz-logo-prompt-texts {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.biz-logo-upload-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark, #181A18);
}

body.dark-mode .biz-logo-upload-title {
    color: #F8F2ED !important;
}

.biz-logo-upload-sub {
    font-size: 0.74rem;
    color: #64748B;
}

body.dark-mode .biz-logo-upload-sub {
    color: rgba(248, 242, 237, 0.6) !important;
}

.biz-logo-preview-container {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.biz-logo-preview-tile {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

body.dark-mode .biz-logo-preview-tile {
    background: rgba(20, 22, 20, 0.95) !important;
    border-color: rgba(248, 242, 237, 0.15) !important;
}

.biz-logo-img-tag {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.biz-logo-meta-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
    text-align: left;
    overflow: hidden;
}

.biz-logo-name-txt {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark, #181A18);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.dark-mode .biz-logo-name-txt {
    color: #F8F2ED !important;
}

.biz-logo-sync-tag {
    font-size: 0.72rem;
    color: #018EEF;
    font-weight: 600;
}

body.dark-mode .biz-logo-sync-tag {
    color: #38BDF8 !important;
}

.biz-logo-reupload-btn {
    align-self: flex-start;
    margin-top: 4px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 6px;
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

body.dark-mode .biz-logo-reupload-btn {
    background: rgba(248, 242, 237, 0.08) !important;
    border-color: rgba(248, 242, 237, 0.2) !important;
    color: #F8F2ED !important;
}

.biz-logo-reupload-btn:hover {
    background: #E2E8F0;
    color: #0F172A;
}

body.dark-mode .biz-logo-reupload-btn:hover {
    background: rgba(248, 242, 237, 0.16) !important;
    color: #FFFFFF !important;
}

.biz-req-star {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 9999px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #EF4444;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    margin-left: 6px;
    vertical-align: middle;
    line-height: 1;
}

.biz-badge-required {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 9999px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #EF4444;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1;
}

body.dark-mode .biz-req-star,
body.dark-mode .biz-badge-required {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.35);
    color: #F87171;
}

.biz-badge-invite,
.biz-badge-optional {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #6366F1;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
}

body.dark-mode .biz-badge-invite,
body.dark-mode .biz-badge-optional {
    background: rgba(129, 140, 248, 0.18);
    border-color: rgba(129, 140, 248, 0.35);
    color: #A5B4FC;
}

.biz-badge-connected {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10B981;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
}

body.dark-mode .biz-badge-connected {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.35);
    color: #34D399;
}

.biz-badge-pending {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 9999px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #D97706;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
}

body.dark-mode .biz-badge-pending {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.35);
    color: #FBBF24;
}

/* ─── C. Validation Error Alert Banner ─── */
.biz-setup-error-banner {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #B91C1C;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    animation: shakeError 0.4s ease-in-out;
}

body.dark-mode .biz-setup-error-banner {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #FCA5A5 !important;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* ─── D. Locked Social Channel Styles ─── */
.biz-social-row.locked-channel {
    opacity: 0.6;
    background: transparent;
    cursor: not-allowed;
    border-radius: 10px;
    padding: 8px 10px;
}

body.dark-mode .biz-social-row.locked-channel {
    background: rgba(248, 242, 237, 0.02) !important;
}

.biz-social-icon.grayscale {
    filter: grayscale(1);
    opacity: 0.55;
}

.biz-lock-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    background: #E2E8F0;
    color: #64748B;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

body.dark-mode .biz-lock-badge {
    background: rgba(248, 242, 237, 0.08) !important;
    color: rgba(248, 242, 237, 0.5) !important;
}

/* ─── E. Meta OAuth Demo Modal ─── */
.meta-auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
    animation: metaOverlayFadeIn 0.25s ease-out;
}

@keyframes metaOverlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.meta-auth-card {
    width: 100%;
    max-width: 440px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    animation: metaCardPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode .meta-auth-card {
    background: #181A18 !important;
    border-color: rgba(248, 242, 237, 0.15) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7) !important;
}

@keyframes metaCardPop {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.meta-auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #F1F5F9;
    background: #FAFAFA;
}

body.dark-mode .meta-auth-header {
    background: rgba(24, 26, 24, 0.9) !important;
    border-color: rgba(248, 242, 237, 0.1) !important;
}

.meta-brand-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    color: #0668E1;
}

.meta-close-btn {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: #64748B;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 6px;
}

/* ── Meta Auth Pre-Connection Requirements & Simple Guide ── */
.meta-reqs-wrapper {
    text-align: left;
    margin: 16px 0 18px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 12px 14px;
    transition: all 0.2s ease;
}

body.dark-mode .meta-reqs-wrapper {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.meta-reqs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.meta-reqs-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

body.dark-mode .meta-reqs-title {
    color: #94A3B8 !important;
}

.meta-req-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

body.dark-mode .meta-req-item {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

.meta-req-item:last-child {
    border-bottom: none;
    padding-bottom: 2px;
}

.meta-req-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(1, 142, 239, 0.15);
    color: #018EEF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

body.dark-mode .meta-req-check {
    background: rgba(1, 142, 239, 0.22) !important;
    color: #38BDF8 !important;
}

.meta-req-content {
    flex: 1;
}

.meta-req-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.meta-req-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #0F172A;
}

body.dark-mode .meta-req-label {
    color: #F8FAFC !important;
}

.meta-req-pill {
    font-size: 0.66rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: #E2E8F0;
    color: #475569;
}

body.dark-mode .meta-req-pill {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #CBD5E1 !important;
}

.meta-req-pill.free {
    background: rgba(1, 142, 239, 0.12);
    color: #0284C7;
}

body.dark-mode .meta-req-pill.free {
    background: rgba(1, 142, 239, 0.2) !important;
    color: #38BDF8 !important;
}

.meta-req-desc {
    font-size: 0.74rem;
    color: #64748B;
    line-height: 1.35;
    margin: 0;
}

body.dark-mode .meta-req-desc {
    color: #94A3B8 !important;
}

/* 30-Second Guide Accordion */
.meta-guide-accordion {
    margin-top: 10px;
    background: rgba(6, 104, 225, 0.04);
    border: 1px dashed rgba(6, 104, 225, 0.25);
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
}

body.dark-mode .meta-guide-accordion {
    background: rgba(6, 104, 225, 0.08) !important;
    border-color: rgba(6, 104, 225, 0.35) !important;
}

.meta-guide-summary {
    padding: 8px 12px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #0668E1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    list-style: none;
}

.meta-guide-summary::-webkit-details-marker {
    display: none;
}

body.dark-mode .meta-guide-summary {
    color: #60A5FA !important;
}

.meta-guide-steps {
    padding: 0 12px 10px;
    font-size: 0.74rem;
    color: #475569;
    line-height: 1.45;
}

body.dark-mode .meta-guide-steps {
    color: #CBD5E1 !important;
}

.meta-guide-step-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 6px;
}

.meta-step-num {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #0668E1;
    color: #FFFFFF;
    font-size: 0.64rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* App details badge */
.meta-app-badge-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: 6px 10px;
    margin-top: 10px;
    font-size: 0.72rem;
    color: #64748B;
}

body.dark-mode .meta-app-badge-box {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #94A3B8 !important;
}

.meta-app-id-text {
    color: #0F172A;
    font-family: monospace;
    font-weight: 700;
}

body.dark-mode .meta-app-id-text {
    color: #F1F5F9 !important;
}

.meta-copy-pill {
    background: #0668E1;
    color: #FFFFFF;
    border: none;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.meta-copy-pill:hover {
    opacity: 0.85;
}

.meta-close-btn:hover {
    color: #0F172A;
    background: #E2E8F0;
}

body.dark-mode .meta-close-btn {
    color: rgba(248, 242, 237, 0.6) !important;
}

body.dark-mode .meta-close-btn:hover {
    color: #F8F2ED !important;
    background: rgba(248, 242, 237, 0.12) !important;
}

.meta-auth-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.meta-auth-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark, #181A18);
    margin: 0;
}

body.dark-mode .meta-auth-title {
    color: #F8F2ED !important;
}

.meta-auth-desc {
    font-size: 0.8rem;
    color: #64748B;
    line-height: 1.4;
    margin: 0;
}

body.dark-mode .meta-auth-desc {
    color: rgba(248, 242, 237, 0.65) !important;
}

.meta-account-preview-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
}

body.dark-mode .meta-account-preview-card {
    background: rgba(28, 30, 28, 0.8) !important;
    border-color: rgba(248, 242, 237, 0.1) !important;
}

.meta-acc-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: #E2E8F0;
    flex-shrink: 0;
}

.meta-acc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.meta-acc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-acc-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark, #181A18);
}

body.dark-mode .meta-acc-title {
    color: #F8F2ED !important;
}

.meta-acc-subtitle {
    font-size: 0.72rem;
    color: #64748B;
}

body.dark-mode .meta-acc-subtitle {
    color: rgba(248, 242, 237, 0.6) !important;
}

.meta-verified-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: #0668E1;
    background: #EFF6FF;
    padding: 3px 8px;
    border-radius: 12px;
}

body.dark-mode .meta-verified-tag {
    background: rgba(6, 104, 225, 0.2) !important;
    color: #60A5FA !important;
}

.meta-permissions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.78rem;
    color: #475569;
}

body.dark-mode .meta-permissions-list {
    color: rgba(248, 242, 237, 0.8) !important;
}

.meta-perm-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-auth-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #F1F5F9;
    background: #FAFAFA;
}

body.dark-mode .meta-auth-footer {
    background: rgba(24, 26, 24, 0.9) !important;
    border-color: rgba(248, 242, 237, 0.1) !important;
}

.meta-confirm-btn {
    padding: 9px 18px;
    border-radius: 10px;
    background: #0668E1;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-confirm-btn:hover {
    background: #0055C4;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(6, 104, 225, 0.3);
}

.meta-cancel-btn {
    padding: 9px 16px;
    border-radius: 10px;
    background: transparent;
    color: #64748B;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
}

.meta-cancel-btn:hover {
    color: #0F172A;
}

body.dark-mode .meta-cancel-btn {
    color: rgba(248, 242, 237, 0.65) !important;
}

body.dark-mode .meta-cancel-btn:hover {
    color: #F8F2ED !important;
    background: rgba(248, 242, 237, 0.08) !important;
}

/* ─── Meta Multi-Mode Auth Tabs ─── */
.meta-auth-tabs {
    display: flex;
    gap: 6px;
    padding: 0 16px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}
body.dark-mode .meta-auth-tabs {
    background: rgba(28, 30, 28, 0.6) !important;
    border-color: rgba(248, 242, 237, 0.1) !important;
}
.meta-auth-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748B;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}
.meta-auth-tab:hover {
    color: #0F172A;
}
body.dark-mode .meta-auth-tab:hover {
    color: #F8F2ED;
}
.meta-auth-tab.active {
    color: #0668E1;
    border-bottom-color: #0668E1;
}
body.dark-mode .meta-auth-tab.active {
    color: #38BDF8;
    border-bottom-color: #38BDF8;
}

.meta-token-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.meta-input-field {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #0F172A;
    font-size: 0.82rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}
.meta-input-field:focus {
    outline: none;
    border-color: #0668E1;
    box-shadow: 0 0 0 3px rgba(6, 104, 225, 0.15);
}
body.dark-mode .meta-input-field {
    background: #121412 !important;
    border-color: rgba(248, 242, 237, 0.2) !important;
    color: #F8F2ED !important;
}
.meta-input-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
body.dark-mode .meta-input-label {
    color: rgba(248, 242, 237, 0.8) !important;
}
.meta-input-hint {
    font-size: 0.7rem;
    font-weight: 400;
    color: #64748B;
}
.meta-verify-banner {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    line-height: 1.4;
    display: none;
}
.meta-verify-banner.success {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}
.meta-verify-banner.error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}
body.dark-mode .meta-verify-banner.success {
    background: rgba(1, 142, 239, 0.15) !important;
    border-color: rgba(1, 142, 239, 0.3) !important;
    color: #38BDF8 !important;
}
body.dark-mode .meta-verify-banner.error {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #F87171 !important;
}

/* ─── E1. Instagram Dedicated Connection UI ─── */
.insta-connect-section,
.insta-oauth-section {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
}

body.dark-mode .insta-connect-section,
body.dark-mode .insta-oauth-section {
    background: rgba(28, 30, 28, 0.7) !important;
    border-color: rgba(248, 242, 237, 0.1) !important;
}

.insta-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dark, #181A18);
}

body.dark-mode .insta-section-label {
    color: #F8F2ED !important;
}

.insta-section-sub {
    font-size: 0.74rem;
    color: #64748B;
    line-height: 1.4;
    margin: 0;
}

body.dark-mode .insta-section-sub {
    color: rgba(248, 242, 237, 0.65) !important;
}

.insta-input-group {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

body.dark-mode .insta-input-group {
    background: #111311 !important;
    border-color: rgba(248, 242, 237, 0.15) !important;
}

.insta-input-group:focus-within {
    border-color: #E1306C;
    box-shadow: 0 0 0 3px rgba(225, 48, 108, 0.15);
}

.insta-input-prefix {
    padding: 0 10px 0 12px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #94A3B8;
    user-select: none;
}

.insta-handle-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark, #181A18);
}

body.dark-mode .insta-handle-input {
    color: #F8F2ED !important;
}

.insta-direct-connect-btn {
    padding: 8px 14px;
    background: #181A18;
    color: #FFFFFF;
    border: none;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    margin: 3px;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

body.dark-mode .insta-direct-connect-btn {
    background: #F8F2ED !important;
    color: #181A18 !important;
}

.insta-direct-connect-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.insta-helper-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.71rem;
    color: #018EEF;
    line-height: 1.3;
}

body.dark-mode .insta-helper-note {
    color: #38BDF8 !important;
}

.insta-auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 4px 0;
}

.insta-auth-divider::before,
.insta-auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E2E8F0;
}

body.dark-mode .insta-auth-divider::before,
body.dark-mode .insta-auth-divider::after {
    border-color: rgba(248, 242, 237, 0.1) !important;
}

.insta-auth-divider span {
    padding: 0 10px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #94A3B8;
    letter-spacing: 0.04em;
}

.btn-insta-gradient-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(225, 48, 108, 0.25);
    width: 100%;
}

.btn-insta-gradient-auth:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(225, 48, 108, 0.35);
}

.btn-insta-gradient-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ─── F. Autonomous Research Card in Chat (Clean Light & Dark Theme) ─── */
.biz-research-brief-card {
    font-family: var(--font-chat);
    line-height: 1.5;
    color: var(--text-primary);
}

.biz-research-brief-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.biz-research-brief-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark, #181A18);
}

body.dark-mode .biz-research-brief-title {
    color: #F8F2ED !important;
}

.biz-research-brief-desc {
    font-size: 0.82rem;
    color: #64748B;
    margin: 0 0 10px 0;
}

body.dark-mode .biz-research-brief-desc {
    color: rgba(248, 242, 237, 0.7) !important;
}

.biz-research-brief-box {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    font-size: 0.82rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.dark-mode .biz-research-brief-box {
    background: rgba(20, 22, 20, 0.6) !important;
    border-color: rgba(248, 242, 237, 0.12) !important;
    color: #F8F2ED !important;
}

.biz-research-brief-status {
    font-size: 0.8rem;
    color: #018EEF;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

body.dark-mode .biz-research-brief-status {
    color: #38BDF8 !important;
}

/* ═══════════════════════════════════════════════════════════════════
   7-MONTH CALENDAR NAVIGATION & BLANK STATE
   ═══════════════════════════════════════════════════════════════════ */
.biz-calendar-stage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
}

.biz-calendar-nav-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.biz-month-nav-arrow {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #FFFFFF;
    color: #181A18;
    font-size: 1.3rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.biz-month-nav-arrow:hover:not(:disabled) {
    background: #F1F5F9;
    border-color: rgba(0, 0, 0, 0.2);
    transform: scale(1.04);
}

.biz-month-nav-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

body.dark-mode .biz-month-nav-arrow {
    background: #202420 !important;
    border-color: rgba(248, 242, 237, 0.15) !important;
    color: #F8F2ED !important;
}

body.dark-mode .biz-month-nav-arrow:hover:not(:disabled) {
    background: #2A302A !important;
    border-color: rgba(248, 242, 237, 0.3) !important;
}

.biz-month-title-group {
    display: flex;
    flex-direction: column;
}

.biz-month-range-sub {
    font-size: 0.72rem;
    font-weight: 500;
    color: #64748B;
    letter-spacing: 0.02em;
}

body.dark-mode .biz-month-range-sub {
    color: rgba(248, 242, 237, 0.6) !important;
}

.biz-month-status-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.05);
    color: #64748B;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.biz-month-status-pill.planned {
    background: rgba(1, 142, 239, 0.12);
    color: #0284C7;
    border-color: rgba(1, 142, 239, 0.3);
}

body.dark-mode .biz-month-status-pill {
    background: rgba(248, 242, 237, 0.08) !important;
    border-color: rgba(248, 242, 237, 0.15) !important;
    color: rgba(248, 242, 237, 0.7) !important;
}

body.dark-mode .biz-month-status-pill.planned {
    background: rgba(248, 242, 237, 0.1) !important;
    color: #F8F2ED !important;
    border-color: rgba(248, 242, 237, 0.2) !important;
}

.biz-plan-month-trigger {
    background: #181A18 !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(24, 26, 24, 0.2);
}

.biz-plan-month-trigger:hover {
    background: #000000 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .biz-plan-month-trigger {
    background: #FFFFFF !important;
    color: #181A18 !important;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15) !important;
}

body.dark-mode .biz-plan-month-trigger:hover {
    background: #F8F2ED !important;
    transform: translateY(-1px);
}

/* Blank Month Empty State Banner */
.biz-empty-month-state {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.8));
    border: 1.5px dashed rgba(0, 0, 0, 0.12);
    border-radius: 18px;
    padding: 28px 24px;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

body.dark-mode .biz-empty-month-state {
    background: linear-gradient(135deg, rgba(26, 30, 26, 0.7), rgba(20, 22, 20, 0.8)) !important;
    border-color: rgba(248, 242, 237, 0.18) !important;
}

.biz-empty-state-icon {
    font-size: 2.2rem;
    margin-bottom: 4px;
}

.biz-empty-state-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark, #181A18);
    margin: 0;
}

body.dark-mode .biz-empty-state-title {
    color: #F8F2ED !important;
}

.biz-empty-state-desc {
    font-size: 0.82rem;
    color: #64748B;
    max-width: 520px;
    line-height: 1.45;
    margin: 0 0 12px 0;
}

body.dark-mode .biz-empty-state-desc {
    color: rgba(248, 242, 237, 0.7) !important;
}

/* Blank Day Cell in Calendar */
.biz-cal-day-cell.unplanned {
    background: rgba(255, 255, 255, 0.55);
    border: 1px dashed rgba(0, 0, 0, 0.1);
    opacity: 0.82;
}

.biz-cal-day-cell.unplanned:hover {
    border-color: #018EEF;
    background: #FFFFFF;
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(1, 142, 239, 0.15);
}

body.dark-mode .biz-cal-day-cell.unplanned {
    background: rgba(24, 26, 24, 0.45) !important;
    border-color: rgba(248, 242, 237, 0.1) !important;
}

body.dark-mode .biz-cal-day-cell.unplanned:hover {
    background: rgba(28, 32, 28, 0.85) !important;
    border-color: #38BDF8 !important;
    box-shadow: 0 4px 14px rgba(1, 142, 239, 0.2) !important;
}

.biz-blank-day-placeholder {
    font-size: 0.72rem;
    color: #94A3B8;
    font-style: italic;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

body.dark-mode .biz-blank-day-placeholder {
    color: rgba(248, 242, 237, 0.4) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   PLAN THIS MONTH MODAL & RESEARCH ANIMATION
   ═══════════════════════════════════════════════════════════════════ */
.biz-plan-month-card {
    width: 100%;
    max-width: 540px;
    background: #FFFFFF;
    border-radius: 22px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    animation: metaCardPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode .biz-plan-month-card {
    background: #181A18 !important;
    border-color: rgba(248, 242, 237, 0.14) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75) !important;
}

.biz-plan-month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.dark-mode .biz-plan-month-header {
    border-color: rgba(248, 242, 237, 0.1) !important;
}

.biz-plan-month-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark, #181A18);
    margin: 0;
}

body.dark-mode .biz-plan-month-title {
    color: #F8F2ED !important;
}

.biz-plan-month-subtitle {
    font-size: 0.74rem;
    color: #64748B;
    margin: 2px 0 0 0;
}

body.dark-mode .biz-plan-month-subtitle {
    color: rgba(248, 242, 237, 0.6) !important;
}

.biz-plan-month-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 72vh;
    overflow-y: auto;
}

.biz-plan-notice-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 0.75rem;
    color: #1E40AF;
    line-height: 1.4;
}

body.dark-mode .biz-plan-notice-box {
    background: rgba(59, 130, 246, 0.16) !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
    color: #BFDBFE !important;
}

.biz-goal-chips-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.biz-goal-chip {
    padding: 7px 13px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #F8FAFC;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.biz-goal-chip:hover {
    background: #E2E8F0;
    transform: translateY(-1px);
}

.biz-goal-chip.active {
    background: #181A18;
    color: #F8F2ED;
    border-color: #181A18;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

body.dark-mode .biz-goal-chip {
    background: rgba(248, 242, 237, 0.08) !important;
    border-color: rgba(248, 242, 237, 0.15) !important;
    color: rgba(248, 242, 237, 0.85) !important;
}

body.dark-mode .biz-goal-chip.active {
    background: #018EEF !important;
    color: #FFFFFF !important;
    border-color: #018EEF !important;
}

.biz-tone-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 6px;
}

.biz-tone-radio {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 8px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #F8FAFC;
    font-size: 0.74rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.biz-tone-radio input {
    display: none;
}

.biz-tone-radio.active {
    background: rgba(1, 142, 239, 0.12);
    border-color: #018EEF;
    color: #0284C7;
}

body.dark-mode .biz-tone-radio {
    background: rgba(248, 242, 237, 0.06) !important;
    border-color: rgba(248, 242, 237, 0.12) !important;
    color: rgba(248, 242, 237, 0.8) !important;
}

body.dark-mode .biz-tone-radio.active {
    background: rgba(1, 142, 239, 0.22) !important;
    border-color: #38BDF8 !important;
    color: #38BDF8 !important;
}

.biz-plan-month-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.dark-mode .biz-plan-month-actions {
    border-color: rgba(248, 242, 237, 0.1) !important;
}

/* Research Progress Animation View */
.biz-plan-research-view {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.biz-research-spinner-ring {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 3px solid rgba(1, 142, 239, 0.2);
    border-top-color: #018EEF;
    animation: metaSpin 1.1s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.biz-spinner-core {
    font-size: 1.5rem;
    animation: metaPulse 1.5s ease-in-out infinite;
}

.biz-research-status-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark, #181A18);
    margin: 0;
}

body.dark-mode .biz-research-status-title {
    color: #F8F2ED !important;
}

.biz-research-status-desc {
    font-size: 0.82rem;
    color: #64748B;
    margin: 0 0 16px 0;
}

body.dark-mode .biz-research-status-desc {
    color: rgba(248, 242, 237, 0.7) !important;
}

.biz-research-steps-list {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.biz-research-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.76rem;
    color: #64748B;
    transition: all 0.3s ease;
}

.biz-research-step.active {
    background: rgba(1, 142, 239, 0.1);
    border-color: rgba(1, 142, 239, 0.35);
    color: #0284C7;
    font-weight: 600;
}

.biz-research-step.done {
    background: rgba(1, 142, 239, 0.05);
    border-color: rgba(1, 142, 239, 0.2);
    color: #018EEF;
}

body.dark-mode .biz-research-step {
    background: rgba(248, 242, 237, 0.04) !important;
    border-color: rgba(248, 242, 237, 0.08) !important;
    color: rgba(248, 242, 237, 0.6) !important;
}

body.dark-mode .biz-research-step.active {
    background: rgba(1, 142, 239, 0.2) !important;
    border-color: #38BDF8 !important;
    color: #38BDF8 !important;
}

body.dark-mode .biz-research-step.done {
    color: #38BDF8 !important;
}

.biz-step-marker {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.biz-research-step.active .biz-step-marker {
    background: #018EEF;
    color: #FFFFFF;
}

.biz-research-step.done .biz-step-marker {
    background: #018EEF;
    color: #FFFFFF;
}

/* ═══════════════════════════════════════════════════════════════════
   DAY DETAIL DRAWER: SLOTS, OUTCOMES, PROMPTS, SCROLLABLE CAROUSEL
   ═══════════════════════════════════════════════════════════════════ */
.biz-meta-sync-pill {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.12);
    color: #2563EB;
}

body.dark-mode .biz-meta-sync-pill {
    background: rgba(59, 130, 246, 0.22) !important;
    color: #93C5FD !important;
}

/* Multiple Content Slots Switcher Drawer (Max 4 per day) */
.biz-day-slots-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    overflow-x: auto;
}

body.dark-mode .biz-day-slots-bar {
    background: rgba(248, 242, 237, 0.03) !important;
    border-color: rgba(248, 242, 237, 0.08) !important;
}

.biz-slot-tab {
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #FFFFFF;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.biz-slot-tab.active {
    background: #181A18;
    color: #F8F2ED;
    border-color: #181A18;
}

body.dark-mode .biz-slot-tab {
    background: rgba(248, 242, 237, 0.06) !important;
    border-color: rgba(248, 242, 237, 0.12) !important;
    color: rgba(248, 242, 237, 0.8) !important;
}

body.dark-mode .biz-slot-tab.active {
    background: #018EEF !important;
    color: #FFFFFF !important;
    border-color: #018EEF !important;
}

.biz-slot-add-btn {
    padding: 5px 10px;
    border-radius: 10px;
    border: 1px dashed rgba(1, 142, 239, 0.4);
    background: rgba(1, 142, 239, 0.06);
    color: #0284C7;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.biz-slot-add-btn:hover {
    background: rgba(16, 185, 129, 0.15);
}

body.dark-mode .biz-slot-add-btn {
    background: rgba(1, 142, 239, 0.15) !important;
    color: #38BDF8 !important;
}

/* Expected Outcome Box */
.biz-day-outcome-box {
    background: linear-gradient(135deg, rgba(238, 242, 255, 0.85), rgba(224, 231, 255, 0.6));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

body.dark-mode .biz-day-outcome-box {
    background: linear-gradient(135deg, rgba(1, 142, 239, 0.12), rgba(0, 112, 192, 0.08)) !important;
    border-color: rgba(1, 142, 239, 0.25) !important;
}

.biz-outcome-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #0284C7;
}

body.dark-mode .biz-outcome-label {
    color: #38BDF8 !important;
}

.biz-outcome-text {
    font-size: 0.78rem;
    color: #1E1B4B;
    line-height: 1.4;
    font-weight: 500;
}

body.dark-mode .biz-outcome-text {
    color: #E0E7FF !important;
}

/* Prompt to Design Content Box */
.biz-day-prompt-box {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.dark-mode .biz-day-prompt-box {
    background: rgba(248, 242, 237, 0.05) !important;
    border-color: rgba(248, 242, 237, 0.12) !important;
}

.biz-prompt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.biz-prompt-lbl {
    font-size: 0.65rem;
    font-weight: 800;
    color: #D97706;
    letter-spacing: 0.04em;
}

body.dark-mode .biz-prompt-lbl {
    color: #FBBF24 !important;
}

.biz-prompt-content {
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.45;
    font-family: var(--font-mono, monospace);
}

body.dark-mode .biz-prompt-content {
    color: rgba(248, 242, 237, 0.8) !important;
}

/* Creative Render Area */
.biz-creative-wrapper {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
}

body.dark-mode .biz-creative-wrapper {
    background: rgba(24, 26, 24, 0.6) !important;
    border-color: rgba(248, 242, 237, 0.1) !important;
}

.biz-creative-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.biz-creative-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: #0284C7;
}

body.dark-mode .biz-creative-badge {
    color: #38BDF8 !important;
}

.biz-regenerate-creative-btn {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(1, 142, 239, 0.3);
    background: rgba(1, 142, 239, 0.08);
    color: #0284C7;
    cursor: pointer;
    transition: all 0.2s ease;
}

.biz-regenerate-creative-btn:hover {
    background: rgba(1, 142, 239, 0.18);
}

body.dark-mode .biz-regenerate-creative-btn {
    background: rgba(1, 142, 239, 0.2) !important;
    color: #38BDF8 !important;
}

/* Single Poster Card */
.biz-poster-preview-card {
    border-radius: 12px;
    padding: 20px 18px;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    position: relative;
    overflow: hidden;
}

.biz-poster-badge {
    align-self: flex-start;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    letter-spacing: 0.05em;
}

.biz-poster-headline {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 4px 0 0 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.biz-poster-sub {
    font-size: 0.75rem;
    opacity: 0.9;
    line-height: 1.4;
    margin: 0;
}

.biz-poster-cta-btn {
    align-self: flex-start;
    margin-top: 8px;
    padding: 6px 14px;
    border-radius: 8px;
    background: #FFFFFF;
    color: #181A18;
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════
   SCROLLABLE HORIZONTAL CAROUSEL COMPONENT
   ═══════════════════════════════════════════════════════════════════ */
.biz-carousel-container {
    position: relative;
    width: 100%;
}

.biz-carousel-track-wrapper {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(16, 185, 129, 0.4) transparent;
    padding-bottom: 8px;
}

.biz-carousel-track-wrapper::-webkit-scrollbar {
    height: 4px;
}

.biz-carousel-track-wrapper::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.4);
    border-radius: 4px;
}

.biz-carousel-track {
    display: flex;
    gap: 12px;
    width: max-content;
    padding: 4px 2px;
}

.biz-carousel-slide-card {
    width: 220px;
    min-height: 180px;
    border-radius: 12px;
    background: #181A18;
    color: #F8F2ED;
    border: 1px solid rgba(248, 242, 237, 0.12);
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.biz-carousel-slide-card:hover {
    transform: translateY(-2px);
}

.biz-slide-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.biz-slide-index-pill {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(248, 242, 237, 0.15);
    color: #F8F2ED;
}

.biz-slide-headline {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 6px 0;
    color: #F8F2ED;
}

.biz-slide-desc {
    font-size: 0.7rem;
    color: rgba(248, 242, 237, 0.7);
    line-height: 1.35;
    margin: 0;
}

.biz-carousel-nav-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 4px;
}

.biz-carousel-arrow-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #FFFFFF;
    color: #181A18;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.biz-carousel-arrow-btn:hover {
    background: #F1F5F9;
}

body.dark-mode .biz-carousel-arrow-btn {
    background: #242824 !important;
    border-color: rgba(248, 242, 237, 0.15) !important;
    color: #F8F2ED !important;
}

.biz-carousel-hint-text {
    font-size: 0.68rem;
    color: #64748B;
    font-style: italic;
}

body.dark-mode .biz-carousel-hint-text {
    color: rgba(248, 242, 237, 0.5) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   MODULES HUB LOCKED CARDS & ANALYTICS LOCKED BANNER
   ═══════════════════════════════════════════════════════════════════ */
.biz-module-hub-card.locked {
    opacity: 0.78;
    border-style: dashed;
}

.biz-module-hub-card.locked:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.biz-tag.warning {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary, #181A18);
}

body.dark-mode .biz-tag.warning {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #F8F2ED !important;
}

/* Analytics Locked Banner */
.biz-analytics-locked-banner {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

body.dark-mode .biz-analytics-locked-banner {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.biz-locked-header-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.biz-locked-icon-badge {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.biz-locked-text-group {
    flex: 1;
    min-width: 240px;
}

.biz-locked-headline {
    font-size: 0.95rem;
    font-weight: 700;
    color: #92400E;
    display: block;
    margin-bottom: 2px;
}

body.dark-mode .biz-locked-headline {
    color: #FDE68A !important;
}

.biz-locked-subtext {
    font-size: 0.76rem;
    color: #64748B;
    margin: 0;
    line-height: 1.4;
}
body.dark-mode .biz-locked-subtext {
    color: rgba(248, 242, 237, 0.65) !important;
}

body.dark-mode .biz-locked-subtext {
    color: rgba(253, 230, 138, 0.85) !important;
}

.biz-step-item.locked {
    opacity: 0.65;
    cursor: not-allowed !important;
}

/* ═══════════════════════════════════════════════════════════════════
   BUTLER STUDIO REAL IMAGE RENDERING & LIGHTBOX STYLES
   ═══════════════════════════════════════════════════════════════════ */
.biz-real-image-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.biz-real-image-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.biz-nano-model-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 3px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.biz-real-image-res {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(248, 242, 237, 0.6);
}

.biz-real-image-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 420px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    background: #0E100E;
    border: 1px solid rgba(248, 242, 237, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.biz-real-image-tag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.biz-real-image-frame:hover .biz-real-image-tag {
    transform: scale(1.02);
}

.biz-image-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 600;
    backdrop-filter: blur(2px);
}

.biz-real-image-frame:hover .biz-image-hover-overlay {
    opacity: 1;
}

.biz-image-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.biz-download-image-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 9px;
    background: #018EEF;
    color: #FFFFFF !important;
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.biz-download-image-btn:hover {
    background: #0070C0;
    transform: translateY(-1px);
}

.biz-regenerate-image-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 9px;
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.35);
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.biz-regenerate-image-btn:hover {
    background: rgba(245, 158, 11, 0.25);
}

.biz-view-lightbox-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 9px;
    background: rgba(248, 242, 237, 0.08);
    color: rgba(248, 242, 237, 0.85);
    border: 1px solid rgba(248, 242, 237, 0.15);
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.2s ease;
}

.biz-view-lightbox-btn:hover {
    background: rgba(248, 242, 237, 0.15);
}

/* Unrendered Butler Studio Card State */
.biz-unrendered-creative-card {
    border-radius: 14px;
    padding: 24px 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(16, 185, 129, 0.04));
    border: 1px dashed rgba(245, 158, 11, 0.35);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.biz-unrendered-icon {
    font-size: 2rem;
    margin-bottom: 2px;
}

.biz-unrendered-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #F59E0B;
    margin: 0;
}

.biz-unrendered-sub {
    font-size: 0.75rem;
    color: rgba(248, 242, 237, 0.65);
    margin: 0 0 10px 0;
    max-width: 420px;
    line-height: 1.45;
}

.biz-generate-real-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #181A18;
    font-size: 0.82rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.biz-generate-real-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
}

/* Loading View */
.biz-nano-loading-view {
    border-radius: 14px;
    padding: 34px 20px;
    background: rgba(18, 20, 18, 0.8);
    border: 1px solid rgba(245, 158, 11, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.biz-nano-spinner {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 3px solid rgba(1, 142, 239, 0.2);
    border-top-color: #018EEF;
    border-right-color: #38BDF8;
    animation: spin 1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}

.biz-nano-loading-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #F59E0B;
}

.biz-nano-loading-sub {
    font-size: 0.72rem;
    color: rgba(248, 242, 237, 0.65);
}

.biz-nano-loading-prompt {
    font-size: 0.7rem;
    font-style: italic;
    color: rgba(248, 242, 237, 0.45);
    max-width: 460px;
    line-height: 1.35;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 4px;
}

/* Slide Card Image Rendering inside Carousel */
.biz-slide-img-frame {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    background: #0E100E;
    position: relative;
    border: 1px solid rgba(248, 242, 237, 0.08);
}

.biz-slide-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.biz-slide-gen-btn {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
    cursor: pointer;
    margin-top: 6px;
    transition: all 0.2s ease;
}

.biz-slide-gen-btn:hover {
    background: rgba(245, 158, 11, 0.3);
}

/* Lightbox Modal */
.biz-lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.biz-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.biz-lightbox-close-btn {
    position: fixed;
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    z-index: 100005;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
    font-size: 1.35rem;
    font-weight: 700;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.biz-lightbox-close-btn:hover {
    background: rgba(239, 68, 68, 0.95);
    border-color: rgba(239, 68, 68, 1);
    transform: scale(1.08);
}

.biz-lightbox-close-btn:active {
    transform: scale(0.96);
}

#bizLightboxImage {
    max-width: 82vw;
    max-height: 75vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    object-fit: contain;
}

.biz-lightbox-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.biz-lightbox-caption {
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFFFFF;
}

.biz-lightbox-dl-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: #018EEF;
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.biz-lightbox-dl-btn:hover {
    background: #0076c8;
}

@media (max-width: 768px) {
    .biz-lightbox-modal {
        padding: 12px;
    }
    .biz-lightbox-content {
        max-width: 96vw;
        max-height: 92vh;
        gap: 10px;
    }
    .biz-lightbox-close-btn {
        top: max(12px, env(safe-area-inset-top));
        right: max(12px, env(safe-area-inset-right));
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
    }
    #bizLightboxImage {
        max-width: 94vw;
        max-height: 65vh;
    }
    .biz-lightbox-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        text-align: center;
    }
    .biz-lightbox-caption {
        font-size: 0.82rem;
        line-height: 1.35;
    }
    .biz-lightbox-dl-btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   AUTONOMY SWITCH & HUB CONTROLS (Autopilot ⚡ vs Manual ✍️)
   ═══════════════════════════════════════════════════════════════════ */
.biz-hub-autonomy-switch {
    display: inline-flex;
    align-items: center;
    background: #F1F5F9;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 3px;
    gap: 2px;
}

body.dark-mode .biz-hub-autonomy-switch {
    background: rgba(248, 242, 237, 0.06);
    border-color: rgba(248, 242, 237, 0.12);
}

.biz-hub-autonomy-switch.compact {
    padding: 2px;
}

.biz-mode-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    border: none;
    background: transparent;
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

body.dark-mode .biz-mode-toggle-btn {
    color: rgba(248, 242, 237, 0.6);
}

.biz-mode-toggle-btn:hover {
    color: var(--text-dark, #181A18);
}

body.dark-mode .biz-mode-toggle-btn:hover {
    color: #F8F2ED;
}

.biz-mode-toggle-btn.active#btnModeAutopilotDrawer,
.biz-mode-toggle-btn.active#btnModeAutopilotCal {
    background: #111315;
    color: #F8F2ED;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

body.dark-mode .biz-mode-toggle-btn.active#btnModeAutopilotDrawer,
body.dark-mode .biz-mode-toggle-btn.active#btnModeAutopilotCal {
    background: #F8F2ED;
    color: #111315;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}

.biz-mode-toggle-btn.active#btnModeManualDrawer,
.biz-mode-toggle-btn.active#btnModeManualCal {
    background: #0284C7;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.biz-autonomy-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(24, 26, 24, 0.08);
    color: #181A18;
    border: 1px solid rgba(24, 26, 24, 0.14);
}

body.dark-mode .biz-autonomy-status-pill {
    background: rgba(248, 242, 237, 0.1);
    color: #F8F2ED;
    border-color: rgba(248, 242, 237, 0.18);
}

.biz-autonomy-status-pill.manual {
    background: rgba(24, 26, 24, 0.04);
    color: #64748B;
    border-color: rgba(0, 0, 0, 0.08);
}

body.dark-mode .biz-autonomy-status-pill.manual {
    background: rgba(248, 242, 237, 0.06);
    color: rgba(248, 242, 237, 0.7);
    border-color: rgba(248, 242, 237, 0.12);
}

/* ═══════════════════════════════════════════════════════════════════
   DISCOVERY RESEARCH SCANNING MODAL & RADAR
   ═══════════════════════════════════════════════════════════════════ */
.biz-discovery-scanning-card {
    background: #FFFFFF;
    border-radius: 20px;
    max-width: 540px;
    width: 90%;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.08);
    animation: bizModalAppear 0.3s ease-out;
}

body.dark-mode .biz-discovery-scanning-card {
    background: #141618;
    border-color: rgba(248, 242, 237, 0.15);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

.biz-scan-radar-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.biz-scan-radar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px dashed #0284C7;
    animation: bizRadarSpin 4s linear infinite;
}

.biz-scan-radar-wrap::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(2, 132, 199, 0.25);
    animation: bizRadarPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes bizRadarSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bizRadarPulse {
    0%, 100% { transform: scale(0.92); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 1; }
}

.biz-scan-radar-core {
    font-size: 2rem;
    z-index: 2;
}

.biz-scan-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark, #181A18);
    margin: 0 0 6px 0;
}

body.dark-mode .biz-scan-title {
    color: #F8F2ED;
}

.biz-scan-desc {
    font-size: 0.82rem;
    color: #64748B;
    margin: 0 0 24px 0;
}

body.dark-mode .biz-scan-desc {
    color: rgba(248, 242, 237, 0.6);
}

.biz-scan-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    text-align: left;
}

.biz-scan-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
    opacity: 0.5;
}

body.dark-mode .biz-scan-step {
    background: rgba(248, 242, 237, 0.04);
    border-color: rgba(248, 242, 237, 0.08);
}

.biz-scan-step.active {
    opacity: 1;
    background: rgba(2, 132, 199, 0.06);
    border-color: rgba(2, 132, 199, 0.3);
}

.biz-scan-step.completed {
    opacity: 1;
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.3);
}

.scan-step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #E2E8F0;
    color: #64748B;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.biz-scan-step.active .scan-step-dot {
    background: #0284C7;
    color: #FFFFFF;
    box-shadow: 0 0 6px rgba(2, 132, 199, 0.3);
}

.biz-scan-step.completed .scan-step-dot {
    background: #018EEF;
    color: #FFFFFF;
}

.scan-step-info strong {
    display: block;
    font-size: 0.82rem;
    color: var(--text-dark, #181A18);
    font-weight: 700;
}

body.dark-mode .scan-step-info strong {
    color: #F8F2ED;
}

.scan-step-info span {
    font-size: 0.72rem;
    color: #64748B;
}

body.dark-mode .scan-step-info span {
    color: rgba(248, 242, 237, 0.6);
}

/* ═══════════════════════════════════════════════════════════════════
   CONSENT CAROUSEL MODAL (4 Slides)
   ═══════════════════════════════════════════════════════════════════ */
.biz-consent-card {
    background: #FFFFFF;
    border-radius: 22px;
    max-width: 680px;
    width: 92%;
    padding: 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.08);
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
    animation: bizModalAppear 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode .biz-consent-card {
    background: #141618;
    border-color: rgba(248, 242, 237, 0.15);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.7);
}

.biz-consent-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

body.dark-mode .biz-consent-header {
    border-color: rgba(248, 242, 237, 0.1);
}

.biz-consent-badge {
    font-size: 0.68rem;
    font-weight: 800;
    color: #0284C7;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.biz-consent-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark, #181A18);
    margin: 0;
}

body.dark-mode .biz-consent-title {
    color: #F8F2ED;
}

.biz-consent-step-indicator {
    font-size: 0.74rem;
    font-weight: 700;
    color: #64748B;
    background: #F1F5F9;
    padding: 4px 10px;
    border-radius: 12px;
}

body.dark-mode .biz-consent-step-indicator {
    background: rgba(248, 242, 237, 0.1);
    color: rgba(248, 242, 237, 0.7);
}

.biz-consent-slider {
    position: relative;
    min-height: 320px;
}

.biz-consent-slide {
    display: none;
    flex-direction: column;
    animation: fadeIn 0.25s ease-out;
}

.biz-consent-slide.active {
    display: flex;
}

.biz-slide-badge-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.biz-slide-heading {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--text-dark, #181A18);
    margin: 0 0 6px 0;
}

body.dark-mode .biz-slide-heading {
    color: #F8F2ED;
}

.biz-slide-text {
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

body.dark-mode .biz-slide-text {
    color: rgba(248, 242, 237, 0.75);
}

.biz-slide-box-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.biz-slide-metric-box {
    background: #F8FAFC;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body.dark-mode .biz-slide-metric-box {
    background: rgba(248, 242, 237, 0.04);
    border-color: rgba(248, 242, 237, 0.08);
}

.biz-slide-metric-box .box-lbl {
    font-size: 0.68rem;
    color: #64748B;
    text-transform: uppercase;
    font-weight: 700;
}

body.dark-mode .biz-slide-metric-box .box-lbl {
    color: rgba(248, 242, 237, 0.5);
}

.biz-slide-metric-box strong {
    font-size: 0.86rem;
    color: var(--text-dark, #181A18);
}

body.dark-mode .biz-slide-metric-box strong {
    color: #F8F2ED;
}

.biz-slide-key-findings {
    background: #F1F5F9;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.8rem;
}

body.dark-mode .biz-slide-key-findings {
    background: rgba(248, 242, 237, 0.05);
}

.findings-heading {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark, #181A18);
}

body.dark-mode .findings-heading {
    color: #F8F2ED;
}

.findings-list {
    margin: 0;
    padding-left: 18px;
    color: #475569;
    line-height: 1.5;
}

body.dark-mode .findings-list {
    color: rgba(248, 242, 237, 0.7);
}

.biz-agile-blueprint-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.biz-blueprint-card {
    background: #F8FAFC;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.dark-mode .biz-blueprint-card {
    background: rgba(248, 242, 237, 0.04);
    border-color: rgba(248, 242, 237, 0.08);
}

.biz-blueprint-card .b-icon {
    font-size: 1.4rem;
}

.biz-blueprint-card strong {
    font-size: 0.84rem;
    color: var(--text-dark, #181A18);
}

body.dark-mode .biz-blueprint-card strong {
    color: #F8F2ED;
}

.biz-blueprint-card p {
    font-size: 0.74rem;
    color: #64748B;
    margin: 0;
    line-height: 1.4;
}

body.dark-mode .biz-blueprint-card p {
    color: rgba(248, 242, 237, 0.6);
}

.biz-creative-specs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.biz-spec-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #F8FAFC;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 12px 14px;
}

body.dark-mode .biz-spec-line {
    background: rgba(248, 242, 237, 0.04);
    border-color: rgba(248, 242, 237, 0.08);
}

.spec-bullet {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.biz-spec-line strong {
    display: block;
    font-size: 0.84rem;
    color: var(--text-dark, #181A18);
    margin-bottom: 2px;
}

body.dark-mode .biz-spec-line strong {
    color: #F8F2ED;
}

.biz-spec-line span {
    font-size: 0.76rem;
    color: #64748B;
    line-height: 1.4;
}

body.dark-mode .biz-spec-line span {
    color: rgba(248, 242, 237, 0.6);
}

/* Slide 4: Autonomy Choice Cards */
.biz-mode-choice-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 12px;
}

.biz-mode-choice-card {
    background: #F8FAFC;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

body.dark-mode .biz-mode-choice-card {
    background: rgba(248, 242, 237, 0.04);
    border-color: rgba(248, 242, 237, 0.1);
}

.biz-mode-choice-card:hover {
    border-color: #0284C7;
    transform: translateY(-2px);
}

.biz-mode-choice-card.active {
    background: rgba(2, 132, 199, 0.04);
    border-color: #0284C7;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.18);
}

.choice-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.choice-icon {
    font-size: 1.2rem;
}

.choice-top strong {
    font-size: 0.88rem;
    color: var(--text-dark, #181A18);
    flex: 1;
}

body.dark-mode .choice-top strong {
    color: #F8F2ED;
}

.choice-radio-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.biz-mode-choice-card.active .choice-radio-dot {
    border-color: #0284C7;
}

.biz-mode-choice-card.active .choice-radio-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0284C7;
}

.choice-desc {
    font-size: 0.76rem;
    color: #64748B;
    line-height: 1.45;
    margin: 0 0 12px 0;
    flex: 1;
}

body.dark-mode .choice-desc {
    color: rgba(248, 242, 237, 0.6);
}

.choice-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: #0284C7;
    background: rgba(1, 142, 239, 0.1);
    padding: 3px 8px;
    border-radius: 8px;
    align-self: flex-start;
}

.biz-consent-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.dark-mode .biz-consent-footer {
    border-color: rgba(248, 242, 237, 0.1);
}

.biz-consent-dots {
    display: flex;
    gap: 6px;
}

.biz-consent-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E2E8F0;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.dark-mode .biz-consent-dot {
    background: rgba(248, 242, 237, 0.2);
}

.biz-consent-dot.active {
    width: 22px;
    border-radius: 4px;
    background: #0284C7;
}

/* ─── Responsive Overhaul for Client Consent & Strategy Blueprint Carousel Modal ─── */
@media (max-width: 600px) {
    .biz-consent-card {
        width: 96% !important;
        max-width: 96% !important;
        padding: 16px 14px 14px 14px !important;
        max-height: calc(100dvh - 24px) !important;
        border-radius: 18px !important;
        margin: auto !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }

    .biz-consent-header {
        padding-bottom: 8px !important;
        margin-bottom: 12px !important;
    }

    .biz-consent-badge {
        font-size: 0.62rem !important;
        margin-bottom: 2px !important;
    }

    .biz-consent-title {
        font-size: 1.05rem !important;
        line-height: 1.25 !important;
    }

    .biz-consent-step-indicator {
        font-size: 0.66rem !important;
        padding: 3px 8px !important;
    }

    .biz-consent-slider {
        min-height: 0 !important;
        flex: 1 1 auto !important;
    }

    .biz-slide-heading {
        font-size: 0.96rem !important;
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
    }

    .biz-slide-text {
        font-size: 0.80rem !important;
        line-height: 1.45 !important;
        margin-bottom: 10px !important;
    }

    .biz-slide-box-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }

    .biz-slide-metric-box {
        padding: 8px 10px !important;
    }

    .biz-slide-metric-box strong {
        font-size: 0.80rem !important;
        word-break: break-word !important;
    }

    .biz-slide-key-findings {
        padding: 10px 12px !important;
        font-size: 0.76rem !important;
    }

    .findings-list {
        padding-left: 14px !important;
        font-size: 0.74rem !important;
        line-height: 1.4 !important;
    }

    .biz-mode-choice-cards {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .biz-mode-choice-card {
        padding: 10px 12px !important;
    }

    .choice-top strong {
        font-size: 0.82rem !important;
    }

    .choice-desc {
        font-size: 0.74rem !important;
        margin-bottom: 8px !important;
    }

    .biz-consent-footer {
        margin-top: 12px !important;
        padding-top: 10px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }

    .biz-consent-footer .biz-primary-cta {
        padding: 8px 16px !important;
        font-size: 0.78rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   1-WEEK AGILE SPRINT CALENDAR GRID
   ═══════════════════════════════════════════════════════════════════ */
.biz-week-sprint-container {
    width: 100%;
    overflow-x: hidden;
    padding-bottom: 0;
}

.biz-week-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    width: 100%;
    min-width: 0;
    padding-bottom: 16px;
}

.biz-week-day-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

body.dark-mode .biz-week-day-card {
    background: #181A18;
    border-color: rgba(248, 242, 237, 0.1);
}

.biz-week-day-card:hover {
    border-color: #0284C7;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

body.dark-mode .biz-week-day-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.biz-week-day-card.today {
    border-color: #0284C7;
    background: rgba(2, 132, 199, 0.02);
}

body.dark-mode .biz-week-day-card.today {
    background: rgba(2, 132, 199, 0.05);
}

.biz-week-day-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.biz-week-day-num {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-dark, #181A18);
}

body.dark-mode .biz-week-day-num {
    color: #F8F2ED;
}

.biz-week-day-today-tag {
    font-size: 0.64rem;
    font-weight: 800;
    color: #0284C7;
    background: rgba(2, 132, 199, 0.1);
    padding: 2px 6px;
    border-radius: 6px;
}

.biz-week-format-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    background: #F1F5F9;
    color: #475569;
}

body.dark-mode .biz-week-format-badge {
    background: rgba(248, 242, 237, 0.08);
    color: #CBD5E1;
}

.biz-week-format-badge.carousel {
    background: rgba(99, 102, 241, 0.1);
    color: #6366F1;
}

.biz-week-format-badge.poster {
    background: rgba(1, 142, 239, 0.1);
    color: #0284C7;
}

.biz-week-day-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dark, #181A18);
    line-height: 1.35;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.dark-mode .biz-week-day-title {
    color: #F8F2ED;
}

/* Strategic Daily Motive Badge on Calendar Cards */
.biz-week-motive-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.22);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #0284C7;
    margin: 4px 0 6px 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.dark-mode .biz-week-motive-pill {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.28);
    color: #38BDF8;
}

.biz-week-motive-icon {
    font-size: 0.72rem;
    line-height: 1;
    flex-shrink: 0;
}

.biz-week-motive-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Studio Strategic Motive Card */
.biz-studio-motive-card {
    padding: 12px 16px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    margin-bottom: 16px;
}

body.dark-mode .biz-studio-motive-card {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

.biz-motive-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.biz-motive-badge-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.biz-motive-tag-pill {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #0284C7;
    text-transform: uppercase;
}

body.dark-mode .biz-motive-tag-pill {
    color: #38BDF8;
}

.biz-motive-desc-text {
    font-size: 0.76rem;
    color: #64748B;
    line-height: 1.45;
    margin-bottom: 8px;
}

body.dark-mode .biz-motive-desc-text {
    color: #94A3B8;
}

.biz-motive-insight-box {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-left: 3px solid #0284C7;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.76rem;
    line-height: 1.45;
    color: #334155;
}

body.dark-mode .biz-motive-insight-box {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
    border-left-color: #38BDF8;
    color: #E2E8F0;
}


/* Creative Thumbnail Box on Day Card (Light & Dark Mode Harmonized) */
.biz-week-creative-preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #F8FAFC;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

body.dark-mode .biz-week-creative-preview {
    background: #0F172A;
    border-color: rgba(255, 255, 255, 0.08);
}

/* 1. Synthesizing 4K Visual State */
.biz-week-creative-preview.is-generating {
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    gap: 8px;
    padding: 12px;
    text-align: center;
}

body.dark-mode .biz-week-creative-preview.is-generating {
    background: radial-gradient(circle at 50% 40%, rgba(56, 189, 248, 0.16), rgba(15, 23, 42, 0.94));
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: none;
}

/* Spinner for Synthesizing state */
.biz-preview-spinner {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #CBD5E1;
    border-top-color: #0284C7;
    animation: bizSpin 0.85s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

body.dark-mode .biz-preview-spinner {
    border: 2px solid rgba(56, 189, 248, 0.2);
    border-top-color: #38BDF8;
    box-shadow: none;
}

@keyframes bizSpin {
    to { transform: rotate(360deg); }
}

/* 2. Queued in Studio State */
.biz-week-creative-preview.is-queued {
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
    gap: 7px;
    padding: 12px;
    text-align: center;
}

body.dark-mode .biz-week-creative-preview.is-queued {
    background: radial-gradient(circle at 50% 40%, rgba(0, 132, 255, 0.18), rgba(15, 23, 42, 0.94));
    border: 1px dashed rgba(56, 189, 248, 0.4);
    box-shadow: none;
}

.biz-preview-queued-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Titles & Subtitles for overlays (Darker high-contrast font in light mode) */
.biz-preview-status-title {
    font-size: 0.74rem;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.01em;
}

.biz-week-creative-preview.is-generating .biz-preview-status-title {
    color: #0F172A;
}

body.dark-mode .biz-preview-status-title {
    color: #BAE6FD;
}

body.dark-mode .biz-week-creative-preview.is-generating .biz-preview-status-title {
    color: #38BDF8;
}

.biz-preview-status-sub {
    font-size: 0.64rem;
    color: #475569;
    font-weight: 500;
}

body.dark-mode .biz-preview-status-sub {
    color: #94A3B8;
}

/* 3. Empty Canvas State */
.biz-week-creative-preview.is-empty-canvas {
    background: #F8FAFC;
    border: 1px dashed rgba(0, 0, 0, 0.14);
    gap: 6px;
}

body.dark-mode .biz-week-creative-preview.is-empty-canvas {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.14);
}

/* Brand Pulse Dot */
.biz-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0284C7;
    display: inline-block;
    flex-shrink: 0;
}

body.dark-mode .biz-pulse-dot {
    background: #38BDF8;
    box-shadow: 0 0 4px rgba(56, 189, 248, 0.4);
    animation: bizPulseAnim 1.6s infinite ease-in-out;
}

@keyframes bizPulseAnim {
    0%, 100% { transform: scale(0.9); opacity: 0.75; }
    50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 6px rgba(56, 189, 248, 0.6); }
}

.biz-week-creative-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.biz-week-day-card:hover .biz-week-creative-img {
    transform: scale(1.04);
}

.biz-week-creative-art-card {
    width: 100%;
    height: 100%;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, #181A18 0%, #0A4D9B 100%);
    color: #FFFFFF;
}

.art-card-badge {
    font-size: 0.6rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    align-self: flex-start;
}

.art-card-headline {
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.art-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.64rem;
    opacity: 0.8;
}

.biz-week-time-slot {
    font-size: 0.7rem;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 4px;
}

body.dark-mode .biz-week-time-slot {
    color: rgba(248, 242, 237, 0.6);
}

.biz-week-card-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .biz-week-card-status-bar {
    border-color: rgba(248, 242, 237, 0.08);
}

.biz-week-status-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.biz-week-status-pill.scheduled {
    background: rgba(1, 142, 239, 0.12);
    color: #0284C7;
    border: 1px solid rgba(1, 142, 239, 0.25);
}

body.dark-mode .biz-week-status-pill.scheduled {
    background: rgba(1, 142, 239, 0.18) !important;
    color: #38BDF8 !important;
    border-color: rgba(1, 142, 239, 0.35) !important;
}

.biz-week-status-pill.prepared {
    background: #E2E8F0;
    color: #334155;
    border: 1px solid #CBD5E1;
}

body.dark-mode .biz-week-status-pill.prepared {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #CBD5E1 !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

.biz-week-status-pill.planned {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #CBD5E1;
    font-weight: 700;
}

body.dark-mode .biz-week-status-pill.planned {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #94A3B8 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.biz-week-status-pill.posted {
    background: rgba(1, 142, 239, 0.22);
    color: #0070C0;
    border: 1px solid rgba(1, 142, 239, 0.4);
}

body.dark-mode .biz-week-status-pill.posted {
    background: rgba(1, 142, 239, 0.28) !important;
    color: #7DD3FC !important;
    border-color: rgba(1, 142, 239, 0.45) !important;
}

.biz-week-status-pill.deleted {
    background: rgba(239, 68, 68, 0.16);
    color: #DC2626;
    border: 1px solid rgba(239, 68, 68, 0.35);
    font-weight: 700;
}

body.dark-mode .biz-week-status-pill.deleted {
    background: rgba(239, 68, 68, 0.22) !important;
    color: #F87171 !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
}

.biz-week-day-card.deleted-by-user {
    border-color: rgba(239, 68, 68, 0.35);
}

body.dark-mode .biz-week-day-card.deleted-by-user {
    border-color: rgba(239, 68, 68, 0.3);
}

.biz-week-status-pill.queued {
    background: #F1F5F9;
    color: #334155;
    border: 1px solid #CBD5E1;
    font-weight: 700;
}

body.dark-mode .biz-week-status-pill.queued {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #CBD5E1 !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

/* Card Action Buttons (Inline Approval / Edit) */
.biz-week-card-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.biz-week-auto-gen-pill {
    width: 100%;
    padding: 7px 10px;
    border-radius: 8px;
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    color: #0F172A !important;
    font-size: 0.74rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

body.dark-mode .biz-week-auto-gen-pill {
    background: rgba(0, 132, 255, 0.16) !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
    color: #BAE6FD !important;
    box-shadow: none !important;
}

.biz-queue-dot-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #64748B;
    animation: bizQueuePulse 1.8s ease-in-out infinite;
}

@keyframes bizQueuePulse {
    0%, 100% { transform: scale(0.8); opacity: 0.4; }
    50% { transform: scale(1.2); opacity: 1; background: #38BDF8; }
}

.biz-week-approve-btn {
    width: 100%;
    padding: 6px 10px;
    border-radius: 8px;
    background: #181A18;
    color: #FFFFFF;
    border: none;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.biz-week-approve-btn:hover {
    background: #000000;
    transform: translateY(-1px);
}

body.dark-mode .biz-week-approve-btn {
    background: #F8F2ED !important;
    color: #181A18 !important;
}

body.dark-mode .biz-week-approve-btn:hover {
    background: #FFFFFF !important;
}

.biz-week-card-btn-row {
    display: flex;
    gap: 4px;
}

.biz-week-card-btn-row .biz-canvas-btn {
    flex: 1;
    padding: 5px 6px;
    font-size: 0.68rem;
    text-align: center;
    justify-content: center;
}

/* ─── Instant Publish & Published Locked States ─── */
.biz-week-publish-instant-btn {
    width: 100%;
    padding: 7px 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0084FF 0%, #0A4D9B 100%);
    color: #FFFFFF !important;
    border: 1px solid rgba(56, 189, 248, 0.45);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 3px 12px rgba(0, 132, 255, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.biz-week-publish-instant-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #38BDF8 0%, #0084FF 100%);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.5);
    filter: brightness(1.08);
}

.biz-week-publish-instant-btn:active {
    transform: translateY(0);
}

.biz-week-publish-instant-btn.loading {
    opacity: 0.85;
    pointer-events: none;
    background: #334155 !important;
    box-shadow: none;
}

.biz-week-day-card.published-locked {
    border-color: rgba(59, 130, 246, 0.4) !important;
    background: linear-gradient(180deg, rgba(30, 58, 138, 0.08) 0%, rgba(15, 23, 42, 0.45) 100%) !important;
    position: relative;
}

.biz-week-time-slot.locked {
    cursor: not-allowed !important;
    opacity: 0.85;
    background: rgba(30, 58, 138, 0.15) !important;
    border: 1px solid rgba(59, 130, 246, 0.25) !important;
}

.biz-week-time-slot.locked:hover {
    background: rgba(30, 58, 138, 0.15) !important;
}

.biz-week-day-card.past-concluded {
    border-color: rgba(148, 163, 184, 0.22) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.28) 0%, rgba(15, 23, 42, 0.5) 100%) !important;
    opacity: 0.88;
}

.biz-week-day-card.past-concluded:hover {
    opacity: 1;
    border-color: rgba(148, 163, 184, 0.45) !important;
}

.biz-week-time-slot.passed {
    background: rgba(100, 116, 139, 0.12) !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
    color: #94A3B8;
}

.biz-week-time-slot.passed:hover {
    background: rgba(100, 116, 139, 0.2) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
}

.biz-week-time-slot.warning {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #94A3B8 !important;
}

.biz-week-time-slot.warning:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(1, 142, 239, 0.4) !important;
}

.biz-week-status-pill.past-day {
    background: rgba(100, 116, 139, 0.18);
    color: #94A3B8;
    border: 1px solid rgba(100, 116, 139, 0.35);
    font-weight: 600;
}

.biz-published-locked-banner {
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Inline Edit Controls in Day Modal */
.biz-inline-title-input {
    font-size: 1rem;
    font-weight: 700;
    width: 100%;
}

.biz-inline-outcome-textarea,
.biz-inline-prompt-textarea,
.biz-inline-caption-textarea {
    font-family: inherit;
    font-size: 0.82rem;
    line-height: 1.45;
    width: 100%;
    resize: vertical;
}

@media (max-width: 900px) {
    .biz-agile-blueprint-grid {
        grid-template-columns: 1fr;
    }
    .biz-mode-choice-cards {
        grid-template-columns: 1fr;
    }
}



/* ─── FULL HUB DAY STUDIO (NO POPUP) ─── */
#bizCalendarDayStudio {
    width: 100%;
    animation: fadeIn 0.25s ease;
    padding-bottom: 90px;
}

.biz-day-studio-header,
.biz-day-studio-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: #FFFFFF;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 18px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 20;
}

body.dark-mode .biz-day-studio-header,
body.dark-mode .biz-day-studio-nav-bar {
    background: #181A18 !important;
    border-color: rgba(248, 242, 237, 0.12) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3) !important;
}

.biz-back-to-week-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
}

.biz-day-shift-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.biz-day-shift-arrow {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #F8F9FA;
    color: #181A18;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.biz-day-shift-arrow:hover {
    background: #181A18;
    color: #FFFFFF;
    transform: scale(1.05);
}

body.dark-mode .biz-day-shift-arrow {
    background: #222422 !important;
    color: #F8F2ED !important;
    border-color: rgba(248, 242, 237, 0.15) !important;
}

body.dark-mode .biz-day-shift-arrow:hover {
    background: #FFFFFF !important;
    color: #181A18 !important;
}

.biz-day-shift-info {
    text-align: center;
}

.biz-day-shift-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2px;
}

.biz-day-shift-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark, #181A18);
}

body.dark-mode .biz-day-shift-title {
    color: #F8F2ED !important;
}

.biz-day-shift-pill {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: rgba(24, 26, 24, 0.08);
    color: #181A18;
    border: 1px solid rgba(24, 26, 24, 0.12);
}

body.dark-mode .biz-day-shift-pill {
    background: rgba(248, 242, 237, 0.1) !important;
    color: #F8F2ED !important;
    border-color: rgba(248, 242, 237, 0.18) !important;
}

.biz-day-shift-sub {
    font-size: 0.76rem;
    color: #64748B;
}

.biz-day-studio-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.biz-day-status-pill {
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(24, 26, 24, 0.08);
    color: #181A18;
    border: 1px solid rgba(24, 26, 24, 0.14);
}

body.dark-mode .biz-day-status-pill {
    background: rgba(248, 242, 237, 0.1);
    color: #F8F2ED;
    border-color: rgba(248, 242, 237, 0.18);
}

/* Hide Company Details / Brand Drawer inside Day Content Studio */
body.biz-in-day-studio #bizBrandDrawer,
.biz-day-studio-active #bizBrandDrawer {
    display: none !important;
}

/* Studio Workspace: Default 1-column stack with Created Visual on TOP, 2-column in fullscreen */
.biz-day-studio-workspace {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 18px;
    width: 100%;
}

.biz-day-studio-col-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
    order: -1; /* Created Visual & Studio Canvas on TOP */
}

.biz-day-studio-col-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
    order: 1;
}

body.business-hub-fullscreen .biz-day-studio-workspace {
    display: grid !important;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr) !important;
}

body.business-hub-fullscreen .biz-day-studio-col-right {
    order: 1 !important;
}

body.business-hub-fullscreen .biz-day-studio-col-left {
    order: 2 !important;
}

.biz-day-field-group {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 16px 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

body.dark-mode .biz-day-field-group {
    background: #181A18 !important;
    border-color: rgba(248, 242, 237, 0.1) !important;
}

.biz-day-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.biz-field-helper-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6366F1;
    background: rgba(99, 102, 241, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.biz-day-field-row {
    display: flex;
    gap: 14px;
}

.biz-studio-visual-card {
    background: #FFFFFF;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.dark-mode .biz-studio-visual-card {
    background: #181A18 !important;
    border-color: rgba(248, 242, 237, 0.1) !important;
}

.biz-visual-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.biz-visual-brand-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
}

.biz-day-studio-canvas {
    min-height: 280px;
    border-radius: 14px;
    background: #0E100F;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
}

.biz-day-studio-canvas img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
    border-radius: 12px;
}

.biz-meta-preview-card {
    margin-top: 14px;
    background: #F8F9FA;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.dark-mode .biz-meta-preview-card {
    background: #121413 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.biz-meta-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.dark-mode .biz-meta-preview-header {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.biz-meta-tabs {
    display: flex;
    gap: 6px;
}

.biz-meta-tab-btn {
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    color: #64748B;
    transition: all 0.15s ease;
}

.biz-meta-tab-btn.active {
    background: #FFFFFF;
    color: #181A18;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.dark-mode .biz-meta-tab-btn.active {
    background: #252826 !important;
    color: #F8F2ED !important;
}

.biz-meta-sync-indicator {
    font-size: 0.72rem;
    color: #018EEF !important;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

body.dark-mode .biz-meta-sync-indicator {
    color: #38BDF8 !important;
}

.biz-meta-preview-body {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-dark, #181A18);
}

body.dark-mode .biz-meta-preview-body {
    color: #E2E8F0 !important;
}

.biz-day-studio-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.biz-card-reel-widget,
.biz-card-carousel-widget {
    background: #F8FAFC !important;
    border: 1px dashed rgba(2, 132, 199, 0.35) !important;
    color: #1E293B !important;
}

body.dark-mode .biz-card-reel-widget,
body.dark-mode .biz-card-carousel-widget {
    background: rgba(15, 23, 42, 0.75) !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
    color: #F8FAFC !important;
}

.biz-card-reel-widget .biz-preview-status-sub,
.biz-card-carousel-widget .biz-preview-status-sub {
    color: #1E293B !important;
}

body.dark-mode .biz-card-reel-widget .biz-preview-status-sub,
body.dark-mode .biz-card-carousel-widget .biz-preview-status-sub {
    color: #F8FAFC !important;
}

.biz-footer-nav-group {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ==========================================================================
   BUTLER V3 - REDESIGNED SOCIAL ACCOUNTS & POSTER CREATION STUDIO
   ========================================================================== */

/* ─── Social Publishing Accounts Card (Adaptive Light & Dark Theme) ─── */
.biz-social-accounts-card {
    background: #FFFFFF !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
}

.biz-social-accounts-card .biz-setup-card-title {
    color: #0F172A;
    font-size: 0.88rem;
    font-weight: 700;
}

.biz-setup-card-sub {
    font-size: 0.78rem;
    color: #64748B;
    margin: 4px 0 0 0;
    line-height: 1.45;
}

.biz-badge-recommended {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 9999px;
    background: rgba(1, 142, 239, 0.1);
    border: 1px solid rgba(1, 142, 239, 0.25);
    color: #0284C7;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.biz-social-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    margin-bottom: 0;
    min-height: 52px;
    box-sizing: border-box;
    overflow: hidden !important;
    position: relative;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.biz-social-row:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
}

.biz-social-row.platform-connected {
    border-color: rgba(2, 132, 199, 0.4);
    background: rgba(2, 132, 199, 0.04);
}

.biz-social-info {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.biz-social-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    flex-shrink: 0;
}

.biz-social-names-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.biz-social-name {
    font-size: 0.76rem;
    font-weight: 700;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.biz-social-handle {
    font-size: 0.67rem;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.biz-social-handle.is-connected {
    color: #0284C7;
    font-weight: 600;
}

.biz-social-actions-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

/* When platform is connected, stack Switch & Disconnect buttons cleanly vertically */
.biz-social-row.platform-connected .biz-social-actions-wrap,
.biz-social-tile.platform-connected .biz-social-actions-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
}

.biz-switch-acc-row-btn {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #475569 !important;
    padding: 2px 7px !important;
    border-radius: 5px !important;
    font-size: 0.64rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    line-height: 1.2 !important;
    transition: all 0.15s ease;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.biz-switch-acc-row-btn:hover {
    background: #F1F5F9 !important;
    border-color: #94A3B8 !important;
    color: #0F172A !important;
}

.biz-connect-pill-btn {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #CBD5E1;
    background: #0084FF;
    color: #FFFFFF;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.biz-connect-pill-btn:hover {
    background: #0070D6;
    border-color: #0070D6;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 132, 255, 0.25);
}

.biz-connect-pill-btn.is-connected {
    padding: 2px 7px !important;
    border-radius: 5px !important;
    font-size: 0.64rem !important;
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #DC2626 !important;
    box-shadow: none !important;
    line-height: 1.2 !important;
}

.biz-connect-pill-btn.is-connected:hover {
    background: #EF4444 !important;
    border-color: #EF4444 !important;
    color: #FFFFFF !important;
}

.biz-social-row.locked-channel {
    background: #F8FAFC;
    opacity: 0.75;
    border: 1px dashed #E2E8F0;
}

.biz-lock-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 9999px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    color: #64748B;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.biz-social-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #E2E8F0;
}

.biz-social-help-hint {
    font-size: 0.72rem;
    color: #64748B;
}

.biz-switch-acc-btn {
    background: none;
    border: none;
    color: #0284C7;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.15s ease;
}

.biz-switch-acc-btn:hover {
    color: #0369A1;
}

/* ─── Social Publishing Accounts Card (Dark Mode Overrides) ─── */
body.dark-mode .biz-social-accounts-card {
    background: rgba(24, 26, 24, 0.6) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}

body.dark-mode .biz-social-accounts-card .biz-setup-card-title {
    color: #F8F2ED;
}

body.dark-mode .biz-setup-card-sub {
    color: #94A3B8;
}

body.dark-mode .biz-badge-recommended {
    background: rgba(1, 142, 239, 0.15);
    border: 1px solid rgba(1, 142, 239, 0.3);
    color: #38BDF8;
}

body.dark-mode .biz-social-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

body.dark-mode .biz-social-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .biz-social-row.platform-connected {
    border-color: rgba(0, 132, 255, 0.25);
    background: rgba(0, 132, 255, 0.04);
}

body.dark-mode .biz-social-name,
body.dark-mode .biz-social-tile .biz-social-name {
    color: #FFFFFF;
}

body.dark-mode .biz-social-handle,
body.dark-mode .biz-social-tile .biz-social-handle {
    color: #94A3B8;
}

body.dark-mode .biz-social-handle.is-connected,
body.dark-mode .biz-social-tile .biz-social-handle.is-connected {
    color: #38BDF8;
}

body.dark-mode .biz-switch-acc-row-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #CBD5E1 !important;
}

body.dark-mode .biz-switch-acc-row-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    color: #FFFFFF !important;
}

body.dark-mode .biz-connect-pill-btn {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #F1F5F9;
    box-shadow: none;
}

body.dark-mode .biz-connect-pill-btn:hover {
    background: rgba(0, 132, 255, 0.16);
    border-color: #0084FF;
    color: #FFFFFF;
}

body.dark-mode .biz-connect-pill-btn.is-connected {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.35);
    color: #F87171;
}

body.dark-mode .biz-connect-pill-btn.is-connected:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #EF4444;
    color: #FFFFFF;
}

body.dark-mode .biz-social-row.locked-channel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.08);
}

body.dark-mode .biz-lock-badge {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #94A3B8;
}

/* Hero Instagram Card & Locked Strip (Dark Mode Overrides) */
body.dark-mode .biz-social-hero-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .biz-social-hero-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .biz-social-hero-card.is-connected {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(1, 142, 239, 0.35);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

body.dark-mode .biz-social-hero-platform {
    color: #F8FAFC;
}

body.dark-mode .biz-social-hero-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #CBD5E1;
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .biz-social-status-pill.not-connected {
    background: rgba(255, 255, 255, 0.06);
    color: #94A3B8;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .biz-social-hero-handle {
    color: #38BDF8;
}

body.dark-mode .biz-social-hero-card:not(.is-connected) .biz-social-hero-handle {
    color: #94A3B8;
}

body.dark-mode .biz-hero-switch-btn {
    background: rgba(255, 255, 255, 0.06);
    color: #E2E8F0;
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .biz-hero-switch-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.25);
}

body.dark-mode .biz-hero-disconnect-btn {
    background: rgba(225, 29, 72, 0.12);
    color: #FB7185;
    border-color: rgba(225, 29, 72, 0.3);
}

body.dark-mode .biz-hero-disconnect-btn:hover {
    background: rgba(225, 29, 72, 0.2);
    color: #FDA4AF;
}

body.dark-mode .biz-social-locked-section {
    border-top-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .biz-social-locked-chip {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .biz-social-locked-chip:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .biz-social-chip-name {
    color: #E2E8F0;
}

body.dark-mode .biz-chip-lock-tag {
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

body.dark-mode .biz-social-footer-actions {
    border-top-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .biz-social-help-hint {
    color: #94A3B8;
}

body.dark-mode .biz-switch-acc-btn {
    color: #38BDF8;
}

/* ─── Poster Creation Studio Header ─── */
.biz-poster-stage-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 20px;
    flex-wrap: wrap;
}

.biz-header-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.biz-pro-tag {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 132, 255, 0.15), rgba(99, 102, 241, 0.18));
    border: 1px solid rgba(0, 132, 255, 0.3);
    color: #38BDF8;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.biz-poster-brandkit-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 8px 14px;
    border-radius: 14px;
}

.biz-brand-thumb-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.biz-brand-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.biz-brand-mini-info {
    display: flex;
    flex-direction: column;
}

.biz-brand-mini-name {
    font-size: 0.82rem;
    color: #FFFFFF;
    font-weight: 600;
}

.biz-brand-mini-cat {
    font-size: 0.7rem;
    color: #94A3B8;
}

.biz-brand-mini-swatches {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 4px;
}

.biz-mini-swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.biz-edit-kit-link {
    background: transparent;
    border: none;
    color: #38BDF8;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 2px 4px;
}

.biz-edit-kit-link:hover {
    color: #60A5FA;
}

/* ─── Poster Studio Layout (2-Column) ─── */
.biz-poster-studio-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 960px) {
    .biz-poster-studio-layout {
        grid-template-columns: 1fr;
    }
}

.biz-poster-form-col {
    background: rgba(24, 26, 24, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.biz-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.biz-form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.biz-form-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #E2E8F0;
}

.biz-badge-required {
    font-size: 0.65rem;
    color: #EF4444;
    font-weight: 700;
    text-transform: uppercase;
}

.biz-optional-tag {
    font-size: 0.72rem;
    color: #64748B;
    margin-left: 4px;
    font-weight: 400;
}

.biz-studio-textarea {
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 0.84rem;
    padding: 10px 12px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}

.biz-studio-textarea:focus {
    outline: none;
    border-color: #0084FF;
    box-shadow: 0 0 0 2px rgba(0, 132, 255, 0.2);
}

.biz-poster-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.biz-poster-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94A3B8;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.16s ease;
}

.biz-poster-chip:hover {
    background: rgba(0, 132, 255, 0.12);
    border-color: rgba(0, 132, 255, 0.4);
    color: #FFFFFF;
}

/* Ratio Selector */
.biz-ratio-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.biz-ratio-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #CBD5E1;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.biz-ratio-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

.biz-ratio-btn.active {
    background: rgba(0, 132, 255, 0.18);
    border-color: #0084FF;
    color: #FFFFFF;
    box-shadow: 0 0 4px rgba(0, 132, 255, 0.25);
}

/* Language Selector */
.biz-select-wrap {
    position: relative;
    width: 100%;
}

.biz-studio-select {
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 0.84rem;
    padding: 9px 12px;
    font-family: inherit;
    cursor: pointer;
}

.biz-studio-select:focus {
    outline: none;
    border-color: #0084FF;
}

/* Product Photos Dropzone */
.biz-poster-dropzone {
    border: 1px dashed rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.biz-poster-dropzone:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: #0084FF;
}

.biz-dropzone-prompt {
    font-size: 0.82rem;
    font-weight: 600;
    color: #E2E8F0;
}

.biz-dropzone-sub {
    font-size: 0.7rem;
    color: #64748B;
}

.biz-thumbs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.biz-thumb-item {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #000;
}

.biz-thumb-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.biz-thumb-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #FFF;
    border: none;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Toggles Row */
.biz-toggles-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.biz-toggle-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.biz-toggle-item input[type="checkbox"] {
    display: none;
}

.biz-toggle-custom {
    position: relative;
    width: 34px;
    height: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.2s;
    flex-shrink: 0;
}

.biz-toggle-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #FFFFFF;
    transition: transform 0.2s;
}

.biz-toggle-item input[type="checkbox"]:checked + .biz-toggle-custom {
    background: #0084FF;
}

.biz-toggle-item input[type="checkbox"]:checked + .biz-toggle-custom::after {
    transform: translateX(16px);
}

.biz-toggle-label {
    font-size: 0.78rem;
    color: #CBD5E1;
}

.biz-poster-generate-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.88rem;
    font-weight: 700;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #0084FF, #0A4D9B);
    box-shadow: 0 4px 16px rgba(0, 132, 255, 0.3);
    transition: all 0.2s;
}

.biz-poster-generate-btn:hover {
    box-shadow: 0 6px 22px rgba(0, 132, 255, 0.45);
    transform: translateY(-1px);
}

/* ─── Right Column: Canvas Card ─── */
.biz-canvas-card {
    background: rgba(24, 26, 24, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 480px;
    justify-content: center;
}

.biz-canvas-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    gap: 12px;
}

.biz-canvas-placeholder-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.biz-canvas-placeholder-title {
    font-size: 1.1rem;
    color: #FFFFFF;
    margin: 0;
    font-weight: 700;
}

.biz-canvas-placeholder-desc {
    font-size: 0.82rem;
    color: #94A3B8;
    max-width: 360px;
    line-height: 1.5;
    margin: 0;
}

.biz-canvas-specs-badges {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.biz-canvas-specs-badges span {
    font-size: 0.7rem;
    color: #64748B;
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Loading View */
.biz-canvas-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    gap: 12px;
}

.biz-loading-pulse-ring {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(0, 132, 255, 0.2);
    border-top-color: #0084FF;
    animation: bizSpin 0.9s linear infinite;
}

@keyframes bizSpin {
    to { transform: rotate(360deg); }
}

.biz-loading-status-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
}

.biz-loading-sub {
    font-size: 0.76rem;
    color: #94A3B8;
}

.biz-loading-timer {
    font-size: 0.88rem;
    font-weight: 700;
    color: #38BDF8;
    background: rgba(0, 132, 255, 0.12);
    padding: 2px 10px;
    border-radius: 12px;
}

/* Display Wrap */
.biz-canvas-display-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

.biz-poster-frame {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.biz-poster-rendered-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Caption Container */
.biz-caption-container {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px;
}

.biz-caption-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.biz-caption-title {
    font-size: 0.74rem;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.biz-copy-caption-btn {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #CBD5E1;
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.16s ease;
}

.biz-copy-caption-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

/* ─── Stage 3: Recommended Prime Slots, Timing & Captions ─── */
.biz-slot-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.biz-slot-card {
    background: #F8FAFC;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 12px 14px;
    transition: all 0.2s ease;
}

body.dark-mode .biz-slot-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.biz-slot-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.biz-slot-time {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0F172A;
}

body.dark-mode .biz-slot-time {
    color: #F8FAFC;
}

.biz-slot-desc {
    font-size: 0.74rem;
    color: #64748B;
    margin: 0;
    line-height: 1.4;
}

body.dark-mode .biz-slot-desc {
    color: #94A3B8;
}

/* Platform Tuned Copy Box */
.biz-platform-caption-box {
    background: #F8FAFC;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 10px;
}

body.dark-mode .biz-platform-caption-box {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.biz-caption-text {
    font-size: 0.78rem;
    color: #1E293B;
    line-height: 1.45;
    margin: 0 0 10px 0;
    white-space: pre-line;
}

body.dark-mode .biz-caption-text {
    color: #E2E8F0;
}

.biz-hashtag-pills,
.biz-caption-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.biz-hashtag-pills span,
.biz-caption-tags span {
    font-size: 0.72rem;
    font-weight: 600;
    color: #2563EB;
    background: #EFF6FF;
    padding: 3px 8px;
    border-radius: 6px;
}

body.dark-mode .biz-hashtag-pills span,
body.dark-mode .biz-caption-tags span {
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.1);
}

.biz-tab-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.biz-tab-btn {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: transparent;
    color: #64748B;
    cursor: pointer;
    transition: all 0.18s ease;
}

body.dark-mode .biz-tab-btn {
    border-color: rgba(255, 255, 255, 0.08);
    color: #94A3B8;
}

.biz-tab-btn.active {
    background: var(--text-dark, #181A18);
    color: #FFFFFF;
    border-color: transparent;
}

body.dark-mode .biz-tab-btn.active {
    background: #F8F2ED;
    color: #181A18;
}

.biz-heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 0.7rem;
    color: #64748B;
}

body.dark-mode .biz-heatmap-legend {
    color: #94A3B8;
}

.biz-legend-gradient {
    flex: 1;
    height: 6px;
    margin: 0 10px;
    border-radius: 3px;
    background: linear-gradient(90deg, #E2E8F0 0%, #38BDF8 60%, #018EEF 100%);
}

body.dark-mode .biz-legend-gradient {
    background: linear-gradient(90deg, #334155 0%, #0284C7 60%, #018EEF 100%);
}

/* The 4 Action Buttons Grid */
.biz-poster-actions-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 6px;
}

@media (max-width: 640px) {
    .biz-poster-actions-row {
        grid-template-columns: 1fr 1fr;
    }
}

.biz-poster-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 8px;
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    border: none;
    font-family: inherit;
    text-align: center;
}

.biz-poster-action-btn.instant-btn {
    background: #018EEF;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(1, 142, 239, 0.3);
}

.biz-poster-action-btn.instant-btn:hover {
    background: #0070C0;
    transform: translateY(-1px);
}

.biz-poster-action-btn.schedule-btn {
    background: rgba(1, 142, 239, 0.15);
    border: 1px solid rgba(1, 142, 239, 0.35);
    color: #38BDF8;
}

.biz-poster-action-btn.schedule-btn:hover {
    background: rgba(1, 142, 239, 0.25);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.biz-poster-action-btn.regen-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #E2E8F0;
}

.biz-poster-action-btn.regen-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.biz-poster-action-btn.download-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.biz-poster-action-btn.download-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.biz-publish-feedback-banner {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    line-height: 1.4;
}

.biz-publish-feedback-banner.success {
    background: rgba(1, 142, 239, 0.12);
    border: 1px solid rgba(1, 142, 239, 0.3);
    color: #018EEF;
}
body.dark-mode .biz-publish-feedback-banner.success {
    color: #38BDF8 !important;
}

.biz-publish-feedback-banner.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

/* ─── Schedule Post Modal ─── */
.biz-schedule-modal-card {
    background: #181A18;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    width: 100%;
    max-width: 460px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 10001;
}

.biz-schedule-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.biz-sched-header-title {
    display: flex;
    align-items: center;
}

.biz-sched-header-title h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #FFFFFF;
    font-weight: 700;
}

.biz-sched-desc {
    font-size: 0.78rem;
    color: #94A3B8;
    margin: 0 0 12px 0;
    line-height: 1.45;
}

.biz-sched-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.biz-sched-channels-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.biz-sched-channel-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #E2E8F0;
}

.biz-schedule-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

/* ─── 7-Day Sprint Card Schedule Editing & Test Dispatch Controls ─── */
.biz-week-time-slot.editable {
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.16);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
}

.biz-week-time-slot.editable:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38BDF8;
}

.biz-time-slot-text {
    font-weight: 600;
}

.biz-time-edit-hint {
    font-size: 0.62rem;
    opacity: 0.6;
    margin-left: 2px;
}

.biz-week-time-slot.editable:hover .biz-time-edit-hint {
    opacity: 1;
}

.biz-week-card-btn-row {
    display: flex;
    gap: 6px;
    align-items: center;
    width: 100%;
}

.biz-week-test-btn {
    padding: 5px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 6px;
    background: rgba(1, 142, 239, 0.12);
    border: 1px solid rgba(1, 142, 239, 0.35);
    color: #0284C7;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

body.dark-mode .biz-week-test-btn {
    color: #38BDF8 !important;
}

.biz-week-test-btn:hover {
    background: rgba(1, 142, 239, 0.22);
    border-color: #018EEF;
    color: #018EEF;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(1, 142, 239, 0.2);
}

body.dark-mode .biz-week-test-btn:hover {
    color: #FFFFFF !important;
}

.biz-test-dispatch-btn {
    padding: 6px 14px;
    font-size: 0.76rem;
    font-weight: 700;
    border-radius: 8px;
    background: linear-gradient(135deg, #018EEF, #0284C7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(1, 142, 239, 0.25);
    transition: all 0.2s ease;
}

.biz-test-dispatch-btn:hover {
    background: linear-gradient(135deg, #0284C7, #0070C0);
    box-shadow: 0 4px 12px rgba(1, 142, 239, 0.35);
    transform: translateY(-1px);
}

/* Day Studio Schedule Timing Editor */
.biz-sched-editor-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 12px 14px;
}

body.dark-mode .biz-sched-editor-box {
    background: rgba(15, 23, 42, 0.45) !important;
    border-color: rgba(248, 242, 237, 0.1) !important;
}

.biz-sched-inputs-grid {
    display: flex;
    gap: 8px;
    width: 100%;
}

.biz-sched-input-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.biz-sched-sublabel {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748B;
    letter-spacing: 0.5px;
}

body.dark-mode .biz-sched-sublabel {
    color: #94A3B8 !important;
}

.biz-sched-chips-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.biz-sched-chips-lead {
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748B;
}

body.dark-mode .biz-sched-chips-lead {
    color: #94A3B8 !important;
}

.biz-sched-chip {
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 6px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: var(--font-chat);
}

.biz-sched-chip:hover {
    background: #EFF6FF;
    border-color: #3B82F6;
    color: #1D4ED8;
}

body.dark-mode .biz-sched-chip {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #E2E8F0 !important;
}

body.dark-mode .biz-sched-chip:hover {
    background: rgba(56, 189, 248, 0.18) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #38BDF8 !important;
}

.biz-sched-chip.test-trigger-chip,
.biz-quick-chip.test-trigger {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.15));
    border-color: rgba(245, 158, 11, 0.35);
    color: #FBBF24;
    font-weight: 700;
}

.biz-sched-chip.test-trigger-chip:hover,
.biz-quick-chip.test-trigger:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(239, 68, 68, 0.3));
    border-color: #F59E0B;
    color: #FDE68A;
}

/* Quick Schedule Popover */
.biz-quick-sched-popover {
    position: fixed;
    z-index: 99999;
    width: 290px;
    background: #0F172A;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 12px;
    animation: bizPopoverIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bizPopoverIn {
    from { opacity: 0; transform: translateY(6px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.biz-quick-sched-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.biz-quick-sched-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #F8FAFC;
    display: flex;
    align-items: center;
    gap: 4px;
}

.biz-quick-sched-close {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.biz-quick-sched-close:hover {
    color: #FFFFFF;
}

.biz-quick-sched-presets {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.biz-quick-chip {
    width: 100%;
    text-align: left;
    padding: 6px 10px;
    font-size: 0.74rem;
    font-weight: 600;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #E2E8F0;
    cursor: pointer;
    transition: all 0.15s ease;
}

.biz-quick-chip:hover {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38BDF8;
    padding-left: 12px;
}

/* Schedule Dispatch Verification Terminal */
.biz-test-modal-summary {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.biz-test-terminal-box {
    background: #090D16;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    font-family: 'SF Mono', 'Fira Code', Menlo, monospace;
}

.biz-test-terminal-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.biz-terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.biz-terminal-dot.red { background: #EF4444; }
.biz-terminal-dot.yellow { background: #F59E0B; }
.biz-terminal-dot.green { background: #018EEF; }

.biz-terminal-title {
    font-size: 0.68rem;
    color: #64748B;
    margin-left: 6px;
    font-family: inherit;
}

.biz-test-terminal-logs {
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.73rem;
    line-height: 1.6;
    color: #A7F3D0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.biz-test-terminal-log-line {
    word-break: break-word;
}
.biz-test-terminal-log-line.info { color: #94A3B8; }
.biz-test-terminal-log-line.success { color: #38BDF8; font-weight: 600; }
.biz-test-terminal-log-line.warn { color: #FBBF24; }
.biz-test-terminal-log-line.error { color: #F87171; font-weight: 700; }

.biz-test-result-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.06));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.78rem;
    color: #E2E8F0;
}

/* ─── Stage 1 Setup Required Lock Hero ─── */
.biz-setup-required-banner {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

body:not(.dark-mode) .biz-setup-required-banner {
    background: linear-gradient(135deg, #F8FAFC, #EDF2F7);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.biz-setup-req-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #38BDF8;
}

.biz-setup-req-body h4 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #F8FAFC);
}

body:not(.dark-mode) .biz-setup-req-body h4 {
    color: #0F172A;
}

.biz-setup-req-body p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary, #94A3B8);
    max-width: 540px;
    line-height: 1.5;
}

.biz-setup-req-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #38BDF8;
}

.biz-setup-req-steps span {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    padding: 3px 10px;
    border-radius: 999px;
}

/* ─── Deep Strategic Synthesis Overlay ─── */
.biz-synthesis-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(11, 15, 25, 0.88);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease;
}

.biz-synthesis-box {
    background: #0F172A;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    padding: 36px 32px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(14, 165, 233, 0.15);
}

body:not(.dark-mode) .biz-synthesis-box {
    background: #FFFFFF;
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 30px rgba(14, 165, 233, 0.1);
}

.biz-synthesis-spinner {
    width: 44px;
    height: 44px;
    border: 3.5px solid rgba(56, 189, 248, 0.2);
    border-top-color: #38BDF8;
    border-radius: 50%;
    margin: 0 auto 18px auto;
    animation: spin 0.85s linear infinite;
}

.biz-synthesis-box h3 {
    margin: 0 0 6px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #F8FAFC;
}

body:not(.dark-mode) .biz-synthesis-box h3 {
    color: #0F172A;
}

.biz-synthesis-box p {
    margin: 0 0 22px 0;
    font-size: 0.85rem;
    color: #94A3B8;
}

.biz-synthesis-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 18px;
}

body:not(.dark-mode) .biz-synthesis-steps {
    background: #F8FAFC;
    border-color: #E2E8F0;
}

.biz-synth-step {
    font-size: 0.82rem;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.biz-synth-step.active {
    color: #38BDF8;
    font-weight: 600;
}

.biz-synth-step.done {
    color: #018EEF;
    font-weight: 600;
}
body.dark-mode .biz-synth-step.done {
    color: #38BDF8 !important;
}

/* ─── Intelligent Timing Insight Box ─── */
.biz-timing-insight-box {
    margin-top: 8px;
    padding: 10px 14px;
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #0284C7;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

body.dark-mode .biz-timing-insight-box {
    background: rgba(56, 189, 248, 0.08) !important;
    border-color: rgba(56, 189, 248, 0.25) !important;
    color: #7DD3FC !important;
}

.biz-timing-insight-icon {
    font-size: 0.95rem;
    line-height: 1;
    margin-top: 1px;
    flex-shrink: 0;
}

.biz-timing-insight-text {
    flex: 1;
}

/* ─── Dynamic Aspect Ratio Containers for Day Studio Visual Canvas ─── */
.biz-day-studio-canvas {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #0F172A;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: aspect-ratio 0.25s ease, max-height 0.25s ease;
}

.biz-day-studio-canvas.aspect-4-5 {
    aspect-ratio: 4 / 5 !important;
    max-height: 520px;
}

.biz-day-studio-canvas.aspect-1-1 {
    aspect-ratio: 1 / 1 !important;
    max-height: 480px;
}

.biz-day-studio-canvas.aspect-9-16 {
    aspect-ratio: 9 / 16 !important;
    max-height: 580px;
}

.biz-day-studio-canvas.aspect-16-9 {
    aspect-ratio: 16 / 9 !important;
    max-height: 380px;
}

/* Format and Language Indicator Pills */
.biz-format-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.12);
    color: #6366F1;
    border: 1px solid rgba(99, 102, 241, 0.25);
    white-space: nowrap;
}

.biz-lang-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.12);
    color: #D97706;
    border: 1px solid rgba(245, 158, 11, 0.25);
    white-space: nowrap;
}

body.dark-mode .biz-lang-badge-pill {
    background: rgba(245, 158, 11, 0.16) !important;
    color: #FBBF24 !important;
}

@keyframes cardUpdatePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7); }
    50% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(2, 132, 199, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.biz-week-day-card.just-updated {
    animation: cardUpdatePulse 1.2s ease-out 2;
    border-color: #0284C7 !important;
}

.chat-schedule-synced-card {
    margin-top: 10px;
    background: rgba(2, 132, 199, 0.06);
    border: 1px solid rgba(2, 132, 199, 0.25);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
}

body.dark-mode .chat-schedule-synced-card {
    background: rgba(2, 132, 199, 0.12);
    border-color: rgba(2, 132, 199, 0.4);
}

.chat-schedule-synced-card .synced-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.chat-schedule-synced-card .synced-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #0284C7;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.chat-schedule-synced-card .synced-card-date {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748B;
}

body.dark-mode .chat-schedule-synced-card .synced-card-date {
    color: #94A3B8;
}

.chat-schedule-synced-card .synced-card-body {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.chat-schedule-synced-card .synced-card-media > .synced-card-body ~ .synced-card-body {
    display: none !important;
}

.chat-schedule-synced-card .synced-card-media > .synced-card-media {
    display: contents !important;
}

.chat-schedule-synced-card .synced-card-title {
    font-size: 0.86rem;
    font-weight: 600;
    margin: 0;
    color: inherit;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: break-word;
}

.chat-schedule-synced-card .synced-card-motive {
    font-size: 0.72rem;
    opacity: 0.8;
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.chat-schedule-synced-card .btn-synced-view-hub {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: #0284C7;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.chat-schedule-synced-card .synced-card-media {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 4px 0;
}

.chat-schedule-synced-card .synced-card-image-wrap {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 9px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    background: #0F172A;
}

.chat-schedule-synced-card .synced-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.chat-schedule-synced-card .synced-card-image-wrap:hover .synced-card-thumb {
    transform: scale(1.05);
}

.chat-schedule-synced-card .synced-card-4k-tag {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.75);
    color: #38BDF8;
    font-size: 0.52rem;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 3px;
    letter-spacing: 0.04em;
}

.chat-schedule-synced-card .synced-card-synthesizing {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    color: #0284C7;
    font-weight: 600;
    padding: 6px 10px;
    background: rgba(2, 132, 199, 0.08);
    border-radius: 8px;
}

.chat-schedule-synced-card .synced-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0284C7;
    animation: syncedPulse 1.4s infinite ease-in-out;
}

@keyframes syncedPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.2); }
}

.chat-schedule-synced-card .synced-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* Rich Creative Showcase Card (When user says "show me what u have created") */
.chat-creative-showcase-card {
    margin-top: 10px;
    background: #ffffff;
    border: 1px solid rgba(24, 26, 24, 0.12);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    max-width: 520px;
}

body.dark-mode .chat-creative-showcase-card {
    background: #181A18;
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.chat-creative-showcase-card .showcase-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.chat-creative-showcase-card .showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #111315;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

body.dark-mode .chat-creative-showcase-card .showcase-badge {
    background: #ffffff;
    color: #111315;
}

.chat-creative-showcase-card .showcase-date {
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748B;
}

body.dark-mode .chat-creative-showcase-card .showcase-date {
    color: #94A3B8;
}

.chat-creative-showcase-card .showcase-media-wrap {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #0B0F17;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

.chat-creative-showcase-card .showcase-poster-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease;
}

.chat-creative-showcase-card .showcase-media-wrap:hover .showcase-poster-img {
    transform: scale(1.02);
}

.chat-creative-showcase-card .showcase-resolution-pill {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(4px);
    color: #38BDF8;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.03em;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.chat-creative-showcase-card .showcase-title {
    font-size: 0.98rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
    color: inherit;
}

.chat-creative-showcase-card .showcase-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.chat-creative-showcase-card .showcase-slot {
    font-size: 0.74rem;
    font-weight: 600;
    color: #0284C7;
    background: rgba(2, 132, 199, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
}

.chat-creative-showcase-card .showcase-motive-pill {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.85;
    background: rgba(100, 116, 139, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
}

.chat-creative-showcase-card .showcase-insight {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #475569;
    background: rgba(0, 0, 0, 0.025);
    border-left: 3px solid #0284C7;
    padding: 6px 10px;
    border-radius: 0 6px 6px 0;
    margin-top: 6px;
}

body.dark-mode .chat-creative-showcase-card .showcase-insight {
    color: #CBD5E1;
    background: rgba(255, 255, 255, 0.04);
}

.chat-creative-showcase-card .showcase-caption-box {
    margin-top: 8px;
    background: rgba(0, 0, 0, 0.025);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: 10px;
    max-height: 160px;
    overflow-y: auto;
}

body.dark-mode .chat-creative-showcase-card .showcase-caption-box {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.chat-creative-showcase-card .showcase-caption-header {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748B;
    margin-bottom: 6px;
}

.chat-creative-showcase-card .showcase-caption-text {
    font-size: 0.78rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    color: inherit;
    opacity: 0.9;
}

.chat-creative-showcase-card .showcase-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.chat-creative-showcase-card .showcase-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    border: none;
}

.chat-creative-showcase-card .showcase-action-btn.primary {
    background: #111315;
    color: #ffffff;
}

body.dark-mode .chat-creative-showcase-card .showcase-action-btn.primary {
    background: #ffffff;
    color: #111315;
}

.chat-creative-showcase-card .showcase-action-btn.secondary {
    background: rgba(0, 0, 0, 0.05);
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .chat-creative-showcase-card .showcase-action-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.chat-creative-showcase-card .showcase-action-btn:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

/* ─── Direct In-Chat Image Generation & Brainstorming Card ─── */
.chat-direct-image-card {
    margin-top: 10px;
    background: rgba(2, 132, 199, 0.05);
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    max-width: 440px;
    transition: all 0.2s ease;
}

body.dark-mode .chat-direct-image-card {
    background: rgba(2, 132, 199, 0.1);
    border-color: rgba(2, 132, 199, 0.35);
}

.chat-direct-image-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
}

.chat-direct-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(2, 132, 199, 0.2);
    border-top-color: #0284C7;
    border-radius: 50%;
    animation: chatDirectSpin 0.75s linear infinite;
    flex-shrink: 0;
}

@keyframes chatDirectSpin {
    to { transform: rotate(360deg); }
}

.chat-direct-loading-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-direct-loading-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #0284C7;
}

body.dark-mode .chat-direct-loading-title {
    color: #38BDF8;
}

.chat-direct-loading-sub {
    font-size: 0.74rem;
    color: #64748B;
}

body.dark-mode .chat-direct-loading-sub {
    color: #94A3B8;
}

.chat-direct-image-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-direct-img-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    background: #0B0F17;
}

.chat-direct-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 380px;
    transition: transform 0.25s ease;
}

.chat-direct-img-wrap:hover .chat-direct-img {
    transform: scale(1.02);
}

.chat-direct-4k-tag {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 0.64rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.chat-direct-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-direct-title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: inherit;
    line-height: 1.3;
}

.chat-direct-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.btn-chat-direct-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn-chat-direct-action.primary {
    background: #0284C7;
    color: #ffffff;
}

.btn-chat-direct-action.secondary {
    background: rgba(0, 0, 0, 0.06);
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .btn-chat-direct-action.secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: inherit;
}

.btn-chat-direct-action:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

/* ─── Direct In-Chat 5-Slide Pro Carousel Deck Card ─── */
.chat-direct-carousel-card {
    margin-top: 12px;
    background: #0D1522;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
    max-width: 460px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    color: #F8FAFC;
    transition: all 0.2s ease;
}

.chat-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.chat-carousel-header-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.chat-carousel-badge {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.12);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.chat-carousel-title {
    margin: 4px 0 0;
    font-size: 0.94rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.35;
}

.chat-carousel-motive {
    font-size: 0.72rem;
    color: #94A3B8;
    font-weight: 500;
}

.btn-chat-carousel-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: linear-gradient(135deg, #0284C7, #2563EB);
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-chat-carousel-all:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.chat-carousel-tabs {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-carousel-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    color: #94A3B8;
    transition: all 0.15s ease;
    position: relative;
}

.chat-carousel-tab .tab-num {
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
}

.chat-carousel-tab .tab-label {
    font-size: 0.62rem;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.chat-carousel-tab.active {
    background: #0284C7;
    color: #FFFFFF;
    border-color: #38BDF8;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

.chat-carousel-tab.has-image:not(.active) {
    background: rgba(16, 185, 129, 0.12);
    color: #34D399;
    border-color: rgba(16, 185, 129, 0.25);
}

.chat-carousel-viewport {
    position: relative;
    background: #070B12;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-carousel-slide-view {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
}

.chat-carousel-slide-view.loading-view,
.chat-carousel-slide-view.error-view {
    padding: 36px 16px;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 240px;
}

.chat-carousel-img-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    background: #000;
}

.chat-carousel-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 420px;
    transition: transform 0.25s ease;
}

.chat-carousel-img-wrap:hover .chat-carousel-img {
    transform: scale(1.02);
}

.chat-carousel-slide-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.72);
    color: #FFFFFF;
    font-size: 0.64rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.chat-carousel-slide-meta {
    padding: 4px 2px;
}

.chat-slide-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #F8FAFC;
    line-height: 1.35;
}

.chat-slide-takeaway {
    margin: 4px 0 0;
    font-size: 0.78rem;
    color: #38BDF8;
    line-height: 1.4;
    font-weight: 500;
}

.chat-carousel-slide-ctrls {
    display: flex;
    justify-content: flex-end;
}

.btn-chat-slide-action {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #CBD5E1;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-chat-slide-action:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

.chat-carousel-skeleton-card {
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    min-height: 220px;
    justify-content: center;
}

.chat-skeleton-badge {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #F59E0B;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.chat-skeleton-title {
    margin: 0 0 6px 0;
    font-size: 0.96rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.35;
}

.chat-skeleton-takeaway {
    font-size: 0.8rem;
    color: #38BDF8;
    line-height: 1.4;
    margin-bottom: 8px;
    font-weight: 500;
}

.chat-skeleton-desc {
    font-size: 0.76rem;
    color: #94A3B8;
    line-height: 1.45;
    margin: 0 0 16px 0;
}

.chat-carousel-caption-drawer {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.chat-carousel-caption-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #CBD5E1;
    cursor: pointer;
    user-select: none;
    background: rgba(255, 255, 255, 0.03);
}

.chat-carousel-caption-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

.btn-copy-caption {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38BDF8;
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.btn-copy-caption:hover {
    background: #0284C7;
    color: #FFF;
}

.chat-carousel-caption-body {
    display: none;
    padding: 10px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    max-height: 180px;
    overflow-y: auto;
}

.chat-carousel-caption-drawer.open .chat-carousel-caption-body {
    display: block;
}

.chat-carousel-caption-text {
    margin: 0;
    font-family: inherit;
    font-size: 0.76rem;
    line-height: 1.5;
    color: #E2E8F0;
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-carousel-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
}

/* ─── Web App Manual Approval Lock & Day Studio Regenerate Button ─── */
.biz-mode-toggle-btn.locked-mode {
    opacity: 0.65;
    cursor: not-allowed;
}

.biz-mode-toggle-btn.locked-mode:hover {
    color: #64748B;
}

.biz-day-studio-regen-btn {
    background: #004799 !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(1, 142, 239, 0.35) !important;
    box-shadow: none !important;
    font-weight: 600 !important;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease !important;
}

.biz-day-studio-regen-btn:hover {
    background: #018EEF !important;
    transform: translateY(-1px) !important;
    opacity: 1 !important;
}

#dayStudioPublishInstantBtn {
    background: linear-gradient(135deg, #018EEF 0%, #004799 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: none !important;
    font-weight: 600 !important;
    transition: transform 0.15s ease, opacity 0.15s ease !important;
}

#dayStudioPublishInstantBtn:hover {
    background: #018EEF !important;
    transform: translateY(-1px) !important;
}

/* ─── Carousel Completion Progress Bar & Slidable Studio Viewer ─── */
.biz-carousel-progress-wrap {
    width: 100%;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: rgba(1, 142, 239, 0.08);
    border: 1px solid rgba(1, 142, 239, 0.24);
    border-radius: 10px;
    box-sizing: border-box;
}

.biz-carousel-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.76rem;
    font-weight: 700;
}

.biz-carousel-progress-label {
    color: #FFFFFF;
    letter-spacing: 0.02em;
}

.biz-carousel-progress-val {
    color: #018EEF;
    font-weight: 800;
}

.biz-carousel-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 99px;
    overflow: hidden;
}

.biz-carousel-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #018EEF 0%, #004799 100%);
    border-radius: 99px;
    transition: width 0.3s ease;
}

.biz-carousel-stage-wrap {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.biz-carousel-slide-display {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #0D0D0D;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.biz-carousel-slide-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    display: block;
    cursor: pointer;
}

.biz-carousel-slide-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    background: rgba(13, 13, 13, 0.85);
    color: #018EEF;
    border: 1px solid rgba(1, 142, 239, 0.4);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
}

.biz-carousel-slide-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 36px 20px;
    text-align: center;
    color: #FFFFFF;
}

.biz-carousel-slide-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 12px;
    padding: 6px 4px;
}

.biz-carousel-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #181A18;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.16);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transition: all 0.15s ease;
}

.biz-carousel-nav-btn:hover:not(:disabled) {
    background: #004799;
    border-color: #018EEF;
}

.biz-carousel-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.biz-carousel-dots-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.biz-carousel-dot-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
}

.biz-carousel-dot-indicator.active {
    width: 22px;
    border-radius: 99px;
    background: #018EEF;
}

.biz-carousel-dot-indicator.designed:not(.active) {
    background: #004799;
}

/* 7-Day Sprint Card Carousel Widget */
.biz-card-carousel-widget {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.biz-card-carousel-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    border-radius: 8px;
}

.biz-card-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(13, 13, 13, 0.75);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: all 0.15s ease;
    z-index: 5;
}

.biz-card-carousel-nav:hover {
    background: #004799;
    border-color: #018EEF;
}

.biz-card-carousel-nav.prev { left: 4px; }
.biz-card-carousel-nav.next { right: 4px; }

.biz-card-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 5px;
}

.biz-card-carousel-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.15s ease;
}

.biz-card-carousel-dot.active {
    background: #018EEF;
    width: 12px;
    border-radius: 99px;
}

.biz-card-carousel-progress {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.62rem;
    font-weight: 700;
    color: #018EEF;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(1, 142, 239, 0.12);
    border: 1px solid rgba(1, 142, 239, 0.28);
    margin-top: 4px;
}

/* ─── Creative Refine & Regeneration Modal ─── */
.biz-regen-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #CBD5E1;
    font-size: 0.70rem;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}
.biz-regen-chip:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.45);
    color: #38BDF8;
    transform: translateY(-1px);
}
.biz-regen-chip.active {
    background: #0284C7;
    border-color: #38BDF8;
    color: #FFFFFF;
}

/* ─── Business Setup Details: Dedicated Save Row & Phone Feedback ─── */
.biz-setup-save-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid rgba(226, 232, 240, 0.7);
}

.biz-save-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 16px;
    background: #0F172A;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.biz-save-details-btn:hover {
    background: #0284C7;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.biz-save-details-btn:active {
    transform: translateY(0);
}

.biz-save-feedback {
    font-size: 0.74rem;
    font-weight: 600;
    color: #018EEF;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    animation: fadeIn 0.2s ease;
}

body.dark-mode .biz-save-feedback {
    color: #38BDF8;
}

.biz-phone-feedback {
    font-size: 0.70rem;
    line-height: 1.35;
    margin-top: 4px;
    transition: all 0.15s ease;
}

.biz-phone-feedback.valid {
    color: #018EEF;
    font-weight: 600;
}

body.dark-mode .biz-phone-feedback.valid {
    color: #38BDF8;
}

.biz-phone-feedback.warning {
    color: #94A3B8;
    font-weight: 500;
}

.biz-phone-feedback.error {
    color: #EF4444;
    font-weight: 600;
}

.biz-setup-input.input-error {
    border-color: #EF4444 !important;
    background: #FEF2F2 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12) !important;
}

.biz-setup-input.input-valid {
    border-color: #018EEF !important;
}

body.dark-mode .biz-setup-input.input-valid {
    border-color: #38BDF8 !important;
}

/* ─── Product & Visual Reference Photos (Up to 5) ─── */
.biz-product-images-card {
    margin-top: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.biz-product-upload-area {
    border: 1.5px dashed #CBD5E1;
    border-radius: 10px;
    padding: 16px 14px;
    background: #F8FAFC;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.biz-product-upload-area:hover {
    border-color: #0284C7;
    background: rgba(2, 132, 199, 0.04);
}

.biz-product-upload-area.full {
    display: none !important;
}

.biz-product-upload-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.biz-product-upload-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.2;
}

.biz-product-upload-sub {
    font-size: 0.68rem;
    color: #94A3B8;
    line-height: 1.2;
}

.biz-product-thumbs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.biz-product-thumb-item {
    position: relative;
    width: 96px;
    height: 96px;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid #E2E8F0;
    background: #0F172A;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}

.biz-product-thumb-item:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.biz-product-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.biz-product-thumb-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    transition: all 0.15s ease;
}

.biz-product-thumb-remove:hover {
    background: #EF4444;
    transform: scale(1.15);
}

.biz-product-thumb-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 96px;
    height: 96px;
    aspect-ratio: 1;
    border-radius: 8px;
    border: 1.5px dashed #CBD5E1;
    background: #F8FAFC;
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748B;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.biz-product-thumb-add:hover {
    border-color: #0284C7;
    color: #0284C7;
    background: rgba(2, 132, 199, 0.06);
}

/* ─── Dark Mode Support ─── */
body.dark-mode .biz-setup-save-row {
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .biz-save-details-btn {
    background: #0284C7;
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .biz-save-details-btn:hover {
    background: #0369A1;
}

body.dark-mode .biz-product-upload-area {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .biz-product-upload-area:hover {
    background: rgba(2, 132, 199, 0.1);
    border-color: #38BDF8;
}

body.dark-mode .biz-product-upload-title {
    color: #F1F5F9 !important;
}

body.dark-mode .biz-product-upload-sub {
    color: #94A3B8 !important;
}

body.dark-mode .biz-product-thumb-item {
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .biz-product-thumb-add {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    color: #94A3B8;
}

body.dark-mode .biz-product-thumb-add:hover {
    border-color: #38BDF8;
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.1);
}

body.dark-mode .biz-setup-input.input-error {
    background: rgba(239, 68, 68, 0.15) !important;
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM 4K IMAGE REGENERATION ANIMATIONS & STUDIO CANVAS
   ═══════════════════════════════════════════════════════════════ */

/* 1. Sprint Calendar Card Regeneration Overlay */
.biz-week-creative-preview.is-regenerating {
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.95) 0%, rgba(224, 242, 254, 0.95) 100%) !important;
    border: 1px solid #7DD3FC !important;
    position: relative;
    overflow: hidden;
}

body.dark-mode .biz-week-creative-preview.is-regenerating {
    background: radial-gradient(circle at 50% 40%, rgba(2, 132, 199, 0.22), rgba(15, 23, 42, 0.98)) !important;
    border: 1px solid rgba(56, 189, 248, 0.5) !important;
}

.biz-regen-radar-wrap {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.biz-regen-spinner {
    width: 30px !important;
    height: 30px !important;
    border-width: 2.5px !important;
    border-color: rgba(2, 132, 199, 0.2) !important;
    border-top-color: #0284C7 !important;
    animation: bizSpin 0.75s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    z-index: 2;
}

body.dark-mode .biz-regen-spinner {
    border-color: rgba(56, 189, 248, 0.2) !important;
    border-top-color: #38BDF8 !important;
}

.biz-regen-radar-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px solid rgba(2, 132, 199, 0.5);
    animation: regenPulseWave 1.6s ease-out infinite;
    pointer-events: none;
}

body.dark-mode .biz-regen-radar-pulse {
    border-color: rgba(56, 189, 248, 0.5);
}

@keyframes regenPulseWave {
    0% {
        transform: scale(0.7);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* 2. Full-Size Butler Creative Studio Regeneration Canvas */
.biz-day-studio-regen-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 440px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 32%, #081B33 0%, #030811 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 36px 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* High-tech scanning line beam across canvas */
.biz-studio-scan-beam {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(56, 189, 248, 0) 0%, 
        rgba(56, 189, 248, 0.08) 50%, 
        rgba(56, 189, 248, 0) 100%);
    animation: scanlineSweep 2.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes scanlineSweep {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Dual-Orb Ring Spinner */
.biz-studio-regen-orb {
    position: relative;
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.biz-studio-orb-ring-outer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px dashed rgba(56, 189, 248, 0.6);
    animation: orbSpinCW 7s linear infinite;
}

.biz-studio-orb-ring-inner {
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    border-top-color: #38BDF8;
    border-right-color: #38BDF8;
    animation: orbSpinCCW 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.biz-studio-orb-core {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(2, 132, 199, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: orbCorePulse 2s ease-in-out infinite;
}

@keyframes orbSpinCW {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbSpinCCW {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes orbCorePulse {
    0%, 100% { transform: scale(0.92); opacity: 0.85; }
    50% { transform: scale(1.12); opacity: 1; }
}

/* Regeneration Step Progress Ticker */
.biz-studio-regen-step {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #CBD5E1;
    transition: all 0.25s ease;
}

.biz-studio-regen-step.active {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.08);
    color: #F1F5F9;
}

.biz-studio-regen-step.pulse {
    border-color: #38BDF8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.biz-studio-regen-step .step-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    flex-shrink: 0;
}

.biz-studio-regen-step .step-dot.pulse {
    background: #38BDF8;
    box-shadow: 0 0 8px #38BDF8;
    animation: stepDotBlink 0.9s ease-in-out infinite;
}

.biz-studio-regen-step .step-dot.pending {
    background: #64748B;
}

@keyframes stepDotBlink {
    0%, 100% { opacity: 0.4; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.25); }
}

/* ─── Butler Active Plan & Radial Capacity Gauge ─── */
.biz-hub-plan-and-capacity {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 102, 204, 0.05);
    border: 1px solid rgba(0, 102, 204, 0.15);
    border-radius: 50px;
    padding: 4px 12px 4px 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

body.dark-mode .biz-hub-plan-and-capacity {
    background: rgba(56, 139, 253, 0.08);
    border-color: rgba(56, 139, 253, 0.2);
}

.biz-hub-plan-and-capacity:hover {
    background: rgba(0, 102, 204, 0.1);
    border-color: #0066cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.12);
}

.biz-hub-plan-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #0066cc 0%, #004b99 100%);
    color: #ffffff;
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
}

.radial-gauge-container {
    position: relative;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radial-gauge-svg {
    transform: rotate(-90deg);
}

.gauge-bg {
    stroke: rgba(0, 102, 204, 0.15);
}

body.dark-mode .gauge-bg {
    stroke: rgba(255, 255, 255, 0.15);
}

.gauge-progress {
    stroke: #0066cc;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .gauge-progress {
    stroke: #388bfd;
}

.gauge-percentage-text {
    position: absolute;
    font-family: var(--font-mono, monospace);
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--text-dark, #181A18);
    letter-spacing: -0.04em;
    pointer-events: none;
}

body.dark-mode .gauge-percentage-text {
    color: #ffffff;
}

.gauge-info-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.gauge-label {
    font-family: var(--font-mono, monospace);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0066cc;
}

body.dark-mode .gauge-label {
    color: #58a6ff;
}

.gauge-sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted, #64748B);
}

/* ─── Compact Top Drawer Hub Plan & Capacity Widget ─── */
#bizHubPlanCapacityWidget {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(0, 102, 204, 0.05) !important;
    border: 1px solid rgba(0, 102, 204, 0.16) !important;
    border-radius: 20px !important;
    padding: 2px 8px 2px 3px !important;
    height: 26px !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
    flex-shrink: 0 !important;
}

body.dark-mode #bizHubPlanCapacityWidget {
    background: rgba(56, 139, 253, 0.08) !important;
    border-color: rgba(56, 139, 253, 0.22) !important;
}

#bizHubPlanCapacityWidget:hover {
    background: rgba(0, 102, 204, 0.1) !important;
    border-color: #0066cc !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.15) !important;
}

#bizHubPlanCapacityWidget .biz-hub-plan-badge-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 2px 7px !important;
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    height: 20px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

#bizHubPlanCapacityWidget .radial-gauge-container {
    position: relative !important;
    width: 22px !important;
    height: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

#bizHubPlanCapacityWidget .radial-gauge-svg {
    width: 22px !important;
    height: 22px !important;
    transform: rotate(-90deg) !important;
}

#bizHubPlanCapacityWidget .gauge-percentage-text {
    position: absolute !important;
    font-family: var(--font-mono, monospace) !important;
    font-size: 0.48rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.06em !important;
    pointer-events: none !important;
}

#bizHubPlanCapacityWidget .gauge-info-text {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 3px !important;
    line-height: 1 !important;
}

#bizHubPlanCapacityWidget .gauge-label {
    display: none !important; /* Tooltip and radial gauge communicate capacity clearly; removing label saves 60px of horizontal space */
}

#bizHubPlanCapacityWidget .gauge-sub {
    font-family: var(--font-mono, monospace) !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: var(--text-dark, #181A18) !important;
    white-space: nowrap !important;
    letter-spacing: -0.02em !important;
}

body.dark-mode #bizHubPlanCapacityWidget .gauge-sub {
    color: #F8F2ED !important;
}

/* ─── Sprint Rest Day Card Styling (Pro 12-post alternate days) ─── */
.biz-week-day-card.rest-day-card {
    opacity: 0.85;
    background: rgba(241, 245, 249, 0.6);
    border: 1px dashed rgba(100, 116, 139, 0.25);
}

body.dark-mode .biz-week-day-card.rest-day-card {
    background: rgba(30, 41, 59, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.biz-rest-day-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    height: 100%;
}

/* ─── Plan & Capacity inside Module Menu Dropdown ─── */
/* ─── Plan & Capacity inside Module Menu Dropdown ─── */
.biz-hub-plan-and-capacity.launcher-plan-capacity {
    display: flex;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    margin-bottom: 16px !important;
    padding: 12px 14px !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
    background: rgba(0, 102, 204, 0.05) !important;
    border: 1px solid rgba(0, 102, 204, 0.16) !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
}

.biz-hub-plan-and-capacity.launcher-plan-capacity.is-hidden,
.biz-hub-plan-and-capacity.launcher-plan-capacity[style*="display: none"] {
    display: none !important;
}

body.dark-mode .biz-hub-plan-and-capacity.launcher-plan-capacity {
    background: rgba(56, 139, 253, 0.08) !important;
    border-color: rgba(56, 139, 253, 0.22) !important;
}

.biz-hub-plan-and-capacity.launcher-plan-capacity:hover {
    background: rgba(0, 102, 204, 0.09) !important;
    border-color: #0066cc !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(0, 102, 204, 0.14) !important;
}

.launcher-plan-top-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

.launcher-plan-bottom-row {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: 10px !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(0, 102, 204, 0.1) !important;
}

body.dark-mode .launcher-plan-bottom-row {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

.launcher-plan-top-row .biz-hub-plan-badge-pill {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.launcher-plan-bottom-row .radial-gauge-container {
    width: 30px !important;
    height: 30px !important;
    flex-shrink: 0 !important;
}

.launcher-plan-bottom-row .radial-gauge-svg {
    width: 30px !important;
    height: 30px !important;
}

.launcher-plan-bottom-row .gauge-percentage-text {
    font-size: 0.58rem !important;
    font-weight: 800 !important;
}

.launcher-plan-bottom-row .gauge-info-text {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.25 !important;
}

.launcher-plan-bottom-row .gauge-label {
    display: block !important;
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: #0066cc !important;
}

body.dark-mode .launcher-plan-bottom-row .gauge-label {
    color: #58a6ff !important;
}

.launcher-plan-bottom-row .gauge-sub {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: var(--text-dark, #181A18) !important;
}

body.dark-mode .launcher-plan-bottom-row .gauge-sub {
    color: #F8F2ED !important;
}

.launcher-plan-upgrade-btn {
    background: rgba(0, 102, 204, 0.1) !important;
    color: #0066cc !important;
    border: 1px solid rgba(0, 102, 204, 0.25) !important;
    border-radius: 20px !important;
    padding: 3px 12px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

body.dark-mode .launcher-plan-upgrade-btn {
    background: rgba(56, 139, 253, 0.15) !important;
    color: #58a6ff !important;
    border-color: rgba(56, 139, 253, 0.3) !important;
}

.launcher-plan-upgrade-btn:hover {
    background: #0066cc !important;
    color: #ffffff !important;
    border-color: #0066cc !important;
    transform: translateY(-1px) !important;
}

/* Prevent drawer capacity widget from peeking out behind apps dropdown */
body.apps-dropdown-open #bizHubPlanCapacityWidget,
body:has(.apps-dropdown.active) #bizHubPlanCapacityWidget {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease !important;
}

/* ─── In-App Manual Approval Mode & Copilot Suggestion Box ─── */
.biz-mode-toggle-btn.active#btnModeManualDrawer,
.biz-mode-toggle-btn.active#btnModeManualCal {
    background: #0066cc !important;
    color: #FFFFFF !important;
    border-color: #0066cc !important;
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.28) !important;
}

body.dark-mode .biz-mode-toggle-btn.active#btnModeManualDrawer,
body.dark-mode .biz-mode-toggle-btn.active#btnModeManualCal {
    background: #0284C7 !important;
    color: #FFFFFF !important;
    border-color: #0284C7 !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4) !important;
}

/* Suggest Improvements & Regenerate Content Panel in Day Studio */
.biz-day-suggest-panel {
    background: linear-gradient(135deg, rgba(1, 142, 239, 0.08) 0%, rgba(0, 71, 153, 0.04) 100%);
    border: 1px solid rgba(1, 142, 239, 0.25);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.dark-mode .biz-day-suggest-panel {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(15, 23, 42, 0.5) 100%);
    border-color: rgba(56, 189, 248, 0.28);
}

.biz-day-suggest-panel.regenerating {
    border-color: #38BDF8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.biz-day-suggest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.biz-day-suggest-sparkle {
    font-size: 1.1rem;
    line-height: 1;
}

.biz-day-suggest-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-dark, #181A18);
    letter-spacing: -0.01em;
}

body.dark-mode .biz-day-suggest-title {
    color: #F8FAFC;
}

.biz-day-suggest-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.biz-day-suggest-input-group .biz-setup-input {
    flex: 1;
    font-size: 0.82rem;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(1, 142, 239, 0.25);
    background: #FFFFFF;
}

body.dark-mode .biz-day-suggest-input-group .biz-setup-input {
    background: rgba(15, 23, 42, 0.7);
    color: #F8FAFC;
    border-color: rgba(255, 255, 255, 0.14);
}

.biz-day-suggest-input-group .biz-canvas-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    background: #004799;
    color: #FFFFFF;
    border: 1px solid rgba(1, 142, 239, 0.4);
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.biz-day-suggest-input-group .biz-canvas-btn:hover {
    background: #018EEF;
    transform: translateY(-1px);
}

.biz-suggest-quick-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.biz-suggest-chips-label {
    font-size: 0.70rem;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 2px;
}

.biz-suggest-chip {
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.70rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(1, 142, 239, 0.2);
    color: #0284C7;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

body.dark-mode .biz-suggest-chip {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(56, 189, 248, 0.25);
    color: #38BDF8;
}

.biz-suggest-chip:hover {
    background: #018EEF;
    color: #FFFFFF;
    border-color: #018EEF;
    transform: translateY(-1px);
}

/* In-Chat Review Pending Follow-up Card */
.biz-review-pending-card {
    background: var(--bg-card, #FFFFFF);
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    margin: 4px 0;
    max-width: 580px;
}

body.dark-mode .biz-review-pending-card {
    background: #111827;
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.biz-review-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.biz-review-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #D97706;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 9999px;
    padding: 3px 10px;
}

.biz-review-summary-box {
    background: rgba(248, 250, 252, 0.7);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 14px;
}

body.dark-mode .biz-review-summary-box {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: #E2E8F0;
}

.biz-review-row {
    margin-bottom: 6px;
}

.biz-review-row:last-child {
    margin-bottom: 0;
}

.biz-review-actions-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.biz-review-btn-approve {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.biz-review-btn-approve:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.biz-review-btn-studio {
    background: rgba(1, 142, 239, 0.1);
    color: #0284C7;
    border: 1px solid rgba(1, 142, 239, 0.3);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

body.dark-mode .biz-review-btn-studio {
    color: #38BDF8;
    border-color: rgba(56, 189, 248, 0.3);
}

.biz-review-btn-studio:hover {
    background: #018EEF;
    color: #FFFFFF;
}

.biz-review-btn-suggest {
    background: rgba(245, 158, 11, 0.1);
    color: #D97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.biz-review-btn-suggest:hover {
    background: #F59E0B;
    color: #FFFFFF;
}


