/* Ask Ash's optional right-rail context. The parent chat grid owns placement. */
.ash-insights-host { min-width:0; max-width:100%; overflow-x:hidden; overflow-y:auto; overflow-wrap:anywhere; overscroll-behavior:contain; }
.ash-insights-host:focus-visible { outline:3px solid var(--accent-hi,#8b5cf6); outline-offset:2px; }
.ash-insights { display:grid; gap:12px; min-width:0; color:var(--text,#14121f); }
.ash-insights-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.ash-insights-head { padding:2px 2px 6px; }
.ash-insights h3 { margin:0; font-size:1rem; line-height:1.25; }
.ash-insights p { margin:5px 0 0; }
.ash-insights-status { color:var(--body,#3d3b4f); font-size:.85rem; }
.ash-insights-section { min-width:0; padding:14px; border:1px solid var(--border,#e1e3ec); border-radius:12px; background:linear-gradient(180deg,var(--card1,#fff),var(--card2,#f3f4f9)); }
.ash-insights-card-head { display:flex; align-items:flex-start; gap:10px; margin-top:9px; min-width:0; }
.ash-insights-card-head img,.ash-insights-image-empty { width:56px; height:78px; flex:0 0 auto; border:1px solid var(--border,#e1e3ec); border-radius:7px; object-fit:contain; background:var(--well,#fff); }
.ash-insights-image-empty { display:grid; place-items:center; padding:4px; color:var(--body,#3d3b4f); font:700 9px/1.25 'Geist Mono',monospace; text-align:center; }
.ash-insights-grade { display:inline-block; margin-top:7px !important; padding:3px 6px; border-radius:999px; background:var(--row-hi,#f1ecff); color:var(--accent-text,#5b21b6); font:700 11px/1.2 'Geist Mono',monospace; }
.ash-insights-evidence { display:grid; gap:8px; margin:14px 0 0; }
.ash-insights-evidence div { display:flex; justify-content:space-between; gap:10px; border-top:1px solid var(--border,#e1e3ec); padding-top:8px; }
.ash-insights-evidence dt { color:var(--body,#3d3b4f); font-size:.78rem; }
.ash-insights-evidence dd { margin:0; max-width:58%; text-align:right; font:700 .78rem/1.3 'Geist Mono',monospace; }
.ash-insights-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:12px; }
.ash-insights-actions:has(:only-child) { grid-template-columns:minmax(0,1fr); }
.ash-insights button { min-width:0; min-height:44px; padding:9px 10px; border:1px solid var(--border,#e1e3ec); border-radius:8px; background:var(--well,#fff); color:var(--text,#14121f); font:700 .875rem/1.25 'Geist',sans-serif; cursor:pointer; }
.ash-insights button:hover { border-color:var(--accent,#6d28d9); }
.ash-insights button:focus-visible { outline:3px solid var(--accent-hi,#8b5cf6); outline-offset:2px; }
.ash-insights-portfolio { display:grid; gap:3px; margin-top:10px; }
.ash-insights-portfolio span,.ash-insights-portfolio small { color:var(--body,#3d3b4f); font-size:.78rem; }
.ash-insights-portfolio strong { font-size:1.15rem; }
.ash-insights-caveat { color:var(--body,#3d3b4f); font-size:.78rem; }
.ash-insights-plan { border-color:var(--accent,#6d28d9); }
@media (prefers-reduced-motion: no-preference) { .ash-insights-section { transition:border-color .16s ease,transform .16s ease; } .ash-insights-section:hover { border-color:var(--accent,#6d28d9); } }
@media (max-width:720px) { .ash-insights { width:100%; } .ash-insights-section { padding:14px; } }
