:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #243144;
  background: #fff;
  font-synthesis: none;
  --ink: #243144;
  --muted: #627084;
  --line: #dfe5ec;
  --blue: #245bd6;
  --wash: #f6f8fb;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid #95b4f4; outline-offset: 4px; }
[hidden] { display: none !important; }

.site-header, .search-page, .site-footer { width: min(calc(100% - 96px), 1440px); margin-inline: auto; }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 650; letter-spacing: -0.6px; }
.site-header h1 { margin: 0; font-size: inherit; }
.search-controls { max-width: 1060px; }
.search-page { padding-top: 32px; padding-bottom: 32px; }
.search-form { display: flex; align-items: center; padding: 5px; border: 1px solid #b6c2d2; border-radius: 8px; min-height: 58px; background: #fff; }
.search-form:focus-within { border-color: var(--blue); outline: 3px solid #e4ecfc; }
.search-form input { width: 100%; min-width: 0; color: var(--ink); background: transparent; padding: 12px 14px; border: 0; outline: 0; font-size: 15px; line-height: 24px; }
.search-form input::placeholder { color: #778396; opacity: 1; }
.compare-button { flex-shrink: 0; min-height: 46px; border: 0; border-radius: 5px; padding: 0 24px; color: #fff; background: var(--blue); font-size: 14px; font-weight: 600; }
.compare-button:hover { background: #194bb9; }
.examples { display: grid; gap: 9px; margin-top: 19px; }
.example-group { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.example-label { width: 88px; font-size: 12px; color: var(--muted); }
.example-button { min-height: 31px; padding: 5px 10px; color: #4b5c73; border: 1px solid #e6eaf0; background: var(--wash); border-radius: 5px; font-size: 12px; line-height: 19px; text-align: left; }
.example-button:hover { border-color: #b9c9e9; color: #245bd6; background: #f0f5fe; }
.comparison-section { margin-top: 40px; }
.comparison-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 20px; margin-bottom: 15px; }
.status { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.clear-button { flex-shrink: 0; padding: 7px 0 7px 10px; border: 0; background: transparent; color: var(--blue); font-size: 12px; }
.clear-button:hover { text-decoration: underline; }
.comparison-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; align-items: stretch; }
.provider-panel { min-width: 0; }
.provider-panel + .provider-panel { border-left: 1px solid var(--line); }
.provider-header { background: var(--wash); padding: 22px 23px 18px; border-bottom: 1px solid var(--line); min-height: 103px; }
.provider-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.provider-title-row h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.35px; margin: 0; }
.provider-status { flex-shrink: 0; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.provider-panel[data-state="loading"] .provider-status { color: var(--blue); }
.provider-panel[data-state="error"] .provider-status { color: #a14436; }
.provider-model { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 9px 0 0; overflow-wrap: anywhere; }
.model-select { display: block; width: auto; max-width: 100%; min-height: 25px; margin-top: 9px; padding: 3px 5px; border: 1px solid #c5d1e3; border-radius: 4px; background: #fff; color: #4b5c73; font-size: 11px; line-height: 1.5; cursor: pointer; }
.model-select:disabled { color: var(--muted); background: transparent; cursor: default; }
.response-model { margin-top: 6px; }
.provider-content { min-height: 244px; padding: 23px; }
.provider-content:empty { display: none; }
.empty-state { padding-top: 10px; max-width: 280px; font-size: 13px; line-height: 1.75; color: var(--muted); }
.empty-state p { margin: 0; font-size: 13px; line-height: 1.75; color: var(--muted); }
.empty-state .empty-title { font-size: 14px; line-height: 1.5; font-weight: 500; color: #4b5c73; margin-bottom: 8px; }
.loading-state { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; line-height: 1.65; margin-top: 10px; }
.loading-state::before { content: ""; flex-shrink: 0; width: 13px; height: 13px; border: 2px solid #dfe8fa; border-top-color: var(--blue); border-radius: 50%; animation: spin 1s linear infinite; }
.result-list { list-style: none; padding: 0; margin: 0; }
.result-list > li + li { border-top: 1px solid #edf0f4; margin-top: 22px; padding-top: 20px; }
.result-metadata { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.source-badge, .perspective-badge { display: inline-block; border-radius: 4px; padding: 3px 6px; font-size: 10px; line-height: 1.4; }
.source-badge { background: #eaf0fd; color: #2855a6; font-weight: 600; }
.source-badge-reddit { background: #fff0e8; color: #a23a13; }
.source-badge-x { background: #edf0f4; color: #354254; }
.perspective-badge { color: #58667a; background: var(--wash); border: 1px solid #e6eaf0; }
.result-source { margin: 0 0 6px; color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.result h3 { font-size: 15px; font-weight: 550; line-height: 1.45; margin: 0 0 8px; overflow-wrap: anywhere; }
.result a, .answer a, .source-list a { color: #2359c1; text-decoration: none; }
.result a:hover, .answer a:hover, .source-list a:hover { text-decoration: underline; }
.result-snippet { margin: 0; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.result-reason { margin: 9px 0 0; font-size: 12px; line-height: 1.65; color: #53647b; overflow-wrap: anywhere; }
.result-reason strong { font-weight: 600; }
.answer { font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.answer > :first-child { margin-top: 0; }
.answer > :last-child { margin-bottom: 0; }
.answer p { white-space: pre-wrap; margin: 0 0 15px; }
.answer h3 { margin: 20px 0 9px; font-size: 14px; line-height: 1.6; font-weight: 650; }
.answer ul, .answer ol { margin: 0 0 15px; padding-left: 20px; }
.answer li + li { margin-top: 6px; }
.answer code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--wash); padding: 1px 3px; border-radius: 3px; font-size: 12px; }
.answer pre { white-space: pre-wrap; font-size: 12px; line-height: 1.6; background: var(--wash); padding: 12px; border-radius: 4px; overflow-wrap: anywhere; }
.sources { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 17px; }
.sources h3 { font-size: 12px; font-weight: 600; margin: 0 0 10px; }
.source-list { margin: 0; padding-left: 20px; }
.source-list li::marker { color: var(--muted); font-size: 11px; }
.answer .citation { font-size: 11px; white-space: nowrap; }
.source-list li + li { margin-top: 10px; }
.source-list a { display: block; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.source-list span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.source-count { margin: 0 0 20px; color: var(--muted); font-size: 11px; }
.search-summary { margin-bottom: 20px; }
.search-summary .source-count { margin-bottom: 5px; }
.search-intent { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.response-warning { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: #816024; font-size: 12px; line-height: 1.7; }
.error-state { margin-top: 9px; }
.error-state p { margin: 0 0 15px; color: var(--muted); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.retry-button { border: 1px solid #c5d1e3; border-radius: 5px; background: #fff; color: var(--blue); padding: 8px 12px; font-size: 12px; }
.retry-button:hover { background: var(--wash); }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; border-top: 1px solid var(--line); padding: 23px 0 26px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.footer-credit { flex-basis: 100%; }
.noscript-note { color: var(--muted); font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  .comparison-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-panel:nth-child(odd) { border-left: 0; }
  .provider-panel:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .site-header, .search-page, .site-footer { width: calc(100% - 56px); }
  .provider-header { padding: 20px 18px 17px; }
  .provider-content { padding: 20px 18px; }
  .provider-title-row h2 { font-size: 16px; }
  .provider-status { font-size: 10px; }
}
@media (max-width: 760px) {
  .site-header, .search-page, .site-footer { width: calc(100% - 40px); }
  .site-header { min-height: 73px; }
  .wordmark { font-size: 18px; }
  .search-page { padding-top: 24px; }
  .search-form input { font-size: 16px; padding: 10px; }
  .compare-button { padding: 0 16px; font-size: 13px; }
  .examples { gap: 13px; margin-top: 18px; }
  .example-label { width: 100%; font-size: 11px; }
  .example-button { font-size: 11px; }
  .comparison-section { margin-top: 29px; }
  .comparison-grid { grid-template-columns: 1fr; }
  .provider-panel + .provider-panel { border-left: 0; border-top: 1px solid var(--line); }
  .provider-header { min-height: auto; padding: 20px; }
  .provider-title-row h2 { font-size: 18px; }
  .provider-status { font-size: 11px; }
  .provider-content { min-height: 160px; padding: 21px; }
  .empty-state { max-width: 100%; padding: 0; }
  .status { margin-top: 6px; font-size: 11px; }
  .site-footer { align-items: flex-start; font-size: 10px; }
}
@media (max-width: 430px) {
  .example-group { gap: 6px; }
  .example-button { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .loading-state::before { animation: none; } }
