.oab-chat {
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  max-width: 480px;
  background: #ffffff;
  overflow: hidden;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

.oab-chat__header {
  background: #111827;
  color: #ffffff;
  padding: 12px 14px;
  font-weight: 600;
}

.oab-chat__messages {
  height: 320px;
  overflow-y: auto;
  padding: 12px;
  background: #f8fafc;
}

.oab-chat__message {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  max-width: 90%;
  white-space: pre-wrap;
}

.oab-chat__message--user {
  background: #e0f2fe;
  margin-left: auto;
  text-align: right;
}

.oab-chat__message--assistant {
  background: #e5e7eb;
  margin-right: auto;
}

.oab-chat__form {
  display: flex;
  gap: 10px;
  border-top: 1px solid #e5e7eb;
  padding: 10px;
}

.oab-chat__form input[type="text"] {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
}

.oab-chat__form button {
  border: 0;
  background: #2563eb;
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
}

.oab-chat__form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.oab-chat__brief-panel {
  border-top: 1px solid #e5e7eb;
  padding: 12px;
  display: grid;
  gap: 10px;
  background: #fff;
}

.oab-chat__brief-title {
  font-weight: 700;
  color: #111827;
}

.oab-chat__brief-panel label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: #374151;
}

.oab-chat__brief-panel input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
}

.oab-chat__brief-actions {
  margin-top: 4px;
}

.oab-article {
  max-width: 840px;
  margin: 0 auto;
  line-height: 1.7;
  color: #111827;
  overflow-x: hidden;
}

.oab-article__header {
  margin-bottom: 1.5rem;
}

.oab-article__eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: #6b7280;
}

.oab-article__lead {
  font-size: 1.14rem;
  line-height: 1.8;
  color: #1f2937;
}

.oab-article__summary {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
}

.oab-article__summary h2,
.oab-article h2 {
  line-height: 1.25;
}

.oab-article__summary ul,
.oab-article ul {
  padding-left: 1.1rem;
}

.oab-article figure,
.oab-article__figure {
  margin: 1.5rem 0;
  overflow: hidden;
}

.oab-article figure img,
.oab-article__figure img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  border-radius: 16px;
}

.oab-article figcaption,
.oab-article__figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: #6b7280;
}

.oab-split-block {
  width: 100%;
  overflow: hidden;
}

.oab-split-block figure,
.oab-split-block .oab-article__figure {
  margin: 0;
}

.oab-split-block > div {
  min-width: 0;
}

.oab-split-block img {
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 4 / 3;
  object-fit: cover !important;
}

.oab-article .oab-split-block img,
.oab-article .oab-article__figure img {
  box-sizing: border-box;
}

.oab-article__toc {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #f8fafc;
}

.oab-article__toc-label {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.oab-article__toc ul {
  margin: 0;
  padding-left: 1.15rem;
}

.oab-article__toc li + li {
  margin-top: 0.4rem;
}

.oab-article__toc a {
  color: #0f172a;
  text-decoration: none;
}

.oab-article__toc a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .oab-split-block {
    gap: 1rem !important;
  }

  .oab-split-block > div {
    min-width: 100% !important;
  }

  .oab-article__lead {
    font-size: 1.05rem;
  }
}
