.outlook-subnav__actions {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  flex: 0 0 auto;
  margin-left: 10px;
  padding-right: 0;
}

.outlook-subnav__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.outlook-subnav__action-icon {
  width: 22px;
  height: 22px;
  color: currentColor;
}

.outlook-subnav__tabs-host {
  min-width: 0;
  flex: 1 1 auto;
}

.outlook-workspace {
  --outlook-border: rgba(0, 89, 255, 0.16);
  --outlook-border-strong: rgba(0, 89, 255, 0.24);
  --outlook-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.outlook-workspace-container {
  gap: 14px;
  min-height: calc(100vh - var(--header-height) - var(--subnav-height));
  height: calc(100vh - var(--header-height) - var(--subnav-height));
  overflow: hidden;
}

.outlook-workspace__toolbar {
  min-height: 36px;
  padding-bottom: 0;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  background: #ffffff;
  align-items: flex-end;
  gap: 12px;
}

.outlook-workspace__body {
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding-right: 2px;
}

.outlook-workspace__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  align-items: stretch;
}

#outlookWorkspaceSecondaryColumn {
  display: none;
}

.outlook-workspace__column {
  min-width: 0;
  display: flex;
  min-height: 0;
}

.outlook-workspace__column-surface {
  flex: 1 1 auto;
  min-height: 0;
  border: 1px solid var(--outlook-border);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.outlook-workspace__column--narrow .outlook-workspace__column-surface {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.24);
}

.outlook-workspace__sidebar-switcher-row {
  display: flex;
  align-items: center;
  min-height: 0;
  padding: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), #ffffff);
}

.outlook-workspace__sidebar-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  padding: 2px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: #f8fafc;
  gap: 2px;
}

.outlook-workspace__sidebar-switcher-button {
  appearance: none;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #526581;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  padding: 7px 10px;
  text-align: center;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.outlook-workspace__sidebar-switcher-button:hover {
  background: rgba(0, 89, 255, 0.05);
  color: #0f4c81;
}

.outlook-workspace__sidebar-switcher-button:focus-visible {
  outline: 2px solid rgba(0, 89, 255, 0.22);
  outline-offset: 1px;
}

.outlook-workspace__sidebar-switcher-button.is-active {
  background: #ffffff;
  color: #0059ff;
  box-shadow: inset 0 0 0 1px rgba(0, 89, 255, 0.14);
}

.outlook-workspace__sidebar-panels {
  position: relative;
  min-height: 0;
  background: #ffffff;
  overflow-y: auto;
  overflow-x: hidden;
}

.outlook-workspace__sidebar-panel {
  position: absolute;
  inset: 0;
  min-height: 0;
  overflow: visible;
  background: #ffffff;
}

.outlook-workspace__sidebar-panel[hidden] {
  display: none;
}

.outlook-workspace__sidebar-panel--widgets {
  background: #ffffff;
}

.outlook-workspace__sidebar-panel--object-tree {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.88), #ffffff 88px);
}

.outlook-object-tree {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: transparent;
}

.outlook-object-tree--empty {
  justify-content: center;
}

.outlook-object-tree__summary {
  display: grid;
  gap: 3px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.9);
}

.outlook-object-tree__summary-title {
  color: #152238;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.outlook-object-tree__summary-meta {
  color: #667085;
  font-size: 11px;
  line-height: 1.4;
  white-space: normal;
}

.outlook-object-tree__load-status,
.outlook-object-detail__loading {
  margin: 8px 12px 0;
  color: #667085;
  font-size: 11px;
  line-height: 1.45;
}

.outlook-object-tree__groups {
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
  padding: 8px 0 10px 8px;
}

.outlook-object-tree__group + .outlook-object-tree__group {
  margin-top: 8px;
}

.outlook-object-tree__group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 6px 7px;
}

.outlook-object-tree__group-title {
  color: #475467;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.outlook-object-tree__group-count {
  color: #667085;
  font-size: 11px;
  font-weight: 600;
}

.outlook-object-tree__items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.outlook-object-tree__item {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.outlook-object-tree__item:hover {
  border-color: rgba(0, 89, 255, 0.28);
  background: rgba(0, 89, 255, 0.025);
}

.outlook-object-tree__item:focus-visible {
  outline: 2px solid rgba(0, 89, 255, 0.32);
  outline-offset: 1px;
}

.outlook-object-tree__item.is-selected {
  border-color: rgba(0, 89, 255, 0.38);
  box-shadow: 0 0 0 2px rgba(0, 89, 255, 0.08);
}

.outlook-object-tree__item-icon {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #f8fafc;
  --tb-object-icon-stroke: #0059ff;
  --tb-object-icon-fill: rgba(0, 89, 255, 0.16);
  --tb-object-icon-line-style: solid;
  --tb-object-icon-line-width: 2px;
}

.outlook-object-tree__item-icon::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}

.outlook-object-tree__item-icon--zone::before {
  width: 12px;
  height: 8px;
  border-radius: 3px;
  background: var(--tb-object-icon-fill);
  border: 1px var(--tb-object-icon-line-style) var(--tb-object-icon-stroke);
}

.outlook-object-tree__item-icon--level::before {
  width: 12px;
  height: 0;
  border-top: var(--tb-object-icon-line-width) var(--tb-object-icon-line-style) var(--tb-object-icon-stroke);
}

.outlook-object-tree__item-icon--label::before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tb-object-icon-fill);
  border: 1px solid var(--tb-object-icon-stroke);
}

.outlook-object-tree__item-icon--marker::before {
  width: 2px;
  height: 12px;
  background: var(--tb-object-icon-stroke);
  border-radius: 999px;
}

.outlook-object-tree__item-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.outlook-object-tree__item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.outlook-object-tree__item-title {
  min-width: 0;
  color: #101828;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outlook-object-tree__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 3px 6px;
  border: 1px solid rgba(0, 89, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 89, 255, 0.06);
  color: #0059ff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.outlook-object-tree__item-meta {
  color: #667085;
  font-size: 11px;
  line-height: 1.45;
}

.outlook-object-tree__empty {
  margin: auto 18px;
  padding: 18px 14px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.82);
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.outlook-object-tree__load-more {
  appearance: none;
  align-self: center;
  margin: 2px 12px 14px;
  padding: 7px 12px;
  border: 1px solid rgba(0, 89, 255, 0.24);
  border-radius: 999px;
  background: #ffffff;
  color: #0059ff;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.outlook-object-tree__load-more:hover {
  background: rgba(0, 89, 255, 0.04);
}

.outlook-object-tree__load-more:focus-visible {
  outline: 2px solid rgba(0, 89, 255, 0.32);
  outline-offset: 2px;
}

.outlook-object-tree__load-more:disabled {
  cursor: wait;
  opacity: 0.6;
}

.outlook-object-detail {
  margin: 8px;
  padding: 12px;
  border: 1px solid rgba(0, 89, 255, 0.2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0, 89, 255, 0.045), #ffffff 72px);
}

.outlook-object-detail__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.outlook-object-detail__title {
  margin: 0;
  color: #101828;
  font-size: 13px;
  line-height: 1.4;
}

.outlook-object-detail__close {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 999px;
  background: #ffffff;
  color: #475467;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.outlook-object-detail__close:focus-visible,
.outlook-object-detail__evidence summary:focus-visible {
  outline: 2px solid rgba(0, 89, 255, 0.32);
  outline-offset: 1px;
}

.outlook-object-detail__facts {
  display: grid;
  grid-template-columns: minmax(92px, 0.7fr) minmax(0, 1.3fr);
  gap: 5px 8px;
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
}

.outlook-object-detail__facts dt {
  color: #667085;
  font-weight: 600;
}

.outlook-object-detail__facts dd {
  min-width: 0;
  margin: 0;
  color: #1d2939;
  overflow-wrap: anywhere;
}

.outlook-object-detail__definition {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #344054;
  font-size: 11px;
  line-height: 1.55;
}

.outlook-object-detail__loading {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.outlook-object-detail__section,
.outlook-object-detail__evidence {
  margin-top: 12px;
}

.outlook-object-detail__section-title {
  margin-bottom: 6px;
  color: #475467;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.outlook-object-detail__codes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.outlook-object-detail__codes span {
  padding: 3px 6px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  font-size: 10px;
  line-height: 1.25;
}

.outlook-object-detail__timeline,
.outlook-object-detail__relations {
  margin: 0;
  padding-left: 18px;
  color: #344054;
  font-size: 10px;
  line-height: 1.55;
}

.outlook-object-detail__evidence summary {
  color: #475467;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.outlook-object-detail__evidence code {
  display: block;
  max-height: 120px;
  margin-top: 7px;
  padding: 8px;
  overflow: auto;
  border-radius: 8px;
  background: #f8fafc;
  color: #475467;
  font-size: 9px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.outlook-workspace__tabs-empty {
  color: #667085;
  font-size: 0.84rem;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  /* Stacked panels must scroll, not split the remaining viewport into rows
     shorter than the chart's internal canvas (which clips its bottom toolbar). */
  .outlook-workspace-container {
    overflow-y: auto;
  }

  .outlook-workspace__body {
    flex: 0 0 auto;
    overflow: visible;
  }

  .outlook-workspace__grid {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(420px, 60vh) minmax(320px, 50vh);
    height: auto;
  }

  .outlook-workspace__column-surface {
    min-height: 240px;
  }
}

@media (max-width: 1480px) and (min-width: 1181px) {
  .outlook-workspace__grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}

@media (max-width: 640px) {
  .outlook-object-detail__facts {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .outlook-object-detail__facts dd + dt {
    margin-top: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .outlook-workspace__sidebar-switcher-button,
  .outlook-object-tree__item {
    transition: none;
  }
}
