.knowledge-main.bb-active > :not(.library-topbar):not(#brand-brief-panel){display:none!important}


.bb-chat:empty{display:none}
.knowledge-main.bb-active > .library-topbar .knowledge-header-actions{display:none!important}
.bb{--bb-border:#e2e5eb;--bb-muted:#7b8496;--bb-green:#236d5b;color:#18232c;font-size:14px;line-height:1.65;font-family:inherit}
.bb[hidden]{display:none!important}.bb *{box-sizing:border-box}.bb h1,.bb h2,.bb h3,.bb p{margin:0}.bb h1{font-size:22px;line-height:1.45;font-weight:650;letter-spacing:-.4px}.bb h2{font-size:16px;line-height:1.5}.bb h3{font-size:14px}.bb p{margin:8px 0}.bb small{font-size:12px;color:var(--bb-muted);display:block}.bb button,.bb .bb-link-button{font:inherit;font-size:13px;line-height:20px;padding:7px 12px;border:1px solid #d8dce5;background:#fff;border-radius:7px;color:#243247;cursor:pointer;white-space:nowrap;text-decoration:none}.bb button:hover{background:#f4f5f8}.bb button:disabled{opacity:.45;cursor:not-allowed}.bb button.bb-primary{background:#18191c;color:white;border-color:#18191c}.bb button.bb-primary:hover{background:#303138}.bb button:focus-visible,.bb a:focus-visible{outline:2px solid #5c71eb;outline-offset:3px}.bb input,.bb select,.bb textarea{font:inherit;color:#202c39;line-height:1.6;border:1px solid #d9dde5;background:white;border-radius:7px;padding:9px 11px;min-width:0;width:100%}.bb textarea{resize:vertical;min-height:100px}.bb label{display:flex;flex-direction:column;gap:6px;font-size:13px}.bb input:focus,.bb select:focus,.bb textarea:focus{outline:2px solid #b5c6f7;outline-offset:1px}.bb .bb-primary:focus-visible{outline-color:#748bf1}.bb input[type=file]{border:0;background:transparent}
#brand-brief-panel{padding:30px 32px 40px;background:#fafbfc;min-height:calc(100vh - 60px);overflow:auto;width:100%}.bb-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.bb-heading p{color:var(--bb-muted)}.bb-eyebrow{font-size:12px;color:var(--bb-muted);margin-bottom:8px!important}.bb-overview{display:flex;align-items:center;gap:0;border:1px solid var(--bb-border);border-radius:10px;background:white;padding:23px 28px;margin-bottom:24px}.bb-overview>div{width:180px;border-right:1px solid var(--bb-border);margin-right:32px}.bb-overview strong{font-size:27px;display:block;font-weight:600;line-height:1.3}.bb-overview span{color:var(--bb-muted);font-size:13px}.bb-overview p{color:var(--bb-muted);margin-left:auto;font-size:13px}.bb-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:16px}.bb-toolbar>input{max-width:360px}.bb-toolbar>select{width:150px}.bb-role{margin-left:auto!important;flex-direction:row!important;align-items:center;color:var(--bb-muted);white-space:nowrap;font-size:12px!important}.bb-role select{width:180px;font-size:12px;padding:7px 9px}.bb-list{border:1px solid var(--bb-border);border-radius:10px;background:white;overflow:hidden}.bb-list-head,.bb-list-row{display:grid;grid-template-columns:minmax(240px,2.5fr) 1fr 1fr 1.2fr minmax(120px,1fr);gap:16px;padding:18px 20px;align-items:center}.bb-list-head{background:#f6f7f9;color:var(--bb-muted);font-size:12px;padding-top:12px;padding-bottom:12px}.bb-list-row{min-height:100px;border-top:1px solid #edf0f3}.bb-list-row>div:first-child{display:flex;align-items:center;gap:14px}.bb-list-row>div:last-child{display:flex;gap:7px;flex-wrap:wrap}.bb-list-row strong{font-weight:600}.bb-list-row small{margin-top:3px}.bb-monogram{display:grid;place-items:center;background:#e9f3ef;color:#236d5b;font-size:22px;font-weight:650;flex-shrink:0;width:48px;height:48px;border-radius:10px}.bb-footnote{margin-top:20px;font-size:12px;color:var(--bb-muted)}.bb-tag{display:inline-block;font-size:11px;line-height:19px;background:#f0f2f6;color:#657187;border-radius:4px;padding:1px 6px;vertical-align:middle}.bb-tag.green{background:#e7f4ed;color:#287056}.bb-tag.amber{background:#fff2da;color:#956120}.bb-detail-heading{display:flex;justify-content:space-between;gap:16px;align-items:center}.bb-detail-heading>div{display:flex;align-items:center;gap:8px}.bb-detail-heading .bb-role{margin-right:8px}.bb-breadcrumb{font-size:12px;color:var(--bb-muted);margin-left:10px}.bb-title{padding:24px 0 18px}.bb-title h1 span{color:#c3c9d1}.bb-title p{color:var(--bb-muted);font-size:12px}.bb-title .bb-tag{margin-right:6px}.bb-context{display:flex;align-items:center;justify-content:space-between;gap:12px;background:white;border:1px solid var(--bb-border);padding:16px;border-radius:9px}.bb-context>div{display:flex;align-items:center;gap:10px}.bb-context label{flex-direction:row;align-items:center;white-space:nowrap;color:var(--bb-muted)}.bb-context select{width:270px;color:#172436}.bb-strategy-bar{display:flex;align-items:center;gap:8px;margin:18px 0 22px;flex-wrap:wrap}.bb-strategy-bar>span{font-size:12px;color:var(--bb-muted);margin-right:6px}.bb-strategy-bar button{font-size:12px;padding:5px 10px}.bb-spacer{flex:1}.bb-detail-grid{display:grid;grid-template-columns:180px minmax(0,1fr);gap:26px;align-items:start}.bb-detail-grid>aside{position:sticky;top:16px}.bb-detail-grid nav{display:flex;flex-direction:column;gap:5px}.bb-detail-grid nav a{color:#657187;text-decoration:none;padding:10px;border-radius:6px;font-size:13px}.bb-detail-grid nav a:hover{color:#192a25;background:#e8eee9}.bb-aside-note{border-top:1px solid var(--bb-border);margin:22px 8px 0;padding-top:18px;font-size:12px;color:var(--bb-muted)}.bb-aside-note strong{color:#34413c}.bb-aside-note hr{border:0;border-top:1px solid var(--bb-border);margin:20px 0}.bb-chapter{background:#fff;border:1px solid var(--bb-border);border-radius:10px;padding:22px 24px;margin-bottom:16px;scroll-margin-top:16px}.bb-chapter>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.bb-chapter h2 span{font-size:12px;color:#77948a;margin-right:12px;letter-spacing:1px}.bb-chapter>header button{border:0;background:transparent;color:#598072;font-size:12px;padding:3px 0}.bb-prose{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.95}.bb-muted{color:var(--bb-muted);font-size:12px}.bb-direction-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}.bb-direction-list>div{padding:15px;background:#f7f9fa;border-radius:8px;border:1px solid #e8edf0}.bb-direction-list p{color:#647183;font-size:13px}.bb-direction-list button{font-size:12px;padding:4px 8px}.bb-section-lead{display:flex;align-items:center;gap:16px;justify-content:space-between;margin-bottom:18px}.bb-section-lead p{font-size:12px;color:var(--bb-muted)}.bb-material-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.bb-material-grid article{border:1px solid var(--bb-border);border-radius:9px;overflow:hidden}.bb-material-cover{background:#edf3f0;display:flex;flex-direction:column;justify-content:space-between;min-height:145px;padding:20px;color:#294c40}.bb-material-grid article:nth-child(2n) .bb-material-cover{background:#eef1f7;color:#374b70}.bb-material-cover span{font-size:11px;letter-spacing:2px}.bb-material-cover strong{font-size:20px;font-weight:600}.bb-material-cover small{color:inherit;opacity:.7}.bb-material-body{padding:16px}.bb-material-body p{font-size:12px;color:var(--bb-muted)}.bb-material-actions{display:flex;gap:7px;margin-top:14px;flex-wrap:wrap}.bb-material-actions button{font-size:12px;padding:5px 9px}.bb-empty{padding:40px 20px;text-align:center;color:var(--bb-muted);grid-column:1/-1}.bb-empty strong{color:#3e4d60}.bb-empty p{margin:8px 0 18px}.bb-banner{padding:14px 18px;background:#f0f4f9;border:1px solid #e4eaf0;border-radius:8px;display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.bb-banner.amber{background:#fff9ed;border-color:#f1dfb7}.bb-banner p{margin:3px 0;font-size:13px;color:#7d735f}.bb-table-scroll{overflow-x:auto}.bb table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}.bb th{color:#8992a2;font-weight:400;background:#f8f9fb;white-space:nowrap}.bb th,.bb td{padding:12px 10px;border-bottom:1px solid var(--bb-border)}.bb td button{font-size:11px;padding:2px 6px;margin-left:4px}.bb-insight{background:#f0f6f3;padding:20px;margin-top:20px;border-radius:8px}.bb-insight>strong{color:#276a50}.bb-insight p{font-size:13px}.bb-dialog{padding:0;border:1px solid var(--bb-border);border-radius:13px;width:min(850px,calc(100vw - 40px));max-height:90vh;color:#1c2732;box-shadow:0 24px 90px #0002}.bb-dialog::backdrop{background:#171d2a66}.bb-dialog>header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--bb-border);padding:18px 24px;position:sticky;top:0;background:#fff;z-index:1}.bb-dialog-body{padding:24px;overflow:auto;max-height:calc(90vh - 150px)}.bb-dialog footer{padding:16px 24px;display:flex;align-items:center;justify-content:flex-end;gap:10px;border-top:1px solid var(--bb-border);background:#fff}.bb-dialog .bb-error{color:#ba3f36;font-size:12px;margin-right:auto}.bb-form label{margin:14px 0}.bb-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.bb-upload{border:1px dashed #b9c9d1;background:#f7fafb;border-radius:8px;padding:16px}.bb-form summary{cursor:pointer;font-weight:600;margin-top:18px}.bb-diff{border-bottom:1px solid var(--bb-border);padding:10px 0 20px}.bb-diff-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.bb-diff-grid>div{padding:16px;border-radius:7px;background:#f6f7f9;min-width:0}.bb-diff-grid>div:last-child{background:#eef6f2}.bb-diff-grid p{font-size:13px}.bb-source-pages{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}.bb-source-pages a{color:#33735e}.bb-dialog figure{margin:20px 0}.bb-dialog figure img{width:100%;border:1px solid var(--bb-border)}.bb-dialog figcaption{padding:8px 0;color:var(--bb-muted)}.bb-history{display:flex;align-items:center;gap:10px;padding:16px 0;border-bottom:1px solid var(--bb-border)}.bb-history>div{flex:1}.bb-history p{font-size:12px;color:var(--bb-muted)}.bb-facts{display:flex;background:#f6f8fa;padding:20px;gap:30px;margin:20px 0}.bb-facts>div{flex:1}.bb-facts span{display:block;font-size:12px;color:var(--bb-muted)}.bb-facts strong{font-size:24px}.bb-script{padding:20px;background:#f7f9fa;border-radius:8px}.bb-chat{padding:12px 20px;max-width:100%;width:100%}.bb-chat-reference{display:flex;gap:16px;align-items:center;justify-content:space-between;border:1px solid var(--bb-border);padding:20px;border-radius:10px;background:white}.bb-chat-reference p{font-size:12px;color:var(--bb-muted)}.bb-chat-question{margin:24px 0 20px 12%;padding:18px;background:#f0f0f3;border-radius:12px;white-space:pre-wrap}.bb-chat-answer{margin:16px 0;background:white;border:1px solid var(--bb-border);padding:22px;border-radius:12px}.bb-chat-answer h3{margin:15px 0}.bb-chat-answer>div:last-child{margin-top:18px;display:flex;gap:10px}
@media(max-width:1250px){#brand-brief-panel{padding:24px}.bb-detail-heading{flex-wrap:wrap}.bb-detail-grid{grid-template-columns:155px minmax(0,1fr);gap:16px}.bb-context{flex-wrap:wrap}.bb-chapter{padding:20px}.bb-overview>div{width:145px;margin-right:20px}.bb-list-head,.bb-list-row{grid-template-columns:minmax(200px,2fr) 1fr .8fr 1fr 110px;gap:10px}.bb-breadcrumb{display:none}.bb-role select{width:155px}}
@media(max-width:900px){.bb-detail-grid{grid-template-columns:1fr}.bb-detail-grid>aside{position:static}.bb-detail-grid nav{flex-direction:row;overflow:auto}.bb-detail-grid nav a{white-space:nowrap}.bb-aside-note{display:none}.bb-overview p{display:none}.bb-toolbar{flex-wrap:wrap}.bb-role{margin-left:0!important}.bb-list{overflow:auto}.bb-list-head,.bb-list-row{min-width:760px}.bb-detail-heading>div{flex-wrap:wrap}.bb-context select{width:220px}}
@media(max-width:600px){.bb-material-grid,.bb-fields,.bb-direction-list,.bb-diff-grid{grid-template-columns:1fr}.bb-heading{align-items:flex-start;flex-direction:column}.bb-section-lead{flex-direction:column;align-items:flex-start}.bb-context>div{flex-wrap:wrap}.bb-dialog-body{padding:18px}.bb-dialog footer{flex-wrap:wrap}#brand-brief-panel{padding:16px}.bb-overview{padding:16px}.bb-overview>div{margin-right:12px;width:100px}.bb-overview strong{font-size:23px}}

/* r41: shared library toolbar and matched assets */
.bb-top-upload{display:none}.knowledge-main.bb-active>.library-topbar .bb-top-upload{display:inline-flex;margin-left:auto;background:#18191c;color:#fff;border:1px solid #18191c;border-radius:7px;padding:8px 14px;font:inherit;cursor:pointer}
#brand-brief-panel{padding:20px 28px 32px;background:#fff}.bb-list{border-radius:0;border-left:0;border-right:0}.bb-list-row{min-height:82px}.bb-title h1{font-size:20px}.bb-chapter-actions{display:flex;gap:18px;flex-wrap:wrap}.bb-match-metrics{display:flex;gap:18px;padding:14px 0;border-bottom:1px solid #e2e5eb;font-size:12px}.bb-match-metrics b{display:block;font-size:16px;color:#233b32;margin-top:4px}

.bb-detail-heading{margin-bottom:20px}.bb-detail-heading .bb-breadcrumb{max-width:38vw;overflow-wrap:anywhere}.bb-detail-heading>div:last-child{flex-wrap:wrap;justify-content:flex-end}

/* r42: compact controls and material-library result dialog. */
.bb-context select{appearance:none;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23475569' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center}
.knowledge-main.bb-active>.library-topbar .bb-top-upload{font-size:12px;line-height:18px;padding:5px 11px;min-height:30px;height:30px;border-radius:6px}
.bb-phase-bar{display:flex;justify-content:flex-end;margin:14px 0 18px}.bb-phase-bar button{font-size:12px;padding:4px 10px}
.bb-library-dialog{width:min(1000px,calc(100vw - 48px))}.bb-library-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.bb-library-summary span{font-size:12px;color:#7b8496}.bb-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.bb-library-card{border:1px solid #e2e5eb;border-radius:9px;overflow:hidden}.bb button.bb-library-thumb{width:100%;position:relative;border:0;border-radius:0;padding:0;display:block;background:#edf0f5}.bb-library-thumb img{width:100%;aspect-ratio:16/9;object-fit:contain;display:block}.bb-media-type{position:absolute;right:10px;bottom:10px;background:#17202ecc;color:white;border-radius:4px;padding:2px 7px;font-size:11px}.bb-library-card-body{padding:14px 16px}.bb-library-card-body p{font-size:12px;color:#7b8496}.bb-library-card-actions{display:flex;gap:8px;margin-top:14px}.bb-library-preview{background:#f4f5f8;border-radius:8px;text-align:center}.bb-library-preview img,.bb-library-preview video{display:block;max-height:55vh;max-width:100%;margin:auto}.bb-library-card .bb-tag{margin-right:6px}@media(max-width:700px){.bb-library-grid{grid-template-columns:1fr}}

.bb-library-card:only-child{grid-column:1/-1;display:grid;grid-template-columns:1.1fr 1fr;align-items:center}.bb-library-card:only-child .bb-library-card-body{padding:22px}@media(max-width:700px){.bb-library-card:only-child{display:block}}

/* r43: use the same toolbar geometry as the sibling library tabs. */
#brand-brief-panel.bb-list-mode{padding:0;min-height:calc(100vh - 60px)}
.bb .bb-list-toolbar{margin:0;gap:8px;padding:14px var(--function-page-inline,28px) 11px;min-height:58px}
.bb .bb-list-toolbar .knowledge-search{flex-direction:row;flex:1;min-width:220px;height:42px;margin:0;gap:10px}
.bb .bb-list-toolbar .knowledge-search input{border:0;background:transparent;outline:0;box-shadow:none;padding:0;width:100%;font-size:13px;line-height:normal}
.bb-list-toolbar>select{width:150px;height:38px;padding:6px 10px;font-size:13px}.bb-list-toolbar .bb-role{margin-left:0!important}
.bb-list-mode .bb-list-head,.bb-list-mode .bb-list-row{padding-left:var(--function-page-inline,28px);padding-right:var(--function-page-inline,28px)}
.has-brief-reference::placeholder{color:#8b93a3!important}

/* r44: match the document tabs table header. */
.bb-list-mode .bb-list-head{height:42px;padding-top:0;padding-bottom:0;background:#fff;color:var(--muted);font-size:12px;font-weight:400;line-height:normal;border-bottom:1px solid var(--hairline)}
.bb-list-mode .bb-list-head+.bb-list-row{border-top:0}

/* r45: avoid two adjacent table borders and reuse the home asset picker. */
.bb-list-mode .bb-list{border-top:0;border-bottom:0}
.bb-list-mode .bb-list-row{border-color:var(--hairline)}
.bb-list-mode .bb-list-row:last-child{border-bottom:1px solid var(--hairline)}
dialog.bb-picker-dialog{width:min(820px,calc(100vw - 48px));padding:0;border:0;border-radius:20px;max-height:calc(100vh - 48px)}
dialog.bb-picker-dialog:not([open]){display:none}
.bb-picker-dialog>.asset-picker-header{position:static;border:0;padding:22px 24px 14px;min-height:82px}
.bb-picker-dialog>.asset-picker-header h2{font-size:19px;line-height:normal}
.bb-picker-dialog>.asset-picker-header p{line-height:normal}
.bb-picker-dialog>.asset-picker-footer{padding:14px 24px;justify-content:space-between;flex-shrink:0;border-top:1px solid #e8e8eb}
.bb-picker-dialog .asset-file-preview img{display:block;width:100%;height:100%;object-fit:contain;background:#f3f4f6}
.bb-picker-empty{grid-column:1/-1;padding:48px 0;color:var(--muted);font-size:13px;text-align:center}
@media(max-width:600px){.bb-picker-dialog .asset-picker-panel{padding:16px;min-height:0}.bb-picker-dialog .asset-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bb-picker-dialog>.asset-picker-footer{gap:8px;padding:14px 16px}}

/* r46: align the action heading and card controls to the right edge. */
.bb-list-head>span:last-child{text-align:right}
.bb-list-row>div:last-child{justify-content:flex-end}

/* r47: keep the action column on the right, align its contents on the left. */
.bb-list-head>span:last-child,.bb-list-row>div:last-child{width:100px;justify-self:end;text-align:left}
.bb-list-row>div:last-child{justify-content:flex-start;align-items:flex-start;flex-direction:column}

/* r49: four-section Brief. */
.bb-context+.bb-detail-grid{margin-top:20px}

.bb-list-mode .bb-name-cell{display:flex;align-items:center;gap:14px;min-width:0}
.bb-list-mode .bb-name-cell input[type=checkbox]{width:16px;height:16px;min-width:16px;margin:0;padding:0;accent-color:var(--accent);cursor:pointer}
.bb-list-mode .bb-file-link{display:flex;align-items:center;gap:12px;min-width:0;height:auto;padding:0;border:0;background:none;color:inherit;text-align:left}
.bb-list-mode .bb-list-row:has(.bb-file-link:enabled){cursor:pointer}
.bb-list-mode .bb-list-row:is(:hover,:has(:focus-visible)){background:var(--library-hover)}
.bb-list-mode .bb-file-link:is(:hover,:focus-visible) strong{text-decoration:underline}
.bb-list-mode .bb-file-link>span:last-child{min-width:0;overflow-wrap:anywhere}
.bb-list-mode .bb-list-row>.knowledge-row-actions{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:3px}
.bb-list-mode .knowledge-row-actions button{width:30px;height:30px;min-height:0;padding:0;border:0;background:transparent;color:var(--muted);line-height:1}
.bb-list-mode .knowledge-row-actions .knowledge-row-more{font-size:18px;font-weight:700}
.bb-list-mode .knowledge-row-actions .knowledge-row-menu{font:22px/1 Arial,sans-serif}
.bb-list-mode .knowledge-row-actions button:is(:hover,[aria-expanded=true]){background:#f0f1f4;color:#222}
.bb-list-toolbar [data-bb=import-selected]{flex:none;white-space:nowrap}
