/*! © 2026 Finfident PTY LTD (ABN 94 679 280 801). All rights reserved. Staff portal: Policy researcher styles (6 Nov 2026).
   Uses only the portal's colour variables, so Dark / Light / Auto work without regenerating ff-dark.css. */
.pr-h1{display:flex;align-items:center;gap:10px}
.pr-badge{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--mist);color:var(--navy)}
.pr-badge svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pr-stat{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.pr-stat svg,.pr-rh .btn svg,.pr-c .btn svg,.pr-filters .btn svg,.pr-lender .btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pr-disc{display:flex;gap:10px;align-items:flex-start;background:var(--warnbg);border-radius:12px;padding:10px 14px;font-size:.84rem;margin-bottom:12px;color:var(--text)}
.pr-disc>svg{flex:none;width:18px;height:18px;fill:none;stroke:var(--warn);stroke-width:2;margin-top:2px}
.pr-disc b{color:var(--warn)}
.pr-form textarea{width:100%;min-height:76px}
.pr-filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:10px}
.pr-filters select,.pr-filters input{min-height:38px;max-width:100%}
.pr-filters .btn-coral{margin-left:auto}
#prL{flex:0 1 260px}
.pr-empty{text-align:center;padding:22px 6px}
.pr-empty .pill{white-space:normal;text-align:left}
.pr-topics{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:16px 0 10px}
.pr-tt{gap:2px;padding-right:4px}
.pr-tt button{border:0;background:none;color:inherit;font:700 .9rem var(--head);cursor:pointer;padding:0 4px;line-height:1}
.pr-addt{min-height:30px;font-size:.82rem;max-width:220px}
.pr-aibox{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;border:1.5px dashed var(--line);border-radius:12px;padding:10px 14px;margin:8px 0}
.pr-lender{border:1.5px solid var(--line);border-radius:14px;padding:12px 14px;margin:10px 0;background:var(--card)}
.pr-lh{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:6px}
.pr-rule{border-top:1px solid var(--line);padding:10px 0}
.pr-lh+.pr-rule,.pr-draft>.pr-rule:first-child{border-top:0}
.pr-rh{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.pr-topic{font:700 .8rem var(--head);color:var(--ink)}
.pr-id{margin-left:auto;font-family:ui-monospace,Menlo,monospace}
.pr-txt{margin:6px 0 4px;color:var(--ink);font-size:.92rem}
.pr-cond{margin:2px 0 4px;padding-left:20px;font-size:.86rem}
.pr-amb{display:flex;gap:6px;align-items:flex-start;font-size:.82rem;color:var(--warn);margin:4px 0}
.pr-amb svg{flex:none;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;margin-top:2px}
.pr-ex summary{cursor:pointer;color:var(--navy);font-weight:600}
.pr-ex blockquote,.pr-cite blockquote{margin:6px 0;padding:6px 10px;border-left:3px solid var(--coral);background:var(--mist);border-radius:0 8px 8px 0;font-size:.84rem;white-space:pre-wrap}
.pr-src{margin-top:4px;word-break:break-word}
.pr-src a,.pr-cite a{color:var(--navy);font-weight:600}
.pr-ai{margin:12px 0;border:1.5px solid var(--navy)}
.pr-ai h3{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.pr-ai h4{margin:14px 0 6px}
.pr-vh{display:flex;gap:8px;align-items:center}
.pr-al{border:1px solid var(--line);border-radius:10px;padding:8px 12px;margin:6px 0}
.pr-al summary{cursor:pointer}
.pr-find{list-style:none;padding:0;margin:8px 0 0;display:grid;gap:8px;font-size:.88rem}
.pr-cite{margin:4px 0 0 4px}
.pr-wait{margin:12px 0}
.pr-grp{border:1px solid var(--line);border-radius:12px;padding:8px 12px;margin:6px 0}
.pr-grp summary{cursor:pointer}
.pr-cards{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
.pr-c{border:1.5px solid var(--line);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:8px;align-items:flex-start;background:var(--card)}
.pr-c p{margin:0;flex:1}
.pr-log{margin-top:14px;display:grid;gap:8px}
.pr-log ul{margin:0;padding-left:18px;max-height:260px;overflow:auto}
.pr-src-pick{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:12px}
.pr-src-pick textarea{width:100%}
.pr-draft{max-height:46vh;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:4px 12px;margin:10px 0}
@media (max-width:640px){
  .pr-filters .btn-coral{margin-left:0;width:100%;justify-content:center}
  .pr-filters select{flex:1 1 100%}
  .pr-filters .pills{overflow-x:auto;flex-wrap:nowrap;max-width:100%;padding-bottom:2px}
  .pr-lender{padding:10px}
  .pr-id{margin-left:0}
  .pr-aibox .btn{width:100%;justify-content:center}
}
