/* AI Mode styles, part 2 of 6 (loaded in order). */
    .topbar-menu-items a:hover { background:rgba(255,255,255,.1); color:var(--tl-white, #FFFFFF); }
    .topbar-nav-sep { width:1px; height:16px; background:rgba(0,61,76,.12); margin:0 8px; flex-shrink:0; }
    .topbar-ai-exit {
      color:var(--tl-cobalt, #005587) !important; font-weight:700 !important;
      font-size:18px;
      text-decoration:none; font-family:var(--tl-font-sans);
      white-space:nowrap;
      padding:6px 11px; border-radius:8px;
      transition:background .2s !important;
    }
    .topbar-ai-exit:hover { background:rgba(0,99,65,.08) !important; }

    
    .layout { display:flex; height:calc(100vh - 64px); }

    
    .sidebar {
      width:296px; min-width:296px; background:var(--tl-evergreen, #006341); background:linear-gradient(180deg, var(--tl-deep-ocean, #003D4C) 0%, var(--tl-evergreen, #006341) 100%);
      border-right:none;
      display:flex; flex-direction:column; overflow:hidden;
      padding:14px 13px 0 13px;
      transition:width .28s var(--tl-ease-emphasized), min-width .28s var(--tl-ease-emphasized), padding .28s var(--tl-ease-emphasized), border-color .28s var(--tl-ease-emphasized);
    }
    .sidebar.collapsed { width:0; min-width:0; padding:0; border-color:transparent; }
    .sidebar::-webkit-scrollbar { width:3px; }
    .sidebar::-webkit-scrollbar-thumb { background:var(--tl-card-border, #E7E9E9); border-radius:4px; }

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

    
    .sidebar-toggle {
      display:flex; align-items:center; justify-content:center;
      width:30px; height:30px; border-radius:8px; border:none;
      background:transparent; cursor:pointer; color:var(--tl-white, #FFFFFF);
      padding:0; flex-shrink:0; transition:background .18s, color .18s;
    }
    .sidebar-toggle:hover { background:rgba(255,255,255,.15); color:var(--tl-white, #FFFFFF); }

    
    .sidebar-role-header {
      display:flex; align-items:center; gap:6px; cursor:pointer; flex:1;
      border:none; background:none; padding:0; font-family:inherit;
    }
    .sidebar-role-header:hover .sidebar-label { color:var(--tl-citron, #ECE81A); }
    .sidebar-role-header:hover .role-chevron { color:var(--tl-citron, #ECE81A); }
    .role-chevron { color:var(--tl-white, #FFFFFF); transition:transform .22s; flex-shrink:0; }
    .role-chevron-collapsed { transform:rotate(-90deg); }

    
    .sidebar-reopen {
      display:none; align-items:center; justify-content:center;
      position:absolute; top:14px; left:16px; z-index:10;
      width:32px; height:32px; border-radius:8px; border:1px solid rgba(0,61,76,.1);
      background:var(--tl-white, #FFFFFF); cursor:pointer; color:rgba(0,61,76,.5);
      padding:0; box-shadow:0 1px 6px rgba(0,61,76,.08);
      transition:background .18s, color .18s;
    }
    .sidebar-reopen:hover { background:rgba(0,61,76,.04); color:var(--tl-deep-ocean, #003D4C); }

    .sidebar-label {
      font-size:10.5px; letter-spacing:1.8px; text-transform:uppercase;
      color:var(--tl-white, #FFFFFF); font-weight:700;
    }
    .persona-card {
      display:flex; align-items:center; gap:10px; padding:6px 12px; width:calc(100% + 6px);
      border:1px solid var(--tl-card-border, #E7E9E9); border-radius:8px;
      cursor:pointer; margin-bottom:4px; transition:transform .2s var(--tl-ease-emphasized), box-shadow .2s var(--tl-ease-emphasized), border-color .2s var(--tl-ease-emphasized), background .2s var(--tl-ease-emphasized); background:var(--tl-white, #FFFFFF);
    }
    

    .persona-icon-wrap {
      width:30px; height:30px; border-radius:8px;
      background:rgba(0,61,76,.06); display:flex; align-items:center; justify-content:center;
      flex-shrink:0; color:var(--tl-deep-ocean, #003D4C); transition:background .2s, color .2s; overflow:visible;
    }
    .persona-name { font-size:13px; font-weight:600; color:var(--tl-text-primary, #323F4B); margin-bottom:1px; line-height:1.2; }
    .persona-desc { font-size:11.5px; color:var(--tl-gray-50, #929292); line-height:1.2; }

    
    .edit-profile-overlay { position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:9999; display:flex; align-items:center; justify-content:center; }
    .edit-profile-modal { background:var(--tl-white, #FFFFFF); border-radius:14px; width:480px; max-width:92vw; max-height:90vh; overflow-y:auto; padding:24px 30px; box-shadow:0 20px 60px rgba(0,0,0,.25); }
    .edit-profile-modal h2 { font-size:18px; font-weight:var(--tl-weight-bold, 700); color:var(--tl-deep-ocean, #003D4C); margin:0 0 2px; text-transform:uppercase; letter-spacing:.025em; }
    .edit-profile-modal .edit-profile-subtitle { font-size:12px; color:var(--tl-text-secondary, #5B6770); margin:0 0 14px; }
    .edit-profile-field { margin-bottom:10px; }
    .edit-profile-field label { display:block; font-size:11px; font-weight:600; color:var(--tl-text-secondary, #5B6770); text-transform:uppercase; letter-spacing:.8px; margin-bottom:3px; }
    .edit-profile-field input, .edit-profile-field select { width:100%; padding:8px 11px; font-size:13.5px; font-family:inherit; border:1.5px solid rgba(0,61,76,.15); border-radius:8px; background:var(--tl-white, #FFFFFF); color:var(--tl-text-primary, #323F4B); }
    .edit-profile-field input:focus, .edit-profile-field select:focus { outline:none; border-color:var(--tl-evergreen, #006341); box-shadow:0 0 0 3px rgba(0,99,65,.1); }
    .edit-profile-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
    .edit-profile-btns { display:flex; gap:10px; margin-top:14px; }
    .edit-profile-btns button { flex:1; padding:9px; border-radius:8px; font-size:13.5px; font-weight:600; font-family:inherit; cursor:pointer; transition:all .2s; }
    .edit-profile-save { background:var(--tl-deep-ocean, #003D4C); color:var(--tl-citron, #ECE81A); border:none; }
    .edit-profile-save:hover { background:var(--tl-evergreen, #006341); }
    .edit-profile-cancel { background:var(--tl-white, #FFFFFF); color:var(--tl-text-secondary, #5B6770); border:1.5px solid rgba(0,61,76,.15); }
    .edit-profile-cancel:hover { border-color:var(--tl-deep-ocean, #003D4C); color:var(--tl-deep-ocean, #003D4C); }
    
    .sidebar-user-header { cursor:pointer; }
    .sidebar-user-header:hover .sidebar-user-name { color:var(--tl-citron, #ECE81A); }

    
    .sidebar-section-hd { display:flex; align-items:center; gap:5px; cursor:pointer; border:none; background:none; padding:6px 0; font-family:inherit; }
    .sidebar-section-hd:hover .sidebar-section-label { color:var(--tl-citron, #ECE81A); }
    .sidebar-section-hd:hover .sidebar-section-chevron { color:var(--tl-citron, #ECE81A); }
    .sidebar-section-label { font-size:9.5px; letter-spacing:1.8px; text-transform:uppercase; color:var(--tl-white, #FFFFFF); font-weight:700; text-align:left; white-space:nowrap; }
    .sidebar-section-chevron { width:11px; height:11px; color:var(--tl-white, #FFFFFF); transition:transform .22s; flex-shrink:0; }
    .sidebar-section-chevron.collapsed { transform:rotate(-90deg); }
    
    .selector-cards.locked .persona-card:not(.active),
    .selector-cards.locked .sc-card:not(.active) { display:none; }
    .selector-cards.locked .persona-card.active,
    .selector-cards.locked .sc-card.active { cursor:pointer; }
    
    .selector-cards.locked .persona-card.active::after,
    .selector-cards.locked .sc-card.active::after { content:'✕'; position:absolute; top:7px; right:10px; font-size:10.5px; color:rgba(255,255,255,.6); font-weight:400; }
    .persona-card, .sc-card { position:relative; }
    
    .other-input-row { display:none; margin-bottom:6px; }
    .other-input-row.visible { display:flex; }
    .other-input-row input { flex:1; padding:8px 12px; font-size:12px; font-family:inherit; border:1.5px solid rgba(0,61,76,.15); border-radius:8px; background:var(--tl-white, #FFFFFF); color:var(--tl-text-primary, #323F4B); }
    .other-input-row input:focus { outline:none; border-color:var(--tl-evergreen, #006341); box-shadow:0 0 0 3px rgba(0,99,65,.1); }
    
    .other-input-row button { margin-left:6px; padding:8px 12px; border:none; border-radius:8px; background:var(--tl-tidal, #007E9E); color:var(--tl-citron, #ECE81A); font-size:11px; font-weight:600; font-family:inherit; cursor:pointer; transition:background .18s; }
    .other-input-row button:hover { background:var(--tl-deep-ocean, #003D4C); }
    
    .sc-card {
      display:flex; align-items:center; gap:10px; padding:6px 12px; width:calc(100% + 6px);
      border:1px solid var(--tl-card-border, #E7E9E9); border-radius:8px;
      cursor:pointer; margin-bottom:4px; transition:transform .2s var(--tl-ease-emphasized), box-shadow .2s var(--tl-ease-emphasized), border-color .2s var(--tl-ease-emphasized), background .2s var(--tl-ease-emphasized); background:var(--tl-white, #FFFFFF); position:relative;
    }
    
    
    .auth-profile-card { position:relative; background:var(--tl-white, #FFFFFF); border:1.5px solid rgba(255,255,255,.25); border-radius:12px; padding:14px; margin-bottom:4px; cursor:pointer; transition:all .2s; }
    .auth-profile-card:hover { border-color:rgba(255,255,255,.5); background:rgba(255,255,255,.8); box-shadow:0 2px 8px rgba(0,0,0,.08); }
    .auth-profile-card::after { content:'Edit'; position:absolute; top:10px; right:12px; font-size:9.5px; letter-spacing:.5px; text-transform:uppercase; color:rgba(0,99,65,.7); font-weight:600; opacity:0; transition:opacity .2s; }
    .auth-profile-card:hover::after { opacity:1; }
    .auth-profile-name { font-size:14px; font-weight:600; color:var(--tl-deep-ocean, #003D4C); margin-bottom:2px; }
    .auth-profile-meta { font-size:11px; color:var(--tl-text-secondary, #5B6770); line-height:1.4; }
    .auth-profile-meta strong { color:var(--tl-deep-ocean, #003D4C); font-weight:600; }
    
    .auth-profile-header { display:flex; align-items:center; gap:6px; cursor:pointer; border:none; background:none; padding:0; font-family:inherit; flex:1; color:var(--tl-white, #FFFFFF); }
    .auth-profile-header:hover .auth-profile-label { color:var(--tl-citron, #ECE81A); }
    .auth-profile-header:hover .auth-profile-chevron { color:var(--tl-citron, #ECE81A); }
    .auth-profile-label { font-size:10.5px; letter-spacing:1.8px; text-transform:uppercase; color:var(--tl-white, #FFFFFF); font-weight:700; white-space:nowrap; }
    .auth-profile-chevron { width:11px; height:11px; color:var(--tl-white, #FFFFFF); transition:transform .25s; flex-shrink:0; }
    .auth-profile-chevron.collapsed { transform:rotate(-90deg); }
    
    .sidebar.auth-mode #personaCardsArea { display:none; }
    .sidebar.auth-mode #scPositionArea { display:none; }
    .sidebar.auth-mode #scHeaderBtn { display:none !important; }
    .sidebar.auth-mode .sidebar-header #authProfileHeaderBtn { display:flex !important; }

    .sidebar-divider { border:none; border-top:1px solid rgba(0,61,76,.07); margin:14px 0 12px; }
    .sidebar-prompts-section { display:none; }
    .sidebar-prompts-label {
      font-size:10.5px; letter-spacing:1.8px; text-transform:uppercase;
      color:rgba(0,61,76,.38); font-weight:700; margin-bottom:12px;
    }
    .sidebar-prompt {
      padding:11px 13px; border-radius:8px; cursor:pointer; margin-bottom:6px;
      font-size:13px; color:var(--tl-text-secondary, #5B6770); transition:all .2s; line-height:1.45;
      background:rgba(0,61,76,.025); border:1px solid transparent;
    }
    .sidebar-prompt:hover { background:rgba(0,99,65,.06); border-color:rgba(0,99,65,.2); color:var(--tl-deep-ocean, #003D4C); }
    .sidebar-prompt.active { background:var(--tl-deep-ocean, #003D4C); color:var(--tl-white, #FFFFFF); border-color:var(--tl-deep-ocean, #003D4C); }

    
    .sidebar-scroll { flex:1; overflow-y:auto; min-height:0; padding-right:8px; display:flex; flex-direction:column; }
    .sidebar-scroll::-webkit-scrollbar { width:3px; }
    .sidebar-scroll::-webkit-scrollbar-thumb { background:rgba(255,255,255,.3); border-radius:4px; }
    
    .chat-history-list { flex:1; overflow-y:auto; min-height:0; display:flex; flex-direction:column; gap:4px; }
    .chat-history-list::-webkit-scrollbar { width:3px; }
    .chat-history-list::-webkit-scrollbar-thumb { background:rgba(255,255,255,.3); border-radius:4px; }

    
    .sidebar-auth { background:transparent; padding:0; border-top:none; flex-shrink:0; }
    #sidebarLoginSection { padding-bottom:14px; }
    .btn-save-chats {
      width:100%; padding:13px 16px; border:1.5px dashed rgba(255,255,255,.4);
      border-radius:12px; background:var(--tl-white, #FFFFFF); cursor:pointer;
      display:flex; align-items:center; gap:10px; color:var(--tl-deep-ocean, #003D4C);
      font-size:13px; font-weight:500; font-family:inherit;
      transition:all .2s; text-align:left;
    }
    .btn-save-chats:hover { border-color:rgba(255,255,255,.6); background:rgba(255,255,255,.8); color:var(--tl-deep-ocean, #003D4C); }
    .sidebar-user-header { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
    .sidebar-user-avatar {
      width:32px; height:32px; border-radius:50%; background:var(--tl-deep-ocean, #003D4C);
      color:var(--tl-citron, #ECE81A); font-size:12px; font-weight:700;
      display:flex; align-items:center; justify-content:center; flex-shrink:0;
    }
    .sidebar-user-name { font-size:13px; font-weight:600; color:var(--tl-white, #FFFFFF); }
    .sidebar-user-company { font-size:11.5px; color:rgba(255,255,255,.6); }
    .btn-logout {
      margin-left:auto; font-size:11px; color:rgba(255,255,255,.7); border:none; background:none;
      cursor:pointer; padding:4px 8px; border-radius:5px; transition:all .2s; font-family:inherit;
    }
    .btn-logout:hover { background:rgba(255,255,255,.15); color:var(--tl-white, #FFFFFF); }
    .chat-history-label {
      font-size:10.5px; letter-spacing:1.8px; text-transform:uppercase;
      color:var(--tl-white, #FFFFFF); font-weight:700; margin-bottom:10px;
    }
    .chat-history-list { display:flex; flex-direction:column; gap:2px; }
    .chat-history-item {
      padding:7px 12px; border-radius:8px; cursor:pointer;
      border:1px solid transparent; transition:all .2s; background:rgba(255,255,255,.08);
    }
    .chat-history-item:hover { background:rgba(255,255,255,.2); border-color:rgba(255,255,255,.3); }
    .chat-history-item.active-chat { background:rgba(255,255,255,.25); border-color:rgba(255,255,255,.4); }
    .chi-name { font-size:12.5px; color:var(--tl-white, #FFFFFF); font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .chi-time { font-size:11px; color:rgba(255,255,255,.5); margin-top:2px; }
    .chat-history-item { position:relative; }
    .chat-history-item .chi-row { display:flex; align-items:center; gap:6px; }
    .chat-history-item .chi-info { flex:1; min-width:0; }
    .chat-history-item .chi-pin-icon { flex-shrink:0; color:rgba(255,255,255,.5); font-size:11px; margin-right:2px; display:none; }
    .chat-history-item.pinned .chi-pin-icon { display:block; }
    .chat-history-item .chi-dots-btn {
      flex-shrink:0; width:22px; height:22px; border:none; background:transparent;
      color:rgba(255,255,255,.4); cursor:pointer; border-radius:4px; padding:0;
      display:flex; align-items:center; justify-content:center;
      opacity:0; transition:opacity .15s;
    }
    .chat-history-item:hover .chi-dots-btn { opacity:1; }
    .chat-history-item .chi-dots-btn:hover { background:rgba(255,255,255,.15); color:var(--tl-white, #FFFFFF); }
    .chi-dropdown {
      position:fixed; z-index:99999;
      background:var(--tl-deep-ocean, #003D4C); border:1px solid rgba(255,255,255,.18);
      border-radius:8px; min-width:140px; padding:4px 0;
      box-shadow:0 8px 24px rgba(0,0,0,.4); display:none;
      animation:chiDropIn .12s var(--tl-ease-emphasized);
    }
    @keyframes chiDropIn { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }
    .chi-dropdown.show { display:block; }
    .chi-dropdown-item {
      display:flex; align-items:center; gap:8px; padding:8px 14px;
      font-size:12.5px; color:var(--tl-white, #FFFFFF); cursor:pointer; transition:background .12s;
      border:none; background:none; width:100%; font-family:inherit; text-align:left;
    }
    .chi-dropdown-item:hover { background:rgba(255,255,255,.1); }
    .chi-dropdown-item svg { flex-shrink:0; }
    .chi-dropdown-item.delete-item { color:rgba(255,255,255,.55); }
    .chi-dropdown-item.delete-item:hover { color:var(--tl-danger, #BE0000); background:rgba(229,115,115,.1); }
    .chi-rename-input {
      background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.3);
      border-radius:4px; color:var(--tl-white, #FFFFFF); font-size:12.5px; font-weight:500;
      padding:2px 6px; width:100%; font-family:inherit; outline:none;
    }
    .chi-rename-input:focus { border-color:rgba(255,255,255,.5); }
    .chat-history-empty { font-size:12.5px; color:rgba(255,255,255,.6); padding:10px 0; text-align:center; }
    .btn-new-chat {
      width:100%; padding:10px; border:1.5px solid rgba(255,255,255,.25);
      border-radius:8px; background:var(--tl-white, #FFFFFF); cursor:pointer;
      font-size:13px; font-weight:600; color:var(--tl-deep-ocean, #003D4C); font-family:inherit;
      transition:all .2s; margin:10px 0 8px;
      display:flex; align-items:center; justify-content:center; gap:7px;
    }
    .btn-new-chat:hover { border-color:rgba(255,255,255,.5); background:rgba(255,255,255,.8); box-shadow:0 2px 8px rgba(0,0,0,.08); }

    
    .btn-login-nav {
      background:var(--tl-white, #FFFFFF); border:2px solid var(--tl-deep-ocean, #003D4C);
      border-radius:360px; padding:9px 22px; color:var(--tl-deep-ocean, #003D4C) !important;
      font-size:14px; font-weight:600; cursor:pointer;
      transition:border-color .2s, background .2s !important; font-family:inherit;
      display:flex; align-items:center; gap:8px; letter-spacing:.2px;
    }
    .btn-login-nav:hover { background:var(--tl-deep-ocean, #003D4C) !important; color:var(--tl-white, #FFFFFF) !important; }
    .user-badge-nav {
      display:flex; align-items:center; gap:8px; cursor:pointer;
      color:var(--tl-deep-ocean, #003D4C) !important; font-size:13px; font-weight:500;
      padding:6px 14px; border-radius:360px; text-decoration:none;
      background:rgba(0,61,76,.06); border:1px solid rgba(0,61,76,.15);
      transition:background .2s;
    }
    .user-badge-nav:hover { background:rgba(255,255,255,.18) !important; }
    .user-badge-avatar {
      width:26px; height:26px; border-radius:50%; background:var(--tl-citron, #ECE81A);
      color:var(--tl-deep-ocean, #003D4C); font-size:11px; font-weight:700;
      display:flex; align-items:center; justify-content:center; flex-shrink:0;
    }

    
    .modal-overlay {
      position:fixed; inset:0; z-index:1000;
      background:rgba(0,0,0,.5); backdrop-filter:blur(4px);
      display:flex; align-items:center; justify-content:center; padding:24px;
    }
    .modal-box {
      background:var(--tl-white, #FFFFFF); border-radius:16px; width:500px; max-width:100%;
      max-height:90vh; overflow-y:auto;
      padding:28px 32px; box-shadow:0 24px 64px rgba(0,0,0,.2); position:relative;
    }
    .modal-close {
      position:absolute; top:16px; right:16px; border:none; background:none;
      cursor:pointer; color:var(--tl-gray-50, #929292); font-size:22px; line-height:1; padding:4px 8px;
      border-radius:8px; transition:background .2s, color .2s;
    }
    .modal-close:hover { background:var(--tl-slate-10, #F0F1F1); color:var(--tl-text-primary, #323F4B); }
    .modal-title { font-size:20px; font-weight:var(--tl-weight-bold, 700); color:var(--tl-deep-ocean, #003D4C); margin-bottom:4px; text-transform:uppercase; letter-spacing:.025em; }
    .modal-subtitle { font-size:13px; color:var(--tl-text-muted, #7C7C7C); margin-bottom:18px; }
    .form-row { margin-bottom:12px; }
    .form-row label { display:block; font-size:12px; font-weight:600; color:var(--tl-text-secondary, #5B6770); margin-bottom:4px; letter-spacing:.3px; }
    .form-row input, .form-row select {
      width:100%; padding:9px 13px; border:1.5px solid var(--tl-card-border, #E7E9E9); border-radius:8px;
      font-size:14px; color:var(--tl-text-primary, #323F4B); background:var(--tl-white, #FFFFFF); outline:none;
      transition:border-color .2s; font-family:inherit;
    }
    .form-row input:focus, .form-row select:focus { border-color:var(--tl-evergreen, #006341); }
    .form-row .optional { color:var(--tl-gray-50, #929292); font-weight:400; font-size:11px; margin-left:4px; }
    .form-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
    .btn-modal-submit {
      width:100%; padding:11px; background:var(--tl-deep-ocean, #003D4C); color:var(--tl-white, #FFFFFF);
      border:none; border-radius:12px; font-size:14px; font-weight:600;
      cursor:pointer; margin-top:6px; transition:background .2s; font-family:inherit;
    }
    .btn-modal-submit:hover { background:rgb(0,80,100); }
    .modal-welcome { text-align:center; padding:20px 0; }
    .modal-welcome-avatar {
      width:52px; height:52px; border-radius:50%; background:var(--tl-deep-ocean, #003D4C);
      color:var(--tl-citron, #ECE81A); font-size:18px; font-weight:700;
      display:flex; align-items:center; justify-content:center; margin:0 auto 14px;
    }
    .modal-welcome-name { font-size:18px; font-weight:700; color:var(--tl-deep-ocean, #003D4C); margin-bottom:4px; }
    .modal-welcome-sub { font-size:13px; color:var(--tl-text-muted, #7C7C7C); margin-bottom:20px; }

    
    .chat-area { flex:1; display:flex; flex-direction:column; min-width:0; background:var(--tl-surface-subtle, #F4F4F4); position:relative; overflow:hidden; }

    
    .chat-area.welcome-mode .chat-messages { flex:1; display:flex; align-items:center; justify-content:center; overflow:visible; padding-bottom:0; min-height:0; }
    .chat-area.welcome-mode .welcome-state { min-height:auto; padding-bottom:12px; }
    
    .chat-area.welcome-mode #skillsBar { display:none; }
    
    .welcome-skills { display:flex; align-items:center; gap:10px; padding:12px 0 4px; }
    .welcome-skills-label { font-size:10.5px; letter-spacing:1.8px; text-transform:uppercase; color:rgba(0,61,76,.38); font-weight:700; flex-shrink:0; }

    
    .welcome-state .input-bar {
      border-top:none; background:transparent;
      padding:20px 0 4px; width:620px; max-width:100%;
    }
    .welcome-state .input-inner { max-width:none; margin:0; }

    .chat-messages {
      flex:1; overflow-y:auto; padding:32px 40px 36px;
      display:flex; flex-direction:column; gap:28px; align-items:center;
      min-width:0; max-width:100%;
    }
    .chat-messages::-webkit-scrollbar { width:4px; }
    .chat-messages::-webkit-scrollbar-thumb { background:var(--tl-slate-30, #D0D3D4); border-radius:4px; }

    
    .welcome-state {
      display:flex; flex-direction:column; align-items:center;
      min-height:100%; text-align:center; padding:0 24px 0;
      justify-content:center; margin-top:-60px;
    }
    .welcome-sparkle { color:var(--tl-deep-ocean, #003D4C); margin-bottom:14px; opacity:.85; }
    .welcome-state h2 {
      font-family:var(--tl-font-sans);
      font-size:34px; font-weight:var(--tl-weight-bold, 700); color:var(--tl-deep-ocean, #003D4C); line-height:1.15;
      margin-bottom:10px; letter-spacing:.025em; text-transform:uppercase;
    }
    .welcome-state p {
      font-size:16px; font-weight:var(--tl-weight-medium, 500); color:var(--tl-text-secondary, #5B6770); max-width:560px; line-height:1.6; margin-bottom:28px;
    }
    .welcome-prompts { display:grid; grid-template-columns:1fr 1fr; gap:12px; max-width:620px; width:100%; margin-top:48px; }
    .welcome-prompt-card {
      padding:18px 22px; background:var(--tl-white, #FFFFFF);
      border:1.5px solid rgba(0,61,76,.1); border-radius:12px;
      cursor:pointer; text-align:left; transition:all .22s;
    }
    .welcome-prompt-card:hover {
      border-color:var(--tl-evergreen, #006341);
      box-shadow:0 6px 24px rgba(0,61,76,.09); transform:translateY(-2px);
    }
    .wpc-tag {
      font-size:10px; letter-spacing:1.6px; text-transform:uppercase;
      color:var(--tl-evergreen, #006341); font-weight:700; margin-bottom:10px;
    }
    .wpc-text { font-size:13.5px; color:var(--tl-text-primary, #323F4B); line-height:1.5; font-weight:500; }

    
    .msg-row { display:flex; gap:14px; max-width:820px; width:100%; min-width:0; }
    .msg-row.user { justify-content:flex-end; }
    .msg-row.ai { justify-content:flex-start; }

    .ai-avatar {
      width:34px; height:34px; border-radius:9px;
      display:flex; align-items:center; justify-content:center;
      flex-shrink:0; margin-top:3px; overflow:hidden;
    }
    .user-bubble {
      background:var(--tl-deep-ocean, #003D4C); color:var(--tl-white, #FFFFFF); padding:14px 20px;
      border-radius:20px 20px 4px 20px; font-size:14px; line-height:1.6; max-width:560px;
    }
    .ai-bubble {
      background:var(--tl-white, #FFFFFF); padding:24px 28px;
      border-radius:4px 20px 20px 20px; font-size:14px; line-height:1.75; max-width:100%;
      box-shadow:0 2px 18px rgba(0,61,76,.07);
      overflow-wrap:break-word; word-break:break-word;
    }
    .ai-bubble p { margin-bottom:12px; }
    .ai-bubble p:last-child { margin-bottom:0; }
    .ai-bubble strong { color:var(--tl-deep-ocean, #003D4C); }
    
    .inline-stats-row {
      display:flex; gap:0; margin:20px 0;
      border:1px solid rgba(0,61,76,.1); border-radius:12px; overflow:hidden;
    }
    .inline-stat {
      flex:1; padding:16px 20px; border-right:1px solid rgba(0,61,76,.08);
      display:flex; flex-direction:column; gap:3px; background:var(--tl-white, #FFFFFF);
    }
    .inline-stat:last-child { border-right:none; }
    .inline-stat-val {
      font-family:var(--tl-font-sans);
      font-size:28px; font-weight:700; color:var(--tl-deep-ocean, #003D4C); line-height:1;
    }
    .inline-stat-label { font-size:11.5px; color:var(--tl-gray-50, #929292); line-height:1.35; }
    
    .resp-section {
      font-size:10.5px; letter-spacing:1.5px; text-transform:uppercase;
      color:rgba(0,61,76,.38); font-weight:700; margin:24px 0 12px;
      padding-bottom:8px; border-bottom:1px solid rgba(0,61,76,.07);
    }
    .followup-chips { display:flex; flex-direction:column; align-items:flex-start; gap:8px; margin-top:4px; }
    .followup-chip {
      display:inline-block; padding:10px 20px; border:1.5px solid rgba(0,61,76,.15); border-radius:360px;
      font-size:13px; font-weight:500; cursor:pointer; color:var(--tl-deep-ocean, #003D4C);
      background:rgba(0,61,76,.03); transition:all .2s; font-family:inherit;
      text-align:left; max-width:100%; white-space:normal; line-height:1.4;
    }
    .followup-chip:hover { background:var(--tl-deep-ocean, #003D4C); color:var(--tl-white, #FFFFFF); border-color:var(--tl-deep-ocean, #003D4C); }
    .ai-bubble ul { padding-left:20px; margin:10px 0; }
    .ai-bubble ul li { margin-bottom:5px; }

    
    .stats-bar {
      display:flex; gap:0; margin:20px 0;
      border:1px solid rgba(0,61,76,.1); border-radius:12px; overflow:hidden;
    }
    .stat-item { flex:1; padding:16px 20px; border-right:1px solid rgba(0,61,76,.08); }
    .stat-item:last-child { border-right:none; }
    .stat-val {
      font-family:var(--tl-font-sans);
      font-size:28px; font-weight:700; color:var(--tl-deep-ocean, #003D4C); margin-bottom:3px; line-height:1;
    }
    .stat-label { font-size:11.5px; color:var(--tl-gray-50, #929292); line-height:1.35; }

    
    .resp-section {
      font-size:10.5px; letter-spacing:1.5px; text-transform:uppercase;
      color:rgba(0,61,76,.38); font-weight:700; margin:24px 0 12px;
      padding-bottom:8px; border-bottom:1px solid rgba(0,61,76,.07);
    }
