.observation-header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.workspace-layout-feedback {
  display: inline-flex;
  max-width: 15rem;
  align-items: center;
  gap: 0.45rem;
  color: var(--nodedc-text-muted);
  font-size: var(--nodedc-font-size-xs);
  line-height: 1.2;
}

.workspace-layout-feedback[data-error="true"] {
  color: rgb(var(--nodedc-danger-rgb));
}

.observation-session-select__trigger {
  display: inline-flex;
  min-width: 15rem;
  height: 2.75rem;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.055);
  color: var(--nodedc-text-secondary);
  padding: 0 0.85rem;
  font: inherit;
  font-size: var(--nodedc-font-size-sm);
  font-weight: var(--nodedc-font-weight-strong);
  cursor: pointer;
}

.observation-session-select__trigger:hover,
.observation-session-select__trigger[data-active="true"] {
  background: rgb(255 255 255 / 0.095);
  color: var(--nodedc-text-primary);
}

.observation-session-select__trigger > span {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.observation-session-select__trigger > small {
  display: grid;
  min-width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  color: var(--nodedc-text-muted);
  font-size: var(--nodedc-font-size-xs);
}

.observation-session-menu {
  overflow: hidden;
  font-family: var(--nodedc-font-family);
}

.observation-session-menu__content,
.observation-session-menu__list {
  display: grid;
}

.observation-session-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.9rem 0.6rem;
}

.observation-session-menu__head span,
.observation-session-menu__head strong {
  display: block;
}

.observation-session-menu__head strong {
  margin-top: 0.3rem;
  color: var(--nodedc-text-primary);
  font-size: var(--nodedc-font-size-md);
}

.observation-session-menu__head button {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.055);
  color: var(--nodedc-text-secondary);
  cursor: pointer;
}

.observation-session-menu__head button:hover {
  background: rgb(255 255 255 / 0.1);
  color: var(--nodedc-text-primary);
}

.observation-session-menu__list {
  max-height: min(26rem, 60vh);
  gap: 0.2rem;
  overflow: auto;
  padding: 0.35rem;
}

.observation-session-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.35rem;
  align-items: stretch;
  gap: 0.2rem;
}

.observation-session-option__open {
  width: 100%;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.observation-session-option__delete {
  display: grid;
  min-width: 2.35rem;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--nodedc-text-muted);
  cursor: pointer;
}

.observation-session-option__delete:hover:not(:disabled),
.observation-session-option__delete:focus-visible {
  background: transparent;
  color: rgb(var(--nodedc-danger-rgb));
  outline: none;
}

.observation-session-option__delete:disabled,
.observation-session-option[data-deleting="true"] {
  opacity: 0.55;
  cursor: default;
}

.observation-session-option i {
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--nodedc-text-muted);
}

.observation-session-option i[data-session-visual-state="ready"],
.observation-session-option i[data-session-visual-state="processing"] {
  background: rgb(var(--nodedc-success-rgb));
}

.observation-session-option i[data-session-visual-state="processing"] {
  animation: observation-session-processing 1.1s ease-in-out infinite;
}

.observation-session-option i[data-session-visual-state="cold"],
.observation-session-option i[data-session-visual-state="error"] {
  background: var(--nodedc-text-muted);
}

.observation-session-option i[data-session-visual-state="error"] {
  opacity: 0.48;
}

@keyframes observation-session-processing {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .observation-session-option i[data-session-visual-state="processing"] {
    animation: none;
    opacity: 0.72;
  }
}

.observation-session-option__state {
  max-width: 9.5rem;
  overflow: hidden;
  color: var(--nodedc-text-muted);
  font-size: var(--nodedc-font-size-xs);
  font-weight: var(--nodedc-font-weight-medium);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.observation-session-option__lab {
  align-items: center;
  background: color-mix(in srgb, var(--accent, #b8ff5a) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #b8ff5a) 42%, transparent);
  border-radius: 999px;
  color: var(--accent, #b8ff5a);
  display: inline-flex;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-right: 7px;
  padding: 4px 6px 3px;
  vertical-align: 1px;
}

.observation-session-menu__empty {
  display: grid;
  min-height: 9rem;
  place-items: center;
  align-content: center;
  gap: 0.5rem;
  padding: 1rem;
  color: var(--nodedc-text-muted);
  text-align: center;
}

.observation-session-menu__empty strong {
  color: var(--nodedc-text-secondary);
  font-size: var(--nodedc-font-size-sm);
}

.observation-session-menu__empty span {
  max-width: 24rem;
  font-size: var(--nodedc-font-size-xs);
  line-height: 1.45;
}

.observation-session-menu__error {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem 0.8rem;
  color: rgb(var(--nodedc-danger-rgb));
  font-size: var(--nodedc-font-size-xs);
  line-height: 1.4;
}

.observation-session-menu__error > span {
  min-width: 0;
  flex: 1 1 auto;
}

.observation-session-menu__error button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  color: var(--nodedc-text-primary);
  padding: 0.4rem 0.65rem;
  font: inherit;
  font-weight: var(--nodedc-font-weight-strong);
  cursor: pointer;
}

.observation-session-delete-error {
  color: rgb(var(--nodedc-danger-rgb));
}

@media (max-width: 860px) {
  .workspace-layout-feedback {
    display: none;
  }

  .observation-session-select__trigger {
    min-width: 2.75rem;
    width: 2.75rem;
    padding: 0;
    justify-content: center;
  }

  .observation-session-select__trigger > span,
  .observation-session-select__trigger > small,
  .observation-session-select__trigger > svg:last-child {
    display: none;
  }
}
