/* Fund-manager shell: five business entries, original projects/Sessions, persistent Agent. */
:root { --sidebar-w: 224px; }
.app { border-radius: 0; }
#sidebar { background: var(--bg-container); border-right: 1px solid #e9e9ee; }
#sidebar .sb-titlebar { height: 80px; margin: 0 0 8px; padding: 0 22px; align-items: center; -webkit-app-region: none; }
.sb-workspace-label { color: #8a8a96; font-size: var(--type-caption-size); letter-spacing: .04em;  line-height: var(--type-caption-line); }
#sidebar .sb-toggle { margin: 0; cursor: pointer; }
#sidebar .sb-brand { height: auto; min-height: 50px; margin: 6px 0 16px; padding: 0 22px; flex-wrap: wrap; gap: 8px; }
#sidebar .sb-brand-text { color: #282337; font-size: 29px; letter-spacing: -1px; }
.sb-brand-logo { display: block; position: relative; width: 92px; height: 24px; flex: 0 0 92px; overflow: hidden; }
.sb-brand-logo img { position: absolute; width: 104px; height: auto; max-width: none; left: -9.6px; top: -7.6px; }
/* Keep the original artwork intact; separate its two visible regions for spacing. */
.sb-brand-logo .sb-brand-symbol { clip-path: inset(0 67.2px 0 0); }
.sb-brand-logo .sb-brand-wordmark { clip-path: inset(0 0 0 38.4px); left: -5.6px; }
.sb-brand-caption { width: 100%; color: #888391; font-size: var(--type-caption-size); letter-spacing: .02em;  line-height: var(--type-caption-line); }
#sidebar .sb-tabs { margin: 0 12px; padding: 0; gap: 6px; }
#sidebar .sb-tab { width: 100%; height: 42px; padding: 0 13px; border-radius: 8px; gap: 11px; color: #65616e; font-size: var(--type-body-size); cursor: pointer;  line-height: var(--type-body-line); }
#sidebar .sb-tab svg { width: 17px; height: 17px; color: #7c7489; stroke-width: 1.7; }
#sidebar .sb-tab.active { color: #6e49b9; background: #eee8f9; box-shadow: none; font-weight: 600; }
#sidebar .sb-tab.active svg { color: #7446bd; }
#sidebar .sb-tab:not(.active):hover { background: #f1eef6; color: #6e49b9; }
#sidebar .sb-nav:empty { display: none; }
#sidebar .sb-scroll { padding: 18px 12px 14px; margin: 14px 0 0; border-top: 1px solid #eeecf1; }
#sidebar .sb-section-title { margin: 0 0 7px; padding: 0 13px; color: #8b8493; font-size: var(--type-caption-size); font-weight: 400;   line-height: var(--type-caption-line); }
#sidebar .project { margin: 0; }
#sidebar .proj-row { height: 32px; padding: 0 11px; font-size: var(--type-caption-size); color: #514b5c; border-radius: 6px; cursor: pointer;  line-height: var(--type-caption-line); }
#sidebar .proj-row:hover { background: #f1eef6; }
#sidebar .proj-row svg { width: 15px; height: 15px; margin-right: 8px; color: #8d819e; flex: none; }
#sidebar .task-row { height: 34px; padding-left: 29px; padding-right: 10px; margin: 2px 0 0; font-size: var(--type-caption-size); color: #746d7d; border-radius: 6px;  line-height: var(--type-caption-line); }
#sidebar .task-row.placeholder { padding-left: 10px; color: #8b8493; }
#sidebar .task-row.selected { padding-left: 9px; padding-right: 30px; }
#sidebar .task-row.selected .grip { flex: none; margin-right: 6px; }
#sidebar[data-active-tab]:not([data-active-tab="tasks"]) .task-row.selected { background: transparent; }
#sidebar[data-active-tab]:not([data-active-tab="tasks"]) .task-row.selected:hover { background: rgba(124, 58, 237, 0.05); }
#sidebar[data-active-tab]:not([data-active-tab="tasks"]) .task-row.selected::before { display: none; }
#sidebar .task-row span { white-space: nowrap; min-width: 0; }
#sidebar .collapse-row { margin: 8px 0 0; padding-left: 29px; font-size: var(--type-caption-size); color: #99919f; cursor: pointer;  line-height: var(--type-caption-line); }
#sidebar .sb-footer { height: 66px; padding: 12px 20px; gap: 10px; border-top: 1px solid #eeecf1; }
#sidebar .sb-footer .avatar { width: 28px; height: 28px; margin: 0; }
#sidebar .sb-user { gap: 4px; margin: 0; }
#sidebar .sb-user-name { font-size: var(--type-caption-size); white-space: nowrap;  line-height: var(--type-caption-line); }
.sb-user-caption { font-size: var(--type-caption-size); color: #97919f; white-space: nowrap;  line-height: var(--type-caption-line); }
.main .main-header { height: 62px; min-height: 62px; padding: 0 28px; align-items: center; border-bottom: 1px solid #eeedf2; background: #fff; gap: 10px; -webkit-app-region: none; }
.main { position: relative; }
.main.with-ai-side > .main-header { display: none; }
.main .hdr-icon { width: 16px; height: 16px; margin: 0; color: #8c8399; }
.main .hdr-title { font-size: var(--type-caption-size); color: #77707f; font-weight: 500;  line-height: var(--type-caption-line); }
.main .hdr-actions { margin: 0; align-self: center; align-items: center; gap: 10px; flex: none; }
.manager-header-btn { height: 32px; display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 6px; padding: 0 11px; border: 1px solid #e7e2ed; border-radius: 6px; font-size: var(--type-caption-size); color: #766b85; white-space: nowrap; cursor: pointer;  line-height: var(--type-caption-line); }
.manager-header-btn svg { width: 13px; height: 13px; stroke-width: 1.7; }
.manager-header-btn:hover { background: #f8f5fc; border-color: #cfc0e5; }
.manager-assistant-btn { border-color: #d7c8ee; color: #7950af; background: #faf7ff; }
.manager-workspace-tool { width: 28px; height: 28px; color: #8c8198; cursor: pointer; }
.manager-workspace-tool svg { width: 16px; height: 16px; }
.main .sb-reopen { display: none; position: absolute; left: 12px; top: 16px; width: 28px; height: 28px; z-index: 20; background: #fff; flex: none; cursor: pointer; }
.sidebar.collapsed ~ .main .sb-reopen { display: inline-flex; }
.sidebar.collapsed ~ .main .main-header { padding-left: 54px; }
.sidebar.collapsed ~ .main.with-ai-side .ai-side-head { padding-left: 54px; }
.main.manager-workspace .edge-marks,
.main.manager-workspace .welcome-hero { display: none !important; }
.main.with-ai-side .composer-wrap { display: none; }
.main.with-ai-side::after { display: none; }
.ss-page-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 9px 0 20px; }
.ss-page-header h1 { margin: 0; color: #27232d; font-size: var(--type-page-size);  font-weight: 600; letter-spacing: -.5px;  line-height: var(--type-page-line); }
.ss-page-header > span { flex: none; color: #96909d; font-size: var(--type-caption-size);  line-height: var(--type-caption-line); }
.ss-tabs { display: flex; gap: 26px; margin-bottom: 20px; border-bottom: 1px solid #eeecf1; }
.ss-tab { padding: 10px 0 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: #81778c; font-size: var(--type-body-size);  cursor: pointer; white-space: nowrap;  line-height: var(--type-body-line); }
.ss-tab:hover { color: #8050bc; }
.ss-tab.is-active { color: #8050bc; border-bottom-color: #8050bc; font-weight: 600; }
.ss-tab:focus-visible { outline: 2px solid #9d7bce; outline-offset: 3px; border-radius: 2px; }
.main.manager-workspace .transcript { padding-bottom: 0; }
.manager-header-btn:focus-visible, #sidebar .sb-tab:focus-visible, #sidebar .task-row:focus-visible, #sidebar .proj-row:focus-visible, #sidebar .collapse-row:focus-visible, .sb-reopen:focus-visible, .sb-toggle:focus-visible { outline: 2px solid #9d7bce; outline-offset: 2px; }
@media (max-width: 1020px) {
  :root { --sidebar-w: 196px; }
  #sidebar .sb-brand { padding: 0 19px; }
  #sidebar .sb-tabs { margin-left: 9px; margin-right: 9px; }
  #sidebar .sb-scroll { padding-left: 9px; padding-right: 9px; }
  .main .main-header { padding: 0 20px; }
}
@media (max-width: 680px) {
  :root { --sidebar-w: 68px; }
  #sidebar .sb-titlebar { padding: 0; height: 96px; flex-direction: column; justify-content: center; gap: 12px; }
  #sidebar .sb-brand-logo { width: 28px; flex: 0 0 28px; }
  #sidebar .sb-brand-wordmark { display: none; }
  .sb-workspace-label, .sb-brand-caption, #sidebar .sb-tab span, #sidebar .sb-scroll, #sidebar .sb-user { display: none; }
  #sidebar .sb-brand { padding: 0; justify-content: center; margin: 4px 0 23px; min-height: 30px; }
  #sidebar .sb-brand-text { font-size: 24px; }
  #sidebar .sb-tabs { margin: 0 10px; gap: 9px; }
  #sidebar .sb-tab { justify-content: center; padding: 0; }
  #sidebar .sb-footer { padding: 12px 0; justify-content: center; }
  .main .main-header { padding: 0 13px; gap: 6px; }
  .main .hdr-actions { gap: 6px; }
  .manager-header-btn { padding: 0 8px; font-size: var(--type-caption-size);  line-height: var(--type-caption-line); }
  .main .hdr-icon { display: none; }
  .manager-workspace-tool { width: 24px; }
}
