/* Blackstone logo: every B badge uses assets/brand: mark-black.svg (black rectangle + white B) on light surfaces, mark-white.svg (white rectangle + black B) on dark surfaces. Outlined variants are strictly prohibited. */
.brand-b,.monogram-badge,.cc-badge-icon,.sf-mark,.bs-logo-badge,.auth0-logo-badge,.rd-logo,.bs-loader-monogram,.btn-monogram,.msg-avatar.ai,.bs-notif-badge,.bs-cookie-badge{font-size:0!important;line-height:0!important;color:transparent!important;text-shadow:none!important;border:0!important;border-radius:0!important;background:url(../brand/mark-black.svg) center/100% 100% no-repeat!important}
.cc-sidebar .monogram-badge,.cc-sidebar .cc-badge-icon,.btn-monogram,.cc-btn-ask .btn-monogram,.msg-avatar.ai{background-image:url(../brand/mark-white.svg)!important}
.cc-toggle-pill>span{}
@media (max-width:520px){.cc-toggle-pill>span{display:none}}



/* make sure no other rule resets the artwork sizing */
.brand-b,.monogram-badge,.cc-badge-icon,.sf-mark,.bs-logo-badge,.auth0-logo-badge,.rd-logo,.bs-loader-monogram,.btn-monogram,.msg-avatar.ai,.bs-notif-badge,.bs-cookie-badge,.cc-sidebar .monogram-badge,.cc-sidebar .cc-badge-icon,.cc-btn-ask .btn-monogram{background-size:100% 100%!important;background-repeat:no-repeat!important;background-position:center!important;background-color:transparent!important;border:0!important}

@media (max-width: 520px) {
  .app-main { padding-left: 8px !important; padding-right: 8px !important; }
  .cc-mobile-menu-btn { width: 36px !important; height: 36px !important; top: 8px !important; left: 8px !important; border-radius: 8px !important; }
  .cc-top-toolbar, #bs-emulate { padding-left: 44px !important; min-height: 36px !important; }
  .cc-top-toolbar { gap: 6px !important; }
  .cc-title-heading { font-size: 15px !important; }
  .cc-btn-ask, .cc-btn-subtle { font-size: 12px !important; padding: 0 8px !important; height: 32px !important; min-height: 32px !important; }
  .cc-toggle-pill { gap: 0 !important; padding: 0 !important; }
  .cc-actions-row { gap: 5px !important; }
}
@media (max-width: 520px) {
  .cc-top-toolbar > :first-child { min-width: 0 !important; flex: 1 1 0 !important; overflow: hidden !important; }
  .cc-top-toolbar > :last-child { flex: 0 0 auto !important; }
  .cc-title-heading { font-size: 14px !important; text-overflow: ellipsis; overflow: hidden; }
  .cc-btn-ask, .cc-btn-subtle { font-size: 11.5px !important; padding: 0 7px !important; }
}

/* desktop: emulate drop-down and the page actions share ONE horizontal line */
@media (min-width: 1001px) {
  body.bs-emu .cc-top-toolbar { display: flex !important; align-items: center !important; flex-wrap: nowrap !important; justify-content: space-between !important; gap: 16px; }
  body.bs-emu #bs-emulate { flex: 0 1 auto; min-width: 0; }
  body.bs-emu .cc-actions-row { margin-left: auto; flex: 0 0 auto; }
  body.bs-emu .cc-title-heading { margin: 0 auto 0 8px; }
}

/* sidebar brand: white rectangle with black B on the dark sidebar, text centred on it like the home page */
.cc-sidebar .monogram-badge{width:30px!important;height:30px!important;flex:none;background-image:url(../brand/mark-white.svg)!important}
.cc-brand-title{display:inline-flex!important;align-items:center!important;gap:10px!important;line-height:1!important}
.cc-brand-title span{line-height:1!important;position:relative;top:2.75px}

/* one standard content width: every module fills the pane exactly like the dashboard modules (the pane itself provides the side margins) */
@media (min-width: 1001px) { .bs-main { padding: 0 0 48px !important; max-width: none !important; } #portal-view { width: 100%; } }

/* ==========================================================================
   UNIFIED BLACKSTONE BRAND GUIDELINES (Parity across all modules)
   Synthesized from Flagship Legal Modules: Agents, Vault, Review Tables, Library
   ========================================================================== */

/* 1. Standard Content Width and Page Padding (32px 40px 48px) */
@media (min-width: 1001px) {
  #portal-view, .bs-main, .bs-page, .bs-view, .bs-portal {
    padding: 32px 40px 48px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
  }
  body.bs-assistant-mode #portal-view {
    padding: 0 !important;
  }
}

/* 2. Unified Page Headings & Typography */
#portal-view h1, .bs-main h1, .bs-page h1, .bs-view h1, .bs-portal .bs-head h1, #portal-view > h1 {
  display: block !important;
  font-family: 'Newsreader', 'BlackstoneSerif', Georgia, serif !important;
  font-weight: 400 !important;
  font-size: 32px !important;
  line-height: 40px !important;
  letter-spacing: -0.02em !important;
  color: #0f0e0d !important;
  margin: 0 0 6px 0 !important;
}
#portal-view h2, .bs-main h2, .bs-page h2, .bs-view h2 {
  font-family: 'BlackstoneSans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-weight: 600 !important;
  font-size: 18px !important;
  line-height: 24px !important;
  color: #0f0e0d !important;
  margin: 24px 0 10px !important;
}
#portal-view h3, .bs-main h3, .bs-page h3, .bs-view h3, .bs-panel h3, .bs-card h3 {
  font-family: 'BlackstoneSans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  line-height: 20px !important;
  color: #0f0e0d !important;
  margin: 0 0 6px !important;
}
#portal-view .lead, .bs-main .lead, .bs-portal .bs-head .lead, #portal-view > .bs-head p {
  font-family: 'BlackstoneSans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 14px !important;
  line-height: 20px !important;
  color: #706d66 !important;
  margin: 0 0 16px 0 !important;
  max-width: 72ch !important;
}

/* 3. Unified Buttons Architecture (36px standard, 32px compact inside App) */
body:not(.bs-site) .bs-btn:not(.bs-login-btn):not(.bs-btn-line):not(.ghost):not(.danger),
body:not(.bs-site) a.bs-btn:not(.bs-login-btn):not(.bs-btn-line):not(.ghost):not(.danger),
body:not(.bs-site) button.bs-btn:not(.bs-login-btn):not(.bs-btn-line):not(.ghost):not(.danger),
body:not(.bs-site) input[type="submit"].bs-btn,
#portal-view .bs-btn:not(.bs-login-btn):not(.ghost):not(.danger),
.app-main .bs-btn:not(.bs-login-btn):not(.ghost):not(.danger) {
  box-sizing: border-box !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 16px !important;
  font-family: 'BlackstoneSans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  border: 0 !important;
  background: #0f0e0d !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
}
body:not(.bs-site) .bs-btn:hover, body:not(.bs-site) a.bs-btn:hover, body:not(.bs-site) button.bs-btn:hover {
  background: #252422 !important;
  color: #ffffff !important;
}
.bs-btn:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
}

/* Secondary / Ghost button */
body:not(.bs-site) .bs-btn.ghost, body:not(.bs-site) a.bs-btn.ghost, body:not(.bs-site) button.bs-btn.ghost, .bs-btn.ghost, a.bs-btn.ghost, button.bs-btn.ghost {
  background: #f6f5f3 !important;
  border: 1px solid #e2ded8 !important;
  color: #171615 !important;
  padding: 0 14px !important;
}
body:not(.bs-site) .bs-btn.ghost:hover, body:not(.bs-site) a.bs-btn.ghost:hover, body:not(.bs-site) button.bs-btn.ghost:hover, .bs-btn.ghost:hover, a.bs-btn.ghost:hover, button.bs-btn.ghost:hover {
  background: #ebe8e2 !important;
  border-color: #d6d2cb !important;
  color: #171615 !important;
}

/* Compact / Small button */
.bs-btn.sm, a.bs-btn.sm, button.bs-btn.sm {
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 12px !important;
  font-size: 13px !important;
  border-radius: 6px !important;
}
body:not(.bs-site) .bs-btn.ghost.sm, body:not(.bs-site) a.bs-btn.ghost.sm, body:not(.bs-site) button.bs-btn.ghost.sm, .bs-btn.ghost.sm, a.bs-btn.ghost.sm, button.bs-btn.ghost.sm {
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 10px !important;
  font-size: 13px !important;
}

/* Danger button */
body:not(.bs-site) .bs-btn.danger, body:not(.bs-site) a.bs-btn.danger, body:not(.bs-site) button.bs-btn.danger, .bs-btn.danger, a.bs-btn.danger, button.bs-btn.danger {
  background: #ffffff !important;
  border: 1px solid #f1b9b3 !important;
  color: #b42318 !important;
}
body:not(.bs-site) .bs-btn.danger:hover, body:not(.bs-site) a.bs-btn.danger:hover, body:not(.bs-site) button.bs-btn.danger:hover, .bs-btn.danger:hover, a.bs-btn.danger:hover, button.bs-btn.danger:hover {
  background: #fee4e2 !important;
  border-color: #f1b9b3 !important;
  color: #b42318 !important;
}

/* Regional Login Button (Public Site & Support Navbar) */
.bs-login-btn,
button.bs-login-btn,
.bs-btn.bs-login-btn,
.bs-btn-line.bs-login-btn,
body:not(.bs-site) .bs-login-btn,
body:not(.bs-site) button.bs-login-btn {
  background: #ffffff !important;
  border: 1px solid #d4d2cb !important;
  color: #0f0e0d !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 16px !important;
  border-radius: 6px !important;
  font-family: 'BlackstoneSans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  cursor: pointer !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
.bs-login-btn:hover,
button.bs-login-btn:hover,
.bs-btn.bs-login-btn:hover,
.bs-btn-line.bs-login-btn:hover,
body:not(.bs-site) .bs-login-btn:hover,
body:not(.bs-site) button.bs-login-btn:hover {
  background: #f7f6f3 !important;
  border-color: #c4c1b9 !important;
  color: #0f0e0d !important;
}
.bs-login-btn span,
button.bs-login-btn span,
.bs-btn.bs-login-btn span,
.bs-login-btn svg,
button.bs-login-btn svg,
.bs-btn.bs-login-btn svg,
body:not(.bs-site) .bs-login-btn span,
body:not(.bs-site) .bs-login-btn svg {
  color: #0f0e0d !important;
  stroke: #0f0e0d !important;
}

/* 4. Unified Tabs Architecture (Blackstone warm stone pill strip) */
.bs-tabs, .bs-tab-pills, .bs-tablist, div[role="tablist"] {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.bs-tab, .bs-tab-pill, button.bs-tab {
  box-sizing: border-box !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  font-family: 'BlackstoneSans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #706d66 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  transition: background 0.12s, color 0.12s !important;
}
.bs-tab:hover, .bs-tab-pill:hover {
  background: #f2f0eb !important;
  color: #0f0e0d !important;
}
.bs-tab.on, .bs-tab.active, .bs-tab-pill.on, .bs-tab-pill.active, .bs-tab[aria-selected="true"] {
  background: #e8e6e1 !important;
  color: #0f0e0d !important;
  font-weight: 500 !important;
}

/* 5. Unified Form Controls (36px height, 8px radius, stone border) */
.bs-input, .bs-select, select.bs-select, #bs-emulate select, .bsv-input, .bsag2-input {
  box-sizing: border-box !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 12px !important;
  border: 1px solid #e2ded8 !important;
  border-radius: 8px !important;
  font-family: 'BlackstoneSans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13.5px !important;
  line-height: 20px !important;
  color: #0f0e0d !important;
  background-color: #ffffff !important;
  outline: 0 !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease !important;
}
.bs-input:focus, .bs-select:focus, select.bs-select:focus, #bs-emulate select:focus, .bsv-input:focus {
  border-color: #0f0e0d !important;
}
textarea.bs-input:not(.bs-composer-textarea) {
  height: auto !important;
  min-height: 84px !important;
  padding: 10px 12px !important;
  line-height: 20px !important;
}
.bs-find .acts input, .bs-search input {
  height: 32px !important;
  border: 0 !important;
  background: transparent !important;
}

/* 6. Unified Data Tables & Grids */
.bs-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  margin: 12px 0 24px 0 !important;
}
.bs-table th, #portal-view .bs-table th {
  height: 40px !important;
  padding: 0 12px !important;
  background: #f6f5f3 !important;
  font-family: 'BlackstoneSans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #706d66 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  border: 0 !important;
  border-bottom: 0 !important;
  vertical-align: middle !important;
}
.bs-table th:first-child {
  border-top-left-radius: 8px !important;
  border-bottom-left-radius: 8px !important;
}
.bs-table th:last-child {
  border-top-right-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
}
.bs-table td, #portal-view .bs-table td {
  padding: 12px 14px !important;
  min-height: 52px !important;
  border: 0 !important;
  border-bottom: 1px solid #f2f0ed !important;
  font-family: 'BlackstoneSans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13.5px !important;
  color: #0f0e0d !important;
  vertical-align: middle !important;
  background: transparent !important;
}
.bs-table tr:hover td, .bs-table tr.row-link:hover td, #portal-view .bs-table tr:hover td {
  background: #faf9f7 !important;
}

/* 7. Unified Cards, Panels & Status Pills */
.bs-panel, .bs-card {
  background: #ffffff !important;
  border: 1px solid #e7e4de !important;
  border-radius: 12px !important;
  padding: 20px 24px !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}
.bs-cards {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 16px !important;
  margin: 16px 0 24px !important;
}
.bs-cards .bs-panel:hover, .bs-card:hover {
  border-color: #d6d2cb !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}
.bs-pill, .bs-matter-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 24px !important;
  padding: 0 8px !important;
  border-radius: 6px !important;
  font-family: 'BlackstoneSans', -apple-system, sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  background: #f3f1ee !important;
  color: #3d3a36 !important;
  border: 0 !important;
}

/* Left menu scrollbar: thin overlay bar that only shows on hover (as in the reference app) */
.cc-sidebar,.cc-sidebar *,.app-main{scrollbar-width:thin;scrollbar-color:transparent transparent}
.cc-sidebar:hover,.cc-sidebar *:hover{scrollbar-color:rgba(255,255,255,.22) transparent}
.app-main{scrollbar-color:rgba(0,0,0,.18) transparent}
.cc-sidebar::-webkit-scrollbar,.cc-sidebar *::-webkit-scrollbar{width:8px;height:8px;background:transparent}
.cc-sidebar::-webkit-scrollbar-track,.cc-sidebar *::-webkit-scrollbar-track{background:transparent}
.cc-sidebar::-webkit-scrollbar-thumb,.cc-sidebar *::-webkit-scrollbar-thumb{background:transparent;border-radius:8px;border:2px solid transparent;background-clip:content-box}
.cc-sidebar:hover::-webkit-scrollbar-thumb,.cc-sidebar *:hover::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.22)}
.cc-sidebar::-webkit-scrollbar-thumb:hover,.cc-sidebar *::-webkit-scrollbar-thumb:hover{background-color:rgba(255,255,255,.4)}
.app-main::-webkit-scrollbar{width:10px;background:transparent}.app-main::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.18);border-radius:8px;border:2px solid transparent;background-clip:content-box}

/* collapsed left menu: the open/close button stays visible so the menu can always be opened again */
.sidebar-contracted .cc-brand-header{flex-direction:column!important;gap:10px!important;padding:14px 0 6px!important;justify-content:center!important;align-items:center!important}
.sidebar-contracted .cc-brand-icons{display:flex!important;justify-content:center}
.sidebar-contracted .cc-brand-icons>svg{display:none!important}
.sidebar-contracted .cc-sidebar-toggle-btn{display:flex!important}

/* documentation books: title and page controls on one line */
body.bs-book-mode .bs-head{display:flex!important;flex-direction:row!important;align-items:center!important;flex-wrap:nowrap!important;gap:12px}
body.bs-book-mode .bs-head>*:last-child{flex-wrap:nowrap!important;white-space:nowrap;flex:0 0 auto}
body.bs-book-mode .bs-head h1{margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.bs-book-mode .bs-head select.bs-select{width:170px!important;min-width:0}
@media (max-width:700px){body.bs-book-mode .bs-head{flex-wrap:wrap!important}body.bs-book-mode .bs-head>*:last-child{flex-wrap:wrap!important}}

/* white B on black: solid white rectangle with a black B (never an outline box) */
.cc-sidebar .monogram-badge,.cc-sidebar .cc-badge-icon,.btn-monogram,.cc-btn-ask .btn-monogram,.msg-avatar.ai{background-image:url(../brand/mark-white.svg)!important}
.cc-btn-ask .btn-monogram{width:20px!important;height:20px!important;flex:none}

/* top pane pattern on every module: main text left, firm emulation centred, page actions right */
@media (min-width: 1001px) {
  body.bs-emu .cc-top-toolbar { display: grid !important; grid-template-columns: 1fr auto 1fr !important; align-items: center !important; gap: 16px !important; }
  body.bs-emu .cc-top-toolbar > :first-child:not(#bs-emulate) { justify-self: start; min-width: 0; }
  body.bs-emu #bs-emulate { grid-column: 2; justify-self: center; margin: 0 !important; }
  body.bs-emu .cc-actions-row { grid-column: 3; justify-self: end; margin-left: 0 !important; }
  body.bs-emu .cc-title-heading { margin: 0 !important; }
}

/* document page: text + key terms; search results */
.bs-doc-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:14px;align-items:start}
.bs-kt-panel{position:sticky;top:10px;max-height:calc(100vh - 40px);overflow:auto}
.bs-kt{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid #f1efe9;cursor:pointer;font-size:13px}
.bs-kt:hover{background:#faf9f6}.bs-kt-l{color:#5b5a55;flex:none;max-width:48%}.bs-kt-v{text-align:right;font-weight:500;overflow-wrap:anywhere}

/* keyboard shortcuts & kbd component */
kbd.bs-kbd, .bs-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  box-sizing: border-box;
  font-family: 'BlackstoneSans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #171615;
  background: #fbfbfa;
  border: 1px solid #d5d4d0;
  border-bottom: 2px solid #b5b4b0;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.06);
  line-height: 1;
}
.bs-sc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px;
  border-bottom: 1px solid #f1efe9;
  font-size: 13px;
  border-radius: 4px;
}
.bs-sc-row:hover { background: #faf9f6; }
.bs-sc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #8e8d88;
  margin: 14px 0 6px;
  padding: 0 6px;
}
.bs-hit{padding:10px 12px;margin:0 0 6px;border:1px solid #e5e3dd;border-radius:8px;background:#fff;cursor:pointer;line-height:1.55}.bs-hit:hover{border-color:#171615}.bs-hit mark{background:#fff3bf;padding:0 1px}
@media (max-width:1100px){.bs-doc-grid{grid-template-columns:1fr}.bs-kt-panel{position:static;max-height:none}}

/* header buttons and every drop-down use the same compact height (28 px) */
.cc-btn-ask,.cc-btn-subtle,.cc-toggle-pill,.cc-top-toolbar select,.cc-card-select,.cc-dashboard-select{box-sizing:border-box;height:28px!important;min-height:28px;padding-top:0!important;padding-bottom:0!important;line-height:1!important;font-size:13px!important}
.cc-btn-ask,.cc-btn-subtle{display:inline-flex!important;align-items:center;justify-content:center}
.cc-btn-ask .btn-monogram{width:18px!important;height:18px!important}
select{height:28px;font-size:13px}
/* comparison */
.bs-cmp{display:grid;grid-template-columns:1fr 1fr;gap:0;border:1px solid #e5e3dd;border-radius:8px;margin:0 0 6px;background:#fff;overflow:hidden}
.bs-cmp-head{font-weight:600;background:#f6f5f2}.bs-cmp-c{padding:9px 12px;font-size:13px;line-height:1.55;overflow-wrap:anywhere}.bs-cmp-c+.bs-cmp-c{border-left:1px solid #e5e3dd}
.bs-cmp-c.rem{background:#fee4e2}.bs-cmp-c.add{background:#dcfae6}.bs-cmp del{background:#fecdca;text-decoration:line-through}.bs-cmp ins{background:#abefc6;text-decoration:none}
@media(max-width:800px){.bs-cmp{grid-template-columns:1fr}.bs-cmp-c+.bs-cmp-c{border-left:0;border-top:1px solid #e5e3dd}}

/* the top-row title may be long: keep it on one line and let it shrink */
#cc-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;max-width:100%}

.bs-doc p.sel{outline:2px solid #171615;outline-offset:2px;border-radius:4px}
.bs-doc p{cursor:pointer}

/* the B mark has sharp corners everywhere */
.bs-loader-monogram,.monogram-badge,.cc-badge-icon,.brand-b,.sf-mark,.bs-logo-badge,.auth0-logo-badge,.rd-logo,.btn-monogram,.msg-avatar.ai,.brand-mark,.bs-notif-badge,.bs-cookie-badge,.bscc-askmark{border-radius:0!important}

/* two components per row (as on the Command Center) */
.bs-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
@media (max-width:900px){.bs-grid2{grid-template-columns:1fr}}
.bs-form2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;align-content:start}
.bs-form2 .span2{grid-column:1/-1}.bs-form2>div{min-width:0}.bs-form2 button,.bs-form2 .bs-btn{grid-column:1/-1;justify-self:start}
.bs-draft-grid{display:grid;grid-template-columns:minmax(380px,560px) minmax(0,1fr);gap:14px;align-items:start}
@media (max-width:1100px){.bs-draft-grid{grid-template-columns:1fr}}
@media (max-width:560px){.bs-form2{grid-template-columns:1fr}}

/* onboarding workflow */
.bs-flow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}
.bs-flow-box{display:flex;gap:12px;border:1px solid #e5e3dd;border-radius:10px;background:#fff;padding:14px;text-decoration:none;color:inherit;transition:border-color .15s,box-shadow .15s}
.bs-flow-box:hover{border-color:#171615;box-shadow:0 4px 14px rgba(0,0,0,.08)}.bs-flow-box.dim{opacity:.45}
.bs-flow-n{flex:none;width:30px;height:30px;background:#171615;color:#fff;display:grid;place-items:center;font:600 14px 'BlackstoneSerif',Georgia,serif}
.bs-flow-b{flex:1;min-width:0}
@media (max-width:900px){.bs-flow{grid-template-columns:1fr}}

/* onboarding workflow */
.bs-flow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}
.bs-flow-box{display:flex;gap:12px;border:1px solid #e5e3dd;border-radius:10px;background:#fff;padding:14px;text-decoration:none;color:inherit;transition:border-color .15s,box-shadow .15s}
.bs-flow-box:hover{border-color:#171615;box-shadow:0 4px 14px rgba(0,0,0,.08)}.bs-flow-box.dim{opacity:.45}
.bs-flow-n{flex:none;width:30px;height:30px;background:#171615;color:#fff;display:grid;place-items:center;font:600 14px 'BlackstoneSerif',Georgia,serif}
.bs-flow-b{flex:1;min-width:0}
@media (max-width:900px){.bs-flow{grid-template-columns:1fr}}

/* ---- Command Center card theme applied to every module (9 Nov 2026): 12px radius, 24px padding, soft border, 16px/600 card titles, bold sans stat numbers, 26px page titles ---- */
.bs-portal .bs-main h1, .bs-portal h1 { font-size: 26px; line-height: 1.2; letter-spacing: -.015em; }
.bs-portal .bs-panel, .bs-portal .bs-stat, .bs-portal .bs-find, .bs-portal .bs-flow-box, .bs-portal .bs-empty, .bs-portal .bs-table, .bs-portal .bs-drop { border-radius: 12px; }
.bs-portal .bs-panel, .bs-portal .bs-stat { border: 1px solid var(--border-light); box-shadow: 0 1px 3px rgba(0, 0, 0, .02); background: #fff; }
.bs-portal .bs-panel { padding: 24px; margin: 18px 0; }
.bs-portal .bs-cards { gap: 24px; margin: 22px 0 10px; }
.bs-portal .bs-stat { padding: 22px 24px; min-height: 108px; display: flex; flex-direction: column; justify-content: center; }
.bs-portal .bs-stat b { font-family: var(--font-sans); font-size: 32px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; color: #171615; }
.bs-portal .bs-stat span { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.bs-portal .bs-panel > b:first-child, .bs-portal .bs-panel > .bs-head > b:first-child, .bs-portal .bs-panel > .bs-head > div > b:first-child { font-size: 16px; font-weight: 600; color: var(--text-dark); }
.bs-portal .bs-table { border-color: var(--border-light); box-shadow: 0 1px 3px rgba(0, 0, 0, .02); }
.bs-portal .bs-table th { padding: 12px 16px; }
.bs-portal .bs-table td { padding: 12px 16px; }
.bs-portal .bs-find { border-color: var(--border-light); border-left-width: 4px; padding: 18px 20px; }
.bs-portal .bs-main .lead, .bs-portal .lead { font-size: 14px; color: var(--text-muted); }
@media (max-width: 700px) {
  .bs-portal .bs-panel { padding: 16px; margin: 14px 0; }
  .bs-portal .bs-cards { gap: 12px; }
  .bs-portal .bs-stat { padding: 16px 18px; min-height: 0; }
  .bs-portal .bs-stat b { font-size: 26px; }
  .bs-portal .bs-main h1, .bs-portal h1 { font-size: 22px; }
}

/* ---- Two-column rhythm (9 Nov 2026): cards that sit next to each other share the row 50% / 50% on every screen (for example Sign-in left, API access right). Headings, tables, notices and tab bars span the full row. ---- */
#portal-view.bs-portal:has(> .bs-panel):not([style*="none"]) { display: grid !important; } /* the shell sets display:block inline on the visible view */
.bs-portal:has(> .bs-panel), .bs-portal :where(div):has(> .bs-panel):not(.bs-doc-grid):not(.bs-draft-grid):not(.bs-cards):not(.bs-form2) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; align-items: start; }
.bs-portal:has(> .bs-panel) > :not(.bs-panel), .bs-portal :where(div):has(> .bs-panel):not(.bs-doc-grid):not(.bs-draft-grid):not(.bs-cards):not(.bs-form2) > :not(.bs-panel) { grid-column: 1 / -1; }
.bs-portal:has(> .bs-panel) > .bs-panel, .bs-portal :where(div):has(> .bs-panel):not(.bs-doc-grid):not(.bs-draft-grid):not(.bs-cards):not(.bs-form2) > .bs-panel { margin: 0; max-width: none; width: auto; }
.bs-portal .bs-panel.bs-wide { grid-column: 1 / -1 !important; }
@media (max-width: 900px) {
  .bs-portal:has(> .bs-panel), .bs-portal :where(div):has(> .bs-panel):not(.bs-doc-grid):not(.bs-draft-grid):not(.bs-cards):not(.bs-form2) { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* wrapper divs that only hold one card let that card join the row's two columns; stat cards never leave one orphan on a row */
.bs-portal div:not([class]):has(> .bs-panel:only-child) { display: contents !important; }
@media (min-width: 901px) {
  .bs-portal .bs-cards:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bs-portal .bs-cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* card grids (template cards, clause cards) and the two-pane screens (document + key terms, form + preview) also split 50% / 50% */
.bs-portal .bs-cards:has(> .bs-panel) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 18px 24px; }
.bs-portal .bs-doc-grid, .bs-portal .bs-draft-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px; align-items: start; }
@media (max-width: 900px) {
  .bs-portal .bs-cards:has(> .bs-panel), .bs-portal .bs-doc-grid, .bs-portal .bs-draft-grid { grid-template-columns: minmax(0, 1fr) !important; }
}

/* some cards carry an inline max-width from older screens (for example 640px): every card is exactly half the row, whatever the screen width */
.bs-portal .bs-panel { max-width: none !important; width: auto !important; box-sizing: border-box; }

/* file pickers: the Choose files button and its label sit on one centred line, 40px tall, on every module */
input[type="file"] { display: flex; align-items: center; box-sizing: border-box; min-height: 40px; height: 40px; padding: 0 8px; line-height: 1; font-size: 13px; color: var(--text-muted); background: #fff; border: 1px solid var(--border-light); border-radius: 8px; cursor: pointer; }
input[type="file"]::file-selector-button { height: 28px; margin: 0 10px 0 0; padding: 0 12px; border: 1px solid var(--border-light); border-radius: 6px; background: #fff; color: var(--text-dark); font: 500 13px/28px var(--font-sans); cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: #f6f5f2; }

/* Assistant: a full-screen research workspace (no top bar), threads on the left, conversation centred, composer pinned at the bottom */
body.bs-assistant-mode .cc-top-toolbar, body.bs-assistant-mode #recommendations-banner { display: none !important; }
body.bs-assistant-mode .app-main { padding: 0 !important; }
body.bs-assistant-mode #portal-view.bs-portal { padding: 0 !important; display: block !important; max-width: none; }
.bs-asst { display: grid; grid-template-columns: 280px minmax(0, 1fr); height: 100vh; background: #fff; }
.bs-asst-side { border-right: 1px solid var(--border-light); padding: 18px 14px; overflow: auto; background: #faf9f7; }
.bs-asst-label { margin: 18px 4px 8px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.bs-asst-thread { display: flex; align-items: center; gap: 4px; border-radius: 8px; padding: 0 6px 0 0; }
.bs-asst-thread:hover, .bs-asst-thread.on { background: #efede8; }
.bs-asst-open { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 8px 10px; font: 13px var(--font-sans); color: var(--text-dark); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-asst-main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.bs-asst-msgs { flex: 1; overflow: auto; padding: 36px 0 12px; }
.bs-asst-col { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.bs-asst-empty { padding-top: 8vh; text-align: center; }
.bs-asst-empty h1 { font: 400 34px/1.2 var(--font-serif); margin: 0 0 10px; }
.bs-asst-empty .lead { margin: 0 auto 22px; max-width: 60ch; }
.bs-asst-hints { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.bs-asst-hints .bs-btn { height: auto; min-height: 28px; padding: 8px 14px; white-space: normal; text-align: left; }
.bs-asst-row { display: flex; gap: 14px; margin: 0 0 22px; align-items: flex-start; }
.bs-asst-row.me { justify-content: flex-end; }
.bs-asst-user { background: #f1efe9; border-radius: 14px; padding: 10px 14px; max-width: 78%; white-space: pre-wrap; }
.bs-asst-av { flex: none; width: 28px; height: 28px; border-radius: 6px; background: #171615; color: #fff; display: grid; place-items: center; font: 600 13px var(--font-serif); }
.bs-asst-ai { flex: 1; min-width: 0; line-height: 1.6; }
.bs-asst-ai p { margin: 0 0 8px; }
.bs-asst-src { margin: 8px 0; padding: 10px 14px; border: 1px solid var(--border-light); border-left: 3px solid #171615; border-radius: 8px; background: #faf9f7; font-size: 13px; }
.bs-asst-src a { display: block; margin-top: 6px; font-size: 12px; color: #5b5a55; }
.bs-asst-compose { padding: 8px 0 18px; background: #fff; }
.bs-asst-box { border: 1px solid var(--border-light); border-radius: 14px; padding: 10px 12px; box-shadow: 0 1px 6px rgba(0, 0, 0, .05); background: #fff; }
.bs-asst-box textarea { width: 100%; border: 0 !important; outline: 0; resize: none; height: auto; min-height: 28px; padding: 4px 2px !important; font: 15px/1.5 var(--font-sans); background: transparent; }
.bs-asst-bar { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
@media (max-width: 900px) { .bs-asst { grid-template-columns: minmax(0, 1fr); } .bs-asst-side { display: none; } .bs-asst-user { max-width: 92%; } }
.bs-asst-box textarea { box-shadow: none !important; background: transparent !important; }
.power-user-days { white-space: nowrap; }

/* square mark, wins over every earlier radius */
html body .brand-b,html body .monogram-badge,html body .cc-badge-icon,html body .sf-mark,html body .bs-logo-badge,html body .auth0-logo-badge,html body .rd-logo,html body .bs-loader-monogram,html body .btn-monogram,html body .msg-avatar.ai,html body .bs-mark,html body .brand-mark,html body .bs-asst-av,html body .bs-notif-badge,html body .bs-cookie-badge,html body .bscc-askmark{border-radius:0!important}
html body .cc-sidebar .monogram-badge,html body .cc-sidebar .cc-badge-icon,html body .cc-btn-ask .btn-monogram,html body .cc-sidebar .btn-monogram,html body a.bs-mark,html body .sp-logo .brand-b,html body .bs-notif-badge,html body .bs-cookie-badge{border-radius:0!important}

/* Research, Blackstone: centred greeting and large composer when empty, cards beneath, tidy answers */
.bs-asst-main.is-empty{justify-content:center}
.bs-asst-main.is-empty .bs-asst-msgs{flex:0 0 auto;overflow:visible;padding:0}
.bs-asst-main.is-empty .bs-asst-empty{padding-top:0}
.bs-asst-main.is-empty .bs-asst-compose{padding:8px 0 0}
.bs-asst-main.is-empty .bs-asst-foot{display:none}
.bs-asst-empty h1{font:400 38px/1.15 var(--font-serif)}
.bs-asst-box{border-radius:16px;padding:14px 16px;box-shadow:0 2px 14px rgba(0,0,0,.07)}
.bs-asst-box textarea{min-height:56px;font-size:16px}
.bs-asst-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}
.bs-asst-main:not(.is-empty) .bs-asst-cards{display:none}
.bs-asst-card{display:flex;flex-direction:column;gap:4px;text-align:left;padding:14px 16px;border:1px solid var(--border-light);border-radius:12px;background:#fff;cursor:pointer;font:inherit;color:inherit}
.bs-asst-card:hover{background:#faf9f7;border-color:#cfcbc2}
.bs-asst-card b{font-size:14px}
.bs-asst-card span{font-size:13px;color:#5b5a55;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bs-asst-ai h3{font:600 17px/1.3 var(--font-serif);margin:16px 0 6px}
.bs-asst-ai h4{font:600 15px/1.3 var(--font-sans);margin:12px 0 4px}
.bs-asst-ai ul,.bs-asst-ai ol{margin:0 0 10px;padding-left:22px}
.bs-asst-ai li{margin:0 0 4px}
.bs-asst-ai code{background:#f1efe9;padding:1px 5px;border-radius:4px;font-size:.92em}
.bs-asst-srcs{margin:10px 0}
.bs-asst-srcs summary{cursor:pointer;font-size:13px;color:#5b5a55}
.bs-asst-actions{margin-top:6px;font-size:12px}
@media (max-width:700px){.bs-asst-cards{grid-template-columns:minmax(0,1fr)}}
.dark .bs-asst-card,.dark-theme .bs-asst-card{background:#1b1a18}
.bs-asst-copy{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:0;border-radius:8px;background:transparent;color:#6b6a65;cursor:pointer;padding:0}
.bs-asst-copy:hover{background:#efede8;color:#171615}
.bs-asst-actions{display:flex;align-items:center;margin-top:2px}

.bs-asst-actions{display:flex;align-items:center;gap:2px;margin-top:4px;opacity:.85}
.bs-asst-actions.right{justify-content:flex-end;opacity:0;transition:opacity .15s}
.bs-asst-userwrap:hover .bs-asst-actions.right{opacity:.9}
.bs-asst-userwrap{max-width:78%;display:flex;flex-direction:column;align-items:flex-end}
.bs-asst-userwrap .bs-asst-user{max-width:100%}
.bs-asst-copy.on{color:#171615;background:#efede8}
#portal-view .bs-btn.stop,.bs-asst-bar .bs-btn.stop{background:#fff!important;color:#171615!important;border:1px solid #171615!important}

.bs-asst-tablewrap{overflow-x:auto;margin:8px 0 12px}
.bs-asst-table{border-collapse:collapse;font-size:14px;min-width:60%}
.bs-asst-table th,.bs-asst-table td{border:1px solid var(--border-light);padding:7px 12px;text-align:left}
.bs-asst-table th{background:#faf9f7;font-weight:600}
.bs-asst-ai hr{border:0;border-top:1px solid var(--border-light);margin:14px 0}
.bs-asst-ai em{color:#5b5a55}

.bs-libcard{display:block;text-decoration:none;color:inherit}
.bs-libcard:hover{background:#faf9f7;border-color:#cfcbc2}
.bs-libcard h3{margin:0}
.bs-pill{display:inline-block;padding:2px 9px;border-radius:999px;background:#f1efe9;color:#5b5a55;font-size:12px;align-self:center}

/* homepage screen carousel: one slide after another */
.hero-carousel{position:relative}
.hero-carousel .hero-slide{display:none}
.hero-carousel .hero-slide.on{display:block;animation:heroFade .6s ease}
.hero-carousel .hero-dots{display:flex;justify-content:center;gap:8px;padding:12px 0 2px}
.hero-carousel .hero-dots button{width:9px;height:9px;padding:0;border-radius:50%;border:0;background:rgba(255,255,255,.4);cursor:pointer}
.hero-carousel .hero-dots button.on{background:#fff}
@keyframes heroFade{from{opacity:.0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.hero-carousel .hero-slide.on{animation:none}}

.bs-feat-wide{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:900px){.bs-feat-wide{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.bs-feat-wide{grid-template-columns:minmax(0,1fr)}}

#portal-view .bs-asst-empty h1,.bs-asst-empty h1{display:block!important}

.hero-carousel .hero-dashboard-img,.hero-dashboard-img{width:100%;height:auto!important;aspect-ratio:1910/932;object-fit:cover}
.hero-carousel{aspect-ratio:auto}

.hero-caption{display:flex;flex-direction:column;gap:2px;align-items:center;text-align:center;padding:14px 12px 2px;color:#fff}
.hero-caption b{font:600 17px/1.3 'BlackstoneSerif',Georgia,serif}
.hero-caption span{font-size:13px;opacity:.8;max-width:760px}

.partner-video{max-width:1100px;margin:34px auto 0;background:#000;border:1px solid var(--border-light,#e5e3dc);box-shadow:0 18px 50px rgba(0,0,0,.18)}
.partner-video video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#000}
.partner-video-hero{margin:48px auto 0}
.partner-hero .hero-headline{font-size:clamp(44px,6vw,88px)}
/* page title tools: back arrow, hover help, library card icons */
.bs-titlebtn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;margin-right:10px;border:1px solid #d9d5cc;border-radius:50%;background:#fff;color:#44403a;font:600 14px/1 Inter,system-ui,sans-serif;cursor:pointer;vertical-align:middle}
.bs-titlebtn:hover{background:#171615;color:#fff;border-color:#171615}
.bs-help{position:relative;display:inline-block;margin-left:10px;vertical-align:middle}.bs-help .bs-titlebtn{margin-right:0}
.bs-helptip{display:none;position:absolute;left:0;top:38px;z-index:60;width:320px;max-width:80vw;padding:12px 14px;background:#171615;color:#fff;border-radius:10px;font:400 13px/1.5 Inter,system-ui,sans-serif;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.bs-helptip a{display:block;margin-top:8px;color:#9ec5ff;font-weight:600;text-decoration:none}
.bs-help:hover .bs-helptip,.bs-help:focus-within .bs-helptip{display:block}
.bs-libicon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;margin-bottom:8px;border-radius:10px;background:#f1efe9;color:#171615}
.bs-libcard:hover .bs-libicon{background:#171615;color:#fff}
[data-theme=dark] .bs-titlebtn{background:#1f1e1c;color:#e8e6e1;border-color:#3a3835}
.bs-libcard{display:flex!important;flex-direction:row;align-items:flex-start;gap:14px}
.bs-libcard .bs-libicon{flex:0 0 auto;margin-bottom:0}
.bs-libcard .bs-libtext{min-width:0;flex:1}
/* component help icons */
.cc-title-heading{display:flex;align-items:center}
.bs-qi{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;margin-left:7px;padding:0;border:1px solid #c9c5bb;border-radius:50%;background:#fff;color:#6b675f;font:600 11px/1 Inter,system-ui,sans-serif;cursor:help;vertical-align:middle;text-transform:none;letter-spacing:0}
.bs-qi:hover,.bs-qi:focus{background:#171615;color:#fff;border-color:#171615;outline:none}
.bs-qi-field{margin-left:8px}
#bs-tip{display:none;position:fixed;z-index:10000;width:300px;max-width:84vw;padding:10px 12px;background:#171615;color:#fff;border-radius:9px;font:400 12.5px/1.5 Inter,system-ui,sans-serif;box-shadow:0 8px 24px rgba(0,0,0,.28);pointer-events:none}

#bs-back{margin:0 0 0 18px!important}

.bs-qi{flex:0 0 17px!important;box-sizing:border-box;min-width:17px;max-width:17px;height:17px;min-height:17px;aspect-ratio:1/1;padding:0!important;border-radius:50%!important;line-height:1}
.bs-qi-field{margin:0 6px!important;align-self:center}

.bs-qrow{display:flex;align-items:center;gap:6px}.bs-qrow>select,.bs-qrow>input,.bs-qrow>textarea{min-width:0}

/* file pickers: button and text vertically centred in the box, in every module */
input[type=file]{display:flex!important;align-items:center;box-sizing:border-box;padding:8px 12px!important;min-height:46px;line-height:normal;font-size:14px}
input[type=file]::file-selector-button{margin:0 12px 0 0;padding:7px 14px;align-self:center;font:inherit;line-height:1.2;cursor:pointer}

/* Left menu measured from the saved reference product page (10 Nov 2026): open 260px, collapsed rail 70px with 11px labels under 28px icon buttons.
   Colours are the dark "reskin" tokens (hsl); fonts are our own (Inter), not the reference product's licensed Diatype. */
html body .cc-sidebar{--hv-bg:hsl(30 7.14% 5.49%);--hv-text:hsl(37.5 5.33% 70.59%);--hv-active:hsl(42.86 7.37% 18.63%);--hv-active-text:hsl(34 11% 88%);--hv-hover:hsl(43 7% 19% / .3);--hv-on:hsl(34 11% 88%);
  width:260px!important;min-width:260px!important;background:var(--hv-bg)!important;border-right:1px solid rgba(255,255,255,.1)!important;font-family:'Inter',-apple-system,'Segoe UI',sans-serif;transition:width .18s ease,min-width .18s ease}
html body .cc-sidebar .cc-brand-header{padding:24px 16px 0!important;min-height:56px;display:flex;align-items:center;justify-content:space-between}
html body .cc-sidebar .cc-brand-title .monogram-badge{display:inline-grid!important;width:28px!important;height:28px!important;border-radius:0!important;background:url(../brand/mark-white.svg) center/100% 100% no-repeat!important}
html body .cc-sidebar .cc-brand-title span{display:none!important}
html body .cc-sidebar .cc-brand-icons{display:flex;align-items:center;gap:8px}
html body .cc-sidebar .cc-brand-icons>svg,html body .cc-sidebar .cc-sidebar-toggle-btn{width:32px!important;height:32px!important;min-width:32px!important;max-width:32px!important;padding:8px;border-radius:6px;box-sizing:border-box;color:var(--hv-text);background:transparent;border:0;display:flex;align-items:center;justify-content:center;cursor:pointer}
html body .cc-sidebar .cc-brand-icons>svg:hover,html body .cc-sidebar .cc-sidebar-toggle-btn:hover{background:var(--hv-hover);color:var(--hv-on)}
html body .cc-sidebar .cc-sidebar-top{padding:0 16px;gap:16px}
html body .cc-sidebar .cc-new-thread-btn,html body .cc-sidebar .cc-menu-item{height:28px;min-height:28px;box-sizing:border-box;display:flex;align-items:center;gap:12px;padding:6px 10px!important;border-radius:6px!important;font-size:14px!important;line-height:20px;font-weight:400;color:var(--hv-text)!important;background:transparent!important;border:0!important;width:100%;justify-content:flex-start;margin:0 0 2px}
html body .cc-sidebar .cc-new-thread-btn{background:transparent!important;color:var(--hv-text)!important}
html body .cc-sidebar .cc-new-thread-btn.active{background:var(--hv-active)!important;color:var(--hv-active-text)!important}
html body .cc-sidebar .cc-menu-item:hover,html body .cc-sidebar .cc-new-thread-btn:hover{background:var(--hv-hover)!important;color:var(--hv-on)!important}
html body .cc-sidebar .cc-menu-item.active{background:var(--hv-active)!important;color:var(--hv-active-text)!important}
html body .cc-sidebar .cc-menu-item svg,html body .cc-sidebar .cc-new-thread-btn svg{width:16px!important;height:16px!important;min-width:16px;flex:none}
html body .cc-sidebar .cc-menu-item:hover svg,html body .cc-sidebar .cc-new-thread-btn:hover svg,html body .cc-sidebar .bs-thread-link:hover svg{transform:none!important;margin:0!important;color:inherit!important;filter:none!important}
html body .cc-sidebar .bs-sidebar-sec-header{font-size:12px!important;font-weight:500;padding:6px 10px!important;color:var(--hv-text);opacity:.75;cursor:default}
html body .cc-sidebar .bs-sidebar-sec-header svg{display:none!important}
html body .cc-sidebar .bs-thread-link{font-size:14px!important;line-height:20px;padding:6px 10px!important;border-radius:6px;color:var(--hv-text)}
html body .cc-sidebar .bs-thread-link:hover{background:var(--hv-hover);color:var(--hv-on)}
/* collapsed rail */
html body .app-layout.sidebar-contracted .cc-sidebar{width:70px!important;min-width:70px!important}
html body .app-layout.sidebar-contracted .cc-sidebar .cc-brand-header{padding:24px 0 0!important;flex-direction:column;gap:12px;justify-content:center}
html body .app-layout.sidebar-contracted .cc-sidebar .cc-brand-title .monogram-badge{display:block!important;width:24px!important;height:24px!important}
html body .app-layout.sidebar-contracted .cc-sidebar .cc-brand-title span,
html body .app-layout.sidebar-contracted #sidebar-recents-section,
html body .app-layout.sidebar-contracted #sidebar-spaces-section,
html body .app-layout.sidebar-contracted #sidebar-ops-section,
html body .app-layout.sidebar-contracted .bs-sidebar-sec-header,
html body .app-layout.sidebar-contracted .cc-sidebar .cc-brand-icons>svg,
html body .app-layout.sidebar-contracted .cc-sidebar .cc-user-name,
html body .app-layout.sidebar-contracted .cc-sidebar .cc-user-role,
html body .app-layout.sidebar-contracted .cc-sidebar .cc-sidebar-text{display:none!important}
.bs-space-badge{width:16px;height:16px;min-width:16px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;color:#fff!important;flex-shrink:0;text-transform:uppercase;line-height:1}
html body .app-layout.sidebar-contracted .cc-sidebar .cc-sidebar-top{padding:0 6px;gap:8px;align-items:center}
html body .app-layout.sidebar-contracted .cc-sidebar .cc-menu-group{display:flex;flex-direction:column;gap:8px;align-items:center}
html body .app-layout.sidebar-contracted .cc-sidebar .cc-new-thread-btn,html body .app-layout.sidebar-contracted .cc-sidebar .cc-menu-item{flex-direction:column;height:auto;width:56px;padding:0!important;gap:4px;background:transparent!important;margin:0}
html body .app-layout.sidebar-contracted .cc-sidebar .cc-menu-item svg,html body .app-layout.sidebar-contracted .cc-sidebar .cc-new-thread-btn svg{box-sizing:content-box;padding:6px;width:16px!important;height:16px!important;border-radius:6px}
html body .app-layout.sidebar-contracted .cc-sidebar .cc-menu-item:hover svg,html body .app-layout.sidebar-contracted .cc-sidebar .cc-new-thread-btn:hover svg{background:var(--hv-hover)}
html body .app-layout.sidebar-contracted .cc-sidebar .cc-menu-item.active svg{background:var(--hv-active)}
html body .app-layout.sidebar-contracted .cc-sidebar .cc-menu-item::after{content:attr(title);font-size:11px;line-height:14px;font-weight:500;text-align:center;max-width:56px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html body .app-layout.sidebar-contracted .cc-sidebar .cc-new-thread-btn::after{content:'New';font-size:11px;line-height:14px;font-weight:500}
html body .app-layout.sidebar-contracted .cc-sidebar .cc-sidebar-user-container{padding:10px 0;display:flex;justify-content:center}
/* Blackstone Official Typography (Renamed and hosted locally) */
@font-face{font-family:'BlackstoneSans';src:url(../fonts/BlackstoneSans-Variable.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'BlackstoneSerif';src:url(../fonts/BlackstoneSerif-Regular.woff2) format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'BlackstoneSerif';src:url(../fonts/BlackstoneSerif-Italic.woff2) format('woff2');font-weight:400;font-style:italic;font-display:swap}

/* Aliases for 100% backward and forward parity */
@font-face{font-family:'Diatype';src:url(../fonts/BlackstoneSans-Variable.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap}

html body .cc-sidebar{font-family:'BlackstoneSans','Diatype','Inter',-apple-system,'Segoe UI',sans-serif!important}
html body .cc-sidebar .cc-brand-title span,.bs-serif,.bs-page-title,.bs-hero-greet{font-family:'BlackstoneSerif','Newsreader',Georgia,serif!important}
.bs-sans,.bs-composer-textarea,.bs-chip-btn,.bs-tab-pill{font-family:'BlackstoneSans','Diatype','Inter',-apple-system,'Segoe UI',sans-serif!important}

/* Fonts everywhere (10 Nov 2026): form controls and tooltips inherit the page font instead of the browser default (Arial); typography only, no behaviour change */
button,input,select,textarea{font-family:inherit}
#bs-tip,.bs-helptip{font-family:'BlackstoneSans','Diatype','Inter',-apple-system,'Segoe UI',sans-serif}

/* ONE family only (owner rule, 10 Nov 2026): every other font name that still appears anywhere in the CSS, HTML or JS is aliased to the Blackstone fonts, so nothing can render in another typeface. Keep this block last. */
@font-face{font-family:'Inter';src:url(../fonts/BlackstoneSans-Variable.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'InterVariable';src:url(../fonts/BlackstoneSans-Variable.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Plus Jakarta Sans';src:url(../fonts/BlackstoneSans-Variable.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Helvetica';src:url(../fonts/BlackstoneSans-Variable.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Helvetica Neue';src:url(../fonts/BlackstoneSans-Variable.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Arial';src:url(../fonts/BlackstoneSans-Variable.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Segoe UI';src:url(../fonts/BlackstoneSans-Variable.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Roboto';src:url(../fonts/BlackstoneSans-Variable.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Noto Sans';src:url(../fonts/BlackstoneSans-Variable.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Calibri';src:url(../fonts/BlackstoneSans-Variable.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Verdana';src:url(../fonts/BlackstoneSans-Variable.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Tahoma';src:url(../fonts/BlackstoneSans-Variable.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Newsreader';src:url(../fonts/BlackstoneSerif-Regular.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Newsreader';src:url(../fonts/BlackstoneSerif-Italic.woff2) format('woff2');font-weight:100 900;font-style:italic;font-display:swap}
@font-face{font-family:'Georgia';src:url(../fonts/BlackstoneSerif-Regular.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Georgia';src:url(../fonts/BlackstoneSerif-Italic.woff2) format('woff2');font-weight:100 900;font-style:italic;font-display:swap}
@font-face{font-family:'Source Serif 4';src:url(../fonts/BlackstoneSerif-Regular.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Source Serif 4';src:url(../fonts/BlackstoneSerif-Italic.woff2) format('woff2');font-weight:100 900;font-style:italic;font-display:swap}
@font-face{font-family:'Source Serif Pro';src:url(../fonts/BlackstoneSerif-Regular.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Source Serif Pro';src:url(../fonts/BlackstoneSerif-Italic.woff2) format('woff2');font-weight:100 900;font-style:italic;font-display:swap}
@font-face{font-family:'Garamond';src:url(../fonts/BlackstoneSerif-Regular.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Garamond';src:url(../fonts/BlackstoneSerif-Italic.woff2) format('woff2');font-weight:100 900;font-style:italic;font-display:swap}
@font-face{font-family:'Times New Roman';src:url(../fonts/BlackstoneSerif-Regular.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Times New Roman';src:url(../fonts/BlackstoneSerif-Italic.woff2) format('woff2');font-weight:100 900;font-style:italic;font-display:swap}
@font-face{font-family:'Times';src:url(../fonts/BlackstoneSerif-Regular.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Times';src:url(../fonts/BlackstoneSerif-Italic.woff2) format('woff2');font-weight:100 900;font-style:italic;font-display:swap}
@font-face{font-family:'Cambria';src:url(../fonts/BlackstoneSerif-Regular.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Cambria';src:url(../fonts/BlackstoneSerif-Italic.woff2) format('woff2');font-weight:100 900;font-style:italic;font-display:swap}


/* ==========================================================================
   MODULE-SPECIFIC POLISH: PRACTICE & OPERATIONS, ADMINISTRATION, ACCOUNT
   Conforming 100% to Blackstone Authoritative Brand Guidelines
   ========================================================================== */

/* Page Header & Breadcrumbs */
#portal-view > .bs-head, .bs-portal .bs-head, .app-main .bs-head, .bs-main > .bs-head:not(header) {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  margin: 0 0 24px 0 !important;
  padding-bottom: 18px !important;
  border-bottom: 1px solid #e7e4de !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}
#portal-view > .bs-head > div:first-child, .bs-portal .bs-head > div:first-child, .app-main .bs-head > div:first-child, .bs-main > .bs-head:not(header) > div:first-child {
  flex: 1 1 300px !important;
  min-width: 0 !important;
}
.bs-crumbs {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-family: 'BlackstoneSans', -apple-system, sans-serif !important;
  font-size: 13px !important;
  color: #706d66 !important;
  margin-bottom: 12px !important;
}
.bs-crumbs a {
  color: #706d66 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.12s ease !important;
}
.bs-crumbs a:hover {
  color: #0f0e0d !important;
  text-decoration: underline !important;
}

/* Metric / Stats Cards Grid (Dashboard, Tasks, Time, Analytics) */
.bs-cards {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
  gap: 16px !important;
  margin: 16px 0 24px 0 !important;
}
.bs-stat {
  background: #ffffff !important;
  border: 1px solid #e7e4de !important;
  border-radius: 12px !important;
  padding: 20px 22px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}
.bs-stat:hover {
  border-color: #d6d2cb !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}
.bs-stat b {
  display: block !important;
  font-family: 'BlackstoneSans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 30px !important;
  line-height: 36px !important;
  font-weight: 600 !important;
  color: #0f0e0d !important;
  letter-spacing: -0.02em !important;
  margin: 0 !important;
}
.bs-stat span {
  display: block !important;
  font-family: 'BlackstoneSans', -apple-system, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #706d66 !important;
  margin-top: 4px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Panels, Forms & Sections */
.bs-panel {
  background: #ffffff !important;
  border: 1px solid #e7e4de !important;
  border-radius: 12px !important;
  padding: 22px 26px !important;
  margin: 16px 0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  transition: border-color 0.15s ease !important;
}
.bs-panel > b:first-child, .bs-panel > b {
  display: block !important;
  font-family: 'BlackstoneSans', -apple-system, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #0f0e0d !important;
  margin-bottom: 12px !important;
}
.bs-form-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 14px !important;
  margin: 14px 0 !important;
}
.bs-label {
  font-family: 'BlackstoneSans', -apple-system, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #706d66 !important;
  margin: 12px 0 6px 0 !important;
}

/* Notice & Alert Boxes */
.bs-notice {
  background: #faf9f7 !important;
  border: 1px solid #e2ded8 !important;
  border-left: 3px solid #0f0e0d !important;
  border-radius: 8px !important;
  padding: 12px 18px !important;
  font-size: 13.5px !important;
  line-height: 20px !important;
  color: #171615 !important;
  margin: 16px 0 !important;
}
.bs-notice b {
  font-weight: 600 !important;
  color: #0f0e0d !important;
}

/* Filter Bars & Inputs (Matters, Clients, Search, etc.) */
#portal-view input.bs-input[placeholder*="Filter"],
#portal-view input.bs-input[placeholder*="Search"],
#portal-view input.bs-input[aria-label*="Filter"],
#portal-view input.bs-input[aria-label*="Search"],
input[placeholder*="Filter matters"],
input[placeholder*="Filter clients"] {
  height: 36px !important;
  padding: 0 14px !important;
  border: 1px solid #e2ded8 !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
  background: #ffffff !important;
  color: #0f0e0d !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease !important;
}
#portal-view select#matter-status {
  height: 36px !important;
  padding: 0 12px !important;
  border: 1px solid #e2ded8 !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
  background: #ffffff !important;
  color: #0f0e0d !important;
}

/* Empty State Component */
.bs-empty {
  border: 1px dashed #e0ddd7 !important;
  border-radius: 16px !important;
  padding: 48px 24px !important;
  text-align: center !important;
  color: #6a6660 !important;
  font-size: 14px !important;
  line-height: 22px !important;
  background: #ffffff !important;
  margin: 16px 0 !important;
}

/* Status Badges & Chips */
.bs-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  height: 22px !important;
  padding: 0 8px !important;
  border-radius: 6px !important;
  font-family: 'BlackstoneSans', -apple-system, sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  background: #f3f1ee !important;
  color: #3d3a36 !important;
  border: 0 !important;
}
.bs-pill.ok {
  background: #e6f4ea !important;
  color: #0f766e !important;
}
.bs-pill.wait {
  background: #fef3c7 !important;
  color: #92400e !important;
}
.bs-pill.off {
  background: #f3f1ee !important;
  color: #706d66 !important;
}

/* Key Terms List & Deep-Links (Diary, Calendar, Documents) */
.bs-kt {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid #f2f0ed !important;
  cursor: pointer !important;
  font-size: 13.5px !important;
  transition: background 0.12s ease !important;
  border-radius: 6px !important;
}
.bs-kt:hover {
  background: #faf9f7 !important;
}
.bs-kt-l {
  color: #706d66 !important;
  flex: none !important;
  max-width: 45% !important;
  font-weight: 500 !important;
}
.bs-kt-v {
  text-align: right !important;
  font-weight: 500 !important;
  color: #0f0e0d !important;
  overflow-wrap: anywhere !important;
}

/* Workflows Cards Polish */
.bs-cards .bs-panel {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}
.bs-cards .bs-panel h3 {
  margin: 0 0 6px 0 !important;
  font-size: 16px !important;
  line-height: 22px !important;
  color: #0f0e0d !important;
}

/* Modals & Dialogs Overlay Polish */
.bs-modal {
  background: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(2px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 3000 !important;
}
.bs-modal > div {
  width: min(640px, 94vw) !important;
  max-height: 90vh !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
.bs-modal > div > div:first-child {
  padding: 24px 24px 0 24px !important;
  background: #ffffff !important;
}
.bs-modal > div > div:first-child b {
  font-family: 'Newsreader', 'BlackstoneSerif', Georgia, serif !important;
  font-size: 20px !important;
  line-height: 28px !important;
  font-weight: 400 !important;
  color: #0f0e0d !important;
}

/* Dark Theme Overrides for Module Elements */
html body.dark-theme #portal-view,
html[data-theme="dark"] body #portal-view {
  color: #f5f4f0 !important;
}
html body.dark-theme .bs-stat,
html[data-theme="dark"] body .bs-stat {
  background: #1d1c1a !important;
  border-color: #33312c !important;
}
html body.dark-theme .bs-stat b,
html[data-theme="dark"] body .bs-stat b {
  color: #f5f4f0 !important;
}
html body.dark-theme .bs-stat span,
html[data-theme="dark"] body .bs-stat span {
  color: #a6a29b !important;
}
html body.dark-theme .bs-panel,
html[data-theme="dark"] body .bs-panel {
  background: #1d1c1a !important;
  border-color: #33312c !important;
}
html body.dark-theme .bs-panel > b,
html[data-theme="dark"] body .bs-panel > b {
  color: #f5f4f0 !important;
}
html body.dark-theme .bs-empty,
html[data-theme="dark"] body .bs-empty {
  background: #1d1c1a !important;
  border-color: #33312c !important;
  color: #a6a29b !important;
}
html body.dark-theme .bs-notice,
html[data-theme="dark"] body .bs-notice {
  background: #242320 !important;
  border-color: #3d3b37 !important;
  border-left-color: #f5f4f0 !important;
  color: #f5f4f0 !important;
}
html body.dark-theme .bs-table th,
html[data-theme="dark"] body .bs-table th {
  background: #262522 !important;
  color: #a6a29b !important;
}
html body.dark-theme .bs-table td,
html[data-theme="dark"] body .bs-table td {
  border-bottom-color: #2c2a26 !important;
  color: #f5f4f0 !important;
}
html body.dark-theme .bs-table tr:hover td,
html[data-theme="dark"] body .bs-table tr:hover td {
  background: #242320 !important;
}
html body.dark-theme .bs-tab:hover,
html[data-theme="dark"] body .bs-tab:hover {
  background: #2a2825 !important;
  color: #f5f4f0 !important;
}
html body.dark-theme .bs-tab.on,
html[data-theme="dark"] body .bs-tab.on {
  background: #383632 !important;
  color: #f5f4f0 !important;
}
html body.dark-theme .bs-input,
html[data-theme="dark"] body .bs-input,
html body.dark-theme .bs-select,
html[data-theme="dark"] body .bs-select {
  background: #22211e !important;
  border-color: #3d3b37 !important;
  color: #f5f4f0 !important;
}
html body.dark-theme .bs-btn:not(.ghost):not(.danger),
html[data-theme="dark"] body .bs-btn:not(.ghost):not(.danger) {
  background: #f5f4f0 !important;
  color: #0f0e0d !important;
}
html body.dark-theme .bs-btn.ghost,
html[data-theme="dark"] body .bs-btn.ghost {
  background: #262522 !important;
  border-color: #3d3b37 !important;
  color: #f5f4f0 !important;
}

/* code, preformatted and keyboard text use Blackstone Sans too: no exceptions */
code,pre,kbd,samp,tt,var{font-family:'BlackstoneSans',sans-serif!important}

