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

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

.outlook-subnav__action-icon {
  width: 20px;
  height: 20px;
  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;
  /* Temporary Outlook layout override:
     keep the middle column as narrow as the right sidebar column for now.
     When we restore the original workspace proportions, change this back to:
     minmax(0, 1fr) minmax(0, 1fr) 200px
  */
  grid-template-columns: minmax(0, 1fr) 200px 250px;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  align-items: stretch;
}

.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: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  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;
  white-space: nowrap;
}

.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 {
  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);
}

.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-workspace__tabs-empty {
  color: #667085;
  font-size: 0.84rem;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .outlook-workspace__grid {
    grid-template-columns: 1fr;
    height: 100%;
  }

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