    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

    body {
      font-family: 'Inter', system-ui, sans-serif;
      background: var(--retire-bg);
      color: var(--retire-text);
      margin: 0;
      padding: 0;
      font-size: var(--font-body);
      line-height: var(--line-height-body);
      height: 100vh;
      overflow: hidden;
    }

    /* ---- Layout Shell ---- */
    .concierge-layout {
      display: flex;
      height: 100vh;
      overflow: hidden;
    }

    /* ---- Sidebar ---- */
    .concierge-sidebar {
      width: 18rem;
      flex-shrink: 0;
      background: var(--retire-surface);
      border-right: 0.0625rem solid var(--retire-border);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      transition: transform var(--transition-normal);
      z-index: 50;
    }
    .sidebar-header {
      padding: 1rem;
      border-bottom: 0.0625rem solid var(--retire-border);
      flex-shrink: 0;
    }
    .btn-new-chat {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      width: 100%;
      min-height: var(--touch-min);
      padding: 0.75rem 1rem;
      font-size: var(--font-label);
      font-weight: 600;
      border-radius: 0.5rem;
      border: none;
      cursor: pointer;
      background: var(--retire-secondary);
      color: #FFFFFF;
      transition: all var(--transition-fast);
    }
    .btn-new-chat:hover {
      background: #047857;
      box-shadow: var(--retire-shadow-md);
    }
    .sidebar-list {
      flex: 1;
      overflow-y: auto;
      padding: 0.5rem;
    }
    .sidebar-list::-webkit-scrollbar { width: 0.25rem; }
    .sidebar-list::-webkit-scrollbar-thumb {
      background: var(--retire-border);
      border-radius: 1rem;
    }
    .conv-item {
      display: flex;
      align-items: center;
      gap: 0.625rem;
      padding: 0.75rem 0.875rem;
      border-radius: 0.5rem;
      cursor: pointer;
      transition: background var(--transition-fast);
      position: relative;
      min-height: var(--touch-min);
    }
    .conv-item:hover { background: var(--retire-card-hover-bg); }
    .conv-item.active {
      background: var(--retire-primary);
      color: #FFFFFF;
    }
    .conv-item.active .conv-time,
    .conv-item.active .conv-title { color: #FFFFFF; }
    .conv-icon {
      flex-shrink: 0;
      width: 2rem;
      height: 2rem;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: var(--retire-border);
      font-size: 0.875rem;
      color: var(--retire-text-muted);
    }
    .conv-item.active .conv-icon {
      background: rgba(255,255,255,0.2);
      color: #FFFFFF;
    }
    .conv-info { flex: 1; min-width: 0; }
    .conv-title {
      font-size: 0.9375rem;
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      color: var(--retire-text);
    }
    .conv-time {
      font-size: 0.75rem;
      color: var(--retire-text-muted);
      margin-top: 0.125rem;
    }
    .conv-badge {
      flex-shrink: 0;
      background: var(--retire-primary-light);
      color: #FFFFFF;
      font-size: 0.6875rem;
      font-weight: 700;
      min-width: 1.25rem;
      height: 1.25rem;
      border-radius: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 0.375rem;
    }
    .conv-item.active .conv-badge {
      background: rgba(255,255,255,0.3);
    }
    .conv-archive-btn {
      position: absolute;
      right: 0.5rem;
      top: 50%;
      transform: translateY(-50%);
      display: none;
      align-items: center;
      justify-content: center;
      width: 1.75rem;
      height: 1.75rem;
      border: none;
      background: transparent;
      color: var(--retire-text-muted);
      cursor: pointer;
      border-radius: 0.375rem;
      font-size: 0.75rem;
      min-height: var(--touch-min);
      min-width: 1.75rem;
    }
    .conv-item:hover .conv-archive-btn { display: flex; }
    .conv-archive-btn:hover {
      background: var(--retire-rose);
      color: #FFFFFF;
    }

    /* ---- Main Chat Area ---- */
    .chat-main {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      min-width: 0;
    }
    .chat-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.875rem 1.25rem;
      border-bottom: 0.0625rem solid var(--retire-border);
      background: var(--retire-surface-elevated);
      flex-shrink: 0;
      min-height: 3.5rem;
    }
    .chat-header-avatar {
      width: 2.25rem;
      height: 2.25rem;
      border-radius: 50%;
      background: var(--retire-primary);
      color: #FFFFFF;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      flex-shrink: 0;
    }
    .chat-header-title {
      font-size: var(--font-heading-sm);
      font-weight: 700;
      flex: 1;
      min-width: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .chat-header-status {
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
      font-size: 0.8125rem;
      font-weight: 600;
      padding: 0.25rem 0.625rem;
      border-radius: 1rem;
      background: #D1FAE5;
      color: #065F46;
      flex-shrink: 0;
    }
    [data-theme="dark"] .chat-header-status {
      background: rgba(16, 185, 129, 0.2);
      color: #6EE7B7;
    }
    .chat-header-status-dot {
      width: 0.4375rem;
      height: 0.4375rem;
      border-radius: 50%;
      background: var(--retire-secondary);
      animation: pulse-dot 2s infinite;
    }
    @keyframes pulse-dot {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.4; }
    }
    .btn-sidebar-toggle {
      display: none;
      align-items: center;
      justify-content: center;
      width: var(--touch-min);
      height: var(--touch-min);
      border: 0.0625rem solid var(--retire-border);
      background: var(--retire-surface-elevated);
      color: var(--retire-text);
      border-radius: 0.5rem;
      cursor: pointer;
      font-size: 1rem;
      flex-shrink: 0;
      transition: all var(--transition-fast);
    }
    .btn-sidebar-toggle:hover {
      background: var(--retire-card-hover-bg);
    }
    .btn-recs-toggle {
      display: none;
      align-items: center;
      justify-content: center;
      width: var(--touch-min);
      height: var(--touch-min);
      border: 0.0625rem solid var(--retire-border);
      background: var(--retire-surface-elevated);
      color: var(--retire-text);
      border-radius: 0.5rem;
      cursor: pointer;
      font-size: 1rem;
      flex-shrink: 0;
      transition: all var(--transition-fast);
    }
    .btn-recs-toggle:hover {
      background: var(--retire-card-hover-bg);
    }

    /* ---- Messages Area ---- */
    .messages-area {
      flex: 1;
      overflow-y: auto;
      padding: 1.25rem;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    .messages-area::-webkit-scrollbar { width: 0.375rem; }
    .messages-area::-webkit-scrollbar-thumb {
      background: var(--retire-border);
      border-radius: 1rem;
    }

    .msg-row {
      display: flex;
      gap: 0.625rem;
      max-width: 75%;
    }
    .msg-row.msg-user {
      align-self: flex-end;
      flex-direction: row-reverse;
    }
    .msg-row.msg-ai {
      align-self: flex-start;
    }
    .msg-avatar {
      width: 2rem;
      height: 2rem;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.875rem;
      flex-shrink: 0;
      margin-top: 6.25rem.125rem;
    }
    .msg-user .msg-avatar {
      background: var(--retire-primary-light);
      color: #FFFFFF;
    }
    .msg-ai .msg-avatar {
      background: var(--retire-secondary);
      color: #FFFFFF;
    }
    .msg-bubble {
      padding: 0.875rem 1.125rem;
      border-radius: 1rem;
      font-size: var(--font-body);
      line-height: var(--line-height-body);
      word-break: break-word;
    }
    .msg-user .msg-bubble {
      background: var(--retire-primary);
      color: #FFFFFF;
      border-bottom-right-radius: 0.25rem;
    }
    .msg-ai .msg-bubble {
      background: var(--retire-surface-elevated);
      border: 0.0625rem solid var(--retire-border);
      color: var(--retire-text);
      border-bottom-left-radius: 0.25rem;
    }
    .msg-time {
      font-size: 0.6875rem;
      color: var(--retire-text-muted);
      margin-top: 0.25rem;
      padding: 0 0.25rem;
    }
    .msg-user .msg-time { text-align: right; }
    .msg-ai .msg-time { text-align: left; }

    /* Typing indicator */
    .typing-indicator {
      display: none;
      align-self: flex-start;
      padding: 0.625rem 0;
    }
    .typing-indicator.visible { display: flex; }
    .typing-dots {
      display: flex;
      align-items: center;
      gap: 0.3125rem;
      padding: 0.75rem 1rem;
      background: var(--retire-surface-elevated);
      border: 0.0625rem solid var(--retire-border);
      border-radius: 1rem;
      border-bottom-left-radius: 0.25rem;
    }
    .typing-dot {
      width: 0.5rem;
      height: 0.5rem;
      border-radius: 50%;
      background: var(--retire-text-muted);
      animation: typing-bounce 1.4s infinite ease-in-out;
    }
    .typing-dot:nth-child(1) { animation-delay: 0s; }
    .typing-dot:nth-child(2) { animation-delay: 0.2s; }
    .typing-dot:nth-child(3) { animation-delay: 0.4s; }
    @keyframes typing-bounce {
      0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
      30% { transform: translateY(-0.375rem); opacity: 1; }
    }

    /* ---- Input Area ---- */
    .input-area {
      padding: 0.875rem 1.25rem;
      border-top: 0.0625rem solid var(--retire-border);
      background: var(--retire-surface-elevated);
      flex-shrink: 0;
    }
    .input-row {
      display: flex;
      align-items: flex-end;
      gap: 0.625rem;
      max-width: 56rem;
      margin: 0 auto;
    }
    .input-textarea {
      flex: 1;
      resize: none;
      min-height: var(--touch-min);
      max-height: 8.75rem;
      padding: 0.625rem 0.875rem;
      font-size: var(--font-body);
      line-height: 1.5;
      color: var(--retire-text);
      background: var(--retire-surface);
      border: 0.0625rem solid var(--retire-border);
      border-radius: 0.75rem;
      font-family: inherit;
      overflow-y: auto;
      transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    }
    .input-textarea:focus {
      border-color: var(--retire-primary-light);
      box-shadow: 0 0 0 0.1875rem rgba(59, 130, 246, 0.2);
      outline: none;
    }
    .input-textarea::placeholder { color: var(--retire-text-muted); }
    .btn-send {
      display: flex;
      align-items: center;
      justify-content: center;
      width: var(--touch-min);
      height: var(--touch-min);
      border: none;
      background: var(--retire-primary);
      color: #FFFFFF;
      border-radius: 0.75rem;
      cursor: pointer;
      font-size: 1.125rem;
      flex-shrink: 0;
      transition: all var(--transition-fast);
    }
    .btn-send:hover {
      background: var(--retire-primary-dark);
      box-shadow: var(--retire-shadow-md);
    }
    .btn-send:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }
    .input-hint {
      font-size: 0.6875rem;
      color: var(--retire-text-muted);
      margin-top: 0.375rem;
      display: flex;
      justify-content: space-between;
      max-width: 56rem;
      margin-left: auto;
      margin-right: auto;
    }

    /* ---- Welcome Screen ---- */
    .welcome-screen {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 2rem;
      text-align: center;
      gap: 1rem;
    }
    .welcome-icon {
      font-size: 4rem;
      color: var(--retire-primary);
      opacity: 0.8;
    }
    .welcome-title {
      font-size: var(--font-heading-lg);
      font-weight: 700;
      color: var(--retire-text);
    }
    .welcome-desc {
      font-size: var(--font-body);
      color: var(--retire-text-secondary);
      max-width: 32rem;
      line-height: var(--line-height-body);
    }
    .welcome-suggestions {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 0.875rem;
      max-width: 36rem;
      width: 100%;
      margin-top: 1rem;
    }
    .suggestion-card {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 1rem 1.125rem;
      background: var(--retire-surface-elevated);
      border: 0.0625rem solid var(--retire-border);
      border-radius: var(--card-radius);
      cursor: pointer;
      transition: all var(--transition-fast);
      text-align: left;
      min-height: var(--touch-min);
    }
    .suggestion-card:hover {
      border-color: var(--retire-primary-light);
      box-shadow: var(--retire-shadow-md);
      transform: translateY(-0.0625rem);
    }
    .suggestion-icon {
      width: 2.5rem;
      height: 2.5rem;
      border-radius: 0.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.125rem;
      flex-shrink: 0;
    }
    .suggestion-text {
      font-size: 0.9375rem;
      font-weight: 600;
      color: var(--retire-text);
      line-height: 1.4;
    }

    /* ---- Recommendations Panel ---- */
    .recs-panel {
      width: 16rem;
      flex-shrink: 0;
      background: var(--retire-surface);
      border-left: 0.0625rem solid var(--retire-border);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      transition: transform var(--transition-normal);
    }
    .recs-header {
      padding: 1rem;
      border-bottom: 0.0625rem solid var(--retire-border);
      font-size: var(--font-label);
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-shrink: 0;
    }
    .recs-header i { color: var(--retire-accent); }
    .recs-list {
      flex: 1;
      overflow-y: auto;
      padding: 0.75rem;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }
    .recs-list::-webkit-scrollbar { width: 0.25rem; }
    .recs-list::-webkit-scrollbar-thumb {
      background: var(--retire-border);
      border-radius: 1rem;
    }
    .rec-card {
      background: var(--retire-surface-elevated);
      border: 0.0625rem solid var(--retire-border);
      border-radius: 0.625rem;
      padding: 0.875rem;
      transition: box-shadow var(--transition-fast);
    }
    .rec-card:hover { box-shadow: var(--retire-shadow-md); }
    .rec-category {
      display: inline-flex;
      align-items: center;
      font-size: 0.6875rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      padding: 0.1875rem 0.5rem;
      border-radius: 0.875rem;
      margin-bottom: 0.5rem;
    }
    .rec-cat-health { background: #D1FAE5; color: #065F46; }
    .rec-cat-financial { background: #DBEAFE; color: #1E40AF; }
    .rec-cat-community { background: #EDE9FE; color: #5B21B6; }
    .rec-cat-travel { background: #FEF3C7; color: #92400E; }
    .rec-cat-lifestyle { background: #FFE4E6; color: #9F1239; }
    [data-theme="dark"] .rec-cat-health { background: rgba(16,185,129,0.2); color: #6EE7B7; }
    [data-theme="dark"] .rec-cat-financial { background: rgba(59,130,246,0.2); color: #93C5FD; }
    [data-theme="dark"] .rec-cat-community { background: rgba(139,92,246,0.2); color: #C4B5FD; }
    [data-theme="dark"] .rec-cat-travel { background: rgba(245,158,11,0.2); color: #FCD34D; }
    [data-theme="dark"] .rec-cat-lifestyle { background: rgba(225,29,72,0.2); color: #FDA4AF; }
    .rec-title {
      font-size: 0.9375rem;
      font-weight: 700;
      color: var(--retire-text);
      margin-bottom: 0.25rem;
    }
    .rec-desc {
      font-size: 0.8125rem;
      color: var(--retire-text-secondary);
      line-height: 1.5;
      margin-bottom: 0.625rem;
    }
    .rec-actions {
      display: flex;
      gap: 0.375rem;
    }
    .rec-action-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      padding: 0.375rem 0.625rem;
      font-size: 0.75rem;
      font-weight: 600;
      border-radius: 0.375rem;
      border: none;
      cursor: pointer;
      min-height: var(--touch-min);
      transition: all var(--transition-fast);
    }
    .rec-action-view {
      background: var(--retire-primary);
      color: #FFFFFF;
    }
    .rec-action-view:hover { background: var(--retire-primary-dark); }
    .rec-action-dismiss {
      background: transparent;
      color: var(--retire-text-muted);
      border: 0.0625rem solid var(--retire-border);
    }
    .rec-action-dismiss:hover {
      background: var(--retire-card-hover-bg);
    }
    .recs-empty {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
      padding: 2rem 1rem;
      text-align: center;
      color: var(--retire-text-muted);
      font-size: 0.875rem;
    }
    .recs-empty i { font-size: 1.5rem; opacity: 0.5; }

    /* ---- Loading State ---- */
    .sidebar-loading {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 2rem;
    }

    /* ---- Mobile Overlay ---- */
    .sidebar-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: var(--retire-overlay);
      z-index: 40;
    }
    .sidebar-overlay.visible { display: block; }

    /* ---- Responsive ---- */
    @media (max-width: 64rem) {
      .recs-panel { display: none; }
      .recs-panel.mobile-open {
        display: flex;
        position: fixed;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 55;
        box-shadow: var(--retire-shadow-lg);
      }
      .btn-recs-toggle { display: flex; }
    }
    @media (max-width: 48rem) {
      .concierge-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        box-shadow: var(--retire-shadow-lg);
      }
      .concierge-sidebar.mobile-open {
        transform: translateX(0);
      }
      .btn-sidebar-toggle { display: flex; }
      .msg-row { max-width: 90%; }
      .welcome-suggestions {
        grid-template-columns: 1fr;
      }
    }
