/* Quotes AI only. Every selector starts at .pg-quotes. */

html[data-theme="dark"] body.at-neural.pg-quotes:not(#_) { background: var(--page-bg) !important; background-color: var(--page-bg) !important; }
html[data-theme="light"] body.at-neural.pg-quotes:not(#_) { background: var(--page-bg) !important; background-color: var(--page-bg) !important; color: var(--text-primary) !important; }

.pg-quotes #main { color: var(--text-primary); }
html[dir="rtl"] body.pg-quotes #main { direction: ltr; }
.pg-quotes .bs-lang-btn { min-height: 44px; height: 44px; }
.pg-quotes #main :is(p, li, dd):not(.nu-ribbon) { color: var(--text-secondary); }
.pg-quotes #main .nu-ribbon { color: #101827; background: #f2b75c; }
.pg-quotes #main :is(h1, h2, h3) { color: var(--text-primary); }
.pg-quotes .qt-wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.pg-quotes .qt-sec { padding: 26px 0; }
.pg-quotes .qt-sec h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.03em; }
.pg-quotes .qt-kicker { margin: 0 0 8px; color: var(--accent-violet); font: 700 12px/1.2 Inter, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; }
.pg-quotes .qt-lead { margin: 0 0 16px; max-width: 46ch; font-size: 18px; }
.pg-quotes .qt-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pg-quotes .qt-cta .nu-btn { flex: 0 0 auto; }
.pg-quotes a:focus-visible, .pg-quotes button:focus-visible, .pg-quotes [tabindex]:focus-visible {
  outline: 3px solid var(--focus-ring); outline-offset: 3px;
}

.pg-quotes .qt-tabs { display: none; gap: 8px; margin: 0 0 12px; }
.pg-quotes .qt-tabs button[aria-selected="true"] { background: var(--accent-violet); color: #f4f8ff; border-color: transparent; }

.pg-quotes .qt-split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 16px;
  align-items: stretch;
}
.pg-quotes .qt-chat, .pg-quotes .qt-sheet { position: relative; min-height: 360px; }
.pg-quotes .qt-chat {
  border-radius: 22px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(420px 220px at 0% 0%, rgba(135, 119, 248, 0.22), transparent 60%),
    var(--surface-1);
  padding: 48px 16px 16px;
  box-shadow: var(--shadow-soft);
}
.pg-quotes .qt-log { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pg-quotes .qt-log li {
  max-width: 34ch;
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px 16px 16px 4px;
  background: var(--surface-3);
  color: var(--text-primary);
  border-inline-start: 3px solid var(--accent-cyan);
}
.pg-quotes .qt-log li strong { display: block; color: var(--accent-cyan); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }

.pg-quotes .qt-sheet {
  border-radius: 6px 18px 18px 6px;
  background: #f7f4ec;
  color: #101827;
  padding: 46px 18px 16px;
  box-shadow: var(--shadow-elevated);
  border-inline-start: 10px solid #5b4ed4;
}
.pg-quotes #main .qt-sheet :is(p, td, th) { color: #101827; }
.pg-quotes #main .qt-sheet .qt-math { color: #243044; }
.pg-quotes #main .qt-sheet .nu-ribbon { color: #101827; background: #f2b75c; }
.pg-quotes #main .qt-kicker a { display: inline-flex; align-items: center; min-height: 44px; }
.pg-quotes .qt-dochead { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 10px; }
.pg-quotes .qt-dochead p { margin: 0; font: 800 13px/1.2 Inter, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; }
html[data-theme] body.pg-quotes .qt-lines { width: 100%; border-collapse: collapse; font-size: 14px; background: #f7f4ec !important; color: #101827 !important; }
html[data-theme] body.pg-quotes .qt-lines :is(th, td) {
  text-align: start; padding: 8px 6px;
  background: transparent !important;
  color: #101827 !important;
  -webkit-text-fill-color: #101827 !important;
  border-color: rgba(16, 24, 39, 0.16) !important;
}
.pg-quotes .qt-lines th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.pg-quotes .qt-total { margin: 12px 0 0; font-weight: 800; color: #101827; }
.pg-quotes .qt-math { margin: 4px 0 0; color: #3e4e66; font-size: 14px; }
.pg-quotes .qt-empty { margin: 28px 0; color: #3e4e66; }

.pg-quotes .qt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pg-quotes .qt-grid article, .pg-quotes .qt-states li, .pg-quotes .qt-reality article {
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface-1);
  padding: 14px;
}
.pg-quotes .qt-states { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pg-quotes .qt-reality { display: grid; gap: 12px; }
.pg-quotes .qt-reality ul { margin: 8px 0 0; padding-inline-start: 18px; }
.pg-quotes .qt-pdf {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px dashed var(--accent-violet);
  border-radius: 16px;
  padding: 14px;
  background: var(--surface-1);
}
.pg-quotes .qt-page {
  height: 108px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(#f7f4ec, #f7f4ec 10px, #e4dcc8 11px);
  border: 1px solid #c9bfa8;
  box-shadow: var(--shadow-soft);
}
.pg-quotes .qt-send[disabled] { opacity: 0.55; cursor: not-allowed; }

@media (max-width: 800px) {
  .pg-quotes .qt-tabs { display: flex; }
  .pg-quotes .qt-split { display: block; }
  .pg-quotes .qt-split[data-tab="chat"] .qt-sheet { display: none; }
  .pg-quotes .qt-split[data-tab="quote"] .qt-chat { display: none; }
  .pg-quotes .qt-grid { grid-template-columns: 1fr; }
  .pg-quotes .qt-chat, .pg-quotes .qt-sheet { min-height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-quotes .qt-log li, .pg-quotes .qt-lines tr { animation: none !important; transition: none !important; }
}
