/* IBM Bob landing – v1.3 stabil WordPress gépelés és chat-elrendezés */
.bob-dev-chat-scroll {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
  overscroll-behavior: contain !important;
  scroll-behavior: smooth;
}
.bob-dev-chat-scroll::-webkit-scrollbar { display: none !important; }

/* A még nem megjelenített üzenetek ne foglaljanak helyet a chatben. */
.bob-dev-message:not(.is-visible) {
  display: none !important;
}
.bob-dev-message.is-visible {
  display: block !important;
  opacity: 1 !important;
  transform: none !important;
  animation: inteq-bob-message-in .34s ease both;
}
@keyframes inteq-bob-message-in {
  from { opacity: 0; transform: translateY(7px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* A felhasználói buborék ne legyen indokolatlanul jobbra tolva. */
.bob-dev-message-user {
  margin-left: 12px !important;
  margin-right: 0 !important;
  overflow: visible !important;
}

/*
 * A teljes mondat már a gépelés előtt elfoglalja a végleges helyét.
 * A karakterek csak láthatóvá válnak, ezért nincs újratördelés, ugrálás
 * vagy a kész szöveg eltűnése.
 */
.bob-dev-message-user .bob-dev-type-target,
.bob-dev-type-target.bob-dev-type-stable {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 1.52em !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  text-overflow: clip !important;
  text-indent: 0 !important;
  text-align: left !important;
  direction: ltr !important;
  unicode-bidi: plaintext !important;
  font: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.bob-dev-type-target .bob-dev-word {
  display: inline !important;
  white-space: nowrap !important;
}
.bob-dev-type-target .bob-dev-space-group,
.bob-dev-type-target .bob-dev-space {
  white-space: pre-wrap !important;
}
.bob-dev-type-target .bob-dev-char {
  visibility: hidden;
  opacity: 1 !important;
  color: inherit !important;
}
.bob-dev-type-target .bob-dev-char.is-revealed {
  visibility: visible !important;
}
.bob-dev-type-target .bob-dev-char.is-cursor {
  position: relative;
}
.bob-dev-type-target .bob-dev-char.is-cursor::after {
  content: "";
  position: absolute;
  left: calc(100% + 2px);
  top: 0.12em;
  width: 2px;
  height: 1.05em;
  border-radius: 2px;
  background: #f2aa38;
  box-shadow: 0 0 7px rgba(242, 170, 56, .55);
  animation: inteq-bob-caret .65s steps(1) infinite;
}
@keyframes inteq-bob-caret { 50% { opacity: 0; } }

/* A régi pszeudo-kurzor ne jelenjen meg a stabil karakteres animáció mellett. */
.bob-dev-type-target.bob-dev-typing::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 520px) {
  .bob-dev-chat-scroll { padding: 12px !important; }
  .bob-dev-message-user { margin-left: 5px !important; }
  .bob-dev-message { padding: 10px 11px !important; }
}


/* v1.4 – Explorer: ikon | fájlnév | státusz külön oszlopban */
.bob-dev-file {
  display: grid !important;
  grid-template-columns: 9px minmax(0, 1fr) 14px !important;
  grid-template-rows: auto !important;
  align-items: center !important;
  column-gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 6px 8px !important;
  overflow: hidden !important;
}

.bob-dev-file::before {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: start !important;
  align-self: center !important;
  margin: 0 !important;
  flex: none !important;
}

.bob-dev-file .bob-dev-file-name {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  line-height: 1.35 !important;
}

.bob-dev-file.is-created::after {
  grid-column: 3 !important;
  grid-row: 1 !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  justify-self: end !important;
  align-self: center !important;
  width: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  line-height: 1 !important;
}
