/* Only the precisely recognized recommendation card is suppressed. */
[data-qstar-legacy-candidates="hidden"] { display:none !important; }
#qstar-home-compatibility { margin:16px; padding:12px; color:#fef3c7; background:#422e13; border:1px solid #bda263; border-radius:8px; font:14px/1.6 system-ui,sans-serif; }
#qstar-home-candidates { color:#edf3fc; background:#111c2d; border:1px solid #455577; border-radius:12px; padding:16px; margin:0 0 20px; font:14px/1.6 system-ui,sans-serif; overflow-wrap:anywhere; }
#qstar-home-candidates * { box-sizing:border-box; }
#qstar-home-candidates h2 { font-size:20px; margin:0 0 8px; }
#qstar-home-candidates h3 { font-size:15px; margin:14px 0 8px; }
#qstar-home-candidates h4 { font-size:16px; margin:0 0 8px; }
#qstar-home-candidates p { margin:8px 0; }
#qstar-home-candidates .qh-muted { color:#b7c4d8; font-size:12px; }
#qstar-home-candidates .qh-controls { display:flex; gap:8px; flex-wrap:wrap; }
#qstar-home-candidates button, #qstar-home-candidates select { min-height:44px; font:inherit; padding:8px 12px; border:1px solid #7e93b5; border-radius:8px; color:#edf3fc; background:#202f45; cursor:pointer; max-width:100%; }
#qstar-home-candidates button:disabled { opacity:.6; cursor:wait; }
#qstar-home-candidates :focus-visible { outline:3px solid #93c5fd; outline-offset:3px; }
#qstar-home-candidates .qh-status { color:#bfdbfe; }
#qstar-home-candidates .qh-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(270px,100%),1fr)); gap:12px; }
#qstar-home-candidates .qh-card { min-width:0; border:1px solid #52698c; border-radius:9px; padding:14px; background:#1a2a42; }
#qstar-home-candidates ul { padding-left:20px; }
/* The reviewed dashboard's fixed assistant otherwise covers the mobile nav and
   our desktop launchers. Scope to the mounted, recognized dashboard only. */
#root:has(#qstar-home-candidates) button[title="AI 分析助手"] { bottom:84px !important; }
@media(max-width:540px) {
  #root:has(#qstar-home-candidates) button[title="AI 分析助手"] { bottom:calc(138px + env(safe-area-inset-bottom,0px)) !important; }
  #qstar-home-candidates { padding:12px; }
  #qstar-home-candidates .qh-controls select { width:100%; }
  #qstar-home-candidates .qh-controls button { flex:1; }
}
