:root{color-scheme:light;--surface-0: #ffffff;--surface-100: #f3f3f3;--surface-200: #ececec;--background-tooltip: rgba(0, 0, 0, .75);--border-default: #ebebeb;--border-primary-default: #0091f9;--text-default: rgba(4, 13, 20, .9);--text-subdued: rgba(4, 13, 20, .53);--text-highlight: #1f77f2;--text-on-primary: #ffffff;--text-critical: #ff3730;--surface-critical-subdued: rgba(255, 55, 48, .06);--other-backdrop: rgba(0, 6, 15, .24);--action-primary-default: #0091f9;--action-secondary-default: #f3f3f3;--action-secondary-hovered: #ececec;--icon-primary-default: #0d99ff;--icon-default: rgba(4, 13, 20, .9);--icon-subdued: rgba(4, 13, 20, .53);--icon-on-primary: #ffffff;--icon-critical: #ff3730;--radius-4: 4px;--radius-8: 8px;--radius-12: 12px;--radius-full: 999px;--border-input: #f2f2f2;--border-input-focus: #0d99ff;--text-neutral-default: #1e1e1e;--text-neutral-subdued: rgba(30, 30, 30, .53);--shadow-s: 0px 2px 8px 0px rgba(35, 44, 96, .12);--shadow-card: 0px 2px 4px 0px rgba(35, 44, 96, .12);--shadow-logo: 0px 1px 17px 0px rgba(31, 119, 242, .12);--font-family: "Inter", system-ui, -apple-system, sans-serif;--font-weight-400: 400;--font-weight-500: 500;--font-weight-600: 600;--font-weight-700: 700;--font-size-50: 12px;--font-size-100: 14px;--font-size-600: 32px;--line-height-50: 16px;--line-height-100: 20px;--line-height-500: 40px;--letter-spacing-50: .01px;--letter-spacing-100: -.09px;--letter-spacing-600: -.69px}*{box-sizing:border-box}html,body{margin:0;padding:0;background:var(--surface-0);color:var(--text-default);font-family:var(--font-family);font-size:var(--font-size-100);line-height:var(--line-height-100);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#app{min-height:100vh}.screen{display:flex;min-height:100vh;background:var(--surface-0)}.sidebar{position:relative;width:var(--sidebar-width, 240px);flex-shrink:0;background:var(--surface-0);border-right:1px solid var(--border-default);padding:16px;display:flex;flex-direction:column;justify-content:space-between}.sidebar-top{display:flex;flex-direction:column;gap:40px}.brand-row{display:flex;align-items:center;justify-content:center;width:100%}.brand{display:flex;align-items:center;height:55px}.brand-logo{display:block;height:55px;width:auto}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;background:transparent;border-radius:var(--radius-4);color:var(--icon-default);cursor:pointer;padding:0;transition:background-color .15s ease}.icon-btn:hover{background:var(--action-secondary-hovered)}.sidebar-section{display:flex;flex-direction:column;gap:20px}.btn-primary{display:flex;align-items:center;justify-content:center;gap:4px;width:100%;height:32px;padding:6px 12px 6px 8px;background:var(--action-primary-default);color:var(--text-on-primary);border:none;border-radius:var(--radius-4);font-family:var(--font-family);font-weight:var(--font-weight-500);font-size:var(--font-size-100);line-height:var(--line-height-100);letter-spacing:var(--letter-spacing-100);cursor:pointer;transition:opacity .15s ease}.btn-primary:hover{opacity:.7}.chats{display:flex;flex-direction:column;gap:12px}.chats-label{margin:0;font-family:var(--font-family);font-weight:var(--font-weight-500);font-size:var(--font-size-100);line-height:var(--line-height-100);letter-spacing:var(--letter-spacing-100);color:var(--text-subdued)}.chat-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.chat-item{position:relative;display:flex;align-items:center;gap:8px;height:32px;padding:8px 4px;border-radius:var(--radius-4);font-family:var(--font-family);font-weight:var(--font-weight-400);font-size:var(--font-size-50);line-height:var(--line-height-50);letter-spacing:var(--letter-spacing-50);color:var(--text-default);cursor:pointer;transition:background-color .15s ease}.chat-item:hover{background:var(--surface-100)}.chat-item-text{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-delete{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;background:transparent;border-radius:var(--radius-4);color:var(--icon-critical);cursor:pointer;transition:background-color .15s ease}.chat-delete:hover{background:var(--action-secondary-hovered)}.chat-tooltip{position:absolute;left:0;bottom:100%;margin-bottom:8px;z-index:20;width:max-content;max-width:200px;padding:6px 8px;background:var(--background-tooltip);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);border-radius:6px;box-shadow:var(--shadow-card);color:#fff;font-weight:var(--font-weight-400);font-size:var(--font-size-50);line-height:var(--line-height-50);letter-spacing:var(--letter-spacing-50);white-space:normal;pointer-events:none}.chat-tooltip:after{content:"";position:absolute;top:100%;left:16px;border:4px solid transparent;border-top-color:var(--background-tooltip)}.sidebar-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:16px;padding-top:16px;border-top:1px solid var(--border-default)}.sidebar-bottom .icon-btn{color:var(--icon-subdued)}.user-email{margin:0;font-family:var(--font-family);font-weight:var(--font-weight-500);font-size:var(--font-size-100);line-height:var(--line-height-100);letter-spacing:var(--letter-spacing-100);color:var(--text-highlight)}.main{position:relative;flex:1;min-height:100vh;overflow:hidden}.bg-gradient{position:absolute;top:64px;left:50%;transform:translate(-50%);width:100%;max-width:990px;height:724px;pointer-events:none;-webkit-user-select:none;user-select:none;display:block}.content{position:relative;width:100%;max-width:695px;margin:140px auto 0;display:flex;flex-direction:column;align-items:center;gap:20px;padding:0 16px}.main--chat .content{width:100%;max-width:none;margin:0;height:100vh;align-items:stretch;gap:0;padding-bottom:56px}.messages-wrap{position:relative;flex:1;min-height:0;width:100%}.messages{height:100%;width:100%;overflow-y:auto}.messages-inner{width:100%;max-width:695px;margin:0 auto;display:flex;flex-direction:column;gap:16px;padding:36px 16px 60px}.messages-fade{position:absolute;left:50%;transform:translate(-50%);bottom:0;width:100%;max-width:695px;height:60px;background:linear-gradient(to bottom,rgba(255,255,255,0),var(--surface-0));pointer-events:none}.msg-row{display:flex;justify-content:flex-end}.answer{display:flex;flex-direction:column;gap:6px}.answer-thought{padding:8px 12px;font-family:var(--font-family);font-weight:var(--font-weight-500);font-size:var(--font-size-100);line-height:var(--line-height-100);letter-spacing:var(--letter-spacing-100);color:var(--text-subdued)}.answer-body{padding:8px 12px;font-family:var(--font-family);font-weight:var(--font-weight-400);font-size:var(--font-size-100);line-height:1.55;letter-spacing:var(--letter-spacing-100);color:var(--text-default);white-space:pre-wrap}.copy-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin-left:12px;padding:0;border:none;background:transparent;border-radius:var(--radius-4);color:var(--icon-subdued);cursor:pointer;transition:background-color .15s ease,color .15s ease}.copy-btn:hover{background:var(--action-secondary-hovered)}.copy-btn.is-active{color:var(--icon-primary-default,#0d99ff)}.copy-btn:disabled{opacity:.55;cursor:default}.copy-tooltip{position:absolute;left:50%;bottom:100%;transform:translate(-50%);margin-bottom:8px;z-index:20;width:max-content;max-width:200px;padding:6px 8px;background:var(--background-tooltip);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);border-radius:6px;box-shadow:var(--shadow-card);color:#fff;font-family:var(--font-family);font-weight:var(--font-weight-400);font-size:var(--font-size-50);line-height:var(--line-height-50);letter-spacing:var(--letter-spacing-50);white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .12s ease}.copy-btn:hover .copy-tooltip{opacity:1}.copy-tooltip:after{content:"";position:absolute;top:100%;left:50%;transform:translate(-50%);border:4px solid transparent;border-top-color:var(--background-tooltip)}.user-bubble-wrap{position:relative;display:inline-flex;align-items:center;gap:4px;max-width:80%}.user-bubble-wrap .user-bubble{max-width:100%}.user-bubble-copy{flex-shrink:0;width:24px;height:24px;margin-left:0;opacity:0;pointer-events:none;transition:opacity .12s ease,background-color .15s ease}.user-bubble-wrap:hover .user-bubble-copy,.user-bubble-wrap:focus-within .user-bubble-copy{opacity:1;pointer-events:auto}.user-bubble{max-width:80%;padding:8px 12px;background:var(--surface-200);border-radius:var(--radius-8);font-family:var(--font-family);font-weight:var(--font-weight-500);font-size:var(--font-size-100);line-height:var(--line-height-100);letter-spacing:var(--letter-spacing-100);color:var(--text-default);white-space:pre-wrap}.loading-container{display:flex;flex-direction:column;gap:8px;padding:8px 12px}.loading-row{display:flex;align-items:center;width:100%;min-height:28px;gap:8px;padding:0}.loader-text{background:linear-gradient(90deg,var(--action-primary-default,#ec2266),var(--action-primary-default,#ec2266) 35%,color-mix(in srgb,var(--action-primary-default,#ec2266) 42%,#fff),var(--action-primary-default,#ec2266) 65%,var(--action-primary-default,#ec2266));background-size:200% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;animation:loader-shimmer-f2891946 1.8s ease-in-out infinite;font-family:var(--font-family);font-weight:var(--font-weight-500);font-size:var(--font-size-100);line-height:var(--line-height-100);letter-spacing:var(--letter-spacing-100)}.loader-stop{display:inline-flex;align-items:center;justify-content:center;position:relative;width:32px;height:32px;margin:0 0 0 auto;padding:0;border:none;background:transparent!important;color:var(--icon-subdued);cursor:pointer;flex-shrink:0;opacity:0;pointer-events:none;transition:opacity .15s ease,color .15s ease}.loading-row:hover .loader-stop{opacity:1;pointer-events:auto}.loader-stop:hover,.loader-stop:focus-visible{color:var(--icon-default);background:transparent!important}.loader-stop svg{width:16px;height:16px;display:block}.loader-stop>.chat-tooltip{left:50%;bottom:100%;transform:translate(-50%);margin-bottom:8px;opacity:0;visibility:hidden;transition:opacity .12s ease;max-width:min(320px,70vw);z-index:40;white-space:normal;overflow-wrap:anywhere}.loader-stop>.chat-tooltip:after{left:50%;transform:translate(-50%)}.loader-stop:hover>.chat-tooltip,.loader-stop:focus-visible>.chat-tooltip{opacity:1;visibility:visible}@keyframes loader-shimmer-f2891946{0%{background-position:100% 0}to{background-position:-100% 0}}.main--chat .composer{flex-shrink:0;width:100%;max-width:695px;margin:0 auto;padding:14px 16px;background:var(--surface-0)}.hero{display:flex;flex-direction:column;align-items:center;gap:20px;width:100%}.logo-circle{width:80px;height:80px;display:flex;align-items:center;justify-content:center}.logo-circle img{width:46px;height:60px;display:block}.hero-title{margin:0;font-family:var(--font-family);font-weight:var(--font-weight-600);font-size:var(--font-size-600);line-height:var(--line-height-500);letter-spacing:var(--letter-spacing-600);color:var(--text-default);text-align:center}.composer{position:relative;z-index:30;width:100%;height:120px;background:var(--surface-0);border:2px solid var(--border-primary-default);border-radius:16px;padding:14px 14px 14px 18px;display:flex;flex-direction:column;gap:12px;filter:drop-shadow(0px 2px 4px rgba(35,44,96,.12))}.composer-input{flex:1;width:100%;border:none;outline:none;resize:none;background:transparent;font-family:var(--font-family);font-weight:var(--font-weight-500);font-size:var(--font-size-100);line-height:var(--line-height-100);letter-spacing:var(--letter-spacing-100);color:var(--text-default);padding:0}.composer-input::placeholder{color:var(--text-subdued)}.composer-actions{display:flex;justify-content:flex-end;align-items:center;gap:2px}.ghost-btn{display:inline-flex;align-items:center;justify-content:center;gap:4px;height:32px;padding:6px 8px 6px 12px;background:transparent;border:none;border-radius:var(--radius-4);font-family:var(--font-family);font-weight:var(--font-weight-500);font-size:var(--font-size-100);line-height:var(--line-height-100);letter-spacing:var(--letter-spacing-100);color:var(--text-subdued);cursor:pointer;transition:background-color .15s ease}.ghost-btn:hover:not(:disabled),.ghost-btn--active{background:var(--action-secondary-hovered)}.ghost-btn:disabled{cursor:default}.model-select{position:relative;display:inline-flex}.model-menu{position:absolute;bottom:calc(100% + 6px);left:0;z-index:50;min-width:160px;display:flex;flex-direction:column;padding:6px;background:var(--surface-0);border-radius:12px;box-shadow:0 8px 16px #232c6029}.model-item{display:flex;align-items:center;gap:8px;width:100%;padding:6px 12px;border:none;background:transparent;border-radius:6px;cursor:pointer;font-family:var(--font-family);font-weight:var(--font-weight-400);font-size:var(--font-size-100);line-height:var(--line-height-100);letter-spacing:var(--letter-spacing-100);color:var(--text-default);text-align:left;transition:background-color .15s ease}.model-item:hover{background:var(--surface-100)}.model-item-label{flex:1 0 0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.model-item-check{flex-shrink:0;color:var(--icon-primary-default)}.model-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40}.send-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;border-radius:var(--radius-4);background:var(--action-primary-default);color:var(--icon-on-primary);opacity:.48;cursor:pointer}.send-btn:not(:disabled){opacity:1}.suggestions{position:relative;z-index:1;display:flex;gap:12px;width:100%}.suggestion-card{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:8px;height:88px;padding:12px;background:var(--surface-0);border:none;border-radius:var(--radius-8);box-shadow:var(--shadow-s);cursor:pointer;text-align:left;transition:box-shadow .15s ease,transform .15s ease}.suggestion-card:hover{box-shadow:0 4px 12px rgba(35,44,96,.18);transform:translateY(-1px)}.suggestion-icon{display:none;width:16px;height:16px;flex:none;flex-shrink:0}.svg-defs{position:absolute;width:0;height:0;pointer-events:none}.icon-btn svg,.btn-primary svg,.ghost-btn svg,.send-btn svg{width:16px;height:16px;flex-shrink:0}.suggestion-label{display:flex;align-self:stretch;flex:none;font-family:var(--font-family);font-weight:var(--font-weight-700);font-size:var(--font-size-50);line-height:var(--line-height-50);letter-spacing:var(--letter-spacing-50);color:var(--text-default)}.suggestion-text{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch;flex:none;font-family:var(--font-family);font-weight:var(--font-weight-400);font-size:var(--font-size-50);line-height:var(--line-height-50);letter-spacing:var(--letter-spacing-50);color:var(--text-subdued)}.suggestion-line{display:flex;align-self:stretch;font-family:var(--font-family);font-size:var(--font-size-50);line-height:var(--line-height-50);letter-spacing:var(--letter-spacing-50)}.suggestion-line:first-child{font-weight:var(--font-weight-700);color:var(--text-default)}.suggestion-line:last-child{font-weight:var(--font-weight-400);color:var(--text-subdued)}.disclaimer{position:absolute;bottom:16px;left:50%;transform:translate(-50%);margin:0;font-family:var(--font-family);font-weight:var(--font-weight-400);font-size:var(--font-size-50);line-height:var(--line-height-50);letter-spacing:var(--letter-spacing-50);color:var(--text-subdued);text-align:center;white-space:nowrap}.disclaimer a{color:var(--text-subdued);text-decoration:underline}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:16px;background:var(--other-backdrop)}.modal-wrap{display:flex;align-items:flex-start;gap:8px}.modal{display:flex;flex-direction:column;gap:24px;width:500px;max-width:calc(100vw - 80px);padding:24px;background:var(--surface-0);border-radius:var(--radius-8);box-shadow:0 8px 16px #232c6029}.modal-title-block{display:flex;flex-direction:column;gap:4px}.modal-title{margin:0;font-family:var(--font-family);font-weight:var(--font-weight-600);font-size:20px;line-height:24px;letter-spacing:-.33px;color:var(--text-default)}.modal-desc{margin:0;font-family:var(--font-family);font-weight:var(--font-weight-400);font-size:var(--font-size-100);line-height:var(--line-height-100);letter-spacing:var(--letter-spacing-100);color:var(--text-subdued)}.modal-actions{display:flex;justify-content:flex-end;gap:8px}.btn-secondary,.btn-critical{display:inline-flex;align-items:center;justify-content:center;padding:6px 12px;border:none;border-radius:var(--radius-4);font-family:var(--font-family);font-weight:var(--font-weight-500);font-size:var(--font-size-100);line-height:var(--line-height-100);letter-spacing:var(--letter-spacing-100);cursor:pointer;transition:background-color .15s ease}.btn-secondary{background:var(--action-secondary-default);color:var(--text-default)}.btn-secondary:hover{background:var(--action-secondary-hovered)}.btn-critical{background:var(--surface-critical-subdued);color:var(--text-critical)}.btn-critical:hover{background:#ff37301f}.modal-close{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:none;border-radius:100px;background:var(--action-secondary-default);color:var(--icon-default);cursor:pointer;transition:background-color .15s ease}.modal-close:hover{background:var(--action-secondary-hovered)}.login{position:relative;display:flex;align-items:center;justify-content:center;min-height:100vh;overflow:hidden;background:var(--surface-0)}.login-bg{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:1340px;max-width:none;height:916px;pointer-events:none;-webkit-user-select:none;user-select:none}.login-card{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:40px;width:360px;padding:24px 24px 12px;background:var(--surface-0);border-radius:var(--radius-12);box-shadow:0 2px 4px #232c601f}.login-logo{height:46px;width:auto;display:block}.login-head{display:flex;flex-direction:column;gap:2px;width:100%;text-align:center}.login-title{margin:0;font-family:var(--font-family);font-weight:var(--font-weight-600);font-size:20px;line-height:24px;letter-spacing:-.33px;color:var(--text-default)}.login-sub{margin:0;font-family:var(--font-family);font-weight:var(--font-weight-400);font-size:16px;line-height:24px;letter-spacing:-.18px;color:var(--text-subdued)}.login-form{display:flex;flex-direction:column;gap:40px;width:100%}.login-fields{display:flex;flex-direction:column;gap:16px;width:100%}.login-input{width:100%;padding:10px 12px;background:var(--surface-0);border:1px solid var(--border-input);border-radius:var(--radius-12);outline:none;font-family:var(--font-family);font-weight:var(--font-weight-400);font-size:14px;line-height:20px;letter-spacing:-.14px;color:var(--text-neutral-default);transition:border-color .15s ease}.login-input::placeholder{color:var(--text-neutral-subdued)}.login-input:focus{border-color:var(--border-input-focus)}.login-btn{display:flex;align-items:center;justify-content:center;width:100%;height:40px;padding:8px 16px;border:none;border-radius:var(--radius-full);background:var(--action-primary-default);color:var(--text-on-primary);font-family:var(--font-family);font-weight:var(--font-weight-500);font-size:16px;line-height:24px;letter-spacing:-.18px;cursor:pointer;transition:opacity .15s ease}.login-btn:hover{opacity:.7}.login-btn:active{opacity:1}.login-foot{display:flex;align-items:center;gap:4px;margin:0;font-family:var(--font-family);font-weight:var(--font-weight-400);font-size:14px;line-height:20px;letter-spacing:var(--letter-spacing-100);color:var(--text-subdued)}.login-link{padding:0;border:none;background:transparent;font-family:var(--font-family);font-weight:var(--font-weight-400);font-size:14px;line-height:20px;letter-spacing:var(--letter-spacing-100);color:var(--text-primary-default, var(--action-primary-default));cursor:pointer}.login-link:hover{text-decoration:underline}


/* Custom Approval Button Styles */
.approval-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    height: 32px;
    background: var(--action-primary-default, #ec2266);
    color: #FFFFFF !important;
    border: none;
    border-radius: 4px;
    font-family: 'Inter', system-ui, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.09px;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    margin: 8px 0;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.05);
}
.approval-btn:hover {
    background: var(--action-primary-hover, #c91a53);
    opacity: 0.95;
}
.approval-btn:active {
    transform: scale(0.98);
}

.choice-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}
.choice-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: var(--action-primary-default, #ec2266);
    color: #FFFFFF !important;
    border: none;
    border-radius: 4px;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}
.choice-chip:hover {
    background: var(--action-primary-hover, #c91a53);
}
.choice-row-label {
    color: var(--text-default);
    font-size: 14px;
    line-height: 20px;
}

/* Table Explore Button Styles */
.table-explore-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2px 8px !important;
    height: 24px !important;
    background: var(--action-primary-default, #ec2266) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 4px !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-style: normal !important;
    font-weight: 500 !important;
    font-size: 11px !important;
    line-height: 16px !important;
    cursor: pointer !important;
    transition: background 0.15s ease, transform 0.1s ease !important;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05) !important;
    margin: 0 !important;
}
.table-explore-btn:hover {
    background: var(--action-primary-hover, #c91a53) !important;
}
.table-explore-btn:active {
    transform: scale(0.98) !important;
}

/* Typography & Markdown Styles for Vue 3 UI (restored from GitLab old design) */
.answer-body {
    white-space: normal !important; /* Overwrite pre-wrap so HTML/markdown parses and renders normally */
    font-weight: var(--font-weight-400);
}

.answer-body p {
    margin: 0 0 14px 0;
}

.answer-body a {
    color: var(--text-subdued);
    transition: color 0.15s ease;
}

.answer-body a:hover {
    color: var(--text-default);
}

/*
 * Prose action links (Billing Overview, saved-list links, etc.): match the
 * quiet primary-blue affordance of .chat-table-show-prospects-btn instead of
 * grey underlined text. Citations, table cells, and saved-file rows keep
 * their own styling.
 */
.answer-body p a[href]:not(.citation-pill):not(.citation-chip):not(.saved-file-link),
.answer-body li a[href]:not(.citation-pill):not(.citation-chip):not(.saved-file-link),
.answer-body em a[href]:not(.citation-pill):not(.citation-chip) {
    color: var(--action-primary-default, #0091f9) !important;
    font-style: normal;
    font-weight: var(--font-weight-400, 400);
    text-decoration: none !important;
    cursor: pointer;
    transition: color var(--transition-50, 0.15s ease-in-out);
}

.answer-body p a[href]:not(.citation-pill):not(.citation-chip):not(.saved-file-link):hover,
.answer-body li a[href]:not(.citation-pill):not(.citation-chip):not(.saved-file-link):hover,
.answer-body em a[href]:not(.citation-pill):not(.citation-chip):hover,
:root[data-theme="dark"] .answer-body p a[href]:not(.citation-pill):not(.citation-chip):not(.saved-file-link):hover,
:root[data-theme="dark"] .answer-body li a[href]:not(.citation-pill):not(.citation-chip):not(.saved-file-link):hover,
:root[data-theme="dark"] .answer-body em a[href]:not(.citation-pill):not(.citation-chip):hover {
    color: color-mix(in srgb, var(--action-primary-default, #0091f9) 72%, #ffffff) !important;
    text-decoration: none !important;
}

:root[data-theme="dark"] .answer-body p a[href]:not(.citation-pill):not(.citation-chip):not(.saved-file-link),
:root[data-theme="dark"] .answer-body li a[href]:not(.citation-pill):not(.citation-chip):not(.saved-file-link),
:root[data-theme="dark"] .answer-body em a[href]:not(.citation-pill):not(.citation-chip) {
    color: var(--action-primary-default, #0091f9) !important;
}

.answer-body p:last-child {
    margin-bottom: 0;
}

.answer-body ul, 
.answer-body ol {
    margin: 0 0 10px 0;
    padding-left: 20px;
}

.answer-body li {
    margin-bottom: 4px;
}

.answer-body strong {
    font-weight: var(--font-weight-700);
}

.answer-body code {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 4px;
    border-radius: 4px;
    font-family: var(--font-family), monospace;
    font-size: 0.9em;
}

/* Headings inside markdown output */
.answer-body h1,
.answer-body h2,
.answer-body h3,
.answer-body h4,
.answer-body h5,
.answer-body h6 {
    margin: 1.2rem 0 0.6rem 0;
    font-weight: 700;
    color: var(--text-neutral-default, #1e1e1e);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.answer-body h1 { font-size: 1.22rem; }
.answer-body h2 { font-size: 1.12rem; }
.answer-body h3 { font-size: 1.05rem; }
.answer-body h4, .answer-body h5, .answer-body h6 { font-size: 1rem; }

.answer-body h1:first-child,
.answer-body h2:first-child,
.answer-body h3:first-child,
.answer-body h4:first-child {
    margin-top: 0;
}

/* Quote / Blockquote styles */
.answer-body blockquote {
    border-left: 4px solid var(--icon-primary-default, #0d99ff);
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--text-subdued, rgba(4, 13, 20, .53));
    border-radius: 0 8px 8px 0;
}

.answer-body blockquote p {
    margin: 0;
}

/* Shared with Prospects: default 185, resize 120–480. */
:root {
    --table-col-default: 185px;
    --table-col-min: 120px;
    --table-col-max: 480px;
}

/* Table Styles inside message content */
.answer-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9em;
    background: #ffffff;
    border-radius: 8px;
    overflow-x: auto;
    display: block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.answer-body th,
.answer-body td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-default, #ebebeb);
    min-width: 100px;
}

.answer-body th {
    background-color: var(--surface-100, #f3f3f3);
    color: var(--text-neutral-default, #1e1e1e);
    font-weight: 600;
}

.answer-body tr:last-child td {
    border-bottom: none;
}

.answer-body tr:hover {
    background-color: var(--surface-100, #f3f3f3);
}

/* Code block styles */
.answer-body pre {
    background: #1e293b;
    color: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.answer-body pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: 0.85em;
    font-family: monospace;
}

/* Button Group and Dismiss Button style additions */
.btn-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.dismiss-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    height: 32px;
    background: var(--surface-200);
    color: rgba(4, 13, 20, 0.9) !important;
    border: none;
    border-radius: 4px;
    font-family: 'Inter', system-ui, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.09px;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    margin: 8px 0;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.05);
}
.dismiss-btn:hover {
    background: #dfdfdf;
    opacity: 0.95;
}
.dismiss-btn:active {
    transform: scale(0.98);
}


/* Whitelabel Native Credentials Connection Cards */
.native-connect-card {
    background: var(--surface-0);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-12, 12px);
    padding: 18px;
    margin: 12px 0;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 420px;
    text-align: left;
}

.native-connect-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-default);
    line-height: 20px;
    letter-spacing: -0.1px;
}

.native-connect-desc {
    font-size: 12px;
    color: var(--text-subdued);
    line-height: 16px;
}

.native-connect-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.native-connect-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.native-connect-field label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-default);
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.native-input {
    width: 100%;
    height: 36px;
    padding: 8px 12px;
    background: var(--surface-0);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-8, 8px);
    font-family: var(--font-family);
    font-size: 13px;
    color: var(--text-default);
    outline: none;
    transition: border-color 0.15s ease;
}

.native-input:focus {
    border-color: var(--border-input-focus);
}

.native-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    height: 32px;
    background: var(--action-primary-default);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-4, 4px);
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.native-submit-btn:hover {
    background: var(--action-primary-hover, #c91a53);
}

.native-submit-btn:active {
    transform: scale(0.98);
}

.native-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Citation Pill and Hover Tooltip (Perplexity/ChatGPT-style Domain Chips) */
.citation-wrapper {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin: 0 4px;
    cursor: pointer;
}

.citation-chip {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    background: var(--surface-200) !important;
    color: var(--text-default) !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    opacity: 0.95;
}

.citation-chip:hover {
    background: var(--action-primary-default) !important;
    color: var(--text-on-primary) !important;
    border-color: transparent !important;
    transform: translateY(-1px) !important;
    opacity: 1;
}

.citation-icon {
    margin-right: 4px;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.citation-chip:hover .citation-icon {
    opacity: 1;
}

.citation-domain {
    font-size: 11px;
    font-family: inherit;
    letter-spacing: 0.1px;
}

.citation-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px) scale(0.95);
    width: 320px;
    padding: 14px 16px;
    background: color-mix(in srgb, var(--action-primary-default, #ec2266) 85%, transparent) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1000;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.citation-wrapper:hover .citation-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.citation-tooltip-header {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff !important;
    margin-bottom: 8px;
}

.citation-tooltip-brief {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #ffffff !important;
    line-height: 1.5;
    white-space: normal;
}

.citation-tooltip-brief strong,
.citation-tooltip-header strong {
    color: #ffffff !important;
    font-weight: 600;
}

.citation-tooltip-url {
    display: none;
}



/* Mobile Responsive Adjustments */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sidebar-overlay.open {
    display: block;
    opacity: 1;
}

.mobile-top-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 12px 16px;
    background: var(--surface-0);
    z-index: 90;
    position: relative;
    width: 100%;
}

.mobile-top-bar .menu-toggle-btn--mobile-nav,
.mobile-top-bar .mobile-new-chat-btn {
    display: none;
}

@media (max-width: 768px) {
    .mobile-top-bar {
        display: flex;
        justify-content: space-between;
    }

    .mobile-top-bar .menu-toggle-btn--mobile-nav,
    .mobile-top-bar .mobile-new-chat-btn {
        display: flex;
    }
}

@media (min-width: 769px) {
    .mobile-top-bar,
    #askbuzz-root .mobile-top-bar {
        display: none !important;
    }
}

.menu-toggle-btn, .mobile-new-chat-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-default);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        width: 280px;
        z-index: 20;
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-s);
    }
    
    .sidebar.open {
        transform: translateX(280px);
    }
    
    .main--chat .composer {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .user-bubble-wrap,
    .user-bubble,
    .bot-bubble {
        max-width: 95%;
    }
}

/* Table wrapper scrollable styles */
.answer-body .chat-table-block {
    margin: 1rem 0;
}

.answer-body .chat-table-block .table-wrapper {
    margin: 0;
    border-radius: 8px 8px 0 0;
}

.answer-body .chat-table-block:has(.chat-table-footer) .table-wrapper {
    border-bottom: none;
}

.answer-body .chat-table-block:has(.chat-table-pagination) .table-wrapper {
    border-radius: 8px 8px 0 0;
    border-bottom: none;
}

.answer-body .chat-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid var(--border-default, #ebebeb);
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: var(--surface-0, #ffffff);
}

/* When paginated: true center for Page X of Y (same idea as Prospects footer). */
.answer-body .chat-table-footer:has(.chat-table-pagination) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.answer-body .chat-table-footer:has(.chat-table-pagination) .chat-table-show-prospects-btn {
    justify-self: start;
    grid-column: 1;
}

.answer-body .chat-table-footer:has(.chat-table-pagination) .chat-table-pagination {
    justify-self: center;
    grid-column: 2;
}

.answer-body .chat-table-footer:has(.chat-table-pagination) .chat-table-download-btn {
    justify-self: end;
    grid-column: 3;
    margin-left: 0;
}


/* Focus-column presentation for chat result tables (DOM kept; hide only).
   Kill switch via: localStorage.askbuzzFocusColumns = 'off' */
html[data-askbuzz-focus-columns="on"] .answer-body .chat-table-block--result table.chat-table--focus th.chat-table-col--hidden,
html[data-askbuzz-focus-columns="on"] .answer-body .chat-table-block--result table.chat-table--focus td.chat-table-col--hidden,
html[data-askbuzz-focus-columns="on"] .answer-body .chat-table-block[data-table-kind="result"] table.chat-table--focus th.chat-table-col--hidden,
html[data-askbuzz-focus-columns="on"] .answer-body .chat-table-block[data-table-kind="result"] table.chat-table--focus td.chat-table-col--hidden {
    display: none !important;
}

/* Kill switch off: never hide columns even if classes remain from a prior session paint */
html[data-askbuzz-focus-columns="off"] .answer-body .chat-table-col--hidden {
    display: table-cell !important;
}

.answer-body .chat-table-focus-hint {
    margin: 0;
    min-height: 40px;
    padding: 10px 12px;
    box-sizing: border-box;
    color: var(--text-subdued, rgba(4, 13, 20, .53));
    font-size: var(--font-size-50, 12px);
    font-weight: var(--font-weight-400, 400);
    line-height: var(--line-height-50, 16px);
    text-align: left;
    border: 1px solid var(--border-default, #ebebeb);
    border-top: none;
    background: var(--surface-0, #fff);
}

.answer-body .chat-table-block:has(.chat-table-footer) .chat-table-focus-hint {
    border-bottom: none;
}

.answer-body .chat-table-footer {
    flex-wrap: wrap;
}

.answer-body .chat-table-full-list-btn .copy-tooltip {
    white-space: nowrap;
}

/* Full List footer control retired from chat tables */
.answer-body .chat-table-full-list-btn {
    display: none !important;
}

/* Full prospect list right slide-out workbench */
.full-list-panel-root {
    position: fixed;
    inset: 0;
    z-index: 42;
    pointer-events: none;
}
.full-list-panel-backdrop {
    position: absolute;
    inset: 0;
    background: var(--other-backdrop, rgba(15, 23, 42, 0.35));
    pointer-events: auto;
}
.full-list-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(720px, 100vw);
    display: flex;
    flex-direction: column;
    background: var(--surface-0, #ffffff);
    border-left: 1px solid var(--border-default, #ebebeb);
    box-shadow: var(--shadow-s, 0 8px 30px rgba(0,0,0,.12));
    pointer-events: auto;
}
.full-list-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--border-default, #ebebeb);
    flex-shrink: 0;
}
.full-list-panel-title {
    margin: 0;
    font-size: 16px;
    font-weight: 650;
    color: var(--text-default);
}
.full-list-panel-sub {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: var(--text-subdued, #6b7280);
    line-height: 1.4;
}
.full-list-panel-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-default, #ebebeb);
    flex-shrink: 0;
}
.full-list-search {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid var(--border-default, #d8dee8);
    border-radius: 8px;
    background: var(--surface-0, #fff);
    color: var(--text-default);
    font: inherit;
    padding: 8px 10px;
}
.full-list-columns {
    position: relative;
    flex: 0 0 auto;
}
.full-list-columns-menu {
    top: calc(100% + 6px);
    bottom: auto;
    right: 0;
    left: auto;
    min-width: 220px;
    max-height: min(60vh, 420px);
    overflow: auto;
    z-index: 50;
}
.full-list-columns-divider {
    height: 1px;
    margin: 6px 0;
    background: var(--border-default, #ebebeb);
}
.full-list-column-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--text-default);
    cursor: pointer;
}
.full-list-column-option:hover {
    background: color-mix(in srgb, var(--action-primary-default, #0091f9) 8%, transparent);
}
.full-list-panel-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.full-list-table-wrap {
    flex: 1 1 auto;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
.full-list-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.full-list-table th,
.full-list-table td {
    border-bottom: 1px solid var(--border-default, #ebebeb);
    padding: 8px 10px;
    text-align: left;
    white-space: nowrap;
    min-width: var(--table-col-default, 185px);
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
    color: var(--text-default);
}
.full-list-table th {
    position: sticky;
    top: 0;
    background: var(--surface-0, #fff);
    z-index: 1;
    font-weight: 600;
}
.full-list-empty,
.full-list-empty-cell {
    padding: 24px 16px;
    color: var(--text-subdued, #6b7280);
    text-align: center;
}

/* FINAL fail-safe: if a plan block was classed, never show footer buttons */
.answer-body .chat-table-block--input .chat-table-footer,
.answer-body .chat-table-block[data-table-kind="input"] .chat-table-footer,
.answer-body table.chat-table-input ~ .chat-table-footer,
.answer-body .chat-table-block--input .chat-table-research-btn,
.answer-body .chat-table-block--input .chat-table-show-prospects-btn,
.answer-body .chat-table-block--input .chat-table-download-btn,
.answer-body .chat-table-block[data-table-kind="input"] .chat-table-research-btn,
.answer-body .chat-table-block[data-table-kind="input"] .chat-table-show-prospects-btn,
.answer-body .chat-table-block[data-table-kind="input"] .chat-table-download-btn {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Editable plan / input table values (Stage-1 Field|Value) */
.answer-body td.plan-table-value--editable,
.answer-body .plan-table-value--editable,
.prospects-panel .plan-table-value--editable {
    cursor: text;
    outline: none;
    border-radius: 4px;
    padding: 2px 6px;
    min-width: 48px;
    transition: background 0.12s ease, box-shadow 0.12s ease;
}

.answer-body td.plan-table-value--editable:hover,
.answer-body .plan-table-value--editable:hover,
.prospects-panel .plan-table-value--editable:hover {
    background: color-mix(in srgb, var(--action-primary-default, #0091f9) 10%, transparent);
}

.answer-body td.plan-table-value--editable:focus,
.answer-body .plan-table-value--editable:focus,
.prospects-panel .plan-table-value--editable:focus {
    /* Quiet focus: thin ring inside the cell, not a thick outline frame. */
    background: color-mix(in srgb, var(--action-primary-default, #0091f9) 10%, var(--surface-0, #ffffff));
    color: var(--text-default);
    outline: 1px solid color-mix(in srgb, var(--action-primary-default, #0091f9) 70%, transparent);
    outline-offset: -1px;
    box-shadow: none;
    caret-color: var(--text-default);
}

.answer-body td.plan-table-value--volume {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

/*
 * Editable input plans need an actual table layout. The generic answer-table
 * rule uses display:block for result-table scrolling, which lets controls
 * change individual row geometry.
 */
.answer-body table.chat-table-input,
.answer-body table.chat-table-input--editable {
    display: table;
    width: 100%;
    margin: 0;
    table-layout: fixed;
    overflow: visible;
}
.answer-body .plan-table-edit-note,
.answer-body .saved-files-table-note {
    caption-side: top;
    min-height: 40px;
    padding: 10px 12px;
    box-sizing: border-box;
    color: var(--text-subdued, rgba(4, 13, 20, .53));
    font-size: var(--font-size-50, 12px);
    font-weight: var(--font-weight-400, 400);
    line-height: var(--line-height-50, 16px);
    text-align: left;
}

.answer-body .plan-table-field-help {
    display: block;
    margin-top: 2px;
    color: var(--text-subdued, rgba(4, 13, 20, .53));
    font-size: var(--font-size-50, 12px);
    font-weight: var(--font-weight-400, 400);
    line-height: var(--line-height-50, 16px);
}
.answer-body table.chat-table-input th,
.answer-body table.chat-table-input td {
    box-sizing: border-box;
    vertical-align: middle;
}
.answer-body table.chat-table-input th:nth-child(1),
.answer-body table.chat-table-input td:nth-child(1) {
    width: 34%;
}
.answer-body table.chat-table-input th:nth-child(2),
.answer-body table.chat-table-input td:nth-child(2) {
    width: 66%;
}
.answer-body table.chat-table-input td.plan-table-value--editable {
    padding: 6px 10px;
    width: 66%;
    overflow-anchor: none;
}

/* Multi-select filters: AskBuzz chips + model-menu styled dropdown. */
.answer-body .plan-table-filter-control,
.prospects-panel .plan-table-filter-control {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 32px;
    border: 1px solid var(--border-default, #ebebeb);
    border-radius: var(--radius-8, 8px);
    background: var(--surface-0, #fff);
    color: var(--text-default);
    font: inherit;
    padding: 0;
}
.answer-body select.plan-table-boolean-select {
    min-height: 36px;
    padding: 7px 38px 7px 12px;
    appearance: none;
    -webkit-appearance: none;
    border-color: color-mix(in srgb, var(--border-default, #ebebeb) 80%, var(--text-subdued) 20%);
    background-color: var(--surface-0, #fff);
    background-image:
        linear-gradient(45deg, transparent 50%, var(--icon-subdued, rgba(4, 13, 20, .53)) 50%),
        linear-gradient(135deg, var(--icon-subdued, rgba(4, 13, 20, .53)) 50%, transparent 50%);
    background-position:
        calc(100% - 17px) 50%,
        calc(100% - 12px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    color: var(--text-default);
    font-size: var(--font-size-100, 14px);
    font-weight: var(--font-weight-500, 500);
    cursor: pointer;
    border-radius: var(--radius-8, 8px);
    box-shadow: 0 1px 2px rgba(35, 44, 96, .04);
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.answer-body select.plan-table-boolean-select:hover {
    border-color: color-mix(in srgb, var(--border-default, #ebebeb) 55%, var(--text-subdued) 45%);
    background-color: var(--surface-100, #f3f3f3);
}
.answer-body select.plan-table-boolean-select:focus {
    border-color: var(--border-input-focus, #0d99ff);
    outline: 2px solid color-mix(in srgb, var(--action-primary-default, #0091f9) 18%, transparent);
    outline-offset: 1px;
    box-shadow: 0 1px 2px rgba(35, 44, 96, .06);
}
.answer-body .plan-table-filter-control:focus-within,
.prospects-panel .plan-table-filter-control:focus-within {
    outline: 2px solid color-mix(in srgb, var(--action-primary-default, #0091f9) 45%, transparent);
    outline-offset: 1px;
}
.answer-body details.plan-table-multiselect,
.prospects-panel details.plan-table-multiselect {
    position: relative;
    overflow-anchor: none;
}
.answer-body .plan-table-filter-trigger,
.prospects-panel .plan-table-filter-trigger {
    display: flex;
    align-items: flex-start;
    min-height: 32px;
    padding: 4px 28px 4px 6px;
    color: var(--text-default);
    cursor: pointer;
    list-style: none;
}
.answer-body .plan-table-filter-trigger::-webkit-details-marker,
.prospects-panel .plan-table-filter-trigger::-webkit-details-marker {
    display: none;
}
.answer-body .plan-table-filter-trigger::after,
.prospects-panel .plan-table-filter-trigger::after {
    content: "";
    position: absolute;
    top: 13px;
    right: 11px;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    color: var(--text-subdued);
}
.answer-body details.plan-table-multiselect[open] .plan-table-filter-trigger::after,
.prospects-panel details.plan-table-multiselect[open] .plan-table-filter-trigger::after {
    transform: rotate(225deg) translate(-2px, -2px);
}
.answer-body details.plan-table-singleselect .plan-table-filter-menu,
.prospects-panel details.plan-table-singleselect .plan-table-filter-menu {
    height: auto;
}
.answer-body details.plan-table-singleselect .plan-table-filter-options,
.prospects-panel details.plan-table-singleselect .plan-table-filter-options {
    flex: 0 1 auto;
    max-height: min(280px, 45vh);
}
.answer-body .plan-table-filter-summary-label,
.prospects-panel .plan-table-filter-summary-label {
    min-width: 0;
    padding: 2px 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-default);
    font-size: var(--font-size-100, 14px);
    line-height: var(--line-height-100, 20px);
}
.answer-body .plan-table-filter-summary,
.prospects-panel .plan-table-filter-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-width: 0;
    width: 100%;
}
.answer-body .plan-table-filter-placeholder,
.prospects-panel .plan-table-filter-placeholder {
    padding: 2px 4px;
    color: var(--text-subdued);
    font-size: var(--font-size-100, 14px);
    line-height: var(--line-height-100, 20px);
}
.answer-body .plan-table-filter-chip,
.prospects-panel .plan-table-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    min-height: 22px;
    padding: 0 4px 0 8px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--surface-200, #ececec);
    color: var(--text-default);
    font-size: var(--font-size-50, 12px);
    font-weight: var(--font-weight-500, 500);
    line-height: var(--line-height-50, 16px);
}
.answer-body .plan-table-filter-chip-label,
.prospects-panel .plan-table-filter-chip-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.answer-body .plan-table-filter-chip-remove,
.prospects-panel .plan-table-filter-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    border-radius: var(--radius-full, 999px);
    background: transparent;
    color: var(--icon-subdued, rgba(4, 13, 20, .53));
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color .15s ease, color .15s ease;
}
.answer-body .plan-table-filter-chip-remove:hover,
.prospects-panel .plan-table-filter-chip-remove:hover {
    background: var(--action-secondary-hovered, #ececec);
    color: var(--icon-default, rgba(4, 13, 20, .9));
}
.answer-body .plan-table-filter-menu,
.prospects-panel .plan-table-filter-menu,
.plan-table-filter-menu--floating {
    position: absolute;
    z-index: 1200;
    top: calc(100% + 6px);
    left: 0;
    width: max(100%, 240px);
    height: 320px;
    max-height: min(320px, 50vh);
    padding: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: none;
    border-radius: 12px;
    background: var(--surface-0, #fff);
    box-shadow: 0 8px 16px rgba(35, 44, 96, 0.16);
    box-sizing: border-box;
}
.answer-body .plan-table-filter-chip--more,
.prospects-panel .plan-table-filter-chip--more {
    padding-right: 8px;
    flex: 0 0 auto;
    color: var(--text-subdued, rgba(4, 13, 20, .53));
    font-weight: var(--font-weight-500, 500);
}
.answer-body .plan-table-filter-search,
.prospects-panel .plan-table-filter-search,
.plan-table-filter-menu--floating .plan-table-filter-search {
    flex: 0 0 auto;
    padding: 2px 2px 4px;
}
.answer-body .plan-table-filter-search-status,
.prospects-panel .plan-table-filter-search-status,
.plan-table-filter-menu--floating .plan-table-filter-search-status {
    min-height: 16px;
    padding: 3px 4px 0;
    color: var(--text-subdued, rgba(4, 13, 20, 0.53));
    font-size: 11px;
    line-height: 13px;
    text-align: right;
}
.answer-body .plan-table-filter-search-input,
.prospects-panel .plan-table-filter-search-input,
.plan-table-filter-menu--floating .plan-table-filter-search-input {
    width: 100%;
    height: 32px;
    padding: 6px 10px;
    box-sizing: border-box;
    border: 1px solid var(--border-default, #ebebeb);
    border-radius: 6px;
    background: var(--surface-100, #f3f3f3);
    color: var(--text-default);
    font-size: 12px;
    line-height: 20px;
    outline: none;
}
.answer-body .plan-table-filter-search-input::placeholder,
.prospects-panel .plan-table-filter-search-input::placeholder,
.plan-table-filter-menu--floating .plan-table-filter-search-input::placeholder {
    color: var(--text-subdued, rgba(4, 13, 20, 0.53));
}
.answer-body .plan-table-filter-search-input:focus,
.prospects-panel .plan-table-filter-search-input:focus,
.plan-table-filter-menu--floating .plan-table-filter-search-input:focus {
    border-color: var(--border-primary-default, #0091f9);
    background: var(--surface-0, #fff);
}
.answer-body .plan-table-filter-options,
.prospects-panel .plan-table-filter-options,
.plan-table-filter-menu--floating .plan-table-filter-options {
    flex: 1 1 0;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    display: block;
    overscroll-behavior: contain;
}
.answer-body .plan-table-filter-options.has-no-results,
.prospects-panel .plan-table-filter-options.has-no-results,
.plan-table-filter-menu--floating .plan-table-filter-options.has-no-results {
    display: none;
}
.answer-body .plan-table-filter-no-results,
.prospects-panel .plan-table-filter-no-results,
.plan-table-filter-menu--floating .plan-table-filter-no-results {
    flex: 1 1 auto;
    align-content: center;
    padding: 20px;
    color: var(--text-subdued, rgba(4, 13, 20, 0.53));
    font-size: 13px;
    text-align: center;
}
.answer-body .plan-table-filter-option,
.prospects-panel .plan-table-filter-option,
.plan-table-filter-menu--floating .plan-table-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--text-default);
    cursor: pointer;
    font-size: var(--font-size-100, 14px);
    line-height: var(--line-height-100, 20px);
    transition: background-color .15s ease;
}
/* Author `display: flex` overrides the UA [hidden] rule — keep search filtering visible. */
.answer-body .plan-table-filter-option[hidden],
.prospects-panel .plan-table-filter-option[hidden],
.plan-table-filter-menu--floating .plan-table-filter-option[hidden],
.answer-body .plan-table-filter-option.is-search-hidden,
.prospects-panel .plan-table-filter-option.is-search-hidden,
.plan-table-filter-menu--floating .plan-table-filter-option.is-search-hidden {
    display: none !important;
}
.answer-body .plan-table-filter-option:hover,
.prospects-panel .plan-table-filter-option:hover,
.plan-table-filter-menu--floating .plan-table-filter-option:hover {
    background: var(--surface-100, #f3f3f3);
}
.answer-body .plan-table-filter-option input,
.prospects-panel .plan-table-filter-option input,
.plan-table-filter-menu--floating .plan-table-filter-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.answer-body .plan-table-filter-option-check,
.prospects-panel .plan-table-filter-option-check,
.plan-table-filter-menu--floating .plan-table-filter-option-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: transparent;
}
.answer-body .plan-table-filter-option.is-checked .plan-table-filter-option-check,
.prospects-panel .plan-table-filter-option.is-checked .plan-table-filter-option-check,
.plan-table-filter-menu--floating .plan-table-filter-option.is-checked .plan-table-filter-option-check {
    color: var(--icon-primary-default, #0d99ff);
}
.answer-body .plan-table-filter-option.is-checked,
.prospects-panel .plan-table-filter-option.is-checked,
.plan-table-filter-menu--floating .plan-table-filter-option.is-checked {
    background: color-mix(in srgb, var(--action-primary-default, #0091f9) 8%, transparent);
}
.answer-body .plan-table-filter-option-label,
.prospects-panel .plan-table-filter-option-label,
.plan-table-filter-menu--floating .plan-table-filter-option-label {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:root[data-theme="dark"] .answer-body .plan-table-filter-menu,
:root[data-theme="dark"] .plan-table-filter-menu--floating {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45);
}
:root[data-theme="dark"] .answer-body .plan-table-filter-search-input,
:root[data-theme="dark"] .plan-table-filter-menu--floating .plan-table-filter-search-input {
    background: rgba(255, 255, 255, 0.05);
}
:root[data-theme="dark"] .answer-body .plan-table-filter-chip,
:root[data-theme="dark"] .prospects-panel .plan-table-filter-chip {
    background: var(--surface-100, #2a2a2e);
}
:root[data-theme="dark"] .answer-body .plan-table-filter-option.is-checked,
:root[data-theme="dark"] .prospects-panel .plan-table-filter-option.is-checked,
:root[data-theme="dark"] .plan-table-filter-menu--floating .plan-table-filter-option.is-checked {
    background: rgba(13, 153, 255, 0.14);
}

.answer-body td.plan-table-value--readonly {
    color: var(--text-subdued);
}

.answer-body td.plan-table-req {
    color: var(--text-subdued, #6b7280);
    white-space: nowrap;
    font-size: 0.92em;
}

/* Advanced/hidden plan table rows — JS also sets inline display as a fallback. */
.answer-body tr.plan-table-row--advanced {
    display: none !important;
}
.answer-body table.plan-table--show-advanced tr.plan-table-row--advanced {
    display: table-row !important;
}
.answer-body .chat-table-block--input .table-wrapper {
    overflow: visible;
}
.plan-table-advanced-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    position: relative;
    z-index: 2;
}
.answer-body .plan-table-advanced-footer {
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid var(--border-default, #ebebeb);
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: var(--surface-0, #fff);
}
.answer-body .chat-table-block--input:has(> .plan-table-advanced-footer) > .table-wrapper,
.answer-body .chat-table-block[data-table-kind="input"]:has(> .plan-table-advanced-footer) > .table-wrapper {
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}
.plan-table-advanced-toggle button.plan-table-toggle-btn {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: auto;
    max-width: 100%;
    min-height: 0;
    height: auto;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--action-primary-default, #0091f9);
    font-family: var(--font-family, 'Inter', system-ui, -apple-system, sans-serif);
    font-style: normal;
    font-weight: var(--font-weight-400, 400);
    font-size: var(--font-size-50, 12px);
    line-height: var(--line-height-50, 16px);
    letter-spacing: var(--letter-spacing-50, 0.01px);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    box-shadow: none;
    opacity: 1;
    transition: color var(--transition-50, 0.15s ease-in-out);
}
.plan-table-advanced-toggle button.plan-table-toggle-btn:hover {
    background: transparent;
    color: color-mix(in srgb, var(--action-primary-default, #0091f9) 72%, #ffffff);
    opacity: 1;
    text-decoration: none;
}

.answer-body table.chat-table-input--editable tbody tr:hover td.plan-table-value--editable {
    background: color-mix(in srgb, var(--action-primary-default, #0091f9) 8%, transparent);
}

:root[data-theme="dark"] .answer-body td.plan-table-value--editable:hover,
:root[data-theme="dark"] .answer-body .plan-table-value--editable:hover,
:root[data-theme="dark"] .answer-body table.chat-table-input--editable tbody tr:hover td.plan-table-value--editable {
    background: rgba(13, 153, 255, 0.14);
}

:root[data-theme="dark"] .answer-body td.plan-table-value--editable:focus,
:root[data-theme="dark"] .answer-body .plan-table-value--editable:focus {
    background: color-mix(in srgb, #0d99ff 14%, var(--surface-0, #1c1c1e));
    color: var(--text-default);
    outline: 1px solid rgba(13, 153, 255, 0.75);
    outline-offset: -1px;
    box-shadow: none;
    caret-color: var(--text-default);
}

.answer-body .chat-table-block--input .table-wrapper,
.answer-body .chat-table-block[data-table-kind="input"] .table-wrapper {
    border-radius: 8px;
    border-bottom: 1px solid var(--border-default, #ebebeb);
}

.answer-body .chat-table-footer:not(:has(.chat-table-pagination)) {
    justify-content: space-between;
}

.answer-body .chat-table-show-prospects-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--action-primary-default, #0091f9) !important;
    font-family: var(--font-family, 'Inter', system-ui, -apple-system, sans-serif) !important;
    font-style: normal !important;
    font-weight: var(--font-weight-400, 400) !important;
    font-size: var(--font-size-50, 12px) !important;
    line-height: var(--line-height-50, 16px) !important;
    letter-spacing: var(--letter-spacing-50, 0.01px) !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    cursor: pointer !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transition: color var(--transition-50, 0.15s ease-in-out) !important;
}

.prospects-panel .chat-table-show-prospects-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--action-primary-default, #0091f9) !important;
    font-family: var(--font-family, 'Inter', system-ui, -apple-system, sans-serif) !important;
    font-style: normal !important;
    font-weight: var(--font-weight-400, 400) !important;
    font-size: var(--font-size-50, 12px) !important;
    line-height: var(--line-height-50, 16px) !important;
    letter-spacing: var(--letter-spacing-50, 0.01px) !important;
    text-align: left !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transition: color var(--transition-50, 0.15s ease-in-out) !important;
}

.prospects-panel .chat-table-show-prospects-btn:hover:not(:disabled) {
    background: transparent !important;
    color: color-mix(in srgb, var(--action-primary-default, #0091f9) 72%, #ffffff) !important;
    text-decoration: none !important;
}

.prospects-panel .chat-table-show-prospects-btn:disabled {
    opacity: 0.45 !important;
    cursor: default !important;
}

.answer-body .chat-table-show-prospects-btn:hover {
    background: transparent !important;
    /* Brighter primary on hover (not dimmed). */
    color: color-mix(in srgb, var(--action-primary-default, #0091f9) 72%, #ffffff) !important;
    opacity: 1 !important;
    text-decoration: none !important;
}

:root[data-theme="dark"] .answer-body .chat-table-show-prospects-btn,
:root[data-theme="dark"] .prospects-panel .chat-table-show-prospects-btn {
    color: var(--action-primary-default, #0091f9) !important;
}

:root[data-theme="dark"] .answer-body .chat-table-show-prospects-btn:hover {
    background: transparent !important;
    color: color-mix(in srgb, var(--action-primary-default, #0091f9) 72%, #ffffff) !important;
    opacity: 1 !important;
}

:root[data-theme="dark"] .prospects-panel .chat-table-show-prospects-btn:hover:not(:disabled) {
    background: transparent !important;
    color: color-mix(in srgb, var(--action-primary-default, #0091f9) 72%, #ffffff) !important;
}

.answer-body .chat-table-download-btn {
    flex-shrink: 0;
    margin-left: auto;
}

/* Retire the old icon-only Research control in favor of the text button. */
.answer-body .chat-table-research-btn {
    display: none !important;
}

.answer-body .chat-table-pagination {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex: 0 0 auto;
    min-width: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.answer-body .table-wrapper {
    max-height: 320px;
    overflow-y: auto;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid var(--border-default, #ebebeb);
    border-radius: 8px;
    background: #ffffff;
    /* Smooth pan when drag-scroll JS is active; wheel still works. */
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}
.answer-body .table-wrapper:has(.saved-file-cell) {
    overflow: visible;
    max-height: none;
}

/*
 * Saved Files listing (Title | Format | Date | Size).
 * ABSOLUTE: width comes only from content length — no fixed column clamp.
 * Result-table column clamps must never win here.
 */
.answer-body .chat-table-block--saved-files,
.answer-body .chat-table-block:has(.saved-file-cell),
.answer-body .chat-table-block:has(table.chat-table-saved-files) {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.answer-body .chat-table-block--saved-files .table-wrapper,
.answer-body .chat-table-block:has(.saved-file-cell) .table-wrapper,
.answer-body .table-wrapper:has(.saved-file-cell),
.answer-body .table-wrapper:has(table.chat-table-saved-files) {
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    cursor: auto !important;
    user-select: auto !important;
}

.answer-body .chat-table-block--saved-files table,
.answer-body .chat-table-block:has(.saved-file-cell) table,
.answer-body table.chat-table-saved-files,
.answer-body .table-wrapper:has(.saved-file-cell) table {
    /* Defeat base `.answer-body table { display:block; width:100% }` */
    display: table !important;
    caption-side: top;
    table-layout: auto !important;
    width: max-content !important;
    min-width: max-content !important;
    max-width: none !important;
    border-collapse: collapse !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.answer-body .chat-table-block--saved-files th,
.answer-body .chat-table-block--saved-files td,
.answer-body .chat-table-block:has(.saved-file-cell) th,
.answer-body .chat-table-block:has(.saved-file-cell) td,
.answer-body table.chat-table-saved-files th,
.answer-body table.chat-table-saved-files td,
.answer-body .table-wrapper:has(.saved-file-cell) th,
.answer-body .table-wrapper:has(.saved-file-cell) td {
    height: auto !important;
    max-height: none !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    vertical-align: middle !important;
    line-height: 20px !important;
    padding: 6px 10px !important;
    font-size: 14px !important;
}

/* Title column: pure content width */
.answer-body .chat-table-block--saved-files th:first-child,
.answer-body .chat-table-block--saved-files td:first-child,
.answer-body .chat-table-block--saved-files td.saved-file-cell,
.answer-body .chat-table-block:has(.saved-file-cell) th:first-child,
.answer-body .chat-table-block:has(.saved-file-cell) td:first-child,
.answer-body .chat-table-block:has(.saved-file-cell) td.saved-file-cell,
.answer-body table.chat-table-saved-files th:first-child,
.answer-body table.chat-table-saved-files td:first-child,
.answer-body table.chat-table-saved-files td.saved-file-cell {
    min-width: max-content !important;
    max-width: none !important;
    width: auto !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

/* Keep Format/Date/Size compact but not clipped ugly */
.answer-body .chat-table-block--saved-files th:not(:first-child),
.answer-body .chat-table-block--saved-files td:not(:first-child),
.answer-body .chat-table-block:has(.saved-file-cell) th:not(:first-child),
.answer-body .chat-table-block:has(.saved-file-cell) td:not(:first-child),
.answer-body table.chat-table-saved-files th:not(:first-child),
.answer-body table.chat-table-saved-files td:not(:first-child) {
    white-space: nowrap !important;
    width: 1% !important;
    min-width: max-content !important;
    max-width: none !important;
}

.answer-body .saved-file-cell {
    padding: 6px 10px !important;
    border: none !important;
    vertical-align: middle !important;
    overflow: visible !important;
    max-width: none !important;
    width: auto !important;
}

.answer-body .saved-file-cell .saved-file-item.chat-item,
.answer-body .chat-table-block--saved-files .saved-file-item.chat-item,
.answer-body table.chat-table-saved-files .saved-file-item.chat-item {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    height: auto !important;
    min-height: 32px !important;
    width: max-content !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 2px 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

.answer-body .saved-file-cell .saved-file-item .saved-file-link.chat-item-text,
.answer-body .chat-table-block--saved-files .saved-file-item .saved-file-link.chat-item-text,
.answer-body table.chat-table-saved-files .saved-file-item .saved-file-link.chat-item-text {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    width: max-content !important;
    max-width: none !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

.answer-body .saved-file-cell .saved-file-item .saved-file-label,
.answer-body .chat-table-block--saved-files .saved-file-item .saved-file-label,
.answer-body table.chat-table-saved-files .saved-file-item .saved-file-label {
    display: inline !important;
    flex: 0 0 auto !important;
    width: max-content !important;
    max-width: none !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: normal !important;
    color: inherit;
    text-decoration: none;
    transition: color .12s ease, text-decoration-color .12s ease;
    overflow-wrap: normal !important;
    line-height: 1.35 !important;
}

/* Uploaded / output / enriched chat tables share Prospects column sizes. */
.answer-body .chat-table-block:not(.chat-table-block--input):not([data-table-kind="input"]):not(.chat-table-block--saved-files) th,
.answer-body .chat-table-block:not(.chat-table-block--input):not([data-table-kind="input"]):not(.chat-table-block--saved-files) td {
    width: var(--table-col-default, 185px);
    min-width: var(--table-col-default, 185px);
    max-width: var(--table-col-default, 185px);
}

/*
 * Output / result tables (lead & company lists): compact, uniform rows.
 * Plan/input Field|Value tables keep taller, readable cells above.
 */
.answer-body .chat-table-block[data-table-kind="result"] .table-wrapper,
.answer-body .chat-table-block--result .table-wrapper {
    max-height: var(--chat-table-page-height, 320px);
    height: auto;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    /* Don't reserve a permanent scrollbar strip — that left a ~16px gap on short tables. */
    scrollbar-gutter: auto;
}

.answer-body .chat-table-block[data-table-kind="result"] .table-wrapper.is-dragging,
.answer-body .chat-table-block--result .table-wrapper.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.answer-body .chat-table-block[data-table-kind="result"] .table-wrapper table,
.answer-body .chat-table-block--result .table-wrapper table {
    display: table !important;
    table-layout: fixed;
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    margin: 0;
}

/*
 * Few visible columns: stretch to the wrapper when there is room, but never
 * let table-layout:fixed crush columns below the 100px floor. Using
 * width:100% here previously ignored cell min-width and squeezed columns.
 */
.answer-body .chat-table-block[data-table-kind="result"] .table-wrapper table.chat-table--fit-width,
.answer-body .chat-table-block--result .table-wrapper table.chat-table--fit-width {
    width: max-content;
    min-width: 100%;
    max-width: none;
    table-layout: fixed;
}

.answer-body .chat-table-block[data-table-kind="result"] th,
.answer-body .chat-table-block[data-table-kind="result"] td,
.answer-body .chat-table-block--result th,
.answer-body .chat-table-block--result td {
    padding: 6px 10px;
    line-height: 20px;
    height: 32px;
    max-height: 32px;
    /* Keep in sync with TABLE_COL_* in tableColumnWidths.js */
    min-width: var(--table-col-default, 185px);
    max-width: var(--table-col-default, 185px);
    width: var(--table-col-default, 185px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    font-size: 14px;
}

/*
 * Fixed-layout columns need a definite width so max-content can't collapse
 * them. Fill column (below) absorbs leftover when min-width:100% stretches
 * the table. Manual resize (inline width !important) still wins on drag.
 */
.answer-body .chat-table-block[data-table-kind="result"] .table-wrapper table.chat-table--fit-width th,
.answer-body .chat-table-block[data-table-kind="result"] .table-wrapper table.chat-table--fit-width td,
.answer-body .chat-table-block--result .table-wrapper table.chat-table--fit-width th,
.answer-body .chat-table-block--result .table-wrapper table.chat-table--fit-width td,
.answer-body .chat-table-block[data-table-kind="result"] .table-wrapper table.chat-table--fit-width th:first-child,
.answer-body .chat-table-block[data-table-kind="result"] .table-wrapper table.chat-table--fit-width td:first-child,
.answer-body .chat-table-block--result .table-wrapper table.chat-table--fit-width th:first-child,
.answer-body .chat-table-block--result .table-wrapper table.chat-table--fit-width td:first-child,
.answer-body .chat-table-block[data-table-kind="result"] .table-wrapper table.chat-table--fit-width th.chat-table-cell--long,
.answer-body .chat-table-block[data-table-kind="result"] .table-wrapper table.chat-table--fit-width td.chat-table-cell--long,
.answer-body .chat-table-block--result .table-wrapper table.chat-table--fit-width th.chat-table-cell--long,
.answer-body .chat-table-block--result .table-wrapper table.chat-table--fit-width td.chat-table-cell--long {
    width: var(--table-col-default, 185px);
    min-width: var(--table-col-default, 185px);
    max-width: var(--table-col-default, 185px);
}

.answer-body .chat-table-block[data-table-kind="result"] .table-wrapper table.chat-table--fit-width th.chat-table-col--fill,
.answer-body .chat-table-block[data-table-kind="result"] .table-wrapper table.chat-table--fit-width td.chat-table-col--fill,
.answer-body .chat-table-block--result .table-wrapper table.chat-table--fit-width th.chat-table-col--fill,
.answer-body .chat-table-block--result .table-wrapper table.chat-table--fit-width td.chat-table-col--fill,
.answer-body .chat-table-block[data-table-kind="result"] .table-wrapper table.chat-table--fit-width th.chat-table-col--fill:first-child,
.answer-body .chat-table-block[data-table-kind="result"] .table-wrapper table.chat-table--fit-width td.chat-table-col--fill:first-child,
.answer-body .chat-table-block--result .table-wrapper table.chat-table--fit-width th.chat-table-col--fill:first-child,
.answer-body .chat-table-block--result .table-wrapper table.chat-table--fit-width td.chat-table-col--fill:first-child {
    width: auto !important;
    min-width: var(--table-col-default, 185px);
    max-width: none !important;
}

/* Output-table column grid + Excel-style resize affordance.
   Divider line comes ONLY from the resizer ::after (full column height).
   Cell border-right is disabled when a resizer exists — otherwise the header
   stacks border + ::after and looks thicker than the body cells. */
.answer-body .chat-table-block:not(.chat-table-block--input):not([data-table-kind="input"]) th:not(:last-child),
.answer-body .chat-table-block:not(.chat-table-block--input):not([data-table-kind="input"]) td:not(:last-child) {
    border-right: 1px solid var(--border-default, #ebebeb);
}

.answer-body .chat-table-block:not(.chat-table-block--input):not([data-table-kind="input"]):has(.chat-table-column-resizer) th:not(:last-child),
.answer-body .chat-table-block:not(.chat-table-block--input):not([data-table-kind="input"]):has(.chat-table-column-resizer) td:not(:last-child) {
    border-right-color: transparent;
}

.answer-body .chat-table-block:not(.chat-table-block--input):not([data-table-kind="input"]) thead th,
.answer-body .chat-table-block:not(.chat-table-block--input):not([data-table-kind="input"]) tr:first-child th {
    position: relative;
    overflow: visible;
}

.answer-body .chat-table-block:not(.chat-table-block--input):not([data-table-kind="input"]) thead,
.answer-body .chat-table-block:not(.chat-table-block--input):not([data-table-kind="input"]) table {
    overflow: visible;
}

.answer-body .chat-table-column-resizer {
    position: absolute;
    z-index: 6;
    top: 0;
    right: -8px;
    /* Extend past the header so the full column divider is draggable (Excel-like). */
    bottom: auto;
    height: 100%;
    width: 16px;
    cursor: col-resize;
    touch-action: none;
    pointer-events: auto;
}

.answer-body .chat-table-column-resizer::after {
    content: "";
    position: absolute;
    top: 0;
    right: 7px;
    bottom: 0;
    width: 1px;
    /* Always paint the divider so header + body share one 1px stroke. */
    background: var(--border-default, #ebebeb);
    border-radius: 0;
    transition: background-color .12s ease;
}

.answer-body .chat-table-column-resizer:hover::after,
.answer-body .chat-table-column-resizer.is-resizing::after {
    width: 1px;
    right: 7px;
    background: var(--action-primary-default, #0091f9);
}

/* Keep the hit target easy to grab, but never thicken the painted line —
   a 3px hover stroke was reading as “heavier” on the sticky header. */
.answer-body .chat-table-column-resizer:hover,
.answer-body .chat-table-column-resizer.is-resizing {
    z-index: 7;
}

/* While actively resizing, the header cells keep normal cursor feedback out of the way */
.answer-body table.is-resizing-column {
    cursor: col-resize;
}

html.is-resizing-table-column,
html.is-resizing-table-column * {
    cursor: col-resize !important;
    user-select: none !important;
}

/* Saved-files identity MUST beat result fixed widths even if both classes linger */
.answer-body .chat-table-block--saved-files.chat-table-block--result th,
.answer-body .chat-table-block--saved-files.chat-table-block--result td,
.answer-body .chat-table-block--result:has(.saved-file-cell) th,
.answer-body .chat-table-block--result:has(.saved-file-cell) td,
.answer-body .chat-table-block[data-table-kind="result"]:has(.saved-file-cell) th,
.answer-body .chat-table-block[data-table-kind="result"]:has(.saved-file-cell) td {
    height: auto !important;
    max-height: none !important;
    min-width: max-content !important;
    max-width: none !important;
    width: auto !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

/* Name column: same default as other result columns. */
.answer-body .chat-table-block[data-table-kind="result"] th:first-child,
.answer-body .chat-table-block[data-table-kind="result"] td:first-child,
.answer-body .chat-table-block--result th:first-child,
.answer-body .chat-table-block--result td:first-child {
    min-width: var(--table-col-default, 185px);
    max-width: var(--table-col-default, 185px);
    width: var(--table-col-default, 185px);
}

/*
 * Last visible result column fills leftover table width.
 * Prevents a trailing empty strip when few columns sit in a min-width:100% table
 * while other columns keep compact max-widths.
 */
.answer-body .chat-table-block[data-table-kind="result"] th.chat-table-col--fill,
.answer-body .chat-table-block[data-table-kind="result"] td.chat-table-col--fill,
.answer-body .chat-table-block--result th.chat-table-col--fill,
.answer-body .chat-table-block--result td.chat-table-col--fill,
.answer-body .chat-table-block[data-table-kind="result"] th.chat-table-col--fill:first-child,
.answer-body .chat-table-block[data-table-kind="result"] td.chat-table-col--fill:first-child,
.answer-body .chat-table-block--result th.chat-table-col--fill:first-child,
.answer-body .chat-table-block--result td.chat-table-col--fill:first-child {
    width: var(--table-col-default, 185px);
    max-width: var(--table-col-default, 185px);
    min-width: var(--table-col-default, 185px);
}

/* About / headline / experience / skills / education — same height, no multi-line dump */
.answer-body .chat-table-block[data-table-kind="result"] td.chat-table-cell--long,
.answer-body .chat-table-block--result td.chat-table-cell--long,
.answer-body .chat-table-block[data-table-kind="result"] th.chat-table-cell--long,
.answer-body .chat-table-block--result th.chat-table-cell--long {
    min-width: var(--table-col-default, 185px);
    max-width: var(--table-col-default, 185px);
    width: var(--table-col-default, 185px);
}

.answer-body .chat-table-block[data-table-kind="result"] thead th,
.answer-body .chat-table-block--result thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    height: 32px;
    max-height: 32px;
    box-shadow: 0 1px 0 var(--border-default, #ebebeb);
}

/* Plan / input tables should not pick up compact result density */
.answer-body .chat-table-block--input .table-wrapper,
.answer-body .chat-table-block[data-table-kind="input"] .table-wrapper {
    max-height: none;
    cursor: auto;
    user-select: auto;
}

.answer-body .chat-table-block--input th,
.answer-body .chat-table-block--input td,
.answer-body .chat-table-block[data-table-kind="input"] th,
.answer-body .chat-table-block[data-table-kind="input"] td {
    height: auto;
    max-height: none;
    max-width: none;
    width: auto;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}


.answer-body .chat-table-page-label {
    font-family: var(--font-family);
    font-size: var(--font-size-50, 12px);
    font-weight: var(--font-weight-400, 400);
    line-height: var(--line-height-50, 16px);
    color: var(--text-subdued);
    white-space: nowrap;
}

.answer-body .chat-table-page-btn.icon-btn {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.answer-body .chat-table-page-btn.icon-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.answer-body .chat-table-block:has(.saved-file-cell):has(.chat-table-pagination) .table-wrapper {
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
}

.answer-body .table-wrapper table {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    display: table;
    width: 100%;
}

.answer-body:has(.saved-file-item) {
    overflow: visible;
}

/* Saved file rows inside result tables (match sidebar chat-item styling) */
.answer-body .saved-file-cell {
    padding: 0 !important;
    border: none !important;
    vertical-align: middle;
    overflow: visible;
}
.answer-body .saved-file-item.chat-item {
    width: 100%;
    margin: 0;
    height: 32px;
    padding: 8px 4px;
    overflow: visible;
}
/* Suggestion pills outside of files list tables */
.answer-body .saved-file-item.chat-item:not(.saved-file-cell .saved-file-item) {
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: 100%;
    margin: 16px 8px 4px 0;
    height: 32px;
    padding: 6px 12px;
    background: var(--surface-100);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-4, 4px);
    overflow: visible;
    transition: background-color 0.15s ease;
}
.answer-body .saved-file-item.chat-item:not(.saved-file-cell .saved-file-item):hover {
    background: var(--surface-200);
}
.answer-body .saved-file-item .saved-file-link.chat-item-text {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-default);
    font: inherit;
    font-weight: var(--font-weight-400, 400);
    font-size: var(--font-size-50, 12px);
    line-height: var(--line-height-50, 16px);
    letter-spacing: var(--letter-spacing-50, .01px);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    overflow: visible;
}
.answer-body .saved-file-item .saved-file-label {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Saved Files table titles: full single-line width, never ellipsis */
.answer-body .saved-file-cell .saved-file-item .saved-file-label,
.answer-body .chat-table-block--saved-files .saved-file-item .saved-file-label,
.answer-body table.chat-table-saved-files .saved-file-item .saved-file-label {
    flex: 0 0 auto;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    word-break: normal;
    overflow-wrap: normal;
    line-height: 1.35;
}
.answer-body .saved-file-item .saved-file-link.chat-item-text:hover {
    color: var(--text-highlight, #1f77f2);
    background: transparent;
}
.answer-body .saved-file-cell .saved-file-item .saved-file-link.chat-item-text:hover .saved-file-label,
.answer-body .chat-table-block--saved-files .saved-file-item .saved-file-link.chat-item-text:hover .saved-file-label,
.answer-body table.chat-table-saved-files .saved-file-item .saved-file-link.chat-item-text:hover .saved-file-label {
    color: var(--text-highlight, #1f77f2);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.answer-body .saved-file-item .saved-file-tooltip {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    bottom: auto;
    transform: none;
    z-index: 30;
    width: max-content;
    max-width: 200px;
    padding: 6px 8px;
    background: var(--background-tooltip, rgba(0, 0, 0, .75));
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 6px;
    box-shadow: var(--shadow-card, 0px 2px 4px rgba(35, 44, 96, .12));
    color: #fff;
    font-family: var(--font-family, "Inter", system-ui, sans-serif);
    font-weight: var(--font-weight-400, 400);
    font-size: var(--font-size-50, 12px);
    line-height: var(--line-height-50, 16px);
    letter-spacing: var(--letter-spacing-50, .01px);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s ease;
}
.answer-body .saved-file-cell .saved-file-item .saved-file-tooltip,
.answer-body .chat-table-block--saved-files .saved-file-item .saved-file-tooltip,
.answer-body table.chat-table-saved-files .saved-file-item .saved-file-tooltip {
    max-width: min(480px, 80vw);
    white-space: nowrap;
}
.answer-body .saved-file-cell .saved-file-item.chat-item,
.answer-body .chat-table-block--saved-files .saved-file-item.chat-item,
.answer-body table.chat-table-saved-files .saved-file-item.chat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 32px;
    min-height: 32px;
    width: max-content;
    min-width: 100%;
    background: transparent !important;
}
/* Titles are fully visible in the table — skip the duplicate hover tooltip. */
.answer-body .saved-file-cell .saved-file-item .saved-file-tooltip,
.answer-body .chat-table-block--saved-files .saved-file-item .saved-file-tooltip,
.answer-body table.chat-table-saved-files .saved-file-item .saved-file-tooltip {
    display: none !important;
}
.answer-body .saved-file-item .saved-file-tooltip:after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 12px;
    transform: none;
    border: 4px solid transparent;
    border-bottom-color: var(--background-tooltip, rgba(0, 0, 0, .75));
}
.answer-body .saved-file-item .saved-file-link.chat-item-text:hover .saved-file-tooltip {
    opacity: 1;
}
.answer-body .saved-file-item .saved-file-delete,
.answer-body .saved-file-item .saved-file-download {
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}
.answer-body .saved-file-item:hover .saved-file-delete,
.answer-body .saved-file-item:hover .saved-file-download,
.answer-body .saved-file-item:focus-within .saved-file-delete,
.answer-body .saved-file-item:focus-within .saved-file-download,
.answer-body .saved-file-item .saved-file-link:hover ~ .saved-file-delete,
.answer-body .saved-file-item .saved-file-link:hover ~ .saved-file-download,
.answer-body .saved-file-item .saved-file-link:focus-visible ~ .saved-file-delete,
.answer-body .saved-file-item .saved-file-link:focus-visible ~ .saved-file-download {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive adjustments */
.sidebar-overlay {
    display: none;
}

@media (max-width: 768px) {
    body {
        overflow: hidden;
    }
    
    .screen {
        flex-direction: column;
        height: 100dvh;
    }
    
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        width: 280px;
        z-index: 20;
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-s);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 15;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }
    
    .menu-toggle-btn, .mobile-new-chat-btn {
        background: transparent;
        border: none;
        color: var(--icon-default);
        cursor: pointer;
        padding: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main--chat .content {
        padding-top: 0;
    }
    
    .user-bubble-wrap,
    .user-bubble,
    .bot-bubble {
        max-width: 95%;
    }
    
    .composer {
        border-radius: 12px;
        margin-bottom: 8px;
    }

    /* Composer Controls — mobile: [+][Fast Mode] …… [Send] */
    .composer .composer-actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 0;
        gap: 4px;
        width: 100%;
        height: 32px;
        flex: none;
        align-self: stretch;
        flex-grow: 0;
    }

    .composer .composer-plus {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0;
        gap: 4px;
        height: 32px;
        flex: none;
        order: 0;
        flex-grow: 0;
    }

    .composer .composer-action-right {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0;
        gap: 4px;
        height: 32px;
        flex: none;
        order: 2;
        margin-left: auto;
        flex-grow: 0;
    }

    .composer .composer-plus-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        width: 32px;
        min-width: 32px;
        max-width: 32px;
        height: 32px;
        min-height: 32px;
        max-height: 32px;
        border-radius: 4px;
        flex: none;
    }

    .composer .composer-plus-btn svg {
        width: 20px;
        height: 20px;
    }

    .composer .model-select {
        position: relative;
        display: inline-flex;
        flex: none;
        order: 1;
        margin-left: 0;
        flex-grow: 0;
    }

    .composer .model-select > .ghost-btn {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 4px 10px;
        gap: 0;
        width: auto;
        min-width: 92px;
        height: 28px;
        border-radius: 40px;
        flex: none;
        flex-grow: 0;
        font-weight: 400;
        font-size: 15px;
        line-height: 20px;
        letter-spacing: -0.23px;
        color: var(--action-primary-default, #ec2266);
        white-space: nowrap;
        background: transparent;
    }

    .composer .model-select > .ghost-btn > span {
        width: auto;
        height: 20px;
        overflow: visible;
        text-align: center;
        white-space: nowrap;
    }

    .composer .model-select > .ghost-btn > svg,
    .composer .model-select-chevron {
        display: none !important;
    }

    .composer .model-select > .ghost-btn:hover:not(:disabled),
    .composer .model-select > .ghost-btn.ghost-btn--active {
        background: color-mix(in srgb, var(--action-primary-default, #ec2266) 10%, transparent);
        color: var(--action-primary-default, #ec2266);
    }

    .composer .send-btn {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 0;
        isolation: isolate;
        width: 32px;
        min-width: 32px;
        max-width: 32px;
        height: 32px;
        min-height: 32px;
        max-height: 32px;
        border: none;
        border-radius: 4px;
        background: transparent;
        color: var(--icon-subdued, rgba(4, 13, 20, 0.53));
        opacity: 1;
        flex: none;
        order: 1;
        flex-grow: 0;
    }

    .composer .send-btn:disabled {
        opacity: 0.48;
        cursor: default;
    }

    .composer .send-btn:not(:disabled):hover {
        background: var(--action-secondary-hovered);
        color: var(--icon-default);
    }

    .composer .send-btn svg {
        display: block;
        width: 20px;
        height: 20px;
        flex: none;
        flex-shrink: 0;
        position: relative;
        z-index: 0;
        stroke: currentColor;
        visibility: visible;
        opacity: 1;
    }
    
    .content {
        margin-top: 40px;
    }
}

@media (max-width: 500px) {
    .hero-title {
        font-size: 2.15rem;
        line-height: 1.2;
    }
}

/* Height-aware responsive layout fixes */
.sidebar {
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

.sidebar-top,
.sidebar-section,
.chats {
    min-height: 0;
}

.sidebar-top {
    flex: 1 1 auto;
    overflow: hidden;
}

.sidebar-section {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chats {
    flex: 1 1 auto;
    overflow: hidden;
}

.chat-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.brand-row,
.btn-primary,
.chats-label,
.sidebar-bottom {
    flex-shrink: 0;
}

.main:not(.main--chat) {
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.main:not(.main--chat) .content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    min-height: 0;
    min-width: 0;
    max-width: min(695px, 100%);
    overflow-x: hidden;
}

.suggestions {
    flex-direction: column;
    max-width: 100%;
    min-width: 0;
}

.main:not(.main--chat) .disclaimer {
    position: static;
    transform: none;
    width: min(100%, 695px);
    margin: 0 auto;
    padding: 16px 16px 20px;
    white-space: normal;
    flex-shrink: 0;
}

@media (max-height: 680px) {
    .main:not(.main--chat) .content {
        gap: 14px;
    }

    .main:not(.main--chat) .suggestions {
        gap: 8px;
    }

    .main:not(.main--chat) .suggestion-card {
        height: 88px;
        padding: 12px;
    }
}

@media (max-width: 768px) and (max-height: 680px) {
    .main:not(.main--chat) .content {
        margin-top: 0;
        gap: 12px;
    }

    .main:not(.main--chat) .suggestion-card {
        height: 88px;
    }
}

@media (max-height: 560px) {
    .sidebar {
        padding: 10px;
    }

    .sidebar-top {
        gap: 12px;
    }

    .brand,
    .brand-logo {
        height: 40px;
    }

    .sidebar-section {
        gap: 12px;
    }

    .chat-item {
        height: 28px;
        padding-top: 6px;
        padding-bottom: 6px;
    }
}

@media (max-width: 768px) {
    html,
    body {
        height: 100%;
        overflow: hidden;
    }

    .screen {
        height: 100dvh;
        min-height: 0;
    }

    .sidebar {
        left: 0;
        width: min(280px, 86vw);
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main {
        width: 100%;
        min-height: 0;
    }

    .main:not(.main--chat) {
        min-height: 0;
        height: 100dvh;
        overflow: hidden;
    }

    .main:not(.main--chat) .content {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 0;
        padding: 12px 16px 16px;
        min-height: 0;
        gap: 16px;
    }

    .main:not(.main--chat) .hero {
        width: 100%;
    }

    .main:not(.main--chat) .hero-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        line-height: 1.15;
    }

    .main:not(.main--chat) .composer {
        flex-shrink: 0;
    }

    .main:not(.main--chat) .suggestions {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        width: 100%;
        gap: 8px;
    }

    .main:not(.main--chat) .suggestion-card {
        flex: 1 1 0;
        min-width: 0;
        height: 88px;
        padding: 12px;
    }

    .main:not(.main--chat) .suggestion-text {
        align-items: flex-start;
    }

    .main:not(.main--chat) .disclaimer {
        flex-shrink: 0;
        margin-top: 0;
        padding-top: 8px;
        padding-bottom: 12px;
    }

    .main--chat .content {
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
        justify-content: flex-start;
    }
}

/* Prospects panel */
.screen--prospects-open .main {
    transition: none;
}

.app-workspace {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    position: relative;
}

.app-workspace > .main {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

.prospects-workspace-resizer {
    flex: 0 0 6px;
    width: 6px;
    cursor: col-resize;
    position: relative;
    z-index: 6;
    background: transparent;
    touch-action: none;
    align-self: stretch;
}

.prospects-workspace-resizer::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2px;
    width: 2px;
    background: var(--border-default);
    transition: background-color .12s ease, width .12s ease, left .12s ease;
}

.prospects-workspace-resizer:hover::after,
.is-resizing-prospects .prospects-workspace-resizer::after {
    left: 1px;
    width: 4px;
    background: var(--action-primary-default);
}

.is-resizing-prospects,
.is-resizing-prospects * {
    cursor: col-resize !important;
    user-select: none !important;
}

.prospects-panel-root {
    position: fixed;
    inset: 0;
    z-index: 40;
    pointer-events: none;
}

.prospects-panel-backdrop {
    position: absolute;
    inset: 0;
    background: var(--other-backdrop);
    pointer-events: auto;
}

.prospects-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(640px, 100vw);
    display: flex;
    flex-direction: column;
    background: var(--surface-0);
    border-left: 1px solid var(--border-default);
    box-shadow: var(--shadow-s);
    pointer-events: auto;
}

.prospects-panel-root--docked {
    position: relative;
    inset: auto;
    z-index: 5;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 0;
    pointer-events: auto;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
}

.prospects-panel--docked {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    flex: 1 1 auto;
    width: auto;
    min-width: min(280px, 40%);
    height: 100%;
    max-height: 100%;
    box-shadow: none;
    border-left: none;
    z-index: 2;
}

.assist-pane-resizer {
    flex: 0 0 6px;
    width: 6px;
    cursor: col-resize;
    position: relative;
    z-index: 6;
    background: transparent;
    touch-action: none;
    align-self: stretch;
}

.assist-pane-resizer::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2px;
    width: 2px;
    background: var(--border-default);
    transition: background-color .12s ease, width .12s ease, left .12s ease;
}

.assist-pane-resizer:hover::after,
.is-resizing-assist .assist-pane-resizer::after {
    left: 1px;
    width: 4px;
    background: var(--action-primary-default);
}

.is-resizing-assist,
.is-resizing-assist * {
    cursor: col-resize !important;
    user-select: none !important;
}

.is-resizing-assist-v,
.is-resizing-assist-v * {
    cursor: row-resize !important;
    user-select: none !important;
}

.is-dragging-assist,
.is-dragging-assist * {
    cursor: grabbing !important;
    user-select: none !important;
}

/* ---------------------------------------------------------------------------
   Table Assist dock frame. Root modifier `.assist-dock--{left|right|bottom|min}`
   decides flex direction + order; the chat component inside is unchanged.
   --------------------------------------------------------------------------- */
.assist-dock {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: var(--surface-0, #fff);
    position: relative;
    z-index: 1;
}

.assist-dock--left .assist-dock,
.assist-dock--right .assist-dock {
    flex: 0 0 var(--assist-pane-width, 36%);
    width: var(--assist-pane-width, 36%);
    min-width: 240px;
    max-width: 55%;
    height: 100%;
}

.assist-dock--left .assist-dock { order: 1; }
.assist-dock--left .assist-pane-resizer { order: 2; }
.assist-dock--left .prospects-panel--docked { order: 3; }

.assist-dock--right .prospects-panel--docked { order: 1; }
.assist-dock--right .assist-pane-resizer { order: 2; }
.assist-dock--right .assist-dock { order: 3; }

.assist-dock--bottom.prospects-panel-root--docked {
    flex-direction: column;
}

.assist-dock--bottom .prospects-panel--docked {
    order: 1;
    height: auto;
    max-height: none;
    flex: 1 1 auto;
    min-height: 160px;
}

.assist-dock--bottom .assist-pane-resizer {
    order: 2;
    flex: 0 0 6px;
    width: 100%;
    height: 6px;
    cursor: row-resize;
}

.assist-dock--bottom .assist-pane-resizer::after {
    top: 2px;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 2px;
}

.assist-dock--bottom .assist-pane-resizer:hover::after,
.is-resizing-assist-v .assist-dock--bottom .assist-pane-resizer::after {
    top: 1px;
    left: 0;
    width: auto;
    height: 4px;
}

.assist-dock--bottom .assist-dock {
    order: 3;
    flex: 0 0 var(--assist-pane-height, 38%);
    height: var(--assist-pane-height, 38%);
    width: 100%;
    max-width: 100%;
    min-height: 180px;
}

.assist-dock--bottom .assist-dock .table-assist-thread {
    /* Wide + short: keep the thread readable instead of one long line. */
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
}

.assist-dock--bottom .assist-dock .table-assist-composer {
    /* Height/row layout is overridden after .table-assist .composer rules. */
    max-width: 560px;
}

.assist-dock--min .prospects-panel--docked {
    order: 1;
}

.assist-dock-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 6px 0 8px;
    border-bottom: 1px solid var(--border-default);
    background: var(--surface-0, #fff);
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.assist-dock-header:active {
    cursor: grabbing;
}

.assist-dock-grip {
    display: inline-flex;
    color: var(--text-subdued);
    opacity: .7;
}

.assist-dock-actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    cursor: default;
}

.assist-dock-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-subdued);
    cursor: pointer;
    transition: background-color .12s ease, color .12s ease;
}

.assist-dock-btn:hover {
    background: var(--surface-2, rgba(4, 13, 20, .06));
    color: var(--text-default);
}

.assist-dock-btn.is-active {
    color: var(--action-primary-default);
    background: color-mix(in srgb, var(--action-primary-default) 12%, transparent);
}

.assist-dock-btn:focus-visible {
    outline: 2px solid var(--action-primary-default);
    outline-offset: 1px;
}

/* Minimized: chat-bubble control — reopen the table assistant, not a brand chip. */
.assist-dock-fab {
    position: absolute;
    right: 16px;
    bottom: 56px;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border-default);
    border-radius: 999px;
    background: var(--surface-0, #fff);
    color: var(--action-primary-default, #0091f9);
    box-shadow: 0 6px 20px rgba(4, 13, 20, .12);
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}

.assist-dock-fab svg {
    color: currentColor;
}

.assist-dock-fab:hover {
    transform: translateY(-1px);
    background: var(--surface-100);
    box-shadow: 0 8px 24px rgba(4, 13, 20, .16);
}

.assist-dock-fab.has-custom-tooltip::before {
    top: auto !important;
    bottom: calc(100% + 8px) !important;
}

.assist-dock-fab.has-custom-tooltip::after {
    top: auto !important;
    bottom: calc(100% + 3px) !important;
    border-width: 5px 5px 0 5px !important;
    border-color: var(--background-tooltip, rgba(0, 0, 0, 0.85)) transparent transparent transparent !important;
}

.assist-dock-fab.has-custom-tooltip:hover::before,
.assist-dock-fab.has-custom-tooltip:hover::after {
    transition-delay: 0.12s !important;
}

/* Drop zones shown while the header is being dragged. */
.assist-dock-dropzones {
    position: absolute;
    inset: 0;
    z-index: 40;
    pointer-events: none;
}

.assist-dock-dropzone {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed color-mix(in srgb, var(--action-primary-default) 45%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--action-primary-default) 6%, transparent);
    color: var(--action-primary-default);
    font-size: 13px;
    font-weight: 600;
    opacity: .55;
    transition: opacity .12s ease, background-color .12s ease;
}

.assist-dock-dropzone.is-target {
    opacity: 1;
    background: color-mix(in srgb, var(--action-primary-default) 14%, transparent);
    border-style: solid;
}

.assist-dock-dropzone--left { top: 8px; bottom: 8px; left: 8px; width: 28%; }
.assist-dock-dropzone--right { top: 8px; bottom: 8px; right: 8px; width: 28%; }
.assist-dock-dropzone--bottom { left: 32%; right: 32%; bottom: 8px; height: 26%; }

/* Table-scoped assist chat (ephemeral, not sidebar session) — fills its dock frame. */
.table-assist {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-right: none;
    background: var(--surface-0, #fff);
    position: relative;
    z-index: 1;
}

.table-assist-hint {
    margin: 0;
    padding: 8px 4px 12px;
    font-size: 13px;
    line-height: 18px;
    color: var(--text-subdued);
}

.table-assist-empty {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 4px 12px;
}

.table-assist-empty .table-assist-hint,
.table-assist-empty .table-assist-prompt-hint {
    margin: 0;
    padding: 0;
}

.table-assist-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.table-assist-prompt {
    appearance: none;
    border: 1px solid var(--border-default);
    border-radius: 999px;
    background: var(--surface-0, #fff);
    color: var(--text-default);
    font-family: var(--font-family);
    font-size: 12px;
    line-height: 16px;
    padding: 6px 10px;
    cursor: pointer;
}

.table-assist-prompt:hover:not(:disabled) {
    border-color: var(--border-primary-default, #0091f9);
    color: var(--action-primary-default, #0091f9);
}

.table-assist-prompt:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.table-assist-prompt-hint {
    margin: 0;
    font-size: 12px;
    line-height: 16px;
    color: var(--text-subdued);
}

.table-assist-thread {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.table-assist-messages-wrap {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

.table-assist-messages {
    height: 100%;
    overflow: auto;
    padding: 8px 10px 4px;
}

.table-assist .messages-inner {
    width: 100%;
    max-width: 100%;
    margin: 0;
    gap: 14px;
}

.table-assist .user-bubble-wrap,
.table-assist .user-bubble,
.table-assist .answer {
    max-width: 100%;
}

.table-assist .answer-actions .copy-btn:nth-child(n+2) {
    /* Keep assist compact: hide save/feedback chrome in the side pane. */
    display: none;
}

.table-assist .answer-credits {
    margin-left: 8px;
    font-size: 11px;
}

.table-assist .copy-tooltip {
    display: none !important;
}

.table-assist .askbuzz-open-chat-link {
    color: var(--text-highlight, #1f77f2);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--text-highlight, #1f77f2) 45%, transparent);
    cursor: pointer;
}

.table-assist .askbuzz-open-chat-link:hover {
    color: var(--action-primary-default, #0091f9);
    border-bottom-color: currentColor;
}

/* Beat #askbuzz-root .composer mobile rules (full-width actions collapse the field to 0px). */
#askbuzz-root .table-assist .composer.table-assist-composer,
.table-assist .composer.table-assist-composer {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    height: auto !important;
    min-height: 36px;
    margin: 0 10px 10px;
    padding: 4px 4px 4px 10px;
    border: 1.5px solid var(--border-default);
    border-radius: 10px;
    background: var(--surface-0);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 6px;
    filter: none;
    box-shadow: none;
}

.table-assist .table-assist-composer--locked {
    opacity: 0.65;
    pointer-events: none;
}

#askbuzz-root .table-assist .table-assist-composer:focus-within,
.table-assist .table-assist-composer:focus-within {
    border-color: var(--border-primary-default);
}

#askbuzz-root .table-assist .table-assist-composer .composer-actions,
.table-assist .table-assist-composer .composer-actions {
    display: flex;
    flex: 0 0 auto !important;
    align-self: flex-end !important;
    justify-content: flex-end;
    width: auto !important;
    min-width: 0;
    max-width: none;
    height: auto !important;
    min-height: 0;
    padding: 0;
}

#askbuzz-root .table-assist .table-assist-composer .composer-action-right,
.table-assist .table-assist-composer .composer-action-right {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 0;
    height: auto;
}

#askbuzz-root .table-assist .table-assist-composer .composer-input,
.table-assist .table-assist-composer .composer-input {
    flex: 1 1 0%;
    min-width: 0;
    width: auto;
    min-height: 22px;
    max-height: 120px;
    height: 22px;
    overflow-x: hidden;
    overflow-y: auto;
    resize: none;
    font-size: 13px;
    line-height: 18px;
}

#askbuzz-root .table-assist .table-assist-composer .composer-input:placeholder-shown,
.table-assist .table-assist-composer .composer-input:placeholder-shown {
    height: 22px !important;
}

#askbuzz-root .table-assist .table-assist-composer .send-btn,
.table-assist .table-assist-composer .send-btn {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
}

.assist-dock--bottom .table-assist .composer.table-assist-composer {
    width: 100%;
    max-width: 560px;
    margin: 0 auto 8px;
}

.answer-actions {
    gap: 0;
}

.answer-credits {
    margin-left: 10px;
    font-size: 12px;
    line-height: 1;
    color: var(--text-subdued, rgba(4, 13, 20, .53));
    white-space: nowrap;
}

@media (max-width: 640px) {
    .prospects-panel-root--docked {
        flex-direction: column;
    }

    .assist-pane-resizer {
        display: none;
    }

    /* Narrow viewports: grid on top, assist frame below regardless of the chosen dock. */
    .prospects-panel-root--docked .prospects-panel--docked {
        order: 1;
        min-width: 0;
        flex: 1 1 auto;
        height: auto;
        max-height: none;
    }

    .prospects-panel-root--docked .assist-dock {
        order: 2;
        flex: 0 0 min(42vh, 360px);
        height: min(42vh, 360px);
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
        border-top: 1px solid var(--border-default);
        border-right: none;
    }

    .assist-dock-actions .assist-dock-btn:not([aria-label="Minimize Table Assist"]) {
        display: none;
    }
}

.prospects-panel-root--embedded {
    position: static;
    inset: auto;
    z-index: auto;
    pointer-events: auto;
}

.prospects-panel--embedded {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--border-default);
    border-left: 1px solid var(--border-default);
    border-radius: var(--radius-12);
    box-shadow: var(--shadow-card);
    margin-top: 12px;
    height: 750px;
    max-height: 90vh;
    overflow: hidden;
}

.prospects-panel--docked .prospects-panel-header,
.prospects-panel--docked .prospects-panel-toolbar,
.prospects-panel--docked .prospects-panel-footer {
    flex-shrink: 0;
}

.prospects-panel--docked .prospects-panel-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.prospects-panel--docked .prospects-table-viewport,
.prospects-panel--embedded .prospects-table-viewport {
    flex: 1 1 auto;
    min-height: 0;
}

.prospects-panel--docked .prospects-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.prospects-panel--embedded .prospects-panel-header,
.prospects-panel--embedded .prospects-panel-toolbar,
.prospects-panel--embedded .prospects-panel-footer {
    flex-shrink: 0;
}

.prospects-panel--embedded .prospects-panel-header {
    padding-top: 12px;
}

.prospects-panel--embedded .prospects-panel-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.prospects-panel--embedded .prospects-table-wrap {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.prospects-panel--embedded .prospects-table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
}

.prospects-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--border-default);
    flex-shrink: 0;
}

.prospects-panel-heading {
    min-width: 0;
}

.prospects-panel-title {
    margin: 0;
    font-family: var(--font-family);
    font-weight: var(--font-weight-600);
    font-size: 18px;
    line-height: 24px;
    color: var(--text-default);
}

.prospects-panel-sub {
    margin: 4px 0 0;
    font-family: var(--font-family);
    font-size: var(--font-size-50);
    line-height: var(--line-height-50);
    color: var(--text-subdued);
}

.prospects-panel-asterisk {
    margin-left: 1px;
    font-weight: var(--font-weight-500, 500);
}

.prospects-panel-footnote {
    margin: 6px 0 0;
    font-family: var(--font-family);
    font-size: 11px;
    line-height: 14px;
    color: var(--text-subdued);
}

.prospects-panel-toolbar {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-default);
    flex-shrink: 0;
    overflow: visible;
    background: var(--surface-0, #ffffff);
}

.prospects-toolbar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.prospects-toolbar-row--sources {
    flex-wrap: wrap;
}

.prospects-toolbar-row--controls {
    flex-wrap: nowrap;
}

.prospects-toolbar-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
}

.prospects-assist-reopen {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--action-primary-default, #0091f9);
    cursor: pointer;
    box-shadow: none;
    flex-shrink: 0;
    transition: color var(--transition-50, 0.15s ease-in-out);
}

.prospects-assist-reopen__inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.prospects-assist-reopen__label {
    font-size: 13px;
    font-weight: 600;
    line-height: 16px;
    white-space: nowrap;
    color: inherit;
}

.prospects-assist-reopen svg {
    display: block;
    width: 16px;
    height: 16px;
    color: inherit;
}

.prospects-assist-reopen:hover,
.prospects-assist-reopen:focus-visible {
    background: transparent;
    color: color-mix(in srgb, var(--action-primary-default, #0091f9) 72%, #ffffff);
}

.prospects-assist-reopen.has-custom-tooltip::before {
    top: calc(100% + 8px) !important;
}

.prospects-assist-reopen.has-custom-tooltip::after {
    top: calc(100% + 3px) !important;
}

.prospects-assist-reopen.has-custom-tooltip:hover::before,
.prospects-assist-reopen.has-custom-tooltip:hover::after {
    transition-delay: 0.12s !important;
}

.prospects-columns {
    position: relative;
    flex-shrink: 0;
}

.prospects-columns-btn {
    white-space: nowrap;
}

.prospects-refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    flex-shrink: 0;
}

.prospects-toolbar-more {
    position: relative;
    flex-shrink: 0;
}

.prospects-toolbar-more .prospects-th-menu-dropdown.composer-plus-menu {
    z-index: 50;
}

.prospects-columns-menu {
    position: absolute;
    top: calc(100% + 6px);
    bottom: auto;
    left: auto;
    right: 0;
    z-index: 20;
    min-width: 220px;
    max-height: 320px;
    overflow: auto;
}

.prospects-columns-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.prospects-columns-kbd {
    display: inline-block;
    padding: 1px 5px;
    border: 1px solid var(--border-default);
    border-radius: 4px;
    background: var(--surface-100);
    font: inherit;
    font-size: 10px;
    line-height: 14px;
    color: var(--text-subdued);
}

/* Column finder (⌘K) */
.prospects-column-finder {
    display: flex;
    flex-direction: column;
    width: 340px;
    max-width: calc(100vw - 32px);
    max-height: min(440px, 70vh);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border-default);
    border-radius: 12px;
    background: var(--surface-0, #fff);
    box-shadow: 0 16px 40px rgba(4, 13, 20, .18), 0 2px 6px rgba(4, 13, 20, .08);
}

.prospects-column-finder__search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-default);
    color: var(--text-subdued);
}

.prospects-column-finder__input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 13px;
    color: var(--text-default);
}

.prospects-column-finder__meta {
    font-size: 11px;
    color: var(--text-subdued);
    font-variant-numeric: tabular-nums;
}

.prospects-column-finder__list {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 6px;
}

.prospects-column-finder__row {
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 8px;
}

.prospects-column-finder__row.is-active {
    background: var(--surface-100);
}

.prospects-column-finder__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 32px;
    cursor: pointer;
}

.prospects-column-finder__toggle input {
    margin: 0;
    cursor: pointer;
}

.prospects-column-finder__jump {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 8px 0 2px;
    border: 0;
    background: transparent;
    color: var(--text-default);
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.prospects-column-finder__row.is-hidden .prospects-column-finder__label {
    color: var(--text-subdued);
}

.prospects-column-finder__label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prospects-column-finder__tag {
    flex: 0 0 auto;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--surface-100);
    font-size: 10px;
    line-height: 14px;
    color: var(--text-subdued);
}

.prospects-column-finder__hint {
    flex: 0 0 auto;
    font-size: 10px;
    color: var(--text-subdued);
    white-space: nowrap;
}

.prospects-column-finder__empty {
    padding: 14px 12px;
    font-size: 13px;
    color: var(--text-subdued);
}

.prospects-column-finder__footer {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border-top: 1px solid var(--border-default);
    background: var(--surface-100);
}

.prospects-column-finder__spacer { flex: 1 1 auto; }

.prospects-column-finder__action {
    height: 26px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-default);
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.prospects-column-finder__action:hover:not(:disabled) {
    background: var(--surface-0);
}

.prospects-column-finder__action:disabled {
    opacity: .5;
    cursor: default;
}

/* Column jump: a short highlight so the eye lands on the right column. */
@keyframes prospects-col-flash {
    0% { background-color: color-mix(in srgb, var(--action-primary-default, #0091f9) 22%, var(--surface-0, #fff)); }
    100% { background-color: var(--surface-0, #fff); }
}

.prospects-table td.prospects-col--flash,
.prospects-table th.prospects-col--flash {
    animation: prospects-col-flash 1.3s ease-out forwards;
}

.prospects-columns-divider {
    height: 1px;
    margin: 4px 0;
    background: var(--border-default);
}

.prospects-column-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: var(--font-size-50, 13px);
    color: var(--text-default);
    cursor: pointer;
}

.prospects-column-option:hover {
    background: var(--surface-100);
}

.prospects-column-option input {
    margin: 0;
}

.prospects-search {
    height: 32px;
    padding: 6px 10px;
    border: 1px solid var(--border-input);
    border-radius: var(--radius-8);
    background: var(--surface-0);
    font-family: var(--font-family);
    font-size: var(--font-size-100);
    color: var(--text-default);
    flex: 1 1 220px;
    width: auto;
    max-width: none;
    min-width: 140px;
}

.prospects-search:focus {
    outline: none;
    border-color: var(--border-input-focus);
}

.prospects-source-filter {
    position: relative;
    flex: 1 1 auto;
    min-width: 180px;
    max-width: 100%;
    z-index: 30;
}

.prospects-panel .prospects-source-filter.plan-table-filter-control {
    min-height: 32px;
    background: var(--surface-0, #ffffff);
}

.prospects-panel .prospects-source-filter .plan-table-filter-menu {
    left: 0;
    right: auto;
    width: max(100%, 280px);
    z-index: 40;
    background: #ffffff;
    background-color: var(--surface-0, #ffffff);
    opacity: 1;
    isolation: isolate;
    box-shadow: 0 8px 16px rgba(35, 44, 96, 0.18);
}

.prospects-panel-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 8px 16px 0;
    flex-shrink: 0;
}

.prospects-panel-notice-text {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-family: var(--font-family);
    font-size: 11px;
    line-height: 14px;
    color: var(--text-subdued);
}

.prospects-panel-notice-dismiss {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin: -2px -4px 0 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--text-subdued);
    cursor: pointer;
}

.prospects-panel-notice-dismiss:hover {
    color: var(--text-default, #1a1a1a);
    background: var(--surface-1, rgba(0, 0, 0, 0.04));
}

.prospects-panel-error {
    padding: 16px;
    font-family: var(--font-family);
    font-size: var(--font-size-100);
    color: var(--text-critical);
}

/* Active view filter / sort chips: the table always shows what is hiding rows
   and offers a one-click way out (fb#89 / 868m09ddy follow-up). */
.prospects-view-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    box-sizing: border-box;
    min-height: 40px;
    padding: 8px 16px;
    font-family: var(--font-family);
    font-size: 11px;
    line-height: 1;
}

.prospects-view-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    height: 24px;
    padding: 0 4px 0 8px;
    border: 1px solid color-mix(in srgb, var(--icon-primary-default, #0d99ff) 35%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--icon-primary-default, #0d99ff) 10%, transparent);
    color: var(--text-default, #1a1a1a);
    white-space: nowrap;
}

.prospects-view-chip svg {
    flex: 0 0 auto;
    color: var(--icon-primary-default, #0d99ff);
}

.prospects-view-chip--sort {
    border-color: var(--border-default, rgba(0, 0, 0, 0.12));
    background: var(--surface-1, rgba(0, 0, 0, 0.04));
}

.prospects-view-chip--sort svg {
    color: var(--text-subdued);
}

.prospects-view-chip-text {
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.prospects-view-chip-count {
    color: var(--text-subdued);
    font-variant-numeric: tabular-nums;
}

.prospects-view-chip-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-subdued);
    cursor: pointer;
}

.prospects-view-chip-clear:hover {
    color: var(--text-default, #1a1a1a);
    background: color-mix(in srgb, currentColor 14%, transparent);
}

.prospects-view-chips-reset,
.prospects-empty-clear-btn {
    height: 24px;
    padding: 0 10px;
    border: 1px solid var(--border-default, rgba(0, 0, 0, 0.12));
    border-radius: 999px;
    background: transparent;
    color: var(--text-default, #1a1a1a);
    font-family: var(--font-family);
    font-size: 11px;
    cursor: pointer;
}

.prospects-view-chips-reset:hover,
.prospects-empty-clear-btn:hover {
    background: var(--surface-1, rgba(0, 0, 0, 0.04));
}

.prospects-empty-clear-btn {
    margin-left: 10px;
    height: 26px;
    font-size: 12px;
}

.table-assist .answer.answer--error .answer-body {
    color: var(--text-critical, #ff3730);
}

.prospects-panel-body {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.prospects-table-shell {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.prospects-table-shell--loading {
    pointer-events: none;
}

.prospects-table-shell--loading .prospects-table {
    opacity: 0.45;
}

.prospects-table-viewport {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.prospects-table-wrap {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    transition: opacity .15s ease;
}

.prospects-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: color-mix(in srgb, var(--surface-0) 78%, transparent);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    pointer-events: auto;
}

.prospects-enrich-status {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    min-height: 28px;
    padding: 8px 12px 4px;
}

/* Floating bulk-action bar; appears over the grid while rows are selected. */
.prospects-selection-bar {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 25;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    max-width: calc(100% - 24px);
    height: 40px;
    padding: 0 6px 0 12px;
    border: 1px solid var(--border-default);
    border-radius: 10px;
    background: var(--surface-0, #fff);
    box-shadow: 0 10px 30px rgba(4, 13, 20, .16), 0 1px 2px rgba(4, 13, 20, .06);
    white-space: nowrap;
    overflow: visible;
}

/* Keep the last rows reachable underneath the floating bar. */
.prospects-table-shell:has(.prospects-selection-bar) .prospects-table-wrap {
    padding-bottom: 60px;
}

.prospects-selection-bar__count {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-default);
    padding-right: 6px;
}

.prospects-selection-bar__sep {
    width: 1px;
    height: 18px;
    margin: 0 4px;
    background: var(--border-default);
    flex: 0 0 1px;
}

.prospects-selection-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-default);
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .12s ease, color .12s ease;
}

.prospects-selection-bar__btn svg {
    color: var(--text-subdued);
}

.prospects-selection-bar__btn:hover:not(:disabled) {
    background: var(--surface-100);
}

.prospects-selection-bar__btn:hover:not(:disabled) svg {
    color: var(--action-primary-default);
}

.prospects-selection-bar__btn.is-primary {
    background: var(--action-primary-default, #0091f9);
    color: #fff;
    margin-left: 2px;
}

.prospects-selection-bar__btn.is-primary svg {
    color: #fff;
}

.prospects-selection-bar__btn.is-primary:hover:not(:disabled) {
    background: color-mix(in srgb, var(--action-primary-default, #0091f9) 88%, #000);
}

.prospects-selection-bar__btn--quiet {
    color: var(--text-subdued);
}

.prospects-selection-bar__btn:disabled {
    opacity: .5;
    cursor: default;
}

/* Same dark pill as name-cell status tips; sit above the floating bar. */
.prospects-selection-bar__btn.has-custom-tooltip::before {
    top: auto !important;
    bottom: calc(100% + 8px) !important;
}

.prospects-selection-bar__btn.has-custom-tooltip::after {
    top: auto !important;
    bottom: calc(100% + 3px) !important;
    border-width: 5px 5px 0 5px !important;
    border-color: var(--background-tooltip, rgba(0, 0, 0, 0.85)) transparent transparent transparent !important;
}

.prospects-selection-bar__btn.has-custom-tooltip:hover::before,
.prospects-selection-bar__btn.has-custom-tooltip:hover::after {
    transition-delay: 0.12s !important;
}

.prospects-selection-bar-enter-active,
.prospects-selection-bar-leave-active {
    transition: opacity .16s ease, transform .16s ease;
}

.prospects-selection-bar-enter-from,
.prospects-selection-bar-leave-to {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
}

.prospects-loading-dots,
.sso-redirect-loader svg {
    display: block;
    flex-shrink: 0;
    fill: var(--action-primary-default, #ec2266);
    color: var(--action-primary-default, #ec2266);
}

#askbuzz-root .loading-step__dot {
    background: var(--action-primary-default, #ec2266) !important;
}

#askbuzz-root .loading-step--active .loading-step__mark {
    color: var(--action-primary-default, #ec2266) !important;
}

#askbuzz-root .composer .model-select > .ghost-btn,
.composer .model-select > .ghost-btn {
    color: var(--action-primary-default, #ec2266) !important;
}

#askbuzz-root .composer .model-select > .ghost-btn:hover:not(:disabled),
#askbuzz-root .composer .model-select > .ghost-btn.ghost-btn--active,
.composer .model-select > .ghost-btn:hover:not(:disabled),
.composer .model-select > .ghost-btn.ghost-btn--active {
    background: color-mix(in srgb, var(--action-primary-default, #ec2266) 10%, transparent) !important;
    color: var(--action-primary-default, #ec2266) !important;
}

#askbuzz-root .answer-actions .copy-btn svg.lucide-check {
    color: var(--action-primary-default, #ec2266) !important;
}

.prospects-table {
    /* Grow with columns when wide; never shrink below the wrapper (no trailing gap). */
    width: max-content;
    min-width: 100%;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
    font-family: var(--font-family);
    font-size: var(--font-size-50);
    line-height: var(--line-height-50);
}

.prospects-table thead {
    position: static;
    background: var(--surface-100);
}

.prospects-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--surface-100);
    box-shadow: 0 1px 0 var(--border-default, #ebebeb);
}

.prospects-table thead th.prospects-col--sticky-check {
    left: 0;
    z-index: 18;
}

.prospects-table thead th.prospects-col--sticky-name {
    left: 40px;
    z-index: 17;
}

.prospects-table thead th.prospects-col--menu-open,
.prospects-table thead th.prospects-col--resizing {
    z-index: 22;
}

.prospects-table th,
.prospects-table td {
    /* Dense data-grid rhythm: 36px rows, left-aligned text, numbers right-aligned. */
    padding: 6px 10px;
    border-bottom: 1px solid var(--border-default);
    border-right: 1px solid var(--border-default);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
    background: var(--surface-0);
    position: relative;
}

.prospects-table tbody td {
    height: var(--prospects-row-height, 36px);
}

.prospects-table th:not(.prospects-col-check):not(.prospects-col--sticky-check):not(.prospects-add-column-th),
.prospects-table td:not(.prospects-col-check):not(.prospects-col--sticky-check):not(.prospects-add-column-td) {
    width: var(--table-col-default, 185px);
    min-width: var(--table-col-default, 185px);
    max-width: var(--table-col-default, 185px);
}

.prospects-table th {
    font-weight: var(--font-weight-500);
    color: var(--text-subdued);
    background: var(--surface-100);
    /* Keep overflow visible so full-height column resizers aren't clipped. */
    overflow: visible;
}

.prospects-table td {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Loading cells keep their normal background (row hover / selected tint included);
   only the pulsing dots signal work in progress. */
.prospects-td--enriching {
    position: relative;
}

.prospects-col--enriching .prospects-th-label {
    color: var(--text-highlight, #1f77f2);
}

.prospects-cell-pending {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: transparent;
    pointer-events: none;
}

.prospects-name-cell .prospects-cell-pending {
    position: relative;
    inset: auto;
    justify-content: flex-start;
    min-height: 16px;
    background: transparent;
}

.prospects-cell-pending-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--action-primary-default, #0091f9);
    animation: prospects-cell-pending-pulse 0.9s ease-in-out infinite;
}

.prospects-cell-pending-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.prospects-cell-pending-dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes prospects-cell-pending-pulse {
    0%, 80%, 100% { opacity: 0.25; transform: scale(0.85); }
    40% { opacity: 1; transform: scale(1); }
}

.prospects-table thead,
.prospects-table {
    overflow: visible;
}

.prospects-table th:last-child,
.prospects-table td:last-child {
    border-right: none;
}

.prospects-cell-value {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.prospects-cell-value--long {
    color: var(--text-subdued);
}

/* Lookup ran, nothing came back: a quiet dash (via data-empty-label) with a tooltip. */
.prospects-cell-value--not-found {
    color: var(--text-subdued);
    font-style: normal;
}

.prospects-panel .prospects-cell-value--not-found:empty::before {
    opacity: .55;
}

.prospects-cell-value--num {
    text-align: right;
    justify-content: flex-end !important;
    font-variant-numeric: tabular-nums;
}

.prospects-cell-miss {
    display: inline-block;
    color: var(--text-subdued);
    opacity: .55;
    cursor: help;
}

.prospects-cell-blank {
    display: inline-block;
    min-height: 22px;
    flex: 1 1 auto;
}

/* Hover-only lookup glyph for enrichable columns (Email/Phone/Company/LinkedIn). */
.prospects-cell-lookup {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--surface-0, #fff);
    color: var(--action-primary-default, #0091f9);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s ease, background-color .12s ease, border-color .12s ease;
    z-index: 2;
}

.prospects-table td:hover .prospects-cell-lookup,
.prospects-table td:focus-within .prospects-cell-lookup,
.prospects-cell-lookup:focus-visible {
    opacity: 1;
    pointer-events: auto;
}

.prospects-cell-lookup:hover:not(:disabled) {
    background: color-mix(in srgb, var(--action-primary-default, #0091f9) 12%, var(--surface-0, #fff));
    border-color: color-mix(in srgb, var(--action-primary-default, #0091f9) 35%, transparent);
}

.prospects-cell-lookup:disabled {
    opacity: 0 !important;
}

/* Coverage dot: LinkedIn + email + phone → green; something missing → amber; no LinkedIn → red. */
.prospects-status-dot {
    display: inline-block;
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ced4da;
    box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 18%, transparent);
}

.prospects-status-dot--enriched { background: #40c057; color: #40c057; }
.prospects-status-dot--partial { background: #f59f00; color: #f59f00; }
.prospects-status-dot--unlinked { background: #ff8787; color: #ff8787; }

:root[data-theme="dark"] .prospects-status-dot--enriched { background: #69db7c; color: #69db7c; }
:root[data-theme="dark"] .prospects-status-dot--partial { background: #fcc419; color: #fcc419; }
:root[data-theme="dark"] .prospects-status-dot--unlinked { background: #ffa8a8; color: #ffa8a8; }

/* Verification dot inside Email / Phone cells: green = verifier confirmed
   (deliverable), amber = found but unverified (risky / accept-all / no verifier). */
.prospects-verify-dot {
    margin-right: 7px;
}
.prospects-verify-dot--verified { background: #40c057; color: #40c057; }
.prospects-verify-dot--unverified { background: #f59f00; color: #f59f00; }
:root[data-theme="dark"] .prospects-verify-dot--verified { background: #69db7c; color: #69db7c; }
:root[data-theme="dark"] .prospects-verify-dot--unverified { background: #fcc419; color: #fcc419; }

/* Chat result tables: the Email/Phone Verified columns fold into a dot on the
   value cell; the columns stay in the DOM (display:none) for Download CSV. */
.chat-table-block th.chat-table-col--verify-meta,
.chat-table-block td.chat-table-col--verify-meta { display: none !important; }
.chat-table-block .chat-verify-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 18%, transparent);
}
.chat-table-block .chat-verify-dot--verified { background: #40c057; color: #40c057; }
.chat-table-block .chat-verify-dot--unverified { background: #f59f00; color: #f59f00; }
:root[data-theme="dark"] .chat-table-block .chat-verify-dot--verified { background: #69db7c; color: #69db7c; }
:root[data-theme="dark"] .chat-table-block .chat-verify-dot--unverified { background: #fcc419; color: #fcc419; }

.prospects-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: var(--font-size-50);
    color: var(--text-default);
}

/* Header resizer is a hit target only; cell borders draw the grid so
   full-height handles cannot paint over the sticky checkbox column. */

.prospects-table tbody tr {
    cursor: pointer;
    transition: background-color .12s ease;
}

.prospects-table tbody tr:hover td,
.prospects-row--selected td {
    background: var(--surface-100);
}

.prospects-col-check {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    text-align: center;
}

.prospects-col--sticky-check {
    position: sticky !important;
    left: 0;
    z-index: 16;
    background: var(--surface-0);
}

.prospects-col--sticky-name {
    position: sticky !important;
    left: 40px;
    z-index: 15;
    background: var(--surface-0);
    box-shadow: 2px 0 4px -2px rgba(35, 44, 96, 0.12);
    text-align: left;
}

.prospects-table tbody tr:hover td.prospects-col--sticky-check,
.prospects-table tbody tr.prospects-row--selected td.prospects-col--sticky-check,
.prospects-table tbody tr:hover td.prospects-col--sticky-name,
.prospects-table tbody tr.prospects-row--selected td.prospects-col--sticky-name {
    background: var(--surface-100);
}

.prospects-th-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    min-height: 18px;
    padding-right: 8px;
    user-select: none;
}

.prospects-col--sticky-name .prospects-th-inner {
    justify-content: flex-start;
}

.prospects-th-label-btn {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.prospects-col--sticky-name .prospects-th-label-btn {
    justify-content: flex-start;
    text-align: left;
}

.prospects-th-label-btn:disabled {
    cursor: default;
    opacity: 0.7;
}

.prospects-th-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prospects-th-label-btn--edit {
    cursor: default;
}

.prospects-th-label--editable {
    cursor: text;
    user-select: text;
    outline: none;
    border-radius: var(--radius-4);
    padding: 1px 4px;
    margin: -1px -4px;
}

.prospects-th-label--editable:focus {
    overflow: visible;
    text-overflow: clip;
    background: var(--surface-0, #fff);
    box-shadow: 0 0 0 1px var(--border-primary-default, #0091f9);
}

.prospects-th-sort-hit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.prospects-th-sort {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    color: var(--icon-subdued);
    opacity: 0;
    transition: opacity .12s ease, color .12s ease, transform .12s ease;
}

.prospects-table th:hover .prospects-th-sort,
.prospects-th-label-btn.is-sorted .prospects-th-sort,
.prospects-th-sort-hit.is-sorted .prospects-th-sort,
.prospects-th-label-btn:focus-visible .prospects-th-sort,
.prospects-th-sort-hit:focus-visible .prospects-th-sort {
    opacity: 1;
}

.prospects-th-label-btn.is-sorted .prospects-th-sort,
.prospects-th-sort-hit.is-sorted .prospects-th-sort {
    color: var(--icon-primary-default, #0d99ff);
}

.prospects-th-label-btn.is-sorted-desc .prospects-th-sort,
.prospects-th-sort-hit.is-sorted-desc .prospects-th-sort {
    transform: scaleY(-1);
}

.prospects-th-menu {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
}

.prospects-th-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: var(--radius-4);
    background: transparent;
    color: var(--icon-subdued);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s ease, background-color .12s ease, color .12s ease;
}

.prospects-table th:hover .prospects-th-menu-btn,
.prospects-table th.prospects-col--menu-open .prospects-th-menu-btn,
.prospects-th-menu-btn.is-open,
.prospects-th-menu-btn:focus-visible,
.prospects-th-split-btn,
.prospects-status-filter-btn {
    opacity: 1;
    pointer-events: auto;
}

.prospects-th-menu-btn:hover:not(:disabled),
.prospects-th-menu-btn.is-open {
    background: var(--action-secondary-hovered);
    color: var(--icon-default);
}

.prospects-th-menu-btn:disabled {
    cursor: default;
    opacity: 0.4;
}

.prospects-status-filter-btn.is-active,
.prospects-status-filter-btn.is-open {
    opacity: 1;
    pointer-events: auto;
    color: var(--icon-primary-default, #0d99ff);
}

.prospects-status-filter-menu {
    min-width: 188px;
    padding: 4px;
    background: var(--surface-0);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-12);
    box-shadow: 0 8px 16px rgba(35, 44, 96, .16);
}

.prospects-status-filter-menu--portal {
    z-index: 10050;
}

.prospects-status-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 32px;
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-default);
    cursor: pointer;
    font: inherit;
    font-size: var(--font-size-100, 14px);
    line-height: var(--line-height-100, 20px);
    text-align: left;
}

.prospects-status-filter-option:hover {
    background: var(--surface-100, #f3f3f3);
}

.prospects-status-filter-option.is-checked {
    background: color-mix(in srgb, var(--action-primary-default, #0091f9) 8%, transparent);
}

.prospects-status-filter-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: transparent;
}

.prospects-status-filter-option.is-checked .prospects-status-filter-check {
    color: var(--icon-primary-default, #0d99ff);
}

.prospects-status-filter-option .prospects-status-badge {
    height: auto;
    font-size: 12px;
    line-height: 16px;
}

/* Match Composer "+" menu for column header actions.
   Must be position:absolute — Composer’s scoped styles don’t apply here. */
.prospects-th-menu-dropdown.composer-plus-menu {
    position: absolute;
    top: calc(100% + 8px);
    bottom: auto;
    left: 0;
    right: auto;
    z-index: 40;
    width: 220px;
    max-width: min(220px, calc(100vw - 32px));
    overflow: visible;
    padding: 4px;
    background: var(--surface-0);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-12);
    box-shadow: 0 8px 16px rgba(35, 44, 96, .16);
}

.prospects-th-menu-dropdown.composer-plus-menu.prospects-th-menu-dropdown--end {
    left: auto;
    right: 0;
}

.prospects-th-menu-dropdown.composer-plus-menu.prospects-th-menu-dropdown--portal {
    position: fixed !important;
    left: auto;
    right: auto;
    z-index: 10050 !important;
}

.prospects-th-menu-dropdown .composer-menu-nav--action {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.prospects-th-menu-dropdown .composer-menu-nav--action:disabled {
    cursor: default;
    opacity: 0.45;
}

.prospects-th-menu-dropdown .composer-menu-nav--action:disabled .composer-menu-nav-row:hover {
    background: transparent;
}

.prospects-th-menu-dropdown .composer-menu-nav-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 32px;
    padding: 8px 4px;
    border-radius: var(--radius-4);
    transition: background-color .15s ease;
}

.prospects-th-menu-dropdown .composer-menu-nav--action:not(:disabled) .composer-menu-nav-row:hover {
    background: var(--surface-100);
}

.prospects-th-menu-dropdown .composer-menu-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    flex: none;
    color: var(--icon-subdued);
}

.prospects-th-menu-dropdown .composer-menu-nav-icon svg {
    width: 14px;
    height: 14px;
    stroke-width: 2px;
}

.prospects-th-menu-dropdown .composer-menu-nav-label {
    flex: 1 1 auto;
    min-width: 0;
    font-family: var(--font-family);
    font-size: var(--font-size-50);
    font-weight: var(--font-weight-400);
    line-height: var(--line-height-50);
    letter-spacing: var(--letter-spacing-50);
    color: var(--text-default);
    text-align: left;
}

.prospects-th-menu-dropdown .composer-menu-section-divider {
    height: 1px;
    margin: 4px 0;
    background: var(--border-default);
}

.prospects-th-menu-dropdown .composer-menu-nav--danger .composer-menu-nav-label,
.prospects-th-menu-dropdown .composer-menu-nav--danger .composer-menu-nav-icon {
    color: var(--text-critical);
}

.prospects-col--dragging {
    opacity: 0.55;
}

.prospects-col-resizer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: auto;
    width: 16px;
    height: 48px;
    min-height: 0;
    cursor: col-resize;
    touch-action: none;
    pointer-events: auto;
    z-index: 30;
}

.prospects-col-resizer::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-default, #ebebeb);
    border-radius: 0;
    transition: background-color .12s ease, width .12s ease;
}

.prospects-col-resizer:hover::after,
.prospects-col-resizer.is-resizing::after {
    width: 2px;
    background: var(--action-primary-default, #0091f9);
}

.prospects-col-resizer:hover,
.prospects-col-resizer.is-resizing {
    z-index: 16;
}

html.is-resizing-prospects-col,
html.is-resizing-prospects-col * {
    cursor: col-resize !important;
    user-select: none !important;
}

.prospects-name-cell {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    height: 100%;
    overflow: visible;
}

.prospects-name-stack {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.prospects-name-cell .prospects-cell-stack {
    width: auto;
    max-width: 100%;
}

.prospects-name-cell .linkedin-icon,
.prospects-name-cell .linkedin-find-btn,
.prospects-name-cell .prospects-cell-pending {
    flex: 0 0 20px;
    align-self: center;
}

.prospects-name {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    font-weight: var(--font-weight-500);
    color: var(--text-default);
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.prospects-name-cell.has-custom-tooltip::before {
    left: 0 !important;
    transform: scale(0.95) !important;
}

.prospects-name-cell.has-custom-tooltip:hover::before {
    transform: scale(1) !important;
}

.prospects-name-cell.has-custom-tooltip::after {
    left: 10px !important;
}

.prospects-name-cell.has-custom-tooltip:hover::before,
.prospects-name-cell.has-custom-tooltip:hover::after {
    transition-delay: 0.12s !important;
}

.prospects-status-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 10px;
    font-weight: var(--font-weight-400, 400);
    line-height: 12px;
    letter-spacing: 0.01px;
    white-space: nowrap;
}

.prospects-status-badge--enriched {
    color: #40c057;
}

.prospects-status-badge--partial {
    color: #f59f00;
}

.prospects-status-badge--unlinked {
    color: #ff8787;
}

:root[data-theme="dark"] .prospects-status-badge--enriched {
    color: #69db7c;
}

:root[data-theme="dark"] .prospects-status-badge--partial {
    color: #fcc419;
}

:root[data-theme="dark"] .prospects-status-badge--unlinked {
    color: #ffa8a8;
}

.linkedin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--action-primary-default, #0091f9);
    text-decoration: none;
    cursor: pointer;
    opacity: 1;
    transition: color var(--transition-50, 0.15s ease-in-out);
}

.linkedin-icon__svg {
    display: block;
    width: 16px;
    height: 16px;
}

.linkedin-icon:hover,
.linkedin-icon:focus-visible {
    color: color-mix(in srgb, var(--action-primary-default, #0091f9) 72%, #ffffff);
    background: none;
}

.linkedin-find-btn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--action-primary-default, #0091f9);
    cursor: pointer;
    box-shadow: none;
    opacity: 1;
    transition: color var(--transition-50, 0.15s ease-in-out);
}

.linkedin-find-btn .prospects-enrich-btn__icon {
    display: block;
    width: 16px;
    height: 16px;
    color: inherit;
}

.linkedin-find-btn:hover,
.linkedin-find-btn:focus-visible {
    background: transparent;
    color: color-mix(in srgb, var(--action-primary-default, #0091f9) 72%, #ffffff);
}

.prospects-table .linkedin-find-btn.has-custom-tooltip:hover {
    z-index: 10050;
}

.prospects-table td:has(.linkedin-find-btn.has-custom-tooltip:hover),
.prospects-table td:has(.prospects-name-cell.has-custom-tooltip:hover) {
    z-index: 10050;
    overflow: visible;
}

.prospects-link {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--font-size-50);
    color: var(--text-highlight);
    text-decoration: none;
    text-align: left;
}

.prospects-link--sub {
    max-width: 100%;
    font-size: 11px;
    line-height: 1.3;
    color: var(--text-subdued);
}

.prospects-link--sub:hover {
    color: var(--text-highlight);
}

.prospects-link:hover {
    text-decoration: underline;
}

.prospects-cell-empty,
.prospects-panel .plan-table-value--editable:empty::before {
    margin: 0;
    font-size: var(--font-size-50, 12px);
    line-height: var(--line-height-50, 16px);
    color: var(--text-subdued);
    font-style: normal;
    font-weight: var(--font-weight-400, 400);
    text-align: left;
}

/* Empty cells are just empty. data-empty-label is only set for "not found" (a dash). */
.prospects-panel .plan-table-value--editable:empty::before {
    content: attr(data-empty-label);
}

.prospects-panel .prospects-cell-value.plan-table-value--editable {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 22px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    outline: none;
}

.prospects-panel .prospects-cell-value.plan-table-value--editable:focus {
    display: block;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    text-align: left;
}

.prospects-td--editable {
    vertical-align: middle;
    cursor: text;
    transition: background-color .12s ease;
}

.prospects-cell-stack {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
}

/* Leave room for the hover lookup glyph so it never sits on top of text. */
.prospects-td--enrich-empty .prospects-cell-stack .plan-table-value--editable,
.prospects-td--enrich-empty .prospects-cell-stack .prospects-cell-blank {
    padding-right: 24px;
}

.prospects-td--enrich-empty {
    cursor: text;
}

.prospects-enrich-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 32px;
    min-width: 85px;
    padding: 0 12px;
    border: 1px solid var(--border-default, #ebebeb);
    border-radius: var(--radius-4, 4px);
    background: var(--action-secondary-default, #f3f3f3);
    color: var(--text-default);
    font-family: inherit;
    font-size: var(--font-size-100, 14px);
    font-weight: var(--font-weight-500);
    line-height: 1;
    letter-spacing: inherit;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .12s ease, border-color .12s ease;
}

.prospects-enrich-btn__icon {
    display: block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}

.prospects-enrich-btn:hover:not(:disabled) {
    background: var(--action-secondary-hovered, #ececec);
}

.prospects-enrich-btn:focus-visible {
    outline: 2px solid var(--action-primary-default, #0091f9);
    outline-offset: 1px;
}

.prospects-enrich-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

/* Spreadsheet-style cell focus: a hairline on hover, a 2px ring while editing. No fills. */
.prospects-td--editable:hover {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--action-primary-default, #0091f9) 40%, transparent);
}

.prospects-td--editable:focus-within {
    box-shadow: inset 0 0 0 2px var(--action-primary-default, #0091f9);
    z-index: 4;
}

.prospects-panel .prospects-td--editable:hover .plan-table-value--editable {
    background: transparent;
}

.prospects-add-column-th,
.prospects-add-column-td {
    width: auto;
    min-width: var(--table-col-default, 185px);
    max-width: none;
}

.prospects-table thead th.prospects-add-column-th,
.prospects-table tbody td.prospects-add-column-td {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    z-index: 1 !important;
}

.prospects-table thead th.prospects-add-column-th {
    padding: 0 !important;
}

.prospects-table tbody td.prospects-add-column-td {
    pointer-events: none;
}

.prospects-add-column-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: var(--text-default);
    font: inherit;
    font-weight: var(--font-weight-500);
    text-align: left;
    cursor: pointer;
}

.prospects-add-column-btn:hover:not(:disabled),
.prospects-add-column-btn:focus-visible {
    background: var(--action-secondary-hovered);
}

.prospects-add-column-btn:focus-visible {
    outline: 1px solid var(--action-primary-default, #0091f9);
    outline-offset: -1px;
}

.prospects-add-column-btn:disabled {
    cursor: default;
    opacity: .45;
}

.prospects-add-column-td {
    cursor: default;
}

.prospects-badge {
    display: inline-block;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--surface-200);
    color: var(--text-default);
    text-align: center;
}

.prospects-empty {
    text-align: center;
    color: var(--text-subdued);
    padding: 24px 12px !important;
}

.prospects-download-btn {
    position: relative;
    opacity: 0.6;
    transition: opacity .15s ease;
}

.prospects-download-btn:hover {
    opacity: 1;
}

.prospects-download-btn .copy-tooltip {
    z-index: 60;
}

.prospects-table-download-row {
    z-index: 40;
}

.prospects-panel-footer {
    position: relative;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 6px 12px;
    border-top: 1px solid var(--border-default);
    flex-shrink: 0;
    background: var(--surface-0);
    overflow: visible;
}

/*
 * Docked/workspace footer stays compact. Keep a small right inset so the
 * download control is not covered by shell chrome.
 */
.prospects-panel--docked .prospects-panel-footer,
.prospects-panel-root:not(.prospects-panel-root--embedded):not(.prospects-panel-root--docked) .prospects-panel-footer {
    padding: 6px calc(12px + var(--askbuzz-shell-clearance-x, 16px)) 6px 12px;
}

.prospects-pagination {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    width: 100%;
    min-height: 28px;
}

.prospects-pagination-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.prospects-page-label {
    font-family: var(--font-family);
    font-size: var(--font-size-50);
    color: var(--text-subdued);
}

.prospects-selected-count {
    font-family: var(--font-family);
    font-size: var(--font-size-50);
    font-weight: var(--font-weight-400);
    color: var(--text-subdued);
    justify-self: start;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prospects-selected-count-short {
    display: none;
}

.prospects-table-download-row {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 30px;
}

.prospects-table-download-row--spacer {
    width: 62px;
    height: 34px;
    margin-right: 30px;
}

.prospects-research-table-error {
    margin: 0;
    width: 100%;
    color: var(--text-critical, #ff3730);
    font-family: var(--font-family);
    font-size: var(--font-size-50, 12px);
    line-height: var(--line-height-50, 16px);
}

@media (min-width: 1024px) {
    .screen--prospects-open .main {
        margin-right: 0;
    }
}

/* Workspace tabs (Chat | research tables) — one full pane at a time on all viewports. */
.workspace-tabs {
    display: none;
}

.workspace-tab {
    appearance: none;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: -0.09px;
    color: var(--text-subdued);
    padding: 10px 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.workspace-tab--with-icon {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    max-width: 180px;
    min-width: 0;
    overflow: hidden;
}

.workspace-tab-icon {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    opacity: 0.85;
}

.workspace-tab-label {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-tab-label.is-dirty::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 6px;
    border-radius: 50%;
    background: var(--action-primary-default, #0091f9);
    flex: 0 0 auto;
    vertical-align: middle;
}

.workspace-tab.is-active {
    color: var(--text-default);
    border-bottom-color: var(--action-primary-default, #0091f9);
}

.workspace-tab:hover {
    color: var(--text-default);
}

.workspace-tab-group {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    max-width: 210px;
    min-width: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.workspace-tab-group.is-active {
    border-bottom-color: var(--action-primary-default, #0091f9);
}

.workspace-tab-group .workspace-tab {
    border-bottom: none;
    margin-bottom: 0;
    padding-right: 4px;
}

.workspace-tab-group .workspace-tab.is-active {
    border-bottom-color: transparent;
}

.workspace-tab-close {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0 8px 0 0;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: var(--text-subdued);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
}

.workspace-tab-group:hover .workspace-tab-close,
.workspace-tab-group:focus-within .workspace-tab-close {
    opacity: 1;
    pointer-events: auto;
}

.workspace-tab-close:hover {
    color: var(--text-default);
    background: var(--surface-100, #f3f3f3);
}

.prospects-workspace-resizer {
    display: none;
}

.screen--prospects-open .app-workspace {
    flex-direction: column;
}

.screen--prospects-open .workspace-tabs {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 0 12px;
    border-bottom: 1px solid var(--border-default);
    background: var(--surface-0);
    z-index: 8;
    overflow: visible;
}

.workspace-tabs-scroll {
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    gap: 0;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.workspace-tabs:has(.has-custom-tooltip:hover),
.workspace-tabs-sidebar-actions:has(.has-custom-tooltip:hover),
.collapsed-sidebar-actions:has(.has-custom-tooltip:hover),
.has-custom-tooltip:hover {
    z-index: 10050 !important;
}

.workspace-tabs-sidebar-actions {
    position: relative;
    z-index: 9;
    overflow: visible;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    align-self: center;
    gap: 4px;
    margin-right: 4px;
    padding-right: 8px;
    border-right: 1px solid var(--border-default);
}

.workspace-tabs-sidebar-actions .collapsed-action-btn {
    width: 28px;
    height: 28px;
}

/* One full-height pane at a time. Keep both mounted. */
.app-workspace--tab-chat .prospects-panel-root--docked {
    display: none !important;
}

.app-workspace--tab-prospects > .main {
    display: none !important;
}

.app-workspace--tab-prospects .prospects-panel-root--docked,
.screen--prospects-open .prospects-panel-root--docked {
    flex: 1 1 auto;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
}

.app-workspace--tab-chat > .main {
    flex: 1 1 auto;
    min-height: 0;
}

.screen--prospects-open .prospects-panel--docked {
    border-left: none;
    border-top: none;
}

@media (max-width: 768px) {
    .screen--prospects-open .workspace-tabs {
        padding: 0 8px;
    }

    .workspace-tabs-sidebar-actions {
        display: none !important;
    }

    .prospects-panel {
        width: 100vw;
    }

    .prospects-panel--docked .prospects-panel-footer,
    .prospects-panel-root:not(.prospects-panel-root--embedded):not(.prospects-panel-root--docked) .prospects-panel-footer {
        padding: 6px 10px;
    }

    .prospects-pagination {
        gap: 4px;
        min-height: 28px;
    }

    .prospects-pagination-nav {
        gap: 10px;
    }

    .prospects-page-label,
    .prospects-selected-count {
        font-size: 12px;
    }

    .prospects-selected-count-full {
        display: none;
    }

    .prospects-selected-count-short {
        display: inline;
    }
}

.sidebar .chat-item .chat-delete {
    opacity: 0;
    pointer-events: none;
}

.sidebar .chat-item:hover .chat-delete,
.sidebar .chat-item:focus-within .chat-delete {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay--sidebar {
    z-index: 1000;
}

/* Credit Badge Styles */
.credits-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-highlight);
    background-color: rgba(31, 119, 242, 0.1);
    border-radius: 4px;
    margin-top: 4px;
    white-space: nowrap;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    max-width: calc(100% - 30px);
}

.suggestions-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Prompt cards - Mobile auto layout */
@media (max-width: 768px) {
    .main:not(.main--chat) .suggestions,
    .suggestions {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: stretch !important;
        align-self: stretch !important;
        padding: 0px !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
    }

    .suggestions-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        padding: 0px !important;
        gap: 12px !important;
        width: 100% !important;
        height: 96px !important;
        flex: none !important;
        align-self: stretch !important;
    }

    .suggestions-row .suggestion-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 12px !important;
        gap: 8px !important;
        width: 0 !important;
        flex: 1 1 0% !important;
        height: 96px !important;
        min-height: 96px !important;
        max-height: 96px !important;
        background: var(--surface-0) !important;
        box-shadow: var(--shadow-s) !important;
        border-radius: var(--radius-8, 8px) !important;
        border: none !important;
        cursor: pointer !important;
        text-align: left !important;
        overflow: hidden !important;
    }

    .suggestions-row .suggestion-card .suggestion-label {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        height: 16px !important;
        font-family: var(--font-family) !important;
        font-style: normal !important;
        font-weight: 500 !important;
        font-size: 12px !important;
        line-height: 16px !important;
        letter-spacing: 0.01px !important;
        color: var(--text-default) !important;
        flex: none !important;
        order: 0 !important;
        flex-grow: 0 !important;
        margin: 0 !important;
    }

    .suggestions-row .suggestion-card .suggestion-text {
        display: flex !important;
        align-items: flex-start !important;
        width: 100% !important;
        height: 48px !important;
        font-family: var(--font-family) !important;
        font-style: normal !important;
        font-weight: 400 !important;
        font-size: 12px !important;
        line-height: 16px !important;
        letter-spacing: 0.01px !important;
        color: var(--text-subdued) !important;
        flex: none !important;
        order: 1 !important;
        align-self: stretch !important;
        flex-grow: 0 !important;
        overflow: hidden !important;
    }

    .suggestions .suggestion-card--full {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 12px !important;
        gap: 8px !important;
        width: 100% !important;
        height: 96px !important;
        min-height: 96px !important;
        max-height: 96px !important;
        background: var(--surface-0) !important;
        box-shadow: var(--shadow-s) !important;
        border-radius: var(--radius-8, 8px) !important;
        border: none !important;
        cursor: pointer !important;
        text-align: left !important;
        flex: none !important;
        order: 1 !important;
        align-self: stretch !important;
        flex-grow: 0 !important;
        overflow: hidden !important;
    }

    .suggestions .suggestion-card--full .suggestion-label {
        display: block !important;
        width: 100% !important;
        height: 16px !important;
        font-family: var(--font-family) !important;
        font-style: normal !important;
        font-weight: 500 !important;
        font-size: 12px !important;
        line-height: 16px !important;
        letter-spacing: 0.01px !important;
        color: var(--text-default) !important;
        flex: none !important;
        order: 0 !important;
        flex-grow: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .suggestions .suggestion-card--full .suggestion-text {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-height: 48px !important;
        font-family: var(--font-family) !important;
        font-style: normal !important;
        font-weight: 400 !important;
        font-size: 12px !important;
        line-height: 16px !important;
        letter-spacing: 0.01px !important;
        color: var(--text-subdued) !important;
        flex: none !important;
        order: 1 !important;
        align-self: stretch !important;
        flex-grow: 0 !important;
        overflow: hidden !important;
        white-space: normal !important;
        text-overflow: unset !important;
    }

    #askbuzz-root .suggestions-row .suggestion-card,
    #askbuzz-root .suggestions .suggestion-card--full {
        transition: box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease !important;
    }

    #askbuzz-root .suggestions-row .suggestion-card:hover,
    #askbuzz-root .suggestions .suggestion-card--full:hover {
        box-shadow: 0 4px 12px rgba(35, 44, 96, 0.18) !important;
        transform: translateY(-1px) !important;
    }

    /* Dark mode matches desktop mode cards */
    :root[data-theme="dark"] #askbuzz-root .suggestions-row .suggestion-card,
    :root[data-theme="dark"] #askbuzz-root .suggestions .suggestion-card--full {
        background: var(--surface-0) !important;
        border: 1px solid var(--border-default) !important;
        box-shadow: none !important;
    }

    :root[data-theme="dark"] #askbuzz-root .suggestions-row .suggestion-card:hover,
    :root[data-theme="dark"] #askbuzz-root .suggestions .suggestion-card--full:hover {
        background: var(--surface-100) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    }

    /* Mobile Top Bar - Title and Controls spec */
    #askbuzz-root .mobile-top-bar {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 16px !important;
        gap: 16px !important;
        width: 100% !important;
        height: 56px !important;
        overflow: visible !important;
        min-height: 56px !important;
        background: var(--surface-0) !important;
        box-sizing: border-box !important;
        z-index: 90 !important;
        position: relative !important;
    }

    #askbuzz-root .mobile-top-bar-container-left {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 0px !important;
        gap: 8px !important;
        height: 25px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    #askbuzz-root .mobile-top-bar-chat {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 0px !important;
        gap: 6px !important;
        height: 25px !important;
        cursor: pointer !important;
    }

    #askbuzz-root .mobile-top-bar-title-wrapper {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        padding: 0px !important;
        gap: 2px !important;
        height: 25px !important;
    }

    #askbuzz-root .mobile-top-bar-title {
        font-family: 'SF Pro', 'Inter', var(--font-family) !important;
        font-style: normal !important;
        font-weight: 590 !important;
        font-size: 20px !important;
        line-height: 25px !important;
        letter-spacing: -0.45px !important;
        color: var(--text-default) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 180px !important;
    }

    #askbuzz-root .mobile-top-bar-chevron {
        width: 16px !important;
        height: 16px !important;
        flex: none !important;
        color: var(--icon-subdued, rgba(4, 13, 20, 0.53)) !important;
    }

    #askbuzz-root .mobile-top-bar-badge {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0px 6px !important;
        width: 38px !important;
        height: 16px !important;
        background: var(--action-primary-default, #ec2266) !important;
        border-radius: 100px !important;
        flex: none !important;
        order: 1 !important;
        flex-grow: 0 !important;
    }

    #askbuzz-root .mobile-top-bar-badge-number {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 26px !important;
        height: 16px !important;
        font-family: 'Inter', var(--font-family) !important;
        font-style: normal !important;
        font-weight: 400 !important;
        font-size: 12px !important;
        line-height: 16px !important;
        text-align: center !important;
        letter-spacing: 0.01px !important;
        color: #FFFFFF !important;
        flex: none !important;
    }

    #askbuzz-root .mobile-top-bar-container-right {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 0px !important;
        gap: 8px !important;
        height: 30px !important;
        flex: none !important;
        overflow: visible !important;
    }

    #askbuzz-root .mobile-top-bar-buttons {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 0px !important;
        gap: 4px !important;
        height: 30px !important;
        flex: none !important;
        overflow: visible !important;
    }

    #askbuzz-root .mobile-icon-btn {
        position: relative !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0px !important;
        isolation: isolate !important;
        width: 30px !important;
        height: 30px !important;
        background: transparent !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        cursor: pointer !important;
        color: rgba(4, 13, 20, 0.53) !important;
        flex: none !important;
        flex-grow: 0 !important;
    }

    #askbuzz-root .mobile-icon-btn .mobile-icon-btn__icon,
    #askbuzz-root .mobile-icon-btn svg {
        width: 20px !important;
        height: 20px !important;
        flex: none !important;
        flex-grow: 0 !important;
        position: relative !important;
        z-index: 0 !important;
    }

    #askbuzz-root .mobile-icon-btn:hover {
        background: transparent !important;
        color: var(--icon-default, rgba(4, 13, 20, 0.9)) !important;
    }

    #askbuzz-root .mobile-close-btn,
    .mobile-close-btn {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0px !important;
        width: 30px !important;
        min-width: 30px !important;
        max-width: 30px !important;
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
        background: transparent !important;
        border-radius: 1000px !important;
        border: none !important;
        cursor: pointer !important;
        flex: none !important;
        flex-grow: 0 !important;
        overflow: hidden !important;
    }

    #askbuzz-root .mobile-close-btn svg,
    .mobile-close-btn svg {
        display: block !important;
        width: 30px !important;
        height: 30px !important;
        flex: none !important;
    }

    /* Dark Mode overrides for Mobile Top Bar */
    :root[data-theme="dark"] #askbuzz-root .mobile-close-btn svg path,
    :root[data-theme="dark"] .mobile-close-btn svg path {
        fill: #FFFFFF !important;
        fill-opacity: 0.85 !important;
    }

    :root[data-theme="dark"] #askbuzz-root .mobile-top-bar {
        background: var(--surface-0, #1c1c1e) !important;
        border-bottom: 1px solid var(--border-default, #34343a) !important;
    }

    :root[data-theme="dark"] #askbuzz-root .mobile-icon-btn {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        color: var(--icon-subdued, rgba(209, 209, 214, 0.6)) !important;
    }

    :root[data-theme="dark"] #askbuzz-root .mobile-icon-btn:hover {
        background: transparent !important;
        color: var(--icon-default, #d1d1d6) !important;
    }

    #askbuzz-root .mobile-options-wrap {
        position: relative !important;
        width: 30px !important;
        height: 30px !important;
        flex: none !important;
    }

    #askbuzz-root .mobile-options-dropdown {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        right: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 160px !important;
        padding: 6px !important;
        background: var(--surface-0, #FFFFFF) !important;
        box-shadow: 0px 8px 16px rgba(35, 44, 96, 0.16) !important;
        border-radius: 12px !important;
        border: 1px solid var(--border-default, #EBEBEB) !important;
        box-sizing: border-box !important;
        z-index: 1200 !important;
    }

    :root[data-theme="dark"] #askbuzz-root .mobile-options-dropdown {
        background: var(--surface-0, #1C1C1E) !important;
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.4) !important;
        border-color: var(--border-default, #34343a) !important;
    }

    #askbuzz-root .mobile-options-dropdown__slot {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 148px !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    #askbuzz-root .mobile-options-dropdown__item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        width: 148px !important;
        height: 32px !important;
        padding: 6px 12px !important;
        background: transparent !important;
        border: none !important;
        border-radius: 6px !important;
        cursor: pointer !important;
        box-sizing: border-box !important;
        font-family: 'Inter', system-ui, sans-serif !important;
    }

    #askbuzz-root .mobile-options-dropdown__item:hover:not(:disabled) {
        background: var(--surface-100, #F9F9F9) !important;
    }

    :root[data-theme="dark"] #askbuzz-root .mobile-options-dropdown__item:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.05) !important;
    }

    #askbuzz-root .mobile-options-dropdown__item:disabled {
        opacity: 0.45 !important;
        cursor: not-allowed !important;
    }

    #askbuzz-root .mobile-options-dropdown__item svg {
        width: 16px !important;
        height: 16px !important;
        flex: none !important;
    }

    #askbuzz-root .mobile-options-dropdown__label {
        font-family: 'Inter', system-ui, sans-serif !important;
        font-weight: 400 !important;
        font-size: 14px !important;
        line-height: 20px !important;
        letter-spacing: -0.09px !important;
        text-align: left !important;
    }

    #askbuzz-root .mobile-options-dropdown__item--rename {
        color: var(--text-default, rgba(4, 13, 20, 0.9)) !important;
    }

    #askbuzz-root .mobile-options-dropdown__item--rename svg {
        color: var(--text-subdued, rgba(4, 13, 20, 0.53)) !important;
    }

    :root[data-theme="dark"] #askbuzz-root .mobile-options-dropdown__item--rename {
        color: var(--text-default, rgba(255, 255, 255, 0.9)) !important;
    }

    :root[data-theme="dark"] #askbuzz-root .mobile-options-dropdown__item--rename svg {
        color: var(--text-subdued, rgba(255, 255, 255, 0.53)) !important;
    }

    #askbuzz-root .mobile-options-dropdown__item--delete,
    #askbuzz-root .mobile-options-dropdown__item--delete svg,
    #askbuzz-root .mobile-options-dropdown__item--delete .mobile-options-dropdown__label {
        color: #FF3730 !important;
    }
}

.rename-modal-input-wrap {
    width: 100%;
}

.rename-modal-input {
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    padding: 10px 12px;
    background: var(--surface-0, #FFFFFF);
    border: 1px solid var(--border-primary-default, #0091F9);
    border-radius: 8px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: var(--text-default, rgba(4, 13, 20, 0.9));
    outline: none;
}

:root[data-theme="dark"] .rename-modal-input {
    background: var(--surface-0, #1C1C1E);
    color: var(--text-default, rgba(255, 255, 255, 0.9));
}

.rename-modal-input::placeholder {
    color: var(--text-subdued, rgba(4, 13, 20, 0.53));
}

.rename-modal-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    height: 32px;
    background: var(--action-primary-default, #0091F9);
    border: none;
    border-radius: 4px;
    color: #FFFFFF;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.rename-modal-save:hover:not(:disabled) {
    opacity: 0.9;
}

.rename-modal-save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Delete chat notification (Figma) */
.delete-chat-overlay {
    z-index: 2100;
    padding: 16px;
    align-items: center;
    justify-content: center;
}

.delete-chat-notification {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    gap: 24px;
    width: 361px;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    background: var(--surface-0, #FFFFFF);
    border-radius: 12px;
}

.delete-chat-notification__title-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 4px;
    width: 100%;
    align-self: stretch;
}

.delete-chat-notification__title {
    margin: 0;
    width: 100%;
    font-family: 'Inter', var(--font-family);
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -0.33px;
    color: var(--text-default, rgba(4, 13, 20, 0.9));
}

.delete-chat-notification__subtitle {
    margin: 0;
    width: 100%;
    font-family: 'Inter', var(--font-family);
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.09px;
    color: var(--text-subdued, rgba(4, 13, 20, 0.53));
}

.delete-chat-notification__buttons {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    gap: 8px;
    width: 100%;
    align-self: stretch;
}

/* Desktop default — match app modals (not iOS alert chrome) */
.delete-chat-notification__btn {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 6px 12px;
    gap: 4px;
    flex: 0 0 auto;
    min-width: 72px;
    height: 32px;
    border: none;
    border-radius: var(--radius-4, 4px);
    font-family: var(--font-family);
    font-style: normal;
    font-weight: var(--font-weight-500, 500);
    font-size: var(--font-size-100, 14px);
    line-height: var(--line-height-100, 20px);
    letter-spacing: var(--letter-spacing-100, -0.09px);
    cursor: pointer;
    box-sizing: border-box;
}

.delete-chat-notification__btn--cancel {
    background: var(--action-secondary-default, #f3f3f3);
    color: var(--text-default, rgba(4, 13, 20, 0.9));
}

.delete-chat-notification__btn--cancel:hover {
    background: var(--action-secondary-hovered, #ececec);
}

.delete-chat-notification__btn--delete {
    background: var(--surface-critical-subdued, rgba(255, 55, 48, 0.06));
    color: var(--text-critical, #FF3730);
}

.delete-chat-notification__btn--delete:hover {
    background: rgba(255, 55, 48, 0.12);
}

.delete-chat-notification__btn--primary {
    background: var(--action-primary-default, #0091f9);
    color: var(--text-on-primary, #FFFFFF);
}

.delete-chat-notification__btn--primary:hover:not(:disabled) {
    opacity: 0.9;
}

.delete-chat-notification__btn--primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* iOS-style alert buttons only on smartphone/tablet compact widths */
@media (max-width: 768px) {
    .delete-chat-notification__buttons {
        gap: 20px;
        justify-content: stretch;
    }

    .delete-chat-notification__btn {
        flex: 1 1 0;
        min-width: 0;
        height: 50px;
        padding: 14px 20px;
        border-radius: 999px;
        font-family: 'SF Pro', 'Inter', system-ui, -apple-system, sans-serif;
        font-weight: 400;
        font-size: 17px;
        line-height: 22px;
        letter-spacing: -0.43px;
    }

    .delete-chat-notification__btn--cancel {
        background: rgba(120, 120, 128, 0.12);
        color: var(--action-primary-default, #ec2266);
    }

    .delete-chat-notification__btn--cancel:hover {
        background: rgba(120, 120, 128, 0.18);
    }

    .delete-chat-notification__btn--delete {
        background: #FF3730;
        color: #FFFFFF;
    }

    .delete-chat-notification__btn--delete:hover {
        background: #e8312b;
    }

    .delete-chat-notification__btn--primary {
        background: var(--action-primary-default, #ec2266);
        color: #FFFFFF;
    }

    .delete-chat-notification__btn--primary:hover:not(:disabled) {
        background: var(--action-primary-hover, #c91a53);
        opacity: 1;
    }
}

.rename-chat-notification .rename-modal-input-wrap {
    width: 100%;
    align-self: stretch;
}

.ticket-report-field {
    width: 100%;
    align-self: stretch;
}

.ticket-report-textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 96px;
    resize: vertical;
    padding: 10px 12px;
    border: 1px solid var(--border-default, #ebebeb);
    border-radius: 8px;
    background: var(--surface-0, #fff);
    color: var(--text-default, rgba(4, 13, 20, 0.9));
    font-family: var(--font-family, Inter, system-ui, sans-serif);
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.09px;
    outline: none;
}

.ticket-report-textarea:focus {
    border-color: var(--border-primary-default, #0091f9);
}

.ticket-report-textarea::placeholder {
    color: var(--text-subdued, rgba(4, 13, 20, 0.53));
}

.ticket-report-error {
    margin: 0;
    width: 100%;
    color: var(--text-critical, #ff3730);
    font-family: var(--font-family, Inter, system-ui, sans-serif);
    font-size: 12px;
    line-height: 16px;
}

:root[data-theme="dark"] .delete-chat-notification {
    background: var(--surface-0, #1C1C1E);
}

:root[data-theme="dark"] .delete-chat-notification__btn--cancel {
    background: var(--action-secondary-default, rgba(120, 120, 128, 0.24));
    color: var(--text-default, #FFFFFF);
}

:root[data-theme="dark"] .delete-chat-notification__btn--primary {
    background: var(--action-primary-default, #ec2266);
}

@media (max-width: 768px) {
    :root[data-theme="dark"] .delete-chat-notification__btn--cancel {
        background: rgba(120, 120, 128, 0.24);
        color: #FFFFFF;
    }

    :root[data-theme="dark"] .delete-chat-notification__btn--primary {
        background: var(--action-primary-default, #ec2266);
    }
}

/* Mobile chats bottom sheet */
.mobile-chats-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.32);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.mobile-chats-sheet {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 12px 16px 20px;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    height: min(780px, 92vh);
    background: var(--surface-0, #FFFFFF);
    box-shadow: 0px 0px 100px rgba(0, 0, 0, 0.05);
    border-radius: 10px 10px 0 0;
    box-sizing: border-box;
}

.mobile-chats-sheet__grabber {
    display: none;
    width: 36px;
    height: 5px;
    border-radius: 100px;
    background: rgba(60, 60, 67, 0.3);
    flex: none;
}

.mobile-chats-sheet__container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 20px;
    width: 100%;
    max-width: 361px;
    height: 100%;
    flex: 1 1 auto;
    min-height: 0;
}

.mobile-chats-sheet__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    gap: 40px;
    width: 100%;
    height: 42px;
    flex: none;
}

.mobile-chats-sheet__title-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}

.mobile-chats-sheet__title {
    font-family: 'SF Pro', 'Inter', var(--font-family);
    font-style: normal;
    font-weight: 590;
    font-size: 20px;
    line-height: 25px;
    letter-spacing: -0.45px;
    color: var(--text-default, #000000);
}

.mobile-chats-sheet__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 8px;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
}

.mobile-chats-sheet__search {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 7px 8px;
    gap: 8px;
    width: 100%;
    height: 36px;
    background: rgba(120, 120, 128, 0.12);
    border-radius: 10px;
    box-sizing: border-box;
    flex: none;
}

.mobile-chats-sheet__search-icon {
    width: 16px;
    height: 16px;
    flex: none;
    flex-shrink: 0;
    color: var(--text-subdued, rgba(4, 13, 20, 0.53));
}

.mobile-chats-sheet__search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Inter', var(--font-family);
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.09px;
    color: var(--text-default, rgba(4, 13, 20, 0.9));
}

.mobile-chats-sheet__search-input::placeholder {
    color: var(--text-subdued, rgba(4, 13, 20, 0.53));
}

:root[data-theme="dark"] .mobile-chats-sheet__search {
    background: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .mobile-chats-sheet__search-icon {
    color: var(--text-subdued, rgba(209, 209, 214, 0.6));
}

:root[data-theme="dark"] .mobile-chats-sheet__search-input {
    color: var(--text-default, #d1d1d6);
}

:root[data-theme="dark"] .mobile-chats-sheet__search-input::placeholder {
    color: var(--text-subdued, rgba(209, 209, 214, 0.6));
}

.mobile-chats-sheet__list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 4px;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-chats-sheet__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px;
    gap: 20px;
    width: 100%;
    background: var(--surface-0, #FFFFFF);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
    flex: none;
}

.mobile-chats-sheet__item:hover,
.mobile-chats-sheet__item:active {
    background: var(--surface-100, #f3f3f3);
}

.mobile-chats-sheet__item-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 2px;
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
}

.mobile-chats-sheet__item-title {
    width: 100%;
    font-family: 'Inter', var(--font-family);
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.18px;
    color: var(--text-default, rgba(4, 13, 20, 0.9));
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-chats-sheet__item-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 20px;
}

.mobile-chats-sheet__item-date {
    font-family: 'Inter', var(--font-family);
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.09px;
    color: var(--text-subdued, rgba(4, 13, 20, 0.53));
}

.mobile-memory-sheet__item {
    gap: 8px;
}

.mobile-memory-sheet__delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--icon-critical, #FF3730);
    cursor: pointer;
    flex: none;
}

.mobile-memory-sheet__delete:hover {
    background: var(--surface-critical-subdued, rgba(255, 55, 48, 0.06));
}

.mobile-chats-sheet__empty {
    width: 100%;
    padding: 24px 12px;
    text-align: center;
    font-family: 'Inter', var(--font-family);
    font-size: 14px;
    line-height: 20px;
    color: var(--text-subdued, rgba(4, 13, 20, 0.53));
}

:root[data-theme="dark"] .mobile-chats-sheet {
    background: var(--surface-0, #1c1c1e);
}

:root[data-theme="dark"] .mobile-chats-sheet__item:hover,
:root[data-theme="dark"] .mobile-chats-sheet__item:active {
    background: var(--surface-100, #2a2a2e);
}

@media (min-width: 769px) {
    .mobile-chats-sheet-overlay {
        display: none !important;
    }
}

/* Ensure suggestions are fully responsive, vertically centered, and never overflow when squeezed by prospects panel */
.suggestion-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-height: 88px !important;
    height: auto !important;
    overflow: hidden !important;
}

.screen--prospects-open .suggestion-card {
    min-height: 88px !important;
    height: auto !important;
    justify-content: center !important;
}

@media (max-width: 1250px) {
    /* When Prospects panel is open, or screen width is under 1250px, stack suggestion cards to avoid squishing */
    .screen--prospects-open .suggestions,
    .screen--prospects-open .main:not(.main--chat) .suggestions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 8px !important;
    }
    .screen--prospects-open .suggestion-card,
    .screen--prospects-open .main:not(.main--chat) .suggestion-card {
        flex: none !important;
        width: 100% !important;
        height: auto !important;
        min-height: 72px !important;
    }
}

/* Floating Background Processes Widget */
.main {
    position: relative;
    display: flex;
    flex-direction: column;
}

.main--chat .content {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
}

.floating-bg-processes {
    position: absolute;
    top: 60px;
    right: 16px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
}

.bg-process-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-default);
    box-shadow: 0px 4px 12px rgba(35, 44, 96, 0.08);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-default);
    cursor: default;
    user-select: none;
    transition: all 0.2s ease;
}

.bg-process-tag--completed {
    background: color-mix(in srgb, var(--action-primary-default, #ec2266) 10%, var(--surface-0, #fff));
    border-color: color-mix(in srgb, var(--action-primary-default, #ec2266) 28%, transparent);
    color: var(--action-primary-default, #ec2266);
    cursor: pointer;
    box-shadow: 0px 4px 12px color-mix(in srgb, var(--action-primary-default, #ec2266) 15%, transparent);
}

.bg-process-tag--completed:hover {
    transform: translateY(-1px);
    box-shadow: 0px 6px 16px color-mix(in srgb, var(--action-primary-default, #ec2266) 22%, transparent);
}

.bg-process-tag .spinner {
    width: 12px;
    height: 12px;
    border: 2px solid color-mix(in srgb, var(--icon-primary-default, #ec2266) 20%, transparent);
    border-top-color: var(--icon-primary-default);
    border-radius: 50%;
    animation: bg-spin 0.8s linear infinite;
}

.bg-process-tag .check {
    font-size: 11px;
}

@keyframes bg-spin {
    to { transform: rotate(360deg); }
}

/* Bottom Right Background Sourcing Progress Widget */
.bottom-right-bg-processes {
    position: absolute;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    display: flex;
    flex-direction: column-reverse; /* Stack upwards */
    gap: 8px;
    pointer-events: auto;
    max-width: 250px; /* Smaller width */
}

.long-process-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-0); /* Solid background using theme variables */
    border: 1px solid var(--border-default);
    box-shadow: 0px 4px 16px rgba(35, 44, 96, 0.08);
    border-radius: var(--radius-8); /* Smaller border radius */
    padding: 8px 12px; /* Smaller padding */
    transition: all 0.25s ease;
}

.long-process-card:hover {
    background: var(--surface-100) !important; /* Fully compatible theme background on hover */
    border-color: var(--border-default) !important;
    box-shadow: 0px 4px 16px rgba(35, 44, 96, 0.04) !important;
}

.long-process-card--completed {
    border-color: color-mix(in srgb, var(--action-primary-default, #ec2266) 30%, transparent);
    box-shadow: 0px 4px 16px color-mix(in srgb, var(--action-primary-default, #ec2266) 10%, transparent);
    cursor: pointer;
}

.long-process-card--completed:hover {
    transform: translateY(-1px);
    border-color: var(--action-primary-default) !important;
}

.long-process-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.long-process-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.long-process-action {
    font-size: 12px; /* Smaller font */
    font-weight: 600;
    color: var(--text-default);
}

.long-process-shimmer {
    background: linear-gradient(90deg, var(--action-primary-default, #ec2266), var(--action-primary-default, #ec2266) 35%, color-mix(in srgb, var(--action-primary-default, #ec2266) 42%, #fff), var(--action-primary-default, #ec2266) 65%, var(--action-primary-default, #ec2266));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: long-process-loader-shimmer 1.8s ease-in-out infinite;
    font-weight: 600;
}

@keyframes long-process-loader-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.long-process-progress,
.long-process-timer {
    font-size: 10px; /* Smaller font */
    color: var(--text-subdued);
}

.long-process-action--completed {
    color: var(--action-primary-default);
    font-weight: 600;
}

.long-process-stop {
    border: 1px solid var(--border-default);
    background: var(--surface-0);
    color: var(--text-subdued);
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.long-process-stop:hover {
    color: var(--text-critical);
    border-color: rgba(255, 55, 48, 0.28);
    background: var(--surface-critical-subdued);
}

@media (max-width: 768px) {
    .bottom-right-bg-processes {
        right: 16px;
        bottom: 16px;
        left: 16px;
        max-width: none;
    }
}

/* Chat Iframe Block Design aligned with AskBuzz theme.
   Report cards stay white (even in dark theme) so the download icon stays black. */
.answer .chat-iframe-block,
.answer-body .chat-iframe-block,
.chat-iframe-block {
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    margin: 12px 0 0 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    color: rgba(4, 13, 20, 0.9);
}

.answer .chat-iframe-block iframe,
.answer-body .chat-iframe-block iframe,
.chat-iframe-block iframe {
    display: block;
    width: 100%;
    background: #ffffff !important;
    border: 0;
    vertical-align: top;
}

/* Same chrome as chat result-table footers (Download CSV) — icon on the right. */
.answer .chat-iframe-block--with-footer iframe,
.answer-body .chat-iframe-block--with-footer iframe {
    border-bottom: none;
}

.answer .chat-iframe-block .chat-table-footer.chat-iframe-footer,
.answer-body .chat-iframe-block .chat-table-footer.chat-iframe-footer,
.chat-iframe-block .chat-table-footer.chat-iframe-footer {
    display: flex !important;
    align-items: center;
    justify-content: flex-end !important;
    gap: 12px;
    padding: 8px 12px;
    border: none;
    border-top: 1px solid #ebebeb;
    border-radius: 0;
    background: #ffffff !important;
    color: rgba(4, 13, 20, 0.9);
}

.answer .chat-iframe-block .chat-iframe-download-btn,
.answer-body .chat-iframe-block .chat-iframe-download-btn,
.chat-iframe-block .chat-iframe-download-btn {
    text-decoration: none;
    margin-left: auto !important;
    margin-right: 0;
    color: rgba(4, 13, 20, 0.9) !important; /* keep black on white report card */
}

.answer .chat-iframe-block .chat-iframe-download-btn:hover,
.answer-body .chat-iframe-block .chat-iframe-download-btn:hover,
.chat-iframe-block .chat-iframe-download-btn:hover {
    color: rgba(4, 13, 20, 0.9) !important;
    background: #f3f3f3;
}

.answer .chat-iframe-block .chat-iframe-download-btn svg,
.answer-body .chat-iframe-block .chat-iframe-download-btn svg,
.chat-iframe-block .chat-iframe-download-btn svg {
    stroke: currentColor;
    color: inherit;
}

/* New chat button (lightweight) */
.new-chat-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 5px 10px 5px 5px;
    background: transparent;
    border: none;
    border-radius: var(--radius-8);
    color: var(--text-default);
    font-family: var(--font-family);
    font-weight: var(--font-weight-500);
    font-size: var(--font-size-100);
    line-height: var(--line-height-100);
    letter-spacing: var(--letter-spacing-100);
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color .15s ease;
}

.new-chat-btn:hover {
    background: var(--surface-100);
}

.new-chat-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: none;
    border-radius: var(--radius-full);
    background: var(--surface-100);
    border: 1px solid var(--border-default);
    color: var(--icon-default);
}

.new-chat-btn:hover .new-chat-btn-icon {
    background: var(--surface-0);
}

.new-chat-btn-label {
    color: var(--text-default);
}

/* Theme toggle */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--icon-subdued);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.theme-toggle--mobile {
    display: inline-flex;
}

.theme-toggle--mobile:hover {
    color: var(--icon-default);
}

.mobile-top-bar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Dark theme */
:root[data-theme="dark"] {
    color-scheme: dark;
    --surface-0: #1c1c1e;
    --surface-100: #2a2a2e;
    --surface-200: #323237;
    --background-tooltip: rgba(0, 0, 0, .85);
    --border-default: #34343a;
    --text-default: #d1d1d6;
    --text-subdued: rgba(209, 209, 214, 0.6);
    --text-highlight: #4db4fb;
    --text-on-primary: #ffffff;
    --surface-critical-subdued: rgba(255, 55, 48, .12);
    --other-backdrop: rgba(0, 0, 0, .55);
    --action-secondary-default: #2a2a2e;
    --action-secondary-hovered: #323237;
    --icon-default: #d1d1d6;
    --icon-subdued: rgba(209, 209, 214, 0.6);
    --icon-on-primary: #ffffff;
    --border-input: #2a2a2e;
    --text-neutral-default: #d1d1d6;
    --text-neutral-subdued: rgba(209, 209, 214, 0.6);
    --shadow-s: 0px 2px 8px 0px rgba(0, 0, 0, .45);
    --shadow-card: 0px 2px 4px 0px rgba(0, 0, 0, .45);
    --logo-gradient-start: #DFE2E6;
    --logo-gradient-end: #7C7E80;
}

:root[data-theme="dark"] .answer-body code {
    background: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .answer-body table {
    background: var(--surface-0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] .answer-body .table-wrapper {
    background: var(--surface-0) !important;
    border-color: var(--border-default) !important;
}

.bg-gradient {
    display: none !important;
}

:root[data-theme="dark"] .suggestion-card {
    box-shadow: none !important;
    border: 1px solid var(--border-default) !important;
}

:root[data-theme="dark"] .suggestion-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    background: var(--surface-100) !important;
}

:root[data-theme="dark"] .composer {
    border: 1px solid var(--border-default) !important;
    box-shadow: none !important;
}

:root[data-theme="dark"] .composer:focus-within {
    border-color: var(--border-primary-default) !important;
}

:root[data-theme="dark"] .dismiss-btn {
    color: #ffffff !important;
}

:root[data-theme="dark"] .dismiss-btn:hover {
    background: #44444a;
}

/* Sidebar resizer handle and layout behaviors */
.sidebar-resizer {
    position: absolute;
    top: 0;
    right: -4px;
    bottom: 0;
    width: 8px;
    cursor: col-resize;
    z-index: 100;
    transition: background-color 0.15s ease;
}

.sidebar-resizer:hover,
.is-resizing-sidebar .sidebar-resizer {
    background-color: var(--action-primary-default);
    opacity: 0.4;
}

/* Global body cursor during resizing */
.is-resizing-sidebar,
.is-resizing-sidebar * {
    cursor: col-resize !important;
    user-select: none !important;
}

/* Sidebar collapse/expand buttons styling */
.sidebar-toggle-row {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 16px;
    padding-top: 8px;
}

.sidebar-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: var(--radius-4);
    color: var(--icon-subdued);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-toggle-btn:hover {
    background-color: var(--surface-100);
    color: var(--icon-default);
}

.collapsed-sidebar-actions {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    background: transparent !important;
}

/*
 * Reserve vertical room for .collapsed-sidebar-actions (top:16 + 28px icons)
 * without moving those buttons. Keeps messages from sitting under the icons
 * when the chat column is narrow (e.g. prospects panel docked).
 */
.collapsed-sidebar-actions-spacer {
    display: none;
    flex-shrink: 0;
    width: 100%;
    height: 56px; /* 16px offset + 28px buttons + 12px gap */
    pointer-events: none;
}

@media (min-width: 769px) {
    .screen--sidebar-collapsed .collapsed-sidebar-actions-spacer {
        display: block;
    }

    /* Empty mobile chrome would double the top inset next to the spacer. */
    .screen--sidebar-collapsed .mobile-top-bar {
        display: none;
    }
}

@media (max-width: 768px) {
    .collapsed-sidebar-actions,
    .collapsed-sidebar-actions-spacer {
        display: none !important;
    }
}

.collapsed-action-btn {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 4px !important;
    background: transparent !important;
    border: none !important;
    color: var(--icon-subdued) !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}

.collapsed-action-btn:hover {
    background-color: var(--surface-100) !important;
    color: var(--icon-default) !important;
}

/* Custom Tooltips similar to AskBuzz tooltip style */
.has-custom-tooltip {
    position: relative !important;
}

.has-custom-tooltip::before {
    content: attr(data-tooltip) !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 50% !important;
    transform: translateX(-50%) scale(0.95) !important;
    background-color: var(--background-tooltip, rgba(0, 0, 0, 0.85)) !important;
    color: #ffffff !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 10050 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: opacity 0.15s ease, transform 0.15s ease !important;
}

.has-custom-tooltip::after {
    content: '' !important;
    position: absolute !important;
    top: calc(100% + 3px) !important;
    left: 50% !important;
    transform: translateX(-50%) scale(0.95) !important;
    border-width: 0 5px 5px 5px !important;
    border-style: solid !important;
    border-color: transparent transparent var(--background-tooltip, rgba(0, 0, 0, 0.85)) transparent !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 10050 !important;
    transition: opacity 0.15s ease, transform 0.15s ease !important;
}

.has-custom-tooltip:hover::before,
.has-custom-tooltip:hover::after {
    opacity: 1 !important;
    transform: translateX(-50%) scale(1) !important;
    transition-delay: .5s !important;
}

/* Left-align the first tooltip inside collapsed-sidebar-actions to prevent left edge cutoff */
.collapsed-sidebar-actions .collapsed-action-btn:first-child.has-custom-tooltip::before {
    left: 0 !important;
    transform: scale(0.95) !important;
}

.collapsed-sidebar-actions .collapsed-action-btn:first-child.has-custom-tooltip::after {
    left: 14px !important;
    transform: translateX(-50%) scale(0.95) !important;
}

.collapsed-sidebar-actions .collapsed-action-btn:first-child.has-custom-tooltip:hover::before {
    transform: scale(1) !important;
}

.collapsed-sidebar-actions .collapsed-action-btn:first-child.has-custom-tooltip:hover::after {
    transform: translateX(-50%) scale(1) !important;
}

.chats-label {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    color: var(--text-subdued, rgba(4, 13, 20, 0.53)) !important;
    margin-top: 16px !important;
    margin-bottom: 8px !important;
    padding-left: 12px !important;
    letter-spacing: -0.09px !important;
}

/* Handle collapsed sidebar layout on desktop */
@media (min-width: 769px) {
    .screen--sidebar-collapsed .sidebar {
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        padding: 0 !important;
        border-right: none !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }
    .screen--sidebar-collapsed .sidebar-resizer {
        display: none !important;
    }
}

/* Figma Redesign / Mobile Sidebar Overhaul */
:root {
    --logo-gradient-start: #144062;
    --logo-gradient-end: #040D14;
}

/* Ensure absolute fixed-width of 240px and no resizing */
.sidebar {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 16px 8px !important;
    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    height: 100dvh !important;
    background: var(--surface-0, #FFFFFF) !important;
    border-right: 1px solid var(--border-default, #EBEBEB) !important;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s cubic-bezier(0.16, 1, 0.3, 1), min-width 0.3s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Sidebar structure styling */
.sidebar .brand-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
    padding: 0px 0px 0px 4px !important;
    gap: 8px !important;
    width: 224px !important;
    height: 28px !important;
    flex: none !important;
    order: 0 !important;
    align-self: stretch !important;
    flex-grow: 0 !important;
    margin-bottom: 16px !important;
    box-sizing: border-box !important;
}

.sidebar .brand {
    display: flex !important;
    align-items: center !important;
    width: 92px !important;
    height: 20px !important;
    flex: none !important;
    order: 0 !important;
    flex-grow: 0 !important;
    margin: 0 !important;
}

.sidebar .brand-logo {
    width: 92px !important;
    height: 20px !important;
    display: block !important;
}

.sidebar .sidebar-top-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 0px !important;
    gap: 4px !important;
    width: auto !important;
    min-width: 60px !important;
    height: 28px !important;
    flex: none !important;
    order: 1 !important;
    flex-grow: 0 !important;
}

.sidebar .sidebar-action-btn,
.sidebar .sidebar-toggle-btn {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0px !important;
    isolation: isolate !important;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    border-radius: 4px !important;
    flex: none !important;
    flex-grow: 0 !important;
    background: transparent !important;
    border: none !important;
    color: var(--text-subdued, rgba(4, 13, 20, 0.53)) !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}

.sidebar .sidebar-action-btn svg {
    width: 16px !important;
    height: 16px !important;
    color: inherit !important;
}

.sidebar .sidebar-action-btn:hover,
.sidebar .sidebar-toggle-btn:hover,
.sidebar .sidebar-action-btn.active {
    background-color: var(--surface-200, #ECECEC) !important;
    color: var(--text-default, rgba(4, 13, 20, 0.9)) !important;
}

:root[data-theme="dark"] .sidebar .sidebar-action-btn:hover,
:root[data-theme="dark"] .sidebar .sidebar-toggle-btn:hover,
:root[data-theme="dark"] .sidebar .sidebar-action-btn.active {
    background-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.sidebar .sidebar-navigation {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 16px 0px 0px !important;
    gap: 2px !important;
    width: 224px !important;
    flex: 1 !important;
    min-height: 0 !important;
    align-self: stretch !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    scrollbar-width: thin !important;
    scrollbar-color: var(--border-default) transparent !important;
}

.sidebar .sidebar-navigation::-webkit-scrollbar {
    width: 4px !important;
}

.sidebar .sidebar-navigation::-webkit-scrollbar-track {
    background: transparent !important;
}

.sidebar .sidebar-navigation::-webkit-scrollbar-thumb {
    background-color: var(--border-default) !important;
    border-radius: 4px !important;
}

#askbuzz-root .sidebar .btn-primary,
.sidebar .btn-primary,
.sidebar .btn-chats-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 6px 12px 6px 8px !important;
    gap: 6px !important;
    width: 224px !important;
    height: 32px !important;
    border-radius: 4px !important;
    flex: none !important;
    align-self: stretch !important;
    flex-grow: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-color: transparent !important;
    color: var(--text-subdued, rgba(4, 13, 20, 0.53)) !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}

#askbuzz-root .sidebar .btn-primary:hover,
.sidebar .btn-primary:hover,
.sidebar .btn-chats-nav:hover {
    background: var(--surface-100, #F3F3F3) !important;
    background-color: var(--surface-100, #F3F3F3) !important;
    border-color: transparent !important;
    color: var(--text-default, rgba(4, 13, 20, 0.9)) !important;
    opacity: 1 !important;
}

.sidebar .btn-primary:hover .btn-primary-label,
.sidebar .btn-chats-nav:hover .btn-chats-nav-label,
.sidebar .btn-primary:hover svg,
.sidebar .btn-chats-nav:hover svg {
    color: var(--text-default, rgba(4, 13, 20, 0.9)) !important;
}

#askbuzz-root .sidebar .btn-primary.active,
.sidebar .btn-primary.active,
.sidebar .btn-chats-nav.active {
    background: var(--surface-200, #ECECEC) !important;
    background-color: var(--surface-200, #ECECEC) !important;
    border-color: transparent !important;
    color: var(--text-subdued, rgba(4, 13, 20, 0.53)) !important;
}

:root[data-theme="dark"] .sidebar .btn-primary.active,
:root[data-theme="dark"] .sidebar .btn-chats-nav.active {
    background: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.53) !important;
}

.sidebar .btn-primary svg,
.sidebar .btn-chats-nav svg {
    width: 16px !important;
    height: 16px !important;
    flex: none !important;
    flex-grow: 0 !important;
    color: inherit !important;
}

.sidebar .btn-primary-label,
.sidebar .btn-chats-nav-label {
    display: flex !important;
    align-items: center !important;
    height: 20px !important;
    flex: none !important;
    flex-grow: 1 !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-style: normal !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    letter-spacing: -0.09px !important;
    color: inherit !important;
    text-align: left !important;
}

.sidebar .sidebar-list-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    flex: none !important;
    gap: 2px !important;
}

.sidebar .chats-header .chats-chevron {
    margin-left: auto !important;
    transition: transform 0.2s ease !important;
}

.sidebar .sidebar-search-bar {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 224px !important;
    margin-top: 12px !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
}

.sidebar .sidebar-search-input {
    width: 100% !important;
    height: 32px !important;
    padding: 6px 28px 6px 10px !important;
    background: var(--surface-100, #F3F3F3) !important;
    border: 1px solid var(--border-default, #EBEBEB) !important;
    border-radius: 6px !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 12px !important;
    color: var(--text-default, rgba(4, 13, 20, 0.9)) !important;
    outline: none !important;
}

:root[data-theme="dark"] .sidebar .sidebar-search-input {
    background: rgba(255, 255, 255, 0.05) !important;
}

.sidebar .sidebar-search-input::placeholder {
    color: var(--text-subdued, rgba(4, 13, 20, 0.53)) !important;
}

.sidebar .sidebar-search-input:focus {
    border-color: var(--border-primary-default, #0091F9) !important;
}

.sidebar .search-clear-btn {
    position: absolute !important;
    right: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    color: var(--text-subdued, rgba(4, 13, 20, 0.53)) !important;
    cursor: pointer !important;
}

.sidebar .search-clear-btn:hover {
    color: var(--text-default, rgba(4, 13, 20, 0.9)) !important;
}

.sidebar .sidebar-top {
    display: flex !important;
    flex-direction: column !important;
    gap: 0px !important;
    width: 100% !important;
    height: 100% !important;
}

.sidebar .chats {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 16px 0px 0px !important;
    width: 224px !important;
    flex: 1 !important;
    min-height: 0 !important;
    align-self: stretch !important;
    overflow: hidden !important;
}

.sidebar .chat-groups-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding-top: 2px !important;
}

.sidebar .chat-groups-container::-webkit-scrollbar {
    width: 4px !important;
}

.sidebar .chat-groups-container::-webkit-scrollbar-track {
    background: transparent !important;
}

.sidebar .chat-groups-container::-webkit-scrollbar-thumb {
    background-color: var(--border-default) !important;
    border-radius: 4px !important;
}

.sidebar .chat-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
}

.sidebar .chat-group-title {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 0px 0px 0px 8px !important;
    margin-top: 12px !important;
    margin-bottom: 4px !important;
    width: 224px !important;
    height: 16px !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    line-height: 16px !important;
    letter-spacing: 0.01px !important;
    color: var(--text-subdued, rgba(4, 13, 20, 0.53)) !important;
    box-sizing: border-box !important;
}

.sidebar .chat-group:first-child .chat-group-title {
    margin-top: 0px !important;
}

.sidebar .chat-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    width: 224px !important;
    /* Both axes must stay non-scrollable. Mixing overflow-x:hidden with
       overflow-y:visible makes y compute to auto and traps wheel events. */
    flex: none !important;
    min-height: auto !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
}

.sidebar .chat-groups-container,
.sidebar .chat-group,
.sidebar .sidebar-list-section {
    overflow: visible !important;
}

.sidebar .chat-item {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 4px 8px 8px !important;
    gap: 8px !important;
    width: 224px !important;
    height: 32px !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: var(--text-default, rgba(4, 13, 20, 0.9)) !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 12px !important;
    line-height: 16px !important;
    letter-spacing: 0.01px !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease !important;
}

.sidebar .chat-item-text {
    flex: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: left !important;
}

.sidebar .chat-item:hover,
.sidebar .chat-item.active {
    background-color: var(--surface-100, #F3F3F3) !important;
}

:root[data-theme="dark"] .sidebar .chat-item:hover,
:root[data-theme="dark"] .sidebar .chat-item.active {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Mobile responsive Overrides */
@media (max-width: 768px) {
    /* Correct Mobile Sidebar position, background, overlay and high z-index */
    .sidebar.mobile-sidebar {
        box-sizing: border-box !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 240px !important;
        height: 100dvh !important;
        padding: 16px 8px !important;
        background: var(--surface-0, #FFFFFF) !important;
        border-right: 1px solid var(--border-default, #EBEBEB) !important;
        flex: none !important;
        order: 0 !important;
        flex-grow: 0 !important;
        z-index: 1060 !important; /* Ensure it is displayed above the composer */
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        box-shadow: var(--shadow-s) !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .sidebar.mobile-sidebar.open {
        transform: translateX(0) !important;
    }

    /* Keep overlay correctly layered below sidebar but above main app container */
    .sidebar-overlay {
        z-index: 1050 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background-color: var(--other-backdrop, rgba(0, 6, 15, .24)) !important;
        backdrop-filter: blur(1px) !important;
    }
}

/* Lock the screen and main containers to viewport height to enable internal scrolling */
html, body, #app, .screen {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
}

.main {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Scrollbar inside the central content column instead of the outer screen edge */
.messages {
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scroll-behavior: smooth;
}

.messages-inner {
    height: auto !important;
    overflow: visible !important;
}

.spin-animation {
    animation: bg-spin 1.2s linear infinite;
}

/* Sidebar / Memory row tooltips — show full source name on hover */
.sidebar .chat-item > .chat-tooltip {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease;
    max-width: min(320px, 70vw);
    z-index: 40;
    white-space: normal;
    overflow-wrap: anywhere;
}
.sidebar .chat-item:hover > .chat-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Enrichment approvals are tool + people + cost (no editable input table). */
.answer-body:has(.approval-btn[data-plan-engine="enrichment"]) .chat-table-block--input,
.answer-body:has(.approval-btn[data-plan-engine="enrichment"]) .chat-table-block[data-table-kind="input"] {
    display: none !important;
}

/* Composer Controls — mobile: [+][Fast Mode] …… [Send] */
@media (max-width: 768px) {
    .composer .composer-actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 0;
        gap: 4px;
        width: 100%;
        height: 32px;
        flex: none;
        align-self: stretch;
        flex-grow: 0;
    }

    .composer .composer-plus {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0;
        gap: 4px;
        height: 32px;
        flex: none;
        order: 0;
        flex-grow: 0;
    }

    .composer .composer-action-right {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0;
        gap: 4px;
        height: 32px;
        flex: none;
        order: 2;
        margin-left: auto;
        flex-grow: 0;
    }

    .composer .composer-plus-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        width: 32px;
        min-width: 32px;
        max-width: 32px;
        height: 32px;
        min-height: 32px;
        max-height: 32px;
        border-radius: 4px;
        flex: none;
    }

    .composer .composer-plus-btn svg {
        width: 20px;
        height: 20px;
    }

    .composer .model-select {
        position: relative;
        display: inline-flex;
        flex: none;
        order: 1;
        margin-left: 0;
        flex-grow: 0;
    }

    .composer .model-select > .ghost-btn {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 4px 10px;
        gap: 0;
        width: auto;
        min-width: 92px;
        height: 28px;
        border-radius: 40px;
        flex: none;
        flex-grow: 0;
        font-weight: 400;
        font-size: 15px;
        line-height: 20px;
        letter-spacing: -0.23px;
        color: var(--action-primary-default, #ec2266);
        white-space: nowrap;
        background: transparent;
    }

    .composer .model-select > .ghost-btn > span {
        width: auto;
        height: 20px;
        overflow: visible;
        text-align: center;
        white-space: nowrap;
    }

    .composer .model-select > .ghost-btn > svg,
    .composer .model-select-chevron {
        display: none !important;
    }

    .composer .model-select > .ghost-btn:hover:not(:disabled),
    .composer .model-select > .ghost-btn.ghost-btn--active {
        background: color-mix(in srgb, var(--action-primary-default, #ec2266) 10%, transparent);
        color: var(--action-primary-default, #ec2266);
    }

    .composer .send-btn {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 0;
        isolation: isolate;
        width: 32px;
        min-width: 32px;
        max-width: 32px;
        height: 32px;
        min-height: 32px;
        max-height: 32px;
        border: none;
        border-radius: 4px;
        background: transparent;
        color: var(--icon-subdued, rgba(4, 13, 20, 0.53));
        opacity: 1;
        flex: none;
        order: 1;
        flex-grow: 0;
    }

    .composer .send-btn:disabled {
        opacity: 0.48;
        cursor: default;
    }

    .composer .send-btn:not(:disabled):hover {
        background: var(--action-secondary-hovered);
        color: var(--icon-default);
    }

    .composer .send-btn svg {
        display: block;
        width: 20px;
        height: 20px;
        flex: none;
        flex-shrink: 0;
        position: relative;
        z-index: 0;
        stroke: currentColor;
        visibility: visible;
        opacity: 1;
    }
}


