:root{--next-bg:var(--bb-theme-canvas, #050506);--next-layer:var(--bb-theme-surface, #101014);--next-field:var(--bb-theme-inset, #17171c);--next-text:var(--bb-theme-ink, #f5f5f2);--next-muted:var(--bb-theme-muted, #8b8b91);--next-accent:var(--bb-theme-accent, #b8ff3d);--next-line:var(--bb-theme-line, rgba(255,255,255,.1))}
.next-page-body{margin:0;background:var(--next-bg);color:var(--next-text);font-family:Inter,"Noto Sans SC","PingFang SC",sans-serif;-webkit-font-smoothing:antialiased}
.next-main{max-width:640px;margin:auto;padding:24px 22px 72px}.next-main h1{font-size:28px;line-height:1.25;letter-spacing:-.7px;margin:16px 0 8px;font-weight:600}.next-eyebrow{font-size:11px;letter-spacing:1.8px;color:var(--next-muted)}.next-sub{font-size:13px;line-height:1.7;color:var(--bb-theme-muted, #a5a5ad);margin:8px 0 28px}.next-section{border-top:1px solid var(--next-line);padding:22px 0}.next-section h2{font-size:16px;font-weight:500;margin:0 0 16px}.next-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0}.next-row dt,.next-caption{font-size:12px;color:var(--bb-theme-muted, #a5a5ad)}.next-row dd{margin:0;font-size:15px;text-align:right}.next-hero{font-size:34px;letter-spacing:-1px;font-weight:600;margin:10px 0 24px}.next-label{display:block;color:var(--bb-theme-muted, #b8b8bd);font-size:12px;margin:16px 0 7px}.next-input,.next-select,.next-textarea{display:block;width:100%;border:1px solid var(--bb-theme-line, transparent);background:var(--next-field);color:var(--next-text);font:inherit;font-size:14px;border-radius:10px;padding:12px;box-sizing:border-box}.next-textarea{min-height:96px;resize:vertical}.next-input:focus,.next-select:focus,.next-textarea:focus{outline:none;border-color:var(--next-muted)}.next-button{border:1px solid var(--next-line);background:rgba(var(--bb-theme-surface-rgb, 0,0,0), 0.0);color:var(--next-text);font:inherit;font-size:13px;min-height:42px;padding:10px 15px;border-radius:9px;cursor:pointer}.next-button.primary{background:var(--next-accent);border-color:var(--bb-theme-line, transparent);color:var(--bb-theme-accent-ink, #0b0d08);font-weight:600}.next-button:disabled{opacity:.4;cursor:default}.next-button:focus-visible{outline:2px solid var(--next-accent);outline-offset:3px}.next-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.next-note{font-size:12px;color:var(--next-muted);line-height:1.7}.next-error{font-size:13px;color:var(--bb-theme-down, #ff8d89);line-height:1.6;min-height:22px}.next-status{color:var(--next-accent);font-size:13px}.next-list-item{padding:16px 0;border-bottom:1px solid var(--next-line)}.next-list-item strong{font-weight:500}.next-list-item p{margin:6px 0;color:var(--next-muted);font-size:12px;overflow-wrap:anywhere}.next-card{min-width:220px;max-width:360px;text-align:left}.next-card header{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--bb-theme-muted, #b8b8bd)}.next-card header::before{content:'';width:5px;height:5px;border-radius:50%;background:var(--next-accent)}.next-card h3{font-size:28px;letter-spacing:-.6px;margin:14px 0 8px;line-height:1.2}.next-card dl{margin:12px 0}.next-card .next-row{padding:7px 0}.next-card .next-row dd{font-size:13px}.next-card .next-actions{margin-top:16px}.next-card time{display:block;margin-top:12px;color:var(--bb-theme-muted, #a5a5ad);font-size:11px;line-height:1.5}.next-card .next-button{min-height:36px;padding:7px 11px;font-size:12px}.next-card p{line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.next-command-bar{display:flex;gap:8px;overflow-x:auto;padding:8px 0;scrollbar-width:none}.next-command-bar button{white-space:nowrap;background:rgba(var(--bb-theme-surface-rgb, 0,0,0), 0.0);border:0;color:var(--bb-theme-muted, #a5a5ad);padding:5px 8px;font-size:12px;cursor:pointer}.next-command-bar button:hover{color:var(--next-accent)}.next-hold{width:100%;min-height:50px;touch-action:none;user-select:none;-webkit-user-select:none}.next-hold.holding{background:linear-gradient(90deg,var(--bb-theme-surface, #d3ff88),var(--next-accent));transform:scale(.99)}.next-flash{outline:1px solid var(--next-accent);outline-offset:5px}.next-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.next-readonly{font-size:11px;color:var(--next-muted)}
@media(max-width:420px){.next-main{padding:18px 18px 60px}.next-card{min-width:0;width:100%}.next-card h3{font-size:25px}}
@media(prefers-reduced-motion:reduce){.next-hold{transform:none!important}}
/* Only the new entry adopts the approved flat official palette. Legacy chat is untouched. */
body.next-chat-active,body.next-chat-active .app-shell,body.next-chat-active .main,body.next-chat-active .chat-center,body.next-chat-active .chat-list,body.next-chat-active .chat-panel{background:var(--bb-theme-canvas, #050506)!important;background-image:none!important;color:var(--bb-theme-ink, #f5f5f2)!important;font-family:Inter,"Noto Sans SC","PingFang SC",sans-serif!important;box-shadow:none!important}
body.next-chat-active .chat-center{border:0!important;border-radius:0!important}body.next-chat-active .chat-list{gap:0!important;padding:12px!important;border-right:1px solid var(--bb-theme-line, rgba(255,255,255,.08))!important}body.next-chat-active .thread-list{gap:0!important}body.next-chat-active .thread-item,body.next-chat-active .thread-item.active{border:0!important;border-bottom:1px solid var(--bb-theme-line, rgba(255,255,255,.08))!important;border-radius:0!important;background:rgba(var(--bb-theme-canvas-rgb, 0,0,0), 0.0)!important;box-shadow:none!important;padding:16px 4px!important}body.next-chat-active .thread-name{color:var(--bb-theme-ink, #f5f5f2)!important;font-weight:500!important;font-size:15px!important}body.next-chat-active .thread-sub,body.next-chat-active .thread-preview{color:var(--bb-theme-muted, #8b8b91)!important;font-weight:400!important;font-size:12px!important}body.next-chat-active .thread-count{background:rgba(var(--bb-theme-canvas-rgb, 0,0,0), 0.0)!important;color:var(--bb-theme-muted, #8b8b91)!important;font-weight:400!important;font-size:11px!important}body.next-chat-active .chat-search input{background:var(--bb-theme-inset, var(--bb-theme-canvas, #17171c))!important;border:0!important;border-radius:12px!important;color:var(--bb-theme-ink, #f5f5f2)!important;font-size:13px!important;font-weight:400!important}body.next-chat-active .chat-icon-btn{background:rgba(var(--bb-theme-canvas-rgb, 0,0,0), 0.0)!important;border:0!important;color:var(--bb-theme-muted, #b8b8bd)!important}body.next-chat-active .thread-avatar{border:0!important;background:var(--bb-theme-canvas, #17171c)!important;box-shadow:none!important}body.next-chat-active .chat-head,body.next-chat-active .chat-composer,body.next-chat-active .chat-input-wrap,body.next-chat-active .chat-form{background:var(--bb-theme-canvas, #050506)!important;border-color:var(--bb-theme-line, rgba(255,255,255,.08))!important}body.next-chat-active .bubble{background:var(--bb-theme-canvas, #101014)!important;border:0!important;color:var(--bb-theme-ink, #f5f5f2)!important;box-shadow:none!important;font-weight:400!important}body.next-chat-active .msg.user .bubble{background:var(--bb-theme-canvas, #17171c)!important;color:var(--bb-theme-ink, #f5f5f2)!important}body.next-chat-active .chat-input{background:var(--bb-theme-canvas, #17171c)!important;color:var(--bb-theme-ink, #f5f5f2)!important;border:0!important}body.next-chat-active .chat-send{background:var(--bb-theme-accent, #b8ff3d)!important;color:var(--bb-theme-accent-ink, #111)!important;border:0!important}body.next-chat-active .msg-meta,body.next-chat-active .active-subtitle{color:var(--bb-theme-muted, #8b8b91)!important}body.next-chat-active #next-shelf{margin-top:8px!important}body.next-chat-active .next-command-bar{border-top:1px solid var(--bb-theme-line, rgba(255,255,255,.08))}

html.next-chat-active[data-mini-polish="ai"]{--mini-bg:var(--bb-theme-canvas, #050506);--mini-panel:var(--bb-theme-canvas, #101014);--mini-line:var(--bb-theme-line, rgba(255,255,255,.08));--mini-text:var(--bb-theme-ink, #f5f5f2);--mini-muted:var(--bb-theme-muted, #8b8b91);background:var(--bb-theme-canvas, #050506)!important;background-image:none!important}
html.next-chat-active body.next-chat-active.page-ai,html.next-chat-active body.next-chat-active .app-shell,html.next-chat-active body.next-chat-active .main,html.next-chat-active body.next-chat-active .chat-panel,html.next-chat-active body.next-chat-active .message-thread,html.next-chat-active body.next-chat-active .panel-head{background:var(--bb-theme-canvas, #050506)!important;background-image:none!important;backdrop-filter:none!important}
html.next-chat-active body.next-chat-active .composer,html.next-chat-active body.next-chat-active .input-row{background:var(--bb-theme-canvas, #101014)!important;border:1px solid var(--bb-theme-line, rgba(255,255,255,.08))!important;box-shadow:none!important;color:var(--bb-theme-ink, #f5f5f2)!important}
html.next-chat-active body.next-chat-active .composer{border-radius:18px!important}
html.next-chat-active body.next-chat-active .input-row{border:0!important}
html.next-chat-active body.next-chat-active .quick-toggle,html.next-chat-active body.next-chat-active .chat-voice{background:var(--bb-theme-canvas, #17171c)!important;color:var(--bb-theme-muted, #b8b8bd)!important;border:0!important}
html.next-chat-active body.next-chat-active .chat-input{font-size:15px!important;background:rgba(var(--bb-theme-canvas-rgb, 0,0,0), 0.0)!important}
html.next-chat-active body.next-chat-active .thread-time{font-size:11px!important;font-weight:400!important;color:var(--bb-theme-muted, #8b8b91)!important}
html.next-chat-active body.next-chat-active [data-primary-ai-thread] .thread-avatar img,html.next-chat-active body.next-chat-active [data-primary-ai-header] img{content:url('/static/bigbit-ai-007.png')}
html.next-chat-active body.next-chat-active .agent-provider-tab{background:var(--bb-theme-canvas, #101014)!important;border-color:var(--bb-theme-line, rgba(255,255,255,.08))!important;box-shadow:none!important}
html.next-chat-active body.next-chat-active .chat-card-sheen::after{display:none!important}
html.next-chat-active body.next-chat-active #chat-center.chat-center .composer{background:var(--bb-theme-canvas, #101014)!important;background-image:none!important;border-color:var(--bb-theme-line, rgba(255,255,255,.08))!important;backdrop-filter:none!important}
html.next-chat-active body.next-chat-active #chat-center .msg.assistant[data-primary-ai-message] .msg-avatar img{content:url('/static/bigbit-ai-007.png')}
html.next-chat-active body.next-chat-active #chat-center .msg-avatar{border:0!important;background:var(--bb-theme-canvas, #17171c)!important;box-shadow:none!important}

/* Next home: conversations take priority; settings remain available on demand. */
html.next-chat-active body.next-chat-active .next-agent-picker{margin:0 16px;border-bottom:1px solid var(--bb-theme-line, rgba(255,255,255,.08))}
html.next-chat-active body.next-chat-active .next-agent-picker summary,html.next-chat-active body.next-chat-active .next-agent-history summary{list-style:none;padding:12px 0;color:var(--bb-theme-muted, #8b8b91);font-size:13px;cursor:pointer}
html.next-chat-active body.next-chat-active .next-agent-picker summary span{float:right;font-size:12px}
html.next-chat-active body.next-chat-active .next-agent-history{border-bottom:1px solid var(--bb-theme-line, rgba(255,255,255,.08))}
html.next-chat-active body.next-chat-active .next-agent-history summary{padding:14px 16px}
html.next-chat-active body.next-chat-active .next-agent-picker:not([open]) #ai-workbench-entry{display:none!important}
html.next-chat-active body.next-chat-active .ns-more{width:100%;padding:10px 16px;text-align:left;font-size:12px;color:var(--bb-theme-muted, #8b8b91);background:rgba(var(--bb-theme-canvas-rgb, 0,0,0), 0.0);border:0}
html.next-chat-active body.next-chat-active .ns-w{min-height:92px!important;padding-top:10px!important;padding-bottom:10px!important}
html.next-chat-active body.next-chat-active .ns-tiles{max-height:240px;overflow:auto}
html.next-chat-active body.next-chat-active .ns-hd{padding-top:4px;padding-bottom:4px}
.next-section-tabs{display:flex;gap:8px;margin:20px 0;border-bottom:1px solid var(--bb-theme-line, #25252b)}.next-section-tabs button{background:none;border:0;border-bottom:2px solid var(--bb-theme-line, transparent);padding:12px;color:var(--bb-theme-muted, #8b8b91);font:inherit;cursor:pointer}.next-section-tabs button[aria-pressed="true"]{color:var(--bb-theme-ink, #f5f5f2);border-color:var(--bb-theme-accent-text, #b8ff3d)}[data-external-panel][hidden]{display:none!important}
