/* Ректификация: диалог + версии времени с процентом вероятности */
.rect-page-extra {
  display: grid;
  gap: 16px;
}

.rect-chat.mvp-panel {
  border-radius: 20px;
  overflow: hidden;
}

.rect-chat-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 12px;
}

.rect-chat-sub {
  margin: 6px 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #4b5563;
}

.rect-chat-meta {
  flex: none;
  font-size: 0.85rem;
  color: #0e7490;
  font-weight: 700;
}

.rect-chat-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.rect-chat-log {
  max-height: 420px;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding: 8px 0 12px;
}

.rect-msg {
  display: flex;
}

.rect-msg--user {
  justify-content: flex-end;
}

.rect-msg-bubble {
  max-width: 92%;
  padding: 10px 14px;
  border-radius: 16px;
  line-height: 1.5;
  font-size: 0.95rem;
}

.rect-msg--bot .rect-msg-bubble {
  background: #ecfeff;
  border: 1px solid #a5f3fc;
}

.rect-msg--user .rect-msg-bubble {
  background: #0e7490;
  color: #fff;
}

.rect-cand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.rect-cand {
  display: grid;
  gap: 2px;
  min-width: 7.5rem;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #a5f3fc;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.rect-cand b {
  font-size: 1.05rem;
  color: #0f172a;
}

.rect-cand em {
  font-style: normal;
  font-weight: 800;
  color: #0e7490;
  font-variant-numeric: tabular-nums;
}

.rect-cand span {
  font-size: 0.8rem;
  color: #64748b;
}

.rect-cand:hover {
  border-color: #0e7490;
  box-shadow: 0 8px 18px rgba(14, 116, 144, 0.12);
}

.rect-chat-form {
  display: grid;
  gap: 10px;
}

.rect-chat-form textarea {
  width: 100%;
  min-height: 84px;
  border-radius: 14px;
  border: 1px solid #d1d5db;
  padding: 10px 12px;
  font: inherit;
}

.rect-status {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #0e7490;
}

.rect-status--err {
  color: #b91c1c;
}

.rect-methods {
  margin: 8px 0 12px;
  padding-left: 1.2em;
}

.rect-modal[hidden] {
  display: none !important;
}

.rect-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  z-index: 40;
  padding: 16px;
}

.rect-modal-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 10px;
}

.rect-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}
