/* Omnis — web sources UI only (isolated) */

.source-assistant-body {
  position: relative;
  direction: rtl;
  text-align: right;
}

.source-assistant-body [data-ai-text].has-source-icons {
  padding-bottom: 1.75rem;
}

.source-icons {
  position: absolute;
  bottom: 0.125rem;
  right: 0.125rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  max-width: 100%;
  direction: ltr;
  pointer-events: auto;
  z-index: 2;
}

.source-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  padding: 0;
  border: 1px solid rgb(226 232 240);
  border-radius: 0.375rem;
  background: rgb(255 255 255);
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
  cursor: pointer;
  touch-action: manipulation;
}

.source-icon-btn img {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 0.125rem;
  object-fit: contain;
}

.source-icon-btn--more {
  font-size: 0.625rem;
  font-weight: 600;
  color: rgb(100 116 139);
  line-height: 1;
}

.source-item-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid rgb(226 232 240);
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  background: rgb(255 255 255);
}

.source-item-link:active {
  background: rgb(248 250 252);
}

.source-item-favicon {
  width: 1.375rem;
  height: 1.375rem;
  flex-shrink: 0;
  border-radius: 0.25rem;
  object-fit: contain;
}

.source-item-meta {
  min-width: 0;
  flex: 1;
  text-align: start;
}

.source-item-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(30 41 59);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-item-domain {
  display: block;
  font-size: 0.75rem;
  color: rgb(100 116 139);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#sheet-sources .source-sheet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.web-sources-inline {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgb(226 232 240);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: start;
  direction: rtl;
}

.web-sources-inline-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgb(51 65 85);
}

.web-sources-inline-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-size: 0.75rem;
  line-height: 1.35;
}

.web-sources-inline-item-title {
  font-weight: 600;
  color: rgb(30 41 59);
}

.web-sources-inline-item-domain {
  color: rgb(100 116 139);
}

.web-sources-inline-item-url {
  color: rgb(37 99 235);
  text-decoration: none;
  word-break: break-all;
  direction: ltr;
  text-align: left;
}

.web-sources-inline-item-url:hover {
  text-decoration: underline;
}
