.query-chat{min-width:0}.query-chat .page-title h1{font:clamp(32px,4vw,48px)/1.1 Editorial,Georgia,serif;text-transform:none}.query-chat .page-title p.muted{max-width:580px;line-height:1.6}.chat-filters{padding:22px;margin-bottom:14px}.chat-primary,.chat-secondary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.chat-filters label,.chat-library-search{display:grid;gap:7px;font-size:12px;color:var(--garden)}.chat-filters input,.chat-filters select,.chat-library-search input{width:100%;max-width:100%;min-width:0;height:44px;padding:9px 10px;font:14px Equipo,Arial,sans-serif;border:1px solid #aeb8a6;border-radius:5px;color:var(--garden);background:#fffef9}.chat-advanced{margin-top:15px}.chat-advanced summary{padding:10px 0;cursor:pointer;font-size:13px}.chat-secondary{grid-template-columns:repeat(2,minmax(0,1fr));margin:10px 0}.chat-filter-actions{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin-top:12px}.chat-status{min-height:25px;font-size:13px;line-height:1.5;color:var(--garden);margin:15px 0}.chat-layout{display:grid;grid-template-columns:295px minmax(0,1fr);gap:26px;align-items:start}.chat-library{padding:10px 0}.chat-library h2{font:25px/1.1 Editorial,Georgia,serif;margin:5px 0 18px}.chat-library-search{margin-bottom:16px}.chat-category{border-top:1px solid #b7c0b0;padding:8px 0}.chat-category summary{padding:10px 0;font-size:13px;font-weight:700;cursor:pointer}.chat-question{display:block;width:100%;border:0;border-left:3px solid transparent;background:none;text-align:left;color:var(--garden);font:13px/1.5 Equipo,Arial,sans-serif;padding:10px 12px;min-height:44px}.chat-question:hover{background:#e2e8dd}.chat-question[aria-pressed=true]{border-color:var(--garden);background:#e2e8dd;font-weight:700}.chat-conversation{min-width:0}.chat-welcome{padding:40px 30px;border-top:5px solid var(--garden)}.chat-welcome h2{font:34px/1.15 Editorial,Georgia,serif;margin:10px 0 20px}.chat-welcome p{line-height:1.7;max-width:440px}.chat-result{padding:28px;border-top:5px solid var(--garden)}.chat-result>h2{font:29px/1.2 Editorial,Georgia,serif;margin:10px 0 16px;overflow-wrap:anywhere}.chat-scope{font-size:12px;line-height:1.7;background:#e8ece3;padding:12px;margin-bottom:20px;overflow-wrap:anywhere}.chat-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:24px}.chat-totals strong,.chat-totals span{display:block}.chat-totals strong{font:32px/1.1 Editorial,Georgia,serif}.chat-totals span{font-size:12px;margin-top:6px}.chat-notice{font-size:12px;line-height:1.6;margin:18px 0 24px;color:#4c5e4c}.chat-result h3{font-size:16px;margin-bottom:10px}.chat-source{display:grid;gap:6px;border:0;border-bottom:1px solid #cbd3c3;background:none;padding:16px 0;color:var(--garden);width:100%;text-align:left}.chat-source strong{font-size:14px}.chat-source span,.chat-source small{font-size:12px;line-height:1.5}.chat-source:hover strong{text-decoration:underline}.chat-result.is-stale{border-top-color:#986b34}.chat-result.is-stale #chat-result-title:after{content:' · Respuesta anterior';font:12px Equipo,Arial,sans-serif;color:#795126}.chat-source-facts{display:grid;grid-template-columns:minmax(110px,1fr) minmax(0,2fr);gap:12px;font-size:13px;line-height:1.5;margin:20px 0}.chat-source-facts dt{font-weight:700}.chat-source-facts dd{margin:0;overflow-wrap:anywhere}.chat-source-dialog{max-width:min(740px,calc(100vw - 24px))}.chat-sources{margin-bottom:18px}
.chat-presets{max-height:620px;overflow:auto;padding-right:5px;overscroll-behavior:contain}.chat-presets:focus-visible{outline:3px solid #986b34;outline-offset:3px}.chat-source-dialog{overscroll-behavior:contain}
.chat-filters input,.chat-filters select,.chat-library-search input{border-color:#747f6e;min-height:48px}.chat-filters :user-invalid{border-color:#a1392a}.chat-question{min-height:48px}
@media(max-width:1100px){.chat-layout{grid-template-columns:250px minmax(0,1fr);gap:18px}.chat-result{padding:20px}.chat-result>h2{font-size:25px}}
@media(max-width:760px){.chat-layout{display:flex;flex-direction:column}.chat-library,.chat-conversation{width:100%}.chat-presets{max-height:280px;overflow:auto;border-bottom:1px solid #b7c0b0;padding-bottom:10px}.chat-primary{grid-template-columns:repeat(2,minmax(0,1fr))}.chat-primary label:last-child{grid-column:1/-1}.chat-filters{padding:16px}.chat-secondary{grid-template-columns:1fr}.chat-filters input,.chat-filters select,.chat-library-search input{font-size:16px}.chat-result{padding:20px 16px}.chat-result>h2{font-size:25px}.chat-filter-actions{gap:8px}.chat-source-facts{grid-template-columns:1fr;gap:4px}.chat-source-facts dd{margin-bottom:12px}.chat-welcome{padding:26px 20px}.chat-status{font-size:12px}}
