:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface2: #f2f5fa;
  --ink: #101828;
  --muted: #667085;
  --border: #e4e7ec;
  --brand: #3157d5;
  --brand-hover: #2346b7;
  --shadow: 0 16px 48px rgba(16, 24, 40, .07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--brand); }
.shell { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
header, footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
header { padding: 24px 0; border-bottom: 1px solid var(--border); }
footer { border-top: 1px solid var(--border); padding: 22px 0 32px; color: var(--muted); font-size: 12px; }
.brand { color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 800; display: inline-flex; align-items: center; gap: 11px; }
.brand b { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; color: #fff; background: var(--brand); font-size: 15px; }
header>div { display: flex; align-items: center; gap: 16px; }
select, input, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid #cfd6e2; padding: 10px 12px; border-radius: 10px; max-width: 100%; }
select:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #a9c4ff; outline-offset: 2px; }
button { font: inherit; color: #fff; background: var(--brand); border: 1px solid var(--brand); border-radius: 10px; padding: 11px 17px; cursor: pointer; font-weight: 700; }
button:hover { background: var(--brand-hover); }
button[aria-pressed="false"] { background: #fff; color: var(--brand); }
button[aria-pressed="true"] { background: var(--brand); color: #fff; }
button:disabled { opacity: .55; cursor: not-allowed; }
.hero { padding: 76px 0 36px; text-align: center; }
.hero h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.09; letter-spacing: -.055em; margin: 17px auto 22px; max-width: 850px; }
.hero p { font-size: 18px; max-width: 760px; margin: 0 auto; }
.muted, .hero p { color: var(--muted); line-height: 1.65; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 18px 0 45px; }
.card { display: flex; flex-direction: column; gap: 15px; min-height: 240px; padding: 26px; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); transition: border-color .15s ease, transform .15s ease; }
.card:hover { border-color: #a7bbfb; transform: translateY(-2px); }
.card strong { font-size: 25px; letter-spacing: -.025em; }
.card>span { color: var(--muted); line-height: 1.55; }
.card em { color: var(--brand); font-size: 30px; font-style: normal; }
.card b { color: var(--brand); margin-top: auto; font-size: 14px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; max-width: 880px; margin: 18px 0; line-height: 1.65; box-shadow: 0 8px 28px rgba(16,24,40,.035); }
.narrow { padding: 48px 0 65px; min-height: 55vh; }
.narrow h1 { font-size: clamp(31px,4vw,43px); letter-spacing: -.045em; }
.back { color: var(--brand); display: inline-block; margin: 12px 0; font-weight: 650; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 18px 0; }
.field input:not([type="checkbox"]) { max-width: 340px; }
textarea { width: 100%; resize: vertical; min-height: 130px; }
.modes { display: flex; flex-wrap: wrap; gap: 12px; }
.providers { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.provider { background: var(--surface); padding: 16px; border-radius: 14px; border: 1px solid var(--border); }
.provider small { display: block; color: var(--muted); line-height: 1.55; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 13px 0; font-size: 14px; }
.check input { accent-color: var(--brand); }
.provider input[type="password"] { width: 100%; }
.index-results { margin-top: 18px; }
.index-entry { margin: 10px 0; overflow-wrap: anywhere; }
.index-entry p { line-height: 1.5; }
.index-entry small { display: block; margin-top: 7px; color: var(--muted); }
.final-answer { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.6; max-width: 100%; overflow-x: auto; }
.hidden { display: none!important; }
@media (max-width: 700px) {
 .shell { padding: 0 16px; }
 header { flex-wrap: wrap; }
 header>div { width: 100%; justify-content: space-between; }
 .cards, .providers { grid-template-columns: 1fr; }
 .card { min-height: 190px; }
 .hero { padding: 48px 0 26px; }
 footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }

/* Light: two first-party provider work panes, NOT vendor iframes. */
.assistant-duet { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.assistant-pane { border:1px solid var(--border); border-radius:14px; padding:18px; min-height:210px; background:var(--surface2); }
.assistant-pane h3 { margin:0 0 12px; font-size:18px; }
.assistant-pane .final-answer { margin:0; }
@media (max-width:700px) { .assistant-duet { grid-template-columns:1fr; } }
