/* Business Home only. Existing shell, artist Home and other tabs retain
   their own layout and tokens. Meridian owns its separate violet surface. */
/* The news ticker stays on Business Home like every other page (Ollie, 2026-09-22). */
/* Leave room to scroll the task composer clear of the floating chat button. */
body:has(#panel-briefing.active #mgrHomeGrid.business-home) .main { padding-bottom: 88px; }
/* A shade under the cards so they read as cards (Ollie, 2026-09-22); dark mode already sets them apart. */
body:not([data-theme="dark"]):has(#panel-briefing.active #mgrHomeGrid.business-home) .main { background-color: color-mix(in srgb, var(--surface-2), #fff 40%); }
#panel-briefing:has(.business-home) .briefing-head { align-items: center; }
#panel-briefing .bh-account-label { font: 600 11px var(--font-body); color: var(--green); border: 1px solid var(--border-med); border-radius: 999px; padding: 6px 12px; }
#mgrHomeGrid.business-home { --bh-secondary: var(--text-2); grid-template-columns: minmax(0, 1fr) 330px; gap: 24px 28px; align-items: start; margin-bottom: 0; }
#mgrHomeGrid.business-home > #mgrPulse,
#mgrHomeGrid.business-home > #mgrBriefHome,
#mgrHomeGrid.business-home > #mgrWeekAgenda { display: none; }
.business-home .bh-work, .business-home .bh-side { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.business-home .bh-work > *, .business-home .bh-side > * { min-width: 0; }
.business-home .bh-side { align-self: stretch; }
.business-home .bh-work { align-self: stretch; contain: size; min-height: 560px; }
.business-home .bh-work > #mgrRosterCards { flex: 1 1 auto; min-height: 0; display: flex; }
.business-home .bh-artists { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.business-home .home-card { margin: 0; }
.business-home h2 { margin: 0; }
body[data-theme="dark"] #mgrHomeGrid.business-home { --bh-secondary: color-mix(in srgb, var(--text) 72%, var(--surface)); --green: #72b594; --red: #ed8179; }
body[data-theme="dark"] #panel-briefing .bh-account-label { color: #72b594; }
.business-home .mgc-head { min-height: 50px; padding: 12px 18px; }
.business-home .mgc-title { font-size: 17px; font-weight: 700; }
.business-home .mgc-title > span { font-size: 12px; color: var(--text-3); font-weight: 400; }
.business-home .mgc-link { flex-shrink: 0; font-size: 12px; }
.business-home button, .business-home input, .business-home select { font-family: var(--font-body); }
.business-home button:focus-visible, .business-home input:focus-visible, .business-home select:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.business-home .bh-focus { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; min-height: 0; }
.business-home #bhTodayTitle { font-size: 15px; line-height: 1.35; }
.business-home .bh-summary { margin: 4px 0 0; color: var(--bh-secondary); font-size: 12px; line-height: 1.4; }
.business-home .bh-focus > .mgc-head { min-height: 0; align-items: flex-start; flex-wrap: wrap; gap: 8px; padding: 16px 18px 10px; border: 0; }
.business-home .bh-focus > .mgc-head > div { min-width: 0; }
.business-home #bhAllTasks { white-space: nowrap; margin-left: 0; font-size: 11px; }
/* The overview is its own surface. Tasks and stories keep their complete
   card outlines below it, with the page's existing gap between them. */
.business-home .bh-hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .75fr);
  margin-bottom: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #0d1f14 0%, #1a3d2b 60%, #0d2318 100%);
  border: 1px solid rgba(74, 222, 128, .18); border-radius: 12px;
  box-shadow: 0 8px 32px rgba(13, 31, 20, .25);
}
.business-home .bh-focus, .business-home #mgrIndustryBrief > .mga-card { border: 1px solid var(--border-med); border-radius: 14px; }
.business-home .bh-signal {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 20px 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  text-align: left;
  overflow-wrap: anywhere;
  transition: background 120ms;
}
.business-home .bh-signal + .bh-signal { border-left: 1px solid rgba(255, 255, 255, .08); }
.business-home button.bh-signal { cursor: pointer; }
.business-home button.bh-signal:not(:disabled):hover { background: rgba(45, 106, 79, .04); }
.business-home button.bh-signal:disabled { opacity: 1; cursor: default; }
.business-home .bh-signal:focus-visible { outline-color: #4ade80; outline-offset: -3px; }
/* Explicitly match Artist Home's #arteryStatsStrip typography (Ollie,
   2026-09-22), including its monospace labels and stacked supporting lines. */
.business-home .bh-signal-label { display: block; order: 1; margin-bottom: 6px; font: 600 9px var(--font-mono); letter-spacing: 1.2px; text-transform: uppercase; color: #4ade80; }
.business-home .bh-signal-value { display: block; order: 2; max-width: 100%; font: 700 21px/1.1 var(--font-mono); letter-spacing: -.5px; color: #fff; }
/* Activity is readable in place; longer updates grow the row naturally. */
.business-home .bh-signal-value:not(.is-number) { white-space: normal; }
.business-home .bh-signal-detail { display: block; order: 3; min-width: 0; margin-top: 6px; font: 600 12px var(--font-mono); color: rgba(255, 255, 255, .78); }
.business-home .bh-signal-meta { display: block; order: 4; margin: 4px 0 0; padding: 0; font: 400 10px var(--font-mono); letter-spacing: .2px; color: rgba(255, 255, 255, .5); }
.business-home .bh-signal-meta.is-overdue { order: 3; margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0; color: #f87171; }
.business-home .bh-signal:has(.bh-signal-meta.is-overdue) .bh-signal-detail { order: 4; margin-top: 4px; font-size: 10px; font-weight: 400; letter-spacing: .2px; color: rgba(255, 255, 255, .5); }
.business-home .bh-signal-meta[hidden] { display: none; }
.business-home .bh-signal[aria-busy="true"] .bh-signal-value { color: rgba(255, 255, 255, .78); }
.business-home .bh-task-list { flex: 1 1 auto; min-height: 0; padding: 0 18px; max-height: 480px; overflow-y: auto; scrollbar-width: thin; }
.business-home .bh-task { display: grid; grid-template-columns: 17px minmax(0, 1fr) 62px; align-items: center; gap: 4px 9px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.business-home .bh-task > .bh-check { grid-column: 1; grid-row: 1; align-self: start; margin-top: 5px; }
.business-home .bh-task > .bh-task-open { grid-column: 2 / -1; grid-row: 1; }
.business-home .bh-task:last-child { border-bottom: 0; }
.business-home .bh-check { padding: 0; flex: 0 0 17px; width: 17px; height: 17px; border: 1px solid var(--text-3); border-radius: 4px; background: transparent; color: var(--green); cursor: pointer; }
.business-home .bh-check:hover { border-color: var(--green); background: var(--green-dim); }
.business-home .bh-check:disabled { opacity: .4; cursor: wait; }
.business-home .bh-task-open { min-width: 0; flex: 1; text-align: left; border: 0; background: transparent; color: var(--text); padding: 4px 0; cursor: pointer; }
.business-home .bh-task-title, .business-home .bh-task-context { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.business-home .bh-task-title { font-size: 12.5px; font-weight: 700; line-height: 1.4; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.business-home .bh-task-context { font-size: 11px; line-height: 1.35; margin-top: 2px; color: var(--bh-secondary); }
.business-home .bh-task-open:hover .bh-task-title { color: var(--green); }
.business-home .bh-owner { grid-column: 2; grid-row: 2; min-width: 0; display: flex; align-items: center; gap: 6px; font: 11px var(--font-body); color: var(--bh-secondary); }
.business-home .bh-owner-avatar { position: relative; overflow: hidden; flex: 0 0 18px; width: 18px; height: 18px; border: 1px solid var(--border-med); border-radius: 50%; display: grid; place-items: center; font-size: 8px; }
.business-home .bh-owner-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.business-home .bh-due { grid-column: 3; grid-row: 2; text-align: right; font: 500 11px/1.35 var(--font-body); color: var(--bh-secondary); }
.business-home .bh-due.late { color: var(--red); }
.business-home .bh-quick-add { border-top: 1px solid var(--border); padding: 7px 18px; min-height: 46px; box-sizing: border-box; display: flex; align-items: center; gap: 9px; color: var(--bh-secondary); }
.business-home .bh-quick-add input { flex: 1; min-width: 60px; width: 0; padding: 4px 0; color: var(--text); background: transparent; border: 0; font-size: 12px; }
.business-home .bh-quick-add input::placeholder { color: var(--text-3); }
.business-home .bh-quick-add select:not(:disabled) { cursor: pointer; }
/* The branded select trigger (business-tasks.js) sized like the old native one. */
.business-home .bh-quick-add .bt-select-trigger { width: auto; max-width: 40%; flex: 0 0 auto; min-height: 32px; padding: 6px 13px; gap: 7px; font-size: 12px; font-weight: 600; }
.business-home .bh-quick-add .bt-select-trigger:hover,
.business-home .bh-quick-add .bt-select-trigger[aria-expanded="true"] { color: var(--text); }
.business-home .bh-quick-add select { appearance: none; width: 120px; min-width: 0; max-width: 32%; background: var(--surface); color: var(--bh-secondary); border: 1px solid var(--border-med); border-radius: 999px; font-size: 11px; padding: 6px 22px 6px 10px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23818a85' stroke-width='1.4'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E"); background-position: right 8px center; background-repeat: no-repeat; }
.business-home .bh-submit { width: 32px; height: 32px; flex: 0 0 32px; border: 1px solid var(--border-med); border-radius: 999px; background: transparent; color: var(--bh-secondary); padding: 0; display: grid; place-items: center; cursor: pointer; }
.business-home .bh-submit svg { display: block; width: 15px; height: 15px; margin: 0; }
.business-home .bh-submit:hover { border-color: var(--green); color: var(--green); background: var(--green-dim); }
.business-home .bh-submit:disabled { opacity: .4; cursor: wait; }
.business-home .bh-notice { margin: 0; border-top: 1px solid var(--border); padding: 6px 14px; font-size: 11px; color: var(--bh-secondary); }
.business-home .bh-empty { padding: 20px 2px; color: var(--text-3); font-size: 12px; line-height: 1.6; }
.business-home .business-home-empty { min-height: 160px; padding: 22px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.business-home .business-home-empty-title { margin: 0; color: var(--text); font: 600 15px/1.4 var(--font-body); }
.business-home .business-home-empty-copy { max-width: 340px; margin: 0; color: var(--bh-secondary); font: 400 12px/1.6 var(--font-body); text-wrap: pretty; }
.business-home .business-home-empty-action { margin-top: 5px; padding: 8px 18px; min-height: 36px; border: 1px solid color-mix(in srgb, var(--green) 30%, var(--border)); border-radius: 999px; background: var(--green-dim); color: var(--green); font: 600 12px/1.4 var(--font-body); cursor: pointer; }
.business-home .business-home-empty-action:hover { border-color: var(--green); }
.business-home .bh-quick-add[hidden], .business-home .bh-quick-add .bt-select-trigger[hidden], .business-home .bh-quick-add select[hidden] { display: none; }
.business-home .bh-retry { border: 0; background: transparent; color: var(--green); cursor: pointer; padding: 8px 0; font-size: 11px; }
/* Meridian remains available from the floating launcher. Keep its legacy
   Home host out of layout so the task list gets the full side column. */
.business-home #businessHomeMeridian { display: none; }
/* Share the Artist Home story card's visual language and media layout. */
.business-home .bh-business-briefing .home-card-head { flex-wrap: wrap; }
.business-home .bh-business-briefing .brief-hero { grid-template-columns: minmax(0, 1fr) clamp(128px, 14vw, 220px); }
.business-home .bh-business-briefing .bh-head-meta { margin-left: auto; }
.business-home .bh-business-briefing .bh-cta { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.business-home .bh-business-briefing .mgw-more { margin: 0; width: auto; border: 0; padding: 0; min-height: 0; font-size: 11px; }
.business-home .bh-business-briefing .bh-copy, .business-home .bh-business-briefing .bh-visual-inner, .business-home .bh-business-briefing .bh-head-meta { transition: opacity 520ms ease-in-out; }
@media (prefers-reduced-motion: reduce) { .business-home .bh-business-briefing .bh-copy, .business-home .bh-business-briefing .bh-visual-inner, .business-home .bh-business-briefing .bh-head-meta { transition: none; } }
#mgrHomeGrid.business-home #arteryTodayRail { flex: 0 0 auto; min-height: 0; max-height: none; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 4px 16px rgba(0,0,0,.04); }
#mgrHomeGrid.business-home #arteryTodayRail > .mgc-head { padding: 18px 18px 8px; border: 0; min-height: 0; }
#mgrHomeGrid.business-home #arteryTodayRail .mgc-title { font-size: 15px; }
#mgrHomeGrid.business-home #arteryTodayRail .mgc-link { font-size: 10.5px; }
#mgrHomeGrid.business-home #arteryTodayRail #briefAttention,
#mgrHomeGrid.business-home #arteryTodayRail #briefFinancials,
#mgrHomeGrid.business-home #mgrAddEvent { display: none; }
#mgrHomeGrid.business-home #arteryTodayList { padding: 0 18px 8px; display: flex; flex-direction: column; overflow: hidden; }
#mgrHomeGrid.business-home #arteryTodayList .cal-item { min-height: 50px; flex-shrink: 0; box-sizing: border-box; padding: 8px 0; gap: 11px; align-items: center; }
#mgrHomeGrid.business-home #arteryTodayList .cal-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
#mgrHomeGrid.business-home #arteryTodayList .cal-time { width: 46px; flex-shrink: 0; font-size: 11px; color: var(--bh-secondary); }
#mgrHomeGrid.business-home #arteryTodayList .cal-item > div:last-child { min-width: 0; }
#mgrHomeGrid.business-home #arteryTodayList .cal-sub { color: var(--bh-secondary); font-size: 11px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mgrHomeGrid.business-home .business-calendar-more { display: block; width: 100%; min-height: 34px; padding: 8px 0; margin: auto 0 0; text-align: center; border: 0; border-top: 1px solid var(--border); background: transparent; color: var(--green); font-size: 12px; cursor: pointer; }
/* Overlay scrollbars do not reserve a gutter, so keep dates inset too. */
.business-home .bh-artist-grid { flex: 1 1 auto; min-height: 160px; padding-inline-end: 16px; overflow-y: auto; scrollbar-width: thin; scrollbar-gutter: stable; overscroll-behavior: contain; }
.business-home .bh-artist-grid:has(> .bh-empty) { display: block; padding: 0 16px; }
.business-home .bh-artist { min-width: 0; padding: 15px 0; border-bottom: 1px solid var(--border); }
.business-home .bh-artist:last-child { border-bottom: 0; padding-bottom: 2px; }
.business-home .bh-artist-open { display: block; width: 100%; padding: 0; background: none; border: 0; text-align: left; cursor: pointer; color: var(--text); }
.business-home .bh-artist-name { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.business-home .bh-artist-name > i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--bh-artist-color, var(--green)); }
.business-home .bh-artist-name > span { margin-left: auto; color: var(--text-3); }
/* Career moments stay grouped by artist, with their source dates visible. */
.business-home .bh-win { display: flex; flex-direction: column; gap: 6px; padding-top: 0; margin-top: 0; font-size: 12.5px; line-height: 18px; min-height: 0; color: var(--bh-secondary); }
.business-home .bh-milestone { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.business-home .bh-milestone::before { content: ''; width: 4px; height: 4px; flex: 0 0 4px; border-radius: 50%; background: var(--bh-artist-color, var(--green)); }
.business-home .bh-milestone-text { flex: 1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-width: 0; overflow: hidden; }
.business-home .bh-milestone-date { flex: 0 0 auto; font-family: var(--font-mono); font-size: 10px; white-space: nowrap; color: var(--bh-secondary); }
.business-home .bh-milestone-placeholder { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.business-home .bh-artist-open:hover .bh-artist-name { color: var(--green); }
@media (max-width: 1200px) {
  .business-home .bh-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .business-home .bh-signal:nth-child(odd) { border-left: 0; }
  .business-home .bh-signal:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); }
}
@media (max-width: 1100px) {
  #mgrHomeGrid.business-home { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .business-home .bh-work { contain: none; min-height: 0; }
  .business-home .bh-artist-grid { max-height: 440px; }
  .business-home .bh-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .business-home .bh-task-list { max-height: 320px; }
  .business-home .bh-business-briefing .brief-hero { grid-template-columns: minmax(0, 1fr) 180px; }
}
@media (max-width: 899px) {
  .business-home .bh-hero { grid-template-columns: minmax(0, 1fr); }
  .business-home .bh-signal { padding: 12px 16px; }
  .business-home .bh-signal + .bh-signal { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
}
@media (max-width: 620px) {
  .business-home .bh-side { display: flex; }
  .business-home .bh-business-briefing .brief-hero { grid-template-columns: minmax(0, 1fr); }
  .business-home .bh-business-briefing .bh-visual { display: none; }
  .business-home .home-card { padding: 16px; }
  .business-home .bh-task-list { max-height: 260px; }
  .business-home .mgc-title > span { display: block; margin-top: 3px; }
  .business-home .bh-quick-add input { font-size: 16px; }
  .business-home .bh-quick-add select, .business-home .bh-quick-add .bt-select-trigger { font-size: 12px; width: 115px; }
}
@media (pointer: coarse) {
  .business-home .bh-submit { width: 40px; height: 40px; flex-basis: 40px; }
  .business-home .bh-task { grid-template-columns: 28px minmax(0, 1fr) 62px; gap: 5px; }
  .business-home .bh-check { flex-basis: 28px; width: 28px; height: 28px; border: 7px solid var(--surface); box-shadow: inset 0 0 0 1px var(--text-3); }
}
