.ibs-environment-ribbon {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 2147483647;
  padding: 6px 10px;
  border-radius: 999px;
  font: 700 11px/1.2 system-ui, sans-serif;
  letter-spacing: .06em;
  color: #fff;
  background: #0f766e;
  box-shadow: 0 4px 18px rgba(15, 23, 42, .2);
  pointer-events: none;
}

.ibs-environment-ribbon.test {
  background: #9a3412;
}

.ibs23-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.ibs23-tabs button {
  border: 1px solid #d7dde7;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font: 700 12px/1.2 system-ui, sans-serif;
  padding: 8px 13px;
  white-space: nowrap;
}

.ibs23-tabs button.active {
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
}

.ibs23-tab-panel {
  display: none;
}

.ibs23-tab-panel.active {
  display: block;
}

.ibs23-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ibs23-heading h3,
.ibs23-document-panel h4 {
  margin: 0;
}

.ibs23-bulkbar {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(180px, 1fr) minmax(240px, 1.4fr) auto;
  gap: 8px;
  margin: 12px 0;
}

.ibs23-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #0f766e;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  text-align: left;
}

.ibs23-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.nl-btn.ibs23-danger {
  border-color: #dc2626;
  color: #b91c1c;
  background: #fff;
}

.ibs23-document-panel {
  margin-top: 8px;
  border: 1px solid #99f6e4;
  border-radius: 12px;
  background: #f0fdfa;
  padding: 14px;
}

.ibs23-document-panel > .nl-note {
  margin: 8px 0 12px;
}

.ibs23-ai-answer > p {
  color: #0f172a;
  font-size: 15px;
  line-height: 1.65;
}

.ibs23-ai-answer h4 {
  margin: 16px 0 8px;
}

.ibs23-ai-answer ul {
  margin: 6px 0 12px 20px;
  padding: 0;
}

.ibs23-ai-answer li {
  margin: 6px 0;
}

.ibs23-comms-linkage {
  display: grid;
  gap: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  padding: 12px;
}

.ibs23-mfa-enrolment {
  margin-top: 14px;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  background: #f0f9ff;
  padding: 14px;
}

.ibs23-mfa-setup {
  display: grid;
  grid-template-columns: minmax(150px, 190px) 1fr;
  align-items: center;
  gap: 16px;
  margin: 12px 0;
}

.ibs23-mfa-setup img {
  width: 100%;
  aspect-ratio: 1;
  border: 8px solid #fff;
  border-radius: 10px;
}

.ibs23-mfa-setup code {
  display: block;
  overflow-wrap: anywhere;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  user-select: all;
}

@media (max-width: 900px) {
  .ibs23-bulkbar {
    grid-template-columns: 1fr;
  }

  .ibs23-heading {
    align-items: flex-start;
  }

  .ibs23-mfa-setup {
    grid-template-columns: 1fr;
  }

  .ibs23-mfa-setup img {
    max-width: 190px;
  }
}
