.ask-reggie-nav[hidden], .ask-reggie-nav.hidden { display: none !important; }
#tabQueries.active { display: flex; min-height: 0; }
.reports-queries { display:flex; flex:1; min-height:0; overflow:hidden; color:var(--text-primary); }
.rq-sidebar { width:250px; flex:0 0 250px; padding:14px 12px; background:var(--bg-secondary); border-right:1px solid var(--border-color); display:flex; flex-direction:column; gap:14px; overflow:auto; }
.rq-new-chat-btn { display:flex; align-items:center; justify-content:center; gap:8px; padding:10px; color:#fff; background:var(--accent); border:0; border-radius:7px; font-family:inherit; font-size:13px; font-weight:600; cursor:pointer; }
.rq-session-list { display:flex; flex-direction:column; gap:4px; }
.rq-list-empty { margin:0; font-size:11px; line-height:1.5; color:var(--text-muted); white-space:nowrap; }
.rq-session-item { display:flex; align-items:center; gap:7px; min-width:0; border-radius:6px; padding:8px 7px; color:var(--text-secondary); font-size:12px; cursor:pointer; }
.rq-session-item:hover,.rq-session-item.active { background:var(--bg-tertiary); color:var(--text-primary); }
.rq-session-title { min-width:0; flex:1; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.rq-session-item button { border:0; background:transparent; color:var(--text-muted); cursor:pointer; padding:3px; opacity:.5; }
.rq-session-item:hover button,.rq-session-item:focus-within button { opacity:1; }
.rq-session-item.is-renaming { cursor:default; }
.rq-rename-editor { width:100%; min-width:0; }
.rq-rename-input { box-sizing:border-box; width:100%; min-width:0; padding:7px 8px; border:1px solid var(--accent); border-radius:5px; background:var(--bg-primary); color:var(--text-primary); font:inherit; }
.rq-rename-input:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.rq-rename-actions { display:flex; gap:8px; margin-top:6px; }
.rq-rename-actions button { opacity:1; padding:4px 8px; border:1px solid var(--border-color); border-radius:4px; color:var(--text-primary); }
.rq-rename-actions button:disabled { opacity:.5; cursor:wait; }
.rq-rename-error { margin:6px 0 0; color:var(--danger, #f87171); font-size:11px; }
.rq-session-item .rq-rename-button { display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; padding:5px; }
.rq-delete-warning { margin:7px 0; font-size:11px; line-height:1.5; color:var(--text-secondary); }
.rq-rename-actions .rq-delete-confirm { color:var(--danger, #f87171); border-color:var(--danger, #f87171); }
.rq-main { flex:1; min-width:0; min-height:0; display:flex; flex-direction:column; }
.rq-toolbar { min-height:54px; display:flex; align-items:center; gap:8px; padding:10px 22px; border-bottom:1px solid var(--border-color); }
.rq-toolbar h2 { margin:0 auto 0 0; min-width:0; font-size:15px; font-weight:600; }
.rq-toolbar button,.rq-share-panel button { border:1px solid var(--border-hover); border-radius:6px; background:var(--bg-tertiary); color:var(--text-primary); padding:8px 11px; font:inherit; font-size:12px; cursor:pointer; }
.rq-toolbar button:hover,.rq-share-panel button:hover { border-color:var(--accent); }
.rq-toolbar .hidden { display:none; }
.rq-messages { flex:1; min-height:0; overflow:auto; display:flex; flex-direction:column; gap:15px; padding:22px max(22px, calc((100% - 790px)/2)); }
.rq-empty-state { margin:auto; max-width:560px; text-align:center; color:var(--text-secondary); padding:38px 18px; line-height:1.7; }
.rq-eyebrow { color:var(--accent); font-size:11px; letter-spacing:1.8px; font-weight:700; }
.rq-messages a, .rq-messages a:visited { color:var(--accent); }
.rq-empty-state h3 { color:var(--text-primary); font-size:clamp(34px,4vw,48px); font-weight:500; letter-spacing:-1.5px; margin:17px 0; }
.rq-empty-state p { font-size:16px; }
.rq-input-row { display:flex; align-items:flex-end; gap:9px; width:min(790px,calc(100% - 36px)); margin:0 auto; padding:9px; background:var(--bg-secondary); border:1px solid var(--border-hover); border-radius:10px; }
.rq-input-row textarea { flex:1; min-width:0; max-height:140px; resize:none; border:0; outline:none; background:transparent; color:var(--text-primary); padding:7px; font-family:inherit; font-size:14px; line-height:1.5; }
.rq-input-row button { min-height:36px; border:0; border-radius:6px; padding:0 14px; background:var(--accent); color:#fff; font-family:inherit; font-size:12px; font-weight:600; cursor:pointer; }
.rq-input-row button:disabled { opacity:.55; cursor:wait; }
.rq-disclaimer { width:min(790px,calc(100% - 36px)); margin:8px auto 13px; text-align:center; color:var(--text-muted); font-size:10px; }
.rq-msg { max-width:790px; padding:12px 15px; border-radius:9px; font-size:14px; line-height:1.7; overflow-wrap:anywhere; }
.rq-msg-user { align-self:flex-end; background:var(--accent); color:#fff; white-space:pre-wrap; }
.rq-msg-assistant { align-self:stretch; background:var(--bg-secondary); border:1px solid var(--border-color); color:var(--text-primary); }
.rq-msg-error { border-color:var(--danger); color:var(--danger); }
.rq-msg-error button { border:1px solid var(--border-hover); border-radius:5px; padding:6px 10px; background:var(--bg-tertiary); color:var(--text-primary); cursor:pointer; }
.rq-answer h2,.rq-answer h3,.rq-answer h4 { line-height:1.35; margin:20px 0 8px; }
.rq-answer p { margin:0 0 12px; }
.rq-answer ul,.rq-answer ol { padding-left:24px; }
.rq-answer blockquote { margin:12px 0; padding:10px 14px; border-left:3px solid var(--accent); background:var(--bg-tertiary); }
.rq-answer code { font-family:ui-monospace,monospace; background:var(--bg-tertiary); border-radius:3px; padding:2px 4px; }
.rq-answer pre { max-width:100%; overflow:auto; padding:12px; background:var(--bg-primary); border:1px solid var(--border-color); border-radius:6px; }
.rq-answer pre code { padding:0; }
.rq-table-wrap { max-width:100%; overflow:auto; }
.rq-answer table { border-collapse:collapse; width:100%; font-size:12px; }
.rq-answer th,.rq-answer td { padding:8px 10px; text-align:left; border:1px solid var(--border-color); }
.rq-answer th { background:var(--bg-tertiary); }
.rq-msg-citations { border-top:1px solid var(--border-color); margin-top:18px; padding-top:12px; display:grid; gap:6px; }
.rq-sources-label { color:var(--text-muted); font-size:10px; text-transform:uppercase; letter-spacing:1px; }
.rq-source { display:flex; gap:10px; text-decoration:none; color:var(--text-primary); padding:9px 10px; background:var(--bg-primary); border:1px solid var(--border-color); border-radius:5px; font-size:12px; }
.rq-source:hover { border-color:var(--accent); }
.rq-source-meta { display:block; color:var(--text-muted); font-size:10px; }
.rq-share-panel { padding:15px 22px; border-bottom:1px solid var(--border-color); background:var(--bg-secondary); }
.rq-share-panel p { max-width:700px; color:var(--text-secondary); font-size:12px; line-height:1.6; }
.rq-share-actions,.rq-share-link-row { display:flex; gap:8px; flex-wrap:wrap; }
.rq-share-link-row { margin-top:10px; }
.rq-share-link-row input { flex:1; min-width:140px; background:var(--bg-primary); color:var(--text-primary); border:1px solid var(--border-hover); border-radius:5px; padding:9px; }
.rq-shared-note { padding:13px 20px; color:var(--text-secondary); font-size:12px; }
.rq-progress { display:flex; align-items:center; gap:12px; padding:16px; color:var(--text-secondary); font-size:13px; }
.rq-spinner { width:19px; height:19px; border:2px solid var(--border-hover); border-top-color:var(--accent); border-radius:50%; animation:rq-spin .8s linear infinite; }
.rq-chat-skeleton { width:min(650px,90%); padding:20px; background:var(--bg-secondary); border-radius:8px; }
.rq-chat-skeleton span { display:block; height:12px; margin:12px 0; background:var(--bg-tertiary); border-radius:4px; animation:rq-pulse 1.4s ease-in-out infinite; }
.rq-chat-skeleton span:first-child { width:45%; }
.rq-chat-skeleton span:last-child { width:70%; }
@keyframes rq-spin { to { transform:rotate(360deg); } }
@keyframes rq-pulse { 50% { opacity:.45; } }
.rq-main button:focus-visible,.rq-session-item:focus-visible,.rq-input-row textarea:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
@media (max-width:767px) {
  .reports-queries { flex-direction:column; }
  .rq-sidebar { width:100%; flex:0 0 auto; max-height:125px; border-right:0; border-bottom:1px solid var(--border-color); padding:8px 10px; }
  .rq-session-list { flex-direction:row; overflow:auto; }
  .rq-session-item { flex:0 0 190px; }
  .rq-toolbar { padding:8px 12px; }
  .rq-messages { padding:14px 12px; }
  .rq-input-row { width:calc(100% - 20px); }
  .rq-disclaimer { width:calc(100% - 24px); }
  .rq-empty-state { padding:20px 8px; }
}
@media (prefers-reduced-motion:reduce) { .rq-spinner,.rq-chat-skeleton span { animation:none; } }
