      .chat-viewport-wrapper {
        display: flex;
        flex-direction: column;
        height: 100vh;
        width: 100vw;
        overflow: hidden;
        position: relative;
        padding-top: 62px;
      }
      .chat-dynamic-bg {
        position: absolute;
        inset: 0;
        background-image: url('https://images.pexels.com/photos/1762851/pexels-photo-1762851.jpeg?auto=compress&cs=tinysrgb&w=1600');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0.15;
        transition: background-image 1.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
        pointer-events: none;
        z-index: 0;
      }
      .chat-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        max-width: 920px;
        width: 100%;
        margin: 0 auto;
        padding: 1rem 1.5rem;
        overflow: hidden;
        position: relative;
        z-index: 10;
      }
      .chat-card-canvas {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: var(--radius-lg);
        background: rgba(15, 23, 42, 0.72);
        border: var(--glass-border);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
      }
      .chat-messages-area {
        flex: 1;
        overflow-y: auto;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
      }
      .msg-row {
        display: flex;
        gap: 0.85rem;
        max-width: 85%;
        animation: fadeInMsg 0.3s ease-out;
      }
      @keyframes fadeInMsg {
        from { opacity: 0; transform: translateY(6px); }
        to { opacity: 1; transform: translateY(0); }
      }
      .msg-row.user {
        align-self: flex-end;
        flex-direction: row-reverse;
      }
      .msg-row.bot {
        align-self: flex-start;
      }
      .msg-avatar {
        width: 2.25rem;
        height: 2.25rem;
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        flex-shrink: 0;
      }
      .msg-avatar.user-av {
        background: rgba(56, 189, 248, 0.2);
        border: 1px solid rgba(56, 189, 248, 0.4);
      }
      .msg-avatar.bot-av {
        background: linear-gradient(135deg, #F43F5E 0%, var(--accent-sugar) 100%);
        box-shadow: 0 0 12px var(--accent-neon-glow);
      }
      .msg-bubble {
        padding: 1rem 1.35rem;
        border-radius: var(--radius-md);
        font-size: 1rem;
        line-height: 1.6;
        position: relative;
        word-break: break-word;
      }
      .msg-row.user .msg-bubble {
        background: #1E293B;
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #F8FAFC;
        border-top-right-radius: 4px;
      }
      .msg-row.bot .msg-bubble {
        background: linear-gradient(145deg, rgba(30, 41, 59, 0.92) 0%, rgba(55, 19, 50, 0.75) 100%);
        border: 1px solid rgba(236, 72, 153, 0.38);
        color: #FFFFFF;
        box-shadow: 0 4px 18px rgba(236, 72, 153, 0.15);
        border-top-left-radius: 4px;
      }
      .typing-indicator {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 0.5rem 0.25rem;
      }
      .typing-dot {
        width: 8px;
        height: 8px;
        background: var(--accent-sugar);
        border-radius: 50%;
        animation: typingBlink 1.4s infinite ease-in-out both;
      }
      .typing-dot:nth-child(1) { animation-delay: -0.32s; }
      .typing-dot:nth-child(2) { animation-delay: -0.16s; }
      @keyframes typingBlink {
        0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
        40% { transform: scale(1.1); opacity: 1; }
      }
      /* Quick Confession Demo Suggestion Pills */
      .chat-demo-prompts {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        margin-bottom: 0.65rem;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: thin;
      }
      .demo-prompts-label {
        font-size: 0.72rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--accent-sugar);
        white-space: nowrap;
        flex-shrink: 0;
      }
      .demo-prompts-scroll {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        overflow-x: auto;
        padding: 2px 0;
        scrollbar-width: none;
      }
      .demo-prompts-scroll::-webkit-scrollbar {
        display: none;
      }
      .demo-prompt-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.35rem 0.75rem;
        background: rgba(30, 41, 59, 0.75);
        border: 1px solid rgba(236, 72, 153, 0.3);
        border-radius: var(--radius-pill);
        color: #F8FAFC;
        font-size: 0.78rem;
        font-weight: 600;
        white-space: nowrap;
        cursor: pointer;
        transition: all 0.2s ease;
        font-family: inherit;
        flex-shrink: 0;
      }
      .demo-prompt-pill:hover {
        background: rgba(236, 72, 153, 0.25);
        border-color: var(--accent-sugar);
        transform: translateY(-1px);
        box-shadow: 0 0 12px rgba(236, 72, 153, 0.35);
      }
      .demo-prompt-pill:active {
        transform: scale(0.96);
      }

      .composer-section {
        padding: 1.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(15, 23, 42, 0.88);
      }
      .composer-toolbar {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin-bottom: 0.65rem;
      }
      .mood-dropup-container {
        position: relative;
        display: inline-block;
      }
      .mood-dropup-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(30, 41, 59, 0.85);
        border: 1px solid rgba(236, 72, 153, 0.35);
        border-radius: var(--radius-pill);
        padding: 0.4rem 0.95rem;
        font-size: 0.82rem;
        font-weight: 700;
        color: #FFFFFF;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
        font-family: inherit;
      }
      .mood-dropup-btn:hover,
      .mood-dropup-container.open .mood-dropup-btn {
        border-color: var(--accent-sugar);
        background: rgba(236, 72, 153, 0.18);
        box-shadow: 0 0 12px var(--accent-neon-glow);
      }
      .mood-btn-label {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
      }
      .mood-arrow {
        font-size: 0.72rem;
        color: var(--accent-sugar);
        transition: transform 0.2s ease;
      }
      .mood-dropup-container.open .mood-arrow {
        transform: rotate(180deg);
      }
      .mood-dropup-menu {
        display: none;
        position: absolute;
        bottom: calc(100% + 8px);
        left: 0;
        width: 310px;
        max-width: calc(100vw - 32px);
        max-height: 380px;
        overflow-y: auto;
        background: rgba(15, 23, 42, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1.5px solid rgba(236, 72, 153, 0.4);
        border-radius: 14px;
        box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(236, 72, 153, 0.2);
        padding: 8px;
        z-index: 100;
        flex-direction: column;
        gap: 4px;
      }
      .mood-dropup-container.open .mood-dropup-menu {
        display: flex;
        animation: dropUpFadeIn 0.2s ease forwards;
      }
      @keyframes dropUpFadeIn {
        from { opacity: 0; transform: translateY(8px); }
        to { opacity: 1; transform: translateY(0); }
      }
      .mood-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 10px 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        color: #94A3B8;
      }
      .mood-badge-count {
        background: rgba(236, 72, 153, 0.2);
        color: var(--accent-sugar);
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 0.65rem;
      }
      .mood-menu-item {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 8px 10px;
        border-radius: 8px;
        background: transparent;
        border: none;
        color: #F8FAFC;
        text-align: left;
        cursor: pointer;
        transition: all 0.15s ease;
        font-family: inherit;
      }
      .mood-menu-item:hover {
        background: rgba(236, 72, 153, 0.15);
      }
      .mood-menu-item.active {
        background: rgba(236, 72, 153, 0.24);
        border-left: 3px solid var(--accent-sugar);
      }
      .mood-item-icon {
        font-size: 1.25rem;
        flex-shrink: 0;
      }
      .mood-item-info {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-width: 0;
      }
      .mood-item-title {
        font-size: 0.85rem;
        font-weight: 700;
        color: #FFFFFF;
        display: flex;
        align-items: center;
        gap: 6px;
      }
      .mood-item-desc {
        font-size: 0.72rem;
        color: #94A3B8;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .mood-tag-default {
        font-size: 0.6rem;
        padding: 1px 4px;
        background: rgba(56, 189, 248, 0.2);
        color: #38BDF8;
        border-radius: 3px;
        font-weight: 800;
      }
      .mood-check {
        font-size: 0.85rem;
        color: var(--accent-sugar);
        opacity: 0;
        transition: opacity 0.15s ease;
      }
      .mood-menu-item.active .mood-check {
        opacity: 1;
      }
      .composer-form {
        display: flex;
        gap: 0.75rem;
      }
      .composer-input {
        flex: 1;
        background: rgba(15, 23, 42, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: var(--radius-pill);
        padding: 0.85rem 1.5rem;
        color: var(--text-main);
        font-size: 1rem;
        outline: none;
        transition: var(--transition-speed);
      }
      .composer-input:focus {
        border-color: var(--accent-sugar);
        box-shadow: 0 0 16px var(--accent-neon-glow);
      }
      .token-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.85rem;
        font-weight: 700;
        padding: 0.35rem 0.85rem;
        background: rgba(16, 185, 129, 0.15);
        border: 1px solid rgba(16, 185, 129, 0.35);
        border-radius: var(--radius-pill);
        color: var(--accent-green);
        white-space: nowrap;
        flex-shrink: 0;
        transition: all 0.3s ease;
      }
      /* Mobile Layout Optimizations */
      @media (max-width: 768px) {
        .chat-viewport-wrapper {
          padding-top: 108px;
        }
        .chat-container {
          padding: 0.5rem 0.65rem;
        }
        .chat-card-canvas {
          border-radius: var(--radius-md);
        }
        .chat-messages-area {
          padding: 1rem 0.75rem;
          gap: 0.85rem;
        }
        .msg-row {
          max-width: 92%;
          gap: 0.6rem;
        }
        .msg-avatar {
          width: 2rem;
          height: 2rem;
          font-size: 0.95rem;
        }
        .msg-bubble {
          padding: 0.8rem 1rem;
          font-size: 0.95rem;
          line-height: 1.55;
        }
        .composer-section {
          padding: 0.75rem;
        }
        .composer-input {
          padding: 0.75rem 1rem;
          font-size: 0.95rem;
        }
        .composer-form button {
          padding: 0.75rem 1.25rem !important;
          font-size: 0.92rem;
        }
      }

      @media (max-width: 480px) {
        .token-badge {
          padding: 5px 9px;
          font-size: 0.72rem;
        }
        .msg-bubble {
          font-size: 0.9rem;
          padding: 0.7rem 0.85rem;
        }
        .composer-input {
          font-size: 0.9rem;
          padding: 0.65rem 0.85rem;
        }
        .composer-form button {
          padding: 0.65rem 1rem !important;
          font-size: 0.85rem;
        }
      }
